Skip to content

Commit 6a0875b

Browse files
feat: Automated regeneration of sqladmin v1 client (googleapis#22008)
Auto-created at 2025-03-09 10:13:05 +0000 using the toys pull request generator.
1 parent 18529d1 commit 6a0875b

File tree

6 files changed

+125
-13
lines changed

6 files changed

+125
-13
lines changed

api_names_out.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331654,6 +331654,8 @@
331654331654
"/sqladmin:v1/Backup/error": error
331655331655
"/sqladmin:v1/Backup/expiryTime": expiry_time
331656331656
"/sqladmin:v1/Backup/instance": instance
331657+
"/sqladmin:v1/Backup/instanceDeletionTime": instance_deletion_time
331658+
"/sqladmin:v1/Backup/instanceSettings": instance_settings
331657331659
"/sqladmin:v1/Backup/kind": kind
331658331660
"/sqladmin:v1/Backup/kmsKey": kms_key
331659331661
"/sqladmin:v1/Backup/kmsKeyVersion": kms_key_version
@@ -331733,6 +331735,8 @@
331733331735
"/sqladmin:v1/ConnectSettings/customSubjectAlternativeNames/custom_subject_alternative_name": custom_subject_alternative_name
331734331736
"/sqladmin:v1/ConnectSettings/databaseVersion": database_version
331735331737
"/sqladmin:v1/ConnectSettings/dnsName": dns_name
331738+
"/sqladmin:v1/ConnectSettings/dnsNames": dns_names
331739+
"/sqladmin:v1/ConnectSettings/dnsNames/dns_name": dns_name
331736331740
"/sqladmin:v1/ConnectSettings/ipAddresses": ip_addresses
331737331741
"/sqladmin:v1/ConnectSettings/ipAddresses/ip_address": ip_address
331738331742
"/sqladmin:v1/ConnectSettings/kind": kind
@@ -331767,6 +331771,8 @@
331767331771
"/sqladmin:v1/DatabaseInstance/diskEncryptionConfiguration": disk_encryption_configuration
331768331772
"/sqladmin:v1/DatabaseInstance/diskEncryptionStatus": disk_encryption_status
331769331773
"/sqladmin:v1/DatabaseInstance/dnsName": dns_name
331774+
"/sqladmin:v1/DatabaseInstance/dnsNames": dns_names
331775+
"/sqladmin:v1/DatabaseInstance/dnsNames/dns_name": dns_name
331770331776
"/sqladmin:v1/DatabaseInstance/encryptedRootPassword": encrypted_root_password
331771331777
"/sqladmin:v1/DatabaseInstance/etag": etag
331772331778
"/sqladmin:v1/DatabaseInstance/failoverReplica": failover_replica
@@ -331852,6 +331858,10 @@
331852331858
"/sqladmin:v1/DiskEncryptionStatus": disk_encryption_status
331853331859
"/sqladmin:v1/DiskEncryptionStatus/kind": kind
331854331860
"/sqladmin:v1/DiskEncryptionStatus/kmsKeyVersionName": kms_key_version_name
331861+
"/sqladmin:v1/DnsNameMapping": dns_name_mapping
331862+
"/sqladmin:v1/DnsNameMapping/connectionType": connection_type
331863+
"/sqladmin:v1/DnsNameMapping/dnsScope": dns_scope
331864+
"/sqladmin:v1/DnsNameMapping/name": name
331855331865
"/sqladmin:v1/Empty": empty
331856331866
"/sqladmin:v1/ExportContext": export_context
331857331867
"/sqladmin:v1/ExportContext/bakExportOptions": bak_export_options
@@ -332209,6 +332219,7 @@
332209332219
"/sqladmin:v1/Settings/pricingPlan": pricing_plan
332210332220
"/sqladmin:v1/Settings/replicationLagMaxSeconds": replication_lag_max_seconds
332211332221
"/sqladmin:v1/Settings/replicationType": replication_type
332222+
"/sqladmin:v1/Settings/retainBackupsOnDelete": retain_backups_on_delete
332212332223
"/sqladmin:v1/Settings/settingsVersion": settings_version
332213332224
"/sqladmin:v1/Settings/sqlServerAuditConfig": sql_server_audit_config
332214332225
"/sqladmin:v1/Settings/storageAutoResize": storage_auto_resize

generated/google-apis-sqladmin_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-sqladmin_v1
22

3+
### v0.74.0 (2025-03-09)
4+
5+
* Regenerated from discovery document revision 20250226
6+
37
### v0.73.0 (2025-03-02)
48

59
* Regenerated from discovery document revision 20250216

generated/google-apis-sqladmin_v1/lib/google/apis/sqladmin_v1/classes.rb

Lines changed: 82 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,17 @@ class Backup
223223
# @return [String]
224224
attr_accessor :instance
225225

226+
# Optional. Output only. Timestamp in UTC of when the instance associated with
227+
# this backup is deleted.
228+
# Corresponds to the JSON property `instanceDeletionTime`
229+
# @return [String]
230+
attr_accessor :instance_deletion_time
231+
232+
# A Cloud SQL instance resource.
233+
# Corresponds to the JSON property `instanceSettings`
234+
# @return [Google::Apis::SqladminV1::DatabaseInstance]
235+
attr_accessor :instance_settings
236+
226237
# Output only. This is always `sql#backup`.
227238
# Corresponds to the JSON property `kind`
228239
# @return [String]
@@ -288,7 +299,8 @@ class Backup
288299
attr_accessor :time_zone
289300

290301
# Input only. The time-to-live (TTL) interval for this resource (in days). For
291-
# example: ttlDays:7 means 7 days.
302+
# example: ttlDays:7, means 7 days from the current time. The expiration time
303+
# can't exceed 365 days from the time that the backup is created.
292304
# Corresponds to the JSON property `ttlDays`
293305
# @return [Fixnum]
294306
attr_accessor :ttl_days
@@ -312,6 +324,8 @@ def update!(**args)
312324
@error = args[:error] if args.key?(:error)
313325
@expiry_time = args[:expiry_time] if args.key?(:expiry_time)
314326
@instance = args[:instance] if args.key?(:instance)
327+
@instance_deletion_time = args[:instance_deletion_time] if args.key?(:instance_deletion_time)
328+
@instance_settings = args[:instance_settings] if args.key?(:instance_settings)
315329
@kind = args[:kind] if args.key?(:kind)
316330
@kms_key = args[:kms_key] if args.key?(:kms_key)
317331
@kms_key_version = args[:kms_key_version] if args.key?(:kms_key_version)
@@ -800,6 +814,11 @@ class ConnectSettings
800814
# @return [String]
801815
attr_accessor :dns_name
802816

817+
# Output only. The list of DNS names used by this instance.
818+
# Corresponds to the JSON property `dnsNames`
819+
# @return [Array<Google::Apis::SqladminV1::DnsNameMapping>]
820+
attr_accessor :dns_names
821+
803822
# The assigned IP addresses for the instance.
804823
# Corresponds to the JSON property `ipAddresses`
805824
# @return [Array<Google::Apis::SqladminV1::IpMapping>]
@@ -842,6 +861,7 @@ def update!(**args)
842861
@custom_subject_alternative_names = args[:custom_subject_alternative_names] if args.key?(:custom_subject_alternative_names)
843862
@database_version = args[:database_version] if args.key?(:database_version)
844863
@dns_name = args[:dns_name] if args.key?(:dns_name)
864+
@dns_names = args[:dns_names] if args.key?(:dns_names)
845865
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
846866
@kind = args[:kind] if args.key?(:kind)
847867
@psc_enabled = args[:psc_enabled] if args.key?(:psc_enabled)
@@ -1032,6 +1052,11 @@ class DatabaseInstance
10321052
# @return [String]
10331053
attr_accessor :dns_name
10341054

1055+
# Output only. The list of DNS names used by this instance.
1056+
# Corresponds to the JSON property `dnsNames`
1057+
# @return [Array<Google::Apis::SqladminV1::DnsNameMapping>]
1058+
attr_accessor :dns_names
1059+
10351060
# This field is deprecated and will be removed from a future version of the API.
10361061
# Use the `settings.settingsVersion` field instead.
10371062
# Corresponds to the JSON property `etag`
@@ -1269,6 +1294,7 @@ def update!(**args)
12691294
@disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration)
12701295
@disk_encryption_status = args[:disk_encryption_status] if args.key?(:disk_encryption_status)
12711296
@dns_name = args[:dns_name] if args.key?(:dns_name)
1297+
@dns_names = args[:dns_names] if args.key?(:dns_names)
12721298
@etag = args[:etag] if args.key?(:etag)
12731299
@failover_replica = args[:failover_replica] if args.key?(:failover_replica)
12741300
@gce_zone = args[:gce_zone] if args.key?(:gce_zone)
@@ -1608,6 +1634,37 @@ def update!(**args)
16081634
end
16091635
end
16101636

1637+
# DNS metadata.
1638+
class DnsNameMapping
1639+
include Google::Apis::Core::Hashable
1640+
1641+
# Output only. The connection type of the DNS name.
1642+
# Corresponds to the JSON property `connectionType`
1643+
# @return [String]
1644+
attr_accessor :connection_type
1645+
1646+
# Output only. The scope that the DNS name applies to.
1647+
# Corresponds to the JSON property `dnsScope`
1648+
# @return [String]
1649+
attr_accessor :dns_scope
1650+
1651+
# The DNS name.
1652+
# Corresponds to the JSON property `name`
1653+
# @return [String]
1654+
attr_accessor :name
1655+
1656+
def initialize(**args)
1657+
update!(**args)
1658+
end
1659+
1660+
# Update properties of this object
1661+
def update!(**args)
1662+
@connection_type = args[:connection_type] if args.key?(:connection_type)
1663+
@dns_scope = args[:dns_scope] if args.key?(:dns_scope)
1664+
@name = args[:name] if args.key?(:name)
1665+
end
1666+
end
1667+
16111668
# A generic empty message that you can re-use to avoid defining duplicated empty
16121669
# messages in your APIs. A typical example is to use it as the request or the
16131670
# response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -1642,11 +1699,14 @@ class ExportContext
16421699
# database is specified, all databases are exported, except for the `mysql`
16431700
# system database. If `fileType` is `CSV`, you can specify one database, either
16441701
# by using this property or by using the `csvExportOptions.selectQuery` property,
1645-
# which takes precedence over this property. `PostgreSQL instances:` You must
1646-
# specify one database to be exported. If `fileType` is `CSV`, this database
1647-
# must match the one specified in the `csvExportOptions.selectQuery` property. `
1648-
# SQL Server instances:` You must specify one database to be exported, and the `
1649-
# fileType` must be `BAK`.
1702+
# which takes precedence over this property. `PostgreSQL instances:` If you don'
1703+
# t specify a database by name, all user databases in the instance are exported.
1704+
# This excludes system databases and Cloud SQL databases used to manage internal
1705+
# operations. Exporting all user databases is only available for directory-
1706+
# formatted parallel export. If `fileType` is `CSV`, this database must match
1707+
# the one specified in the `csvExportOptions.selectQuery` property. `SQL Server
1708+
# instances:` You must specify one database to be exported, and the `fileType`
1709+
# must be `BAK`.
16501710
# Corresponds to the JSON property `databases`
16511711
# @return [Array<String>]
16521712
attr_accessor :databases
@@ -2246,8 +2306,10 @@ class ImportContext
22462306

22472307
# The target database for the import. If `fileType` is `SQL`, this field is
22482308
# required only if the import file does not specify a database, and is
2249-
# overridden by any database specification in the import file. If `fileType` is `
2250-
# CSV`, one database must be specified.
2309+
# overridden by any database specification in the import file. For entire
2310+
# instance parallel import operations, the database is overridden by the
2311+
# database name stored in subdirectory name. If `fileType` is `CSV`, one
2312+
# database must be specified.
22512313
# Corresponds to the JSON property `database`
22522314
# @return [String]
22532315
attr_accessor :database
@@ -3104,8 +3166,8 @@ class IpConfiguration
31043166
attr_accessor :server_ca_mode
31053167

31063168
# Optional. The resource name of the server CA pool for an instance with `
3107-
# CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects//locations//
3108-
# caPools/
3169+
# CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects/`PROJECT`/
3170+
# locations/`REGION`/caPools/`CA_POOL_ID`
31093171
# Corresponds to the JSON property `serverCaPool`
31103172
# @return [String]
31113173
attr_accessor :server_ca_pool
@@ -4368,6 +4430,15 @@ class Settings
43684430
# @return [String]
43694431
attr_accessor :replication_type
43704432

4433+
# Optional. When this parameter is set to true, Cloud SQL retains backups of the
4434+
# instance even after the instance is deleted. The ON_DEMAND backup will be
4435+
# retained until customer deletes the backup or the project. The AUTOMATED
4436+
# backup will be retained based on the backups retention setting.
4437+
# Corresponds to the JSON property `retainBackupsOnDelete`
4438+
# @return [Boolean]
4439+
attr_accessor :retain_backups_on_delete
4440+
alias_method :retain_backups_on_delete?, :retain_backups_on_delete
4441+
43714442
# The version of instance settings. This is a required field for update method
43724443
# to make sure concurrent updates are handled properly. During update, use the
43734444
# most recent settingsVersion value for this instance and do not try to update
@@ -4445,6 +4516,7 @@ def update!(**args)
44454516
@pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
44464517
@replication_lag_max_seconds = args[:replication_lag_max_seconds] if args.key?(:replication_lag_max_seconds)
44474518
@replication_type = args[:replication_type] if args.key?(:replication_type)
4519+
@retain_backups_on_delete = args[:retain_backups_on_delete] if args.key?(:retain_backups_on_delete)
44484520
@settings_version = args[:settings_version] if args.key?(:settings_version)
44494521
@sql_server_audit_config = args[:sql_server_audit_config] if args.key?(:sql_server_audit_config)
44504522
@storage_auto_resize = args[:storage_auto_resize] if args.key?(:storage_auto_resize)

generated/google-apis-sqladmin_v1/lib/google/apis/sqladmin_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module SqladminV1
1818
# Version of the google-apis-sqladmin_v1 gem
19-
GEM_VERSION = "0.73.0"
19+
GEM_VERSION = "0.74.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250216"
25+
REVISION = "20250226"
2626
end
2727
end
2828
end

generated/google-apis-sqladmin_v1/lib/google/apis/sqladmin_v1/representations.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
190190
include Google::Apis::Core::JsonObjectSupport
191191
end
192192

193+
class DnsNameMapping
194+
class Representation < Google::Apis::Core::JsonRepresentation; end
195+
196+
include Google::Apis::Core::JsonObjectSupport
197+
end
198+
193199
class Empty
194200
class Representation < Google::Apis::Core::JsonRepresentation; end
195201

@@ -823,6 +829,9 @@ class Representation < Google::Apis::Core::JsonRepresentation
823829

824830
property :expiry_time, as: 'expiryTime'
825831
property :instance, as: 'instance'
832+
property :instance_deletion_time, as: 'instanceDeletionTime'
833+
property :instance_settings, as: 'instanceSettings', class: Google::Apis::SqladminV1::DatabaseInstance, decorator: Google::Apis::SqladminV1::DatabaseInstance::Representation
834+
826835
property :kind, as: 'kind'
827836
property :kms_key, as: 'kmsKey'
828837
property :kms_key_version, as: 'kmsKeyVersion'
@@ -950,6 +959,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
950959
collection :custom_subject_alternative_names, as: 'customSubjectAlternativeNames'
951960
property :database_version, as: 'databaseVersion'
952961
property :dns_name, as: 'dnsName'
962+
collection :dns_names, as: 'dnsNames', class: Google::Apis::SqladminV1::DnsNameMapping, decorator: Google::Apis::SqladminV1::DnsNameMapping::Representation
963+
953964
collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1::IpMapping, decorator: Google::Apis::SqladminV1::IpMapping::Representation
954965

955966
property :kind, as: 'kind'
@@ -1007,6 +1018,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
10071018
property :disk_encryption_status, as: 'diskEncryptionStatus', class: Google::Apis::SqladminV1::DiskEncryptionStatus, decorator: Google::Apis::SqladminV1::DiskEncryptionStatus::Representation
10081019

10091020
property :dns_name, as: 'dnsName'
1021+
collection :dns_names, as: 'dnsNames', class: Google::Apis::SqladminV1::DnsNameMapping, decorator: Google::Apis::SqladminV1::DnsNameMapping::Representation
1022+
10101023
property :etag, as: 'etag'
10111024
property :failover_replica, as: 'failoverReplica', class: Google::Apis::SqladminV1::DatabaseInstance::FailoverReplica, decorator: Google::Apis::SqladminV1::DatabaseInstance::FailoverReplica::Representation
10121025

@@ -1142,6 +1155,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
11421155
end
11431156
end
11441157

1158+
class DnsNameMapping
1159+
# @private
1160+
class Representation < Google::Apis::Core::JsonRepresentation
1161+
property :connection_type, as: 'connectionType'
1162+
property :dns_scope, as: 'dnsScope'
1163+
property :name, as: 'name'
1164+
end
1165+
end
1166+
11451167
class Empty
11461168
# @private
11471169
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1872,6 +1894,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
18721894
property :pricing_plan, as: 'pricingPlan'
18731895
property :replication_lag_max_seconds, as: 'replicationLagMaxSeconds'
18741896
property :replication_type, as: 'replicationType'
1897+
property :retain_backups_on_delete, as: 'retainBackupsOnDelete'
18751898
property :settings_version, :numeric_string => true, as: 'settingsVersion'
18761899
property :sql_server_audit_config, as: 'sqlServerAuditConfig', class: Google::Apis::SqladminV1::SqlServerAuditConfig, decorator: Google::Apis::SqladminV1::SqlServerAuditConfig::Representation
18771900

generated/google-apis-sqladmin_v1/lib/google/apis/sqladmin_v1/service.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ def get_backup_backup(name, fields: nil, quota_user: nil, options: nil, &block)
154154
# project`
155155
# @param [String] filter
156156
# Multiple filter queries are separated by spaces. For example, 'instance:abc
157-
# type:FINAL. You can filter by type, instance name, creation time or location.
157+
# AND type:FINAL, 'location:us', 'backupInterval.startTime>=1950-01-01T01:01:25.
158+
# 771Z'. You can filter by type, instance, backupInterval.startTime (creation
159+
# time), or location.
158160
# @param [Fixnum] page_size
159161
# The maximum number of backups to return per response. The service might return
160162
# fewer backups than this value. If a value for this parameter isn't specified,

0 commit comments

Comments
 (0)