Skip to content

Commit

Permalink
feat: Automated regeneration of SQLAdmin client (#12527)
Browse files Browse the repository at this point in the history
Auto-created at 2024-11-14 13:19:34 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Nov 14, 2024
1 parent 2b1c283 commit 125ecbf
Show file tree
Hide file tree
Showing 7 changed files with 105 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clients/sql_admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_sql_admin, "~> 0.68"}]
[{:google_api_sql_admin, "~> 0.69"}]
end
```

Expand Down
2 changes: 1 addition & 1 deletion clients/sql_admin/lib/google_api/sql_admin/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.SQLAdmin.V1 do
API client metadata for GoogleApi.SQLAdmin.V1.
"""

@discovery_revision "20241011"
@discovery_revision "20241108"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.SQLAdmin.V1.Model.ExternalSyncSelectedObject do
@moduledoc """
The selected object that Cloud SQL migrates.
## Attributes
* `database` (*type:* `String.t`, *default:* `nil`) - The name of the database that Cloud SQL migrates.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:database => String.t() | nil
}

field(:database)
end

defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.ExternalSyncSelectedObject do
def decode(value, options) do
GoogleApi.SQLAdmin.V1.Model.ExternalSyncSelectedObject.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.ExternalSyncSelectedObject do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ defmodule GoogleApi.SQLAdmin.V1.Model.OnPremisesConfiguration do
* `hostPort` (*type:* `String.t`, *default:* `nil`) - The host and port of the on-premises instance in host:port format
* `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#onPremisesConfiguration`.
* `password` (*type:* `String.t`, *default:* `nil`) - The password for connecting to on-premises instance.
* `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.
* `sourceInstance` (*type:* `GoogleApi.SQLAdmin.V1.Model.InstanceReference.t`, *default:* `nil`) - The reference to Cloud SQL instance if the source is Cloud SQL.
* `sslOption` (*type:* `String.t`, *default:* `nil`) - Optional. SSL option for replica connection to the on-premises source.
* `username` (*type:* `String.t`, *default:* `nil`) - The username for connecting to on-premises instance.
"""

Expand All @@ -42,7 +44,9 @@ defmodule GoogleApi.SQLAdmin.V1.Model.OnPremisesConfiguration do
:hostPort => String.t() | nil,
:kind => String.t() | nil,
:password => String.t() | nil,
:selectedObjects => list(GoogleApi.SQLAdmin.V1.Model.SelectedObjects.t()) | nil,
:sourceInstance => GoogleApi.SQLAdmin.V1.Model.InstanceReference.t() | nil,
:sslOption => String.t() | nil,
:username => String.t() | nil
}

Expand All @@ -53,7 +57,9 @@ defmodule GoogleApi.SQLAdmin.V1.Model.OnPremisesConfiguration do
field(:hostPort)
field(:kind)
field(:password)
field(:selectedObjects, as: GoogleApi.SQLAdmin.V1.Model.SelectedObjects, type: :list)
field(:sourceInstance, as: GoogleApi.SQLAdmin.V1.Model.InstanceReference)
field(:sslOption)
field(:username)
end

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.SQLAdmin.V1.Model.SelectedObjects do
@moduledoc """
A list of objects that the user selects for replication from an external source instance.
## Attributes
* `database` (*type:* `String.t`, *default:* `nil`) - Required. The name of the database to migrate.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:database => String.t() | nil
}

field(:database)
end

defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.SelectedObjects do
def decode(value, options) do
GoogleApi.SQLAdmin.V1.Model.SelectedObjects.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.SelectedObjects do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.SqlInstancesVerifyExternalSyncSettingsRequ
* `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.
* `mysqlSyncConfig` (*type:* `GoogleApi.SQLAdmin.V1.Model.MySqlSyncConfig.t`, *default:* `nil`) - Optional. MySQL-specific settings for start external sync.
* `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.
* `syncMode` (*type:* `String.t`, *default:* `nil`) - External sync mode
* `syncParallelLevel` (*type:* `String.t`, *default:* `nil`) - Optional. Parallel level for initial data sync. Only applicable for PostgreSQL.
* `verifyConnectionOnly` (*type:* `boolean()`, *default:* `nil`) - Flag to enable verifying connection only
Expand All @@ -34,6 +35,8 @@ defmodule GoogleApi.SQLAdmin.V1.Model.SqlInstancesVerifyExternalSyncSettingsRequ
@type t :: %__MODULE__{
:migrationType => String.t() | nil,
:mysqlSyncConfig => GoogleApi.SQLAdmin.V1.Model.MySqlSyncConfig.t() | nil,
:selectedObjects =>
list(GoogleApi.SQLAdmin.V1.Model.ExternalSyncSelectedObject.t()) | nil,
:syncMode => String.t() | nil,
:syncParallelLevel => String.t() | nil,
:verifyConnectionOnly => boolean() | nil,
Expand All @@ -42,6 +45,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.SqlInstancesVerifyExternalSyncSettingsRequ

field(:migrationType)
field(:mysqlSyncConfig, as: GoogleApi.SQLAdmin.V1.Model.MySqlSyncConfig)
field(:selectedObjects, as: GoogleApi.SQLAdmin.V1.Model.ExternalSyncSelectedObject, type: :list)
field(:syncMode)
field(:syncParallelLevel)
field(:verifyConnectionOnly)
Expand Down
2 changes: 1 addition & 1 deletion clients/sql_admin/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.SQLAdmin.Mixfile do
use Mix.Project

@version "0.68.0"
@version "0.69.0"

def project() do
[
Expand Down

0 comments on commit 125ecbf

Please sign in to comment.