Skip to content

Commit 4c7a165

Browse files
feat(pubsub): update the api
#### pubsub:v1 The following keys were added: - schemas.CreateSnapshotRequest.properties.tags (Total Keys: 2) - schemas.Subscription.properties.tags (Total Keys: 2) - schemas.Topic.properties.tags (Total Keys: 2)
1 parent 2cfac40 commit 4c7a165

File tree

4 files changed

+61
-1
lines changed

4 files changed

+61
-1
lines changed

docs/dyn/pubsub_v1.projects.snapshots.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ <h3>Method Details</h3>
124124
&quot;a_key&quot;: &quot;A String&quot;,
125125
},
126126
&quot;subscription&quot;: &quot;A String&quot;, # 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&#x27;s backlog that are unacknowledged upon the successful completion of the `CreateSnapshot` request; as well as: (b) Any messages published to the subscription&#x27;s topic following the successful completion of the CreateSnapshot request. Format is `projects/{project}/subscriptions/{sub}`.
127+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
128+
&quot;a_key&quot;: &quot;A String&quot;,
129+
},
127130
}
128131

129132
x__xgafv: string, V1 error format.

docs/dyn/pubsub_v1.projects.subscriptions.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ <h3>Method Details</h3>
243243
&quot;minimumBackoff&quot;: &quot;A String&quot;, # Optional. The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
244244
},
245245
&quot;state&quot;: &quot;A String&quot;, # Output only. An output-only field indicating whether or not the subscription can receive messages.
246+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
247+
&quot;a_key&quot;: &quot;A String&quot;,
248+
},
246249
&quot;topic&quot;: &quot;A String&quot;, # 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.
247250
&quot;topicMessageRetentionDuration&quot;: &quot;A String&quot;, # Output only. Indicates the minimum duration for which a message is retained after it is published to the subscription&#x27;s topic. If this field is set, messages published to the subscription&#x27;s topic in the last `topic_message_retention_duration` are always available to subscribers. See the `message_retention_duration` field in `Topic`. This field is set only in responses from the server; it is ignored if it is set in any requests.
248251
}
@@ -334,6 +337,9 @@ <h3>Method Details</h3>
334337
&quot;minimumBackoff&quot;: &quot;A String&quot;, # Optional. The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
335338
},
336339
&quot;state&quot;: &quot;A String&quot;, # Output only. An output-only field indicating whether or not the subscription can receive messages.
340+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
341+
&quot;a_key&quot;: &quot;A String&quot;,
342+
},
337343
&quot;topic&quot;: &quot;A String&quot;, # 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.
338344
&quot;topicMessageRetentionDuration&quot;: &quot;A String&quot;, # Output only. Indicates the minimum duration for which a message is retained after it is published to the subscription&#x27;s topic. If this field is set, messages published to the subscription&#x27;s topic in the last `topic_message_retention_duration` are always available to subscribers. See the `message_retention_duration` field in `Topic`. This field is set only in responses from the server; it is ignored if it is set in any requests.
339345
}</pre>
@@ -468,6 +474,9 @@ <h3>Method Details</h3>
468474
&quot;minimumBackoff&quot;: &quot;A String&quot;, # Optional. The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
469475
},
470476
&quot;state&quot;: &quot;A String&quot;, # Output only. An output-only field indicating whether or not the subscription can receive messages.
477+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
478+
&quot;a_key&quot;: &quot;A String&quot;,
479+
},
471480
&quot;topic&quot;: &quot;A String&quot;, # 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.
472481
&quot;topicMessageRetentionDuration&quot;: &quot;A String&quot;, # Output only. Indicates the minimum duration for which a message is retained after it is published to the subscription&#x27;s topic. If this field is set, messages published to the subscription&#x27;s topic in the last `topic_message_retention_duration` are always available to subscribers. See the `message_retention_duration` field in `Topic`. This field is set only in responses from the server; it is ignored if it is set in any requests.
473482
}</pre>
@@ -606,6 +615,9 @@ <h3>Method Details</h3>
606615
&quot;minimumBackoff&quot;: &quot;A String&quot;, # Optional. The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
607616
},
608617
&quot;state&quot;: &quot;A String&quot;, # Output only. An output-only field indicating whether or not the subscription can receive messages.
618+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
619+
&quot;a_key&quot;: &quot;A String&quot;,
620+
},
609621
&quot;topic&quot;: &quot;A String&quot;, # 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.
610622
&quot;topicMessageRetentionDuration&quot;: &quot;A String&quot;, # Output only. Indicates the minimum duration for which a message is retained after it is published to the subscription&#x27;s topic. If this field is set, messages published to the subscription&#x27;s topic in the last `topic_message_retention_duration` are always available to subscribers. See the `message_retention_duration` field in `Topic`. This field is set only in responses from the server; it is ignored if it is set in any requests.
611623
},
@@ -783,6 +795,9 @@ <h3>Method Details</h3>
783795
&quot;minimumBackoff&quot;: &quot;A String&quot;, # Optional. The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
784796
},
785797
&quot;state&quot;: &quot;A String&quot;, # Output only. An output-only field indicating whether or not the subscription can receive messages.
798+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
799+
&quot;a_key&quot;: &quot;A String&quot;,
800+
},
786801
&quot;topic&quot;: &quot;A String&quot;, # 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.
787802
&quot;topicMessageRetentionDuration&quot;: &quot;A String&quot;, # Output only. Indicates the minimum duration for which a message is retained after it is published to the subscription&#x27;s topic. If this field is set, messages published to the subscription&#x27;s topic in the last `topic_message_retention_duration` are always available to subscribers. See the `message_retention_duration` field in `Topic`. This field is set only in responses from the server; it is ignored if it is set in any requests.
788803
},
@@ -876,6 +891,9 @@ <h3>Method Details</h3>
876891
&quot;minimumBackoff&quot;: &quot;A String&quot;, # Optional. The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
877892
},
878893
&quot;state&quot;: &quot;A String&quot;, # Output only. An output-only field indicating whether or not the subscription can receive messages.
894+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
895+
&quot;a_key&quot;: &quot;A String&quot;,
896+
},
879897
&quot;topic&quot;: &quot;A String&quot;, # 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.
880898
&quot;topicMessageRetentionDuration&quot;: &quot;A String&quot;, # Output only. Indicates the minimum duration for which a message is retained after it is published to the subscription&#x27;s topic. If this field is set, messages published to the subscription&#x27;s topic in the last `topic_message_retention_duration` are always available to subscribers. See the `message_retention_duration` field in `Topic`. This field is set only in responses from the server; it is ignored if it is set in any requests.
881899
}</pre>

docs/dyn/pubsub_v1.projects.topics.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ <h3>Method Details</h3>
213213
&quot;schema&quot;: &quot;A String&quot;, # 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.
214214
},
215215
&quot;state&quot;: &quot;A String&quot;, # Output only. An output-only field indicating the state of the topic.
216+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
217+
&quot;a_key&quot;: &quot;A String&quot;,
218+
},
216219
}
217220

218221
x__xgafv: string, V1 error format.
@@ -304,6 +307,9 @@ <h3>Method Details</h3>
304307
&quot;schema&quot;: &quot;A String&quot;, # 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.
305308
},
306309
&quot;state&quot;: &quot;A String&quot;, # Output only. An output-only field indicating the state of the topic.
310+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
311+
&quot;a_key&quot;: &quot;A String&quot;,
312+
},
307313
}</pre>
308314
</div>
309315

@@ -420,6 +426,9 @@ <h3>Method Details</h3>
420426
&quot;schema&quot;: &quot;A String&quot;, # 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.
421427
},
422428
&quot;state&quot;: &quot;A String&quot;, # Output only. An output-only field indicating the state of the topic.
429+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
430+
&quot;a_key&quot;: &quot;A String&quot;,
431+
},
423432
}</pre>
424433
</div>
425434

@@ -558,6 +567,9 @@ <h3>Method Details</h3>
558567
&quot;schema&quot;: &quot;A String&quot;, # 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.
559568
},
560569
&quot;state&quot;: &quot;A String&quot;, # Output only. An output-only field indicating the state of the topic.
570+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
571+
&quot;a_key&quot;: &quot;A String&quot;,
572+
},
561573
},
562574
],
563575
}</pre>
@@ -668,6 +680,9 @@ <h3>Method Details</h3>
668680
&quot;schema&quot;: &quot;A String&quot;, # 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.
669681
},
670682
&quot;state&quot;: &quot;A String&quot;, # Output only. An output-only field indicating the state of the topic.
683+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
684+
&quot;a_key&quot;: &quot;A String&quot;,
685+
},
671686
},
672687
&quot;updateMask&quot;: &quot;A String&quot;, # Required. Indicates which fields in the provided topic to update. Must be specified and non-empty. Note that if `update_mask` contains &quot;message_storage_policy&quot; 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.
673688
}
@@ -761,6 +776,9 @@ <h3>Method Details</h3>
761776
&quot;schema&quot;: &quot;A String&quot;, # 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.
762777
},
763778
&quot;state&quot;: &quot;A String&quot;, # Output only. An output-only field indicating the state of the topic.
779+
&quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
780+
&quot;a_key&quot;: &quot;A String&quot;,
781+
},
764782
}</pre>
765783
</div>
766784

googleapiclient/discovery_cache/documents/pubsub.v1.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,7 @@
16481648
}
16491649
}
16501650
},
1651-
"revision": "20250807",
1651+
"revision": "20251025",
16521652
"rootUrl": "https://pubsub.googleapis.com/",
16531653
"schemas": {
16541654
"AcknowledgeRequest": {
@@ -2122,6 +2122,13 @@
21222122
"subscription": {
21232123
"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}`.",
21242124
"type": "string"
2125+
},
2126+
"tags": {
2127+
"additionalProperties": {
2128+
"type": "string"
2129+
},
2130+
"description": "Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
2131+
"type": "object"
21252132
}
21262133
},
21272134
"type": "object"
@@ -2916,6 +2923,13 @@
29162923
"readOnly": true,
29172924
"type": "string"
29182925
},
2926+
"tags": {
2927+
"additionalProperties": {
2928+
"type": "string"
2929+
},
2930+
"description": "Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
2931+
"type": "object"
2932+
},
29192933
"topic": {
29202934
"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.",
29212935
"type": "string"
@@ -3035,6 +3049,13 @@
30353049
],
30363050
"readOnly": true,
30373051
"type": "string"
3052+
},
3053+
"tags": {
3054+
"additionalProperties": {
3055+
"type": "string"
3056+
},
3057+
"description": "Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
3058+
"type": "object"
30383059
}
30393060
},
30403061
"type": "object"

0 commit comments

Comments
 (0)