Skip to content

Commit e6c4245

Browse files
feat: Automated regeneration of SQLAdmin client (googleapis#13115)
Auto-created at 2025-03-07 13:16:33 +0000 using the toys pull request generator.
1 parent 3c0f3b9 commit e6c4245

File tree

11 files changed

+74
-7
lines changed

11 files changed

+74
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Backups do
226226
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
227227
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
228228
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
229-
* `:filter` (*type:* `String.t`) - Multiple filter queries are separated by spaces. For example, 'instance:abc type:FINAL. You can filter by type, instance name, creation time or location.
229+
* `:filter` (*type:* `String.t`) - Multiple filter queries are separated by spaces. For example, 'instance:abc AND type:FINAL, 'location:us', 'backupInterval.startTime>=1950-01-01T01:01:25.771Z'. You can filter by type, instance, backupInterval.startTime (creation time), or location.
230230
* `:pageSize` (*type:* `integer()`) - The maximum number of backups to return per response. The service might return fewer backups than this value. If a value for this parameter isn't specified, then, at most, 500 backups are returned. The maximum value is 2,000. Any values that you set, which are greater than 2,000, are changed to 2,000.
231231
* `:pageToken` (*type:* `String.t`) - A page token, received from a previous `ListBackups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListBackups` must match the call that provided the page token.
232232
* `opts` (*type:* `keyword()`) - Call options

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

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

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ defmodule GoogleApi.SQLAdmin.V1.Model.Backup do
2828
* `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).
2929
* `expiryTime` (*type:* `DateTime.t`, *default:* `nil`) - Backup expiration time. A UTC timestamp of when this backup expired.
3030
* `instance` (*type:* `String.t`, *default:* `nil`) - The name of the source database instance.
31+
* `instanceDeletionTime` (*type:* `DateTime.t`, *default:* `nil`) - Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.
32+
* `instanceSettings` (*type:* `GoogleApi.SQLAdmin.V1.Model.DatabaseInstance.t`, *default:* `nil`) - Optional. Output only. The instance setting of the source instance that's associated with this backup.
3133
* `kind` (*type:* `String.t`, *default:* `nil`) - Output only. This is always `sql#backup`.
3234
* `kmsKey` (*type:* `String.t`, *default:* `nil`) - Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption.
3335
* `kmsKeyVersion` (*type:* `String.t`, *default:* `nil`) - Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance.
@@ -39,7 +41,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.Backup do
3941
* `selfLink` (*type:* `String.t`, *default:* `nil`) - Output only. The URI of this resource.
4042
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. The status of this backup.
4143
* `timeZone` (*type:* `String.t`, *default:* `nil`) - Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen.
42-
* `ttlDays` (*type:* `String.t`, *default:* `nil`) - Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7 means 7 days.
44+
* `ttlDays` (*type:* `String.t`, *default:* `nil`) - Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7, means 7 days from the current time. The expiration time can't exceed 365 days from the time that the backup is created.
4345
* `type` (*type:* `String.t`, *default:* `nil`) - Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND" or “FINAL”.
4446
"""
4547

@@ -53,6 +55,8 @@ defmodule GoogleApi.SQLAdmin.V1.Model.Backup do
5355
:error => GoogleApi.SQLAdmin.V1.Model.OperationError.t() | nil,
5456
:expiryTime => DateTime.t() | nil,
5557
:instance => String.t() | nil,
58+
:instanceDeletionTime => DateTime.t() | nil,
59+
:instanceSettings => GoogleApi.SQLAdmin.V1.Model.DatabaseInstance.t() | nil,
5660
:kind => String.t() | nil,
5761
:kmsKey => String.t() | nil,
5862
:kmsKeyVersion => String.t() | nil,
@@ -75,6 +79,8 @@ defmodule GoogleApi.SQLAdmin.V1.Model.Backup do
7579
field(:error, as: GoogleApi.SQLAdmin.V1.Model.OperationError)
7680
field(:expiryTime, as: DateTime)
7781
field(:instance)
82+
field(:instanceDeletionTime, as: DateTime)
83+
field(:instanceSettings, as: GoogleApi.SQLAdmin.V1.Model.DatabaseInstance)
7884
field(:kind)
7985
field(:kmsKey)
8086
field(:kmsKeyVersion)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ConnectSettings do
2525
* `customSubjectAlternativeNames` (*type:* `list(String.t)`, *default:* `nil`) - Custom subject alternative names for the server certificate.
2626
* `databaseVersion` (*type:* `String.t`, *default:* `nil`) - The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default), or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11`, `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`. SQL Server instances: `SQLSERVER_2017_STANDARD` (default), `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`.
2727
* `dnsName` (*type:* `String.t`, *default:* `nil`) - The dns name of the instance.
28+
* `dnsNames` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.DnsNameMapping.t)`, *default:* `nil`) - Output only. The list of DNS names used by this instance.
2829
* `ipAddresses` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.IpMapping.t)`, *default:* `nil`) - The assigned IP addresses for the instance.
2930
* `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#connectSettings`.
3031
* `pscEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether PSC connectivity is enabled for this instance.
@@ -40,6 +41,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ConnectSettings do
4041
:customSubjectAlternativeNames => list(String.t()) | nil,
4142
:databaseVersion => String.t() | nil,
4243
:dnsName => String.t() | nil,
44+
:dnsNames => list(GoogleApi.SQLAdmin.V1.Model.DnsNameMapping.t()) | nil,
4345
:ipAddresses => list(GoogleApi.SQLAdmin.V1.Model.IpMapping.t()) | nil,
4446
:kind => String.t() | nil,
4547
:pscEnabled => boolean() | nil,
@@ -52,6 +54,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ConnectSettings do
5254
field(:customSubjectAlternativeNames, type: :list)
5355
field(:databaseVersion)
5456
field(:dnsName)
57+
field(:dnsNames, as: GoogleApi.SQLAdmin.V1.Model.DnsNameMapping, type: :list)
5558
field(:ipAddresses, as: GoogleApi.SQLAdmin.V1.Model.IpMapping, type: :list)
5659
field(:kind)
5760
field(:pscEnabled)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do
6060
* `suspensionReason` (*type:* `list(String.t)`, *default:* `nil`) - If the instance state is SUSPENDED, the reason for the suspension.
6161
* `pscServiceAttachmentLink` (*type:* `String.t`, *default:* `nil`) - Output only. The link to service attachment of PSC instance.
6262
* `failoverReplica` (*type:* `GoogleApi.SQLAdmin.V1.Model.DatabaseInstanceFailoverReplica.t`, *default:* `nil`) - The name and status of the failover replica.
63+
* `dnsNames` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.DnsNameMapping.t)`, *default:* `nil`) - Output only. The list of DNS names used by this instance.
6364
* `scheduledMaintenance` (*type:* `GoogleApi.SQLAdmin.V1.Model.SqlScheduledMaintenance.t`, *default:* `nil`) - The start time of any upcoming scheduled maintenance for this instance.
6465
* `outOfDiskReport` (*type:* `GoogleApi.SQLAdmin.V1.Model.SqlOutOfDiskReport.t`, *default:* `nil`) - This field represents the report generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
6566
* `replicationCluster` (*type:* `GoogleApi.SQLAdmin.V1.Model.ReplicationCluster.t`, *default:* `nil`) - Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL.
@@ -117,6 +118,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do
117118
:pscServiceAttachmentLink => String.t() | nil,
118119
:failoverReplica =>
119120
GoogleApi.SQLAdmin.V1.Model.DatabaseInstanceFailoverReplica.t() | nil,
121+
:dnsNames => list(GoogleApi.SQLAdmin.V1.Model.DnsNameMapping.t()) | nil,
120122
:scheduledMaintenance => GoogleApi.SQLAdmin.V1.Model.SqlScheduledMaintenance.t() | nil,
121123
:outOfDiskReport => GoogleApi.SQLAdmin.V1.Model.SqlOutOfDiskReport.t() | nil,
122124
:replicationCluster => GoogleApi.SQLAdmin.V1.Model.ReplicationCluster.t() | nil,
@@ -172,6 +174,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do
172174
field(:suspensionReason, type: :list)
173175
field(:pscServiceAttachmentLink)
174176
field(:failoverReplica, as: GoogleApi.SQLAdmin.V1.Model.DatabaseInstanceFailoverReplica)
177+
field(:dnsNames, as: GoogleApi.SQLAdmin.V1.Model.DnsNameMapping, type: :list)
175178
field(:scheduledMaintenance, as: GoogleApi.SQLAdmin.V1.Model.SqlScheduledMaintenance)
176179
field(:outOfDiskReport, as: GoogleApi.SQLAdmin.V1.Model.SqlOutOfDiskReport)
177180
field(:replicationCluster, as: GoogleApi.SQLAdmin.V1.Model.ReplicationCluster)
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.DnsNameMapping do
19+
@moduledoc """
20+
DNS metadata.
21+
22+
## Attributes
23+
24+
* `connectionType` (*type:* `String.t`, *default:* `nil`) - Output only. The connection type of the DNS name.
25+
* `dnsScope` (*type:* `String.t`, *default:* `nil`) - Output only. The scope that the DNS name applies to.
26+
* `name` (*type:* `String.t`, *default:* `nil`) - The DNS name.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:connectionType => String.t() | nil,
33+
:dnsScope => String.t() | nil,
34+
:name => String.t() | nil
35+
}
36+
37+
field(:connectionType)
38+
field(:dnsScope)
39+
field(:name)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.DnsNameMapping do
43+
def decode(value, options) do
44+
GoogleApi.SQLAdmin.V1.Model.DnsNameMapping.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.DnsNameMapping do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ExportContext do
2323
2424
* `bakExportOptions` (*type:* `GoogleApi.SQLAdmin.V1.Model.ExportContextBakExportOptions.t`, *default:* `nil`) - Options for exporting BAK files (SQL Server-only)
2525
* `csvExportOptions` (*type:* `GoogleApi.SQLAdmin.V1.Model.ExportContextCsvExportOptions.t`, *default:* `nil`) - Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
26-
* `databases` (*type:* `list(String.t)`, *default:* `nil`) - Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` You must specify one database to be exported. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
26+
* `databases` (*type:* `list(String.t)`, *default:* `nil`) - Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don't specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
2727
* `fileType` (*type:* `String.t`, *default:* `nil`) - The file type for the specified uri.
2828
* `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#exportContext`.
2929
* `offload` (*type:* `boolean()`, *default:* `nil`) - Option for export offload.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ImportContext do
2323
2424
* `bakImportOptions` (*type:* `GoogleApi.SQLAdmin.V1.Model.ImportContextBakImportOptions.t`, *default:* `nil`) - Import parameters specific to SQL Server .BAK files
2525
* `csvImportOptions` (*type:* `GoogleApi.SQLAdmin.V1.Model.ImportContextCsvImportOptions.t`, *default:* `nil`) - Options for importing data as CSV.
26-
* `database` (*type:* `String.t`, *default:* `nil`) - The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. If `fileType` is `CSV`, one database must be specified.
26+
* `database` (*type:* `String.t`, *default:* `nil`) - The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
2727
* `fileType` (*type:* `String.t`, *default:* `nil`) - The file type for the specified uri.\\`SQL`: The file contains SQL statements. \\`CSV`: The file contains CSV data.
2828
* `importUser` (*type:* `String.t`, *default:* `nil`) - The PostgreSQL user for this import operation. PostgreSQL instances only.
2929
* `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#importContext`.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.InstancesRestoreBackupRequest do
2323
2424
* `backup` (*type:* `String.t`, *default:* `nil`) - The name of the backup that's used to restore a Cloud SQL instance: Format: projects/{project-id}/backups/{backup-uid}. Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.
2525
* `restoreBackupContext` (*type:* `GoogleApi.SQLAdmin.V1.Model.RestoreBackupContext.t`, *default:* `nil`) - Parameters required to perform the restore backup operation.
26-
* `restoreInstanceSettings` (*type:* `GoogleApi.SQLAdmin.V1.Model.DatabaseInstance.t`, *default:* `nil`) - Optional. By using this parameter, Cloud SQL overrides the instance settings existed at time of backup with the instance settings that you want to restore. You can't change the Instance's major database version and you can only increase the disk size. You can use this field to restore new instances only.
26+
* `restoreInstanceSettings` (*type:* `GoogleApi.SQLAdmin.V1.Model.DatabaseInstance.t`, *default:* `nil`) - Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can't change the instance's major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances.
2727
"""
2828

2929
use GoogleApi.Gax.ModelBase

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.IpConfiguration do
3030
* `pscConfig` (*type:* `GoogleApi.SQLAdmin.V1.Model.PscConfig.t`, *default:* `nil`) - PSC settings for this instance.
3131
* `requireSsl` (*type:* `boolean()`, *default:* `nil`) - Use `ssl_mode` instead. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag.
3232
* `serverCaMode` (*type:* `String.t`, *default:* `nil`) - Specify what type of CA is used for the server certificate.
33-
* `serverCaPool` (*type:* `String.t`, *default:* `nil`) - Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects//locations//caPools/
33+
* `serverCaPool` (*type:* `String.t`, *default:* `nil`) - Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects/{PROJECT}/locations/{REGION}/caPools/{CA_POOL_ID}
3434
* `sslMode` (*type:* `String.t`, *default:* `nil`) - Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.
3535
"""
3636

0 commit comments

Comments
 (0)