Skip to content

Commit 5bc6b39

Browse files
yoshi-automationfeywind
authored andcommitted
feat(pubsub): update the API
#### pubsub:v1 The following keys were added: - schemas.CreateSnapshotRequest.properties.tags.additionalProperties.type - schemas.CreateSnapshotRequest.properties.tags.description - schemas.CreateSnapshotRequest.properties.tags.type - schemas.Subscription.properties.tags.additionalProperties.type - schemas.Subscription.properties.tags.description - schemas.Subscription.properties.tags.type - schemas.Topic.properties.tags.additionalProperties.type - schemas.Topic.properties.tags.description - schemas.Topic.properties.tags.type
1 parent 47121fa commit 5bc6b39

File tree

2 files changed

+48
-6
lines changed

2 files changed

+48
-6
lines changed

discovery/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"

src/apis/pubsub/v1.ts

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,10 @@ export namespace pubsub_v1 {
432432
* 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\}`.
433433
*/
434434
subscription?: string | null;
435+
/**
436+
* Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
437+
*/
438+
tags?: {[key: string]: string} | null;
435439
}
436440
/**
437441
* 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.
@@ -1023,6 +1027,10 @@ export namespace pubsub_v1 {
10231027
* Output only. An output-only field indicating whether or not the subscription can receive messages.
10241028
*/
10251029
state?: string | null;
1030+
/**
1031+
* Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
1032+
*/
1033+
tags?: {[key: string]: string} | null;
10261034
/**
10271035
* 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.
10281036
*/
@@ -1107,6 +1115,10 @@ export namespace pubsub_v1 {
11071115
* Output only. An output-only field indicating the state of the topic.
11081116
*/
11091117
state?: string | null;
1118+
/**
1119+
* Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
1120+
*/
1121+
tags?: {[key: string]: string} | null;
11101122
}
11111123
/**
11121124
* Request for the UpdateSnapshot method.
@@ -3353,7 +3365,8 @@ export namespace pubsub_v1 {
33533365
* // request body parameters
33543366
* // {
33553367
* // "labels": {},
3356-
* // "subscription": "my_subscription"
3368+
* // "subscription": "my_subscription",
3369+
* // "tags": {}
33573370
* // }
33583371
* },
33593372
* });
@@ -4778,6 +4791,7 @@ export namespace pubsub_v1 {
47784791
* // "retainAckedMessages": false,
47794792
* // "retryPolicy": {},
47804793
* // "state": "my_state",
4794+
* // "tags": {},
47814795
* // "topic": "my_topic",
47824796
* // "topicMessageRetentionDuration": "my_topicMessageRetentionDuration"
47834797
* // }
@@ -4805,6 +4819,7 @@ export namespace pubsub_v1 {
48054819
* // "retainAckedMessages": false,
48064820
* // "retryPolicy": {},
48074821
* // "state": "my_state",
4822+
* // "tags": {},
48084823
* // "topic": "my_topic",
48094824
* // "topicMessageRetentionDuration": "my_topicMessageRetentionDuration"
48104825
* // }
@@ -5241,6 +5256,7 @@ export namespace pubsub_v1 {
52415256
* // "retainAckedMessages": false,
52425257
* // "retryPolicy": {},
52435258
* // "state": "my_state",
5259+
* // "tags": {},
52445260
* // "topic": "my_topic",
52455261
* // "topicMessageRetentionDuration": "my_topicMessageRetentionDuration"
52465262
* // }
@@ -5995,6 +6011,7 @@ export namespace pubsub_v1 {
59956011
* // "retainAckedMessages": false,
59966012
* // "retryPolicy": {},
59976013
* // "state": "my_state",
6014+
* // "tags": {},
59986015
* // "topic": "my_topic",
59996016
* // "topicMessageRetentionDuration": "my_topicMessageRetentionDuration"
60006017
* // }
@@ -6910,7 +6927,8 @@ export namespace pubsub_v1 {
69106927
* // "name": "my_name",
69116928
* // "satisfiesPzs": false,
69126929
* // "schemaSettings": {},
6913-
* // "state": "my_state"
6930+
* // "state": "my_state",
6931+
* // "tags": {}
69146932
* // }
69156933
* },
69166934
* });
@@ -6927,7 +6945,8 @@ export namespace pubsub_v1 {
69276945
* // "name": "my_name",
69286946
* // "satisfiesPzs": false,
69296947
* // "schemaSettings": {},
6930-
* // "state": "my_state"
6948+
* // "state": "my_state",
6949+
* // "tags": {}
69316950
* // }
69326951
* }
69336952
*
@@ -7208,7 +7227,8 @@ export namespace pubsub_v1 {
72087227
* // "name": "my_name",
72097228
* // "satisfiesPzs": false,
72107229
* // "schemaSettings": {},
7211-
* // "state": "my_state"
7230+
* // "state": "my_state",
7231+
* // "tags": {}
72127232
* // }
72137233
* }
72147234
*
@@ -7652,7 +7672,8 @@ export namespace pubsub_v1 {
76527672
* // "name": "my_name",
76537673
* // "satisfiesPzs": false,
76547674
* // "schemaSettings": {},
7655-
* // "state": "my_state"
7675+
* // "state": "my_state",
7676+
* // "tags": {}
76567677
* // }
76577678
* }
76587679
*

0 commit comments

Comments
 (0)