Skip to content

Commit 904f72d

Browse files
yoshi-automationsofisl
authored andcommitted
feat(pubsub): update the API
#### pubsub:v1 The following keys were added: - schemas.AvroConfig.properties.useTopicSchema.description - schemas.AvroConfig.properties.useTopicSchema.type
1 parent 66f4593 commit 904f72d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

discovery/pubsub-v1.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@
15831583
}
15841584
}
15851585
},
1586-
"revision": "20240430",
1586+
"revision": "20240613",
15871587
"rootUrl": "https://pubsub.googleapis.com/",
15881588
"schemas": {
15891589
"AcknowledgeRequest": {
@@ -1604,6 +1604,10 @@
16041604
"description": "Configuration for writing message data in Avro format. Message payloads and metadata will be written to files as an Avro binary.",
16051605
"id": "AvroConfig",
16061606
"properties": {
1607+
"useTopicSchema": {
1608+
"description": "Optional. When true, the output Cloud Storage file will be serialized using the topic schema, if it exists.",
1609+
"type": "boolean"
1610+
},
16071611
"writeMetadata": {
16081612
"description": "Optional. When true, write the subscription name, message_id, publish_time, attributes, and ordering_key as additional fields in the output. The subscription name, message_id, and publish_time fields are put in their own fields while all other message properties other than data (for example, an ordering_key, if present) are added as entries in the attributes map.",
16091613
"type": "boolean"

src/apis/pubsub/v1.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ export namespace pubsub_v1 {
137137
* Configuration for writing message data in Avro format. Message payloads and metadata will be written to files as an Avro binary.
138138
*/
139139
export interface Schema$AvroConfig {
140+
/**
141+
* Optional. When true, the output Cloud Storage file will be serialized using the topic schema, if it exists.
142+
*/
143+
useTopicSchema?: boolean | null;
140144
/**
141145
* Optional. When true, write the subscription name, message_id, publish_time, attributes, and ordering_key as additional fields in the output. The subscription name, message_id, and publish_time fields are put in their own fields while all other message properties other than data (for example, an ordering_key, if present) are added as entries in the attributes map.
142146
*/

0 commit comments

Comments
 (0)