@@ -1,1125 +1,1158 @@
11{
2− "kind": "discovery#restDescription",
3− "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/HIsdIvCDXEirzqtPtZbE0wV3MKA\"",
4− "discoveryVersion": "v1",
5− "id": "pubsub:v1",
6− "name": "pubsub",
7− "version": "v1",
8− "revision": "20161003",
9− "title": "Google Cloud Pub/Sub API",
10− "description": "Provides reliable, many-to-many, asynchronous messaging between applications.",
11− "ownerDomain": "google.com",
12− "ownerName": "Google",
13− "icons": {
14− "x16": "http://www.google.com/images/icons/product/search-16.gif",
15− "x32": "http://www.google.com/images/icons/product/search-32.gif"
16− },
17− "documentationLink": "https://cloud.google.com/pubsub/docs",
18− "protocol": "rest",
19− "baseUrl": "https://pubsub.googleapis.com/",
20− "basePath": "",
21− "rootUrl": "https://pubsub.googleapis.com/",
22− "servicePath": "",
23− "batchPath": "batch",
24− "parameters": {
25− "access_token": {
26− "type": "string",
27− "description": "OAuth access token.",
28− "location": "query"
29− },
30− "alt": {
31− "type": "string",
32− "description": "Data format for response.",
33− "default": "json",
34− "enumDescriptions": [
35− "Responses with Content-Type of application/json",
36− "Media download with context-dependent Content-Type",
37− "Responses with Content-Type of application/x-protobuf"
38− ],
39− "location": "query"
40− },
41− "bearer_token": {
42− "type": "string",
43− "description": "OAuth bearer token.",
44− "location": "query"
45− },
46− "callback": {
47− "type": "string",
48− "description": "JSONP",
49− "location": "query"
50− },
51− "fields": {
52− "type": "string",
53− "description": "Selector specifying which fields to include in a partial response.",
54− "location": "query"
55− },
56− "key": {
57− "type": "string",
58− "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
59− "location": "query"
60− },
61− "oauth_token": {
62− "type": "string",
63− "description": "OAuth 2.0 token for the current user.",
64− "location": "query"
65− },
66− "pp": {
67− "type": "boolean",
68− "description": "Pretty-print response.",
69− "default": "true",
70− "location": "query"
71− },
72− "prettyPrint": {
73− "type": "boolean",
74− "description": "Returns response with indentations and line breaks.",
75− "default": "true",
76− "location": "query"
77− },
78− "quotaUser": {
79− "type": "string",
80− "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
81− "location": "query"
82− },
83− "upload_protocol": {
84− "type": "string",
85− "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
86− "location": "query"
87− },
88− "uploadType": {
89− "type": "string",
90− "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
91− "location": "query"
92− },
93− "$.xgafv": {
94− "type": "string",
95− "description": "V1 error format.",
96− "enumDescriptions": [
97− "v1 error format",
98− "v2 error format"
99− ],
100− "location": "query"
101− }
102− },
103− "auth": {
104− "oauth2": {
105− "scopes": {
106− "https://www.googleapis.com/auth/cloud-platform": {
107− "description": "View and manage your data across Google Cloud Platform services"
108− },
109− "https://www.googleapis.com/auth/pubsub": {
110− "description": "View and manage Pub/Sub topics and subscriptions"
111− }
112− }
113− }
114− },
115− "schemas": {
116− "SetIamPolicyRequest": {
117− "id": "SetIamPolicyRequest",
118− "type": "object",
119− "description": "Request message for `SetIamPolicy` method.",
120− "properties": {
121− "policy": {
122− "$ref": "Policy",
123− "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them."
124− }
125− }
126− },
127− "Policy": {
128− "id": "Policy",
129− "type": "object",
130− "description": "Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources. A `Policy` consists of a list of `bindings`. A `Binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM. **Example** { \"bindings\": [ { \"role\": \"roles/owner\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-other-app@appspot.gserviceaccount.com\", ] }, { \"role\": \"roles/viewer\", \"members\": [\"user:sean@example.com\"] } ] } For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam).",
131− "properties": {
132− "version": {
133− "type": "integer",
134− "description": "Version of the `Policy`. The default version is 0.",
135− "format": "int32"
136− },
137− "bindings": {
138− "type": "array",
139− "description": "Associates a list of `members` to a `role`. Multiple `bindings` must not be specified for the same `role`. `bindings` with no members will result in an error.",
140− "items": {
141− "$ref": "Binding"
142− }
143− },
144− "etag": {
145− "type": "string",
146− "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.",
147− "format": "byte"
148− }
149− }
150− },
151− "Binding": {
152− "id": "Binding",
153− "type": "object",
154− "description": "Associates `members` with a `role`.",
155− "properties": {
156− "role": {
157− "type": "string",
158− "description": "Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. Required"
159− },
160− "members": {
161− "type": "array",
162− "description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.",
163− "items": {
164− "type": "string"
165− }
166− }
167− }
168− },
169− "TestIamPermissionsRequest": {
170− "id": "TestIamPermissionsRequest",
171− "type": "object",
172− "description": "Request message for `TestIamPermissions` method.",
173− "properties": {
174− "permissions": {
175− "type": "array",
176− "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).",
177− "items": {
178− "type": "string"
179− }
180− }
181− }
182− },
183− "TestIamPermissionsResponse": {
184− "id": "TestIamPermissionsResponse",
185− "type": "object",
186− "description": "Response message for `TestIamPermissions` method.",
187− "properties": {
188− "permissions": {
189− "type": "array",
190− "description": "A subset of `TestPermissionsRequest.permissions` that the caller is allowed.",
191− "items": {
192− "type": "string"
193− }
194− }
195− }
196− },
197− "Topic": {
198− "id": "Topic",
199− "type": "object",
200− "description": "A topic resource.",
201− "properties": {
202− "name": {
203− "type": "string",
204− "description": "The name of the topic. It must have the format `\"projects/{project}/topics/{topic}\"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `\"goog\"`."
205− }
206− }
207− },
208− "PublishRequest": {
209− "id": "PublishRequest",
210− "type": "object",
211− "description": "Request for the Publish method.",
212− "properties": {
213− "messages": {
214− "type": "array",
215− "description": "The messages to publish.",
216− "items": {
217− "$ref": "PubsubMessage"
218− }
219− }
220− }
221− },
222− "PubsubMessage": {
223− "id": "PubsubMessage",
224− "type": "object",
225− "description": "A message data and its attributes. The message payload must not be empty; it must contain either a non-empty data field, or at least one attribute.",
226− "properties": {
227− "data": {
228− "type": "string",
229− "description": "The message payload. For JSON requests, the value of this field must be [base64-encoded](https://tools.ietf.org/html/rfc4648).",
230− "format": "byte"
231− },
232− "attributes": {
233− "type": "object",
234− "description": "Optional attributes for this message.",
235− "additionalProperties": {
236− "type": "string"
237− }
238− },
239− "messageId": {
240− "type": "string",
241− "description": "ID of this message, assigned by the server when the message is published. Guaranteed to be unique within the topic. This value may be read by a subscriber that receives a `PubsubMessage` via a `Pull` call or a push delivery. It must not be populated by the publisher in a `Publish` call."
242− },
243− "publishTime": {
244− "type": "string",
245− "description": "The time at which the message was published, populated by the server when it receives the `Publish` call. It must not be populated by the publisher in a `Publish` call."
246− }
247− }
248− },
249− "PublishResponse": {
250− "id": "PublishResponse",
251− "type": "object",
252− "description": "Response for the `Publish` method.",
253− "properties": {
254− "messageIds": {
255− "type": "array",
256− "description": "The server-assigned ID of each published message, in the same order as the messages in the request. IDs are guaranteed to be unique within the topic.",
257− "items": {
258− "type": "string"
259− }
260− }
261− }
262− },
263− "ListTopicsResponse": {
264− "id": "ListTopicsResponse",
265− "type": "object",
266− "description": "Response for the `ListTopics` method.",
267− "properties": {
268− "topics": {
269− "type": "array",
270− "description": "The resulting topics.",
271− "items": {
272− "$ref": "Topic"
273− }
274− },
275− "nextPageToken": {
276− "type": "string",
277− "description": "If not empty, indicates that there may be more topics that match the request; this value should be passed in a new `ListTopicsRequest`."
278− }
279− }
280− },
281− "ListTopicSubscriptionsResponse": {
282− "id": "ListTopicSubscriptionsResponse",
283− "type": "object",
284− "description": "Response for the `ListTopicSubscriptions` method.",
285− "properties": {
286− "subscriptions": {
287− "type": "array",
288− "description": "The names of the subscriptions that match the request.",
289− "items": {
290− "type": "string"
291− }
292− },
293− "nextPageToken": {
294− "type": "string",
295− "description": "If not empty, indicates that there may be more subscriptions that match the request; this value should be passed in a new `ListTopicSubscriptionsRequest` to get more subscriptions."
296− }
297− }
298− },
299− "Empty": {
300− "id": "Empty",
301− "type": "object",
302− "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`."
303− },
304− "Subscription": {
305− "id": "Subscription",
306− "type": "object",
307− "description": "A subscription resource.",
308− "properties": {
309− "name": {
310− "type": "string",
311− "description": "The name of the subscription. It must have the format `\"projects/{project}/subscriptions/{subscription}\"`. `{subscription}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `\"goog\"`."
312− },
313− "topic": {
314− "type": "string",
315− "description": "The name of the topic from which this subscription is receiving messages. The value of this field will be `_deleted-topic_` if the topic has been deleted."
316− },
317− "pushConfig": {
318− "$ref": "PushConfig",
319− "description": "If push delivery is used with this subscription, this field is used to configure it. An empty `pushConfig` signifies that the subscriber will pull and ack messages using API methods."
320− },
321− "ackDeadlineSeconds": {
322− "type": "integer",
323− "description": "This value is the maximum time after a subscriber receives a message before the subscriber should acknowledge the message. After message delivery but before the ack deadline expires and before the message is acknowledged, it is an outstanding message and will not be delivered again during that time (on a best-effort basis). For pull subscriptions, this value is used as the initial value for the ack deadline. To override this value for a given message, call `ModifyAckDeadline` with the corresponding `ack_id` if using pull. The maximum custom deadline you can specify is 600 seconds (10 minutes). For push delivery, this value is also used to set the request timeout for the call to the push endpoint. If the subscriber never acknowledges the message, the Pub/Sub system will eventually redeliver the message. If this parameter is 0, a default value of 10 seconds is used.",
324− "format": "int32"
325− }
326− }
327− },
328− "PushConfig": {
329− "id": "PushConfig",
330− "type": "object",
331− "description": "Configuration for a push delivery endpoint.",
332− "properties": {
333− "pushEndpoint": {
334− "type": "string",
335− "description": "A URL locating the endpoint to which messages should be pushed. For example, a Webhook endpoint might use \"https://example.com/push\"."
336− },
337− "attributes": {
338− "type": "object",
339− "description": "Endpoint configuration attributes. Every endpoint has a set of API supported attributes that can be used to control different aspects of the message delivery. The currently supported attribute is `x-goog-version`, which you can use to change the format of the push message. This attribute indicates the version of the data expected by the endpoint. This controls the shape of the envelope (i.e. its fields and metadata). The endpoint version is based on the version of the Pub/Sub API. If not present during the `CreateSubscription` call, it will default to the version of the API used to make such call. If not present during a `ModifyPushConfig` call, its value will not be changed. `GetSubscription` calls will always return a valid version, even if the subscription was created without this attribute. The possible values for this attribute are: * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API. * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.",
340− "additionalProperties": {
341− "type": "string"
342− }
343− }
344− }
345− },
346− "ListSubscriptionsResponse": {
347− "id": "ListSubscriptionsResponse",
348− "type": "object",
349− "description": "Response for the `ListSubscriptions` method.",
350− "properties": {
351− "subscriptions": {
352− "type": "array",
353− "description": "The subscriptions that match the request.",
354− "items": {
355− "$ref": "Subscription"
356− }
357− },
358− "nextPageToken": {
359− "type": "string",
360− "description": "If not empty, indicates that there may be more subscriptions that match the request; this value should be passed in a new `ListSubscriptionsRequest` to get more subscriptions."
361− }
362− }
363− },
364− "ModifyAckDeadlineRequest": {
365− "id": "ModifyAckDeadlineRequest",
366− "type": "object",
367− "description": "Request for the ModifyAckDeadline method.",
368− "properties": {
369− "ackIds": {
370− "type": "array",
371− "description": "List of acknowledgment IDs.",
372− "items": {
373− "type": "string"
374− }
375− },
376− "ackDeadlineSeconds": {
377− "type": "integer",
378− "description": "The new ack deadline with respect to the time this request was sent to the Pub/Sub system. Must be \u003e= 0. For example, if the value is 10, the new ack deadline will expire 10 seconds after the `ModifyAckDeadline` call was made. Specifying zero may immediately make the message available for another pull request.",
379− "format": "int32"
380− }
381− }
382− },
383− "AcknowledgeRequest": {
384− "id": "AcknowledgeRequest",
385− "type": "object",
386− "description": "Request for the Acknowledge method.",
387− "properties": {
388− "ackIds": {
389− "type": "array",
390− "description": "The acknowledgment ID for the messages being acknowledged that was returned by the Pub/Sub system in the `Pull` response. Must not be empty.",
391− "items": {
392− "type": "string"
393− }
394− }
395− }
396− },
397− "PullRequest": {
398− "id": "PullRequest",
399− "type": "object",
400− "description": "Request for the `Pull` method.",
401− "properties": {
402− "returnImmediately": {
403− "type": "boolean",
404− "description": "If this is specified as true the system will respond immediately even if it is not able to return a message in the `Pull` response. Otherwise the system is allowed to wait until at least one message is available rather than returning no messages. The client may cancel the request if it does not wish to wait any longer for the response."
405− },
406− "maxMessages": {
407− "type": "integer",
408− "description": "The maximum number of messages returned for this request. The Pub/Sub system may return fewer than the number specified.",
409− "format": "int32"
410− }
411− }
412− },
413− "PullResponse": {
414− "id": "PullResponse",
415− "type": "object",
416− "description": "Response for the `Pull` method.",
417− "properties": {
418− "receivedMessages": {
419− "type": "array",
420− "description": "Received Pub/Sub messages. The Pub/Sub system will return zero messages if there are no more available in the backlog. The Pub/Sub system may return fewer than the `maxMessages` requested even if there are more messages available in the backlog.",
421− "items": {
422− "$ref": "ReceivedMessage"
423− }
2+ "id": "pubsub:v1",
3+ "auth": {
4+ "oauth2": {
5+ "scopes": {
6+ "https://www.googleapis.com/auth/cloud-platform": {
7+ "description": "View and manage your data across Google Cloud Platform services"
8+ },
9+ "https://www.googleapis.com/auth/pubsub": {
10+ "description": "View and manage Pub/Sub topics and subscriptions"
11+ }
12+ }
42413 }
425− }
42614 },
427− "ReceivedMessage": {
428− "id": "ReceivedMessage",
429− "type": "object",
430− "description": "A message and its corresponding acknowledgment ID.",
431− "properties": {
432− "ackId": {
433− "type": "string",
434− "description": "This ID can be used to acknowledge the received message."
435− },
436− "message": {
437− "$ref": "PubsubMessage",
438− "description": "The message."
15+ "description": "Provides reliable, many-to-many, asynchronous messaging between applications.\n",
16+ "protocol": "rest",
17+ "title": "Google Cloud Pub/Sub API",
18+ "resources": {
19+ "projects": {
20+ "resources": {
21+ "subscriptions": {
22+ "methods": {
23+ "modifyPushConfig": {
24+ "id": "pubsub.projects.subscriptions.modifyPushConfig",
25+ "response": {
26+ "$ref": "Empty"
27+ },
28+ "parameterOrder": [
29+ "subscription"
30+ ],
31+ "description": "Modifies the `PushConfig` for a specified 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 delivery\ncontinuously through the call regardless of changes to the `PushConfig`.",
32+ "request": {
33+ "$ref": "ModifyPushConfigRequest"
34+ },
35+ "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:modifyPushConfig",
36+ "httpMethod": "POST",
37+ "parameters": {
38+ "subscription": {
39+ "description": "The name of the subscription.\nFormat is `projects/{project}/subscriptions/{sub}`.",
40+ "required": true,
41+ "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
42+ "location": "path",
43+ "type": "string"
44+ }
45+ },
46+ "path": "v1/{+subscription}:modifyPushConfig",
47+ "scopes": [
48+ "https://www.googleapis.com/auth/cloud-platform",
49+ "https://www.googleapis.com/auth/pubsub"
50+ ]
51+ },
52+ "getIamPolicy": {
53+ "id": "pubsub.projects.subscriptions.getIamPolicy",
54+ "response": {
55+ "$ref": "Policy"
56+ },
57+ "parameterOrder": [
58+ "resource"
59+ ],
60+ "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.",
61+ "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:getIamPolicy",
62+ "httpMethod": "GET",
63+ "parameters": {
64+ "resource": {
65+ "description": "REQUIRED: The resource for which the policy is being requested.\n`resource` is usually specified as a path. For example, a Project\nresource is specified as `projects/{project}`.",
66+ "required": true,
67+ "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
68+ "location": "path",
69+ "type": "string"
70+ }
71+ },
72+ "path": "v1/{+resource}:getIamPolicy",
73+ "scopes": [
74+ "https://www.googleapis.com/auth/cloud-platform",
75+ "https://www.googleapis.com/auth/pubsub"
76+ ]
77+ },
78+ "pull": {
79+ "id": "pubsub.projects.subscriptions.pull",
80+ "response": {
81+ "$ref": "PullResponse"
82+ },
83+ "parameterOrder": [
84+ "subscription"
85+ ],
86+ "description": "Pulls messages from the server. Returns 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 pending for the given\nsubscription.",
87+ "request": {
88+ "$ref": "PullRequest"
89+ },
90+ "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:pull",
91+ "httpMethod": "POST",
92+ "parameters": {
93+ "subscription": {
94+ "description": "The subscription from which messages should be pulled.\nFormat is `projects/{project}/subscriptions/{sub}`.",
95+ "required": true,
96+ "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
97+ "location": "path",
98+ "type": "string"
99+ }
100+ },
101+ "path": "v1/{+subscription}:pull",
102+ "scopes": [
103+ "https://www.googleapis.com/auth/cloud-platform",
104+ "https://www.googleapis.com/auth/pubsub"
105+ ]
106+ },
107+ "list": {
108+ "id": "pubsub.projects.subscriptions.list",
109+ "response": {
110+ "$ref": "ListSubscriptionsResponse"
111+ },
112+ "parameterOrder": [
113+ "project"
114+ ],
115+ "description": "Lists matching subscriptions.",
116+ "flatPath": "v1/projects/{projectsId}/subscriptions",
117+ "httpMethod": "GET",
118+ "parameters": {
119+ "pageSize": {
120+ "description": "Maximum number of subscriptions to return.",
121+ "location": "query",
122+ "type": "integer",
123+ "format": "int32"
124+ },
125+ "project": {
126+ "description": "The name of the cloud project that subscriptions belong to.\nFormat is `projects/{project}`.",
127+ "required": true,
128+ "pattern": "^projects/[^/]+$",
129+ "location": "path",
130+ "type": "string"
131+ },
132+ "pageToken": {
133+ "description": "The value returned by the last `ListSubscriptionsResponse`; indicates that\nthis is a continuation of a prior `ListSubscriptions` call, and that the\nsystem should return the next page of data.",
134+ "location": "query",
135+ "type": "string"
136+ }
137+ },
138+ "path": "v1/{+project}/subscriptions",
139+ "scopes": [
140+ "https://www.googleapis.com/auth/cloud-platform",
141+ "https://www.googleapis.com/auth/pubsub"
142+ ]
143+ },
144+ "get": {
145+ "id": "pubsub.projects.subscriptions.get",
146+ "response": {
147+ "$ref": "Subscription"
148+ },
149+ "parameterOrder": [
150+ "subscription"
151+ ],
152+ "description": "Gets the configuration details of a subscription.",
153+ "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}",
154+ "httpMethod": "GET",
155+ "parameters": {
156+ "subscription": {
157+ "description": "The name of the subscription to get.\nFormat is `projects/{project}/subscriptions/{sub}`.",
158+ "required": true,
159+ "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
160+ "location": "path",
161+ "type": "string"
162+ }
163+ },
164+ "path": "v1/{+subscription}",
165+ "scopes": [
166+ "https://www.googleapis.com/auth/cloud-platform",
167+ "https://www.googleapis.com/auth/pubsub"
168+ ]
169+ },
170+ "create": {
171+ "id": "pubsub.projects.subscriptions.create",
172+ "response": {
173+ "$ref": "Subscription"
174+ },
175+ "parameterOrder": [
176+ "name"
177+ ],
178+ "description": "Creates a subscription to a given topic.\nIf the subscription already exists, returns `ALREADY_EXISTS`.\nIf the corresponding topic doesn't exist, returns `NOT_FOUND`.\n\nIf the name is not provided in the request, the server will assign a random\nname for this subscription on the same project as the topic, conforming\nto the\n[resource name format](https://cloud.google.com/pubsub/docs/overview#names).\nThe generated name is populated in the returned Subscription object.\nNote that for REST API requests, you must specify a name in the request.",
179+ "request": {
180+ "$ref": "Subscription"
181+ },
182+ "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}",
183+ "httpMethod": "PUT",
184+ "parameters": {
185+ "name": {
186+ "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 characters\nin length, and it must not start with `\"goog\"`.",
187+ "required": true,
188+ "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
189+ "location": "path",
190+ "type": "string"
191+ }
192+ },
193+ "path": "v1/{+name}",
194+ "scopes": [
195+ "https://www.googleapis.com/auth/cloud-platform",
196+ "https://www.googleapis.com/auth/pubsub"
197+ ]
198+ },
199+ "modifyAckDeadline": {
200+ "id": "pubsub.projects.subscriptions.modifyAckDeadline",
201+ "response": {
202+ "$ref": "Empty"
203+ },
204+ "parameterOrder": [
205+ "subscription"
206+ ],
207+ "description": "Modifies the ack deadline for a specific message. This method is useful\nto indicate that more time is needed to process a message by the\nsubscriber, or to make the message available for redelivery if the\nprocessing was interrupted. Note that this does not modify the\nsubscription-level `ackDeadlineSeconds` used for subsequent messages.",
208+ "request": {
209+ "$ref": "ModifyAckDeadlineRequest"
210+ },
211+ "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:modifyAckDeadline",
212+ "httpMethod": "POST",
213+ "parameters": {
214+ "subscription": {
215+ "description": "The name of the subscription.\nFormat is `projects/{project}/subscriptions/{sub}`.",
216+ "required": true,
217+ "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
218+ "location": "path",
219+ "type": "string"
220+ }
221+ },
222+ "path": "v1/{+subscription}:modifyAckDeadline",
223+ "scopes": [
224+ "https://www.googleapis.com/auth/cloud-platform",
225+ "https://www.googleapis.com/auth/pubsub"
226+ ]
227+ },
228+ "setIamPolicy": {
229+ "id": "pubsub.projects.subscriptions.setIamPolicy",
230+ "response": {
231+ "$ref": "Policy"
232+ },
233+ "parameterOrder": [
234+ "resource"
235+ ],
236+ "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.",
237+ "request": {
238+ "$ref": "SetIamPolicyRequest"
239+ },
240+ "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:setIamPolicy",
241+ "httpMethod": "POST",
242+ "parameters": {
243+ "resource": {
244+ "description": "REQUIRED: The resource for which the policy is being specified.\n`resource` is usually specified as a path. For example, a Project\nresource is specified as `projects/{project}`.",
245+ "required": true,
246+ "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
247+ "location": "path",
248+ "type": "string"
249+ }
250+ },
251+ "path": "v1/{+resource}:setIamPolicy",
252+ "scopes": [
253+ "https://www.googleapis.com/auth/cloud-platform",
254+ "https://www.googleapis.com/auth/pubsub"
255+ ]
256+ },
257+ "delete": {
258+ "id": "pubsub.projects.subscriptions.delete",
259+ "response": {
260+ "$ref": "Empty"
261+ },
262+ "parameterOrder": [
263+ "subscription"
264+ ],
265+ "description": "Deletes an existing subscription. All messages retained 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.",
266+ "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}",
267+ "httpMethod": "DELETE",
268+ "parameters": {
269+ "subscription": {
270+ "description": "The subscription to delete.\nFormat is `projects/{project}/subscriptions/{sub}`.",
271+ "required": true,
272+ "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
273+ "location": "path",
274+ "type": "string"
275+ }
276+ },
277+ "path": "v1/{+subscription}",
278+ "scopes": [
279+ "https://www.googleapis.com/auth/cloud-platform",
280+ "https://www.googleapis.com/auth/pubsub"
281+ ]
282+ },
283+ "testIamPermissions": {
284+ "id": "pubsub.projects.subscriptions.testIamPermissions",
285+ "response": {
286+ "$ref": "TestIamPermissionsResponse"
287+ },
288+ "parameterOrder": [
289+ "resource"
290+ ],
291+ "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.",
292+ "request": {
293+ "$ref": "TestIamPermissionsRequest"
294+ },
295+ "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:testIamPermissions",
296+ "httpMethod": "POST",
297+ "parameters": {
298+ "resource": {
299+ "description": "REQUIRED: The resource for which the policy detail is being requested.\n`resource` is usually specified as a path. For example, a Project\nresource is specified as `projects/{project}`.",
300+ "required": true,
301+ "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
302+ "location": "path",
303+ "type": "string"
304+ }
305+ },
306+ "path": "v1/{+resource}:testIamPermissions",
307+ "scopes": [
308+ "https://www.googleapis.com/auth/cloud-platform",
309+ "https://www.googleapis.com/auth/pubsub"
310+ ]
311+ },
312+ "acknowledge": {
313+ "id": "pubsub.projects.subscriptions.acknowledge",
314+ "response": {
315+ "$ref": "Empty"
316+ },
317+ "parameterOrder": [
318+ "subscription"
319+ ],
320+ "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 ack deadline has expired may succeed,\nbut such a message may be redelivered later. Acknowledging a message more\nthan once will not result in an error.",
321+ "request": {
322+ "$ref": "AcknowledgeRequest"
323+ },
324+ "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:acknowledge",
325+ "httpMethod": "POST",
326+ "parameters": {
327+ "subscription": {
328+ "description": "The subscription whose message is being acknowledged.\nFormat is `projects/{project}/subscriptions/{sub}`.",
329+ "required": true,
330+ "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
331+ "location": "path",
332+ "type": "string"
333+ }
334+ },
335+ "path": "v1/{+subscription}:acknowledge",
336+ "scopes": [
337+ "https://www.googleapis.com/auth/cloud-platform",
338+ "https://www.googleapis.com/auth/pubsub"
339+ ]
340+ }
341+ }
342+ },
343+ "topics": {
344+ "resources": {
345+ "subscriptions": {
346+ "methods": {
347+ "list": {
348+ "id": "pubsub.projects.topics.subscriptions.list",
349+ "response": {
350+ "$ref": "ListTopicSubscriptionsResponse"
351+ },
352+ "parameterOrder": [
353+ "topic"
354+ ],
355+ "description": "Lists the name of the subscriptions for this topic.",
356+ "flatPath": "v1/projects/{projectsId}/topics/{topicsId}/subscriptions",
357+ "httpMethod": "GET",
358+ "parameters": {
359+ "topic": {
360+ "description": "The name of the topic that subscriptions are attached to.\nFormat is `projects/{project}/topics/{topic}`.",
361+ "required": true,
362+ "pattern": "^projects/[^/]+/topics/[^/]+$",
363+ "location": "path",
364+ "type": "string"
365+ },
366+ "pageSize": {
367+ "description": "Maximum number of subscription names to return.",
368+ "location": "query",
369+ "type": "integer",
370+ "format": "int32"
371+ },
372+ "pageToken": {
373+ "description": "The value returned by the last `ListTopicSubscriptionsResponse`; indicates\nthat this is a continuation 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": "v1/{+topic}/subscriptions",
379+ "scopes": [
380+ "https://www.googleapis.com/auth/cloud-platform",
381+ "https://www.googleapis.com/auth/pubsub"
382+ ]
383+ }
384+ }
385+ }
386+ },
387+ "methods": {
388+ "getIamPolicy": {
389+ "id": "pubsub.projects.topics.getIamPolicy",
390+ "response": {
391+ "$ref": "Policy"
392+ },
393+ "parameterOrder": [
394+ "resource"
395+ ],
396+ "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.",
397+ "flatPath": "v1/projects/{projectsId}/topics/{topicsId}:getIamPolicy",
398+ "httpMethod": "GET",
399+ "parameters": {
400+ "resource": {
401+ "description": "REQUIRED: The resource for which the policy is being requested.\n`resource` is usually specified as a path. For example, a Project\nresource is specified as `projects/{project}`.",
402+ "required": true,
403+ "pattern": "^projects/[^/]+/topics/[^/]+$",
404+ "location": "path",
405+ "type": "string"
406+ }
407+ },
408+ "path": "v1/{+resource}:getIamPolicy",
409+ "scopes": [
410+ "https://www.googleapis.com/auth/cloud-platform",
411+ "https://www.googleapis.com/auth/pubsub"
412+ ]
413+ },
414+ "publish": {
415+ "id": "pubsub.projects.topics.publish",
416+ "response": {
417+ "$ref": "PublishResponse"
418+ },
419+ "parameterOrder": [
420+ "topic"
421+ ],
422+ "description": "Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic\ndoes not exist. The message payload must not be empty; it must contain\n either a non-empty data field, or at least one attribute.",
423+ "request": {
424+ "$ref": "PublishRequest"
425+ },
426+ "flatPath": "v1/projects/{projectsId}/topics/{topicsId}:publish",
427+ "httpMethod": "POST",
428+ "parameters": {
429+ "topic": {
430+ "description": "The messages in the request will be published on this topic.\nFormat is `projects/{project}/topics/{topic}`.",
431+ "required": true,
432+ "pattern": "^projects/[^/]+/topics/[^/]+$",
433+ "location": "path",
434+ "type": "string"
435+ }
436+ },
437+ "path": "v1/{+topic}:publish",
438+ "scopes": [
439+ "https://www.googleapis.com/auth/cloud-platform",
440+ "https://www.googleapis.com/auth/pubsub"
441+ ]
442+ },
443+ "list": {
444+ "id": "pubsub.projects.topics.list",
445+ "response": {
446+ "$ref": "ListTopicsResponse"
447+ },
448+ "parameterOrder": [
449+ "project"
450+ ],
451+ "description": "Lists matching topics.",
452+ "flatPath": "v1/projects/{projectsId}/topics",
453+ "httpMethod": "GET",
454+ "parameters": {
455+ "pageSize": {
456+ "description": "Maximum number of topics to return.",
457+ "location": "query",
458+ "type": "integer",
459+ "format": "int32"
460+ },
461+ "project": {
462+ "description": "The name of the cloud project that topics belong to.\nFormat is `projects/{project}`.",
463+ "required": true,
464+ "pattern": "^projects/[^/]+$",
465+ "location": "path",
466+ "type": "string"
467+ },
468+ "pageToken": {
469+ "description": "The value returned by the last `ListTopicsResponse`; indicates that this is\na continuation of a prior `ListTopics` call, and that the system should\nreturn the next page of data.",
470+ "location": "query",
471+ "type": "string"
472+ }
473+ },
474+ "path": "v1/{+project}/topics",
475+ "scopes": [
476+ "https://www.googleapis.com/auth/cloud-platform",
477+ "https://www.googleapis.com/auth/pubsub"
478+ ]
479+ },
480+ "get": {
481+ "id": "pubsub.projects.topics.get",
482+ "response": {
483+ "$ref": "Topic"
484+ },
485+ "parameterOrder": [
486+ "topic"
487+ ],
488+ "description": "Gets the configuration of a topic.",
489+ "flatPath": "v1/projects/{projectsId}/topics/{topicsId}",
490+ "httpMethod": "GET",
491+ "parameters": {
492+ "topic": {
493+ "description": "The name of the topic to get.\nFormat is `projects/{project}/topics/{topic}`.",
494+ "required": true,
495+ "pattern": "^projects/[^/]+/topics/[^/]+$",
496+ "location": "path",
497+ "type": "string"
498+ }
499+ },
500+ "path": "v1/{+topic}",
501+ "scopes": [
502+ "https://www.googleapis.com/auth/cloud-platform",
503+ "https://www.googleapis.com/auth/pubsub"
504+ ]
505+ },
506+ "create": {
507+ "id": "pubsub.projects.topics.create",
508+ "response": {
509+ "$ref": "Topic"
510+ },
511+ "parameterOrder": [
512+ "name"
513+ ],
514+ "description": "Creates the given topic with the given name.",
515+ "request": {
516+ "$ref": "Topic"
517+ },
518+ "flatPath": "v1/projects/{projectsId}/topics/{topicsId}",
519+ "httpMethod": "PUT",
520+ "parameters": {
521+ "name": {
522+ "description": "The name of the topic. It must have the format\n`\"projects/{project}/topics/{topic}\"`. `{topic}` must start with a letter,\nand contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),\nunderscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent\nsigns (`%`). It must be between 3 and 255 characters in length, and it\nmust not start with `\"goog\"`.",
523+ "required": true,
524+ "pattern": "^projects/[^/]+/topics/[^/]+$",
525+ "location": "path",
526+ "type": "string"
527+ }
528+ },
529+ "path": "v1/{+name}",
530+ "scopes": [
531+ "https://www.googleapis.com/auth/cloud-platform",
532+ "https://www.googleapis.com/auth/pubsub"
533+ ]
534+ },
535+ "setIamPolicy": {
536+ "id": "pubsub.projects.topics.setIamPolicy",
537+ "response": {
538+ "$ref": "Policy"
539+ },
540+ "parameterOrder": [
541+ "resource"
542+ ],
543+ "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.",
544+ "request": {
545+ "$ref": "SetIamPolicyRequest"
546+ },
547+ "flatPath": "v1/projects/{projectsId}/topics/{topicsId}:setIamPolicy",
548+ "httpMethod": "POST",
549+ "parameters": {
550+ "resource": {
551+ "description": "REQUIRED: The resource for which the policy is being specified.\n`resource` is usually specified as a path. For example, a Project\nresource is specified as `projects/{project}`.",
552+ "required": true,
553+ "pattern": "^projects/[^/]+/topics/[^/]+$",
554+ "location": "path",
555+ "type": "string"
556+ }
557+ },
558+ "path": "v1/{+resource}:setIamPolicy",
559+ "scopes": [
560+ "https://www.googleapis.com/auth/cloud-platform",
561+ "https://www.googleapis.com/auth/pubsub"
562+ ]
563+ },
564+ "delete": {
565+ "id": "pubsub.projects.topics.delete",
566+ "response": {
567+ "$ref": "Empty"
568+ },
569+ "parameterOrder": [
570+ "topic"
571+ ],
572+ "description": "Deletes the topic with the given name. 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 with none of the old\nconfiguration or subscriptions. Existing subscriptions to this topic are\nnot deleted, but their `topic` field is set to `_deleted-topic_`.",
573+ "flatPath": "v1/projects/{projectsId}/topics/{topicsId}",
574+ "httpMethod": "DELETE",
575+ "parameters": {
576+ "topic": {
577+ "description": "Name of the topic to delete.\nFormat is `projects/{project}/topics/{topic}`.",
578+ "required": true,
579+ "pattern": "^projects/[^/]+/topics/[^/]+$",
580+ "location": "path",
581+ "type": "string"
582+ }
583+ },
584+ "path": "v1/{+topic}",
585+ "scopes": [
586+ "https://www.googleapis.com/auth/cloud-platform",
587+ "https://www.googleapis.com/auth/pubsub"
588+ ]
589+ },
590+ "testIamPermissions": {
591+ "id": "pubsub.projects.topics.testIamPermissions",
592+ "response": {
593+ "$ref": "TestIamPermissionsResponse"
594+ },
595+ "parameterOrder": [
596+ "resource"
597+ ],
598+ "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.",
599+ "request": {
600+ "$ref": "TestIamPermissionsRequest"
601+ },
602+ "flatPath": "v1/projects/{projectsId}/topics/{topicsId}:testIamPermissions",
603+ "httpMethod": "POST",
604+ "parameters": {
605+ "resource": {
606+ "description": "REQUIRED: The resource for which the policy detail is being requested.\n`resource` is usually specified as a path. For example, a Project\nresource is specified as `projects/{project}`.",
607+ "required": true,
608+ "pattern": "^projects/[^/]+/topics/[^/]+$",
609+ "location": "path",
610+ "type": "string"
611+ }
612+ },
613+ "path": "v1/{+resource}:testIamPermissions",
614+ "scopes": [
615+ "https://www.googleapis.com/auth/cloud-platform",
616+ "https://www.googleapis.com/auth/pubsub"
617+ ]
618+ }
619+ }
620+ },
621+ "snapshots": {
622+ "methods": {
623+ "testIamPermissions": {
624+ "id": "pubsub.projects.snapshots.testIamPermissions",
625+ "response": {
626+ "$ref": "TestIamPermissionsResponse"
627+ },
628+ "parameterOrder": [
629+ "resource"
630+ ],
631+ "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.",
632+ "request": {
633+ "$ref": "TestIamPermissionsRequest"
634+ },
635+ "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}:testIamPermissions",
636+ "httpMethod": "POST",
637+ "parameters": {
638+ "resource": {
639+ "description": "REQUIRED: The resource for which the policy detail is being requested.\n`resource` is usually specified as a path. For example, a Project\nresource is specified as `projects/{project}`.",
640+ "required": true,
641+ "pattern": "^projects/[^/]+/snapshots/[^/]+$",
642+ "location": "path",
643+ "type": "string"
644+ }
645+ },
646+ "path": "v1/{+resource}:testIamPermissions",
647+ "scopes": [
648+ "https://www.googleapis.com/auth/cloud-platform",
649+ "https://www.googleapis.com/auth/pubsub"
650+ ]
651+ },
652+ "setIamPolicy": {
653+ "id": "pubsub.projects.snapshots.setIamPolicy",
654+ "response": {
655+ "$ref": "Policy"
656+ },
657+ "parameterOrder": [
658+ "resource"
659+ ],
660+ "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.",
661+ "request": {
662+ "$ref": "SetIamPolicyRequest"
663+ },
664+ "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}:setIamPolicy",
665+ "httpMethod": "POST",
666+ "parameters": {
667+ "resource": {
668+ "description": "REQUIRED: The resource for which the policy is being specified.\n`resource` is usually specified as a path. For example, a Project\nresource is specified as `projects/{project}`.",
669+ "required": true,
670+ "pattern": "^projects/[^/]+/snapshots/[^/]+$",
671+ "location": "path",
672+ "type": "string"
673+ }
674+ },
675+ "path": "v1/{+resource}:setIamPolicy",
676+ "scopes": [
677+ "https://www.googleapis.com/auth/cloud-platform",
678+ "https://www.googleapis.com/auth/pubsub"
679+ ]
680+ },
681+ "getIamPolicy": {
682+ "id": "pubsub.projects.snapshots.getIamPolicy",
683+ "response": {
684+ "$ref": "Policy"
685+ },
686+ "parameterOrder": [
687+ "resource"
688+ ],
689+ "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.",
690+ "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}:getIamPolicy",
691+ "httpMethod": "GET",
692+ "parameters": {
693+ "resource": {
694+ "description": "REQUIRED: The resource for which the policy is being requested.\n`resource` is usually specified as a path. For example, a Project\nresource is specified as `projects/{project}`.",
695+ "required": true,
696+ "pattern": "^projects/[^/]+/snapshots/[^/]+$",
697+ "location": "path",
698+ "type": "string"
699+ }
700+ },
701+ "path": "v1/{+resource}:getIamPolicy",
702+ "scopes": [
703+ "https://www.googleapis.com/auth/cloud-platform",
704+ "https://www.googleapis.com/auth/pubsub"
705+ ]
706+ }
707+ }
708+ }
709+ }
439710 }
440− }
441711 },
442− "ModifyPushConfigRequest": {
443− "id": "ModifyPushConfigRequest",
444− "type": "object",
445− "description": "Request for the ModifyPushConfig method.",
446− "properties": {
447− "pushConfig": {
448− "$ref": "PushConfig",
449− "description": "The push configuration for future deliveries. An empty `pushConfig` indicates that the Pub/Sub system should stop pushing messages from the given subscription and allow messages to be pulled and acknowledged - effectively pausing the subscription if `Pull` is not called."
450− }
451− }
452− }
453− },
454− "resources": {
455− "projects": {
456− "resources": {
457− "topics": {
458− "methods": {
459− "setIamPolicy": {
460− "id": "pubsub.projects.topics.setIamPolicy",
461− "path": "v1/{+resource}:setIamPolicy",
462− "httpMethod": "POST",
463− "description": "Sets the access control policy on the specified resource. Replaces any existing policy.",
464− "parameters": {
465− "resource": {
466− "type": "string",
467− "description": "REQUIRED: The resource for which the policy is being specified. `resource` is usually specified as a path. For example, a Project resource is specified as `projects/{project}`.",
468− "required": true,
469− "pattern": "^projects/[^/]*/topics/[^/]*$",
470− "location": "path"
712+ "schemas": {
713+ "Topic": {
714+ "description": "A topic resource.",
715+ "type": "object",
716+ "properties": {
717+ "name": {
718+ "description": "The name of the topic. It must have the format\n`\"projects/{project}/topics/{topic}\"`. `{topic}` must start with a letter,\nand contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),\nunderscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent\nsigns (`%`). It must be between 3 and 255 characters in length, and it\nmust not start with `\"goog\"`.",
719+ "type": "string"
471720 }
472− },
473− "parameterOrder": [
474− "resource"
475− ],
476− "request": {
477− "$ref": "SetIamPolicyRequest"
478− },
479− "response": {
480− "$ref": "Policy"
481− },
482− "scopes": [
483− "https://www.googleapis.com/auth/cloud-platform",
484− "https://www.googleapis.com/auth/pubsub"
485− ]
486721 },
487− "getIamPolicy": {
488− "id": "pubsub.projects.topics.getIamPolicy",
489− "path": "v1/{+resource}:getIamPolicy",
490− "httpMethod": "GET",
491− "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.",
492− "parameters": {
493− "resource": {
494− "type": "string",
495− "description": "REQUIRED: The resource for which the policy is being requested. `resource` is usually specified as a path. For example, a Project resource is specified as `projects/{project}`.",
496− "required": true,
497− "pattern": "^projects/[^/]*/topics/[^/]*$",
498− "location": "path"
722+ "id": "Topic"
723+ },
724+ "SetIamPolicyRequest": {
725+ "description": "Request message for `SetIamPolicy` method.",
726+ "type": "object",
727+ "properties": {
728+ "policy": {
729+ "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 empty policy is a\nvalid policy but certain Cloud Platform services (such as Projects)\nmight reject them.",
730+ "$ref": "Policy"
499731 }
500− },
501− "parameterOrder": [
502− "resource"
503− ],
504− "response": {
505− "$ref": "Policy"
506− },
507− "scopes": [
508− "https://www.googleapis.com/auth/cloud-platform",
509− "https://www.googleapis.com/auth/pubsub"
510− ]
511732 },
512− "testIamPermissions": {
513− "id": "pubsub.projects.topics.testIamPermissions",
514− "path": "v1/{+resource}:testIamPermissions",
515− "httpMethod": "POST",
516− "description": "Returns permissions that a caller has on the specified resource.",
517− "parameters": {
518− "resource": {
519− "type": "string",
520− "description": "REQUIRED: The resource for which the policy detail is being requested. `resource` is usually specified as a path. For example, a Project resource is specified as `projects/{project}`.",
521− "required": true,
522− "pattern": "^projects/[^/]*/topics/[^/]*$",
523− "location": "path"
733+ "id": "SetIamPolicyRequest"
734+ },
735+ "ReceivedMessage": {
736+ "description": "A message and its corresponding acknowledgment ID.",
737+ "type": "object",
738+ "properties": {
739+ "ackId": {
740+ "description": "This ID can be used to acknowledge the received message.",
741+ "type": "string"
742+ },
743+ "message": {
744+ "description": "The message.",
745+ "$ref": "PubsubMessage"
524746 }
525− },
526− "parameterOrder": [
527− "resource"
528− ],
529− "request": {
530− "$ref": "TestIamPermissionsRequest"
531− },
532− "response": {
533− "$ref": "TestIamPermissionsResponse"
534− },
535− "scopes": [
536− "https://www.googleapis.com/auth/cloud-platform",
537− "https://www.googleapis.com/auth/pubsub"
538− ]
539747 },
540− "create": {
541− "id": "pubsub.projects.topics.create",
542− "path": "v1/{+name}",
543− "httpMethod": "PUT",
544− "description": "Creates the given topic with the given name.",
545− "parameters": {
546− "name": {
547− "type": "string",
548− "description": "The name of the topic. It must have the format `\"projects/{project}/topics/{topic}\"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `\"goog\"`.",
549− "required": true,
550− "pattern": "^projects/[^/]*/topics/[^/]*$",
551− "location": "path"
748+ "id": "ReceivedMessage"
749+ },
750+ "PublishRequest": {
751+ "description": "Request for the Publish method.",
752+ "type": "object",
753+ "properties": {
754+ "messages": {
755+ "description": "The messages to publish.",
756+ "type": "array",
757+ "items": {
758+ "$ref": "PubsubMessage"
759+ }
552760 }
553− },
554− "parameterOrder": [
555− "name"
556− ],
557− "request": {
558− "$ref": "Topic"
559− },
560− "response": {
561− "$ref": "Topic"
562− },
563− "scopes": [
564− "https://www.googleapis.com/auth/cloud-platform",
565− "https://www.googleapis.com/auth/pubsub"
566− ]
567761 },
568− "publish": {
569− "id": "pubsub.projects.topics.publish",
570− "path": "v1/{+topic}:publish",
571− "httpMethod": "POST",
572− "description": "Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The message payload must not be empty; it must contain either a non-empty data field, or at least one attribute.",
573− "parameters": {
574− "topic": {
575− "type": "string",
576− "description": "The messages in the request will be published on this topic.",
577− "required": true,
578− "pattern": "^projects/[^/]*/topics/[^/]*$",
579− "location": "path"
762+ "id": "PublishRequest"
763+ },
764+ "TestIamPermissionsResponse": {
765+ "description": "Response message for `TestIamPermissions` method.",
766+ "type": "object",
767+ "properties": {
768+ "permissions": {
769+ "description": "A subset of `TestPermissionsRequest.permissions` that the caller is\nallowed.",
770+ "type": "array",
771+ "items": {
772+ "type": "string"
773+ }
580774 }
581− },
582− "parameterOrder": [
583− "topic"
584− ],
585− "request": {
586− "$ref": "PublishRequest"
587− },
588− "response": {
589− "$ref": "PublishResponse"
590− },
591− "scopes": [
592− "https://www.googleapis.com/auth/cloud-platform",
593− "https://www.googleapis.com/auth/pubsub"
594− ]
595775 },
596− "get": {
597− "id": "pubsub.projects.topics.get",
598− "path": "v1/{+topic}",
599− "httpMethod": "GET",
600− "description": "Gets the configuration of a topic.",
601− "parameters": {
602− "topic": {
603− "type": "string",
604− "description": "The name of the topic to get.",
605− "required": true,
606− "pattern": "^projects/[^/]*/topics/[^/]*$",
607− "location": "path"
776+ "id": "TestIamPermissionsResponse"
777+ },
778+ "PublishResponse": {
779+ "description": "Response for the `Publish` method.",
780+ "type": "object",
781+ "properties": {
782+ "messageIds": {
783+ "description": "The server-assigned ID of each published message, in the same order as\nthe messages in the request. IDs are guaranteed to be unique within\nthe topic.",
784+ "type": "array",
785+ "items": {
786+ "type": "string"
787+ }
608788 }
609− },
610− "parameterOrder": [
611− "topic"
612− ],
613− "response": {
614− "$ref": "Topic"
615− },
616− "scopes": [
617− "https://www.googleapis.com/auth/cloud-platform",
618− "https://www.googleapis.com/auth/pubsub"
619− ]
620789 },
621− "list": {
622− "id": "pubsub.projects.topics.list",
623− "path": "v1/{+project}/topics",
624− "httpMethod": "GET",
625− "description": "Lists matching topics.",
626− "parameters": {
627− "project": {
628− "type": "string",
629− "description": "The name of the cloud project that topics belong to.",
630− "required": true,
631− "pattern": "^projects/[^/]*$",
632− "location": "path"
633− },
634− "pageSize": {
635− "type": "integer",
636− "description": "Maximum number of topics to return.",
637− "format": "int32",
638− "location": "query"
790+ "id": "PublishResponse"
791+ },
792+ "ListSubscriptionsResponse": {
793+ "description": "Response for the `ListSubscriptions` method.",
794+ "type": "object",
795+ "properties": {
796+ "subscriptions": {
797+ "description": "The subscriptions that match the request.",
798+ "type": "array",
799+ "items": {
800+ "$ref": "Subscription"
801+ }
639802 },
640− "pageToken": {
641− "type": "string",
642− "description": "The value returned by the last `ListTopicsResponse`; indicates that this is a continuation of a prior `ListTopics` call, and that the system should return the next page of data.",
643− "location": "query"
803+ "nextPageToken": {
804+ "description": "If not empty, indicates that there may be more subscriptions that match\nthe request; this value should be passed in a new\n`ListSubscriptionsRequest` to get more subscriptions.",
805+ "type": "string"
644806 }
645− },
646− "parameterOrder": [
647− "project"
648− ],
649− "response": {
650− "$ref": "ListTopicsResponse"
651− },
652− "scopes": [
653− "https://www.googleapis.com/auth/cloud-platform",
654− "https://www.googleapis.com/auth/pubsub"
655− ]
656807 },
657− "delete": {
658− "id": "pubsub.projects.topics.delete",
659− "path": "v1/{+topic}",
660− "httpMethod": "DELETE",
661− "description": "Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a topic is deleted, a new topic may be created with the same name; this is an entirely new topic with none of the old configuration or subscriptions. Existing subscriptions to this topic are not deleted, but their `topic` field is set to `_deleted-topic_`.",
662− "parameters": {
663− "topic": {
664− "type": "string",
665− "description": "Name of the topic to delete.",
666− "required": true,
667− "pattern": "^projects/[^/]*/topics/[^/]*$",
668− "location": "path"
669− }
670− },
671− "parameterOrder": [
672− "topic"
673− ],
674− "response": {
675− "$ref": "Empty"
676− },
677− "scopes": [
678− "https://www.googleapis.com/auth/cloud-platform",
679− "https://www.googleapis.com/auth/pubsub"
680− ]
681− }
682− },
683− "resources": {
684− "subscriptions": {
685− "methods": {
686− "list": {
687− "id": "pubsub.projects.topics.subscriptions.list",
688− "path": "v1/{+topic}/subscriptions",
689− "httpMethod": "GET",
690− "description": "Lists the name of the subscriptions for this topic.",
691− "parameters": {
692− "topic": {
693− "type": "string",
694− "description": "The name of the topic that subscriptions are attached to.",
695− "required": true,
696− "pattern": "^projects/[^/]*/topics/[^/]*$",
697− "location": "path"
698− },
699− "pageSize": {
700− "type": "integer",
701− "description": "Maximum number of subscription names to return.",
702− "format": "int32",
703− "location": "query"
704− },
705− "pageToken": {
706− "type": "string",
707− "description": "The value returned by the last `ListTopicSubscriptionsResponse`; indicates that this is a continuation of a prior `ListTopicSubscriptions` call, and that the system should return the next page of data.",
708− "location": "query"
808+ "id": "ListSubscriptionsResponse"
809+ },
810+ "Policy": {
811+ "description": "Defines an Identity and Access Management (IAM) policy. 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,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined 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.gserviceaccount.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).",
812+ "type": "object",
813+ "properties": {
814+ "bindings": {
815+ "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.",
816+ "type": "array",
817+ "items": {
818+ "$ref": "Binding"
709819 }
710− },
711− "parameterOrder": [
712− "topic"
713− ],
714− "response": {
715− "$ref": "ListTopicSubscriptionsResponse"
716− },
717− "scopes": [
718− "https://www.googleapis.com/auth/cloud-platform",
719− "https://www.googleapis.com/auth/pubsub"
720− ]
820+ },
821+ "etag": {
822+ "description": "`etag` is used for optimistic concurrency control as a way to help\nprevent simultaneous updates of a policy from overwriting each other.\nIt is strongly suggested that systems make use of the `etag` in the\nread-modify-write cycle to perform policy updates in order to avoid race\nconditions: 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 their change will be applied to the same version of the policy.\n\nIf no `etag` is provided in the call to `setIamPolicy`, then the existing\npolicy is overwritten blindly.",
823+ "type": "string",
824+ "format": "byte"
825+ },
826+ "version": {
827+ "description": "Version of the `Policy`. The default version is 0.",
828+ "type": "integer",
829+ "format": "int32"
721830 }
722− }
723− }
724− }
831+ },
832+ "id": "Policy"
725833 },
726− "subscriptions": {
727− "methods": {
728− "setIamPolicy": {
729− "id": "pubsub.projects.subscriptions.setIamPolicy",
730− "path": "v1/{+resource}:setIamPolicy",
731− "httpMethod": "POST",
732− "description": "Sets the access control policy on the specified resource. Replaces any existing policy.",
733− "parameters": {
734− "resource": {
735− "type": "string",
736− "description": "REQUIRED: The resource for which the policy is being specified. `resource` is usually specified as a path. For example, a Project resource is specified as `projects/{project}`.",
737− "required": true,
738− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
739− "location": "path"
834+ "ListTopicSubscriptionsResponse": {
835+ "description": "Response for the `ListTopicSubscriptions` method.",
836+ "type": "object",
837+ "properties": {
838+ "subscriptions": {
839+ "description": "The names of the subscriptions that match the request.",
840+ "type": "array",
841+ "items": {
842+ "type": "string"
843+ }
844+ },
845+ "nextPageToken": {
846+ "description": "If not empty, indicates that there may be more subscriptions that match\nthe request; this value should be passed in a new\n`ListTopicSubscriptionsRequest` to get more subscriptions.",
847+ "type": "string"
740848 }
741− },
742− "parameterOrder": [
743− "resource"
744− ],
745− "request": {
746− "$ref": "SetIamPolicyRequest"
747− },
748− "response": {
749− "$ref": "Policy"
750− },
751− "scopes": [
752− "https://www.googleapis.com/auth/cloud-platform",
753− "https://www.googleapis.com/auth/pubsub"
754− ]
755849 },
756− "getIamPolicy": {
757− "id": "pubsub.projects.subscriptions.getIamPolicy",
758− "path": "v1/{+resource}:getIamPolicy",
759− "httpMethod": "GET",
760− "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.",
761− "parameters": {
762− "resource": {
763− "type": "string",
764− "description": "REQUIRED: The resource for which the policy is being requested. `resource` is usually specified as a path. For example, a Project resource is specified as `projects/{project}`.",
765− "required": true,
766− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
767− "location": "path"
850+ "id": "ListTopicSubscriptionsResponse"
851+ },
852+ "Subscription": {
853+ "description": "A subscription resource.",
854+ "type": "object",
855+ "properties": {
856+ "pushConfig": {
857+ "description": "If push delivery is used with this subscription, this field is\nused to configure it. An empty `pushConfig` signifies that the subscriber\nwill pull and ack messages using API methods.",
858+ "$ref": "PushConfig"
859+ },
860+ "topic": {
861+ "description": "The name of the topic from which this subscription is receiving messages.\nFormat is `projects/{project}/topics/{topic}`.\nThe value of this field will be `_deleted-topic_` if the topic has been\ndeleted.",
862+ "type": "string"
863+ },
864+ "ackDeadlineSeconds": {
865+ "description": "This value is the maximum time after a subscriber receives a message\nbefore the subscriber should acknowledge the message. After message\ndelivery but before the ack deadline expires and before the message is\nacknowledged, it is an outstanding message and will not be delivered\nagain during that time (on a best-effort basis).\n\nFor pull subscriptions, this value is used as the initial value for the ack\ndeadline. To override this value for 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 maximum custom deadline you can specify is 600 seconds (10 minutes).\nIf this parameter is 0, a default value of 10 seconds is used.\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.",
866+ "type": "integer",
867+ "format": "int32"
868+ },
869+ "name": {
870+ "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 characters\nin length, and it must not start with `\"goog\"`.",
871+ "type": "string"
768872 }
769− },
770− "parameterOrder": [
771− "resource"
772− ],
773− "response": {
774− "$ref": "Policy"
775− },
776− "scopes": [
777− "https://www.googleapis.com/auth/cloud-platform",
778− "https://www.googleapis.com/auth/pubsub"
779− ]
780873 },
781− "testIamPermissions": {
782− "id": "pubsub.projects.subscriptions.testIamPermissions",
783− "path": "v1/{+resource}:testIamPermissions",
784− "httpMethod": "POST",
785− "description": "Returns permissions that a caller has on the specified resource.",
786− "parameters": {
787− "resource": {
788− "type": "string",
789− "description": "REQUIRED: The resource for which the policy detail is being requested. `resource` is usually specified as a path. For example, a Project resource is specified as `projects/{project}`.",
790− "required": true,
791− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
792− "location": "path"
874+ "id": "Subscription"
875+ },
876+ "ModifyAckDeadlineRequest": {
877+ "description": "Request for the ModifyAckDeadline method.",
878+ "type": "object",
879+ "properties": {
880+ "ackDeadlineSeconds": {
881+ "description": "The new ack deadline with respect to the time this request was sent to\nthe Pub/Sub system. For example, if the value is 10, the new\nack deadline will expire 10 seconds after the `ModifyAckDeadline` call\nwas made. Specifying zero may immediately make the message available for\nanother pull request.\nThe minimum deadline you can specify is 0 seconds.\nThe maximum deadline you can specify is 600 seconds (10 minutes).",
882+ "type": "integer",
883+ "format": "int32"
884+ },
885+ "ackIds": {
886+ "description": "List of acknowledgment IDs.",
887+ "type": "array",
888+ "items": {
889+ "type": "string"
890+ }
793891 }
794− },
795− "parameterOrder": [
796− "resource"
797− ],
798− "request": {
799− "$ref": "TestIamPermissionsRequest"
800− },
801− "response": {
802− "$ref": "TestIamPermissionsResponse"
803− },
804− "scopes": [
805− "https://www.googleapis.com/auth/cloud-platform",
806− "https://www.googleapis.com/auth/pubsub"
807− ]
808892 },
809− "create": {
810− "id": "pubsub.projects.subscriptions.create",
811− "path": "v1/{+name}",
812− "httpMethod": "PUT",
813− "description": "Creates a subscription to a given topic. If the subscription already exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the request, the server will assign a random name for this subscription on the same project as the topic. Note that for REST API requests, you must specify a name.",
814− "parameters": {
815− "name": {
816− "type": "string",
817− "description": "The name of the subscription. It must have the format `\"projects/{project}/subscriptions/{subscription}\"`. `{subscription}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `\"goog\"`.",
818− "required": true,
819− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
820− "location": "path"
893+ "id": "ModifyAckDeadlineRequest"
894+ },
895+ "TestIamPermissionsRequest": {
896+ "description": "Request message for `TestIamPermissions` method.",
897+ "type": "object",
898+ "properties": {
899+ "permissions": {
900+ "description": "The set of permissions to check for the `resource`. Permissions with\nwildcards (such as '*' or 'storage.*') are not allowed. For more\ninformation see\n[IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).",
901+ "type": "array",
902+ "items": {
903+ "type": "string"
904+ }
821905 }
822− },
823− "parameterOrder": [
824− "name"
825− ],
826− "request": {
827− "$ref": "Subscription"
828− },
829− "response": {
830− "$ref": "Subscription"
831− },
832− "scopes": [
833− "https://www.googleapis.com/auth/cloud-platform",
834− "https://www.googleapis.com/auth/pubsub"
835− ]
836906 },
837− "get": {
838− "id": "pubsub.projects.subscriptions.get",
839− "path": "v1/{+subscription}",
840− "httpMethod": "GET",
841− "description": "Gets the configuration details of a subscription.",
842− "parameters": {
843− "subscription": {
844− "type": "string",
845− "description": "The name of the subscription to get.",
846− "required": true,
847− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
848− "location": "path"
907+ "id": "TestIamPermissionsRequest"
908+ },
909+ "PushConfig": {
910+ "description": "Configuration for a push delivery endpoint.",
911+ "type": "object",
912+ "properties": {
913+ "attributes": {
914+ "description": "Endpoint configuration attributes.\n\nEvery endpoint has a set of API supported attributes that can be used to\ncontrol different 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. This attribute\nindicates the version of the data expected by the endpoint. This\ncontrols 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 the `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 will not be changed. `GetSubscription`\ncalls will always return a valid version, even if the subscription was\ncreated without this attribute.\n\nThe possible values 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 v1 Pub/Sub API.",
915+ "additionalProperties": {
916+ "type": "string"
917+ },
918+ "type": "object"
919+ },
920+ "pushEndpoint": {
921+ "description": "A URL locating the endpoint to which messages should be pushed.\nFor example, a Webhook endpoint might use \"https://example.com/push\".",
922+ "type": "string"
849923 }
850− },
851− "parameterOrder": [
852− "subscription"
853− ],
854− "response": {
855− "$ref": "Subscription"
856− },
857− "scopes": [
858− "https://www.googleapis.com/auth/cloud-platform",
859− "https://www.googleapis.com/auth/pubsub"
860− ]
861924 },
862− "list": {
863− "id": "pubsub.projects.subscriptions.list",
864− "path": "v1/{+project}/subscriptions",
865− "httpMethod": "GET",
866− "description": "Lists matching subscriptions.",
867− "parameters": {
868− "project": {
869− "type": "string",
870− "description": "The name of the cloud project that subscriptions belong to.",
871− "required": true,
872− "pattern": "^projects/[^/]*$",
873− "location": "path"
874− },
875− "pageSize": {
876− "type": "integer",
877− "description": "Maximum number of subscriptions to return.",
878− "format": "int32",
879− "location": "query"
925+ "id": "PushConfig"
926+ },
927+ "PullRequest": {
928+ "description": "Request for the `Pull` method.",
929+ "type": "object",
930+ "properties": {
931+ "returnImmediately": {
932+ "description": "If this field set to true, the system will respond 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.",
933+ "type": "boolean"
880934 },
881− "pageToken": {
882− "type": "string",
883− "description": "The value returned by the last `ListSubscriptionsResponse`; indicates that this is a continuation of a prior `ListSubscriptions` call, and that the system should return the next page of data.",
884− "location": "query"
935+ "maxMessages": {
936+ "description": "The maximum number of messages returned for this request. The Pub/Sub\nsystem may return fewer than the number specified.",
937+ "type": "integer",
938+ "format": "int32"
885939 }
886− },
887− "parameterOrder": [
888− "project"
889− ],
890− "response": {
891− "$ref": "ListSubscriptionsResponse"
892− },
893− "scopes": [
894− "https://www.googleapis.com/auth/cloud-platform",
895− "https://www.googleapis.com/auth/pubsub"
896− ]
897940 },
898− "delete": {
899− "id": "pubsub.projects.subscriptions.delete",
900− "path": "v1/{+subscription}",
901− "httpMethod": "DELETE",
902− "description": "Deletes an existing subscription. All messages retained in the subscription are immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`. After a subscription is deleted, a new one may be created with the same name, but the new one has no association with the old subscription or its topic unless the same topic is specified.",
903− "parameters": {
904− "subscription": {
905− "type": "string",
906− "description": "The subscription to delete.",
907− "required": true,
908− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
909− "location": "path"
941+ "id": "PullRequest"
942+ },
943+ "ModifyPushConfigRequest": {
944+ "description": "Request for the ModifyPushConfig method.",
945+ "type": "object",
946+ "properties": {
947+ "pushConfig": {
948+ "description": "The push configuration for future deliveries.\n\nAn empty `pushConfig` indicates that the Pub/Sub system should\nstop pushing messages from the given subscription and allow\nmessages to be pulled and acknowledged - effectively pausing\nthe subscription if `Pull` is not called.",
949+ "$ref": "PushConfig"
910950 }
911− },
912− "parameterOrder": [
913− "subscription"
914− ],
915− "response": {
916− "$ref": "Empty"
917− },
918− "scopes": [
919− "https://www.googleapis.com/auth/cloud-platform",
920− "https://www.googleapis.com/auth/pubsub"
921− ]
922951 },
923− "modifyAckDeadline": {
924− "id": "pubsub.projects.subscriptions.modifyAckDeadline",
925− "path": "v1/{+subscription}:modifyAckDeadline",
926− "httpMethod": "POST",
927− "description": "Modifies the ack deadline for a specific message. This method is useful to indicate that more time is needed to process a message by the subscriber, or to make the message available for redelivery if the processing was interrupted. Note that this does not modify the subscription-level `ackDeadlineSeconds` used for subsequent messages.",
928− "parameters": {
929− "subscription": {
930− "type": "string",
931− "description": "The name of the subscription.",
932− "required": true,
933− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
934− "location": "path"
952+ "id": "ModifyPushConfigRequest"
953+ },
954+ "PullResponse": {
955+ "description": "Response for the `Pull` method.",
956+ "type": "object",
957+ "properties": {
958+ "receivedMessages": {
959+ "description": "Received Pub/Sub messages. The Pub/Sub system will return zero messages if\nthere are no more available in the backlog. The Pub/Sub system may return\nfewer than the `maxMessages` requested even if there are more messages\navailable in the backlog.",
960+ "type": "array",
961+ "items": {
962+ "$ref": "ReceivedMessage"
963+ }
935964 }
936− },
937− "parameterOrder": [
938− "subscription"
939− ],
940− "request": {
941− "$ref": "ModifyAckDeadlineRequest"
942− },
943− "response": {
944− "$ref": "Empty"
945− },
946− "scopes": [
947− "https://www.googleapis.com/auth/cloud-platform",
948− "https://www.googleapis.com/auth/pubsub"
949− ]
950965 },
951− "acknowledge": {
952− "id": "pubsub.projects.subscriptions.acknowledge",
953− "path": "v1/{+subscription}:acknowledge",
954− "httpMethod": "POST",
955− "description": "Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages from the subscription. Acknowledging a message whose ack deadline has expired may succeed, but such a message may be redelivered later. Acknowledging a message more than once will not result in an error.",
956− "parameters": {
957− "subscription": {
958− "type": "string",
959− "description": "The subscription whose message is being acknowledged.",
960− "required": true,
961− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
962− "location": "path"
966+ "id": "PullResponse"
967+ },
968+ "PubsubMessage": {
969+ "description": "A message data and its attributes. The message payload must not be empty;\nit must contain either a non-empty data field, or at least one attribute.",
970+ "type": "object",
971+ "properties": {
972+ "data": {
973+ "description": "The message payload.",
974+ "type": "string",
975+ "format": "byte"
976+ },
977+ "attributes": {
978+ "description": "Optional attributes for this message.",
979+ "additionalProperties": {
980+ "type": "string"
981+ },
982+ "type": "object"
983+ },
984+ "messageId": {
985+ "description": "ID of this message, assigned by the server when the message is published.\nGuaranteed to be unique within the topic. This value may be read by a\nsubscriber that receives a `PubsubMessage` via a `Pull` call or a push\ndelivery. It must not be populated by the publisher in a `Publish` call.",
986+ "type": "string"
987+ },
988+ "publishTime": {
989+ "description": "The time at which the message was published, populated by the server when\nit receives the `Publish` call. It must not be populated by the\npublisher in a `Publish` call.",
990+ "type": "string",
991+ "format": "google-datetime"
963992 }
964− },
965− "parameterOrder": [
966− "subscription"
967− ],
968− "request": {
969− "$ref": "AcknowledgeRequest"
970− },
971− "response": {
972− "$ref": "Empty"
973− },
974− "scopes": [
975− "https://www.googleapis.com/auth/cloud-platform",
976− "https://www.googleapis.com/auth/pubsub"
977− ]
978993 },
979− "pull": {
980− "id": "pubsub.projects.subscriptions.pull",
981− "path": "v1/{+subscription}:pull",
982− "httpMethod": "POST",
983− "description": "Pulls messages from the server. Returns an empty list if there are no messages available in the backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests pending for the given subscription.",
984− "parameters": {
985− "subscription": {
986− "type": "string",
987− "description": "The subscription from which messages should be pulled.",
988− "required": true,
989− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
990− "location": "path"
994+ "id": "PubsubMessage"
995+ },
996+ "AcknowledgeRequest": {
997+ "description": "Request for the Acknowledge method.",
998+ "type": "object",
999+ "properties": {
1000+ "ackIds": {
1001+ "description": "The acknowledgment ID for the messages being acknowledged that was returned\nby the Pub/Sub system in the `Pull` response. Must not be empty.",
1002+ "type": "array",
1003+ "items": {
1004+ "type": "string"
1005+ }
9911006 }
992− },
993− "parameterOrder": [
994− "subscription"
995− ],
996− "request": {
997− "$ref": "PullRequest"
998− },
999− "response": {
1000− "$ref": "PullResponse"
1001− },
1002− "scopes": [
1003− "https://www.googleapis.com/auth/cloud-platform",
1004− "https://www.googleapis.com/auth/pubsub"
1005− ]
10061007 },
1007− "modifyPushConfig": {
1008− "id": "pubsub.projects.subscriptions.modifyPushConfig",
1009− "path": "v1/{+subscription}:modifyPushConfig",
1010− "httpMethod": "POST",
1011− "description": "Modifies the `PushConfig` for a specified subscription. This may be used to change a push subscription to a pull one (signified by an empty `PushConfig`) or vice versa, or change the endpoint URL and other attributes of a push subscription. Messages will accumulate for delivery continuously through the call regardless of changes to the `PushConfig`.",
1012− "parameters": {
1013− "subscription": {
1014− "type": "string",
1015− "description": "The name of the subscription.",
1016− "required": true,
1017− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
1018− "location": "path"
1019− }
1020− },
1021− "parameterOrder": [
1022− "subscription"
1023− ],
1024− "request": {
1025− "$ref": "ModifyPushConfigRequest"
1026− },
1027− "response": {
1028− "$ref": "Empty"
1029− },
1030− "scopes": [
1031− "https://www.googleapis.com/auth/cloud-platform",
1032− "https://www.googleapis.com/auth/pubsub"
1033− ]
1034− }
1035− }
1008+ "id": "AcknowledgeRequest"
1009+ },
1010+ "Empty": {
1011+ "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 it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
1012+ "type": "object",
1013+ "properties": {},
1014+ "id": "Empty"
10361015 },
1037− "snapshots": {
1038− "methods": {
1039− "setIamPolicy": {
1040− "id": "pubsub.projects.snapshots.setIamPolicy",
1041− "path": "v1/{+resource}:setIamPolicy",
1042− "httpMethod": "POST",
1043− "description": "Sets the access control policy on the specified resource. Replaces any existing policy.",
1044− "parameters": {
1045− "resource": {
1046− "type": "string",
1047− "description": "REQUIRED: The resource for which the policy is being specified. `resource` is usually specified as a path. For example, a Project resource is specified as `projects/{project}`.",
1048− "required": true,
1049− "pattern": "^projects/[^/]*/snapshots/[^/]*$",
1050− "location": "path"
1016+ "ListTopicsResponse": {
1017+ "description": "Response for the `ListTopics` method.",
1018+ "type": "object",
1019+ "properties": {
1020+ "nextPageToken": {
1021+ "description": "If not empty, indicates that there may be more topics that match the\nrequest; this value should be passed in a new `ListTopicsRequest`.",
1022+ "type": "string"
1023+ },
1024+ "topics": {
1025+ "description": "The resulting topics.",
1026+ "type": "array",
1027+ "items": {
1028+ "$ref": "Topic"
1029+ }
10511030 }
1052− },
1053− "parameterOrder": [
1054− "resource"
1055− ],
1056− "request": {
1057− "$ref": "SetIamPolicyRequest"
1058− },
1059− "response": {
1060− "$ref": "Policy"
1061− },
1062− "scopes": [
1063− "https://www.googleapis.com/auth/cloud-platform",
1064− "https://www.googleapis.com/auth/pubsub"
1065− ]
10661031 },
1067− "getIamPolicy": {
1068− "id": "pubsub.projects.snapshots.getIamPolicy",
1069− "path": "v1/{+resource}:getIamPolicy",
1070− "httpMethod": "GET",
1071− "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.",
1072− "parameters": {
1073− "resource": {
1074− "type": "string",
1075− "description": "REQUIRED: The resource for which the policy is being requested. `resource` is usually specified as a path. For example, a Project resource is specified as `projects/{project}`.",
1076− "required": true,
1077− "pattern": "^projects/[^/]*/snapshots/[^/]*$",
1078− "location": "path"
1032+ "id": "ListTopicsResponse"
1033+ },
1034+ "Binding": {
1035+ "description": "Associates `members` with a `role`.",
1036+ "type": "object",
1037+ "properties": {
1038+ "members": {
1039+ "description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier 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 specific 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:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
1040+ "type": "array",
1041+ "items": {
1042+ "type": "string"
1043+ }
1044+ },
1045+ "role": {
1046+ "description": "Role that is assigned to `members`.\nFor example, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired",
1047+ "type": "string"
10791048 }
1080− },
1081− "parameterOrder": [
1082− "resource"
1083− ],
1084− "response": {
1085− "$ref": "Policy"
1086− },
1087− "scopes": [
1088− "https://www.googleapis.com/auth/cloud-platform",
1089− "https://www.googleapis.com/auth/pubsub"
1090− ]
10911049 },
1092− "testIamPermissions": {
1093− "id": "pubsub.projects.snapshots.testIamPermissions",
1094− "path": "v1/{+resource}:testIamPermissions",
1095− "httpMethod": "POST",
1096− "description": "Returns permissions that a caller has on the specified resource.",
1097− "parameters": {
1098− "resource": {
1099− "type": "string",
1100− "description": "REQUIRED: The resource for which the policy detail is being requested. `resource` is usually specified as a path. For example, a Project resource is specified as `projects/{project}`.",
1101− "required": true,
1102− "pattern": "^projects/[^/]*/snapshots/[^/]*$",
1103− "location": "path"
1104− }
1105− },
1106− "parameterOrder": [
1107− "resource"
1108− ],
1109− "request": {
1110− "$ref": "TestIamPermissionsRequest"
1111− },
1112− "response": {
1113− "$ref": "TestIamPermissionsResponse"
1114− },
1115− "scopes": [
1116− "https://www.googleapis.com/auth/cloud-platform",
1117− "https://www.googleapis.com/auth/pubsub"
1118− ]
1119− }
1120− }
1050+ "id": "Binding"
11211051 }
1122− }
1123− }
1124− }
1052+ },
1053+ "revision": "20170105",
1054+ "basePath": "",
1055+ "icons": {
1056+ "x32": "http://www.google.com/images/icons/product/search-32.gif",
1057+ "x16": "http://www.google.com/images/icons/product/search-16.gif"
1058+ },
1059+ "discoveryVersion": "v1",
1060+ "baseUrl": "https://pubsub.googleapis.com/",
1061+ "name": "pubsub",
1062+ "parameters": {
1063+ "access_token": {
1064+ "description": "OAuth access token.",
1065+ "type": "string",
1066+ "location": "query"
1067+ },
1068+ "prettyPrint": {
1069+ "description": "Returns response with indentations and line breaks.",
1070+ "default": "true",
1071+ "type": "boolean",
1072+ "location": "query"
1073+ },
1074+ "key": {
1075+ "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
1076+ "type": "string",
1077+ "location": "query"
1078+ },
1079+ "quotaUser": {
1080+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
1081+ "type": "string",
1082+ "location": "query"
1083+ },
1084+ "pp": {
1085+ "description": "Pretty-print response.",
1086+ "default": "true",
1087+ "type": "boolean",
1088+ "location": "query"
1089+ },
1090+ "fields": {
1091+ "description": "Selector specifying which fields to include in a partial response.",
1092+ "type": "string",
1093+ "location": "query"
1094+ },
1095+ "alt": {
1096+ "description": "Data format for response.",
1097+ "location": "query",
1098+ "enum": [
1099+ "json",
1100+ "media",
1101+ "proto"
1102+ ],
1103+ "default": "json",
1104+ "enumDescriptions": [
1105+ "Responses with Content-Type of application/json",
1106+ "Media download with context-dependent Content-Type",
1107+ "Responses with Content-Type of application/x-protobuf"
1108+ ],
1109+ "type": "string"
1110+ },
1111+ "$.xgafv": {
1112+ "description": "V1 error format.",
1113+ "enum": [
1114+ "1",
1115+ "2"
1116+ ],
1117+ "enumDescriptions": [
1118+ "v1 error format",
1119+ "v2 error format"
1120+ ],
1121+ "type": "string",
1122+ "location": "query"
1123+ },
1124+ "callback": {
1125+ "description": "JSONP",
1126+ "type": "string",
1127+ "location": "query"
1128+ },
1129+ "oauth_token": {
1130+ "description": "OAuth 2.0 token for the current user.",
1131+ "type": "string",
1132+ "location": "query"
1133+ },
1134+ "uploadType": {
1135+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
1136+ "type": "string",
1137+ "location": "query"
1138+ },
1139+ "bearer_token": {
1140+ "description": "OAuth bearer token.",
1141+ "type": "string",
1142+ "location": "query"
1143+ },
1144+ "upload_protocol": {
1145+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
1146+ "type": "string",
1147+ "location": "query"
1148+ }
1149+ },
1150+ "documentationLink": "https://cloud.google.com/pubsub/docs",
1151+ "ownerDomain": "google.com",
1152+ "batchPath": "batch",
1153+ "servicePath": "",
1154+ "ownerName": "Google",
1155+ "version": "v1",
1156+ "rootUrl": "https://pubsub.googleapis.com/",
1157+ "kind": "discovery#restDescription"
11251158}