Skip to content

Commit 9686ff4

Browse files
feat: Automated regeneration of DataMigration client (googleapis#12180)
Auto-created at 2024-09-20 13:13:50 +0000 using the toys pull request generator.
1 parent 7112c9a commit 9686ff4

File tree

7 files changed

+117
-4
lines changed

7 files changed

+117
-4
lines changed

clients/data_migration/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_data_migration, "~> 0.15"}]
14+
[{:google_api_data_migration, "~> 0.16"}]
1515
end
1616
```
1717

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

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

23-
@discovery_revision "20240812"
23+
@discovery_revision "20240914"
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.DataMigration.V1.Model.AuthorizedNetwork do
19+
@moduledoc """
20+
AuthorizedNetwork contains metadata for an authorized network.
21+
22+
## Attributes
23+
24+
* `cidrRange` (*type:* `String.t`, *default:* `nil`) - Optional. CIDR range for one authorzied network of the instance.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:cidrRange => String.t() | nil
31+
}
32+
33+
field(:cidrRange)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.DataMigration.V1.Model.AuthorizedNetwork do
37+
def decode(value, options) do
38+
GoogleApi.DataMigration.V1.Model.AuthorizedNetwork.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.DataMigration.V1.Model.AuthorizedNetwork do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/data_migration/lib/google_api/data_migration/v1/model/cloud_sql_settings.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ defmodule GoogleApi.DataMigration.V1.Model.CloudSqlSettings do
3030
* `dataDiskSizeGb` (*type:* `String.t`, *default:* `nil`) - The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.
3131
* `dataDiskType` (*type:* `String.t`, *default:* `nil`) - The type of storage: `PD_SSD` (default) or `PD_HDD`.
3232
* `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" }.
33-
* `databaseVersion` (*type:* `String.t`, *default:* `nil`) - The database engine type and version.
33+
* `databaseVersion` (*type:* `String.t`, *default:* `nil`) - The database engine type and version. Deprecated. Use database_version_name instead.
34+
* `databaseVersionName` (*type:* `String.t`, *default:* `nil`) - Optional. The database engine type and version name.
3435
* `edition` (*type:* `String.t`, *default:* `nil`) - Optional. The edition of the given Cloud SQL instance.
3536
* `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.
3637
* `rootPassword` (*type:* `String.t`, *default:* `nil`) - Input only. Initial root password.
@@ -56,6 +57,7 @@ defmodule GoogleApi.DataMigration.V1.Model.CloudSqlSettings do
5657
:dataDiskType => String.t() | nil,
5758
:databaseFlags => map() | nil,
5859
:databaseVersion => String.t() | nil,
60+
:databaseVersionName => String.t() | nil,
5961
:edition => String.t() | nil,
6062
:ipConfig => GoogleApi.DataMigration.V1.Model.SqlIpConfig.t() | nil,
6163
:rootPassword => String.t() | nil,
@@ -78,6 +80,7 @@ defmodule GoogleApi.DataMigration.V1.Model.CloudSqlSettings do
7880
field(:dataDiskType)
7981
field(:databaseFlags, type: :map)
8082
field(:databaseVersion)
83+
field(:databaseVersionName)
8184
field(:edition)
8285
field(:ipConfig, as: GoogleApi.DataMigration.V1.Model.SqlIpConfig)
8386
field(:rootPassword)
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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.DataMigration.V1.Model.InstanceNetworkConfig do
19+
@moduledoc """
20+
Metadata related to instance level network configuration.
21+
22+
## Attributes
23+
24+
* `authorizedExternalNetworks` (*type:* `list(GoogleApi.DataMigration.V1.Model.AuthorizedNetwork.t)`, *default:* `nil`) - Optional. A list of external network authorized to access this instance.
25+
* `enableOutboundPublicIp` (*type:* `boolean()`, *default:* `nil`) - Optional. Enabling an outbound public IP address to support a database server sending requests out into the internet.
26+
* `enablePublicIp` (*type:* `boolean()`, *default:* `nil`) - Optional. Enabling public ip for the instance.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:authorizedExternalNetworks =>
33+
list(GoogleApi.DataMigration.V1.Model.AuthorizedNetwork.t()) | nil,
34+
:enableOutboundPublicIp => boolean() | nil,
35+
:enablePublicIp => boolean() | nil
36+
}
37+
38+
field(:authorizedExternalNetworks,
39+
as: GoogleApi.DataMigration.V1.Model.AuthorizedNetwork,
40+
type: :list
41+
)
42+
43+
field(:enableOutboundPublicIp)
44+
field(:enablePublicIp)
45+
end
46+
47+
defimpl Poison.Decoder, for: GoogleApi.DataMigration.V1.Model.InstanceNetworkConfig do
48+
def decode(value, options) do
49+
GoogleApi.DataMigration.V1.Model.InstanceNetworkConfig.decode(value, options)
50+
end
51+
end
52+
53+
defimpl Poison.Encoder, for: GoogleApi.DataMigration.V1.Model.InstanceNetworkConfig do
54+
def encode(value, options) do
55+
GoogleApi.Gax.ModelBase.encode(value, options)
56+
end
57+
end

clients/data_migration/lib/google_api/data_migration/v1/model/primary_instance_settings.ex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ defmodule GoogleApi.DataMigration.V1.Model.PrimaryInstanceSettings do
2323
2424
* `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.
2525
* `id` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the AlloyDB primary instance. The ID must satisfy the regex expression "[a-z0-9-]+".
26+
* `instanceNetworkConfig` (*type:* `GoogleApi.DataMigration.V1.Model.InstanceNetworkConfig.t`, *default:* `nil`) - Optional. Metadata related to instance level network configuration.
2627
* `labels` (*type:* `map()`, *default:* `nil`) - Labels for the AlloyDB primary instance created by DMS. An object containing a list of 'key', 'value' pairs.
2728
* `machineConfig` (*type:* `GoogleApi.DataMigration.V1.Model.MachineConfig.t`, *default:* `nil`) - Configuration for the machines that host the underlying database engine.
29+
* `outboundPublicIpAddresses` (*type:* `list(String.t)`, *default:* `nil`) - Output only. All outbound public IP addresses configured for the instance.
2830
* `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.
2931
"""
3032

@@ -33,15 +35,20 @@ defmodule GoogleApi.DataMigration.V1.Model.PrimaryInstanceSettings do
3335
@type t :: %__MODULE__{
3436
:databaseFlags => map() | nil,
3537
:id => String.t() | nil,
38+
:instanceNetworkConfig =>
39+
GoogleApi.DataMigration.V1.Model.InstanceNetworkConfig.t() | nil,
3640
:labels => map() | nil,
3741
:machineConfig => GoogleApi.DataMigration.V1.Model.MachineConfig.t() | nil,
42+
:outboundPublicIpAddresses => list(String.t()) | nil,
3843
:privateIp => String.t() | nil
3944
}
4045

4146
field(:databaseFlags, type: :map)
4247
field(:id)
48+
field(:instanceNetworkConfig, as: GoogleApi.DataMigration.V1.Model.InstanceNetworkConfig)
4349
field(:labels, type: :map)
4450
field(:machineConfig, as: GoogleApi.DataMigration.V1.Model.MachineConfig)
51+
field(:outboundPublicIpAddresses, type: :list)
4552
field(:privateIp)
4653
end
4754

clients/data_migration/mix.exs

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

21-
@version "0.15.0"
21+
@version "0.16.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)