Skip to content

Commit 7e5371e

Browse files
feat: Automated regeneration of PubSub client (googleapis#12777)
Auto-created at 2025-01-07 13:18:16 +0000 using the toys pull request generator.
1 parent 93fea65 commit 7e5371e

File tree

7 files changed

+198
-3
lines changed

7 files changed

+198
-3
lines changed

clients/pub_sub/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_pub_sub, "~> 0.41"}]
14+
[{:google_api_pub_sub, "~> 0.42"}]
1515
end
1616
```
1717

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

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

23-
@discovery_revision "20241212"
23+
@discovery_revision "20241231"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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.PubSub.V1.Model.AwsMsk do
19+
@moduledoc """
20+
Ingestion settings for Amazon MSK.
21+
22+
## Attributes
23+
24+
* `awsRoleArn` (*type:* `String.t`, *default:* `nil`) - Required. AWS role ARN to be used for Federated Identity authentication with Amazon MSK. Check the Pub/Sub docs for how to set up this role and the required permissions that need to be attached to it.
25+
* `clusterArn` (*type:* `String.t`, *default:* `nil`) - Required. The Amazon Resource Name (ARN) that uniquely identifies the cluster.
26+
* `gcpServiceAccount` (*type:* `String.t`, *default:* `nil`) - Required. The GCP service account to be used for Federated Identity authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call for the provided role). The `aws_role_arn` must be set up with `accounts.google.com:sub` equals to this service account number.
27+
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. An output-only field that indicates the state of the Amazon MSK ingestion source.
28+
* `topic` (*type:* `String.t`, *default:* `nil`) - Required. The name of the topic in the Amazon MSK cluster that Pub/Sub will import from.
29+
"""
30+
31+
use GoogleApi.Gax.ModelBase
32+
33+
@type t :: %__MODULE__{
34+
:awsRoleArn => String.t() | nil,
35+
:clusterArn => String.t() | nil,
36+
:gcpServiceAccount => String.t() | nil,
37+
:state => String.t() | nil,
38+
:topic => String.t() | nil
39+
}
40+
41+
field(:awsRoleArn)
42+
field(:clusterArn)
43+
field(:gcpServiceAccount)
44+
field(:state)
45+
field(:topic)
46+
end
47+
48+
defimpl Poison.Decoder, for: GoogleApi.PubSub.V1.Model.AwsMsk do
49+
def decode(value, options) do
50+
GoogleApi.PubSub.V1.Model.AwsMsk.decode(value, options)
51+
end
52+
end
53+
54+
defimpl Poison.Encoder, for: GoogleApi.PubSub.V1.Model.AwsMsk do
55+
def encode(value, options) do
56+
GoogleApi.Gax.ModelBase.encode(value, options)
57+
end
58+
end
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.PubSub.V1.Model.AzureEventHubs do
19+
@moduledoc """
20+
Ingestion settings for Azure Event Hubs.
21+
22+
## Attributes
23+
24+
* `clientId` (*type:* `String.t`, *default:* `nil`) - Optional. The client id of the Azure application that is being used to authenticate Pub/Sub.
25+
* `eventHub` (*type:* `String.t`, *default:* `nil`) - Optional. The name of the Event Hub.
26+
* `gcpServiceAccount` (*type:* `String.t`, *default:* `nil`) - Optional. The GCP service account to be used for Federated Identity authentication.
27+
* `namespace` (*type:* `String.t`, *default:* `nil`) - Optional. The name of the Event Hubs namespace.
28+
* `resourceGroup` (*type:* `String.t`, *default:* `nil`) - Optional. Name of the resource group within the azure subscription.
29+
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. An output-only field that indicates the state of the Event Hubs ingestion source.
30+
* `subscriptionId` (*type:* `String.t`, *default:* `nil`) - Optional. The Azure subscription id.
31+
* `tenantId` (*type:* `String.t`, *default:* `nil`) - Optional. The tenant id of the Azure application that is being used to authenticate Pub/Sub.
32+
"""
33+
34+
use GoogleApi.Gax.ModelBase
35+
36+
@type t :: %__MODULE__{
37+
:clientId => String.t() | nil,
38+
:eventHub => String.t() | nil,
39+
:gcpServiceAccount => String.t() | nil,
40+
:namespace => String.t() | nil,
41+
:resourceGroup => String.t() | nil,
42+
:state => String.t() | nil,
43+
:subscriptionId => String.t() | nil,
44+
:tenantId => String.t() | nil
45+
}
46+
47+
field(:clientId)
48+
field(:eventHub)
49+
field(:gcpServiceAccount)
50+
field(:namespace)
51+
field(:resourceGroup)
52+
field(:state)
53+
field(:subscriptionId)
54+
field(:tenantId)
55+
end
56+
57+
defimpl Poison.Decoder, for: GoogleApi.PubSub.V1.Model.AzureEventHubs do
58+
def decode(value, options) do
59+
GoogleApi.PubSub.V1.Model.AzureEventHubs.decode(value, options)
60+
end
61+
end
62+
63+
defimpl Poison.Encoder, for: GoogleApi.PubSub.V1.Model.AzureEventHubs do
64+
def encode(value, options) do
65+
GoogleApi.Gax.ModelBase.encode(value, options)
66+
end
67+
end
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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.PubSub.V1.Model.ConfluentCloud do
19+
@moduledoc """
20+
Ingestion settings for Confluent Cloud.
21+
22+
## Attributes
23+
24+
* `bootstrapServer` (*type:* `String.t`, *default:* `nil`) - Required. The address of the bootstrap server. The format is url:port.
25+
* `clusterId` (*type:* `String.t`, *default:* `nil`) - Required. The id of the cluster.
26+
* `gcpServiceAccount` (*type:* `String.t`, *default:* `nil`) - Required. The GCP service account to be used for Federated Identity authentication with `identity_pool_id`.
27+
* `identityPoolId` (*type:* `String.t`, *default:* `nil`) - Required. The id of the identity pool to be used for Federated Identity authentication with Confluent Cloud. See https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
28+
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. An output-only field that indicates the state of the Confluent Cloud ingestion source.
29+
* `topic` (*type:* `String.t`, *default:* `nil`) - Required. The name of the topic in the Confluent Cloud cluster that Pub/Sub will import from.
30+
"""
31+
32+
use GoogleApi.Gax.ModelBase
33+
34+
@type t :: %__MODULE__{
35+
:bootstrapServer => String.t() | nil,
36+
:clusterId => String.t() | nil,
37+
:gcpServiceAccount => String.t() | nil,
38+
:identityPoolId => String.t() | nil,
39+
:state => String.t() | nil,
40+
:topic => String.t() | nil
41+
}
42+
43+
field(:bootstrapServer)
44+
field(:clusterId)
45+
field(:gcpServiceAccount)
46+
field(:identityPoolId)
47+
field(:state)
48+
field(:topic)
49+
end
50+
51+
defimpl Poison.Decoder, for: GoogleApi.PubSub.V1.Model.ConfluentCloud do
52+
def decode(value, options) do
53+
GoogleApi.PubSub.V1.Model.ConfluentCloud.decode(value, options)
54+
end
55+
end
56+
57+
defimpl Poison.Encoder, for: GoogleApi.PubSub.V1.Model.ConfluentCloud do
58+
def encode(value, options) do
59+
GoogleApi.Gax.ModelBase.encode(value, options)
60+
end
61+
end

clients/pub_sub/lib/google_api/pub_sub/v1/model/ingestion_data_source_settings.ex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,29 @@ defmodule GoogleApi.PubSub.V1.Model.IngestionDataSourceSettings do
2222
## Attributes
2323
2424
* `awsKinesis` (*type:* `GoogleApi.PubSub.V1.Model.AwsKinesis.t`, *default:* `nil`) - Optional. Amazon Kinesis Data Streams.
25+
* `awsMsk` (*type:* `GoogleApi.PubSub.V1.Model.AwsMsk.t`, *default:* `nil`) - Optional. Amazon MSK.
26+
* `azureEventHubs` (*type:* `GoogleApi.PubSub.V1.Model.AzureEventHubs.t`, *default:* `nil`) - Optional. Azure Event Hubs.
2527
* `cloudStorage` (*type:* `GoogleApi.PubSub.V1.Model.CloudStorage.t`, *default:* `nil`) - Optional. Cloud Storage.
28+
* `confluentCloud` (*type:* `GoogleApi.PubSub.V1.Model.ConfluentCloud.t`, *default:* `nil`) - Optional. Confluent Cloud.
2629
* `platformLogsSettings` (*type:* `GoogleApi.PubSub.V1.Model.PlatformLogsSettings.t`, *default:* `nil`) - Optional. Platform Logs settings. If unset, no Platform Logs will be generated.
2730
"""
2831

2932
use GoogleApi.Gax.ModelBase
3033

3134
@type t :: %__MODULE__{
3235
:awsKinesis => GoogleApi.PubSub.V1.Model.AwsKinesis.t() | nil,
36+
:awsMsk => GoogleApi.PubSub.V1.Model.AwsMsk.t() | nil,
37+
:azureEventHubs => GoogleApi.PubSub.V1.Model.AzureEventHubs.t() | nil,
3338
:cloudStorage => GoogleApi.PubSub.V1.Model.CloudStorage.t() | nil,
39+
:confluentCloud => GoogleApi.PubSub.V1.Model.ConfluentCloud.t() | nil,
3440
:platformLogsSettings => GoogleApi.PubSub.V1.Model.PlatformLogsSettings.t() | nil
3541
}
3642

3743
field(:awsKinesis, as: GoogleApi.PubSub.V1.Model.AwsKinesis)
44+
field(:awsMsk, as: GoogleApi.PubSub.V1.Model.AwsMsk)
45+
field(:azureEventHubs, as: GoogleApi.PubSub.V1.Model.AzureEventHubs)
3846
field(:cloudStorage, as: GoogleApi.PubSub.V1.Model.CloudStorage)
47+
field(:confluentCloud, as: GoogleApi.PubSub.V1.Model.ConfluentCloud)
3948
field(:platformLogsSettings, as: GoogleApi.PubSub.V1.Model.PlatformLogsSettings)
4049
end
4150

clients/pub_sub/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.PubSub.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.41.1"
21+
@version "0.42.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)