Skip to content

Commit e26ca63

Browse files
feat: Automated regeneration of SQLAdmin client (#13169)
Auto-created at 2025-03-15 13:15:50 +0000 using the toys pull request generator.
1 parent e4c564b commit e26ca63

24 files changed

+545
-4
lines changed

clients/sql_admin/lib/google_api/sql_admin/v1/api/flags.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Flags do
4444
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
4545
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
4646
* `:databaseVersion` (*type:* `String.t`) - Database type and version you want to retrieve flags for. By default, this method returns flags for all database types and versions.
47+
* `:flagScope` (*type:* `String.t`) - Optional. Specify the scope of flags to be returned by SqlFlagsListService. Return list of database flags if unspecified.
4748
* `opts` (*type:* `keyword()`) - Call options
4849
4950
## Returns
@@ -69,7 +70,8 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Flags do
6970
:quotaUser => :query,
7071
:uploadType => :query,
7172
:upload_protocol => :query,
72-
:databaseVersion => :query
73+
:databaseVersion => :query,
74+
:flagScope => :query
7375
}
7476

7577
request =

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 "20250226"
23+
@discovery_revision "20250310"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.Backup do
2424
* `backupInterval` (*type:* `GoogleApi.SQLAdmin.V1.Model.Interval.t`, *default:* `nil`) - Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.
2525
* `backupKind` (*type:* `String.t`, *default:* `nil`) - Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
2626
* `backupRun` (*type:* `String.t`, *default:* `nil`) - Output only. The mapping to backup run resource used for IAM validations.
27+
* `databaseVersion` (*type:* `String.t`, *default:* `nil`) - Output only. The database version of the instance of when this backup was made.
2728
* `description` (*type:* `String.t`, *default:* `nil`) - The description of this backup.
2829
* `error` (*type:* `GoogleApi.SQLAdmin.V1.Model.OperationError.t`, *default:* `nil`) - Output only. Information about why the backup operation fails (for example, when the backup state fails).
2930
* `expiryTime` (*type:* `DateTime.t`, *default:* `nil`) - Backup expiration time. A UTC timestamp of when this backup expired.
@@ -51,6 +52,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.Backup do
5152
:backupInterval => GoogleApi.SQLAdmin.V1.Model.Interval.t() | nil,
5253
:backupKind => String.t() | nil,
5354
:backupRun => String.t() | nil,
55+
:databaseVersion => String.t() | nil,
5456
:description => String.t() | nil,
5557
:error => GoogleApi.SQLAdmin.V1.Model.OperationError.t() | nil,
5658
:expiryTime => DateTime.t() | nil,
@@ -75,6 +77,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.Backup do
7577
field(:backupInterval, as: GoogleApi.SQLAdmin.V1.Model.Interval)
7678
field(:backupKind)
7779
field(:backupRun)
80+
field(:databaseVersion)
7881
field(:description)
7982
field(:error, as: GoogleApi.SQLAdmin.V1.Model.OperationError)
8083
field(:expiryTime, as: DateTime)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.BackupRun do
2222
## Attributes
2323
2424
* `backupKind` (*type:* `String.t`, *default:* `nil`) - Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
25+
* `databaseVersion` (*type:* `String.t`, *default:* `nil`) - Output only. The instance database version when this backup was made.
2526
* `description` (*type:* `String.t`, *default:* `nil`) - The description of this run, only applicable to on-demand backups.
2627
* `diskEncryptionConfiguration` (*type:* `GoogleApi.SQLAdmin.V1.Model.DiskEncryptionConfiguration.t`, *default:* `nil`) - Encryption configuration specific to a backup.
2728
* `diskEncryptionStatus` (*type:* `GoogleApi.SQLAdmin.V1.Model.DiskEncryptionStatus.t`, *default:* `nil`) - Encryption status specific to a backup.
@@ -45,6 +46,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.BackupRun do
4546

4647
@type t :: %__MODULE__{
4748
:backupKind => String.t() | nil,
49+
:databaseVersion => String.t() | nil,
4850
:description => String.t() | nil,
4951
:diskEncryptionConfiguration =>
5052
GoogleApi.SQLAdmin.V1.Model.DiskEncryptionConfiguration.t() | nil,
@@ -66,6 +68,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.BackupRun do
6668
}
6769

6870
field(:backupKind)
71+
field(:databaseVersion)
6972
field(:description)
7073
field(:diskEncryptionConfiguration, as: GoogleApi.SQLAdmin.V1.Model.DiskEncryptionConfiguration)
7174
field(:diskEncryptionStatus, as: GoogleApi.SQLAdmin.V1.Model.DiskEncryptionStatus)
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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.ConnectPoolNodeConfig do
19+
@moduledoc """
20+
Details of a single node of a read pool.
21+
22+
## Attributes
23+
24+
* `dnsName` (*type:* `String.t`, *default:* `nil`) - Output only. The DNS name of the node.
25+
* `dnsNames` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.DnsNameMapping.t)`, *default:* `nil`) - Output only. The list of DNS names used by this node.
26+
* `ipAddresses` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.IpMapping.t)`, *default:* `nil`) - Output only. Mappings containing IP addresses that can be used to connect to the node.
27+
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the node. Doesn't include the project ID.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:dnsName => String.t() | nil,
34+
:dnsNames => list(GoogleApi.SQLAdmin.V1.Model.DnsNameMapping.t()) | nil,
35+
:ipAddresses => list(GoogleApi.SQLAdmin.V1.Model.IpMapping.t()) | nil,
36+
:name => String.t() | nil
37+
}
38+
39+
field(:dnsName)
40+
field(:dnsNames, as: GoogleApi.SQLAdmin.V1.Model.DnsNameMapping, type: :list)
41+
field(:ipAddresses, as: GoogleApi.SQLAdmin.V1.Model.IpMapping, type: :list)
42+
field(:name)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.ConnectPoolNodeConfig do
46+
def decode(value, options) do
47+
GoogleApi.SQLAdmin.V1.Model.ConnectPoolNodeConfig.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.ConnectPoolNodeConfig do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ConnectSettings do
2828
* `dnsNames` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.DnsNameMapping.t)`, *default:* `nil`) - Output only. The list of DNS names used by this instance.
2929
* `ipAddresses` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.IpMapping.t)`, *default:* `nil`) - The assigned IP addresses for the instance.
3030
* `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#connectSettings`.
31+
* `nodeCount` (*type:* `integer()`, *default:* `nil`) - The number of nodes in a read pool.
32+
* `nodes` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.ConnectPoolNodeConfig.t)`, *default:* `nil`) - Output only. Entries containing information about each node of the read pool.
3133
* `pscEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether PSC connectivity is enabled for this instance.
3234
* `region` (*type:* `String.t`, *default:* `nil`) - The cloud region for the instance. For example, `us-central1`, `europe-west1`. The region cannot be changed after instance creation.
3335
* `serverCaCert` (*type:* `GoogleApi.SQLAdmin.V1.Model.SslCert.t`, *default:* `nil`) - SSL configuration.
@@ -44,6 +46,8 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ConnectSettings do
4446
:dnsNames => list(GoogleApi.SQLAdmin.V1.Model.DnsNameMapping.t()) | nil,
4547
:ipAddresses => list(GoogleApi.SQLAdmin.V1.Model.IpMapping.t()) | nil,
4648
:kind => String.t() | nil,
49+
:nodeCount => integer() | nil,
50+
:nodes => list(GoogleApi.SQLAdmin.V1.Model.ConnectPoolNodeConfig.t()) | nil,
4751
:pscEnabled => boolean() | nil,
4852
:region => String.t() | nil,
4953
:serverCaCert => GoogleApi.SQLAdmin.V1.Model.SslCert.t() | nil,
@@ -57,6 +61,8 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ConnectSettings do
5761
field(:dnsNames, as: GoogleApi.SQLAdmin.V1.Model.DnsNameMapping, type: :list)
5862
field(:ipAddresses, as: GoogleApi.SQLAdmin.V1.Model.IpMapping, type: :list)
5963
field(:kind)
64+
field(:nodeCount)
65+
field(:nodes, as: GoogleApi.SQLAdmin.V1.Model.ConnectPoolNodeConfig, type: :list)
6066
field(:pscEnabled)
6167
field(:region)
6268
field(:serverCaCert, as: GoogleApi.SQLAdmin.V1.Model.SslCert)
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.ConnectionPoolConfig do
19+
@moduledoc """
20+
The managed connection pooling configuration.
21+
22+
## Attributes
23+
24+
* `clientConnectionIdleTimeout` (*type:* `String.t`, *default:* `nil`) - Client idle timeout.
25+
* `connPoolSize` (*type:* `integer()`, *default:* `nil`) - Managed connection pool size.
26+
* `connectionPoolingEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether managed connection pooling is enabled.
27+
* `flags` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.ConnectionPoolFlags.t)`, *default:* `nil`) - Optional. List of connection pool configuration flags
28+
* `maxClientConnections` (*type:* `integer()`, *default:* `nil`) - Maximum number of client connections in connection pool.
29+
* `poolMode` (*type:* `String.t`, *default:* `nil`) - The managed connection pool mode for the instance.
30+
* `queryWaitTimeout` (*type:* `String.t`, *default:* `nil`) - Query wait timeout.
31+
* `serverConnectionIdleTimeout` (*type:* `String.t`, *default:* `nil`) - Server idle timeout.
32+
"""
33+
34+
use GoogleApi.Gax.ModelBase
35+
36+
@type t :: %__MODULE__{
37+
:clientConnectionIdleTimeout => String.t() | nil,
38+
:connPoolSize => integer() | nil,
39+
:connectionPoolingEnabled => boolean() | nil,
40+
:flags => list(GoogleApi.SQLAdmin.V1.Model.ConnectionPoolFlags.t()) | nil,
41+
:maxClientConnections => integer() | nil,
42+
:poolMode => String.t() | nil,
43+
:queryWaitTimeout => String.t() | nil,
44+
:serverConnectionIdleTimeout => String.t() | nil
45+
}
46+
47+
field(:clientConnectionIdleTimeout)
48+
field(:connPoolSize)
49+
field(:connectionPoolingEnabled)
50+
field(:flags, as: GoogleApi.SQLAdmin.V1.Model.ConnectionPoolFlags, type: :list)
51+
field(:maxClientConnections)
52+
field(:poolMode)
53+
field(:queryWaitTimeout)
54+
field(:serverConnectionIdleTimeout)
55+
end
56+
57+
defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.ConnectionPoolConfig do
58+
def decode(value, options) do
59+
GoogleApi.SQLAdmin.V1.Model.ConnectionPoolConfig.decode(value, options)
60+
end
61+
end
62+
63+
defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.ConnectionPoolConfig do
64+
def encode(value, options) do
65+
GoogleApi.Gax.ModelBase.encode(value, options)
66+
end
67+
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.ConnectionPoolFlags do
19+
@moduledoc """
20+
Connection pool flags for Cloud SQL instances managed connection pool configuration.
21+
22+
## Attributes
23+
24+
* `name` (*type:* `String.t`, *default:* `nil`) - Required. The name of the flag.
25+
* `value` (*type:* `String.t`, *default:* `nil`) - Required. The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn't take a value.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:name => String.t() | nil,
32+
:value => String.t() | nil
33+
}
34+
35+
field(:name)
36+
field(:value)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.ConnectionPoolFlags do
40+
def decode(value, options) do
41+
GoogleApi.SQLAdmin.V1.Model.ConnectionPoolFlags.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.ConnectionPoolFlags do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do
2828
* `dnsName` (*type:* `String.t`, *default:* `nil`) - Output only. The dns name of the instance.
2929
* `currentDiskSize` (*type:* `String.t`, *default:* `nil`) - The current disk usage of the instance in bytes. This property has been deprecated. Use the "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud Monitoring API instead. Please see [this announcement](https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for details.
3030
* `availableMaintenanceVersions` (*type:* `list(String.t)`, *default:* `nil`) - Output only. List all maintenance versions applicable on the instance
31+
* `nodes` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.PoolNodeConfig.t)`, *default:* `nil`) - Output only. Entries containing information about each node of the read pool.
3132
* `masterInstanceName` (*type:* `String.t`, *default:* `nil`) - The name of the instance which will act as primary in the replication setup.
3233
* `gceZone` (*type:* `String.t`, *default:* `nil`) - The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. WARNING: Changing this might restart the instance.
3334
* `diskEncryptionStatus` (*type:* `GoogleApi.SQLAdmin.V1.Model.DiskEncryptionStatus.t`, *default:* `nil`) - Disk encryption status specific to an instance.
@@ -58,6 +59,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do
5859
* `ipAddresses` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.IpMapping.t)`, *default:* `nil`) - The assigned IP addresses for the instance.
5960
* `diskEncryptionConfiguration` (*type:* `GoogleApi.SQLAdmin.V1.Model.DiskEncryptionConfiguration.t`, *default:* `nil`) - Disk encryption configuration specific to an instance.
6061
* `suspensionReason` (*type:* `list(String.t)`, *default:* `nil`) - If the instance state is SUSPENDED, the reason for the suspension.
62+
* `nodeCount` (*type:* `integer()`, *default:* `nil`) - The number of nodes in a read pool.
6163
* `pscServiceAttachmentLink` (*type:* `String.t`, *default:* `nil`) - Output only. The link to service attachment of PSC instance.
6264
* `failoverReplica` (*type:* `GoogleApi.SQLAdmin.V1.Model.DatabaseInstanceFailoverReplica.t`, *default:* `nil`) - The name and status of the failover replica.
6365
* `dnsNames` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.DnsNameMapping.t)`, *default:* `nil`) - Output only. The list of DNS names used by this instance.
@@ -82,6 +84,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do
8284
:dnsName => String.t() | nil,
8385
:currentDiskSize => String.t() | nil,
8486
:availableMaintenanceVersions => list(String.t()) | nil,
87+
:nodes => list(GoogleApi.SQLAdmin.V1.Model.PoolNodeConfig.t()) | nil,
8588
:masterInstanceName => String.t() | nil,
8689
:gceZone => String.t() | nil,
8790
:diskEncryptionStatus => GoogleApi.SQLAdmin.V1.Model.DiskEncryptionStatus.t() | nil,
@@ -115,6 +118,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do
115118
:diskEncryptionConfiguration =>
116119
GoogleApi.SQLAdmin.V1.Model.DiskEncryptionConfiguration.t() | nil,
117120
:suspensionReason => list(String.t()) | nil,
121+
:nodeCount => integer() | nil,
118122
:pscServiceAttachmentLink => String.t() | nil,
119123
:failoverReplica =>
120124
GoogleApi.SQLAdmin.V1.Model.DatabaseInstanceFailoverReplica.t() | nil,
@@ -137,6 +141,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do
137141
field(:dnsName)
138142
field(:currentDiskSize)
139143
field(:availableMaintenanceVersions, type: :list)
144+
field(:nodes, as: GoogleApi.SQLAdmin.V1.Model.PoolNodeConfig, type: :list)
140145
field(:masterInstanceName)
141146
field(:gceZone)
142147
field(:diskEncryptionStatus, as: GoogleApi.SQLAdmin.V1.Model.DiskEncryptionStatus)
@@ -172,6 +177,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do
172177
field(:ipAddresses, as: GoogleApi.SQLAdmin.V1.Model.IpMapping, type: :list)
173178
field(:diskEncryptionConfiguration, as: GoogleApi.SQLAdmin.V1.Model.DiskEncryptionConfiguration)
174179
field(:suspensionReason, type: :list)
180+
field(:nodeCount)
175181
field(:pscServiceAttachmentLink)
176182
field(:failoverReplica, as: GoogleApi.SQLAdmin.V1.Model.DatabaseInstanceFailoverReplica)
177183
field(:dnsNames, as: GoogleApi.SQLAdmin.V1.Model.DnsNameMapping, type: :list)

0 commit comments

Comments
 (0)