Skip to content

Commit 0716538

Browse files
feat(analyticshub): update the api
#### analyticshub:v1 The following keys were added: - schemas.MessageTransform.properties.disabled.type (Total Keys: 1) - schemas.MessageTransform.properties.enabled.deprecated (Total Keys: 1)
1 parent db87ff7 commit 0716538

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docs/dyn/analyticshub_v1.projects.locations.dataExchanges.listings.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,8 @@ <h3>Method Details</h3>
846846
&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.
847847
&quot;messageTransforms&quot;: [ # Optional. Transforms to be applied to messages before they are delivered to subscribers. Transforms are applied in the order specified.
848848
{ # All supported message transforms types.
849-
&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.
850851
&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`.
851852
&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) { } ```
852853
&quot;functionName&quot;: &quot;A String&quot;, # Required. Name of the JavasScript function that should applied to Pub/Sub messages.

googleapiclient/discovery_cache/documents/analyticshub.v1.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@
10271027
}
10281028
}
10291029
},
1030-
"revision": "20250303",
1030+
"revision": "20250310",
10311031
"rootUrl": "https://analyticshub.googleapis.com/",
10321032
"schemas": {
10331033
"AnalyticsHubSubscriptionInfo": {
@@ -1966,8 +1966,13 @@
19661966
"description": "All supported message transforms types.",
19671967
"id": "MessageTransform",
19681968
"properties": {
1969+
"disabled": {
1970+
"description": "Optional. If true, the transform is disabled and will not be applied to messages. Defaults to `false`.",
1971+
"type": "boolean"
1972+
},
19691973
"enabled": {
1970-
"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`.",
1974+
"deprecated": true,
1975+
"description": "Optional. This field is deprecated, use the `disabled` field to disable transforms.",
19711976
"type": "boolean"
19721977
},
19731978
"javascriptUdf": {

0 commit comments

Comments
 (0)