Skip to content

Commit c8efb54

Browse files
feat: Automated regeneration of sqladmin v1 client (googleapis#24681)
Auto-created at 2025-10-19 10:19:35 +0000 using the toys pull request generator.
1 parent 362c89f commit c8efb54

File tree

6 files changed

+123
-9
lines changed

6 files changed

+123
-9
lines changed

api_names_out.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361921,6 +361921,7 @@
361921361921
"/sqladmin:v1/QueryResult/partialResult": partial_result
361922361922
"/sqladmin:v1/QueryResult/rows": rows
361923361923
"/sqladmin:v1/QueryResult/rows/row": row
361924+
"/sqladmin:v1/QueryResult/status": status
361924361925
"/sqladmin:v1/ReadPoolAutoScaleConfig": read_pool_auto_scale_config
361925361926
"/sqladmin:v1/ReadPoolAutoScaleConfig/disableScaleIn": disable_scale_in
361926361927
"/sqladmin:v1/ReadPoolAutoScaleConfig/enabled": enabled
@@ -361964,6 +361965,7 @@
361964361965
"/sqladmin:v1/Settings/advancedMachineFeatures": advanced_machine_features
361965361966
"/sqladmin:v1/Settings/authorizedGaeApplications": authorized_gae_applications
361966361967
"/sqladmin:v1/Settings/authorizedGaeApplications/authorized_gae_application": authorized_gae_application
361968+
"/sqladmin:v1/Settings/autoUpgradeEnabled": auto_upgrade_enabled
361967361969
"/sqladmin:v1/Settings/availabilityType": availability_type
361968361970
"/sqladmin:v1/Settings/backupConfiguration": backup_configuration
361969361971
"/sqladmin:v1/Settings/collation": collation
@@ -362024,6 +362026,7 @@
362024362026
"/sqladmin:v1/SqlInstancesExecuteSqlResponse/metadata": metadata
362025362027
"/sqladmin:v1/SqlInstancesExecuteSqlResponse/results": results
362026362028
"/sqladmin:v1/SqlInstancesExecuteSqlResponse/results/result": result
362029+
"/sqladmin:v1/SqlInstancesExecuteSqlResponse/status": status
362027362030
"/sqladmin:v1/SqlInstancesGetDiskShrinkConfigResponse": sql_instances_get_disk_shrink_config_response
362028362031
"/sqladmin:v1/SqlInstancesGetDiskShrinkConfigResponse/kind": kind
362029362032
"/sqladmin:v1/SqlInstancesGetDiskShrinkConfigResponse/message": message
@@ -362108,6 +362111,12 @@
362108362111
"/sqladmin:v1/SslCertsListResponse/items": items
362109362112
"/sqladmin:v1/SslCertsListResponse/items/item": item
362110362113
"/sqladmin:v1/SslCertsListResponse/kind": kind
362114+
"/sqladmin:v1/Status": status
362115+
"/sqladmin:v1/Status/code": code
362116+
"/sqladmin:v1/Status/details": details
362117+
"/sqladmin:v1/Status/details/detail": detail
362118+
"/sqladmin:v1/Status/details/detail/detail": detail
362119+
"/sqladmin:v1/Status/message": message
362111362120
"/sqladmin:v1/SyncFlags": sync_flags
362112362121
"/sqladmin:v1/SyncFlags/name": name
362113362122
"/sqladmin:v1/SyncFlags/value": value
@@ -362132,6 +362141,7 @@
362132362141
"/sqladmin:v1/User/dualPasswordType": dual_password_type
362133362142
"/sqladmin:v1/User/etag": etag
362134362143
"/sqladmin:v1/User/host": host
362144+
"/sqladmin:v1/User/iamEmail": iam_email
362135362145
"/sqladmin:v1/User/iamStatus": iam_status
362136362146
"/sqladmin:v1/User/instance": instance
362137362147
"/sqladmin:v1/User/kind": kind

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.87.0 (2025-10-19)
4+
5+
* Regenerated from discovery document revision 20251006
6+
37
### v0.86.0 (2025-09-28)
48

59
* Regenerated from discovery document revision 20250915

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

Lines changed: 82 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1882,8 +1882,9 @@ class ExecuteSqlPayload
18821882
# @return [String]
18831883
attr_accessor :database
18841884

1885-
# Optional. Controls how the API should respond when the SQL execution result
1886-
# exceeds 10 MB. The default mode is to throw an error.
1885+
# Optional. Controls how the API should respond when the SQL execution result is
1886+
# incomplete due to the size limit or another error. The default mode is to
1887+
# throw an error.
18871888
# Corresponds to the JSON property `partialResultMode`
18881889
# @return [String]
18891890
attr_accessor :partial_result_mode
@@ -4601,7 +4602,8 @@ class QueryResult
46014602
# @return [String]
46024603
attr_accessor :message
46034604

4604-
# Set to true if the SQL execution's result is truncated due to size limits.
4605+
# Set to true if the SQL execution's result is truncated due to size limits or
4606+
# an error retrieving results.
46054607
# Corresponds to the JSON property `partialResult`
46064608
# @return [Boolean]
46074609
attr_accessor :partial_result
@@ -4612,6 +4614,16 @@ class QueryResult
46124614
# @return [Array<Google::Apis::SqladminV1::Row>]
46134615
attr_accessor :rows
46144616

4617+
# The `Status` type defines a logical error model that is suitable for different
4618+
# programming environments, including REST APIs and RPC APIs. It is used by [
4619+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
4620+
# data: error code, error message, and error details. You can find out more
4621+
# about this error model and how to work with it in the [API Design Guide](https:
4622+
# //cloud.google.com/apis/design/errors).
4623+
# Corresponds to the JSON property `status`
4624+
# @return [Google::Apis::SqladminV1::Status]
4625+
attr_accessor :status
4626+
46154627
def initialize(**args)
46164628
update!(**args)
46174629
end
@@ -4622,6 +4634,7 @@ def update!(**args)
46224634
@message = args[:message] if args.key?(:message)
46234635
@partial_result = args[:partial_result] if args.key?(:partial_result)
46244636
@rows = args[:rows] if args.key?(:rows)
4637+
@status = args[:status] if args.key?(:status)
46254638
end
46264639
end
46274640

@@ -4960,6 +4973,14 @@ class Settings
49604973
# @return [Array<String>]
49614974
attr_accessor :authorized_gae_applications
49624975

4976+
# Optional. Cloud SQL for MySQL auto-upgrade configuration. When this parameter
4977+
# is set to true, auto-upgrade is enabled for MySQL 8.0 minor versions. The
4978+
# MySQL version must be 8.0.35 or higher.
4979+
# Corresponds to the JSON property `autoUpgradeEnabled`
4980+
# @return [Boolean]
4981+
attr_accessor :auto_upgrade_enabled
4982+
alias_method :auto_upgrade_enabled?, :auto_upgrade_enabled
4983+
49634984
# Availability type. Potential values: * `ZONAL`: The instance serves data from
49644985
# only one zone. Outages in that zone affect data accessibility. * `REGIONAL`:
49654986
# The instance can serve data from more than one zone in a region (it is highly
@@ -5201,6 +5222,7 @@ def update!(**args)
52015222
@active_directory_config = args[:active_directory_config] if args.key?(:active_directory_config)
52025223
@advanced_machine_features = args[:advanced_machine_features] if args.key?(:advanced_machine_features)
52035224
@authorized_gae_applications = args[:authorized_gae_applications] if args.key?(:authorized_gae_applications)
5225+
@auto_upgrade_enabled = args[:auto_upgrade_enabled] if args.key?(:auto_upgrade_enabled)
52045226
@availability_type = args[:availability_type] if args.key?(:availability_type)
52055227
@backup_configuration = args[:backup_configuration] if args.key?(:backup_configuration)
52065228
@collation = args[:collation] if args.key?(:collation)
@@ -5366,6 +5388,16 @@ class SqlInstancesExecuteSqlResponse
53665388
# @return [Array<Google::Apis::SqladminV1::QueryResult>]
53675389
attr_accessor :results
53685390

5391+
# The `Status` type defines a logical error model that is suitable for different
5392+
# programming environments, including REST APIs and RPC APIs. It is used by [
5393+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
5394+
# data: error code, error message, and error details. You can find out more
5395+
# about this error model and how to work with it in the [API Design Guide](https:
5396+
# //cloud.google.com/apis/design/errors).
5397+
# Corresponds to the JSON property `status`
5398+
# @return [Google::Apis::SqladminV1::Status]
5399+
attr_accessor :status
5400+
53695401
def initialize(**args)
53705402
update!(**args)
53715403
end
@@ -5375,6 +5407,7 @@ def update!(**args)
53755407
@messages = args[:messages] if args.key?(:messages)
53765408
@metadata = args[:metadata] if args.key?(:metadata)
53775409
@results = args[:results] if args.key?(:results)
5410+
@status = args[:status] if args.key?(:status)
53785411
end
53795412
end
53805413

@@ -6018,6 +6051,45 @@ def update!(**args)
60186051
end
60196052
end
60206053

6054+
# The `Status` type defines a logical error model that is suitable for different
6055+
# programming environments, including REST APIs and RPC APIs. It is used by [
6056+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
6057+
# data: error code, error message, and error details. You can find out more
6058+
# about this error model and how to work with it in the [API Design Guide](https:
6059+
# //cloud.google.com/apis/design/errors).
6060+
class Status
6061+
include Google::Apis::Core::Hashable
6062+
6063+
# The status code, which should be an enum value of google.rpc.Code.
6064+
# Corresponds to the JSON property `code`
6065+
# @return [Fixnum]
6066+
attr_accessor :code
6067+
6068+
# A list of messages that carry the error details. There is a common set of
6069+
# message types for APIs to use.
6070+
# Corresponds to the JSON property `details`
6071+
# @return [Array<Hash<String,Object>>]
6072+
attr_accessor :details
6073+
6074+
# A developer-facing error message, which should be in English. Any user-facing
6075+
# error message should be localized and sent in the google.rpc.Status.details
6076+
# field, or localized by the client.
6077+
# Corresponds to the JSON property `message`
6078+
# @return [String]
6079+
attr_accessor :message
6080+
6081+
def initialize(**args)
6082+
update!(**args)
6083+
end
6084+
6085+
# Update properties of this object
6086+
def update!(**args)
6087+
@code = args[:code] if args.key?(:code)
6088+
@details = args[:details] if args.key?(:details)
6089+
@message = args[:message] if args.key?(:message)
6090+
end
6091+
end
6092+
60216093
# Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL
60226094
# external server initial dump.
60236095
class SyncFlags
@@ -6188,6 +6260,12 @@ class User
61886260
# @return [String]
61896261
attr_accessor :host
61906262

6263+
# Optional. The full email for an IAM user. For normal database users, this will
6264+
# not be filled. Only applicable to MySQL database users.
6265+
# Corresponds to the JSON property `iamEmail`
6266+
# @return [String]
6267+
attr_accessor :iam_email
6268+
61916269
# Indicates if a group is active or inactive for IAM database authentication.
61926270
# Corresponds to the JSON property `iamStatus`
61936271
# @return [String]
@@ -6247,6 +6325,7 @@ def update!(**args)
62476325
@dual_password_type = args[:dual_password_type] if args.key?(:dual_password_type)
62486326
@etag = args[:etag] if args.key?(:etag)
62496327
@host = args[:host] if args.key?(:host)
6328+
@iam_email = args[:iam_email] if args.key?(:iam_email)
62506329
@iam_status = args[:iam_status] if args.key?(:iam_status)
62516330
@instance = args[:instance] if args.key?(:instance)
62526331
@kind = args[:kind] if args.key?(:kind)

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.86.0"
19+
GEM_VERSION = "0.87.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 = "20250915"
25+
REVISION = "20251006"
2626
end
2727
end
2828
end

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
832832
include Google::Apis::Core::JsonObjectSupport
833833
end
834834

835+
class Status
836+
class Representation < Google::Apis::Core::JsonRepresentation; end
837+
838+
include Google::Apis::Core::JsonObjectSupport
839+
end
840+
835841
class SyncFlags
836842
class Representation < Google::Apis::Core::JsonRepresentation; end
837843

@@ -2060,6 +2066,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
20602066
property :partial_result, as: 'partialResult'
20612067
collection :rows, as: 'rows', class: Google::Apis::SqladminV1::Row, decorator: Google::Apis::SqladminV1::Row::Representation
20622068

2069+
property :status, as: 'status', class: Google::Apis::SqladminV1::Status, decorator: Google::Apis::SqladminV1::Status::Representation
2070+
20632071
end
20642072
end
20652073

@@ -2155,6 +2163,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
21552163
property :advanced_machine_features, as: 'advancedMachineFeatures', class: Google::Apis::SqladminV1::AdvancedMachineFeatures, decorator: Google::Apis::SqladminV1::AdvancedMachineFeatures::Representation
21562164

21572165
collection :authorized_gae_applications, as: 'authorizedGaeApplications'
2166+
property :auto_upgrade_enabled, as: 'autoUpgradeEnabled'
21582167
property :availability_type, as: 'availabilityType'
21592168
property :backup_configuration, as: 'backupConfiguration', class: Google::Apis::SqladminV1::BackupConfiguration, decorator: Google::Apis::SqladminV1::BackupConfiguration::Representation
21602169

@@ -2245,6 +2254,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
22452254

22462255
collection :results, as: 'results', class: Google::Apis::SqladminV1::QueryResult, decorator: Google::Apis::SqladminV1::QueryResult::Representation
22472256

2257+
property :status, as: 'status', class: Google::Apis::SqladminV1::Status, decorator: Google::Apis::SqladminV1::Status::Representation
2258+
22482259
end
22492260
end
22502261

@@ -2438,6 +2449,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
24382449
end
24392450
end
24402451

2452+
class Status
2453+
# @private
2454+
class Representation < Google::Apis::Core::JsonRepresentation
2455+
property :code, as: 'code'
2456+
collection :details, as: 'details'
2457+
property :message, as: 'message'
2458+
end
2459+
end
2460+
24412461
class SyncFlags
24422462
# @private
24432463
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2488,6 +2508,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
24882508
property :dual_password_type, as: 'dualPasswordType'
24892509
property :etag, as: 'etag'
24902510
property :host, as: 'host'
2511+
property :iam_email, as: 'iamEmail'
24912512
property :iam_status, as: 'iamStatus'
24922513
property :instance, as: 'instance'
24932514
property :kind, as: 'kind'

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,9 +1184,9 @@ def failover_instance(project, instance, instances_failover_request_object = nil
11841184

11851185
# Retrieves a resource containing information about a Cloud SQL instance.
11861186
# @param [String] project
1187-
# Project ID of the project that contains the instance.
1187+
# Required. Project ID of the project that contains the instance.
11881188
# @param [String] instance
1189-
# Database instance ID. This does not include the project ID.
1189+
# Required. Database instance ID. This does not include the project ID.
11901190
# @param [String] fields
11911191
# Selector specifying which fields to include in a partial response.
11921192
# @param [String] quota_user
@@ -1949,9 +1949,9 @@ def cancel_operation(project, operation, fields: nil, quota_user: nil, options:
19491949

19501950
# Retrieves an instance operation that has been performed on an instance.
19511951
# @param [String] project
1952-
# Project ID of the project that contains the instance.
1952+
# Required. Project ID of the project that contains the instance.
19531953
# @param [String] operation
1954-
# Instance operation ID.
1954+
# Required. Instance operation ID.
19551955
# @param [String] fields
19561956
# Selector specifying which fields to include in a partial response.
19571957
# @param [String] quota_user

0 commit comments

Comments
 (0)