Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6bf4e2d

Browse files
committedMar 25, 2025
feat(pubsub): update the api
#### pubsub:v1 The following keys were added: - schemas.MessageTransform.properties.disabled.type (Total Keys: 1) - schemas.MessageTransform.properties.enabled.deprecated (Total Keys: 1)
1 parent c892cd5 commit 6bf4e2d

File tree

3 files changed

+31
-14
lines changed

3 files changed

+31
-14
lines changed
 

‎docs/dyn/pubsub_v1.projects.subscriptions.html

+12-6
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ <h3>Method Details</h3>
213213
&quot;messageRetentionDuration&quot;: &quot;A String&quot;, # Optional. How long to retain unacknowledged messages in the subscription&#x27;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 31 days or less than 10 minutes.
214214
&quot;messageTransforms&quot;: [ # Optional. Transforms to be applied to messages before they are delivered to subscribers. Transforms are applied in the order specified.
215215
{ # All supported message transforms types.
216-
&quot;enabled&quot;: True or False, # Optional. If set to true, the transform is enabled. If false, the transform is disabled and will not be applied to messages. Defaults to `true`.
216+
&quot;disabled&quot;: True or False, # Optional. If true, the transform is disabled and will not be applied to messages. Defaults to `false`.
217+
&quot;enabled&quot;: True or False, # Optional. This field is deprecated, use the `disabled` field to disable transforms.
217218
&quot;javascriptUdf&quot;: { # User-defined JavaScript function that can transform or filter a Pub/Sub message. # Optional. JavaScript User Defined Function. If multiple JavaScriptUDF&#x27;s are specified on a resource, each must have a unique `function_name`.
218219
&quot;code&quot;: &quot;A String&quot;, # Required. JavaScript code that contains a function `function_name` with the below signature: ``` /** * Transforms a Pub/Sub message. * @return {(Object)&gt;|null)} - To * filter a message, return `null`. To transform a message return a map * with the following keys: * - (required) &#x27;data&#x27; : {string} * - (optional) &#x27;attributes&#x27; : {Object} * Returning empty `attributes` will remove all attributes from the * message. * * @param {(Object)&gt;} Pub/Sub * message. Keys: * - (required) &#x27;data&#x27; : {string} * - (required) &#x27;attributes&#x27; : {Object} * * @param {Object} metadata - Pub/Sub message metadata. * Keys: * - (required) &#x27;message_id&#x27; : {string} * - (optional) &#x27;publish_time&#x27;: {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) &#x27;ordering_key&#x27;: {string} */ function (message, metadata) { } ```
219220
&quot;functionName&quot;: &quot;A String&quot;, # Required. Name of the JavasScript function that should applied to Pub/Sub messages.
@@ -303,7 +304,8 @@ <h3>Method Details</h3>
303304
&quot;messageRetentionDuration&quot;: &quot;A String&quot;, # Optional. How long to retain unacknowledged messages in the subscription&#x27;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 31 days or less than 10 minutes.
304305
&quot;messageTransforms&quot;: [ # Optional. Transforms to be applied to messages before they are delivered to subscribers. Transforms are applied in the order specified.
305306
{ # All supported message transforms types.
306-
&quot;enabled&quot;: True or False, # Optional. If set to true, the transform is enabled. If false, the transform is disabled and will not be applied to messages. Defaults to `true`.
307+
&quot;disabled&quot;: True or False, # Optional. If true, the transform is disabled and will not be applied to messages. Defaults to `false`.
308+
&quot;enabled&quot;: True or False, # Optional. This field is deprecated, use the `disabled` field to disable transforms.
307309
&quot;javascriptUdf&quot;: { # User-defined JavaScript function that can transform or filter a Pub/Sub message. # Optional. JavaScript User Defined Function. If multiple JavaScriptUDF&#x27;s are specified on a resource, each must have a unique `function_name`.
308310
&quot;code&quot;: &quot;A String&quot;, # Required. JavaScript code that contains a function `function_name` with the below signature: ``` /** * Transforms a Pub/Sub message. * @return {(Object)&gt;|null)} - To * filter a message, return `null`. To transform a message return a map * with the following keys: * - (required) &#x27;data&#x27; : {string} * - (optional) &#x27;attributes&#x27; : {Object} * Returning empty `attributes` will remove all attributes from the * message. * * @param {(Object)&gt;} Pub/Sub * message. Keys: * - (required) &#x27;data&#x27; : {string} * - (required) &#x27;attributes&#x27; : {Object} * * @param {Object} metadata - Pub/Sub message metadata. * Keys: * - (required) &#x27;message_id&#x27; : {string} * - (optional) &#x27;publish_time&#x27;: {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) &#x27;ordering_key&#x27;: {string} */ function (message, metadata) { } ```
309311
&quot;functionName&quot;: &quot;A String&quot;, # Required. Name of the JavasScript function that should applied to Pub/Sub messages.
@@ -436,7 +438,8 @@ <h3>Method Details</h3>
436438
&quot;messageRetentionDuration&quot;: &quot;A String&quot;, # Optional. How long to retain unacknowledged messages in the subscription&#x27;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 31 days or less than 10 minutes.
437439
&quot;messageTransforms&quot;: [ # Optional. Transforms to be applied to messages before they are delivered to subscribers. Transforms are applied in the order specified.
438440
{ # All supported message transforms types.
439-
&quot;enabled&quot;: True or False, # Optional. If set to true, the transform is enabled. If false, the transform is disabled and will not be applied to messages. Defaults to `true`.
441+
&quot;disabled&quot;: True or False, # Optional. If true, the transform is disabled and will not be applied to messages. Defaults to `false`.
442+
&quot;enabled&quot;: True or False, # Optional. This field is deprecated, use the `disabled` field to disable transforms.
440443
&quot;javascriptUdf&quot;: { # User-defined JavaScript function that can transform or filter a Pub/Sub message. # Optional. JavaScript User Defined Function. If multiple JavaScriptUDF&#x27;s are specified on a resource, each must have a unique `function_name`.
441444
&quot;code&quot;: &quot;A String&quot;, # Required. JavaScript code that contains a function `function_name` with the below signature: ``` /** * Transforms a Pub/Sub message. * @return {(Object)&gt;|null)} - To * filter a message, return `null`. To transform a message return a map * with the following keys: * - (required) &#x27;data&#x27; : {string} * - (optional) &#x27;attributes&#x27; : {Object} * Returning empty `attributes` will remove all attributes from the * message. * * @param {(Object)&gt;} Pub/Sub * message. Keys: * - (required) &#x27;data&#x27; : {string} * - (required) &#x27;attributes&#x27; : {Object} * * @param {Object} metadata - Pub/Sub message metadata. * Keys: * - (required) &#x27;message_id&#x27; : {string} * - (optional) &#x27;publish_time&#x27;: {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) &#x27;ordering_key&#x27;: {string} */ function (message, metadata) { } ```
442445
&quot;functionName&quot;: &quot;A String&quot;, # Required. Name of the JavasScript function that should applied to Pub/Sub messages.
@@ -573,7 +576,8 @@ <h3>Method Details</h3>
573576
&quot;messageRetentionDuration&quot;: &quot;A String&quot;, # Optional. How long to retain unacknowledged messages in the subscription&#x27;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 31 days or less than 10 minutes.
574577
&quot;messageTransforms&quot;: [ # Optional. Transforms to be applied to messages before they are delivered to subscribers. Transforms are applied in the order specified.
575578
{ # All supported message transforms types.
576-
&quot;enabled&quot;: True or False, # Optional. If set to true, the transform is enabled. If false, the transform is disabled and will not be applied to messages. Defaults to `true`.
579+
&quot;disabled&quot;: True or False, # Optional. If true, the transform is disabled and will not be applied to messages. Defaults to `false`.
580+
&quot;enabled&quot;: True or False, # Optional. This field is deprecated, use the `disabled` field to disable transforms.
577581
&quot;javascriptUdf&quot;: { # User-defined JavaScript function that can transform or filter a Pub/Sub message. # Optional. JavaScript User Defined Function. If multiple JavaScriptUDF&#x27;s are specified on a resource, each must have a unique `function_name`.
578582
&quot;code&quot;: &quot;A String&quot;, # Required. JavaScript code that contains a function `function_name` with the below signature: ``` /** * Transforms a Pub/Sub message. * @return {(Object)&gt;|null)} - To * filter a message, return `null`. To transform a message return a map * with the following keys: * - (required) &#x27;data&#x27; : {string} * - (optional) &#x27;attributes&#x27; : {Object} * Returning empty `attributes` will remove all attributes from the * message. * * @param {(Object)&gt;} Pub/Sub * message. Keys: * - (required) &#x27;data&#x27; : {string} * - (required) &#x27;attributes&#x27; : {Object} * * @param {Object} metadata - Pub/Sub message metadata. * Keys: * - (required) &#x27;message_id&#x27; : {string} * - (optional) &#x27;publish_time&#x27;: {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) &#x27;ordering_key&#x27;: {string} */ function (message, metadata) { } ```
579583
&quot;functionName&quot;: &quot;A String&quot;, # Required. Name of the JavasScript function that should applied to Pub/Sub messages.
@@ -749,7 +753,8 @@ <h3>Method Details</h3>
749753
&quot;messageRetentionDuration&quot;: &quot;A String&quot;, # Optional. How long to retain unacknowledged messages in the subscription&#x27;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 31 days or less than 10 minutes.
750754
&quot;messageTransforms&quot;: [ # Optional. Transforms to be applied to messages before they are delivered to subscribers. Transforms are applied in the order specified.
751755
{ # All supported message transforms types.
752-
&quot;enabled&quot;: True or False, # Optional. If set to true, the transform is enabled. If false, the transform is disabled and will not be applied to messages. Defaults to `true`.
756+
&quot;disabled&quot;: True or False, # Optional. If true, the transform is disabled and will not be applied to messages. Defaults to `false`.
757+
&quot;enabled&quot;: True or False, # Optional. This field is deprecated, use the `disabled` field to disable transforms.
753758
&quot;javascriptUdf&quot;: { # User-defined JavaScript function that can transform or filter a Pub/Sub message. # Optional. JavaScript User Defined Function. If multiple JavaScriptUDF&#x27;s are specified on a resource, each must have a unique `function_name`.
754759
&quot;code&quot;: &quot;A String&quot;, # Required. JavaScript code that contains a function `function_name` with the below signature: ``` /** * Transforms a Pub/Sub message. * @return {(Object)&gt;|null)} - To * filter a message, return `null`. To transform a message return a map * with the following keys: * - (required) &#x27;data&#x27; : {string} * - (optional) &#x27;attributes&#x27; : {Object} * Returning empty `attributes` will remove all attributes from the * message. * * @param {(Object)&gt;} Pub/Sub * message. Keys: * - (required) &#x27;data&#x27; : {string} * - (required) &#x27;attributes&#x27; : {Object} * * @param {Object} metadata - Pub/Sub message metadata. * Keys: * - (required) &#x27;message_id&#x27; : {string} * - (optional) &#x27;publish_time&#x27;: {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) &#x27;ordering_key&#x27;: {string} */ function (message, metadata) { } ```
755760
&quot;functionName&quot;: &quot;A String&quot;, # Required. Name of the JavasScript function that should applied to Pub/Sub messages.
@@ -841,7 +846,8 @@ <h3>Method Details</h3>
841846
&quot;messageRetentionDuration&quot;: &quot;A String&quot;, # Optional. How long to retain unacknowledged messages in the subscription&#x27;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 31 days or less than 10 minutes.
842847
&quot;messageTransforms&quot;: [ # Optional. Transforms to be applied to messages before they are delivered to subscribers. Transforms are applied in the order specified.
843848
{ # All supported message transforms types.
844-
&quot;enabled&quot;: True or False, # Optional. If set to true, the transform is enabled. If false, the transform is disabled and will not be applied to messages. Defaults to `true`.
849+
&quot;disabled&quot;: True or False, # Optional. If true, the transform is disabled and will not be applied to messages. Defaults to `false`.
850+
&quot;enabled&quot;: True or False, # Optional. This field is deprecated, use the `disabled` field to disable transforms.
845851
&quot;javascriptUdf&quot;: { # User-defined JavaScript function that can transform or filter a Pub/Sub message. # Optional. JavaScript User Defined Function. If multiple JavaScriptUDF&#x27;s are specified on a resource, each must have a unique `function_name`.
846852
&quot;code&quot;: &quot;A String&quot;, # Required. JavaScript code that contains a function `function_name` with the below signature: ``` /** * Transforms a Pub/Sub message. * @return {(Object)&gt;|null)} - To * filter a message, return `null`. To transform a message return a map * with the following keys: * - (required) &#x27;data&#x27; : {string} * - (optional) &#x27;attributes&#x27; : {Object} * Returning empty `attributes` will remove all attributes from the * message. * * @param {(Object)&gt;} Pub/Sub * message. Keys: * - (required) &#x27;data&#x27; : {string} * - (required) &#x27;attributes&#x27; : {Object} * * @param {Object} metadata - Pub/Sub message metadata. * Keys: * - (required) &#x27;message_id&#x27; : {string} * - (optional) &#x27;publish_time&#x27;: {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) &#x27;ordering_key&#x27;: {string} */ function (message, metadata) { } ```
847853
&quot;functionName&quot;: &quot;A String&quot;, # Required. Name of the JavasScript function that should applied to Pub/Sub messages.

‎docs/dyn/pubsub_v1.projects.topics.html

+12-6
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ <h3>Method Details</h3>
196196
},
197197
&quot;messageTransforms&quot;: [ # Optional. Transforms to be applied to messages published to the topic. Transforms are applied in the order specified.
198198
{ # All supported message transforms types.
199-
&quot;enabled&quot;: True or False, # Optional. If set to true, the transform is enabled. If false, the transform is disabled and will not be applied to messages. Defaults to `true`.
199+
&quot;disabled&quot;: True or False, # Optional. If true, the transform is disabled and will not be applied to messages. Defaults to `false`.
200+
&quot;enabled&quot;: True or False, # Optional. This field is deprecated, use the `disabled` field to disable transforms.
200201
&quot;javascriptUdf&quot;: { # User-defined JavaScript function that can transform or filter a Pub/Sub message. # Optional. JavaScript User Defined Function. If multiple JavaScriptUDF&#x27;s are specified on a resource, each must have a unique `function_name`.
201202
&quot;code&quot;: &quot;A String&quot;, # Required. JavaScript code that contains a function `function_name` with the below signature: ``` /** * Transforms a Pub/Sub message. * @return {(Object)&gt;|null)} - To * filter a message, return `null`. To transform a message return a map * with the following keys: * - (required) &#x27;data&#x27; : {string} * - (optional) &#x27;attributes&#x27; : {Object} * Returning empty `attributes` will remove all attributes from the * message. * * @param {(Object)&gt;} Pub/Sub * message. Keys: * - (required) &#x27;data&#x27; : {string} * - (required) &#x27;attributes&#x27; : {Object} * * @param {Object} metadata - Pub/Sub message metadata. * Keys: * - (required) &#x27;message_id&#x27; : {string} * - (optional) &#x27;publish_time&#x27;: {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) &#x27;ordering_key&#x27;: {string} */ function (message, metadata) { } ```
202203
&quot;functionName&quot;: &quot;A String&quot;, # Required. Name of the JavasScript function that should applied to Pub/Sub messages.
@@ -286,7 +287,8 @@ <h3>Method Details</h3>
286287
},
287288
&quot;messageTransforms&quot;: [ # Optional. Transforms to be applied to messages published to the topic. Transforms are applied in the order specified.
288289
{ # All supported message transforms types.
289-
&quot;enabled&quot;: True or False, # Optional. If set to true, the transform is enabled. If false, the transform is disabled and will not be applied to messages. Defaults to `true`.
290+
&quot;disabled&quot;: True or False, # Optional. If true, the transform is disabled and will not be applied to messages. Defaults to `false`.
291+
&quot;enabled&quot;: True or False, # Optional. This field is deprecated, use the `disabled` field to disable transforms.
290292
&quot;javascriptUdf&quot;: { # User-defined JavaScript function that can transform or filter a Pub/Sub message. # Optional. JavaScript User Defined Function. If multiple JavaScriptUDF&#x27;s are specified on a resource, each must have a unique `function_name`.
291293
&quot;code&quot;: &quot;A String&quot;, # Required. JavaScript code that contains a function `function_name` with the below signature: ``` /** * Transforms a Pub/Sub message. * @return {(Object)&gt;|null)} - To * filter a message, return `null`. To transform a message return a map * with the following keys: * - (required) &#x27;data&#x27; : {string} * - (optional) &#x27;attributes&#x27; : {Object} * Returning empty `attributes` will remove all attributes from the * message. * * @param {(Object)&gt;} Pub/Sub * message. Keys: * - (required) &#x27;data&#x27; : {string} * - (required) &#x27;attributes&#x27; : {Object} * * @param {Object} metadata - Pub/Sub message metadata. * Keys: * - (required) &#x27;message_id&#x27; : {string} * - (optional) &#x27;publish_time&#x27;: {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) &#x27;ordering_key&#x27;: {string} */ function (message, metadata) { } ```
292294
&quot;functionName&quot;: &quot;A String&quot;, # Required. Name of the JavasScript function that should applied to Pub/Sub messages.
@@ -401,7 +403,8 @@ <h3>Method Details</h3>
401403
},
402404
&quot;messageTransforms&quot;: [ # Optional. Transforms to be applied to messages published to the topic. Transforms are applied in the order specified.
403405
{ # All supported message transforms types.
404-
&quot;enabled&quot;: True or False, # Optional. If set to true, the transform is enabled. If false, the transform is disabled and will not be applied to messages. Defaults to `true`.
406+
&quot;disabled&quot;: True or False, # Optional. If true, the transform is disabled and will not be applied to messages. Defaults to `false`.
407+
&quot;enabled&quot;: True or False, # Optional. This field is deprecated, use the `disabled` field to disable transforms.
405408
&quot;javascriptUdf&quot;: { # User-defined JavaScript function that can transform or filter a Pub/Sub message. # Optional. JavaScript User Defined Function. If multiple JavaScriptUDF&#x27;s are specified on a resource, each must have a unique `function_name`.
406409
&quot;code&quot;: &quot;A String&quot;, # Required. JavaScript code that contains a function `function_name` with the below signature: ``` /** * Transforms a Pub/Sub message. * @return {(Object)&gt;|null)} - To * filter a message, return `null`. To transform a message return a map * with the following keys: * - (required) &#x27;data&#x27; : {string} * - (optional) &#x27;attributes&#x27; : {Object} * Returning empty `attributes` will remove all attributes from the * message. * * @param {(Object)&gt;} Pub/Sub * message. Keys: * - (required) &#x27;data&#x27; : {string} * - (required) &#x27;attributes&#x27; : {Object} * * @param {Object} metadata - Pub/Sub message metadata. * Keys: * - (required) &#x27;message_id&#x27; : {string} * - (optional) &#x27;publish_time&#x27;: {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) &#x27;ordering_key&#x27;: {string} */ function (message, metadata) { } ```
407410
&quot;functionName&quot;: &quot;A String&quot;, # Required. Name of the JavasScript function that should applied to Pub/Sub messages.
@@ -538,7 +541,8 @@ <h3>Method Details</h3>
538541
},
539542
&quot;messageTransforms&quot;: [ # Optional. Transforms to be applied to messages published to the topic. Transforms are applied in the order specified.
540543
{ # All supported message transforms types.
541-
&quot;enabled&quot;: True or False, # Optional. If set to true, the transform is enabled. If false, the transform is disabled and will not be applied to messages. Defaults to `true`.
544+
&quot;disabled&quot;: True or False, # Optional. If true, the transform is disabled and will not be applied to messages. Defaults to `false`.
545+
&quot;enabled&quot;: True or False, # Optional. This field is deprecated, use the `disabled` field to disable transforms.
542546
&quot;javascriptUdf&quot;: { # User-defined JavaScript function that can transform or filter a Pub/Sub message. # Optional. JavaScript User Defined Function. If multiple JavaScriptUDF&#x27;s are specified on a resource, each must have a unique `function_name`.
543547
&quot;code&quot;: &quot;A String&quot;, # Required. JavaScript code that contains a function `function_name` with the below signature: ``` /** * Transforms a Pub/Sub message. * @return {(Object)&gt;|null)} - To * filter a message, return `null`. To transform a message return a map * with the following keys: * - (required) &#x27;data&#x27; : {string} * - (optional) &#x27;attributes&#x27; : {Object} * Returning empty `attributes` will remove all attributes from the * message. * * @param {(Object)&gt;} Pub/Sub * message. Keys: * - (required) &#x27;data&#x27; : {string} * - (required) &#x27;attributes&#x27; : {Object} * * @param {Object} metadata - Pub/Sub message metadata. * Keys: * - (required) &#x27;message_id&#x27; : {string} * - (optional) &#x27;publish_time&#x27;: {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) &#x27;ordering_key&#x27;: {string} */ function (message, metadata) { } ```
544548
&quot;functionName&quot;: &quot;A String&quot;, # Required. Name of the JavasScript function that should applied to Pub/Sub messages.
@@ -647,7 +651,8 @@ <h3>Method Details</h3>
647651
},
648652
&quot;messageTransforms&quot;: [ # Optional. Transforms to be applied to messages published to the topic. Transforms are applied in the order specified.
649653
{ # All supported message transforms types.
650-
&quot;enabled&quot;: True or False, # Optional. If set to true, the transform is enabled. If false, the transform is disabled and will not be applied to messages. Defaults to `true`.
654+
&quot;disabled&quot;: True or False, # Optional. If true, the transform is disabled and will not be applied to messages. Defaults to `false`.
655+
&quot;enabled&quot;: True or False, # Optional. This field is deprecated, use the `disabled` field to disable transforms.
651656
&quot;javascriptUdf&quot;: { # User-defined JavaScript function that can transform or filter a Pub/Sub message. # Optional. JavaScript User Defined Function. If multiple JavaScriptUDF&#x27;s are specified on a resource, each must have a unique `function_name`.
652657
&quot;code&quot;: &quot;A String&quot;, # Required. JavaScript code that contains a function `function_name` with the below signature: ``` /** * Transforms a Pub/Sub message. * @return {(Object)&gt;|null)} - To * filter a message, return `null`. To transform a message return a map * with the following keys: * - (required) &#x27;data&#x27; : {string} * - (optional) &#x27;attributes&#x27; : {Object} * Returning empty `attributes` will remove all attributes from the * message. * * @param {(Object)&gt;} Pub/Sub * message. Keys: * - (required) &#x27;data&#x27; : {string} * - (required) &#x27;attributes&#x27; : {Object} * * @param {Object} metadata - Pub/Sub message metadata. * Keys: * - (required) &#x27;message_id&#x27; : {string} * - (optional) &#x27;publish_time&#x27;: {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) &#x27;ordering_key&#x27;: {string} */ function (message, metadata) { } ```
653658
&quot;functionName&quot;: &quot;A String&quot;, # Required. Name of the JavasScript function that should applied to Pub/Sub messages.
@@ -739,7 +744,8 @@ <h3>Method Details</h3>
739744
},
740745
&quot;messageTransforms&quot;: [ # Optional. Transforms to be applied to messages published to the topic. Transforms are applied in the order specified.
741746
{ # All supported message transforms types.
742-
&quot;enabled&quot;: True or False, # Optional. If set to true, the transform is enabled. If false, the transform is disabled and will not be applied to messages. Defaults to `true`.
747+
&quot;disabled&quot;: True or False, # Optional. If true, the transform is disabled and will not be applied to messages. Defaults to `false`.
748+
&quot;enabled&quot;: True or False, # Optional. This field is deprecated, use the `disabled` field to disable transforms.
743749
&quot;javascriptUdf&quot;: { # User-defined JavaScript function that can transform or filter a Pub/Sub message. # Optional. JavaScript User Defined Function. If multiple JavaScriptUDF&#x27;s are specified on a resource, each must have a unique `function_name`.
744750
&quot;code&quot;: &quot;A String&quot;, # Required. JavaScript code that contains a function `function_name` with the below signature: ``` /** * Transforms a Pub/Sub message. * @return {(Object)&gt;|null)} - To * filter a message, return `null`. To transform a message return a map * with the following keys: * - (required) &#x27;data&#x27; : {string} * - (optional) &#x27;attributes&#x27; : {Object} * Returning empty `attributes` will remove all attributes from the * message. * * @param {(Object)&gt;} Pub/Sub * message. Keys: * - (required) &#x27;data&#x27; : {string} * - (required) &#x27;attributes&#x27; : {Object} * * @param {Object} metadata - Pub/Sub message metadata. * Keys: * - (required) &#x27;message_id&#x27; : {string} * - (optional) &#x27;publish_time&#x27;: {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) &#x27;ordering_key&#x27;: {string} */ function (message, metadata) { } ```
745751
&quot;functionName&quot;: &quot;A String&quot;, # Required. Name of the JavasScript function that should applied to Pub/Sub messages.

‎googleapiclient/discovery_cache/documents/pubsub.v1.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -1638,7 +1638,7 @@
16381638
}
16391639
}
16401640
},
1641-
"revision": "20250218",
1641+
"revision": "20250311",
16421642
"rootUrl": "https://pubsub.googleapis.com/",
16431643
"schemas": {
16441644
"AcknowledgeRequest": {
@@ -2373,8 +2373,13 @@
23732373
"description": "All supported message transforms types.",
23742374
"id": "MessageTransform",
23752375
"properties": {
2376+
"disabled": {
2377+
"description": "Optional. If true, the transform is disabled and will not be applied to messages. Defaults to `false`.",
2378+
"type": "boolean"
2379+
},
23762380
"enabled": {
2377-
"description": "Optional. If set to true, the transform is enabled. If false, the transform is disabled and will not be applied to messages. Defaults to `true`.",
2381+
"deprecated": true,
2382+
"description": "Optional. This field is deprecated, use the `disabled` field to disable transforms.",
23782383
"type": "boolean"
23792384
},
23802385
"javascriptUdf": {

0 commit comments

Comments
 (0)
Please sign in to comment.