Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of DataMigration client #12180

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/data_migration/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_data_migration, "~> 0.15"}]
[{:google_api_data_migration, "~> 0.16"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.DataMigration.V1 do
API client metadata for GoogleApi.DataMigration.V1.
"""

@discovery_revision "20240812"
@discovery_revision "20240914"

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.DataMigration.V1.Model.AuthorizedNetwork do
@moduledoc """
AuthorizedNetwork contains metadata for an authorized network.

## Attributes

* `cidrRange` (*type:* `String.t`, *default:* `nil`) - Optional. CIDR range for one authorzied network of the instance.
"""

use GoogleApi.Gax.ModelBase

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

field(:cidrRange)
end

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

defimpl Poison.Encoder, for: GoogleApi.DataMigration.V1.Model.AuthorizedNetwork 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 @@ -30,7 +30,8 @@ defmodule GoogleApi.DataMigration.V1.Model.CloudSqlSettings do
* `dataDiskSizeGb` (*type:* `String.t`, *default:* `nil`) - The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.
* `dataDiskType` (*type:* `String.t`, *default:* `nil`) - The type of storage: `PD_SSD` (default) or `PD_HDD`.
* `databaseFlags` (*type:* `map()`, *default:* `nil`) - The database flags passed to the Cloud SQL instance at startup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
* `databaseVersion` (*type:* `String.t`, *default:* `nil`) - The database engine type and version.
* `databaseVersion` (*type:* `String.t`, *default:* `nil`) - The database engine type and version. Deprecated. Use database_version_name instead.
* `databaseVersionName` (*type:* `String.t`, *default:* `nil`) - Optional. The database engine type and version name.
* `edition` (*type:* `String.t`, *default:* `nil`) - Optional. The edition of the given Cloud SQL instance.
* `ipConfig` (*type:* `GoogleApi.DataMigration.V1.Model.SqlIpConfig.t`, *default:* `nil`) - The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled.
* `rootPassword` (*type:* `String.t`, *default:* `nil`) - Input only. Initial root password.
Expand All @@ -56,6 +57,7 @@ defmodule GoogleApi.DataMigration.V1.Model.CloudSqlSettings do
:dataDiskType => String.t() | nil,
:databaseFlags => map() | nil,
:databaseVersion => String.t() | nil,
:databaseVersionName => String.t() | nil,
:edition => String.t() | nil,
:ipConfig => GoogleApi.DataMigration.V1.Model.SqlIpConfig.t() | nil,
:rootPassword => String.t() | nil,
Expand All @@ -78,6 +80,7 @@ defmodule GoogleApi.DataMigration.V1.Model.CloudSqlSettings do
field(:dataDiskType)
field(:databaseFlags, type: :map)
field(:databaseVersion)
field(:databaseVersionName)
field(:edition)
field(:ipConfig, as: GoogleApi.DataMigration.V1.Model.SqlIpConfig)
field(:rootPassword)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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.DataMigration.V1.Model.InstanceNetworkConfig do
@moduledoc """
Metadata related to instance level network configuration.

## Attributes

* `authorizedExternalNetworks` (*type:* `list(GoogleApi.DataMigration.V1.Model.AuthorizedNetwork.t)`, *default:* `nil`) - Optional. A list of external network authorized to access this instance.
* `enableOutboundPublicIp` (*type:* `boolean()`, *default:* `nil`) - Optional. Enabling an outbound public IP address to support a database server sending requests out into the internet.
* `enablePublicIp` (*type:* `boolean()`, *default:* `nil`) - Optional. Enabling public ip for the instance.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:authorizedExternalNetworks =>
list(GoogleApi.DataMigration.V1.Model.AuthorizedNetwork.t()) | nil,
:enableOutboundPublicIp => boolean() | nil,
:enablePublicIp => boolean() | nil
}

field(:authorizedExternalNetworks,
as: GoogleApi.DataMigration.V1.Model.AuthorizedNetwork,
type: :list
)

field(:enableOutboundPublicIp)
field(:enablePublicIp)
end

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

defimpl Poison.Encoder, for: GoogleApi.DataMigration.V1.Model.InstanceNetworkConfig 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,8 +23,10 @@ defmodule GoogleApi.DataMigration.V1.Model.PrimaryInstanceSettings do

* `databaseFlags` (*type:* `map()`, *default:* `nil`) - Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and instances. See the AlloyDB documentation for how these can be used.
* `id` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the AlloyDB primary instance. The ID must satisfy the regex expression "[a-z0-9-]+".
* `instanceNetworkConfig` (*type:* `GoogleApi.DataMigration.V1.Model.InstanceNetworkConfig.t`, *default:* `nil`) - Optional. Metadata related to instance level network configuration.
* `labels` (*type:* `map()`, *default:* `nil`) - Labels for the AlloyDB primary instance created by DMS. An object containing a list of 'key', 'value' pairs.
* `machineConfig` (*type:* `GoogleApi.DataMigration.V1.Model.MachineConfig.t`, *default:* `nil`) - Configuration for the machines that host the underlying database engine.
* `outboundPublicIpAddresses` (*type:* `list(String.t)`, *default:* `nil`) - Output only. All outbound public IP addresses configured for the instance.
* `privateIp` (*type:* `String.t`, *default:* `nil`) - Output only. The private IP address for the Instance. This is the connection endpoint for an end-user application.
"""

Expand All @@ -33,15 +35,20 @@ defmodule GoogleApi.DataMigration.V1.Model.PrimaryInstanceSettings do
@type t :: %__MODULE__{
:databaseFlags => map() | nil,
:id => String.t() | nil,
:instanceNetworkConfig =>
GoogleApi.DataMigration.V1.Model.InstanceNetworkConfig.t() | nil,
:labels => map() | nil,
:machineConfig => GoogleApi.DataMigration.V1.Model.MachineConfig.t() | nil,
:outboundPublicIpAddresses => list(String.t()) | nil,
:privateIp => String.t() | nil
}

field(:databaseFlags, type: :map)
field(:id)
field(:instanceNetworkConfig, as: GoogleApi.DataMigration.V1.Model.InstanceNetworkConfig)
field(:labels, type: :map)
field(:machineConfig, as: GoogleApi.DataMigration.V1.Model.MachineConfig)
field(:outboundPublicIpAddresses, type: :list)
field(:privateIp)
end

Expand Down
2 changes: 1 addition & 1 deletion clients/data_migration/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.DataMigration.Mixfile do
use Mix.Project

@version "0.15.0"
@version "0.16.0"

def project() do
[
Expand Down
Loading