Skip to content

Commit 86d4779

Browse files
feat: Automated regeneration of sqladmin v1 client (#24319)
Auto-created at 2025-09-21 09:22:00 +0000 using the toys pull request generator.
1 parent b7e65ee commit 86d4779

File tree

6 files changed

+200
-4
lines changed

6 files changed

+200
-4
lines changed

api_names_out.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356291,6 +356291,9 @@
356291356291
"/sqladmin:v1/MaintenanceWindow/hour": hour
356292356292
"/sqladmin:v1/MaintenanceWindow/kind": kind
356293356293
"/sqladmin:v1/MaintenanceWindow/updateTrack": update_track
356294+
"/sqladmin:v1/Message": message
356295+
"/sqladmin:v1/Message/message": message
356296+
"/sqladmin:v1/Message/severity": severity
356294356297
"/sqladmin:v1/Metadata": metadata
356295356298
"/sqladmin:v1/Metadata/sqlStatementExecutionTime": sql_statement_execution_time
356296356299
"/sqladmin:v1/MySqlReplicaConfiguration": my_sql_replica_configuration
@@ -356419,6 +356422,13 @@
356419356422
"/sqladmin:v1/QueryResult/partialResult": partial_result
356420356423
"/sqladmin:v1/QueryResult/rows": rows
356421356424
"/sqladmin:v1/QueryResult/rows/row": row
356425+
"/sqladmin:v1/ReadPoolAutoScaleConfig": read_pool_auto_scale_config
356426+
"/sqladmin:v1/ReadPoolAutoScaleConfig/disableScaleIn": disable_scale_in
356427+
"/sqladmin:v1/ReadPoolAutoScaleConfig/enabled": enabled
356428+
"/sqladmin:v1/ReadPoolAutoScaleConfig/maxNodeCount": max_node_count
356429+
"/sqladmin:v1/ReadPoolAutoScaleConfig/minNodeCount": min_node_count
356430+
"/sqladmin:v1/ReadPoolAutoScaleConfig/targetMetrics": target_metrics
356431+
"/sqladmin:v1/ReadPoolAutoScaleConfig/targetMetrics/target_metric": target_metric
356422356432
"/sqladmin:v1/ReplicaConfiguration": replica_configuration
356423356433
"/sqladmin:v1/ReplicaConfiguration/cascadableReplica": cascadable_replica
356424356434
"/sqladmin:v1/ReplicaConfiguration/failoverTarget": failover_target
@@ -356481,6 +356491,7 @@
356481356491
"/sqladmin:v1/Settings/maintenanceWindow": maintenance_window
356482356492
"/sqladmin:v1/Settings/passwordValidationPolicy": password_validation_policy
356483356493
"/sqladmin:v1/Settings/pricingPlan": pricing_plan
356494+
"/sqladmin:v1/Settings/readPoolAutoScaleConfig": read_pool_auto_scale_config
356484356495
"/sqladmin:v1/Settings/replicationLagMaxSeconds": replication_lag_max_seconds
356485356496
"/sqladmin:v1/Settings/replicationType": replication_type
356486356497
"/sqladmin:v1/Settings/retainBackupsOnDelete": retain_backups_on_delete
@@ -356507,6 +356518,8 @@
356507356518
"/sqladmin:v1/SqlInstancesAcquireSsrsLeaseResponse": sql_instances_acquire_ssrs_lease_response
356508356519
"/sqladmin:v1/SqlInstancesAcquireSsrsLeaseResponse/operationId": operation_id
356509356520
"/sqladmin:v1/SqlInstancesExecuteSqlResponse": sql_instances_execute_sql_response
356521+
"/sqladmin:v1/SqlInstancesExecuteSqlResponse/messages": messages
356522+
"/sqladmin:v1/SqlInstancesExecuteSqlResponse/messages/message": message
356510356523
"/sqladmin:v1/SqlInstancesExecuteSqlResponse/metadata": metadata
356511356524
"/sqladmin:v1/SqlInstancesExecuteSqlResponse/results": results
356512356525
"/sqladmin:v1/SqlInstancesExecuteSqlResponse/results/result": result
@@ -356597,6 +356610,9 @@
356597356610
"/sqladmin:v1/SyncFlags": sync_flags
356598356611
"/sqladmin:v1/SyncFlags/name": name
356599356612
"/sqladmin:v1/SyncFlags/value": value
356613+
"/sqladmin:v1/TargetMetric": target_metric
356614+
"/sqladmin:v1/TargetMetric/metric": metric
356615+
"/sqladmin:v1/TargetMetric/targetValue": target_value
356600356616
"/sqladmin:v1/Tier": tier
356601356617
"/sqladmin:v1/Tier/DiskQuota": disk_quota
356602356618
"/sqladmin:v1/Tier/RAM": ram
@@ -356776,6 +356792,7 @@
356776356792
"/sqladmin:v1/sql.instances.releaseSsrsLease/project": project
356777356793
"/sqladmin:v1/sql.instances.resetSslConfig": reset_instance_ssl_config
356778356794
"/sqladmin:v1/sql.instances.resetSslConfig/instance": instance
356795+
"/sqladmin:v1/sql.instances.resetSslConfig/mode": mode
356779356796
"/sqladmin:v1/sql.instances.resetSslConfig/project": project
356780356797
"/sqladmin:v1/sql.instances.restart": restart_instance
356781356798
"/sqladmin:v1/sql.instances.restart/instance": instance

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.85.0 (2025-09-21)
4+
5+
* Regenerated from discovery document revision 20250908
6+
37
### v0.84.0 (2025-08-31)
48

59
* Regenerated from discovery document revision 20250823

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

Lines changed: 122 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def update!(**args)
181181
end
182182
end
183183

184-
# A backup resource. Next ID: 30
184+
# A backup resource.
185185
class Backup
186186
include Google::Apis::Core::Hashable
187187

@@ -3665,6 +3665,34 @@ def update!(**args)
36653665
end
36663666
end
36673667

3668+
# Represents a notice or warning message from the database.
3669+
class Message
3670+
include Google::Apis::Core::Hashable
3671+
3672+
# The full message string. For PostgreSQL, this is a formatted string that may
3673+
# include severity, code, and the notice/warning message. For MySQL, this
3674+
# contains the warning message.
3675+
# Corresponds to the JSON property `message`
3676+
# @return [String]
3677+
attr_accessor :message
3678+
3679+
# The severity of the message (e.g., "NOTICE" for PostgreSQL, "WARNING" for
3680+
# MySQL).
3681+
# Corresponds to the JSON property `severity`
3682+
# @return [String]
3683+
attr_accessor :severity
3684+
3685+
def initialize(**args)
3686+
update!(**args)
3687+
end
3688+
3689+
# Update properties of this object
3690+
def update!(**args)
3691+
@message = args[:message] if args.key?(:message)
3692+
@severity = args[:severity] if args.key?(:severity)
3693+
end
3694+
end
3695+
36683696
# The additional metadata information regarding the execution of the SQL
36693697
# statements.
36703698
class Metadata
@@ -4510,6 +4538,52 @@ def update!(**args)
45104538
end
45114539
end
45124540

4541+
# The read pool auto-scale configuration.
4542+
class ReadPoolAutoScaleConfig
4543+
include Google::Apis::Core::Hashable
4544+
4545+
# Indicates whether read pool auto scaling supports scale in operations (
4546+
# removing nodes).
4547+
# Corresponds to the JSON property `disableScaleIn`
4548+
# @return [Boolean]
4549+
attr_accessor :disable_scale_in
4550+
alias_method :disable_scale_in?, :disable_scale_in
4551+
4552+
# Indicates whether read pool auto scaling is enabled.
4553+
# Corresponds to the JSON property `enabled`
4554+
# @return [Boolean]
4555+
attr_accessor :enabled
4556+
alias_method :enabled?, :enabled
4557+
4558+
# Maximum number of read pool nodes to be maintained.
4559+
# Corresponds to the JSON property `maxNodeCount`
4560+
# @return [Fixnum]
4561+
attr_accessor :max_node_count
4562+
4563+
# Minimum number of read pool nodes to be maintained.
4564+
# Corresponds to the JSON property `minNodeCount`
4565+
# @return [Fixnum]
4566+
attr_accessor :min_node_count
4567+
4568+
# Optional. Target metrics for read pool auto scaling.
4569+
# Corresponds to the JSON property `targetMetrics`
4570+
# @return [Array<Google::Apis::SqladminV1::TargetMetric>]
4571+
attr_accessor :target_metrics
4572+
4573+
def initialize(**args)
4574+
update!(**args)
4575+
end
4576+
4577+
# Update properties of this object
4578+
def update!(**args)
4579+
@disable_scale_in = args[:disable_scale_in] if args.key?(:disable_scale_in)
4580+
@enabled = args[:enabled] if args.key?(:enabled)
4581+
@max_node_count = args[:max_node_count] if args.key?(:max_node_count)
4582+
@min_node_count = args[:min_node_count] if args.key?(:min_node_count)
4583+
@target_metrics = args[:target_metrics] if args.key?(:target_metrics)
4584+
end
4585+
end
4586+
45134587
# Read-replica configuration for connecting to the primary instance.
45144588
class ReplicaConfiguration
45154589
include Google::Apis::Core::Hashable
@@ -4948,6 +5022,11 @@ class Settings
49485022
# @return [String]
49495023
attr_accessor :pricing_plan
49505024

5025+
# The read pool auto-scale configuration.
5026+
# Corresponds to the JSON property `readPoolAutoScaleConfig`
5027+
# @return [Google::Apis::SqladminV1::ReadPoolAutoScaleConfig]
5028+
attr_accessor :read_pool_auto_scale_config
5029+
49515030
# Optional. Configuration value for recreation of replica after certain
49525031
# replication lag
49535032
# Corresponds to the JSON property `replicationLagMaxSeconds`
@@ -5049,6 +5128,7 @@ def update!(**args)
50495128
@maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
50505129
@password_validation_policy = args[:password_validation_policy] if args.key?(:password_validation_policy)
50515130
@pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
5131+
@read_pool_auto_scale_config = args[:read_pool_auto_scale_config] if args.key?(:read_pool_auto_scale_config)
50525132
@replication_lag_max_seconds = args[:replication_lag_max_seconds] if args.key?(:replication_lag_max_seconds)
50535133
@replication_type = args[:replication_type] if args.key?(:replication_type)
50545134
@retain_backups_on_delete = args[:retain_backups_on_delete] if args.key?(:retain_backups_on_delete)
@@ -5167,6 +5247,15 @@ def update!(**args)
51675247
class SqlInstancesExecuteSqlResponse
51685248
include Google::Apis::Core::Hashable
51695249

5250+
# A list of notices and warnings generated during query execution. For
5251+
# PostgreSQL, this includes all notices and warnings. For MySQL, this includes
5252+
# warnings generated by the last executed statement. To retrieve all warnings
5253+
# for a multi-statement query, `SHOW WARNINGS` must be executed after each
5254+
# statement.
5255+
# Corresponds to the JSON property `messages`
5256+
# @return [Array<Google::Apis::SqladminV1::Message>]
5257+
attr_accessor :messages
5258+
51705259
# The additional metadata information regarding the execution of the SQL
51715260
# statements.
51725261
# Corresponds to the JSON property `metadata`
@@ -5184,6 +5273,7 @@ def initialize(**args)
51845273

51855274
# Update properties of this object
51865275
def update!(**args)
5276+
@messages = args[:messages] if args.key?(:messages)
51875277
@metadata = args[:metadata] if args.key?(:metadata)
51885278
@results = args[:results] if args.key?(:results)
51895279
end
@@ -5856,6 +5946,31 @@ def update!(**args)
58565946
end
58575947
end
58585948

5949+
# Target metric for read pool auto scaling.
5950+
class TargetMetric
5951+
include Google::Apis::Core::Hashable
5952+
5953+
# The metric name to be used for auto scaling.
5954+
# Corresponds to the JSON property `metric`
5955+
# @return [String]
5956+
attr_accessor :metric
5957+
5958+
# The target value for the metric.
5959+
# Corresponds to the JSON property `targetValue`
5960+
# @return [Float]
5961+
attr_accessor :target_value
5962+
5963+
def initialize(**args)
5964+
update!(**args)
5965+
end
5966+
5967+
# Update properties of this object
5968+
def update!(**args)
5969+
@metric = args[:metric] if args.key?(:metric)
5970+
@target_value = args[:target_value] if args.key?(:target_value)
5971+
end
5972+
end
5973+
58595974
# A Google Cloud SQL service tier resource.
58605975
class Tier
58615976
include Google::Apis::Core::Hashable
@@ -5974,6 +6089,11 @@ class User
59746089
# @return [String]
59756090
attr_accessor :host
59766091

6092+
# Indicates if a group is active or inactive for IAM database authentication.
6093+
# Corresponds to the JSON property `iamStatus`
6094+
# @return [String]
6095+
attr_accessor :iam_status
6096+
59776097
# The name of the Cloud SQL instance. This does not include the project ID. Can
59786098
# be omitted for `update` because it is already specified on the URL.
59796099
# Corresponds to the JSON property `instance`
@@ -6028,6 +6148,7 @@ def update!(**args)
60286148
@dual_password_type = args[:dual_password_type] if args.key?(:dual_password_type)
60296149
@etag = args[:etag] if args.key?(:etag)
60306150
@host = args[:host] if args.key?(:host)
6151+
@iam_status = args[:iam_status] if args.key?(:iam_status)
60316152
@instance = args[:instance] if args.key?(:instance)
60326153
@kind = args[:kind] if args.key?(:kind)
60336154
@name = args[:name] if args.key?(:name)

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.84.0"
19+
GEM_VERSION = "0.85.0"
2020

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

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

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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
502502
include Google::Apis::Core::JsonObjectSupport
503503
end
504504

505+
class Message
506+
class Representation < Google::Apis::Core::JsonRepresentation; end
507+
508+
include Google::Apis::Core::JsonObjectSupport
509+
end
510+
505511
class Metadata
506512
class Representation < Google::Apis::Core::JsonRepresentation; end
507513

@@ -604,6 +610,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
604610
include Google::Apis::Core::JsonObjectSupport
605611
end
606612

613+
class ReadPoolAutoScaleConfig
614+
class Representation < Google::Apis::Core::JsonRepresentation; end
615+
616+
include Google::Apis::Core::JsonObjectSupport
617+
end
618+
607619
class ReplicaConfiguration
608620
class Representation < Google::Apis::Core::JsonRepresentation; end
609621

@@ -808,6 +820,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
808820
include Google::Apis::Core::JsonObjectSupport
809821
end
810822

823+
class TargetMetric
824+
class Representation < Google::Apis::Core::JsonRepresentation; end
825+
826+
include Google::Apis::Core::JsonObjectSupport
827+
end
828+
811829
class Tier
812830
class Representation < Google::Apis::Core::JsonRepresentation; end
813831

@@ -1777,6 +1795,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
17771795
end
17781796
end
17791797

1798+
class Message
1799+
# @private
1800+
class Representation < Google::Apis::Core::JsonRepresentation
1801+
property :message, as: 'message'
1802+
property :severity, as: 'severity'
1803+
end
1804+
end
1805+
17801806
class Metadata
17811807
# @private
17821808
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1990,6 +2016,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
19902016
end
19912017
end
19922018

2019+
class ReadPoolAutoScaleConfig
2020+
# @private
2021+
class Representation < Google::Apis::Core::JsonRepresentation
2022+
property :disable_scale_in, as: 'disableScaleIn'
2023+
property :enabled, as: 'enabled'
2024+
property :max_node_count, as: 'maxNodeCount'
2025+
property :min_node_count, as: 'minNodeCount'
2026+
collection :target_metrics, as: 'targetMetrics', class: Google::Apis::SqladminV1::TargetMetric, decorator: Google::Apis::SqladminV1::TargetMetric::Representation
2027+
2028+
end
2029+
end
2030+
19932031
class ReplicaConfiguration
19942032
# @private
19952033
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2105,6 +2143,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
21052143
property :password_validation_policy, as: 'passwordValidationPolicy', class: Google::Apis::SqladminV1::PasswordValidationPolicy, decorator: Google::Apis::SqladminV1::PasswordValidationPolicy::Representation
21062144

21072145
property :pricing_plan, as: 'pricingPlan'
2146+
property :read_pool_auto_scale_config, as: 'readPoolAutoScaleConfig', class: Google::Apis::SqladminV1::ReadPoolAutoScaleConfig, decorator: Google::Apis::SqladminV1::ReadPoolAutoScaleConfig::Representation
2147+
21082148
property :replication_lag_max_seconds, as: 'replicationLagMaxSeconds'
21092149
property :replication_type, as: 'replicationType'
21102150
property :retain_backups_on_delete, as: 'retainBackupsOnDelete'
@@ -2150,6 +2190,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
21502190
class SqlInstancesExecuteSqlResponse
21512191
# @private
21522192
class Representation < Google::Apis::Core::JsonRepresentation
2193+
collection :messages, as: 'messages', class: Google::Apis::SqladminV1::Message, decorator: Google::Apis::SqladminV1::Message::Representation
2194+
21532195
property :metadata, as: 'metadata', class: Google::Apis::SqladminV1::Metadata, decorator: Google::Apis::SqladminV1::Metadata::Representation
21542196

21552197
collection :results, as: 'results', class: Google::Apis::SqladminV1::QueryResult, decorator: Google::Apis::SqladminV1::QueryResult::Representation
@@ -2355,6 +2397,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
23552397
end
23562398
end
23572399

2400+
class TargetMetric
2401+
# @private
2402+
class Representation < Google::Apis::Core::JsonRepresentation
2403+
property :metric, as: 'metric'
2404+
property :target_value, as: 'targetValue'
2405+
end
2406+
end
2407+
23582408
class Tier
23592409
# @private
23602410
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2389,6 +2439,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
23892439
property :dual_password_type, as: 'dualPasswordType'
23902440
property :etag, as: 'etag'
23912441
property :host, as: 'host'
2442+
property :iam_status, as: 'iamStatus'
23922443
property :instance, as: 'instance'
23932444
property :kind, as: 'kind'
23942445
property :name, as: 'name'

0 commit comments

Comments
 (0)