Skip to content

Commit 289b080

Browse files
feat: Automated regeneration of Datastream client (#12801)
Auto-created at 2025-01-10 13:16:59 +0000 using the toys pull request generator.
1 parent e503eb4 commit 289b080

File tree

7 files changed

+157
-3
lines changed

7 files changed

+157
-3
lines changed

clients/datastream/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_datastream, "~> 0.9"}]
14+
[{:google_api_datastream, "~> 0.10"}]
1515
end
1616
```
1717

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

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

23-
@discovery_revision "20241204"
23+
@discovery_revision "20250101"
2424

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

clients/datastream/lib/google_api/datastream/v1/model/postgresql_profile.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ defmodule GoogleApi.Datastream.V1.Model.PostgresqlProfile do
2525
* `hostname` (*type:* `String.t`, *default:* `nil`) - Required. Hostname for the PostgreSQL connection.
2626
* `password` (*type:* `String.t`, *default:* `nil`) - Optional. Password for the PostgreSQL connection. Mutually exclusive with the `secret_manager_stored_password` field.
2727
* `port` (*type:* `integer()`, *default:* `nil`) - Port for the PostgreSQL connection, default value is 5432.
28+
* `sslConfig` (*type:* `GoogleApi.Datastream.V1.Model.PostgresqlSslConfig.t`, *default:* `nil`) - Optional. SSL configuration for the PostgreSQL connection. In case PostgresqlSslConfig is not set, the connection will use the default SSL mode, which is `prefer` (i.e. this mode will only use encryption if enabled from database side, otherwise will use unencrypted communication)
2829
* `username` (*type:* `String.t`, *default:* `nil`) - Required. Username for the PostgreSQL connection.
2930
"""
3031

@@ -35,13 +36,15 @@ defmodule GoogleApi.Datastream.V1.Model.PostgresqlProfile do
3536
:hostname => String.t() | nil,
3637
:password => String.t() | nil,
3738
:port => integer() | nil,
39+
:sslConfig => GoogleApi.Datastream.V1.Model.PostgresqlSslConfig.t() | nil,
3840
:username => String.t() | nil
3941
}
4042

4143
field(:database)
4244
field(:hostname)
4345
field(:password)
4446
field(:port)
47+
field(:sslConfig, as: GoogleApi.Datastream.V1.Model.PostgresqlSslConfig)
4548
field(:username)
4649
end
4750

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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.Datastream.V1.Model.PostgresqlSslConfig do
19+
@moduledoc """
20+
PostgreSQL SSL configuration information.
21+
22+
## Attributes
23+
24+
* `serverAndClientVerification` (*type:* `GoogleApi.Datastream.V1.Model.ServerAndClientVerification.t`, *default:* `nil`) - If this field is set, the communication will be encrypted with TLS encryption and both the server identity and the client identity will be authenticated.
25+
* `serverVerification` (*type:* `GoogleApi.Datastream.V1.Model.ServerVerification.t`, *default:* `nil`) - If this field is set, the communication will be encrypted with TLS encryption and the server identity will be authenticated.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:serverAndClientVerification =>
32+
GoogleApi.Datastream.V1.Model.ServerAndClientVerification.t() | nil,
33+
:serverVerification => GoogleApi.Datastream.V1.Model.ServerVerification.t() | nil
34+
}
35+
36+
field(:serverAndClientVerification,
37+
as: GoogleApi.Datastream.V1.Model.ServerAndClientVerification
38+
)
39+
40+
field(:serverVerification, as: GoogleApi.Datastream.V1.Model.ServerVerification)
41+
end
42+
43+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.PostgresqlSslConfig do
44+
def decode(value, options) do
45+
GoogleApi.Datastream.V1.Model.PostgresqlSslConfig.decode(value, options)
46+
end
47+
end
48+
49+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.PostgresqlSslConfig do
50+
def encode(value, options) do
51+
GoogleApi.Gax.ModelBase.encode(value, options)
52+
end
53+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.Datastream.V1.Model.ServerAndClientVerification do
19+
@moduledoc """
20+
Message represents the option where Datastream will enforce the encryption and authenticate the server identity as well as the client identity. ca_certificate, client_certificate and client_key must be set if user selects this option.
21+
22+
## Attributes
23+
24+
* `caCertificate` (*type:* `String.t`, *default:* `nil`) - Required. Input only. PEM-encoded server root CA certificate.
25+
* `clientCertificate` (*type:* `String.t`, *default:* `nil`) - Required. Input only. PEM-encoded certificate used by the source database to authenticate the client identity (i.e., the Datastream's identity). This certificate is signed by either a root certificate trusted by the server or one or more intermediate certificates (which is stored with the leaf certificate) to link the this certificate to the trusted root certificate.
26+
* `clientKey` (*type:* `String.t`, *default:* `nil`) - Required. Input only. PEM-encoded private key associated with the client certificate. This value will be used during the SSL/TLS handshake, allowing the PostgreSQL server to authenticate the client's identity, i.e. identity of the Datastream.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:caCertificate => String.t() | nil,
33+
:clientCertificate => String.t() | nil,
34+
:clientKey => String.t() | nil
35+
}
36+
37+
field(:caCertificate)
38+
field(:clientCertificate)
39+
field(:clientKey)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.ServerAndClientVerification do
43+
def decode(value, options) do
44+
GoogleApi.Datastream.V1.Model.ServerAndClientVerification.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.ServerAndClientVerification do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.Datastream.V1.Model.ServerVerification do
19+
@moduledoc """
20+
Message represents the option where Datastream will enforce the encryption and authenticate the server identity. ca_certificate must be set if user selects this option.
21+
22+
## Attributes
23+
24+
* `caCertificate` (*type:* `String.t`, *default:* `nil`) - Required. Input only. PEM-encoded server root CA certificate.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:caCertificate => String.t() | nil
31+
}
32+
33+
field(:caCertificate)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.ServerVerification do
37+
def decode(value, options) do
38+
GoogleApi.Datastream.V1.Model.ServerVerification.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.ServerVerification do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/datastream/mix.exs

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

21-
@version "0.9.0"
21+
@version "0.10.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)