Skip to content

Commit cc1e3f6

Browse files
feat: Automated regeneration of Datastream client (googleapis#12471)
Auto-created at 2024-11-03 13:13:37 +0000 using the toys pull request generator.
1 parent 8fff2f7 commit cc1e3f6

File tree

14 files changed

+349
-4
lines changed

14 files changed

+349
-4
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.7"}]
14+
[{:google_api_datastream, "~> 0.8"}]
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 "20240930"
23+
@discovery_revision "20241028"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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.BinaryLogParser do
19+
@moduledoc """
20+
Configuration to use Binary Log Parser CDC technique.
21+
22+
## Attributes
23+
24+
* `logFileDirectories` (*type:* `GoogleApi.Datastream.V1.Model.LogFileDirectories.t`, *default:* `nil`) - Use Oracle directories.
25+
* `oracleAsmLogFileAccess` (*type:* `GoogleApi.Datastream.V1.Model.OracleAsmLogFileAccess.t`, *default:* `nil`) - Use Oracle ASM.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:logFileDirectories => GoogleApi.Datastream.V1.Model.LogFileDirectories.t() | nil,
32+
:oracleAsmLogFileAccess =>
33+
GoogleApi.Datastream.V1.Model.OracleAsmLogFileAccess.t() | nil
34+
}
35+
36+
field(:logFileDirectories, as: GoogleApi.Datastream.V1.Model.LogFileDirectories)
37+
field(:oracleAsmLogFileAccess, as: GoogleApi.Datastream.V1.Model.OracleAsmLogFileAccess)
38+
end
39+
40+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.BinaryLogParser do
41+
def decode(value, options) do
42+
GoogleApi.Datastream.V1.Model.BinaryLogParser.decode(value, options)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.BinaryLogParser do
47+
def encode(value, options) do
48+
GoogleApi.Gax.ModelBase.encode(value, options)
49+
end
50+
end
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.BinaryLogPosition do
19+
@moduledoc """
20+
Use Binary log position based replication.
21+
22+
## Attributes
23+
24+
"""
25+
26+
use GoogleApi.Gax.ModelBase
27+
28+
@type t :: %__MODULE__{}
29+
end
30+
31+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.BinaryLogPosition do
32+
def decode(value, options) do
33+
GoogleApi.Datastream.V1.Model.BinaryLogPosition.decode(value, options)
34+
end
35+
end
36+
37+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.BinaryLogPosition do
38+
def encode(value, options) do
39+
GoogleApi.Gax.ModelBase.encode(value, options)
40+
end
41+
end
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.Gtid do
19+
@moduledoc """
20+
Use GTID based replication.
21+
22+
## Attributes
23+
24+
"""
25+
26+
use GoogleApi.Gax.ModelBase
27+
28+
@type t :: %__MODULE__{}
29+
end
30+
31+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.Gtid do
32+
def decode(value, options) do
33+
GoogleApi.Datastream.V1.Model.Gtid.decode(value, options)
34+
end
35+
end
36+
37+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.Gtid do
38+
def encode(value, options) do
39+
GoogleApi.Gax.ModelBase.encode(value, options)
40+
end
41+
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.Datastream.V1.Model.LogFileDirectories do
19+
@moduledoc """
20+
Configuration to specify the Oracle directories to access the log files.
21+
22+
## Attributes
23+
24+
* `archivedLogDirectory` (*type:* `String.t`, *default:* `nil`) - Required. Oracle directory for archived logs.
25+
* `onlineLogDirectory` (*type:* `String.t`, *default:* `nil`) - Required. Oracle directory for online logs.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:archivedLogDirectory => String.t() | nil,
32+
:onlineLogDirectory => String.t() | nil
33+
}
34+
35+
field(:archivedLogDirectory)
36+
field(:onlineLogDirectory)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.LogFileDirectories do
40+
def decode(value, options) do
41+
GoogleApi.Datastream.V1.Model.LogFileDirectories.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.LogFileDirectories do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.LogMiner do
19+
@moduledoc """
20+
Configuration to use LogMiner CDC method.
21+
22+
## Attributes
23+
24+
"""
25+
26+
use GoogleApi.Gax.ModelBase
27+
28+
@type t :: %__MODULE__{}
29+
end
30+
31+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.LogMiner do
32+
def decode(value, options) do
33+
GoogleApi.Datastream.V1.Model.LogMiner.decode(value, options)
34+
end
35+
end
36+
37+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.LogMiner do
38+
def encode(value, options) do
39+
GoogleApi.Gax.ModelBase.encode(value, options)
40+
end
41+
end

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ defmodule GoogleApi.Datastream.V1.Model.MysqlSourceConfig do
2121
2222
## Attributes
2323
24+
* `binaryLogPosition` (*type:* `GoogleApi.Datastream.V1.Model.BinaryLogPosition.t`, *default:* `nil`) - Use Binary log position based replication.
2425
* `excludeObjects` (*type:* `GoogleApi.Datastream.V1.Model.MysqlRdbms.t`, *default:* `nil`) - MySQL objects to exclude from the stream.
26+
* `gtid` (*type:* `GoogleApi.Datastream.V1.Model.Gtid.t`, *default:* `nil`) - Use GTID based replication.
2527
* `includeObjects` (*type:* `GoogleApi.Datastream.V1.Model.MysqlRdbms.t`, *default:* `nil`) - MySQL objects to retrieve from the source.
2628
* `maxConcurrentBackfillTasks` (*type:* `integer()`, *default:* `nil`) - Maximum number of concurrent backfill tasks. The number should be non negative. If not set (or set to 0), the system's default value will be used.
2729
* `maxConcurrentCdcTasks` (*type:* `integer()`, *default:* `nil`) - Maximum number of concurrent CDC tasks. The number should be non negative. If not set (or set to 0), the system's default value will be used.
@@ -30,13 +32,17 @@ defmodule GoogleApi.Datastream.V1.Model.MysqlSourceConfig do
3032
use GoogleApi.Gax.ModelBase
3133

3234
@type t :: %__MODULE__{
35+
:binaryLogPosition => GoogleApi.Datastream.V1.Model.BinaryLogPosition.t() | nil,
3336
:excludeObjects => GoogleApi.Datastream.V1.Model.MysqlRdbms.t() | nil,
37+
:gtid => GoogleApi.Datastream.V1.Model.Gtid.t() | nil,
3438
:includeObjects => GoogleApi.Datastream.V1.Model.MysqlRdbms.t() | nil,
3539
:maxConcurrentBackfillTasks => integer() | nil,
3640
:maxConcurrentCdcTasks => integer() | nil
3741
}
3842

43+
field(:binaryLogPosition, as: GoogleApi.Datastream.V1.Model.BinaryLogPosition)
3944
field(:excludeObjects, as: GoogleApi.Datastream.V1.Model.MysqlRdbms)
45+
field(:gtid, as: GoogleApi.Datastream.V1.Model.Gtid)
4046
field(:includeObjects, as: GoogleApi.Datastream.V1.Model.MysqlRdbms)
4147
field(:maxConcurrentBackfillTasks)
4248
field(:maxConcurrentCdcTasks)
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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.OracleAsmConfig do
19+
@moduledoc """
20+
Configuration for Oracle Automatic Storage Management (ASM) connection.
21+
22+
## Attributes
23+
24+
* `asmService` (*type:* `String.t`, *default:* `nil`) - Required. ASM service name for the Oracle ASM connection.
25+
* `connectionAttributes` (*type:* `map()`, *default:* `nil`) - Optional. Connection string attributes
26+
* `hostname` (*type:* `String.t`, *default:* `nil`) - Required. Hostname for the Oracle ASM connection.
27+
* `oracleSslConfig` (*type:* `GoogleApi.Datastream.V1.Model.OracleSslConfig.t`, *default:* `nil`) - Optional. SSL configuration for the Oracle connection.
28+
* `password` (*type:* `String.t`, *default:* `nil`) - Required. Password for the Oracle ASM connection.
29+
* `port` (*type:* `integer()`, *default:* `nil`) - Required. Port for the Oracle ASM connection.
30+
* `username` (*type:* `String.t`, *default:* `nil`) - Required. Username for the Oracle ASM connection.
31+
"""
32+
33+
use GoogleApi.Gax.ModelBase
34+
35+
@type t :: %__MODULE__{
36+
:asmService => String.t() | nil,
37+
:connectionAttributes => map() | nil,
38+
:hostname => String.t() | nil,
39+
:oracleSslConfig => GoogleApi.Datastream.V1.Model.OracleSslConfig.t() | nil,
40+
:password => String.t() | nil,
41+
:port => integer() | nil,
42+
:username => String.t() | nil
43+
}
44+
45+
field(:asmService)
46+
field(:connectionAttributes, type: :map)
47+
field(:hostname)
48+
field(:oracleSslConfig, as: GoogleApi.Datastream.V1.Model.OracleSslConfig)
49+
field(:password)
50+
field(:port)
51+
field(:username)
52+
end
53+
54+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.OracleAsmConfig do
55+
def decode(value, options) do
56+
GoogleApi.Datastream.V1.Model.OracleAsmConfig.decode(value, options)
57+
end
58+
end
59+
60+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.OracleAsmConfig do
61+
def encode(value, options) do
62+
GoogleApi.Gax.ModelBase.encode(value, options)
63+
end
64+
end
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.OracleAsmLogFileAccess do
19+
@moduledoc """
20+
Configuration to use Oracle ASM to access the log files.
21+
22+
## Attributes
23+
24+
"""
25+
26+
use GoogleApi.Gax.ModelBase
27+
28+
@type t :: %__MODULE__{}
29+
end
30+
31+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.OracleAsmLogFileAccess do
32+
def decode(value, options) do
33+
GoogleApi.Datastream.V1.Model.OracleAsmLogFileAccess.decode(value, options)
34+
end
35+
end
36+
37+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.OracleAsmLogFileAccess do
38+
def encode(value, options) do
39+
GoogleApi.Gax.ModelBase.encode(value, options)
40+
end
41+
end

0 commit comments

Comments
 (0)