Skip to content

Commit 1f8278f

Browse files
feat: Automated regeneration of Datastream client (googleapis#12934)
Auto-created at 2025-02-07 13:13:07 +0000 using the toys pull request generator.
1 parent dba8a8a commit 1f8278f

File tree

3 files changed

+50
-1
lines changed

3 files changed

+50
-1
lines changed

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 "20250122"
23+
@discovery_revision "20250202"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
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.MysqlGtidPosition do
19+
@moduledoc """
20+
MySQL GTID position
21+
22+
## Attributes
23+
24+
* `gtidSet` (*type:* `String.t`, *default:* `nil`) - Required. The gtid set to start replication from.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:gtidSet => String.t() | nil
31+
}
32+
33+
field(:gtidSet)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.MysqlGtidPosition do
37+
def decode(value, options) do
38+
GoogleApi.Datastream.V1.Model.MysqlGtidPosition.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.MysqlGtidPosition do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.Datastream.V1.Model.SpecificStartPosition do
2121
2222
## Attributes
2323
24+
* `mysqlGtidPosition` (*type:* `GoogleApi.Datastream.V1.Model.MysqlGtidPosition.t`, *default:* `nil`) - MySQL GTID set to start replicating from.
2425
* `mysqlLogPosition` (*type:* `GoogleApi.Datastream.V1.Model.MysqlLogPosition.t`, *default:* `nil`) - MySQL specific log position to start replicating from.
2526
* `oracleScnPosition` (*type:* `GoogleApi.Datastream.V1.Model.OracleScnPosition.t`, *default:* `nil`) - Oracle SCN to start replicating from.
2627
* `sqlServerLsnPosition` (*type:* `GoogleApi.Datastream.V1.Model.SqlServerLsnPosition.t`, *default:* `nil`) - SqlServer LSN to start replicating from.
@@ -29,11 +30,13 @@ defmodule GoogleApi.Datastream.V1.Model.SpecificStartPosition do
2930
use GoogleApi.Gax.ModelBase
3031

3132
@type t :: %__MODULE__{
33+
:mysqlGtidPosition => GoogleApi.Datastream.V1.Model.MysqlGtidPosition.t() | nil,
3234
:mysqlLogPosition => GoogleApi.Datastream.V1.Model.MysqlLogPosition.t() | nil,
3335
:oracleScnPosition => GoogleApi.Datastream.V1.Model.OracleScnPosition.t() | nil,
3436
:sqlServerLsnPosition => GoogleApi.Datastream.V1.Model.SqlServerLsnPosition.t() | nil
3537
}
3638

39+
field(:mysqlGtidPosition, as: GoogleApi.Datastream.V1.Model.MysqlGtidPosition)
3740
field(:mysqlLogPosition, as: GoogleApi.Datastream.V1.Model.MysqlLogPosition)
3841
field(:oracleScnPosition, as: GoogleApi.Datastream.V1.Model.OracleScnPosition)
3942
field(:sqlServerLsnPosition, as: GoogleApi.Datastream.V1.Model.SqlServerLsnPosition)

0 commit comments

Comments
 (0)