Skip to content

Commit c5dea66

Browse files
feat: Automated regeneration of AnalyticsHub client (googleapis#12937)
Auto-created at 2025-02-07 13:16:32 +0000 using the toys pull request generator.
1 parent e21574b commit c5dea66

File tree

5 files changed

+103
-2
lines changed

5 files changed

+103
-2
lines changed

clients/analytics_hub/lib/google_api/analytics_hub/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.AnalyticsHub.V1 do
2020
API client metadata for GoogleApi.AnalyticsHub.V1.
2121
"""
2222

23-
@discovery_revision "20250126"
23+
@discovery_revision "20250203"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/analytics_hub/lib/google_api/analytics_hub/v1/model/big_query_dataset_source.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.AnalyticsHub.V1.Model.BigQueryDatasetSource do
2121
2222
## Attributes
2323
24-
* `dataset` (*type:* `String.t`, *default:* `nil`) - Resource name of the dataset source for this listing. e.g. `projects/myproject/datasets/123`
24+
* `dataset` (*type:* `String.t`, *default:* `nil`) - Optional. Resource name of the dataset source for this listing. e.g. `projects/myproject/datasets/123`
2525
* `restrictedExportPolicy` (*type:* `GoogleApi.AnalyticsHub.V1.Model.RestrictedExportPolicy.t`, *default:* `nil`) - Optional. If set, restricted export policy will be propagated and enforced on the linked dataset.
2626
* `selectedResources` (*type:* `list(GoogleApi.AnalyticsHub.V1.Model.SelectedResource.t)`, *default:* `nil`) - Optional. Resource in this dataset that is selectively shared. This field is required for data clean room exchanges.
2727
"""

clients/analytics_hub/lib/google_api/analytics_hub/v1/model/google_pubsub_v1_subscription.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ defmodule GoogleApi.AnalyticsHub.V1.Model.GooglePubsubV1Subscription do
3333
* `filter` (*type:* `String.t`, *default:* `nil`) - Optional. An expression written in the Pub/Sub [filter language](https://cloud.google.com/pubsub/docs/filtering). If non-empty, then only `PubsubMessage`s whose `attributes` field matches the filter are delivered on this subscription. If empty, then no messages are filtered out.
3434
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. See [Creating and managing labels](https://cloud.google.com/pubsub/docs/labels).
3535
* `messageRetentionDuration` (*type:* `String.t`, *default:* `nil`) - Optional. How long to retain unacknowledged messages in the subscription'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.
36+
* `messageTransforms` (*type:* `list(GoogleApi.AnalyticsHub.V1.Model.MessageTransform.t)`, *default:* `nil`) - Optional. Transforms to be applied to messages before they are delivered to subscribers. Transforms are applied in the order specified.
3637
* `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the subscription. Format is `projects/{project}/subscriptions/{sub}`.
3738
* `pushConfig` (*type:* `GoogleApi.AnalyticsHub.V1.Model.PushConfig.t`, *default:* `nil`) - Optional. If push delivery is used with this subscription, this field is used to configure it.
3839
* `retainAckedMessages` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates whether to retain acknowledged messages. If true, then messages are not expunged from the subscription's backlog, even if they are acknowledged, until they fall out of the `message_retention_duration` window. This must be true if you would like to [`Seek` to a timestamp] (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) in the past to replay previously-acknowledged messages.
@@ -57,6 +58,7 @@ defmodule GoogleApi.AnalyticsHub.V1.Model.GooglePubsubV1Subscription do
5758
:filter => String.t() | nil,
5859
:labels => map() | nil,
5960
:messageRetentionDuration => String.t() | nil,
61+
:messageTransforms => list(GoogleApi.AnalyticsHub.V1.Model.MessageTransform.t()) | nil,
6062
:name => String.t() | nil,
6163
:pushConfig => GoogleApi.AnalyticsHub.V1.Model.PushConfig.t() | nil,
6264
:retainAckedMessages => boolean() | nil,
@@ -81,6 +83,7 @@ defmodule GoogleApi.AnalyticsHub.V1.Model.GooglePubsubV1Subscription do
8183
field(:filter)
8284
field(:labels, type: :map)
8385
field(:messageRetentionDuration)
86+
field(:messageTransforms, as: GoogleApi.AnalyticsHub.V1.Model.MessageTransform, type: :list)
8487
field(:name)
8588
field(:pushConfig, as: GoogleApi.AnalyticsHub.V1.Model.PushConfig)
8689
field(:retainAckedMessages)
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.AnalyticsHub.V1.Model.JavaScriptUDF do
19+
@moduledoc """
20+
User-defined JavaScript function that can transform or filter a Pub/Sub message.
21+
22+
## Attributes
23+
24+
* `code` (*type:* `String.t`, *default:* `nil`) - Required. JavaScript code that contains a function `function_name` with the below signature: ``` /** * Transforms a Pub/Sub message. * @return {(Object)>|null)} - To * filter a message, return `null`. To transform a message return a map * with the following keys: * - (required) 'data' : {string} * - (optional) 'attributes' : {Object} * Returning empty `attributes` will remove all attributes from the * message. * * @param {(Object)>} Pub/Sub * message. Keys: * - (required) 'data' : {string} * - (required) 'attributes' : {Object} * * @param {Object} metadata - Pub/Sub message metadata. * Keys: * - (required) 'message_id' : {string} * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) 'ordering_key': {string} */ function (message, metadata) { } ```
25+
* `functionName` (*type:* `String.t`, *default:* `nil`) - Required. Name of the JavasScript function that should applied to Pub/Sub messages.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:code => String.t() | nil,
32+
:functionName => String.t() | nil
33+
}
34+
35+
field(:code)
36+
field(:functionName)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.AnalyticsHub.V1.Model.JavaScriptUDF do
40+
def decode(value, options) do
41+
GoogleApi.AnalyticsHub.V1.Model.JavaScriptUDF.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.AnalyticsHub.V1.Model.JavaScriptUDF do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.AnalyticsHub.V1.Model.MessageTransform do
19+
@moduledoc """
20+
All supported message transforms types.
21+
22+
## Attributes
23+
24+
* `enabled` (*type:* `boolean()`, *default:* `nil`) - 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`.
25+
* `javascriptUdf` (*type:* `GoogleApi.AnalyticsHub.V1.Model.JavaScriptUDF.t`, *default:* `nil`) - Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's are specified on a resource, each must have a unique `function_name`.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:enabled => boolean() | nil,
32+
:javascriptUdf => GoogleApi.AnalyticsHub.V1.Model.JavaScriptUDF.t() | nil
33+
}
34+
35+
field(:enabled)
36+
field(:javascriptUdf, as: GoogleApi.AnalyticsHub.V1.Model.JavaScriptUDF)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.AnalyticsHub.V1.Model.MessageTransform do
40+
def decode(value, options) do
41+
GoogleApi.AnalyticsHub.V1.Model.MessageTransform.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.AnalyticsHub.V1.Model.MessageTransform do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

0 commit comments

Comments
 (0)