Skip to content

Commit 125ecbf

Browse files
feat: Automated regeneration of SQLAdmin client (googleapis#12527)
Auto-created at 2024-11-14 13:19:34 +0000 using the toys pull request generator.
1 parent 2b1c283 commit 125ecbf

File tree

7 files changed

+105
-3
lines changed

7 files changed

+105
-3
lines changed

clients/sql_admin/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_sql_admin, "~> 0.68"}]
14+
[{:google_api_sql_admin, "~> 0.69"}]
1515
end
1616
```
1717

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

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

23-
@discovery_revision "20241011"
23+
@discovery_revision "20241108"
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.SQLAdmin.V1.Model.ExternalSyncSelectedObject do
19+
@moduledoc """
20+
The selected object that Cloud SQL migrates.
21+
22+
## Attributes
23+
24+
* `database` (*type:* `String.t`, *default:* `nil`) - The name of the database that Cloud SQL migrates.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:database => String.t() | nil
31+
}
32+
33+
field(:database)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.ExternalSyncSelectedObject do
37+
def decode(value, options) do
38+
GoogleApi.SQLAdmin.V1.Model.ExternalSyncSelectedObject.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.ExternalSyncSelectedObject do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/sql_admin/lib/google_api/sql_admin/v1/model/on_premises_configuration.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ defmodule GoogleApi.SQLAdmin.V1.Model.OnPremisesConfiguration do
2828
* `hostPort` (*type:* `String.t`, *default:* `nil`) - The host and port of the on-premises instance in host:port format
2929
* `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#onPremisesConfiguration`.
3030
* `password` (*type:* `String.t`, *default:* `nil`) - The password for connecting to on-premises instance.
31+
* `selectedObjects` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.SelectedObjects.t)`, *default:* `nil`) - Optional. A list of objects that the user selects for replication from an external source instance.
3132
* `sourceInstance` (*type:* `GoogleApi.SQLAdmin.V1.Model.InstanceReference.t`, *default:* `nil`) - The reference to Cloud SQL instance if the source is Cloud SQL.
33+
* `sslOption` (*type:* `String.t`, *default:* `nil`) - Optional. SSL option for replica connection to the on-premises source.
3234
* `username` (*type:* `String.t`, *default:* `nil`) - The username for connecting to on-premises instance.
3335
"""
3436

@@ -42,7 +44,9 @@ defmodule GoogleApi.SQLAdmin.V1.Model.OnPremisesConfiguration do
4244
:hostPort => String.t() | nil,
4345
:kind => String.t() | nil,
4446
:password => String.t() | nil,
47+
:selectedObjects => list(GoogleApi.SQLAdmin.V1.Model.SelectedObjects.t()) | nil,
4548
:sourceInstance => GoogleApi.SQLAdmin.V1.Model.InstanceReference.t() | nil,
49+
:sslOption => String.t() | nil,
4650
:username => String.t() | nil
4751
}
4852

@@ -53,7 +57,9 @@ defmodule GoogleApi.SQLAdmin.V1.Model.OnPremisesConfiguration do
5357
field(:hostPort)
5458
field(:kind)
5559
field(:password)
60+
field(:selectedObjects, as: GoogleApi.SQLAdmin.V1.Model.SelectedObjects, type: :list)
5661
field(:sourceInstance, as: GoogleApi.SQLAdmin.V1.Model.InstanceReference)
62+
field(:sslOption)
5763
field(:username)
5864
end
5965

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.SQLAdmin.V1.Model.SelectedObjects do
19+
@moduledoc """
20+
A list of objects that the user selects for replication from an external source instance.
21+
22+
## Attributes
23+
24+
* `database` (*type:* `String.t`, *default:* `nil`) - Required. The name of the database to migrate.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:database => String.t() | nil
31+
}
32+
33+
field(:database)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.SelectedObjects do
37+
def decode(value, options) do
38+
GoogleApi.SQLAdmin.V1.Model.SelectedObjects.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.SelectedObjects do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_verify_external_sync_settings_request.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.SqlInstancesVerifyExternalSyncSettingsRequ
2323
2424
* `migrationType` (*type:* `String.t`, *default:* `nil`) - Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.
2525
* `mysqlSyncConfig` (*type:* `GoogleApi.SQLAdmin.V1.Model.MySqlSyncConfig.t`, *default:* `nil`) - Optional. MySQL-specific settings for start external sync.
26+
* `selectedObjects` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.ExternalSyncSelectedObject.t)`, *default:* `nil`) - Optional. Migrate only the specified objects from the source instance. If this field is empty, then migrate all objects.
2627
* `syncMode` (*type:* `String.t`, *default:* `nil`) - External sync mode
2728
* `syncParallelLevel` (*type:* `String.t`, *default:* `nil`) - Optional. Parallel level for initial data sync. Only applicable for PostgreSQL.
2829
* `verifyConnectionOnly` (*type:* `boolean()`, *default:* `nil`) - Flag to enable verifying connection only
@@ -34,6 +35,8 @@ defmodule GoogleApi.SQLAdmin.V1.Model.SqlInstancesVerifyExternalSyncSettingsRequ
3435
@type t :: %__MODULE__{
3536
:migrationType => String.t() | nil,
3637
:mysqlSyncConfig => GoogleApi.SQLAdmin.V1.Model.MySqlSyncConfig.t() | nil,
38+
:selectedObjects =>
39+
list(GoogleApi.SQLAdmin.V1.Model.ExternalSyncSelectedObject.t()) | nil,
3740
:syncMode => String.t() | nil,
3841
:syncParallelLevel => String.t() | nil,
3942
:verifyConnectionOnly => boolean() | nil,
@@ -42,6 +45,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.SqlInstancesVerifyExternalSyncSettingsRequ
4245

4346
field(:migrationType)
4447
field(:mysqlSyncConfig, as: GoogleApi.SQLAdmin.V1.Model.MySqlSyncConfig)
48+
field(:selectedObjects, as: GoogleApi.SQLAdmin.V1.Model.ExternalSyncSelectedObject, type: :list)
4549
field(:syncMode)
4650
field(:syncParallelLevel)
4751
field(:verifyConnectionOnly)

clients/sql_admin/mix.exs

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

21-
@version "0.68.0"
21+
@version "0.69.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)