Skip to content

Commit c5d61af

Browse files
feat: Automated regeneration of sqladmin v1 client (#24409)
Auto-created at 2025-09-28 09:48:25 +0000 using the toys pull request generator.
1 parent bb9be27 commit c5d61af

File tree

8 files changed

+211
-5
lines changed

8 files changed

+211
-5
lines changed

api_names_out.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358051,6 +358051,8 @@
358051358051
"/sqladmin:v1/InstancesListServerCertificatesResponse/kind": kind
358052358052
"/sqladmin:v1/InstancesListServerCertificatesResponse/serverCerts": server_certs
358053358053
"/sqladmin:v1/InstancesListServerCertificatesResponse/serverCerts/server_cert": server_cert
358054+
"/sqladmin:v1/InstancesPreCheckMajorVersionUpgradeRequest": instances_pre_check_major_version_upgrade_request
358055+
"/sqladmin:v1/InstancesPreCheckMajorVersionUpgradeRequest/preCheckMajorVersionUpgradeContext": pre_check_major_version_upgrade_context
358054358056
"/sqladmin:v1/InstancesReencryptRequest": instances_reencrypt_request
358055358057
"/sqladmin:v1/InstancesReencryptRequest/backupReencryptionConfig": backup_reencryption_config
358056358058
"/sqladmin:v1/InstancesRestoreBackupRequest": instances_restore_backup_request
@@ -358148,6 +358150,7 @@
358148358150
"/sqladmin:v1/Operation/kind": kind
358149358151
"/sqladmin:v1/Operation/name": name
358150358152
"/sqladmin:v1/Operation/operationType": operation_type
358153+
"/sqladmin:v1/Operation/preCheckMajorVersionUpgradeContext": pre_check_major_version_upgrade_context
358151358154
"/sqladmin:v1/Operation/selfLink": self_link
358152358155
"/sqladmin:v1/Operation/startTime": start_time
358153358156
"/sqladmin:v1/Operation/status": status
@@ -358214,6 +358217,16 @@
358214358217
"/sqladmin:v1/PoolNodeConfig/ipAddresses/ip_address": ip_address
358215358218
"/sqladmin:v1/PoolNodeConfig/name": name
358216358219
"/sqladmin:v1/PoolNodeConfig/state": state
358220+
"/sqladmin:v1/PreCheckMajorVersionUpgradeContext": pre_check_major_version_upgrade_context
358221+
"/sqladmin:v1/PreCheckMajorVersionUpgradeContext/kind": kind
358222+
"/sqladmin:v1/PreCheckMajorVersionUpgradeContext/preCheckResponse": pre_check_response
358223+
"/sqladmin:v1/PreCheckMajorVersionUpgradeContext/preCheckResponse/pre_check_response": pre_check_response
358224+
"/sqladmin:v1/PreCheckMajorVersionUpgradeContext/targetDatabaseVersion": target_database_version
358225+
"/sqladmin:v1/PreCheckResponse": pre_check_response
358226+
"/sqladmin:v1/PreCheckResponse/actionsRequired": actions_required
358227+
"/sqladmin:v1/PreCheckResponse/actionsRequired/actions_required": actions_required
358228+
"/sqladmin:v1/PreCheckResponse/message": message
358229+
"/sqladmin:v1/PreCheckResponse/messageType": message_type
358217358230
"/sqladmin:v1/PscAutoConnectionConfig": psc_auto_connection_config
358218358231
"/sqladmin:v1/PscAutoConnectionConfig/consumerNetwork": consumer_network
358219358232
"/sqladmin:v1/PscAutoConnectionConfig/consumerNetworkStatus": consumer_network_status
@@ -358239,6 +358252,8 @@
358239358252
"/sqladmin:v1/ReadPoolAutoScaleConfig/enabled": enabled
358240358253
"/sqladmin:v1/ReadPoolAutoScaleConfig/maxNodeCount": max_node_count
358241358254
"/sqladmin:v1/ReadPoolAutoScaleConfig/minNodeCount": min_node_count
358255+
"/sqladmin:v1/ReadPoolAutoScaleConfig/scaleInCooldownSeconds": scale_in_cooldown_seconds
358256+
"/sqladmin:v1/ReadPoolAutoScaleConfig/scaleOutCooldownSeconds": scale_out_cooldown_seconds
358242358257
"/sqladmin:v1/ReadPoolAutoScaleConfig/targetMetrics": target_metrics
358243358258
"/sqladmin:v1/ReadPoolAutoScaleConfig/targetMetrics/target_metric": target_metric
358244358259
"/sqladmin:v1/ReplicaConfiguration": replica_configuration
@@ -358592,6 +358607,9 @@
358592358607
"/sqladmin:v1/sql.instances.patch/project": project
358593358608
"/sqladmin:v1/sql.instances.pointInTimeRestore": point_instance_in_time_restore
358594358609
"/sqladmin:v1/sql.instances.pointInTimeRestore/parent": parent
358610+
"/sqladmin:v1/sql.instances.preCheckMajorVersionUpgrade": pre_instance_check_major_version_upgrade
358611+
"/sqladmin:v1/sql.instances.preCheckMajorVersionUpgrade/instance": instance
358612+
"/sqladmin:v1/sql.instances.preCheckMajorVersionUpgrade/project": project
358595358613
"/sqladmin:v1/sql.instances.promoteReplica": promote_instance_replica
358596358614
"/sqladmin:v1/sql.instances.promoteReplica/failover": failover
358597358615
"/sqladmin:v1/sql.instances.promoteReplica/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.86.0 (2025-09-28)
4+
5+
* Regenerated from discovery document revision 20250915
6+
37
### v0.85.0 (2025-09-21)
48

59
* Regenerated from discovery document revision 20250908

generated/google-apis-sqladmin_v1/OVERVIEW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Gem names for modern clients are often of the form `google-cloud-<service_name>`
7979

8080
**For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
8181

82-
The [product documentation](https://developers.google.com/cloud-sql/) may provide guidance regarding the preferred client library to use.
82+
The [product documentation](https://cloud.google.com/sql/docs) may provide guidance regarding the preferred client library to use.
8383

8484
## Supported Ruby versions
8585

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module Apis
2323
#
2424
# API for Cloud SQL database instance management
2525
#
26-
# @see https://developers.google.com/cloud-sql/
26+
# @see https://cloud.google.com/sql/docs
2727
module SqladminV1
2828
# Version of the Cloud SQL Admin API this client connects to.
2929
# This is NOT the gem version.

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

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3242,6 +3242,25 @@ def update!(**args)
32423242
end
32433243
end
32443244

3245+
# Request for Pre-checks for MVU
3246+
class InstancesPreCheckMajorVersionUpgradeRequest
3247+
include Google::Apis::Core::Hashable
3248+
3249+
# Pre-check major version upgrade context.
3250+
# Corresponds to the JSON property `preCheckMajorVersionUpgradeContext`
3251+
# @return [Google::Apis::SqladminV1::PreCheckMajorVersionUpgradeContext]
3252+
attr_accessor :pre_check_major_version_upgrade_context
3253+
3254+
def initialize(**args)
3255+
update!(**args)
3256+
end
3257+
3258+
# Update properties of this object
3259+
def update!(**args)
3260+
@pre_check_major_version_upgrade_context = args[:pre_check_major_version_upgrade_context] if args.key?(:pre_check_major_version_upgrade_context)
3261+
end
3262+
end
3263+
32453264
# Database Instance reencrypt request.
32463265
class InstancesReencryptRequest
32473266
include Google::Apis::Core::Hashable
@@ -3966,6 +3985,11 @@ class Operation
39663985
# @return [String]
39673986
attr_accessor :operation_type
39683987

3988+
# Pre-check major version upgrade context.
3989+
# Corresponds to the JSON property `preCheckMajorVersionUpgradeContext`
3990+
# @return [Google::Apis::SqladminV1::PreCheckMajorVersionUpgradeContext]
3991+
attr_accessor :pre_check_major_version_upgrade_context
3992+
39693993
# The URI of this resource.
39703994
# Corresponds to the JSON property `selfLink`
39713995
# @return [String]
@@ -4024,6 +4048,7 @@ def update!(**args)
40244048
@kind = args[:kind] if args.key?(:kind)
40254049
@name = args[:name] if args.key?(:name)
40264050
@operation_type = args[:operation_type] if args.key?(:operation_type)
4051+
@pre_check_major_version_upgrade_context = args[:pre_check_major_version_upgrade_context] if args.key?(:pre_check_major_version_upgrade_context)
40274052
@self_link = args[:self_link] if args.key?(:self_link)
40284053
@start_time = args[:start_time] if args.key?(:start_time)
40294054
@status = args[:status] if args.key?(:status)
@@ -4406,6 +4431,68 @@ def update!(**args)
44064431
end
44074432
end
44084433

4434+
# Pre-check major version upgrade context.
4435+
class PreCheckMajorVersionUpgradeContext
4436+
include Google::Apis::Core::Hashable
4437+
4438+
# Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
4439+
# Corresponds to the JSON property `kind`
4440+
# @return [String]
4441+
attr_accessor :kind
4442+
4443+
# Output only. The responses from the precheck operation.
4444+
# Corresponds to the JSON property `preCheckResponse`
4445+
# @return [Array<Google::Apis::SqladminV1::PreCheckResponse>]
4446+
attr_accessor :pre_check_response
4447+
4448+
# Required. The target database version to upgrade to.
4449+
# Corresponds to the JSON property `targetDatabaseVersion`
4450+
# @return [String]
4451+
attr_accessor :target_database_version
4452+
4453+
def initialize(**args)
4454+
update!(**args)
4455+
end
4456+
4457+
# Update properties of this object
4458+
def update!(**args)
4459+
@kind = args[:kind] if args.key?(:kind)
4460+
@pre_check_response = args[:pre_check_response] if args.key?(:pre_check_response)
4461+
@target_database_version = args[:target_database_version] if args.key?(:target_database_version)
4462+
end
4463+
end
4464+
4465+
# Structured PreCheckResponse containing message, type, and required actions.
4466+
class PreCheckResponse
4467+
include Google::Apis::Core::Hashable
4468+
4469+
# The actions that the user needs to take. Use repeated for multiple actions.
4470+
# Corresponds to the JSON property `actionsRequired`
4471+
# @return [Array<String>]
4472+
attr_accessor :actions_required
4473+
4474+
# The message to be displayed to the user.
4475+
# Corresponds to the JSON property `message`
4476+
# @return [String]
4477+
attr_accessor :message
4478+
4479+
# The type of message whether it is an info, warning, or error.
4480+
# Corresponds to the JSON property `messageType`
4481+
# @return [String]
4482+
attr_accessor :message_type
4483+
4484+
def initialize(**args)
4485+
update!(**args)
4486+
end
4487+
4488+
# Update properties of this object
4489+
def update!(**args)
4490+
@actions_required = args[:actions_required] if args.key?(:actions_required)
4491+
@message = args[:message] if args.key?(:message)
4492+
@message_type = args[:message_type] if args.key?(:message_type)
4493+
end
4494+
end
4495+
44094496
# Settings for an automatically-setup Private Service Connect consumer endpoint
44104497
# that is used to connect to a Cloud SQL instance.
44114498
class PscAutoConnectionConfig
@@ -4565,6 +4652,16 @@ class ReadPoolAutoScaleConfig
45654652
# @return [Fixnum]
45664653
attr_accessor :min_node_count
45674654

4655+
# The cooldown period for scale-in operations.
4656+
# Corresponds to the JSON property `scaleInCooldownSeconds`
4657+
# @return [Fixnum]
4658+
attr_accessor :scale_in_cooldown_seconds
4659+
4660+
# The cooldown period for scale-out operations.
4661+
# Corresponds to the JSON property `scaleOutCooldownSeconds`
4662+
# @return [Fixnum]
4663+
attr_accessor :scale_out_cooldown_seconds
4664+
45684665
# Optional. Target metrics for read pool auto scaling.
45694666
# Corresponds to the JSON property `targetMetrics`
45704667
# @return [Array<Google::Apis::SqladminV1::TargetMetric>]
@@ -4580,6 +4677,8 @@ def update!(**args)
45804677
@enabled = args[:enabled] if args.key?(:enabled)
45814678
@max_node_count = args[:max_node_count] if args.key?(:max_node_count)
45824679
@min_node_count = args[:min_node_count] if args.key?(:min_node_count)
4680+
@scale_in_cooldown_seconds = args[:scale_in_cooldown_seconds] if args.key?(:scale_in_cooldown_seconds)
4681+
@scale_out_cooldown_seconds = args[:scale_out_cooldown_seconds] if args.key?(:scale_out_cooldown_seconds)
45834682
@target_metrics = args[:target_metrics] if args.key?(:target_metrics)
45844683
end
45854684
end

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.85.0"
19+
GEM_VERSION = "0.86.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 = "20250908"
25+
REVISION = "20250915"
2626
end
2727
end
2828
end

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

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
436436
include Google::Apis::Core::JsonObjectSupport
437437
end
438438

439+
class InstancesPreCheckMajorVersionUpgradeRequest
440+
class Representation < Google::Apis::Core::JsonRepresentation; end
441+
442+
include Google::Apis::Core::JsonObjectSupport
443+
end
444+
439445
class InstancesReencryptRequest
440446
class Representation < Google::Apis::Core::JsonRepresentation; end
441447

@@ -592,6 +598,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
592598
include Google::Apis::Core::JsonObjectSupport
593599
end
594600

601+
class PreCheckMajorVersionUpgradeContext
602+
class Representation < Google::Apis::Core::JsonRepresentation; end
603+
604+
include Google::Apis::Core::JsonObjectSupport
605+
end
606+
607+
class PreCheckResponse
608+
class Representation < Google::Apis::Core::JsonRepresentation; end
609+
610+
include Google::Apis::Core::JsonObjectSupport
611+
end
612+
595613
class PscAutoConnectionConfig
596614
class Representation < Google::Apis::Core::JsonRepresentation; end
597615

@@ -1683,6 +1701,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
16831701
end
16841702
end
16851703

1704+
class InstancesPreCheckMajorVersionUpgradeRequest
1705+
# @private
1706+
class Representation < Google::Apis::Core::JsonRepresentation
1707+
property :pre_check_major_version_upgrade_context, as: 'preCheckMajorVersionUpgradeContext', class: Google::Apis::SqladminV1::PreCheckMajorVersionUpgradeContext, decorator: Google::Apis::SqladminV1::PreCheckMajorVersionUpgradeContext::Representation
1708+
1709+
end
1710+
end
1711+
16861712
class InstancesReencryptRequest
16871713
# @private
16881714
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1874,6 +1900,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
18741900
property :kind, as: 'kind'
18751901
property :name, as: 'name'
18761902
property :operation_type, as: 'operationType'
1903+
property :pre_check_major_version_upgrade_context, as: 'preCheckMajorVersionUpgradeContext', class: Google::Apis::SqladminV1::PreCheckMajorVersionUpgradeContext, decorator: Google::Apis::SqladminV1::PreCheckMajorVersionUpgradeContext::Representation
1904+
18771905
property :self_link, as: 'selfLink'
18781906
property :start_time, as: 'startTime'
18791907
property :status, as: 'status'
@@ -1982,6 +2010,25 @@ class Representation < Google::Apis::Core::JsonRepresentation
19822010
end
19832011
end
19842012

2013+
class PreCheckMajorVersionUpgradeContext
2014+
# @private
2015+
class Representation < Google::Apis::Core::JsonRepresentation
2016+
property :kind, as: 'kind'
2017+
collection :pre_check_response, as: 'preCheckResponse', class: Google::Apis::SqladminV1::PreCheckResponse, decorator: Google::Apis::SqladminV1::PreCheckResponse::Representation
2018+
2019+
property :target_database_version, as: 'targetDatabaseVersion'
2020+
end
2021+
end
2022+
2023+
class PreCheckResponse
2024+
# @private
2025+
class Representation < Google::Apis::Core::JsonRepresentation
2026+
collection :actions_required, as: 'actionsRequired'
2027+
property :message, as: 'message'
2028+
property :message_type, as: 'messageType'
2029+
end
2030+
end
2031+
19852032
class PscAutoConnectionConfig
19862033
# @private
19872034
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2023,6 +2070,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
20232070
property :enabled, as: 'enabled'
20242071
property :max_node_count, as: 'maxNodeCount'
20252072
property :min_node_count, as: 'minNodeCount'
2073+
property :scale_in_cooldown_seconds, as: 'scaleInCooldownSeconds'
2074+
property :scale_out_cooldown_seconds, as: 'scaleOutCooldownSeconds'
20262075
collection :target_metrics, as: 'targetMetrics', class: Google::Apis::SqladminV1::TargetMetric, decorator: Google::Apis::SqladminV1::TargetMetric::Representation
20272076

20282077
end

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

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module SqladminV1
3030
# Sqladmin = Google::Apis::SqladminV1 # Alias the module
3131
# service = Sqladmin::SQLAdminService.new
3232
#
33-
# @see https://developers.google.com/cloud-sql/
33+
# @see https://cloud.google.com/sql/docs
3434
class SQLAdminService < Google::Apis::Core::BaseService
3535
DEFAULT_ENDPOINT_TEMPLATE = "https://sqladmin.$UNIVERSE_DOMAIN$/"
3636

@@ -1443,6 +1443,42 @@ def point_instance_in_time_restore(parent, point_in_time_restore_context_object
14431443
execute_or_queue_command(command, &block)
14441444
end
14451445

1446+
# Execute MVU Pre-checks
1447+
# @param [String] project
1448+
# Required. Project ID of the project that contains the instance.
1449+
# @param [String] instance
1450+
# Required. Cloud SQL instance ID. This does not include the project ID.
1451+
# @param [Google::Apis::SqladminV1::InstancesPreCheckMajorVersionUpgradeRequest] instances_pre_check_major_version_upgrade_request_object
1452+
# @param [String] fields
1453+
# Selector specifying which fields to include in a partial response.
1454+
# @param [String] quota_user
1455+
# Available to use for quota purposes for server-side applications. Can be any
1456+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1457+
# @param [Google::Apis::RequestOptions] options
1458+
# Request-specific options
1459+
#
1460+
# @yield [result, err] Result & error if block supplied
1461+
# @yieldparam result [Google::Apis::SqladminV1::Operation] parsed result object
1462+
# @yieldparam err [StandardError] error object if request failed
1463+
#
1464+
# @return [Google::Apis::SqladminV1::Operation]
1465+
#
1466+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1467+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1468+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1469+
def pre_instance_check_major_version_upgrade(project, instance, instances_pre_check_major_version_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1470+
command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/preCheckMajorVersionUpgrade', options)
1471+
command.request_representation = Google::Apis::SqladminV1::InstancesPreCheckMajorVersionUpgradeRequest::Representation
1472+
command.request_object = instances_pre_check_major_version_upgrade_request_object
1473+
command.response_representation = Google::Apis::SqladminV1::Operation::Representation
1474+
command.response_class = Google::Apis::SqladminV1::Operation
1475+
command.params['project'] = project unless project.nil?
1476+
command.params['instance'] = instance unless instance.nil?
1477+
command.query['fields'] = fields unless fields.nil?
1478+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1479+
execute_or_queue_command(command, &block)
1480+
end
1481+
14461482
# Promotes the read replica instance to be an independent Cloud SQL primary
14471483
# instance. Using this operation might cause your instance to restart.
14481484
# @param [String] project

0 commit comments

Comments
 (0)