· 4 years ago · May 28, 2021, 03:48 AM
1{
2 "basePath": "",
3 "parameters": {
4 "upload_protocol": {
5 "type": "string",
6 "location": "query",
7 "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
8 },
9 "quotaUser": {
10 "location": "query",
11 "type": "string",
12 "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."
13 },
14 "access_token": {
15 "type": "string",
16 "location": "query",
17 "description": "OAuth access token."
18 },
19 "fields": {
20 "location": "query",
21 "description": "Selector specifying which fields to include in a partial response.",
22 "type": "string"
23 },
24 "uploadType": {
25 "type": "string",
26 "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
27 "location": "query"
28 },
29 "$.xgafv": {
30 "location": "query",
31 "enum": [
32 "1",
33 "2"
34 ],
35 "description": "V1 error format.",
36 "type": "string",
37 "enumDescriptions": [
38 "v1 error format",
39 "v2 error format"
40 ]
41 },
42 "callback": {
43 "description": "JSONP",
44 "location": "query",
45 "type": "string"
46 },
47 "key": {
48 "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.",
49 "type": "string",
50 "location": "query"
51 },
52 "oauth_token": {
53 "location": "query",
54 "type": "string",
55 "description": "OAuth 2.0 token for the current user."
56 },
57 "prettyPrint": {
58 "default": "true",
59 "type": "boolean",
60 "location": "query",
61 "description": "Returns response with indentations and line breaks."
62 },
63 "alt": {
64 "enum": [
65 "json",
66 "media",
67 "proto"
68 ],
69 "description": "Data format for response.",
70 "type": "string",
71 "location": "query",
72 "default": "json",
73 "enumDescriptions": [
74 "Responses with Content-Type of application/json",
75 "Media download with context-dependent Content-Type",
76 "Responses with Content-Type of application/x-protobuf"
77 ]
78 }
79 },
80 "mtlsRootUrl": "https://pubsub.mtls.googleapis.com/",
81 "auth": {
82 "oauth2": {
83 "scopes": {
84 "https://www.googleapis.com/auth/pubsub": {
85 "description": "View and manage Pub/Sub topics and subscriptions"
86 },
87 "https://www.googleapis.com/auth/cloud-platform": {
88 "description": "See, edit, configure, and delete your Google Cloud Platform data"
89 }
90 }
91 }
92 },
93 "documentationLink": "https://cloud.google.com/pubsub/docs",
94 "baseUrl": "https://pubsub.googleapis.com/",
95 "id": "pubsub:v1",
96 "kind": "discovery#restDescription",
97 "title": "Cloud Pub/Sub API",
98 "name": "pubsub",
99 "rootUrl": "https://pubsub.googleapis.com/",
100 "batchPath": "batch",
101 "schemas": {
102 "MessageStoragePolicy": {
103 "properties": {
104 "allowedPersistenceRegions": {
105 "type": "array",
106 "items": {
107 "type": "string"
108 },
109 "description": "A list of IDs of GCP regions where messages that are published to the topic may be persisted in storage. Messages published by publishers running in non-allowed GCP regions (or running outside of GCP altogether) will be routed for storage in one of the allowed regions. An empty list means that no regions are allowed, and is not a valid configuration."
110 }
111 },
112 "id": "MessageStoragePolicy",
113 "type": "object",
114 "description": "A policy constraining the storage of messages published to the topic."
115 },
116 "ReceivedMessage": {
117 "type": "object",
118 "properties": {
119 "ackId": {
120 "type": "string",
121 "description": "This ID can be used to acknowledge the received message."
122 },
123 "message": {
124 "$ref": "PubsubMessage",
125 "description": "The message."
126 },
127 "deliveryAttempt": {
128 "format": "int32",
129 "description": "The approximate number of times that Cloud Pub/Sub has attempted to deliver the associated message to a subscriber. More precisely, this is 1 + (number of NACKs) + (number of ack_deadline exceeds) for this message. A NACK is any call to ModifyAckDeadline with a 0 deadline. An ack_deadline exceeds event is whenever a message is not acknowledged within ack_deadline. Note that ack_deadline is initially Subscription.ackDeadlineSeconds, but may get extended automatically by the client library. Upon the first delivery of a given message, `delivery_attempt` will have a value of 1. The value is calculated at best effort and is approximate. If a DeadLetterPolicy is not set on the subscription, this will be 0.",
130 "type": "integer"
131 }
132 },
133 "description": "A message and its corresponding acknowledgment ID.",
134 "id": "ReceivedMessage"
135 },
136 "PullRequest": {
137 "description": "Request for the `Pull` method.",
138 "type": "object",
139 "properties": {
140 "maxMessages": {
141 "format": "int32",
142 "type": "integer",
143 "description": "Required. The maximum number of messages to return for this request. Must be a positive integer. The Pub/Sub system may return fewer than the number specified."
144 },
145 "returnImmediately": {
146 "type": "boolean",
147 "description": "Optional. If this field set to true, the system will respond immediately even if it there are no messages available to return in the `Pull` response. Otherwise, the system may wait (for a bounded amount of time) until at least one message is available, rather than returning no messages. Warning: setting this field to `true` is discouraged because it adversely impacts the performance of `Pull` operations. We recommend that users do not set this field."
148 }
149 },
150 "id": "PullRequest"
151 },
152 "Subscription": {
153 "id": "Subscription",
154 "description": "A subscription resource.",
155 "properties": {
156 "retainAckedMessages": {
157 "description": "Indicates whether to retain acknowledged messages. If true, then messages are not expunged from the subscription's backlog, even if they are acknowledged, until they fall out of the `message_retention_duration` window. This must be true if you would like to [`Seek` to a timestamp] (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) in the past to replay previously-acknowledged messages.",
158 "type": "boolean"
159 },
160 "retryPolicy": {
161 "description": "A policy that specifies how Pub/Sub retries message delivery for this subscription. If not set, the default retry policy is applied. This generally implies that messages will be retried as soon as possible for healthy subscribers. RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded events for a given message.",
162 "$ref": "RetryPolicy"
163 },
164 "labels": {
165 "additionalProperties": {
166 "type": "string"
167 },
168 "description": "See Creating and managing labels.",
169 "type": "object"
170 },
171 "enableMessageOrdering": {
172 "description": "If true, messages published with the same `ordering_key` in `PubsubMessage` will be delivered to the subscribers in the order in which they are received by the Pub/Sub system. Otherwise, they may be delivered in any order.",
173 "type": "boolean"
174 },
175 "detached": {
176 "description": "Indicates whether the subscription is detached from its topic. Detached subscriptions don't receive messages from their topic and don't retain any backlog. `Pull` and `StreamingPull` requests will return FAILED_PRECONDITION. If the subscription is a push subscription, pushes to the endpoint will not be made.",
177 "type": "boolean"
178 },
179 "topic": {
180 "type": "string",
181 "description": "Required. The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be `_deleted-topic_` if the topic has been deleted."
182 },
183 "expirationPolicy": {
184 "$ref": "ExpirationPolicy",
185 "description": "A policy that specifies the conditions for this subscription's expiration. A subscription is considered active as long as any connected subscriber is successfully consuming messages from the subscription or is issuing operations on the subscription. If `expiration_policy` is not set, a *default policy* with `ttl` of 31 days will be used. The minimum allowed value for `expiration_policy.ttl` is 1 day."
186 },
187 "ackDeadlineSeconds": {
188 "format": "int32",
189 "description": "The approximate amount of time (on a best-effort basis) Pub/Sub waits for the subscriber to acknowledge receipt before resending the message. In the interval after the message is delivered and before it is acknowledged, it is considered to be *outstanding*. During that time period, the message will not be redelivered (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 non-streaming pull or send the `ack_id` in a `StreamingModifyAckDeadlineRequest` if using streaming pull. The minimum custom deadline you can specify is 10 seconds. The maximum custom deadline you can specify is 600 seconds (10 minutes). If this parameter is 0, a default value of 10 seconds is used. 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.",
190 "type": "integer"
191 },
192 "deadLetterPolicy": {
193 "$ref": "DeadLetterPolicy",
194 "description": "A policy that specifies the conditions for dead lettering messages in this subscription. If dead_letter_policy is not set, dead lettering is disabled. The Cloud Pub/Sub service account associated with this subscriptions's parent project (i.e., service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have permission to Acknowledge() messages on this subscription."
195 },
196 "name": {
197 "description": "Required. 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\"`.",
198 "type": "string"
199 },
200 "messageRetentionDuration": {
201 "description": "How long to retain unacknowledged messages in the subscription's backlog, from the moment a message is published. If `retain_acked_messages` is true, then this also configures the retention of acknowledged messages, and thus configures how far back in time a `Seek` can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10 minutes.",
202 "format": "google-duration",
203 "type": "string"
204 },
205 "pushConfig": {
206 "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.",
207 "$ref": "PushConfig"
208 },
209 "filter": {
210 "description": "An expression written in the Pub/Sub [filter language](https://cloud.google.com/pubsub/docs/filtering). If non-empty, then only `PubsubMessage`s whose `attributes` field matches the filter are delivered on this subscription. If empty, then no messages are filtered out.",
211 "type": "string"
212 }
213 },
214 "type": "object"
215 },
216 "ListSubscriptionsResponse": {
217 "id": "ListSubscriptionsResponse",
218 "type": "object",
219 "description": "Response for the `ListSubscriptions` method.",
220 "properties": {
221 "subscriptions": {
222 "description": "The subscriptions that match the request.",
223 "items": {
224 "$ref": "Subscription"
225 },
226 "type": "array"
227 },
228 "nextPageToken": {
229 "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.",
230 "type": "string"
231 }
232 }
233 },
234 "ListTopicsResponse": {
235 "type": "object",
236 "id": "ListTopicsResponse",
237 "description": "Response for the `ListTopics` method.",
238 "properties": {
239 "nextPageToken": {
240 "type": "string",
241 "description": "If not empty, indicates that there may be more topics that match the request; this value should be passed in a new `ListTopicsRequest`."
242 },
243 "topics": {
244 "description": "The resulting topics.",
245 "type": "array",
246 "items": {
247 "$ref": "Topic"
248 }
249 }
250 }
251 },
252 "Expr": {
253 "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' && document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.",
254 "type": "object",
255 "properties": {
256 "title": {
257 "type": "string",
258 "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression."
259 },
260 "location": {
261 "type": "string",
262 "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file."
263 },
264 "expression": {
265 "description": "Textual representation of an expression in Common Expression Language syntax.",
266 "type": "string"
267 },
268 "description": {
269 "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.",
270 "type": "string"
271 }
272 },
273 "id": "Expr"
274 },
275 "TestIamPermissionsRequest": {
276 "id": "TestIamPermissionsRequest",
277 "description": "Request message for `TestIamPermissions` method.",
278 "properties": {
279 "permissions": {
280 "items": {
281 "type": "string"
282 },
283 "type": "array",
284 "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)."
285 }
286 },
287 "type": "object"
288 },
289 "CreateSnapshotRequest": {
290 "id": "CreateSnapshotRequest",
291 "type": "object",
292 "description": "Request for the `CreateSnapshot` method.",
293 "properties": {
294 "labels": {
295 "additionalProperties": {
296 "type": "string"
297 },
298 "description": "See Creating and managing labels.",
299 "type": "object"
300 },
301 "subscription": {
302 "description": "Required. The subscription whose backlog the snapshot retains. Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the subscription. More precisely, this is defined as the messages in the subscription's backlog that are unacknowledged upon the successful completion of the `CreateSnapshot` request; as well as: (b) Any messages published to the subscription's topic following the successful completion of the CreateSnapshot request. Format is `projects/{project}/subscriptions/{sub}`.",
303 "type": "string"
304 }
305 }
306 },
307 "ListTopicSnapshotsResponse": {
308 "description": "Response for the `ListTopicSnapshots` method.",
309 "properties": {
310 "nextPageToken": {
311 "type": "string",
312 "description": "If not empty, indicates that there may be more snapshots that match the request; this value should be passed in a new `ListTopicSnapshotsRequest` to get more snapshots."
313 },
314 "snapshots": {
315 "items": {
316 "type": "string"
317 },
318 "description": "The names of the snapshots that match the request.",
319 "type": "array"
320 }
321 },
322 "id": "ListTopicSnapshotsResponse",
323 "type": "object"
324 },
325 "UpdateSubscriptionRequest": {
326 "properties": {
327 "updateMask": {
328 "description": "Required. Indicates which fields in the provided subscription to update. Must be specified and non-empty.",
329 "format": "google-fieldmask",
330 "type": "string"
331 },
332 "subscription": {
333 "$ref": "Subscription",
334 "description": "Required. The updated subscription object."
335 }
336 },
337 "type": "object",
338 "description": "Request for the UpdateSubscription method.",
339 "id": "UpdateSubscriptionRequest"
340 },
341 "UpdateSnapshotRequest": {
342 "description": "Request for the UpdateSnapshot method.",
343 "type": "object",
344 "properties": {
345 "snapshot": {
346 "$ref": "Snapshot",
347 "description": "Required. The updated snapshot object."
348 },
349 "updateMask": {
350 "description": "Required. Indicates which fields in the provided snapshot to update. Must be specified and non-empty.",
351 "type": "string",
352 "format": "google-fieldmask"
353 }
354 },
355 "id": "UpdateSnapshotRequest"
356 },
357 "PublishRequest": {
358 "type": "object",
359 "id": "PublishRequest",
360 "description": "Request for the Publish method.",
361 "properties": {
362 "messages": {
363 "items": {
364 "$ref": "PubsubMessage"
365 },
366 "type": "array",
367 "description": "Required. The messages to publish."
368 }
369 }
370 },
371 "PubsubMessage": {
372 "id": "PubsubMessage",
373 "description": "A message that is published by publishers and consumed by subscribers. The message must contain either a non-empty data field or at least one attribute. Note that client libraries represent this object differently depending on the language. See the corresponding [client library documentation](https://cloud.google.com/pubsub/docs/reference/libraries) for more information. See [quotas and limits] (https://cloud.google.com/pubsub/quotas) for more information about message limits.",
374 "type": "object",
375 "properties": {
376 "orderingKey": {
377 "description": "If non-empty, identifies related messages for which publish order should be respected. If a `Subscription` has `enable_message_ordering` set to `true`, messages published with the same non-empty `ordering_key` value will be delivered to subscribers in the order in which they are received by the Pub/Sub system. All `PubsubMessage`s published in a given `PublishRequest` must specify the same `ordering_key` value.",
378 "type": "string"
379 },
380 "data": {
381 "type": "string",
382 "format": "byte",
383 "description": "The message data field. If this field is empty, the message must contain at least one attribute."
384 },
385 "publishTime": {
386 "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.",
387 "type": "string",
388 "format": "google-datetime"
389 },
390 "attributes": {
391 "type": "object",
392 "additionalProperties": {
393 "type": "string"
394 },
395 "description": "Attributes for this message. If this field is empty, the message must contain non-empty data. This can be used to filter messages on the subscription."
396 },
397 "messageId": {
398 "type": "string",
399 "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."
400 }
401 }
402 },
403 "ListSnapshotsResponse": {
404 "id": "ListSnapshotsResponse",
405 "properties": {
406 "snapshots": {
407 "type": "array",
408 "items": {
409 "$ref": "Snapshot"
410 },
411 "description": "The resulting snapshots."
412 },
413 "nextPageToken": {
414 "type": "string",
415 "description": "If not empty, indicates that there may be more snapshot that match the request; this value should be passed in a new `ListSnapshotsRequest`."
416 }
417 },
418 "type": "object",
419 "description": "Response for the `ListSnapshots` method."
420 },
421 "OidcToken": {
422 "properties": {
423 "audience": {
424 "type": "string",
425 "description": "Audience to be used when generating OIDC token. The audience claim identifies the recipients that the JWT is intended for. The audience value is a single case-sensitive string. Having multiple values (array) for the audience field is not supported. More info about the OIDC JWT token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified, the Push endpoint URL will be used."
426 },
427 "serviceAccountEmail": {
428 "description": "[Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating the OIDC token. The caller (for CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must have the iam.serviceAccounts.actAs permission for the service account.",
429 "type": "string"
430 }
431 },
432 "description": "Contains information needed for generating an [OpenID Connect token](https://developers.google.com/identity/protocols/OpenIDConnect).",
433 "type": "object",
434 "id": "OidcToken"
435 },
436 "AcknowledgeRequest": {
437 "id": "AcknowledgeRequest",
438 "type": "object",
439 "properties": {
440 "ackIds": {
441 "items": {
442 "type": "string"
443 },
444 "type": "array",
445 "description": "Required. The acknowledgment ID for the messages being acknowledged that was returned by the Pub/Sub system in the `Pull` response. Must not be empty."
446 }
447 },
448 "description": "Request for the Acknowledge method."
449 },
450 "SeekRequest": {
451 "type": "object",
452 "properties": {
453 "time": {
454 "description": "The time to seek to. Messages retained in the subscription that were published before this time are marked as acknowledged, and messages retained in the subscription that were published after this time are marked as unacknowledged. Note that this operation affects only those messages retained in the subscription (configured by the combination of `message_retention_duration` and `retain_acked_messages`). For example, if `time` corresponds to a point before the message retention window (or to a point before the system's notion of the subscription creation time), only retained messages will be marked as unacknowledged, and already-expunged messages will not be restored.",
455 "type": "string",
456 "format": "google-datetime"
457 },
458 "snapshot": {
459 "type": "string",
460 "description": "The snapshot to seek to. The snapshot's topic must be the same as that of the provided subscription. Format is `projects/{project}/snapshots/{snap}`."
461 }
462 },
463 "id": "SeekRequest",
464 "description": "Request for the `Seek` method."
465 },
466 "ModifyPushConfigRequest": {
467 "properties": {
468 "pushConfig": {
469 "$ref": "PushConfig",
470 "description": "Required. 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` or `StreamingPull` is not called."
471 }
472 },
473 "id": "ModifyPushConfigRequest",
474 "type": "object",
475 "description": "Request for the ModifyPushConfig method."
476 },
477 "ValidateMessageResponse": {
478 "id": "ValidateMessageResponse",
479 "properties": {},
480 "type": "object",
481 "description": "Response for the `ValidateMessage` method. Empty for now."
482 },
483 "PullResponse": {
484 "description": "Response for the `Pull` method.",
485 "properties": {
486 "receivedMessages": {
487 "items": {
488 "$ref": "ReceivedMessage"
489 },
490 "description": "Received Pub/Sub messages. The list will be empty if there are no more messages available in the backlog. For JSON, the response can be entirely empty. The Pub/Sub system may return fewer than the `maxMessages` requested even if there are more messages available in the backlog.",
491 "type": "array"
492 }
493 },
494 "id": "PullResponse",
495 "type": "object"
496 },
497 "Topic": {
498 "id": "Topic",
499 "description": "A topic resource.",
500 "type": "object",
501 "properties": {
502 "name": {
503 "type": "string",
504 "description": "Required. 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\"`."
505 },
506 "schemaSettings": {
507 "description": "Settings for validating messages published against a schema.",
508 "$ref": "SchemaSettings"
509 },
510 "kmsKeyName": {
511 "type": "string",
512 "description": "The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic. The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`."
513 },
514 "messageStoragePolicy": {
515 "$ref": "MessageStoragePolicy",
516 "description": "Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored. If not present, then no constraints are in effect."
517 },
518 "satisfiesPzs": {
519 "type": "boolean",
520 "description": "Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests."
521 },
522 "labels": {
523 "description": "See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).",
524 "type": "object",
525 "additionalProperties": {
526 "type": "string"
527 }
528 }
529 }
530 },
531 "ExpirationPolicy": {
532 "id": "ExpirationPolicy",
533 "type": "object",
534 "properties": {
535 "ttl": {
536 "type": "string",
537 "description": "Specifies the \"time-to-live\" duration for an associated resource. The resource expires if it is not active for a period of `ttl`. The definition of \"activity\" depends on the type of the associated resource. The minimum and maximum allowed values for `ttl` depend on the type of the associated resource, as well. If `ttl` is not set, the associated resource never expires.",
538 "format": "google-duration"
539 }
540 },
541 "description": "A policy that specifies the conditions for resource expiration (i.e., automatic resource deletion)."
542 },
543 "ListTopicSubscriptionsResponse": {
544 "id": "ListTopicSubscriptionsResponse",
545 "type": "object",
546 "description": "Response for the `ListTopicSubscriptions` method.",
547 "properties": {
548 "nextPageToken": {
549 "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.",
550 "type": "string"
551 },
552 "subscriptions": {
553 "type": "array",
554 "description": "The names of subscriptions attached to the topic specified in the request.",
555 "items": {
556 "type": "string"
557 }
558 }
559 }
560 },
561 "ValidateSchemaResponse": {
562 "type": "object",
563 "id": "ValidateSchemaResponse",
564 "properties": {},
565 "description": "Response for the `ValidateSchema` method. Empty for now."
566 },
567 "ValidateSchemaRequest": {
568 "description": "Request for the `ValidateSchema` method.",
569 "properties": {
570 "schema": {
571 "description": "Required. The schema object to validate.",
572 "$ref": "Schema"
573 }
574 },
575 "id": "ValidateSchemaRequest",
576 "type": "object"
577 },
578 "DetachSubscriptionResponse": {
579 "description": "Response for the DetachSubscription method. Reserved for future use.",
580 "type": "object",
581 "id": "DetachSubscriptionResponse",
582 "properties": {}
583 },
584 "SchemaSettings": {
585 "type": "object",
586 "description": "Settings for validating messages published against a schema.",
587 "properties": {
588 "schema": {
589 "type": "string",
590 "description": "Required. The name of the schema that messages published should be validated against. Format is `projects/{project}/schemas/{schema}`. The value of this field will be `_deleted-schema_` if the schema has been deleted."
591 },
592 "encoding": {
593 "enumDescriptions": [
594 "Unspecified",
595 "JSON encoding",
596 "Binary encoding, as defined by the schema type. For some schema types, binary encoding may not be available."
597 ],
598 "enum": [
599 "ENCODING_UNSPECIFIED",
600 "JSON",
601 "BINARY"
602 ],
603 "description": "The encoding of messages validated against `schema`.",
604 "type": "string"
605 }
606 },
607 "id": "SchemaSettings"
608 },
609 "UpdateTopicRequest": {
610 "id": "UpdateTopicRequest",
611 "description": "Request for the UpdateTopic method.",
612 "type": "object",
613 "properties": {
614 "updateMask": {
615 "description": "Required. Indicates which fields in the provided topic to update. Must be specified and non-empty. Note that if `update_mask` contains \"message_storage_policy\" but the `message_storage_policy` is not set in the `topic` provided above, then the updated value is determined by the policy configured at the project or organization level.",
616 "format": "google-fieldmask",
617 "type": "string"
618 },
619 "topic": {
620 "description": "Required. The updated topic object.",
621 "$ref": "Topic"
622 }
623 }
624 },
625 "Empty": {
626 "properties": {},
627 "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 `{}`.",
628 "type": "object",
629 "id": "Empty"
630 },
631 "Policy": {
632 "properties": {
633 "version": {
634 "description": "Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).",
635 "format": "int32",
636 "type": "integer"
637 },
638 "etag": {
639 "format": "byte",
640 "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. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.",
641 "type": "string"
642 },
643 "bindings": {
644 "items": {
645 "$ref": "Binding"
646 },
647 "type": "array",
648 "description": "Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member."
649 }
650 },
651 "type": "object",
652 "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).",
653 "id": "Policy"
654 },
655 "PushConfig": {
656 "properties": {
657 "pushEndpoint": {
658 "description": "A URL locating the endpoint to which messages should be pushed. For example, a Webhook endpoint might use `https://example.com/push`.",
659 "type": "string"
660 },
661 "attributes": {
662 "type": "object",
663 "description": "Endpoint configuration attributes that can be used to control different aspects of the message delivery. The only currently supported attribute is `x-goog-version`, which you can use to change the format of the pushed message. This attribute indicates the version of the data expected by the endpoint. This controls the shape of the pushed message (i.e., its fields and metadata). If not present during the `CreateSubscription` call, it will default to the version of the Pub/Sub API used to make such call. If not present in 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 only supported values for the `x-goog-version` 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. For example: attributes { \"x-goog-version\": \"v1\" } ",
664 "additionalProperties": {
665 "type": "string"
666 }
667 },
668 "oidcToken": {
669 "description": "If specified, Pub/Sub will generate and attach an OIDC JWT token as an `Authorization` header in the HTTP request for every pushed message.",
670 "$ref": "OidcToken"
671 }
672 },
673 "id": "PushConfig",
674 "type": "object",
675 "description": "Configuration for a push delivery endpoint."
676 },
677 "Schema": {
678 "description": "A schema resource.",
679 "id": "Schema",
680 "properties": {
681 "name": {
682 "type": "string",
683 "description": "Required. Name of the schema. Format is `projects/{project}/schemas/{schema}`."
684 },
685 "definition": {
686 "description": "The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in `type`.",
687 "type": "string"
688 },
689 "type": {
690 "enum": [
691 "TYPE_UNSPECIFIED",
692 "PROTOCOL_BUFFER",
693 "AVRO"
694 ],
695 "type": "string",
696 "description": "The type of the schema definition.",
697 "enumDescriptions": [
698 "Default value. This value is unused.",
699 "A Protocol Buffer schema definition.",
700 "An Avro schema definition."
701 ]
702 }
703 },
704 "type": "object"
705 },
706 "Snapshot": {
707 "id": "Snapshot",
708 "type": "object",
709 "description": "A snapshot resource. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.",
710 "properties": {
711 "expireTime": {
712 "description": "The snapshot is guaranteed to exist up until this time. A newly-created snapshot expires no later than 7 days from the time of its creation. Its exact lifetime is determined at creation by the existing backlog in the source subscription. Specifically, the lifetime of the snapshot is `7 days - (age of oldest unacked message in the subscription)`. For example, consider a subscription whose oldest unacked message is 3 days old. If a snapshot is created from this subscription, the snapshot -- which will always capture this 3-day-old backlog as long as the snapshot exists -- will expire in 4 days. The service will refuse to create a snapshot that would expire in less than 1 hour after creation.",
713 "type": "string",
714 "format": "google-datetime"
715 },
716 "name": {
717 "type": "string",
718 "description": "The name of the snapshot."
719 },
720 "labels": {
721 "additionalProperties": {
722 "type": "string"
723 },
724 "type": "object",
725 "description": "See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels)."
726 },
727 "topic": {
728 "description": "The name of the topic from which this snapshot is retaining messages.",
729 "type": "string"
730 }
731 }
732 },
733 "PublishResponse": {
734 "id": "PublishResponse",
735 "type": "object",
736 "description": "Response for the `Publish` method.",
737 "properties": {
738 "messageIds": {
739 "items": {
740 "type": "string"
741 },
742 "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.",
743 "type": "array"
744 }
745 }
746 },
747 "ListSchemasResponse": {
748 "id": "ListSchemasResponse",
749 "description": "Response for the `ListSchemas` method.",
750 "properties": {
751 "nextPageToken": {
752 "description": "If not empty, indicates that there may be more schemas that match the request; this value should be passed in a new `ListSchemasRequest`.",
753 "type": "string"
754 },
755 "schemas": {
756 "description": "The resulting schemas.",
757 "type": "array",
758 "items": {
759 "$ref": "Schema"
760 }
761 }
762 },
763 "type": "object"
764 },
765 "TestIamPermissionsResponse": {
766 "id": "TestIamPermissionsResponse",
767 "type": "object",
768 "description": "Response message for `TestIamPermissions` method.",
769 "properties": {
770 "permissions": {
771 "items": {
772 "type": "string"
773 },
774 "type": "array",
775 "description": "A subset of `TestPermissionsRequest.permissions` that the caller is allowed."
776 }
777 }
778 },
779 "RetryPolicy": {
780 "type": "object",
781 "id": "RetryPolicy",
782 "description": "A policy that specifies how Cloud Pub/Sub retries message delivery. Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded events for a given message. Retry Policy is implemented on a best effort basis. At times, the delay between consecutive deliveries may not match the configuration. That is, delay can be more or less than configured backoff.",
783 "properties": {
784 "minimumBackoff": {
785 "format": "google-duration",
786 "description": "The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.",
787 "type": "string"
788 },
789 "maximumBackoff": {
790 "type": "string",
791 "format": "google-duration",
792 "description": "The maximum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 600 seconds."
793 }
794 }
795 },
796 "ModifyAckDeadlineRequest": {
797 "type": "object",
798 "description": "Request for the ModifyAckDeadline method.",
799 "id": "ModifyAckDeadlineRequest",
800 "properties": {
801 "ackIds": {
802 "items": {
803 "type": "string"
804 },
805 "type": "array",
806 "description": "Required. List of acknowledgment IDs."
807 },
808 "ackDeadlineSeconds": {
809 "format": "int32",
810 "type": "integer",
811 "description": "Required. The new ack deadline with respect to the time this request was sent to the Pub/Sub system. For example, if the value is 10, the new ack deadline will expire 10 seconds after the `ModifyAckDeadline` call was made. Specifying zero might immediately make the message available for delivery to another subscriber client. This typically results in an increase in the rate of message redeliveries (that is, duplicates). The minimum deadline you can specify is 0 seconds. The maximum deadline you can specify is 600 seconds (10 minutes)."
812 }
813 }
814 },
815 "SeekResponse": {
816 "properties": {},
817 "type": "object",
818 "description": "Response for the `Seek` method (this response is empty).",
819 "id": "SeekResponse"
820 },
821 "DeadLetterPolicy": {
822 "properties": {
823 "maxDeliveryAttempts": {
824 "description": "The maximum number of delivery attempts for any message. The value must be between 5 and 100. The number of delivery attempts is defined as 1 + (the sum of number of NACKs and number of times the acknowledgement deadline has been exceeded for the message). A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that client libraries may automatically extend ack_deadlines. This field will be honored on a best effort basis. If this parameter is 0, a default value of 5 is used.",
825 "type": "integer",
826 "format": "int32"
827 },
828 "deadLetterTopic": {
829 "description": "The name of the topic to which dead letter messages should be published. Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service account associated with the enclosing subscription's parent project (i.e., service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have permission to Publish() to this topic. The operation will fail if the topic does not exist. Users should ensure that there is a subscription attached to this topic since messages published to a topic with no subscriptions are lost.",
830 "type": "string"
831 }
832 },
833 "description": "Dead lettering is done on a best effort basis. The same message might be dead lettered multiple times. If validation on any of the fields fails at subscription creation/updation, the create/update subscription request will fail.",
834 "id": "DeadLetterPolicy",
835 "type": "object"
836 },
837 "SetIamPolicyRequest": {
838 "type": "object",
839 "properties": {
840 "policy": {
841 "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.",
842 "$ref": "Policy"
843 }
844 },
845 "id": "SetIamPolicyRequest",
846 "description": "Request message for `SetIamPolicy` method."
847 },
848 "ValidateMessageRequest": {
849 "description": "Request for the `ValidateMessage` method.",
850 "type": "object",
851 "id": "ValidateMessageRequest",
852 "properties": {
853 "schema": {
854 "$ref": "Schema",
855 "description": "Ad-hoc schema against which to validate"
856 },
857 "message": {
858 "description": "Message to validate against the provided `schema_spec`.",
859 "type": "string",
860 "format": "byte"
861 },
862 "encoding": {
863 "enumDescriptions": [
864 "Unspecified",
865 "JSON encoding",
866 "Binary encoding, as defined by the schema type. For some schema types, binary encoding may not be available."
867 ],
868 "description": "The encoding expected for messages",
869 "enum": [
870 "ENCODING_UNSPECIFIED",
871 "JSON",
872 "BINARY"
873 ],
874 "type": "string"
875 },
876 "name": {
877 "type": "string",
878 "description": "Name of the schema against which to validate. Format is `projects/{project}/schemas/{schema}`."
879 }
880 }
881 },
882 "Binding": {
883 "description": "Associates `members` with a `role`.",
884 "type": "object",
885 "properties": {
886 "condition": {
887 "$ref": "Expr",
888 "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)."
889 },
890 "members": {
891 "type": "array",
892 "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@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`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ",
893 "items": {
894 "type": "string"
895 }
896 },
897 "role": {
898 "description": "Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.",
899 "type": "string"
900 }
901 },
902 "id": "Binding"
903 }
904 },
905 "resources": {
906 "projects": {
907 "resources": {
908 "schemas": {
909 "methods": {
910 "validate": {
911 "flatPath": "v1/projects/{projectsId}/schemas:validate",
912 "response": {
913 "$ref": "ValidateSchemaResponse"
914 },
915 "path": "v1/{+parent}/schemas:validate",
916 "id": "pubsub.projects.schemas.validate",
917 "parameterOrder": [
918 "parent"
919 ],
920 "scopes": [
921 "https://www.googleapis.com/auth/cloud-platform",
922 "https://www.googleapis.com/auth/pubsub"
923 ],
924 "httpMethod": "POST",
925 "request": {
926 "$ref": "ValidateSchemaRequest"
927 },
928 "description": "Validates a schema.",
929 "parameters": {
930 "parent": {
931 "pattern": "^projects/[^/]+$",
932 "required": true,
933 "location": "path",
934 "description": "Required. The name of the project in which to validate schemas. Format is `projects/{project-id}`.",
935 "type": "string"
936 }
937 }
938 },
939 "list": {
940 "httpMethod": "GET",
941 "path": "v1/{+parent}/schemas",
942 "parameters": {
943 "parent": {
944 "pattern": "^projects/[^/]+$",
945 "required": true,
946 "type": "string",
947 "description": "Required. The name of the project in which to list schemas. Format is `projects/{project-id}`.",
948 "location": "path"
949 },
950 "view": {
951 "enumDescriptions": [
952 "The default / unset value. The API will default to the BASIC view.",
953 "Include the name and type of the schema, but not the definition.",
954 "Include all Schema object fields."
955 ],
956 "type": "string",
957 "enum": [
958 "SCHEMA_VIEW_UNSPECIFIED",
959 "BASIC",
960 "FULL"
961 ],
962 "description": "The set of Schema fields to return in the response. If not set, returns Schemas with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all fields.",
963 "location": "query"
964 },
965 "pageToken": {
966 "location": "query",
967 "description": "The value returned by the last `ListSchemasResponse`; indicates that this is a continuation of a prior `ListSchemas` call, and that the system should return the next page of data.",
968 "type": "string"
969 },
970 "pageSize": {
971 "description": "Maximum number of schemas to return.",
972 "location": "query",
973 "type": "integer",
974 "format": "int32"
975 }
976 },
977 "scopes": [
978 "https://www.googleapis.com/auth/cloud-platform",
979 "https://www.googleapis.com/auth/pubsub"
980 ],
981 "description": "Lists schemas in a project.",
982 "parameterOrder": [
983 "parent"
984 ],
985 "id": "pubsub.projects.schemas.list",
986 "flatPath": "v1/projects/{projectsId}/schemas",
987 "response": {
988 "$ref": "ListSchemasResponse"
989 }
990 },
991 "getIamPolicy": {
992 "scopes": [
993 "https://www.googleapis.com/auth/cloud-platform",
994 "https://www.googleapis.com/auth/pubsub"
995 ],
996 "flatPath": "v1/projects/{projectsId}/schemas/{schemasId}:getIamPolicy",
997 "parameters": {
998 "resource": {
999 "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.",
1000 "pattern": "^projects/[^/]+/schemas/[^/]+$",
1001 "location": "path",
1002 "required": true,
1003 "type": "string"
1004 },
1005 "options.requestedPolicyVersion": {
1006 "type": "integer",
1007 "format": "int32",
1008 "location": "query",
1009 "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)."
1010 }
1011 },
1012 "httpMethod": "GET",
1013 "parameterOrder": [
1014 "resource"
1015 ],
1016 "id": "pubsub.projects.schemas.getIamPolicy",
1017 "path": "v1/{+resource}:getIamPolicy",
1018 "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.",
1019 "response": {
1020 "$ref": "Policy"
1021 }
1022 },
1023 "delete": {
1024 "response": {
1025 "$ref": "Empty"
1026 },
1027 "httpMethod": "DELETE",
1028 "flatPath": "v1/projects/{projectsId}/schemas/{schemasId}",
1029 "scopes": [
1030 "https://www.googleapis.com/auth/cloud-platform",
1031 "https://www.googleapis.com/auth/pubsub"
1032 ],
1033 "parameterOrder": [
1034 "name"
1035 ],
1036 "path": "v1/{+name}",
1037 "id": "pubsub.projects.schemas.delete",
1038 "description": "Deletes a schema.",
1039 "parameters": {
1040 "name": {
1041 "location": "path",
1042 "type": "string",
1043 "description": "Required. Name of the schema to delete. Format is `projects/{project}/schemas/{schema}`.",
1044 "required": true,
1045 "pattern": "^projects/[^/]+/schemas/[^/]+$"
1046 }
1047 }
1048 },
1049 "create": {
1050 "parameterOrder": [
1051 "parent"
1052 ],
1053 "parameters": {
1054 "parent": {
1055 "pattern": "^projects/[^/]+$",
1056 "type": "string",
1057 "location": "path",
1058 "required": true,
1059 "description": "Required. The name of the project in which to create the schema. Format is `projects/{project-id}`."
1060 },
1061 "schemaId": {
1062 "location": "query",
1063 "type": "string",
1064 "description": "The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name constraints."
1065 }
1066 },
1067 "httpMethod": "POST",
1068 "id": "pubsub.projects.schemas.create",
1069 "response": {
1070 "$ref": "Schema"
1071 },
1072 "scopes": [
1073 "https://www.googleapis.com/auth/cloud-platform",
1074 "https://www.googleapis.com/auth/pubsub"
1075 ],
1076 "flatPath": "v1/projects/{projectsId}/schemas",
1077 "request": {
1078 "$ref": "Schema"
1079 },
1080 "path": "v1/{+parent}/schemas",
1081 "description": "Creates a schema."
1082 },
1083 "testIamPermissions": {
1084 "path": "v1/{+resource}:testIamPermissions",
1085 "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.",
1086 "flatPath": "v1/projects/{projectsId}/schemas/{schemasId}:testIamPermissions",
1087 "httpMethod": "POST",
1088 "parameterOrder": [
1089 "resource"
1090 ],
1091 "parameters": {
1092 "resource": {
1093 "type": "string",
1094 "location": "path",
1095 "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.",
1096 "pattern": "^projects/[^/]+/schemas/[^/]+$",
1097 "required": true
1098 }
1099 },
1100 "id": "pubsub.projects.schemas.testIamPermissions",
1101 "request": {
1102 "$ref": "TestIamPermissionsRequest"
1103 },
1104 "scopes": [
1105 "https://www.googleapis.com/auth/cloud-platform",
1106 "https://www.googleapis.com/auth/pubsub"
1107 ],
1108 "response": {
1109 "$ref": "TestIamPermissionsResponse"
1110 }
1111 },
1112 "setIamPolicy": {
1113 "response": {
1114 "$ref": "Policy"
1115 },
1116 "path": "v1/{+resource}:setIamPolicy",
1117 "id": "pubsub.projects.schemas.setIamPolicy",
1118 "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.",
1119 "flatPath": "v1/projects/{projectsId}/schemas/{schemasId}:setIamPolicy",
1120 "parameterOrder": [
1121 "resource"
1122 ],
1123 "request": {
1124 "$ref": "SetIamPolicyRequest"
1125 },
1126 "parameters": {
1127 "resource": {
1128 "type": "string",
1129 "required": true,
1130 "location": "path",
1131 "pattern": "^projects/[^/]+/schemas/[^/]+$",
1132 "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field."
1133 }
1134 },
1135 "httpMethod": "POST",
1136 "scopes": [
1137 "https://www.googleapis.com/auth/cloud-platform",
1138 "https://www.googleapis.com/auth/pubsub"
1139 ]
1140 },
1141 "get": {
1142 "description": "Gets a schema.",
1143 "scopes": [
1144 "https://www.googleapis.com/auth/cloud-platform",
1145 "https://www.googleapis.com/auth/pubsub"
1146 ],
1147 "parameterOrder": [
1148 "name"
1149 ],
1150 "path": "v1/{+name}",
1151 "id": "pubsub.projects.schemas.get",
1152 "httpMethod": "GET",
1153 "parameters": {
1154 "name": {
1155 "type": "string",
1156 "pattern": "^projects/[^/]+/schemas/[^/]+$",
1157 "location": "path",
1158 "description": "Required. The name of the schema to get. Format is `projects/{project}/schemas/{schema}`.",
1159 "required": true
1160 },
1161 "view": {
1162 "type": "string",
1163 "description": "The set of fields to return in the response. If not set, returns a Schema with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all fields.",
1164 "enum": [
1165 "SCHEMA_VIEW_UNSPECIFIED",
1166 "BASIC",
1167 "FULL"
1168 ],
1169 "enumDescriptions": [
1170 "The default / unset value. The API will default to the BASIC view.",
1171 "Include the name and type of the schema, but not the definition.",
1172 "Include all Schema object fields."
1173 ],
1174 "location": "query"
1175 }
1176 },
1177 "flatPath": "v1/projects/{projectsId}/schemas/{schemasId}",
1178 "response": {
1179 "$ref": "Schema"
1180 }
1181 },
1182 "validateMessage": {
1183 "flatPath": "v1/projects/{projectsId}/schemas:validateMessage",
1184 "parameterOrder": [
1185 "parent"
1186 ],
1187 "id": "pubsub.projects.schemas.validateMessage",
1188 "description": "Validates a message against a schema.",
1189 "request": {
1190 "$ref": "ValidateMessageRequest"
1191 },
1192 "path": "v1/{+parent}/schemas:validateMessage",
1193 "httpMethod": "POST",
1194 "parameters": {
1195 "parent": {
1196 "type": "string",
1197 "required": true,
1198 "location": "path",
1199 "pattern": "^projects/[^/]+$",
1200 "description": "Required. The name of the project in which to validate schemas. Format is `projects/{project-id}`."
1201 }
1202 },
1203 "scopes": [
1204 "https://www.googleapis.com/auth/cloud-platform",
1205 "https://www.googleapis.com/auth/pubsub"
1206 ],
1207 "response": {
1208 "$ref": "ValidateMessageResponse"
1209 }
1210 }
1211 }
1212 },
1213 "subscriptions": {
1214 "methods": {
1215 "delete": {
1216 "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.",
1217 "scopes": [
1218 "https://www.googleapis.com/auth/cloud-platform",
1219 "https://www.googleapis.com/auth/pubsub"
1220 ],
1221 "response": {
1222 "$ref": "Empty"
1223 },
1224 "httpMethod": "DELETE",
1225 "parameterOrder": [
1226 "subscription"
1227 ],
1228 "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}",
1229 "path": "v1/{+subscription}",
1230 "id": "pubsub.projects.subscriptions.delete",
1231 "parameters": {
1232 "subscription": {
1233 "required": true,
1234 "description": "Required. The subscription to delete. Format is `projects/{project}/subscriptions/{sub}`.",
1235 "location": "path",
1236 "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
1237 "type": "string"
1238 }
1239 }
1240 },
1241 "testIamPermissions": {
1242 "path": "v1/{+resource}:testIamPermissions",
1243 "parameterOrder": [
1244 "resource"
1245 ],
1246 "httpMethod": "POST",
1247 "response": {
1248 "$ref": "TestIamPermissionsResponse"
1249 },
1250 "scopes": [
1251 "https://www.googleapis.com/auth/cloud-platform",
1252 "https://www.googleapis.com/auth/pubsub"
1253 ],
1254 "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:testIamPermissions",
1255 "parameters": {
1256 "resource": {
1257 "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.",
1258 "required": true,
1259 "type": "string",
1260 "location": "path",
1261 "pattern": "^projects/[^/]+/subscriptions/[^/]+$"
1262 }
1263 },
1264 "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.",
1265 "request": {
1266 "$ref": "TestIamPermissionsRequest"
1267 },
1268 "id": "pubsub.projects.subscriptions.testIamPermissions"
1269 },
1270 "modifyPushConfig": {
1271 "parameterOrder": [
1272 "subscription"
1273 ],
1274 "parameters": {
1275 "subscription": {
1276 "required": true,
1277 "type": "string",
1278 "location": "path",
1279 "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
1280 "description": "Required. The name of the subscription. Format is `projects/{project}/subscriptions/{sub}`."
1281 }
1282 },
1283 "httpMethod": "POST",
1284 "response": {
1285 "$ref": "Empty"
1286 },
1287 "id": "pubsub.projects.subscriptions.modifyPushConfig",
1288 "path": "v1/{+subscription}:modifyPushConfig",
1289 "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`.",
1290 "scopes": [
1291 "https://www.googleapis.com/auth/cloud-platform",
1292 "https://www.googleapis.com/auth/pubsub"
1293 ],
1294 "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:modifyPushConfig",
1295 "request": {
1296 "$ref": "ModifyPushConfigRequest"
1297 }
1298 },
1299 "setIamPolicy": {
1300 "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.",
1301 "request": {
1302 "$ref": "SetIamPolicyRequest"
1303 },
1304 "id": "pubsub.projects.subscriptions.setIamPolicy",
1305 "scopes": [
1306 "https://www.googleapis.com/auth/cloud-platform",
1307 "https://www.googleapis.com/auth/pubsub"
1308 ],
1309 "parameterOrder": [
1310 "resource"
1311 ],
1312 "httpMethod": "POST",
1313 "path": "v1/{+resource}:setIamPolicy",
1314 "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:setIamPolicy",
1315 "parameters": {
1316 "resource": {
1317 "location": "path",
1318 "required": true,
1319 "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
1320 "type": "string",
1321 "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field."
1322 }
1323 },
1324 "response": {
1325 "$ref": "Policy"
1326 }
1327 },
1328 "create": {
1329 "response": {
1330 "$ref": "Subscription"
1331 },
1332 "parameters": {
1333 "name": {
1334 "type": "string",
1335 "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
1336 "description": "Required. 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\"`.",
1337 "location": "path",
1338 "required": true
1339 }
1340 },
1341 "description": "Creates a subscription to a given topic. See the [resource name rules] (https://cloud.google.com/pubsub/docs/admin#resource_names). 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, conforming to the [resource name format] (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in the returned Subscription object. Note that for REST API requests, you must specify a name in the request.",
1342 "parameterOrder": [
1343 "name"
1344 ],
1345 "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}",
1346 "id": "pubsub.projects.subscriptions.create",
1347 "path": "v1/{+name}",
1348 "request": {
1349 "$ref": "Subscription"
1350 },
1351 "httpMethod": "PUT",
1352 "scopes": [
1353 "https://www.googleapis.com/auth/cloud-platform",
1354 "https://www.googleapis.com/auth/pubsub"
1355 ]
1356 },
1357 "list": {
1358 "scopes": [
1359 "https://www.googleapis.com/auth/cloud-platform",
1360 "https://www.googleapis.com/auth/pubsub"
1361 ],
1362 "response": {
1363 "$ref": "ListSubscriptionsResponse"
1364 },
1365 "id": "pubsub.projects.subscriptions.list",
1366 "parameterOrder": [
1367 "project"
1368 ],
1369 "parameters": {
1370 "project": {
1371 "pattern": "^projects/[^/]+$",
1372 "required": true,
1373 "location": "path",
1374 "description": "Required. The name of the project in which to list subscriptions. Format is `projects/{project-id}`.",
1375 "type": "string"
1376 },
1377 "pageToken": {
1378 "location": "query",
1379 "type": "string",
1380 "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."
1381 },
1382 "pageSize": {
1383 "location": "query",
1384 "description": "Maximum number of subscriptions to return.",
1385 "type": "integer",
1386 "format": "int32"
1387 }
1388 },
1389 "httpMethod": "GET",
1390 "description": "Lists matching subscriptions.",
1391 "path": "v1/{+project}/subscriptions",
1392 "flatPath": "v1/projects/{projectsId}/subscriptions"
1393 },
1394 "seek": {
1395 "path": "v1/{+subscription}:seek",
1396 "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:seek",
1397 "response": {
1398 "$ref": "SeekResponse"
1399 },
1400 "parameters": {
1401 "subscription": {
1402 "type": "string",
1403 "location": "path",
1404 "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
1405 "description": "Required. The subscription to affect.",
1406 "required": true
1407 }
1408 },
1409 "scopes": [
1410 "https://www.googleapis.com/auth/cloud-platform",
1411 "https://www.googleapis.com/auth/pubsub"
1412 ],
1413 "description": "Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided in the request. Snapshots are used in [Seek] (https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. Note that both the subscription and the snapshot must be on the same topic.",
1414 "parameterOrder": [
1415 "subscription"
1416 ],
1417 "httpMethod": "POST",
1418 "id": "pubsub.projects.subscriptions.seek",
1419 "request": {
1420 "$ref": "SeekRequest"
1421 }
1422 },
1423 "detach": {
1424 "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:detach",
1425 "scopes": [
1426 "https://www.googleapis.com/auth/cloud-platform",
1427 "https://www.googleapis.com/auth/pubsub"
1428 ],
1429 "parameters": {
1430 "subscription": {
1431 "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
1432 "type": "string",
1433 "location": "path",
1434 "description": "Required. The subscription to detach. Format is `projects/{project}/subscriptions/{subscription}`.",
1435 "required": true
1436 }
1437 },
1438 "httpMethod": "POST",
1439 "id": "pubsub.projects.subscriptions.detach",
1440 "path": "v1/{+subscription}:detach",
1441 "response": {
1442 "$ref": "DetachSubscriptionResponse"
1443 },
1444 "description": "Detaches a subscription from this topic. All messages retained in the subscription are dropped. Subsequent `Pull` and `StreamingPull` requests will return FAILED_PRECONDITION. If the subscription is a push subscription, pushes to the endpoint will stop.",
1445 "parameterOrder": [
1446 "subscription"
1447 ]
1448 },
1449 "get": {
1450 "parameterOrder": [
1451 "subscription"
1452 ],
1453 "id": "pubsub.projects.subscriptions.get",
1454 "httpMethod": "GET",
1455 "parameters": {
1456 "subscription": {
1457 "required": true,
1458 "location": "path",
1459 "type": "string",
1460 "description": "Required. The name of the subscription to get. Format is `projects/{project}/subscriptions/{sub}`.",
1461 "pattern": "^projects/[^/]+/subscriptions/[^/]+$"
1462 }
1463 },
1464 "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}",
1465 "description": "Gets the configuration details of a subscription.",
1466 "scopes": [
1467 "https://www.googleapis.com/auth/cloud-platform",
1468 "https://www.googleapis.com/auth/pubsub"
1469 ],
1470 "response": {
1471 "$ref": "Subscription"
1472 },
1473 "path": "v1/{+subscription}"
1474 },
1475 "pull": {
1476 "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:pull",
1477 "id": "pubsub.projects.subscriptions.pull",
1478 "parameterOrder": [
1479 "subscription"
1480 ],
1481 "parameters": {
1482 "subscription": {
1483 "required": true,
1484 "location": "path",
1485 "description": "Required. The subscription from which messages should be pulled. Format is `projects/{project}/subscriptions/{sub}`.",
1486 "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
1487 "type": "string"
1488 }
1489 },
1490 "httpMethod": "POST",
1491 "description": "Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many concurrent pull requests pending for the given subscription.",
1492 "response": {
1493 "$ref": "PullResponse"
1494 },
1495 "scopes": [
1496 "https://www.googleapis.com/auth/cloud-platform",
1497 "https://www.googleapis.com/auth/pubsub"
1498 ],
1499 "path": "v1/{+subscription}:pull",
1500 "request": {
1501 "$ref": "PullRequest"
1502 }
1503 },
1504 "acknowledge": {
1505 "httpMethod": "POST",
1506 "scopes": [
1507 "https://www.googleapis.com/auth/cloud-platform",
1508 "https://www.googleapis.com/auth/pubsub"
1509 ],
1510 "response": {
1511 "$ref": "Empty"
1512 },
1513 "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.",
1514 "id": "pubsub.projects.subscriptions.acknowledge",
1515 "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:acknowledge",
1516 "path": "v1/{+subscription}:acknowledge",
1517 "parameterOrder": [
1518 "subscription"
1519 ],
1520 "parameters": {
1521 "subscription": {
1522 "type": "string",
1523 "location": "path",
1524 "description": "Required. The subscription whose message is being acknowledged. Format is `projects/{project}/subscriptions/{sub}`.",
1525 "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
1526 "required": true
1527 }
1528 },
1529 "request": {
1530 "$ref": "AcknowledgeRequest"
1531 }
1532 },
1533 "modifyAckDeadline": {
1534 "response": {
1535 "$ref": "Empty"
1536 },
1537 "request": {
1538 "$ref": "ModifyAckDeadlineRequest"
1539 },
1540 "path": "v1/{+subscription}:modifyAckDeadline",
1541 "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.",
1542 "parameters": {
1543 "subscription": {
1544 "type": "string",
1545 "required": true,
1546 "description": "Required. The name of the subscription. Format is `projects/{project}/subscriptions/{sub}`.",
1547 "location": "path",
1548 "pattern": "^projects/[^/]+/subscriptions/[^/]+$"
1549 }
1550 },
1551 "parameterOrder": [
1552 "subscription"
1553 ],
1554 "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:modifyAckDeadline",
1555 "scopes": [
1556 "https://www.googleapis.com/auth/cloud-platform",
1557 "https://www.googleapis.com/auth/pubsub"
1558 ],
1559 "id": "pubsub.projects.subscriptions.modifyAckDeadline",
1560 "httpMethod": "POST"
1561 },
1562 "getIamPolicy": {
1563 "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.",
1564 "scopes": [
1565 "https://www.googleapis.com/auth/cloud-platform",
1566 "https://www.googleapis.com/auth/pubsub"
1567 ],
1568 "id": "pubsub.projects.subscriptions.getIamPolicy",
1569 "parameters": {
1570 "resource": {
1571 "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.",
1572 "pattern": "^projects/[^/]+/subscriptions/[^/]+$",
1573 "location": "path",
1574 "type": "string",
1575 "required": true
1576 },
1577 "options.requestedPolicyVersion": {
1578 "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).",
1579 "format": "int32",
1580 "location": "query",
1581 "type": "integer"
1582 }
1583 },
1584 "httpMethod": "GET",
1585 "path": "v1/{+resource}:getIamPolicy",
1586 "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:getIamPolicy",
1587 "parameterOrder": [
1588 "resource"
1589 ],
1590 "response": {
1591 "$ref": "Policy"
1592 }
1593 },
1594 "patch": {
1595 "parameters": {
1596 "name": {
1597 "type": "string",
1598 "description": "Required. 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\"`.",
1599 "required": true,
1600 "location": "path",
1601 "pattern": "^projects/[^/]+/subscriptions/[^/]+$"
1602 }
1603 },
1604 "scopes": [
1605 "https://www.googleapis.com/auth/cloud-platform",
1606 "https://www.googleapis.com/auth/pubsub"
1607 ],
1608 "parameterOrder": [
1609 "name"
1610 ],
1611 "description": "Updates an existing subscription. Note that certain properties of a subscription, such as its topic, are not modifiable.",
1612 "response": {
1613 "$ref": "Subscription"
1614 },
1615 "path": "v1/{+name}",
1616 "httpMethod": "PATCH",
1617 "request": {
1618 "$ref": "UpdateSubscriptionRequest"
1619 },
1620 "id": "pubsub.projects.subscriptions.patch",
1621 "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}"
1622 }
1623 }
1624 },
1625 "snapshots": {
1626 "methods": {
1627 "testIamPermissions": {
1628 "response": {
1629 "$ref": "TestIamPermissionsResponse"
1630 },
1631 "parameters": {
1632 "resource": {
1633 "type": "string",
1634 "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.",
1635 "pattern": "^projects/[^/]+/snapshots/[^/]+$",
1636 "required": true,
1637 "location": "path"
1638 }
1639 },
1640 "httpMethod": "POST",
1641 "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}:testIamPermissions",
1642 "path": "v1/{+resource}:testIamPermissions",
1643 "id": "pubsub.projects.snapshots.testIamPermissions",
1644 "request": {
1645 "$ref": "TestIamPermissionsRequest"
1646 },
1647 "scopes": [
1648 "https://www.googleapis.com/auth/cloud-platform",
1649 "https://www.googleapis.com/auth/pubsub"
1650 ],
1651 "parameterOrder": [
1652 "resource"
1653 ],
1654 "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning."
1655 },
1656 "delete": {
1657 "response": {
1658 "$ref": "Empty"
1659 },
1660 "description": "Removes an existing snapshot. Snapshots are used in [Seek] (https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. When the snapshot is deleted, all messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new one may be created with the same name, but the new one has no association with the old snapshot or its subscription, unless the same subscription is specified.",
1661 "scopes": [
1662 "https://www.googleapis.com/auth/cloud-platform",
1663 "https://www.googleapis.com/auth/pubsub"
1664 ],
1665 "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}",
1666 "id": "pubsub.projects.snapshots.delete",
1667 "path": "v1/{+snapshot}",
1668 "httpMethod": "DELETE",
1669 "parameters": {
1670 "snapshot": {
1671 "description": "Required. The name of the snapshot to delete. Format is `projects/{project}/snapshots/{snap}`.",
1672 "required": true,
1673 "pattern": "^projects/[^/]+/snapshots/[^/]+$",
1674 "type": "string",
1675 "location": "path"
1676 }
1677 },
1678 "parameterOrder": [
1679 "snapshot"
1680 ]
1681 },
1682 "create": {
1683 "parameters": {
1684 "name": {
1685 "pattern": "^projects/[^/]+/snapshots/[^/]+$",
1686 "location": "path",
1687 "description": "Required. User-provided name for this snapshot. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription. Note that for REST API requests, you must specify a name. See the resource name rules. Format is `projects/{project}/snapshots/{snap}`.",
1688 "type": "string",
1689 "required": true
1690 }
1691 },
1692 "description": "Creates a snapshot from the requested subscription. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. If the snapshot already exists, returns `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. If the backlog in the subscription is too old -- and the resulting snapshot would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription, conforming to the [resource name format] (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in the returned Snapshot object. Note that for REST API requests, you must specify a name in the request.",
1693 "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}",
1694 "response": {
1695 "$ref": "Snapshot"
1696 },
1697 "request": {
1698 "$ref": "CreateSnapshotRequest"
1699 },
1700 "path": "v1/{+name}",
1701 "id": "pubsub.projects.snapshots.create",
1702 "httpMethod": "PUT",
1703 "parameterOrder": [
1704 "name"
1705 ],
1706 "scopes": [
1707 "https://www.googleapis.com/auth/cloud-platform",
1708 "https://www.googleapis.com/auth/pubsub"
1709 ]
1710 },
1711 "getIamPolicy": {
1712 "scopes": [
1713 "https://www.googleapis.com/auth/cloud-platform",
1714 "https://www.googleapis.com/auth/pubsub"
1715 ],
1716 "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.",
1717 "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}:getIamPolicy",
1718 "httpMethod": "GET",
1719 "parameterOrder": [
1720 "resource"
1721 ],
1722 "parameters": {
1723 "resource": {
1724 "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.",
1725 "location": "path",
1726 "type": "string",
1727 "required": true,
1728 "pattern": "^projects/[^/]+/snapshots/[^/]+$"
1729 },
1730 "options.requestedPolicyVersion": {
1731 "format": "int32",
1732 "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).",
1733 "type": "integer",
1734 "location": "query"
1735 }
1736 },
1737 "path": "v1/{+resource}:getIamPolicy",
1738 "id": "pubsub.projects.snapshots.getIamPolicy",
1739 "response": {
1740 "$ref": "Policy"
1741 }
1742 },
1743 "list": {
1744 "parameters": {
1745 "pageToken": {
1746 "type": "string",
1747 "description": "The value returned by the last `ListSnapshotsResponse`; indicates that this is a continuation of a prior `ListSnapshots` call, and that the system should return the next page of data.",
1748 "location": "query"
1749 },
1750 "project": {
1751 "location": "path",
1752 "description": "Required. The name of the project in which to list snapshots. Format is `projects/{project-id}`.",
1753 "pattern": "^projects/[^/]+$",
1754 "type": "string",
1755 "required": true
1756 },
1757 "pageSize": {
1758 "description": "Maximum number of snapshots to return.",
1759 "format": "int32",
1760 "type": "integer",
1761 "location": "query"
1762 }
1763 },
1764 "parameterOrder": [
1765 "project"
1766 ],
1767 "httpMethod": "GET",
1768 "scopes": [
1769 "https://www.googleapis.com/auth/cloud-platform",
1770 "https://www.googleapis.com/auth/pubsub"
1771 ],
1772 "response": {
1773 "$ref": "ListSnapshotsResponse"
1774 },
1775 "id": "pubsub.projects.snapshots.list",
1776 "flatPath": "v1/projects/{projectsId}/snapshots",
1777 "description": "Lists the existing snapshots. Snapshots are used in [Seek]( https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.",
1778 "path": "v1/{+project}/snapshots"
1779 },
1780 "get": {
1781 "parameters": {
1782 "snapshot": {
1783 "pattern": "^projects/[^/]+/snapshots/[^/]+$",
1784 "type": "string",
1785 "required": true,
1786 "description": "Required. The name of the snapshot to get. Format is `projects/{project}/snapshots/{snap}`.",
1787 "location": "path"
1788 }
1789 },
1790 "path": "v1/{+snapshot}",
1791 "parameterOrder": [
1792 "snapshot"
1793 ],
1794 "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}",
1795 "response": {
1796 "$ref": "Snapshot"
1797 },
1798 "description": "Gets the configuration details of a snapshot. Snapshots are used in Seek operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.",
1799 "scopes": [
1800 "https://www.googleapis.com/auth/cloud-platform",
1801 "https://www.googleapis.com/auth/pubsub"
1802 ],
1803 "id": "pubsub.projects.snapshots.get",
1804 "httpMethod": "GET"
1805 },
1806 "setIamPolicy": {
1807 "request": {
1808 "$ref": "SetIamPolicyRequest"
1809 },
1810 "response": {
1811 "$ref": "Policy"
1812 },
1813 "id": "pubsub.projects.snapshots.setIamPolicy",
1814 "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.",
1815 "parameterOrder": [
1816 "resource"
1817 ],
1818 "parameters": {
1819 "resource": {
1820 "location": "path",
1821 "type": "string",
1822 "required": true,
1823 "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.",
1824 "pattern": "^projects/[^/]+/snapshots/[^/]+$"
1825 }
1826 },
1827 "scopes": [
1828 "https://www.googleapis.com/auth/cloud-platform",
1829 "https://www.googleapis.com/auth/pubsub"
1830 ],
1831 "httpMethod": "POST",
1832 "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}:setIamPolicy",
1833 "path": "v1/{+resource}:setIamPolicy"
1834 },
1835 "patch": {
1836 "parameters": {
1837 "name": {
1838 "description": "The name of the snapshot.",
1839 "required": true,
1840 "pattern": "^projects/[^/]+/snapshots/[^/]+$",
1841 "type": "string",
1842 "location": "path"
1843 }
1844 },
1845 "httpMethod": "PATCH",
1846 "description": "Updates an existing snapshot. Snapshots are used in Seek operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.",
1847 "path": "v1/{+name}",
1848 "request": {
1849 "$ref": "UpdateSnapshotRequest"
1850 },
1851 "scopes": [
1852 "https://www.googleapis.com/auth/cloud-platform",
1853 "https://www.googleapis.com/auth/pubsub"
1854 ],
1855 "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}",
1856 "id": "pubsub.projects.snapshots.patch",
1857 "response": {
1858 "$ref": "Snapshot"
1859 },
1860 "parameterOrder": [
1861 "name"
1862 ]
1863 }
1864 }
1865 },
1866 "topics": {
1867 "resources": {
1868 "snapshots": {
1869 "methods": {
1870 "list": {
1871 "response": {
1872 "$ref": "ListTopicSnapshotsResponse"
1873 },
1874 "description": "Lists the names of the snapshots on this topic. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.",
1875 "httpMethod": "GET",
1876 "flatPath": "v1/projects/{projectsId}/topics/{topicsId}/snapshots",
1877 "parameterOrder": [
1878 "topic"
1879 ],
1880 "id": "pubsub.projects.topics.snapshots.list",
1881 "path": "v1/{+topic}/snapshots",
1882 "parameters": {
1883 "pageToken": {
1884 "type": "string",
1885 "description": "The value returned by the last `ListTopicSnapshotsResponse`; indicates that this is a continuation of a prior `ListTopicSnapshots` call, and that the system should return the next page of data.",
1886 "location": "query"
1887 },
1888 "topic": {
1889 "description": "Required. The name of the topic that snapshots are attached to. Format is `projects/{project}/topics/{topic}`.",
1890 "pattern": "^projects/[^/]+/topics/[^/]+$",
1891 "location": "path",
1892 "type": "string",
1893 "required": true
1894 },
1895 "pageSize": {
1896 "location": "query",
1897 "description": "Maximum number of snapshot names to return.",
1898 "type": "integer",
1899 "format": "int32"
1900 }
1901 },
1902 "scopes": [
1903 "https://www.googleapis.com/auth/cloud-platform",
1904 "https://www.googleapis.com/auth/pubsub"
1905 ]
1906 }
1907 }
1908 },
1909 "subscriptions": {
1910 "methods": {
1911 "list": {
1912 "flatPath": "v1/projects/{projectsId}/topics/{topicsId}/subscriptions",
1913 "response": {
1914 "$ref": "ListTopicSubscriptionsResponse"
1915 },
1916 "parameters": {
1917 "pageSize": {
1918 "format": "int32",
1919 "type": "integer",
1920 "location": "query",
1921 "description": "Maximum number of subscription names to return."
1922 },
1923 "pageToken": {
1924 "type": "string",
1925 "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.",
1926 "location": "query"
1927 },
1928 "topic": {
1929 "required": true,
1930 "location": "path",
1931 "pattern": "^projects/[^/]+/topics/[^/]+$",
1932 "type": "string",
1933 "description": "Required. The name of the topic that subscriptions are attached to. Format is `projects/{project}/topics/{topic}`."
1934 }
1935 },
1936 "description": "Lists the names of the attached subscriptions on this topic.",
1937 "httpMethod": "GET",
1938 "id": "pubsub.projects.topics.subscriptions.list",
1939 "parameterOrder": [
1940 "topic"
1941 ],
1942 "scopes": [
1943 "https://www.googleapis.com/auth/cloud-platform",
1944 "https://www.googleapis.com/auth/pubsub"
1945 ],
1946 "path": "v1/{+topic}/subscriptions"
1947 }
1948 }
1949 }
1950 },
1951 "methods": {
1952 "testIamPermissions": {
1953 "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.",
1954 "path": "v1/{+resource}:testIamPermissions",
1955 "scopes": [
1956 "https://www.googleapis.com/auth/cloud-platform",
1957 "https://www.googleapis.com/auth/pubsub"
1958 ],
1959 "request": {
1960 "$ref": "TestIamPermissionsRequest"
1961 },
1962 "parameters": {
1963 "resource": {
1964 "type": "string",
1965 "required": true,
1966 "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.",
1967 "location": "path",
1968 "pattern": "^projects/[^/]+/topics/[^/]+$"
1969 }
1970 },
1971 "id": "pubsub.projects.topics.testIamPermissions",
1972 "parameterOrder": [
1973 "resource"
1974 ],
1975 "flatPath": "v1/projects/{projectsId}/topics/{topicsId}:testIamPermissions",
1976 "httpMethod": "POST",
1977 "response": {
1978 "$ref": "TestIamPermissionsResponse"
1979 }
1980 },
1981 "publish": {
1982 "parameterOrder": [
1983 "topic"
1984 ],
1985 "scopes": [
1986 "https://www.googleapis.com/auth/cloud-platform",
1987 "https://www.googleapis.com/auth/pubsub"
1988 ],
1989 "response": {
1990 "$ref": "PublishResponse"
1991 },
1992 "request": {
1993 "$ref": "PublishRequest"
1994 },
1995 "description": "Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist.",
1996 "id": "pubsub.projects.topics.publish",
1997 "parameters": {
1998 "topic": {
1999 "required": true,
2000 "description": "Required. The messages in the request will be published on this topic. Format is `projects/{project}/topics/{topic}`.",
2001 "type": "string",
2002 "pattern": "^projects/[^/]+/topics/[^/]+$",
2003 "location": "path"
2004 }
2005 },
2006 "httpMethod": "POST",
2007 "flatPath": "v1/projects/{projectsId}/topics/{topicsId}:publish",
2008 "path": "v1/{+topic}:publish"
2009 },
2010 "get": {
2011 "parameterOrder": [
2012 "topic"
2013 ],
2014 "flatPath": "v1/projects/{projectsId}/topics/{topicsId}",
2015 "scopes": [
2016 "https://www.googleapis.com/auth/cloud-platform",
2017 "https://www.googleapis.com/auth/pubsub"
2018 ],
2019 "path": "v1/{+topic}",
2020 "httpMethod": "GET",
2021 "description": "Gets the configuration of a topic.",
2022 "response": {
2023 "$ref": "Topic"
2024 },
2025 "id": "pubsub.projects.topics.get",
2026 "parameters": {
2027 "topic": {
2028 "type": "string",
2029 "description": "Required. The name of the topic to get. Format is `projects/{project}/topics/{topic}`.",
2030 "location": "path",
2031 "required": true,
2032 "pattern": "^projects/[^/]+/topics/[^/]+$"
2033 }
2034 }
2035 },
2036 "getIamPolicy": {
2037 "flatPath": "v1/projects/{projectsId}/topics/{topicsId}:getIamPolicy",
2038 "response": {
2039 "$ref": "Policy"
2040 },
2041 "httpMethod": "GET",
2042 "id": "pubsub.projects.topics.getIamPolicy",
2043 "parameters": {
2044 "resource": {
2045 "location": "path",
2046 "required": true,
2047 "type": "string",
2048 "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.",
2049 "pattern": "^projects/[^/]+/topics/[^/]+$"
2050 },
2051 "options.requestedPolicyVersion": {
2052 "type": "integer",
2053 "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).",
2054 "format": "int32",
2055 "location": "query"
2056 }
2057 },
2058 "parameterOrder": [
2059 "resource"
2060 ],
2061 "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.",
2062 "scopes": [
2063 "https://www.googleapis.com/auth/cloud-platform",
2064 "https://www.googleapis.com/auth/pubsub"
2065 ],
2066 "path": "v1/{+resource}:getIamPolicy"
2067 },
2068 "patch": {
2069 "description": "Updates an existing topic. Note that certain properties of a topic are not modifiable.",
2070 "request": {
2071 "$ref": "UpdateTopicRequest"
2072 },
2073 "path": "v1/{+name}",
2074 "httpMethod": "PATCH",
2075 "response": {
2076 "$ref": "Topic"
2077 },
2078 "flatPath": "v1/projects/{projectsId}/topics/{topicsId}",
2079 "parameterOrder": [
2080 "name"
2081 ],
2082 "scopes": [
2083 "https://www.googleapis.com/auth/cloud-platform",
2084 "https://www.googleapis.com/auth/pubsub"
2085 ],
2086 "id": "pubsub.projects.topics.patch",
2087 "parameters": {
2088 "name": {
2089 "required": true,
2090 "pattern": "^projects/[^/]+/topics/[^/]+$",
2091 "location": "path",
2092 "type": "string",
2093 "description": "Required. 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\"`."
2094 }
2095 }
2096 },
2097 "list": {
2098 "flatPath": "v1/projects/{projectsId}/topics",
2099 "path": "v1/{+project}/topics",
2100 "parameterOrder": [
2101 "project"
2102 ],
2103 "description": "Lists matching topics.",
2104 "httpMethod": "GET",
2105 "parameters": {
2106 "pageSize": {
2107 "type": "integer",
2108 "description": "Maximum number of topics to return.",
2109 "format": "int32",
2110 "location": "query"
2111 },
2112 "pageToken": {
2113 "location": "query",
2114 "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.",
2115 "type": "string"
2116 },
2117 "project": {
2118 "location": "path",
2119 "type": "string",
2120 "description": "Required. The name of the project in which to list topics. Format is `projects/{project-id}`.",
2121 "required": true,
2122 "pattern": "^projects/[^/]+$"
2123 }
2124 },
2125 "id": "pubsub.projects.topics.list",
2126 "scopes": [
2127 "https://www.googleapis.com/auth/cloud-platform",
2128 "https://www.googleapis.com/auth/pubsub"
2129 ],
2130 "response": {
2131 "$ref": "ListTopicsResponse"
2132 }
2133 },
2134 "delete": {
2135 "httpMethod": "DELETE",
2136 "flatPath": "v1/projects/{projectsId}/topics/{topicsId}",
2137 "response": {
2138 "$ref": "Empty"
2139 },
2140 "path": "v1/{+topic}",
2141 "scopes": [
2142 "https://www.googleapis.com/auth/cloud-platform",
2143 "https://www.googleapis.com/auth/pubsub"
2144 ],
2145 "parameters": {
2146 "topic": {
2147 "required": true,
2148 "description": "Required. Name of the topic to delete. Format is `projects/{project}/topics/{topic}`.",
2149 "location": "path",
2150 "type": "string",
2151 "pattern": "^projects/[^/]+/topics/[^/]+$"
2152 }
2153 },
2154 "parameterOrder": [
2155 "topic"
2156 ],
2157 "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_`.",
2158 "id": "pubsub.projects.topics.delete"
2159 },
2160 "create": {
2161 "flatPath": "v1/projects/{projectsId}/topics/{topicsId}",
2162 "parameters": {
2163 "name": {
2164 "location": "path",
2165 "required": true,
2166 "type": "string",
2167 "description": "Required. 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\"`.",
2168 "pattern": "^projects/[^/]+/topics/[^/]+$"
2169 }
2170 },
2171 "request": {
2172 "$ref": "Topic"
2173 },
2174 "httpMethod": "PUT",
2175 "path": "v1/{+name}",
2176 "scopes": [
2177 "https://www.googleapis.com/auth/cloud-platform",
2178 "https://www.googleapis.com/auth/pubsub"
2179 ],
2180 "id": "pubsub.projects.topics.create",
2181 "response": {
2182 "$ref": "Topic"
2183 },
2184 "description": "Creates the given topic with the given name. See the [resource name rules] (https://cloud.google.com/pubsub/docs/admin#resource_names).",
2185 "parameterOrder": [
2186 "name"
2187 ]
2188 },
2189 "setIamPolicy": {
2190 "id": "pubsub.projects.topics.setIamPolicy",
2191 "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.",
2192 "flatPath": "v1/projects/{projectsId}/topics/{topicsId}:setIamPolicy",
2193 "request": {
2194 "$ref": "SetIamPolicyRequest"
2195 },
2196 "httpMethod": "POST",
2197 "parameterOrder": [
2198 "resource"
2199 ],
2200 "response": {
2201 "$ref": "Policy"
2202 },
2203 "parameters": {
2204 "resource": {
2205 "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.",
2206 "pattern": "^projects/[^/]+/topics/[^/]+$",
2207 "type": "string",
2208 "location": "path",
2209 "required": true
2210 }
2211 },
2212 "scopes": [
2213 "https://www.googleapis.com/auth/cloud-platform",
2214 "https://www.googleapis.com/auth/pubsub"
2215 ],
2216 "path": "v1/{+resource}:setIamPolicy"
2217 }
2218 }
2219 }
2220 }
2221 }
2222 },
2223 "canonicalName": "Pubsub",
2224 "ownerDomain": "google.com",
2225 "discoveryVersion": "v1",
2226 "icons": {
2227 "x16": "http://www.google.com/images/icons/product/search-16.gif",
2228 "x32": "http://www.google.com/images/icons/product/search-32.gif"
2229 },
2230 "description": "Provides reliable, many-to-many, asynchronous messaging between applications. ",
2231 "ownerName": "Google",
2232 "protocol": "rest",
2233 "servicePath": "",
2234 "version": "v1",
2235 "revision": "20210517"
2236}