on develop help sign in
Updating pubsub service definition
commit4d69b9fc7cfaff220bd45b010c5e2e445b2aa7c4 authorBrendan Hay <brendan.g.hay@gmail.com> dateSat 11 Feb 2017, 11:26 (10 years ago) parentc431ac1
3 files changed+2923−2816
gen/model/pubsub/v1/pubsub-api.json+1107−1074 gen/model/pubsub/v1beta1a/pubsub-api.json+791−747 gen/model/pubsub/v1beta2/pubsub-api.json+1025−995
gen/model/pubsub/v1/pubsub-api.json+1107−1074
@@ -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}
gen/model/pubsub/v1beta1a/pubsub-api.json+791−747
@@ -1,762 +1,806 @@
11{
2− "kind": "discovery#restDescription",
3− "etag": "\"bRFOOrZKfO9LweMbPqu0kcu6De8/ft5e0mAa0pM0yLl11xc0-o7HfkI\"",
4− "discoveryVersion": "v1",
5− "id": "pubsub:v1beta1a",
6− "name": "pubsub",
7− "version": "v1beta1a",
8− "revision": "20151103",
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− "Topic": {
117− "id": "Topic",
118− "type": "object",
119− "description": "A topic resource.",
120− "properties": {
121− "name": {
122− "type": "string",
123− "description": "Name of the topic."
124− }
125− }
126− },
127− "PublishRequest": {
128− "id": "PublishRequest",
129− "type": "object",
130− "description": "Request for the Publish method.",
131− "properties": {
132− "topic": {
133− "type": "string",
134− "description": "The message in the request will be published on this topic."
135− },
136− "message": {
137− "$ref": "PubsubMessage",
138− "description": "The message to publish."
139− }
140− }
141− },
142− "PubsubMessage": {
143− "id": "PubsubMessage",
144− "type": "object",
145− "description": "A message data and its labels.",
146− "properties": {
147− "data": {
148− "type": "string",
149− "description": "The message payload.",
150− "format": "byte"
151− },
152− "label": {
153− "type": "array",
154− "description": "Optional list of labels for this message. Keys in this collection must be unique.",
155− "items": {
156− "$ref": "Label"
157− }
158− },
159− "messageId": {
160− "type": "string",
161− "description": "ID of this message assigned by the server at publication time. 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 a publisher in a Publish call."
162− },
163− "publishTime": {
164− "type": "string",
165− "description": "The time at which the message was published. The time is milliseconds since the UNIX epoch.",
166− "format": "int64"
167− }
168− }
169− },
170− "Label": {
171− "id": "Label",
172− "type": "object",
173− "description": "A key-value pair applied to a given object.",
174− "properties": {
175− "key": {
176− "type": "string",
177− "description": "The key of a label is a syntactically valid URL (as per RFC 1738) with the \"scheme\" and initial slashes omitted and with the additional restrictions noted below. Each key should be globally unique. The \"host\" portion is called the \"namespace\" and is not necessarily resolvable to a network endpoint. Instead, the namespace indicates what system or entity defines the semantics of the label. Namespaces do not restrict the set of objects to which a label may be associated. Keys are defined by the following grammar: key = hostname \"/\" kpath kpath = ksegment *[ \"/\" ksegment ] ksegment = alphadigit | *[ alphadigit | \"-\" | \"_\" | \".\" ] where \"hostname\" and \"alphadigit\" are defined as in RFC 1738. Example key: spanner.google.com/universe"
178− },
179− "strValue": {
180− "type": "string",
181− "description": "A string value."
182− },
183− "numValue": {
184− "type": "string",
185− "description": "An integer value.",
186− "format": "int64"
187− }
188− }
189− },
190− "Empty": {
191− "id": "Empty",
192− "type": "object",
193− "description": "An empty message that you can re-use to avoid defining duplicated empty messages in your project. A typical example is to use it as argument or the return value of a service API. For instance: service Foo { rpc Bar (proto2.Empty) returns (proto2.Empty) { }; }; BEGIN GOOGLE-INTERNAL The difference between this one and net/rpc/empty-message.proto is that 1) The generated message here is in proto2 C++ API. 2) The proto2.Empty has minimum dependencies (no message_set or net/rpc dependencies) END GOOGLE-INTERNAL"
194− },
195− "PublishBatchRequest": {
196− "id": "PublishBatchRequest",
197− "type": "object",
198− "description": "Request for the PublishBatch method.",
199− "properties": {
200− "topic": {
201− "type": "string",
202− "description": "The messages in the request will be published on this topic."
203− },
204− "messages": {
205− "type": "array",
206− "description": "The messages to publish.",
207− "items": {
208− "$ref": "PubsubMessage"
209− }
210− }
211− }
212− },
213− "PublishBatchResponse": {
214− "id": "PublishBatchResponse",
215− "type": "object",
216− "description": "Response for the PublishBatch method.",
217− "properties": {
218− "messageIds": {
219− "type": "array",
220− "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.",
221− "items": {
222− "type": "string"
223− }
224− }
225− }
226− },
227− "ListTopicsResponse": {
228− "id": "ListTopicsResponse",
229− "type": "object",
230− "description": "Response for the ListTopics method.",
231− "properties": {
232− "topic": {
233− "type": "array",
234− "description": "The resulting topics.",
235− "items": {
236− "$ref": "Topic"
237− }
238− },
239− "nextPageToken": {
240− "type": "string",
241− "description": "If not empty, indicates that there are more topics that match the request, and this value should be passed to the next ListTopicsRequest to continue."
242− }
243− }
244− },
245− "Subscription": {
246− "id": "Subscription",
247− "type": "object",
248− "description": "A subscription resource.",
249− "properties": {
250− "name": {
251− "type": "string",
252− "description": "Name of the subscription."
253− },
254− "topic": {
255− "type": "string",
256− "description": "The name of the topic from which this subscription is receiving messages."
257− },
258− "pushConfig": {
259− "$ref": "PushConfig",
260− "description": "If push delivery is used with this subscription, this field is used to configure it."
261− },
262− "ackDeadlineSeconds": {
263− "type": "integer",
264− "description": "For either push or pull delivery, the value is the maximum time after a subscriber receives a message before the subscriber should acknowledge or Nack the message. If the Ack deadline for a message passes without an Ack or a Nack, the Pub/Sub system will eventually redeliver the message. If a subscriber acknowledges after the deadline, the Pub/Sub system may accept the Ack, but it is possible that the message has been already delivered again. Multiple Acks to the message are allowed and will succeed. For push delivery, this value is used to set the request timeout for the call to the push endpoint. For pull delivery, this value is used as the initial value for the Ack deadline. It may be overridden for each message using its corresponding ack_id with ModifyAckDeadline. While a message is outstanding (i.e. it has been delivered to a pull subscriber and the subscriber has not yet Acked or Nacked), the Pub/Sub system will not deliver that message to another pull subscriber (on a best-effort basis).",
265− "format": "int32"
266− }
267− }
268− },
269− "PushConfig": {
270− "id": "PushConfig",
271− "type": "object",
272− "description": "Configuration for a push delivery endpoint.",
273− "properties": {
274− "pushEndpoint": {
275− "type": "string",
276− "description": "A URL locating the endpoint to which messages should be pushed. For example, a Webhook endpoint might use \"https://example.com/push\"."
277− }
278− }
279− },
280− "ListSubscriptionsResponse": {
281− "id": "ListSubscriptionsResponse",
282− "type": "object",
283− "description": "Response for the ListSubscriptions method.",
284− "properties": {
285− "subscription": {
286− "type": "array",
287− "description": "The subscriptions that match the request.",
288− "items": {
289− "$ref": "Subscription"
290− }
291− },
292− "nextPageToken": {
293− "type": "string",
294− "description": "If not empty, indicates that there are more subscriptions that match the request and this value should be passed to the next ListSubscriptionsRequest to continue."
295− }
296− }
297− },
298− "ModifyPushConfigRequest": {
299− "id": "ModifyPushConfigRequest",
300− "type": "object",
301− "description": "Request for the ModifyPushConfig method.",
302− "properties": {
303− "subscription": {
304− "type": "string",
305− "description": "The name of the subscription."
306− },
307− "pushConfig": {
308− "$ref": "PushConfig",
309− "description": "An empty push_config indicates that the Pub/Sub system should pause pushing messages from the given subscription."
310− }
311− }
312− },
313− "PullRequest": {
314− "id": "PullRequest",
315− "type": "object",
316− "description": "Request for the Pull method.",
317− "properties": {
318− "subscription": {
319− "type": "string",
320− "description": "The subscription from which a message should be pulled."
321− },
322− "returnImmediately": {
323− "type": "boolean",
324− "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 FAILED_PRECONDITION. The client may cancel the request if it does not wish to wait any longer for the response."
325− }
326− }
327− },
328− "PullResponse": {
329− "id": "PullResponse",
330− "type": "object",
331− "description": "Either a PubsubMessage or a truncation event. One of these two must be populated.",
332− "properties": {
333− "ackId": {
334− "type": "string",
335− "description": "This ID must be used to acknowledge the received event or message."
336− },
337− "pubsubEvent": {
338− "$ref": "PubsubEvent",
339− "description": "A pubsub message or truncation event."
340− }
341− }
342− },
343− "PubsubEvent": {
344− "id": "PubsubEvent",
345− "type": "object",
346− "description": "An event indicating a received message or truncation event.",
347− "properties": {
348− "subscription": {
349− "type": "string",
350− "description": "The subscription that received the event."
351− },
352− "message": {
353− "$ref": "PubsubMessage",
354− "description": "A received message."
355− },
356− "truncated": {
357− "type": "boolean",
358− "description": "Indicates that this subscription has been truncated."
359− },
360− "deleted": {
361− "type": "boolean",
362− "description": "Indicates that this subscription has been deleted. (Note that pull subscribers will always receive NOT_FOUND in response in their pull request on the subscription, rather than seeing this boolean.)"
2+ "id": "pubsub:v1beta1a",
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+ }
36313 }
364− }
36514 },
366− "PullBatchRequest": {
367− "id": "PullBatchRequest",
368− "type": "object",
369− "description": "Request for the PullBatch method.",
370− "properties": {
371− "subscription": {
372− "type": "string",
373− "description": "The subscription from which messages should be pulled."
374− },
375− "returnImmediately": {
376− "type": "boolean",
377− "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."
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+ "subscriptions": {
20+ "methods": {
21+ "modifyPushConfig": {
22+ "id": "pubsub.subscriptions.modifyPushConfig",
23+ "response": {
24+ "$ref": "Empty"
25+ },
26+ "parameterOrder": [],
27+ "description": "Modifies the \u003ccode\u003ePushConfig\u003c/code\u003e for a specified subscription.\nThis method can be used to suspend the flow of messages to an endpoint\nby clearing the \u003ccode\u003ePushConfig\u003c/code\u003e field in the request. Messages\nwill be accumulated for delivery even if no push configuration is\ndefined or while the configuration is modified.",
28+ "request": {
29+ "$ref": "ModifyPushConfigRequest"
30+ },
31+ "flatPath": "v1beta1a/subscriptions/modifyPushConfig",
32+ "httpMethod": "POST",
33+ "parameters": {},
34+ "path": "v1beta1a/subscriptions/modifyPushConfig",
35+ "scopes": [
36+ "https://www.googleapis.com/auth/cloud-platform",
37+ "https://www.googleapis.com/auth/pubsub"
38+ ]
39+ },
40+ "pull": {
41+ "id": "pubsub.subscriptions.pull",
42+ "response": {
43+ "$ref": "PullResponse"
44+ },
45+ "parameterOrder": [],
46+ "description": "Pulls a single message from the server.\nIf return_immediately is true, and no messages are available in the\nsubscription, this method returns FAILED_PRECONDITION. The system is free\nto return an UNAVAILABLE error if no messages are available in a\nreasonable amount of time (to reduce system load).",
47+ "request": {
48+ "$ref": "PullRequest"
49+ },
50+ "flatPath": "v1beta1a/subscriptions/pull",
51+ "httpMethod": "POST",
52+ "parameters": {},
53+ "path": "v1beta1a/subscriptions/pull",
54+ "scopes": [
55+ "https://www.googleapis.com/auth/cloud-platform",
56+ "https://www.googleapis.com/auth/pubsub"
57+ ]
58+ },
59+ "list": {
60+ "id": "pubsub.subscriptions.list",
61+ "response": {
62+ "$ref": "ListSubscriptionsResponse"
63+ },
64+ "parameterOrder": [],
65+ "description": "Lists matching subscriptions.",
66+ "flatPath": "v1beta1a/subscriptions",
67+ "httpMethod": "GET",
68+ "parameters": {
69+ "query": {
70+ "description": "A valid label query expression.",
71+ "location": "query",
72+ "type": "string"
73+ },
74+ "maxResults": {
75+ "description": "Maximum number of subscriptions to return.",
76+ "location": "query",
77+ "type": "integer",
78+ "format": "int32"
79+ },
80+ "pageToken": {
81+ "description": "The value obtained in the last \u003ccode\u003eListSubscriptionsResponse\u003c/code\u003e\nfor continuation.",
82+ "location": "query",
83+ "type": "string"
84+ }
85+ },
86+ "path": "v1beta1a/subscriptions",
87+ "scopes": [
88+ "https://www.googleapis.com/auth/cloud-platform",
89+ "https://www.googleapis.com/auth/pubsub"
90+ ]
91+ },
92+ "get": {
93+ "id": "pubsub.subscriptions.get",
94+ "response": {
95+ "$ref": "Subscription"
96+ },
97+ "parameterOrder": [
98+ "subscription"
99+ ],
100+ "description": "Gets the configuration details of a subscription.",
101+ "flatPath": "v1beta1a/subscriptions/{subscriptionsId}",
102+ "httpMethod": "GET",
103+ "parameters": {
104+ "subscription": {
105+ "description": "The name of the subscription to get.",
106+ "required": true,
107+ "pattern": "^.+$",
108+ "location": "path",
109+ "type": "string"
110+ }
111+ },
112+ "path": "v1beta1a/subscriptions/{+subscription}",
113+ "scopes": [
114+ "https://www.googleapis.com/auth/cloud-platform",
115+ "https://www.googleapis.com/auth/pubsub"
116+ ]
117+ },
118+ "pullBatch": {
119+ "id": "pubsub.subscriptions.pullBatch",
120+ "response": {
121+ "$ref": "PullBatchResponse"
122+ },
123+ "parameterOrder": [],
124+ "description": "Pulls messages from the server. Returns an empty list if there are no\nmessages available in the backlog. The system is free to return UNAVAILABLE\nif there are too many pull requests outstanding for the given subscription.",
125+ "request": {
126+ "$ref": "PullBatchRequest"
127+ },
128+ "flatPath": "v1beta1a/subscriptions/pullBatch",
129+ "httpMethod": "POST",
130+ "parameters": {},
131+ "path": "v1beta1a/subscriptions/pullBatch",
132+ "scopes": [
133+ "https://www.googleapis.com/auth/cloud-platform",
134+ "https://www.googleapis.com/auth/pubsub"
135+ ]
136+ },
137+ "create": {
138+ "id": "pubsub.subscriptions.create",
139+ "response": {
140+ "$ref": "Subscription"
141+ },
142+ "parameterOrder": [],
143+ "description": "Creates a subscription on a given topic for a given subscriber.\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.",
144+ "request": {
145+ "$ref": "Subscription"
146+ },
147+ "flatPath": "v1beta1a/subscriptions",
148+ "httpMethod": "POST",
149+ "parameters": {},
150+ "path": "v1beta1a/subscriptions",
151+ "scopes": [
152+ "https://www.googleapis.com/auth/cloud-platform",
153+ "https://www.googleapis.com/auth/pubsub"
154+ ]
155+ },
156+ "modifyAckDeadline": {
157+ "id": "pubsub.subscriptions.modifyAckDeadline",
158+ "response": {
159+ "$ref": "Empty"
160+ },
161+ "parameterOrder": [],
162+ "description": "Modifies the Ack deadline for a message received from a pull request.",
163+ "request": {
164+ "$ref": "ModifyAckDeadlineRequest"
165+ },
166+ "flatPath": "v1beta1a/subscriptions/modifyAckDeadline",
167+ "httpMethod": "POST",
168+ "parameters": {},
169+ "path": "v1beta1a/subscriptions/modifyAckDeadline",
170+ "scopes": [
171+ "https://www.googleapis.com/auth/cloud-platform",
172+ "https://www.googleapis.com/auth/pubsub"
173+ ]
174+ },
175+ "delete": {
176+ "id": "pubsub.subscriptions.delete",
177+ "response": {
178+ "$ref": "Empty"
179+ },
180+ "parameterOrder": [
181+ "subscription"
182+ ],
183+ "description": "Deletes an existing subscription. All pending messages in the subscription\nare immediately dropped. Calls to Pull after deletion will return\nNOT_FOUND.",
184+ "flatPath": "v1beta1a/subscriptions/{subscriptionsId}",
185+ "httpMethod": "DELETE",
186+ "parameters": {
187+ "subscription": {
188+ "description": "The subscription to delete.",
189+ "required": true,
190+ "pattern": "^.+$",
191+ "location": "path",
192+ "type": "string"
193+ }
194+ },
195+ "path": "v1beta1a/subscriptions/{+subscription}",
196+ "scopes": [
197+ "https://www.googleapis.com/auth/cloud-platform",
198+ "https://www.googleapis.com/auth/pubsub"
199+ ]
200+ },
201+ "acknowledge": {
202+ "id": "pubsub.subscriptions.acknowledge",
203+ "response": {
204+ "$ref": "Empty"
205+ },
206+ "parameterOrder": [],
207+ "description": "Acknowledges a particular received message: the Pub/Sub system can remove\nthe given message from the subscription. Acknowledging a message whose\nAck deadline has expired may succeed, but the message could have been\nalready redelivered. Acknowledging a message more than once will not\nresult in an error. This is only used for messages received via pull.",
208+ "request": {
209+ "$ref": "AcknowledgeRequest"
210+ },
211+ "flatPath": "v1beta1a/subscriptions/acknowledge",
212+ "httpMethod": "POST",
213+ "parameters": {},
214+ "path": "v1beta1a/subscriptions/acknowledge",
215+ "scopes": [
216+ "https://www.googleapis.com/auth/cloud-platform",
217+ "https://www.googleapis.com/auth/pubsub"
218+ ]
219+ }
220+ }
378221 },
379− "maxEvents": {
380− "type": "integer",
381− "description": "The maximum number of PubsubEvents returned for this request. The Pub/Sub system may return fewer than the number of events specified.",
382− "format": "int32"
222+ "topics": {
223+ "methods": {
224+ "publish": {
225+ "id": "pubsub.topics.publish",
226+ "response": {
227+ "$ref": "Empty"
228+ },
229+ "parameterOrder": [],
230+ "description": "Adds a message to the topic. Returns NOT_FOUND if the topic does not\nexist.",
231+ "request": {
232+ "$ref": "PublishRequest"
233+ },
234+ "flatPath": "v1beta1a/topics/publish",
235+ "httpMethod": "POST",
236+ "parameters": {},
237+ "path": "v1beta1a/topics/publish",
238+ "scopes": [
239+ "https://www.googleapis.com/auth/cloud-platform",
240+ "https://www.googleapis.com/auth/pubsub"
241+ ]
242+ },
243+ "list": {
244+ "id": "pubsub.topics.list",
245+ "response": {
246+ "$ref": "ListTopicsResponse"
247+ },
248+ "parameterOrder": [],
249+ "description": "Lists matching topics.",
250+ "flatPath": "v1beta1a/topics",
251+ "httpMethod": "GET",
252+ "parameters": {
253+ "query": {
254+ "description": "A valid label query expression.",
255+ "location": "query",
256+ "type": "string"
257+ },
258+ "maxResults": {
259+ "description": "Maximum number of topics to return.",
260+ "location": "query",
261+ "type": "integer",
262+ "format": "int32"
263+ },
264+ "pageToken": {
265+ "description": "The value obtained in the last \u003ccode\u003eListTopicsResponse\u003c/code\u003e\nfor continuation.",
266+ "location": "query",
267+ "type": "string"
268+ }
269+ },
270+ "path": "v1beta1a/topics",
271+ "scopes": [
272+ "https://www.googleapis.com/auth/cloud-platform",
273+ "https://www.googleapis.com/auth/pubsub"
274+ ]
275+ },
276+ "get": {
277+ "id": "pubsub.topics.get",
278+ "response": {
279+ "$ref": "Topic"
280+ },
281+ "parameterOrder": [
282+ "topic"
283+ ],
284+ "description": "Gets the configuration of a topic. Since the topic only has the name\nattribute, this method is only useful to check the existence of a topic.\nIf other attributes are added in the future, they will be returned here.",
285+ "flatPath": "v1beta1a/topics/{topicsId}",
286+ "httpMethod": "GET",
287+ "parameters": {
288+ "topic": {
289+ "description": "The name of the topic to get.",
290+ "required": true,
291+ "pattern": "^.+$",
292+ "location": "path",
293+ "type": "string"
294+ }
295+ },
296+ "path": "v1beta1a/topics/{+topic}",
297+ "scopes": [
298+ "https://www.googleapis.com/auth/cloud-platform",
299+ "https://www.googleapis.com/auth/pubsub"
300+ ]
301+ },
302+ "publishBatch": {
303+ "id": "pubsub.topics.publishBatch",
304+ "response": {
305+ "$ref": "PublishBatchResponse"
306+ },
307+ "parameterOrder": [],
308+ "description": "Adds one or more messages to the topic. Returns NOT_FOUND if the topic does\nnot exist.",
309+ "request": {
310+ "$ref": "PublishBatchRequest"
311+ },
312+ "flatPath": "v1beta1a/topics/publishBatch",
313+ "httpMethod": "POST",
314+ "parameters": {},
315+ "path": "v1beta1a/topics/publishBatch",
316+ "scopes": [
317+ "https://www.googleapis.com/auth/cloud-platform",
318+ "https://www.googleapis.com/auth/pubsub"
319+ ]
320+ },
321+ "create": {
322+ "id": "pubsub.topics.create",
323+ "response": {
324+ "$ref": "Topic"
325+ },
326+ "parameterOrder": [],
327+ "description": "Creates the given topic with the given name.",
328+ "request": {
329+ "$ref": "Topic"
330+ },
331+ "flatPath": "v1beta1a/topics",
332+ "httpMethod": "POST",
333+ "parameters": {},
334+ "path": "v1beta1a/topics",
335+ "scopes": [
336+ "https://www.googleapis.com/auth/cloud-platform",
337+ "https://www.googleapis.com/auth/pubsub"
338+ ]
339+ },
340+ "delete": {
341+ "id": "pubsub.topics.delete",
342+ "response": {
343+ "$ref": "Empty"
344+ },
345+ "parameterOrder": [
346+ "topic"
347+ ],
348+ "description": "Deletes the topic with the given name. Returns NOT_FOUND if the topic does\nnot exist. After a topic is deleted, a new topic may be created with the\nsame name.",
349+ "flatPath": "v1beta1a/topics/{topicsId}",
350+ "httpMethod": "DELETE",
351+ "parameters": {
352+ "topic": {
353+ "description": "Name of the topic to delete.",
354+ "required": true,
355+ "pattern": "^.+$",
356+ "location": "path",
357+ "type": "string"
358+ }
359+ },
360+ "path": "v1beta1a/topics/{+topic}",
361+ "scopes": [
362+ "https://www.googleapis.com/auth/cloud-platform",
363+ "https://www.googleapis.com/auth/pubsub"
364+ ]
365+ }
366+ }
383367 }
384− }
385368 },
386− "PullBatchResponse": {
387− "id": "PullBatchResponse",
388− "type": "object",
389− "description": "Response for the PullBatch method.",
390− "properties": {
391− "pullResponses": {
392− "type": "array",
393− "description": "Received Pub/Sub messages or status events. The Pub/Sub system will return zero messages if there are no more messages available in the backlog. The Pub/Sub system may return fewer than the max_events requested even if there are more messages available in the backlog.",
394− "items": {
395− "$ref": "PullResponse"
396− }
369+ "schemas": {
370+ "PullBatchResponse": {
371+ "description": "Response for the PullBatch method.",
372+ "type": "object",
373+ "properties": {
374+ "pullResponses": {
375+ "description": "Received Pub/Sub messages or status events. The Pub/Sub system will return\nzero messages if there are no more messages available in the backlog. The\nPub/Sub system may return fewer than the max_events requested even if\nthere are more messages available in the backlog.",
376+ "type": "array",
377+ "items": {
378+ "$ref": "PullResponse"
379+ }
380+ }
381+ },
382+ "id": "PullBatchResponse"
383+ },
384+ "Topic": {
385+ "description": "A topic resource.",
386+ "type": "object",
387+ "properties": {
388+ "name": {
389+ "description": "Name of the topic.",
390+ "type": "string"
391+ }
392+ },
393+ "id": "Topic"
394+ },
395+ "PublishBatchResponse": {
396+ "description": "Response for the PublishBatch method.",
397+ "type": "object",
398+ "properties": {
399+ "messageIds": {
400+ "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.",
401+ "type": "array",
402+ "items": {
403+ "type": "string"
404+ }
405+ }
406+ },
407+ "id": "PublishBatchResponse"
408+ },
409+ "PublishRequest": {
410+ "description": "Request for the Publish method.",
411+ "type": "object",
412+ "properties": {
413+ "topic": {
414+ "description": "The message in the request will be published on this topic.",
415+ "type": "string"
416+ },
417+ "message": {
418+ "description": "The message to publish.",
419+ "$ref": "PubsubMessage"
420+ }
421+ },
422+ "id": "PublishRequest"
423+ },
424+ "ListSubscriptionsResponse": {
425+ "description": "Response for the ListSubscriptions method.",
426+ "type": "object",
427+ "properties": {
428+ "nextPageToken": {
429+ "description": "If not empty, indicates that there are more subscriptions that match the\nrequest and this value should be passed to the next\n\u003ccode\u003eListSubscriptionsRequest\u003c/code\u003e to continue.",
430+ "type": "string"
431+ },
432+ "subscription": {
433+ "description": "The subscriptions that match the request.",
434+ "type": "array",
435+ "items": {
436+ "$ref": "Subscription"
437+ }
438+ }
439+ },
440+ "id": "ListSubscriptionsResponse"
441+ },
442+ "Subscription": {
443+ "description": "A subscription resource.",
444+ "type": "object",
445+ "properties": {
446+ "pushConfig": {
447+ "description": "If push delivery is used with this subscription, this field is\nused to configure it.",
448+ "$ref": "PushConfig"
449+ },
450+ "topic": {
451+ "description": "The name of the topic from which this subscription is receiving messages.",
452+ "type": "string"
453+ },
454+ "ackDeadlineSeconds": {
455+ "description": "For either push or pull delivery, the value is the maximum time after a\nsubscriber receives a message before the subscriber should acknowledge or\nNack the message. If the Ack deadline for a message passes without an\nAck or a Nack, the Pub/Sub system will eventually redeliver the message.\nIf a subscriber acknowledges after the deadline, the Pub/Sub system may\naccept the Ack, but it is possible that the message has been already\ndelivered again. Multiple Acks to the message are allowed and will\nsucceed.\n\nFor push delivery, this value is used to set the request timeout for\nthe call to the push endpoint.\n\nFor pull delivery, this value is used as the initial value for the Ack\ndeadline. It may be overridden for each message using its corresponding\nack_id with \u003ccode\u003eModifyAckDeadline\u003c/code\u003e.\nWhile a message is outstanding (i.e. it has been delivered to a pull\nsubscriber and the subscriber has not yet Acked or Nacked), the Pub/Sub\nsystem will not deliver that message to another pull subscriber\n(on a best-effort basis).",
456+ "type": "integer",
457+ "format": "int32"
458+ },
459+ "name": {
460+ "description": "Name of the subscription.",
461+ "type": "string"
462+ }
463+ },
464+ "id": "Subscription"
465+ },
466+ "Label": {
467+ "description": "A key-value pair applied to a given object.",
468+ "type": "object",
469+ "properties": {
470+ "strValue": {
471+ "description": "A string value.",
472+ "type": "string"
473+ },
474+ "key": {
475+ "description": "The key of a label is a syntactically valid URL (as per RFC 1738) with\nthe \"scheme\" and initial slashes omitted and with the additional\nrestrictions noted below. Each key should be globally unique. The\n\"host\" portion is called the \"namespace\" and is not necessarily\nresolvable to a network endpoint. Instead, the namespace indicates what\nsystem or entity defines the semantics of the label. Namespaces do not\nrestrict the set of objects to which a label may be associated.\n\nKeys are defined by the following grammar:\n\n key = hostname \"/\" kpath\n kpath = ksegment *[ \"/\" ksegment ]\n ksegment = alphadigit | *[ alphadigit | \"-\" | \"_\" | \".\" ]\n\nwhere \"hostname\" and \"alphadigit\" are defined as in RFC 1738.\n\nExample key:\n spanner.google.com/universe",
476+ "type": "string"
477+ },
478+ "numValue": {
479+ "description": "An integer value.",
480+ "type": "string",
481+ "format": "int64"
482+ }
483+ },
484+ "id": "Label"
485+ },
486+ "ModifyAckDeadlineRequest": {
487+ "description": "Request for the ModifyAckDeadline method.",
488+ "type": "object",
489+ "properties": {
490+ "ackDeadlineSeconds": {
491+ "description": "The new ack deadline with respect to the time this request was sent to the\nPub/Sub system. Must be \u003e= 0. For example, if the value is 10, the new ack\ndeadline will expire 10 seconds after the ModifyAckDeadline call was made.\nSpecifying zero may immediately make the message available for another pull\nrequest.",
492+ "type": "integer",
493+ "format": "int32"
494+ },
495+ "ackId": {
496+ "description": "The acknowledgment ID. Either this or ack_ids must be populated,\nnot both.",
497+ "type": "string"
498+ },
499+ "subscription": {
500+ "description": "Next Index: 5\nThe name of the subscription from which messages are being pulled.",
501+ "type": "string"
502+ },
503+ "ackIds": {
504+ "description": "List of acknowledgment IDs. Either this field or ack_id\nshould be populated, not both.",
505+ "type": "array",
506+ "items": {
507+ "type": "string"
508+ }
509+ }
510+ },
511+ "id": "ModifyAckDeadlineRequest"
512+ },
513+ "PushConfig": {
514+ "description": "Configuration for a push delivery endpoint.",
515+ "type": "object",
516+ "properties": {
517+ "pushEndpoint": {
518+ "description": "A URL locating the endpoint to which messages should be pushed.\nFor example, a Webhook endpoint might use \"https://example.com/push\".",
519+ "type": "string"
520+ }
521+ },
522+ "id": "PushConfig"
523+ },
524+ "PullRequest": {
525+ "description": "Request for the Pull method.",
526+ "type": "object",
527+ "properties": {
528+ "returnImmediately": {
529+ "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 response. Otherwise the\nsystem is allowed to wait until at least one message is available rather\nthan returning FAILED_PRECONDITION. The client may cancel the request if\nit does not wish to wait any longer for the response.",
530+ "type": "boolean"
531+ },
532+ "subscription": {
533+ "description": "The subscription from which a message should be pulled.",
534+ "type": "string"
535+ }
536+ },
537+ "id": "PullRequest"
538+ },
539+ "ModifyPushConfigRequest": {
540+ "description": "Request for the ModifyPushConfig method.",
541+ "type": "object",
542+ "properties": {
543+ "pushConfig": {
544+ "description": "An empty \u003ccode\u003epush_config\u003c/code\u003e indicates that the Pub/Sub system should\npause pushing messages from the given subscription.",
545+ "$ref": "PushConfig"
546+ },
547+ "subscription": {
548+ "description": "The name of the subscription.",
549+ "type": "string"
550+ }
551+ },
552+ "id": "ModifyPushConfigRequest"
553+ },
554+ "PullResponse": {
555+ "description": "Either a \u003ccode\u003ePubsubMessage\u003c/code\u003e or a truncation event. One of these two\nmust be populated.",
556+ "type": "object",
557+ "properties": {
558+ "pubsubEvent": {
559+ "description": "A pubsub message or truncation event.",
560+ "$ref": "PubsubEvent"
561+ },
562+ "ackId": {
563+ "description": "This ID must be used to acknowledge the received event or message.",
564+ "type": "string"
565+ }
566+ },
567+ "id": "PullResponse"
568+ },
569+ "PubsubMessage": {
570+ "description": "A message data and its labels.",
571+ "type": "object",
572+ "properties": {
573+ "data": {
574+ "description": "The message payload.",
575+ "type": "string",
576+ "format": "byte"
577+ },
578+ "messageId": {
579+ "description": "ID of this message assigned by the server at publication time. Guaranteed\nto be unique within the topic. This value may be read by a subscriber\nthat receives a PubsubMessage via a Pull call or a push delivery. It must\nnot be populated by a publisher in a Publish call.",
580+ "type": "string"
581+ },
582+ "publishTime": {
583+ "description": "The time at which the message was published.\nThe time is milliseconds since the UNIX epoch.",
584+ "type": "string",
585+ "format": "int64"
586+ },
587+ "label": {
588+ "description": "Optional list of labels for this message. Keys in this collection must\nbe unique.",
589+ "type": "array",
590+ "items": {
591+ "$ref": "Label"
592+ }
593+ }
594+ },
595+ "id": "PubsubMessage"
596+ },
597+ "PublishBatchRequest": {
598+ "description": "Request for the PublishBatch method.",
599+ "type": "object",
600+ "properties": {
601+ "topic": {
602+ "description": "The messages in the request will be published on this topic.",
603+ "type": "string"
604+ },
605+ "messages": {
606+ "description": "The messages to publish.",
607+ "type": "array",
608+ "items": {
609+ "$ref": "PubsubMessage"
610+ }
611+ }
612+ },
613+ "id": "PublishBatchRequest"
614+ },
615+ "AcknowledgeRequest": {
616+ "description": "Request for the Acknowledge method.",
617+ "type": "object",
618+ "properties": {
619+ "ackId": {
620+ "description": "The acknowledgment ID for the message being acknowledged. This was\nreturned by the Pub/Sub system in the Pull response.",
621+ "type": "array",
622+ "items": {
623+ "type": "string"
624+ }
625+ },
626+ "subscription": {
627+ "description": "The subscription whose message is being acknowledged.",
628+ "type": "string"
629+ }
630+ },
631+ "id": "AcknowledgeRequest"
632+ },
633+ "Empty": {
634+ "description": "An empty message that you can re-use to avoid defining duplicated empty\nmessages in your project. A typical example is to use it as argument or the\nreturn value of a service API. For instance:\n\n service Foo {\n rpc Bar (proto2.Empty) returns (proto2.Empty) { };\n };\n\nBEGIN GOOGLE-INTERNAL\nThe difference between this one and net/rpc/empty-message.proto is that\n1) The generated message here is in proto2 C++ API.\n2) The proto2.Empty has minimum dependencies\n (no message_set or net/rpc dependencies)\nEND GOOGLE-INTERNAL",
635+ "type": "object",
636+ "properties": {},
637+ "id": "Empty"
638+ },
639+ "ListTopicsResponse": {
640+ "description": "Response for the ListTopics method.",
641+ "type": "object",
642+ "properties": {
643+ "topic": {
644+ "description": "The resulting topics.",
645+ "type": "array",
646+ "items": {
647+ "$ref": "Topic"
648+ }
649+ },
650+ "nextPageToken": {
651+ "description": "If not empty, indicates that there are more topics that match the request,\nand this value should be passed to the next \u003ccode\u003eListTopicsRequest\u003c/code\u003e\nto continue.",
652+ "type": "string"
653+ }
654+ },
655+ "id": "ListTopicsResponse"
656+ },
657+ "PubsubEvent": {
658+ "description": "An event indicating a received message or truncation event.",
659+ "type": "object",
660+ "properties": {
661+ "truncated": {
662+ "description": "Indicates that this subscription has been truncated.",
663+ "type": "boolean"
664+ },
665+ "deleted": {
666+ "description": "Indicates that this subscription has been deleted. (Note that pull\nsubscribers will always receive NOT_FOUND in response in their pull\nrequest on the subscription, rather than seeing this boolean.)",
667+ "type": "boolean"
668+ },
669+ "subscription": {
670+ "description": "The subscription that received the event.",
671+ "type": "string"
672+ },
673+ "message": {
674+ "description": "A received message.",
675+ "$ref": "PubsubMessage"
676+ }
677+ },
678+ "id": "PubsubEvent"
679+ },
680+ "PullBatchRequest": {
681+ "description": "Request for the PullBatch method.",
682+ "type": "object",
683+ "properties": {
684+ "maxEvents": {
685+ "description": "The maximum number of PubsubEvents returned for this request. The Pub/Sub\nsystem may return fewer than the number of events specified.",
686+ "type": "integer",
687+ "format": "int32"
688+ },
689+ "returnImmediately": {
690+ "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 response. 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.",
691+ "type": "boolean"
692+ },
693+ "subscription": {
694+ "description": "The subscription from which messages should be pulled.",
695+ "type": "string"
696+ }
697+ },
698+ "id": "PullBatchRequest"
397699 }
398− }
399700 },
400− "ModifyAckDeadlineRequest": {
401− "id": "ModifyAckDeadlineRequest",
402− "type": "object",
403− "description": "Request for the ModifyAckDeadline method.",
404− "properties": {
405− "subscription": {
406− "type": "string",
407− "description": "Next Index: 5 The name of the subscription from which messages are being pulled."
408− },
409− "ackId": {
410− "type": "string",
411− "description": "The acknowledgment ID. Either this or ack_ids must be populated, not both."
412− },
413− "ackIds": {
414− "type": "array",
415− "description": "List of acknowledgment IDs. Either this field or ack_id should be populated, not both.",
416− "items": {
417− "type": "string"
418− }
419− },
420− "ackDeadlineSeconds": {
421− "type": "integer",
422− "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.",
423− "format": "int32"
424− }
425− }
701+ "revision": "20170105",
702+ "basePath": "",
703+ "icons": {
704+ "x32": "http://www.google.com/images/icons/product/search-32.gif",
705+ "x16": "http://www.google.com/images/icons/product/search-16.gif"
426706 },
427− "AcknowledgeRequest": {
428− "id": "AcknowledgeRequest",
429− "type": "object",
430− "description": "Request for the Acknowledge method.",
431− "properties": {
432− "subscription": {
433− "type": "string",
434− "description": "The subscription whose message is being acknowledged."
707+ "discoveryVersion": "v1",
708+ "baseUrl": "https://pubsub.googleapis.com/",
709+ "name": "pubsub",
710+ "parameters": {
711+ "access_token": {
712+ "description": "OAuth access token.",
713+ "type": "string",
714+ "location": "query"
715+ },
716+ "prettyPrint": {
717+ "description": "Returns response with indentations and line breaks.",
718+ "default": "true",
719+ "type": "boolean",
720+ "location": "query"
435721 },
436− "ackId": {
437− "type": "array",
438− "description": "The acknowledgment ID for the message being acknowledged. This was returned by the Pub/Sub system in the Pull response.",
439− "items": {
722+ "key": {
723+ "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.",
724+ "type": "string",
725+ "location": "query"
726+ },
727+ "quotaUser": {
728+ "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.",
729+ "type": "string",
730+ "location": "query"
731+ },
732+ "pp": {
733+ "description": "Pretty-print response.",
734+ "default": "true",
735+ "type": "boolean",
736+ "location": "query"
737+ },
738+ "fields": {
739+ "description": "Selector specifying which fields to include in a partial response.",
740+ "type": "string",
741+ "location": "query"
742+ },
743+ "alt": {
744+ "description": "Data format for response.",
745+ "location": "query",
746+ "enum": [
747+ "json",
748+ "media",
749+ "proto"
750+ ],
751+ "default": "json",
752+ "enumDescriptions": [
753+ "Responses with Content-Type of application/json",
754+ "Media download with context-dependent Content-Type",
755+ "Responses with Content-Type of application/x-protobuf"
756+ ],
440757 "type": "string"
441− }
442− }
443− }
444− }
445− },
446− "resources": {
447− "topics": {
448− "methods": {
449− "create": {
450− "id": "pubsub.topics.create",
451− "path": "v1beta1a/topics",
452− "httpMethod": "POST",
453− "description": "Creates the given topic with the given name.",
454− "request": {
455− "$ref": "Topic"
456− },
457− "response": {
458− "$ref": "Topic"
459− },
460− "scopes": [
461− "https://www.googleapis.com/auth/cloud-platform",
462− "https://www.googleapis.com/auth/pubsub"
463− ]
464− },
465− "publish": {
466− "id": "pubsub.topics.publish",
467− "path": "v1beta1a/topics/publish",
468− "httpMethod": "POST",
469− "description": "Adds a message to the topic. Returns NOT_FOUND if the topic does not exist.",
470− "request": {
471− "$ref": "PublishRequest"
472− },
473− "response": {
474− "$ref": "Empty"
475− },
476− "scopes": [
477− "https://www.googleapis.com/auth/cloud-platform",
478− "https://www.googleapis.com/auth/pubsub"
479− ]
480− },
481− "publishBatch": {
482− "id": "pubsub.topics.publishBatch",
483− "path": "v1beta1a/topics/publishBatch",
484− "httpMethod": "POST",
485− "description": "Adds one or more messages to the topic. Returns NOT_FOUND if the topic does not exist.",
486− "request": {
487− "$ref": "PublishBatchRequest"
488− },
489− "response": {
490− "$ref": "PublishBatchResponse"
491− },
492− "scopes": [
493− "https://www.googleapis.com/auth/cloud-platform",
494− "https://www.googleapis.com/auth/pubsub"
495− ]
496758 },
497− "get": {
498− "id": "pubsub.topics.get",
499− "path": "v1beta1a/topics/{+topic}",
500− "httpMethod": "GET",
501− "description": "Gets the configuration of a topic. Since the topic only has the name attribute, this method is only useful to check the existence of a topic. If other attributes are added in the future, they will be returned here.",
502− "parameters": {
503− "topic": {
504− "type": "string",
505− "description": "The name of the topic to get.",
506− "required": true,
507− "pattern": "^.*$",
508− "location": "path"
509− }
510− },
511− "parameterOrder": [
512− "topic"
513− ],
514− "response": {
515− "$ref": "Topic"
516− },
517− "scopes": [
518− "https://www.googleapis.com/auth/cloud-platform",
519− "https://www.googleapis.com/auth/pubsub"
520− ]
521− },
522− "list": {
523− "id": "pubsub.topics.list",
524− "path": "v1beta1a/topics",
525− "httpMethod": "GET",
526− "description": "Lists matching topics.",
527− "parameters": {
528− "query": {
529− "type": "string",
530− "description": "A valid label query expression.",
531− "location": "query"
532− },
533− "maxResults": {
534− "type": "integer",
535− "description": "Maximum number of topics to return.",
536− "format": "int32",
537− "location": "query"
538− },
539− "pageToken": {
540− "type": "string",
541− "description": "The value obtained in the last ListTopicsResponse for continuation.",
542− "location": "query"
543− }
544− },
545− "response": {
546− "$ref": "ListTopicsResponse"
547− },
548− "scopes": [
549− "https://www.googleapis.com/auth/cloud-platform",
550− "https://www.googleapis.com/auth/pubsub"
551− ]
552− },
553− "delete": {
554− "id": "pubsub.topics.delete",
555− "path": "v1beta1a/topics/{+topic}",
556− "httpMethod": "DELETE",
557− "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.",
558− "parameters": {
559− "topic": {
560− "type": "string",
561− "description": "Name of the topic to delete.",
562− "required": true,
563− "pattern": "^.*$",
564− "location": "path"
565− }
566− },
567− "parameterOrder": [
568− "topic"
569− ],
570− "response": {
571− "$ref": "Empty"
572− },
573− "scopes": [
574− "https://www.googleapis.com/auth/cloud-platform",
575− "https://www.googleapis.com/auth/pubsub"
576− ]
759+ "$.xgafv": {
760+ "description": "V1 error format.",
761+ "enum": [
762+ "1",
763+ "2"
764+ ],
765+ "enumDescriptions": [
766+ "v1 error format",
767+ "v2 error format"
768+ ],
769+ "type": "string",
770+ "location": "query"
771+ },
772+ "callback": {
773+ "description": "JSONP",
774+ "type": "string",
775+ "location": "query"
776+ },
777+ "oauth_token": {
778+ "description": "OAuth 2.0 token for the current user.",
779+ "type": "string",
780+ "location": "query"
781+ },
782+ "uploadType": {
783+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
784+ "type": "string",
785+ "location": "query"
786+ },
787+ "bearer_token": {
788+ "description": "OAuth bearer token.",
789+ "type": "string",
790+ "location": "query"
791+ },
792+ "upload_protocol": {
793+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
794+ "type": "string",
795+ "location": "query"
577796 }
578− }
579797 },
580− "subscriptions": {
581− "methods": {
582− "create": {
583− "id": "pubsub.subscriptions.create",
584− "path": "v1beta1a/subscriptions",
585− "httpMethod": "POST",
586− "description": "Creates a subscription on a given topic for a given subscriber. 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.",
587− "request": {
588− "$ref": "Subscription"
589− },
590− "response": {
591− "$ref": "Subscription"
592− },
593− "scopes": [
594− "https://www.googleapis.com/auth/cloud-platform",
595− "https://www.googleapis.com/auth/pubsub"
596− ]
597− },
598− "get": {
599− "id": "pubsub.subscriptions.get",
600− "path": "v1beta1a/subscriptions/{+subscription}",
601− "httpMethod": "GET",
602− "description": "Gets the configuration details of a subscription.",
603− "parameters": {
604− "subscription": {
605− "type": "string",
606− "description": "The name of the subscription to get.",
607− "required": true,
608− "pattern": "^.*$",
609− "location": "path"
610− }
611− },
612− "parameterOrder": [
613− "subscription"
614− ],
615− "response": {
616− "$ref": "Subscription"
617− },
618− "scopes": [
619− "https://www.googleapis.com/auth/cloud-platform",
620− "https://www.googleapis.com/auth/pubsub"
621− ]
622− },
623− "list": {
624− "id": "pubsub.subscriptions.list",
625− "path": "v1beta1a/subscriptions",
626− "httpMethod": "GET",
627− "description": "Lists matching subscriptions.",
628− "parameters": {
629− "query": {
630− "type": "string",
631− "description": "A valid label query expression.",
632− "location": "query"
633− },
634− "maxResults": {
635− "type": "integer",
636− "description": "Maximum number of subscriptions to return.",
637− "format": "int32",
638− "location": "query"
639− },
640− "pageToken": {
641− "type": "string",
642− "description": "The value obtained in the last ListSubscriptionsResponse for continuation.",
643− "location": "query"
644− }
645− },
646− "response": {
647− "$ref": "ListSubscriptionsResponse"
648− },
649− "scopes": [
650− "https://www.googleapis.com/auth/cloud-platform",
651− "https://www.googleapis.com/auth/pubsub"
652− ]
653− },
654− "delete": {
655− "id": "pubsub.subscriptions.delete",
656− "path": "v1beta1a/subscriptions/{+subscription}",
657− "httpMethod": "DELETE",
658− "description": "Deletes an existing subscription. All pending messages in the subscription are immediately dropped. Calls to Pull after deletion will return NOT_FOUND.",
659− "parameters": {
660− "subscription": {
661− "type": "string",
662− "description": "The subscription to delete.",
663− "required": true,
664− "pattern": "^.*$",
665− "location": "path"
666− }
667− },
668− "parameterOrder": [
669− "subscription"
670− ],
671− "response": {
672− "$ref": "Empty"
673− },
674− "scopes": [
675− "https://www.googleapis.com/auth/cloud-platform",
676− "https://www.googleapis.com/auth/pubsub"
677− ]
678− },
679− "modifyPushConfig": {
680− "id": "pubsub.subscriptions.modifyPushConfig",
681− "path": "v1beta1a/subscriptions/modifyPushConfig",
682− "httpMethod": "POST",
683− "description": "Modifies the PushConfig for a specified subscription. This method can be used to suspend the flow of messages to an endpoint by clearing the PushConfig field in the request. Messages will be accumulated for delivery even if no push configuration is defined or while the configuration is modified.",
684− "request": {
685− "$ref": "ModifyPushConfigRequest"
686− },
687− "response": {
688− "$ref": "Empty"
689− },
690− "scopes": [
691− "https://www.googleapis.com/auth/cloud-platform",
692− "https://www.googleapis.com/auth/pubsub"
693− ]
694− },
695− "pull": {
696− "id": "pubsub.subscriptions.pull",
697− "path": "v1beta1a/subscriptions/pull",
698− "httpMethod": "POST",
699− "description": "Pulls a single message from the server. If return_immediately is true, and no messages are available in the subscription, this method returns FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no messages are available in a reasonable amount of time (to reduce system load).",
700− "request": {
701− "$ref": "PullRequest"
702− },
703− "response": {
704− "$ref": "PullResponse"
705− },
706− "scopes": [
707− "https://www.googleapis.com/auth/cloud-platform",
708− "https://www.googleapis.com/auth/pubsub"
709− ]
710− },
711− "pullBatch": {
712− "id": "pubsub.subscriptions.pullBatch",
713− "path": "v1beta1a/subscriptions/pullBatch",
714− "httpMethod": "POST",
715− "description": "Pulls messages from the server. Returns an empty list if there are no messages available in the backlog. The system is free to return UNAVAILABLE if there are too many pull requests outstanding for the given subscription.",
716− "request": {
717− "$ref": "PullBatchRequest"
718− },
719− "response": {
720− "$ref": "PullBatchResponse"
721− },
722− "scopes": [
723− "https://www.googleapis.com/auth/cloud-platform",
724− "https://www.googleapis.com/auth/pubsub"
725− ]
726− },
727− "modifyAckDeadline": {
728− "id": "pubsub.subscriptions.modifyAckDeadline",
729− "path": "v1beta1a/subscriptions/modifyAckDeadline",
730− "httpMethod": "POST",
731− "description": "Modifies the Ack deadline for a message received from a pull request.",
732− "request": {
733− "$ref": "ModifyAckDeadlineRequest"
734− },
735− "response": {
736− "$ref": "Empty"
737− },
738− "scopes": [
739− "https://www.googleapis.com/auth/cloud-platform",
740− "https://www.googleapis.com/auth/pubsub"
741− ]
742− },
743− "acknowledge": {
744− "id": "pubsub.subscriptions.acknowledge",
745− "path": "v1beta1a/subscriptions/acknowledge",
746− "httpMethod": "POST",
747− "description": "Acknowledges a particular received message: the Pub/Sub system can remove the given message from the subscription. Acknowledging a message whose Ack deadline has expired may succeed, but the message could have been already redelivered. Acknowledging a message more than once will not result in an error. This is only used for messages received via pull.",
748− "request": {
749− "$ref": "AcknowledgeRequest"
750− },
751− "response": {
752− "$ref": "Empty"
753− },
754− "scopes": [
755− "https://www.googleapis.com/auth/cloud-platform",
756− "https://www.googleapis.com/auth/pubsub"
757− ]
758− }
759− }
760− }
761− }
798+ "documentationLink": "https://cloud.google.com/pubsub/docs",
799+ "ownerDomain": "google.com",
800+ "batchPath": "batch",
801+ "servicePath": "",
802+ "ownerName": "Google",
803+ "version": "v1beta1a",
804+ "rootUrl": "https://pubsub.googleapis.com/",
805+ "kind": "discovery#restDescription"
762806}
gen/model/pubsub/v1beta2/pubsub-api.json+1025−995
@@ -1,1044 +1,1074 @@
11{
2− "kind": "discovery#restDescription",
3− "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/0vA2xGfn2MUMrRKKZWbff76Y_7U\"",
4− "discoveryVersion": "v1",
5− "id": "pubsub:v1beta2",
6− "name": "pubsub",
7− "version": "v1beta2",
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− "ackId": {
370− "type": "string",
371− "description": "The acknowledgment ID. Either this or ack_ids must be populated, but not both."
372− },
373− "ackIds": {
374− "type": "array",
375− "description": "List of acknowledgment IDs.",
376− "items": {
377− "type": "string"
378− }
379− },
380− "ackDeadlineSeconds": {
381− "type": "integer",
382− "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.",
383− "format": "int32"
384− }
385− }
386− },
387− "AcknowledgeRequest": {
388− "id": "AcknowledgeRequest",
389− "type": "object",
390− "description": "Request for the Acknowledge method.",
391− "properties": {
392− "ackIds": {
393− "type": "array",
394− "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.",
395− "items": {
396− "type": "string"
397− }
398− }
399− }
400− },
401− "PullRequest": {
402− "id": "PullRequest",
403− "type": "object",
404− "description": "Request for the `Pull` method.",
405− "properties": {
406− "returnImmediately": {
407− "type": "boolean",
408− "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."
409− },
410− "maxMessages": {
411− "type": "integer",
412− "description": "The maximum number of messages returned for this request. The Pub/Sub system may return fewer than the number specified.",
413− "format": "int32"
2+ "id": "pubsub:v1beta2",
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+ }
41413 }
415− }
41614 },
417− "PullResponse": {
418− "id": "PullResponse",
419− "type": "object",
420− "description": "Response for the `Pull` method.",
421− "properties": {
422− "receivedMessages": {
423− "type": "array",
424− "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.",
425− "items": {
426− "$ref": "ReceivedMessage"
427− }
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": "v1beta2/projects/{projectsId}/subscriptions/{subscriptionsId}:modifyPushConfig",
36+ "httpMethod": "POST",
37+ "parameters": {
38+ "subscription": {
39+ "description": "The name of the subscription.",
40+ "required": true,
41+ "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
42+ "location": "path",
43+ "type": "string"
44+ }
45+ },
46+ "path": "v1beta2/{+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": "v1beta2/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": "v1beta2/{+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": "v1beta2/projects/{projectsId}/subscriptions/{subscriptionsId}:pull",
91+ "httpMethod": "POST",
92+ "parameters": {
93+ "subscription": {
94+ "description": "The subscription from which messages should be pulled.",
95+ "required": true,
96+ "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
97+ "location": "path",
98+ "type": "string"
99+ }
100+ },
101+ "path": "v1beta2/{+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": "v1beta2/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.",
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": "v1beta2/{+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": "v1beta2/projects/{projectsId}/subscriptions/{subscriptionsId}",
154+ "httpMethod": "GET",
155+ "parameters": {
156+ "subscription": {
157+ "description": "The name of the subscription to get.",
158+ "required": true,
159+ "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
160+ "location": "path",
161+ "type": "string"
162+ }
163+ },
164+ "path": "v1beta2/{+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. Note that\nfor REST API requests, you must specify a name.",
179+ "request": {
180+ "$ref": "Subscription"
181+ },
182+ "flatPath": "v1beta2/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": "v1beta2/{+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": "v1beta2/projects/{projectsId}/subscriptions/{subscriptionsId}:modifyAckDeadline",
212+ "httpMethod": "POST",
213+ "parameters": {
214+ "subscription": {
215+ "description": "The name of the subscription.",
216+ "required": true,
217+ "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
218+ "location": "path",
219+ "type": "string"
220+ }
221+ },
222+ "path": "v1beta2/{+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": "v1beta2/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": "v1beta2/{+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 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.",
266+ "flatPath": "v1beta2/projects/{projectsId}/subscriptions/{subscriptionsId}",
267+ "httpMethod": "DELETE",
268+ "parameters": {
269+ "subscription": {
270+ "description": "The subscription to delete.",
271+ "required": true,
272+ "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
273+ "location": "path",
274+ "type": "string"
275+ }
276+ },
277+ "path": "v1beta2/{+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": "v1beta2/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": "v1beta2/{+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": "v1beta2/projects/{projectsId}/subscriptions/{subscriptionsId}:acknowledge",
325+ "httpMethod": "POST",
326+ "parameters": {
327+ "subscription": {
328+ "description": "The subscription whose message is being acknowledged.",
329+ "required": true,
330+ "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
331+ "location": "path",
332+ "type": "string"
333+ }
334+ },
335+ "path": "v1beta2/{+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": "v1beta2/projects/{projectsId}/topics/{topicsId}/subscriptions",
357+ "httpMethod": "GET",
358+ "parameters": {
359+ "topic": {
360+ "description": "The name of the topic that subscriptions are attached to.",
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": "v1beta2/{+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": "v1beta2/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": "v1beta2/{+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": "v1beta2/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.",
431+ "required": true,
432+ "pattern": "^projects/[^/]+/topics/[^/]+$",
433+ "location": "path",
434+ "type": "string"
435+ }
436+ },
437+ "path": "v1beta2/{+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": "v1beta2/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.",
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": "v1beta2/{+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": "v1beta2/projects/{projectsId}/topics/{topicsId}",
490+ "httpMethod": "GET",
491+ "parameters": {
492+ "topic": {
493+ "description": "The name of the topic to get.",
494+ "required": true,
495+ "pattern": "^projects/[^/]+/topics/[^/]+$",
496+ "location": "path",
497+ "type": "string"
498+ }
499+ },
500+ "path": "v1beta2/{+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": "v1beta2/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": "v1beta2/{+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": "v1beta2/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": "v1beta2/{+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": "v1beta2/projects/{projectsId}/topics/{topicsId}",
574+ "httpMethod": "DELETE",
575+ "parameters": {
576+ "topic": {
577+ "description": "Name of the topic to delete.",
578+ "required": true,
579+ "pattern": "^projects/[^/]+/topics/[^/]+$",
580+ "location": "path",
581+ "type": "string"
582+ }
583+ },
584+ "path": "v1beta2/{+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": "v1beta2/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": "v1beta2/{+resource}:testIamPermissions",
614+ "scopes": [
615+ "https://www.googleapis.com/auth/cloud-platform",
616+ "https://www.googleapis.com/auth/pubsub"
617+ ]
618+ }
619+ }
620+ }
621+ }
428622 }
429− }
430623 },
431− "ReceivedMessage": {
432− "id": "ReceivedMessage",
433− "type": "object",
434− "description": "A message and its corresponding acknowledgment ID.",
435− "properties": {
436− "ackId": {
437− "type": "string",
438− "description": "This ID can be used to acknowledge the received message."
624+ "schemas": {
625+ "Topic": {
626+ "description": "A topic resource.",
627+ "type": "object",
628+ "properties": {
629+ "name": {
630+ "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\"`.",
631+ "type": "string"
632+ }
633+ },
634+ "id": "Topic"
439635 },
440− "message": {
441− "$ref": "PubsubMessage",
442− "description": "The message."
443− }
444− }
445− },
446− "ModifyPushConfigRequest": {
447− "id": "ModifyPushConfigRequest",
448− "type": "object",
449− "description": "Request for the ModifyPushConfig method.",
450− "properties": {
451− "pushConfig": {
452− "$ref": "PushConfig",
453− "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."
454− }
455− }
456− }
457− },
458− "resources": {
459− "projects": {
460− "resources": {
461− "topics": {
462− "methods": {
463− "setIamPolicy": {
464− "id": "pubsub.projects.topics.setIamPolicy",
465− "path": "v1beta2/{+resource}:setIamPolicy",
466− "httpMethod": "POST",
467− "description": "Sets the access control policy on the specified resource. Replaces any existing policy.",
468− "parameters": {
469− "resource": {
470− "type": "string",
471− "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}`.",
472− "required": true,
473− "pattern": "^projects/[^/]*/topics/[^/]*$",
474− "location": "path"
636+ "SetIamPolicyRequest": {
637+ "description": "Request message for `SetIamPolicy` method.",
638+ "type": "object",
639+ "properties": {
640+ "policy": {
641+ "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.",
642+ "$ref": "Policy"
475643 }
476− },
477− "parameterOrder": [
478− "resource"
479− ],
480− "request": {
481− "$ref": "SetIamPolicyRequest"
482− },
483− "response": {
484− "$ref": "Policy"
485− },
486− "scopes": [
487− "https://www.googleapis.com/auth/cloud-platform",
488− "https://www.googleapis.com/auth/pubsub"
489− ]
490644 },
491− "getIamPolicy": {
492− "id": "pubsub.projects.topics.getIamPolicy",
493− "path": "v1beta2/{+resource}:getIamPolicy",
494− "httpMethod": "GET",
495− "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.",
496− "parameters": {
497− "resource": {
498− "type": "string",
499− "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}`.",
500− "required": true,
501− "pattern": "^projects/[^/]*/topics/[^/]*$",
502− "location": "path"
645+ "id": "SetIamPolicyRequest"
646+ },
647+ "ReceivedMessage": {
648+ "description": "A message and its corresponding acknowledgment ID.",
649+ "type": "object",
650+ "properties": {
651+ "ackId": {
652+ "description": "This ID can be used to acknowledge the received message.",
653+ "type": "string"
654+ },
655+ "message": {
656+ "description": "The message.",
657+ "$ref": "PubsubMessage"
503658 }
504− },
505− "parameterOrder": [
506− "resource"
507− ],
508− "response": {
509− "$ref": "Policy"
510− },
511− "scopes": [
512− "https://www.googleapis.com/auth/cloud-platform",
513− "https://www.googleapis.com/auth/pubsub"
514− ]
515659 },
516− "testIamPermissions": {
517− "id": "pubsub.projects.topics.testIamPermissions",
518− "path": "v1beta2/{+resource}:testIamPermissions",
519− "httpMethod": "POST",
520− "description": "Returns permissions that a caller has on the specified resource.",
521− "parameters": {
522− "resource": {
523− "type": "string",
524− "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}`.",
525− "required": true,
526− "pattern": "^projects/[^/]*/topics/[^/]*$",
527− "location": "path"
660+ "id": "ReceivedMessage"
661+ },
662+ "PublishRequest": {
663+ "description": "Request for the Publish method.",
664+ "type": "object",
665+ "properties": {
666+ "messages": {
667+ "description": "The messages to publish.",
668+ "type": "array",
669+ "items": {
670+ "$ref": "PubsubMessage"
671+ }
528672 }
529− },
530− "parameterOrder": [
531− "resource"
532− ],
533− "request": {
534− "$ref": "TestIamPermissionsRequest"
535− },
536− "response": {
537− "$ref": "TestIamPermissionsResponse"
538− },
539− "scopes": [
540− "https://www.googleapis.com/auth/cloud-platform",
541− "https://www.googleapis.com/auth/pubsub"
542− ]
543673 },
544− "create": {
545− "id": "pubsub.projects.topics.create",
546− "path": "v1beta2/{+name}",
547− "httpMethod": "PUT",
548− "description": "Creates the given topic with the given name.",
549− "parameters": {
550− "name": {
551− "type": "string",
552− "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\"`.",
553− "required": true,
554− "pattern": "^projects/[^/]*/topics/[^/]*$",
555− "location": "path"
674+ "id": "PublishRequest"
675+ },
676+ "TestIamPermissionsResponse": {
677+ "description": "Response message for `TestIamPermissions` method.",
678+ "type": "object",
679+ "properties": {
680+ "permissions": {
681+ "description": "A subset of `TestPermissionsRequest.permissions` that the caller is\nallowed.",
682+ "type": "array",
683+ "items": {
684+ "type": "string"
685+ }
556686 }
557− },
558− "parameterOrder": [
559− "name"
560− ],
561− "request": {
562− "$ref": "Topic"
563− },
564− "response": {
565− "$ref": "Topic"
566− },
567− "scopes": [
568− "https://www.googleapis.com/auth/cloud-platform",
569− "https://www.googleapis.com/auth/pubsub"
570− ]
571687 },
572− "publish": {
573− "id": "pubsub.projects.topics.publish",
574− "path": "v1beta2/{+topic}:publish",
575− "httpMethod": "POST",
576− "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.",
577− "parameters": {
578− "topic": {
579− "type": "string",
580− "description": "The messages in the request will be published on this topic.",
581− "required": true,
582− "pattern": "^projects/[^/]*/topics/[^/]*$",
583− "location": "path"
688+ "id": "TestIamPermissionsResponse"
689+ },
690+ "PublishResponse": {
691+ "description": "Response for the `Publish` method.",
692+ "type": "object",
693+ "properties": {
694+ "messageIds": {
695+ "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.",
696+ "type": "array",
697+ "items": {
698+ "type": "string"
699+ }
584700 }
585− },
586− "parameterOrder": [
587− "topic"
588− ],
589− "request": {
590− "$ref": "PublishRequest"
591− },
592− "response": {
593− "$ref": "PublishResponse"
594− },
595− "scopes": [
596− "https://www.googleapis.com/auth/cloud-platform",
597− "https://www.googleapis.com/auth/pubsub"
598− ]
599701 },
600− "get": {
601− "id": "pubsub.projects.topics.get",
602− "path": "v1beta2/{+topic}",
603− "httpMethod": "GET",
604− "description": "Gets the configuration of a topic.",
605− "parameters": {
606− "topic": {
607− "type": "string",
608− "description": "The name of the topic to get.",
609− "required": true,
610− "pattern": "^projects/[^/]*/topics/[^/]*$",
611− "location": "path"
702+ "id": "PublishResponse"
703+ },
704+ "ListSubscriptionsResponse": {
705+ "description": "Response for the `ListSubscriptions` method.",
706+ "type": "object",
707+ "properties": {
708+ "subscriptions": {
709+ "description": "The subscriptions that match the request.",
710+ "type": "array",
711+ "items": {
712+ "$ref": "Subscription"
713+ }
714+ },
715+ "nextPageToken": {
716+ "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.",
717+ "type": "string"
612718 }
613− },
614− "parameterOrder": [
615− "topic"
616− ],
617− "response": {
618− "$ref": "Topic"
619− },
620− "scopes": [
621− "https://www.googleapis.com/auth/cloud-platform",
622− "https://www.googleapis.com/auth/pubsub"
623− ]
624719 },
625− "list": {
626− "id": "pubsub.projects.topics.list",
627− "path": "v1beta2/{+project}/topics",
628− "httpMethod": "GET",
629− "description": "Lists matching topics.",
630− "parameters": {
631− "project": {
632− "type": "string",
633− "description": "The name of the cloud project that topics belong to.",
634− "required": true,
635− "pattern": "^projects/[^/]*$",
636− "location": "path"
720+ "id": "ListSubscriptionsResponse"
721+ },
722+ "Policy": {
723+ "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).",
724+ "type": "object",
725+ "properties": {
726+ "bindings": {
727+ "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.",
728+ "type": "array",
729+ "items": {
730+ "$ref": "Binding"
731+ }
637732 },
638− "pageSize": {
639− "type": "integer",
640− "description": "Maximum number of topics to return.",
641− "format": "int32",
642− "location": "query"
733+ "etag": {
734+ "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.",
735+ "type": "string",
736+ "format": "byte"
643737 },
644− "pageToken": {
645− "type": "string",
646− "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.",
647− "location": "query"
738+ "version": {
739+ "description": "Version of the `Policy`. The default version is 0.",
740+ "type": "integer",
741+ "format": "int32"
648742 }
649− },
650− "parameterOrder": [
651− "project"
652− ],
653− "response": {
654− "$ref": "ListTopicsResponse"
655− },
656− "scopes": [
657− "https://www.googleapis.com/auth/cloud-platform",
658− "https://www.googleapis.com/auth/pubsub"
659− ]
660743 },
661− "delete": {
662− "id": "pubsub.projects.topics.delete",
663− "path": "v1beta2/{+topic}",
664− "httpMethod": "DELETE",
665− "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_`.",
666− "parameters": {
744+ "id": "Policy"
745+ },
746+ "ListTopicSubscriptionsResponse": {
747+ "description": "Response for the `ListTopicSubscriptions` method.",
748+ "type": "object",
749+ "properties": {
750+ "subscriptions": {
751+ "description": "The names of the subscriptions that match the request.",
752+ "type": "array",
753+ "items": {
754+ "type": "string"
755+ }
756+ },
757+ "nextPageToken": {
758+ "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.",
759+ "type": "string"
760+ }
761+ },
762+ "id": "ListTopicSubscriptionsResponse"
763+ },
764+ "Subscription": {
765+ "description": "A subscription resource.",
766+ "type": "object",
767+ "properties": {
768+ "pushConfig": {
769+ "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.",
770+ "$ref": "PushConfig"
771+ },
667772 "topic": {
668− "type": "string",
669− "description": "Name of the topic to delete.",
670− "required": true,
671− "pattern": "^projects/[^/]*/topics/[^/]*$",
672− "location": "path"
773+ "description": "The name of the topic from which this subscription is receiving messages.\nThe value of this field will be `_deleted-topic_` if the topic has been\ndeleted.",
774+ "type": "string"
775+ },
776+ "ackDeadlineSeconds": {
777+ "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 pull.\nThe maximum custom deadline you can specify is 600 seconds (10 minutes).\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 parameter is 0, a default value of 10 seconds is used.",
778+ "type": "integer",
779+ "format": "int32"
780+ },
781+ "name": {
782+ "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\"`.",
783+ "type": "string"
673784 }
674− },
675− "parameterOrder": [
676− "topic"
677− ],
678− "response": {
679− "$ref": "Empty"
680− },
681− "scopes": [
682− "https://www.googleapis.com/auth/cloud-platform",
683− "https://www.googleapis.com/auth/pubsub"
684− ]
685− }
686− },
687− "resources": {
688− "subscriptions": {
689− "methods": {
690− "list": {
691− "id": "pubsub.projects.topics.subscriptions.list",
692− "path": "v1beta2/{+topic}/subscriptions",
693− "httpMethod": "GET",
694− "description": "Lists the name of the subscriptions for this topic.",
695− "parameters": {
696− "topic": {
697− "type": "string",
698− "description": "The name of the topic that subscriptions are attached to.",
699− "required": true,
700− "pattern": "^projects/[^/]*/topics/[^/]*$",
701− "location": "path"
702− },
703− "pageSize": {
704− "type": "integer",
705− "description": "Maximum number of subscription names to return.",
706− "format": "int32",
707− "location": "query"
708− },
709− "pageToken": {
710− "type": "string",
711− "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.",
712− "location": "query"
785+ },
786+ "id": "Subscription"
787+ },
788+ "ModifyAckDeadlineRequest": {
789+ "description": "Request for the ModifyAckDeadline method.",
790+ "type": "object",
791+ "properties": {
792+ "ackDeadlineSeconds": {
793+ "description": "The new ack deadline with respect to the time this request was sent to\nthe Pub/Sub system. Must be \u003e= 0. 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.",
794+ "type": "integer",
795+ "format": "int32"
796+ },
797+ "ackId": {
798+ "description": "The acknowledgment ID. Either this or ack_ids must be populated, but not\nboth.",
799+ "type": "string"
800+ },
801+ "ackIds": {
802+ "description": "List of acknowledgment IDs.",
803+ "type": "array",
804+ "items": {
805+ "type": "string"
713806 }
714− },
715− "parameterOrder": [
716− "topic"
717− ],
718− "response": {
719− "$ref": "ListTopicSubscriptionsResponse"
720− },
721− "scopes": [
722− "https://www.googleapis.com/auth/cloud-platform",
723− "https://www.googleapis.com/auth/pubsub"
724− ]
725807 }
726− }
727− }
728− }
808+ },
809+ "id": "ModifyAckDeadlineRequest"
729810 },
730− "subscriptions": {
731− "methods": {
732− "setIamPolicy": {
733− "id": "pubsub.projects.subscriptions.setIamPolicy",
734− "path": "v1beta2/{+resource}:setIamPolicy",
735− "httpMethod": "POST",
736− "description": "Sets the access control policy on the specified resource. Replaces any existing policy.",
737− "parameters": {
738− "resource": {
739− "type": "string",
740− "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}`.",
741− "required": true,
742− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
743− "location": "path"
811+ "TestIamPermissionsRequest": {
812+ "description": "Request message for `TestIamPermissions` method.",
813+ "type": "object",
814+ "properties": {
815+ "permissions": {
816+ "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).",
817+ "type": "array",
818+ "items": {
819+ "type": "string"
820+ }
744821 }
745− },
746− "parameterOrder": [
747− "resource"
748− ],
749− "request": {
750− "$ref": "SetIamPolicyRequest"
751− },
752− "response": {
753− "$ref": "Policy"
754− },
755− "scopes": [
756− "https://www.googleapis.com/auth/cloud-platform",
757− "https://www.googleapis.com/auth/pubsub"
758− ]
759822 },
760− "getIamPolicy": {
761− "id": "pubsub.projects.subscriptions.getIamPolicy",
762− "path": "v1beta2/{+resource}:getIamPolicy",
763− "httpMethod": "GET",
764− "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.",
765− "parameters": {
766− "resource": {
767− "type": "string",
768− "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}`.",
769− "required": true,
770− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
771− "location": "path"
823+ "id": "TestIamPermissionsRequest"
824+ },
825+ "PushConfig": {
826+ "description": "Configuration for a push delivery endpoint.",
827+ "type": "object",
828+ "properties": {
829+ "attributes": {
830+ "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.",
831+ "additionalProperties": {
832+ "type": "string"
833+ },
834+ "type": "object"
835+ },
836+ "pushEndpoint": {
837+ "description": "A URL locating the endpoint to which messages should be pushed.\nFor example, a Webhook endpoint might use \"https://example.com/push\".",
838+ "type": "string"
772839 }
773− },
774− "parameterOrder": [
775− "resource"
776− ],
777− "response": {
778− "$ref": "Policy"
779− },
780− "scopes": [
781− "https://www.googleapis.com/auth/cloud-platform",
782− "https://www.googleapis.com/auth/pubsub"
783− ]
784840 },
785− "testIamPermissions": {
786− "id": "pubsub.projects.subscriptions.testIamPermissions",
787− "path": "v1beta2/{+resource}:testIamPermissions",
788− "httpMethod": "POST",
789− "description": "Returns permissions that a caller has on the specified resource.",
790− "parameters": {
791− "resource": {
792− "type": "string",
793− "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}`.",
794− "required": true,
795− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
796− "location": "path"
841+ "id": "PushConfig"
842+ },
843+ "PullRequest": {
844+ "description": "Request for the `Pull` method.",
845+ "type": "object",
846+ "properties": {
847+ "returnImmediately": {
848+ "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` response. 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.",
849+ "type": "boolean"
850+ },
851+ "maxMessages": {
852+ "description": "The maximum number of messages returned for this request. The Pub/Sub\nsystem may return fewer than the number specified.",
853+ "type": "integer",
854+ "format": "int32"
797855 }
798− },
799− "parameterOrder": [
800− "resource"
801− ],
802− "request": {
803− "$ref": "TestIamPermissionsRequest"
804− },
805− "response": {
806− "$ref": "TestIamPermissionsResponse"
807− },
808− "scopes": [
809− "https://www.googleapis.com/auth/cloud-platform",
810− "https://www.googleapis.com/auth/pubsub"
811− ]
812856 },
813− "create": {
814− "id": "pubsub.projects.subscriptions.create",
815− "path": "v1beta2/{+name}",
816− "httpMethod": "PUT",
817− "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.",
818− "parameters": {
819− "name": {
820− "type": "string",
821− "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\"`.",
822− "required": true,
823− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
824− "location": "path"
857+ "id": "PullRequest"
858+ },
859+ "ModifyPushConfigRequest": {
860+ "description": "Request for the ModifyPushConfig method.",
861+ "type": "object",
862+ "properties": {
863+ "pushConfig": {
864+ "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.",
865+ "$ref": "PushConfig"
825866 }
826− },
827− "parameterOrder": [
828− "name"
829− ],
830− "request": {
831− "$ref": "Subscription"
832− },
833− "response": {
834− "$ref": "Subscription"
835− },
836− "scopes": [
837− "https://www.googleapis.com/auth/cloud-platform",
838− "https://www.googleapis.com/auth/pubsub"
839− ]
840867 },
841− "get": {
842− "id": "pubsub.projects.subscriptions.get",
843− "path": "v1beta2/{+subscription}",
844− "httpMethod": "GET",
845− "description": "Gets the configuration details of a subscription.",
846− "parameters": {
847− "subscription": {
848− "type": "string",
849− "description": "The name of the subscription to get.",
850− "required": true,
851− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
852− "location": "path"
868+ "id": "ModifyPushConfigRequest"
869+ },
870+ "PullResponse": {
871+ "description": "Response for the `Pull` method.",
872+ "type": "object",
873+ "properties": {
874+ "receivedMessages": {
875+ "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.",
876+ "type": "array",
877+ "items": {
878+ "$ref": "ReceivedMessage"
879+ }
853880 }
854− },
855− "parameterOrder": [
856− "subscription"
857− ],
858− "response": {
859− "$ref": "Subscription"
860− },
861− "scopes": [
862− "https://www.googleapis.com/auth/cloud-platform",
863− "https://www.googleapis.com/auth/pubsub"
864− ]
865881 },
866− "list": {
867− "id": "pubsub.projects.subscriptions.list",
868− "path": "v1beta2/{+project}/subscriptions",
869− "httpMethod": "GET",
870− "description": "Lists matching subscriptions.",
871− "parameters": {
872− "project": {
873− "type": "string",
874− "description": "The name of the cloud project that subscriptions belong to.",
875− "required": true,
876− "pattern": "^projects/[^/]*$",
877− "location": "path"
882+ "id": "PullResponse"
883+ },
884+ "PubsubMessage": {
885+ "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.",
886+ "type": "object",
887+ "properties": {
888+ "data": {
889+ "description": "The message payload. For JSON requests, the value of this field must be\n[base64-encoded](https://tools.ietf.org/html/rfc4648).",
890+ "type": "string",
891+ "format": "byte"
878892 },
879− "pageSize": {
880− "type": "integer",
881− "description": "Maximum number of subscriptions to return.",
882− "format": "int32",
883− "location": "query"
893+ "attributes": {
894+ "description": "Optional attributes for this message.",
895+ "additionalProperties": {
896+ "type": "string"
897+ },
898+ "type": "object"
884899 },
885− "pageToken": {
886− "type": "string",
887− "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.",
888− "location": "query"
889− }
890− },
891− "parameterOrder": [
892− "project"
893− ],
894− "response": {
895− "$ref": "ListSubscriptionsResponse"
896− },
897− "scopes": [
898− "https://www.googleapis.com/auth/cloud-platform",
899− "https://www.googleapis.com/auth/pubsub"
900− ]
901− },
902− "delete": {
903− "id": "pubsub.projects.subscriptions.delete",
904− "path": "v1beta2/{+subscription}",
905− "httpMethod": "DELETE",
906− "description": "Deletes an existing subscription. All pending messages 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.",
907− "parameters": {
908− "subscription": {
909− "type": "string",
910− "description": "The subscription to delete.",
911− "required": true,
912− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
913− "location": "path"
900+ "messageId": {
901+ "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.",
902+ "type": "string"
903+ },
904+ "publishTime": {
905+ "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.",
906+ "type": "string",
907+ "format": "google-datetime"
914908 }
915− },
916− "parameterOrder": [
917− "subscription"
918− ],
919− "response": {
920− "$ref": "Empty"
921− },
922− "scopes": [
923− "https://www.googleapis.com/auth/cloud-platform",
924− "https://www.googleapis.com/auth/pubsub"
925− ]
926909 },
927− "modifyAckDeadline": {
928− "id": "pubsub.projects.subscriptions.modifyAckDeadline",
929− "path": "v1beta2/{+subscription}:modifyAckDeadline",
930− "httpMethod": "POST",
931− "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.",
932− "parameters": {
933− "subscription": {
934− "type": "string",
935− "description": "The name of the subscription.",
936− "required": true,
937− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
938− "location": "path"
910+ "id": "PubsubMessage"
911+ },
912+ "AcknowledgeRequest": {
913+ "description": "Request for the Acknowledge method.",
914+ "type": "object",
915+ "properties": {
916+ "ackIds": {
917+ "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.",
918+ "type": "array",
919+ "items": {
920+ "type": "string"
921+ }
939922 }
940− },
941− "parameterOrder": [
942− "subscription"
943− ],
944− "request": {
945− "$ref": "ModifyAckDeadlineRequest"
946− },
947− "response": {
948− "$ref": "Empty"
949− },
950− "scopes": [
951− "https://www.googleapis.com/auth/cloud-platform",
952− "https://www.googleapis.com/auth/pubsub"
953− ]
954923 },
955− "acknowledge": {
956− "id": "pubsub.projects.subscriptions.acknowledge",
957− "path": "v1beta2/{+subscription}:acknowledge",
958− "httpMethod": "POST",
959− "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.",
960− "parameters": {
961− "subscription": {
962− "type": "string",
963− "description": "The subscription whose message is being acknowledged.",
964− "required": true,
965− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
966− "location": "path"
924+ "id": "AcknowledgeRequest"
925+ },
926+ "Empty": {
927+ "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 `{}`.",
928+ "type": "object",
929+ "properties": {},
930+ "id": "Empty"
931+ },
932+ "ListTopicsResponse": {
933+ "description": "Response for the `ListTopics` method.",
934+ "type": "object",
935+ "properties": {
936+ "nextPageToken": {
937+ "description": "If not empty, indicates that there may be more topics that match the\nrequest; this value should be passed in a new `ListTopicsRequest`.",
938+ "type": "string"
939+ },
940+ "topics": {
941+ "description": "The resulting topics.",
942+ "type": "array",
943+ "items": {
944+ "$ref": "Topic"
945+ }
967946 }
968− },
969− "parameterOrder": [
970− "subscription"
971− ],
972− "request": {
973− "$ref": "AcknowledgeRequest"
974− },
975− "response": {
976− "$ref": "Empty"
977− },
978− "scopes": [
979− "https://www.googleapis.com/auth/cloud-platform",
980− "https://www.googleapis.com/auth/pubsub"
981− ]
982947 },
983− "pull": {
984− "id": "pubsub.projects.subscriptions.pull",
985− "path": "v1beta2/{+subscription}:pull",
986− "httpMethod": "POST",
987− "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.",
988− "parameters": {
989− "subscription": {
990− "type": "string",
991− "description": "The subscription from which messages should be pulled.",
992− "required": true,
993− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
994− "location": "path"
948+ "id": "ListTopicsResponse"
949+ },
950+ "Binding": {
951+ "description": "Associates `members` with a `role`.",
952+ "type": "object",
953+ "properties": {
954+ "members": {
955+ "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",
956+ "type": "array",
957+ "items": {
958+ "type": "string"
959+ }
960+ },
961+ "role": {
962+ "description": "Role that is assigned to `members`.\nFor example, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired",
963+ "type": "string"
995964 }
996− },
997− "parameterOrder": [
998− "subscription"
999− ],
1000− "request": {
1001− "$ref": "PullRequest"
1002− },
1003− "response": {
1004− "$ref": "PullResponse"
1005− },
1006− "scopes": [
1007− "https://www.googleapis.com/auth/cloud-platform",
1008− "https://www.googleapis.com/auth/pubsub"
1009− ]
1010965 },
1011− "modifyPushConfig": {
1012− "id": "pubsub.projects.subscriptions.modifyPushConfig",
1013− "path": "v1beta2/{+subscription}:modifyPushConfig",
1014− "httpMethod": "POST",
1015− "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`.",
1016− "parameters": {
1017− "subscription": {
1018− "type": "string",
1019− "description": "The name of the subscription.",
1020− "required": true,
1021− "pattern": "^projects/[^/]*/subscriptions/[^/]*$",
1022− "location": "path"
1023− }
1024− },
1025− "parameterOrder": [
1026− "subscription"
1027− ],
1028− "request": {
1029− "$ref": "ModifyPushConfigRequest"
1030− },
1031− "response": {
1032− "$ref": "Empty"
1033− },
1034− "scopes": [
1035− "https://www.googleapis.com/auth/cloud-platform",
1036− "https://www.googleapis.com/auth/pubsub"
1037− ]
1038− }
1039− }
966+ "id": "Binding"
967+ }
968+ },
969+ "revision": "20170105",
970+ "basePath": "",
971+ "icons": {
972+ "x32": "http://www.google.com/images/icons/product/search-32.gif",
973+ "x16": "http://www.google.com/images/icons/product/search-16.gif"
974+ },
975+ "discoveryVersion": "v1",
976+ "baseUrl": "https://pubsub.googleapis.com/",
977+ "name": "pubsub",
978+ "parameters": {
979+ "access_token": {
980+ "description": "OAuth access token.",
981+ "type": "string",
982+ "location": "query"
983+ },
984+ "prettyPrint": {
985+ "description": "Returns response with indentations and line breaks.",
986+ "default": "true",
987+ "type": "boolean",
988+ "location": "query"
989+ },
990+ "key": {
991+ "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.",
992+ "type": "string",
993+ "location": "query"
994+ },
995+ "quotaUser": {
996+ "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.",
997+ "type": "string",
998+ "location": "query"
999+ },
1000+ "pp": {
1001+ "description": "Pretty-print response.",
1002+ "default": "true",
1003+ "type": "boolean",
1004+ "location": "query"
1005+ },
1006+ "fields": {
1007+ "description": "Selector specifying which fields to include in a partial response.",
1008+ "type": "string",
1009+ "location": "query"
1010+ },
1011+ "alt": {
1012+ "description": "Data format for response.",
1013+ "location": "query",
1014+ "enum": [
1015+ "json",
1016+ "media",
1017+ "proto"
1018+ ],
1019+ "default": "json",
1020+ "enumDescriptions": [
1021+ "Responses with Content-Type of application/json",
1022+ "Media download with context-dependent Content-Type",
1023+ "Responses with Content-Type of application/x-protobuf"
1024+ ],
1025+ "type": "string"
1026+ },
1027+ "$.xgafv": {
1028+ "description": "V1 error format.",
1029+ "enum": [
1030+ "1",
1031+ "2"
1032+ ],
1033+ "enumDescriptions": [
1034+ "v1 error format",
1035+ "v2 error format"
1036+ ],
1037+ "type": "string",
1038+ "location": "query"
1039+ },
1040+ "callback": {
1041+ "description": "JSONP",
1042+ "type": "string",
1043+ "location": "query"
1044+ },
1045+ "oauth_token": {
1046+ "description": "OAuth 2.0 token for the current user.",
1047+ "type": "string",
1048+ "location": "query"
1049+ },
1050+ "uploadType": {
1051+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
1052+ "type": "string",
1053+ "location": "query"
1054+ },
1055+ "bearer_token": {
1056+ "description": "OAuth bearer token.",
1057+ "type": "string",
1058+ "location": "query"
1059+ },
1060+ "upload_protocol": {
1061+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
1062+ "type": "string",
1063+ "location": "query"
10401064 }
1041− }
1042− }
1043− }
1065+ },
1066+ "documentationLink": "https://cloud.google.com/pubsub/docs",
1067+ "ownerDomain": "google.com",
1068+ "batchPath": "batch",
1069+ "servicePath": "",
1070+ "ownerName": "Google",
1071+ "version": "v1beta2",
1072+ "rootUrl": "https://pubsub.googleapis.com/",
1073+ "kind": "discovery#restDescription"
10441074}