google-apis-sqladmin_v1 0.83.0 → 0.85.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a8aa25f35d9797894d3a41aef2b235355cc4d5032affcb74c2f6b4a1d8e12e9
4
- data.tar.gz: 1048086cbf20c54151248ee27be0114a1afd7deaadac6cdcbefbc335f55dd400
3
+ metadata.gz: 5b8020252790c6361212c8e589488a4af0882a63f87e0ffdfd89766b5ae20064
4
+ data.tar.gz: ac83e6b46c9c61424584526501bcd26104bf823d248949330ba09d8ac233ff52
5
5
  SHA512:
6
- metadata.gz: 8f051679f2a88d155cbf5db982ba6d4f834eec655fdd17306d6f500a5925497e355950646ad545210b6393dbccfc0c25486fc668accab0164ef2de03776f18f4
7
- data.tar.gz: 7c9242b551743af91cdd7fa95785c530c9022d3600ba9da69125047e35e1df130f9ba8bf064b9a8fa2b4482d6957dbc61bd9572a9dc585497ab0a9643d12e522
6
+ metadata.gz: 1b0f347a491bdd588e4240eff3cca9fa3a83dd2095c853465cd0afb6f26f43f19728292f0f76edfb7e177eea1acbd24a3f7d7121e3d18095a067ab416b5113cb
7
+ data.tar.gz: 8dbcc0bee73506d40b58c3876a14a7ae858a8bddb84a38c52df67e61ef48cc9aa3adfa40c4547246782c69b45406f05480264fc88576503f984da4fa73d6f942
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-sqladmin_v1
2
2
 
3
+ ### v0.85.0 (2025-09-21)
4
+
5
+ * Regenerated from discovery document revision 20250908
6
+
7
+ ### v0.84.0 (2025-08-31)
8
+
9
+ * Regenerated from discovery document revision 20250823
10
+
3
11
  ### v0.83.0 (2025-08-17)
4
12
 
5
13
  * Regenerated from discovery document revision 20250807
@@ -181,7 +181,7 @@ module Google
181
181
  end
182
182
  end
183
183
 
184
- # A backup resource. Next ID: 30
184
+ # A backup resource.
185
185
  class Backup
186
186
  include Google::Apis::Core::Hashable
187
187
 
@@ -1882,6 +1882,12 @@ module Google
1882
1882
  # @return [String]
1883
1883
  attr_accessor :database
1884
1884
 
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.
1887
+ # Corresponds to the JSON property `partialResultMode`
1888
+ # @return [String]
1889
+ attr_accessor :partial_result_mode
1890
+
1885
1891
  # Optional. The maximum number of rows returned per SQL statement.
1886
1892
  # Corresponds to the JSON property `rowLimit`
1887
1893
  # @return [Fixnum]
@@ -1893,6 +1899,13 @@ module Google
1893
1899
  # @return [String]
1894
1900
  attr_accessor :sql_statement
1895
1901
 
1902
+ # Optional. The name of an existing database user to connect to the database.
1903
+ # When `auto_iam_authn` is set to true, this field is ignored and the API caller'
1904
+ # s IAM user is used.
1905
+ # Corresponds to the JSON property `user`
1906
+ # @return [String]
1907
+ attr_accessor :user
1908
+
1896
1909
  def initialize(**args)
1897
1910
  update!(**args)
1898
1911
  end
@@ -1901,8 +1914,10 @@ module Google
1901
1914
  def update!(**args)
1902
1915
  @auto_iam_authn = args[:auto_iam_authn] if args.key?(:auto_iam_authn)
1903
1916
  @database = args[:database] if args.key?(:database)
1917
+ @partial_result_mode = args[:partial_result_mode] if args.key?(:partial_result_mode)
1904
1918
  @row_limit = args[:row_limit] if args.key?(:row_limit)
1905
1919
  @sql_statement = args[:sql_statement] if args.key?(:sql_statement)
1920
+ @user = args[:user] if args.key?(:user)
1906
1921
  end
1907
1922
  end
1908
1923
 
@@ -3650,6 +3665,34 @@ module Google
3650
3665
  end
3651
3666
  end
3652
3667
 
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
+
3653
3696
  # The additional metadata information regarding the execution of the SQL
3654
3697
  # statements.
3655
3698
  class Metadata
@@ -4495,6 +4538,52 @@ module Google
4495
4538
  end
4496
4539
  end
4497
4540
 
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
+
4498
4587
  # Read-replica configuration for connecting to the primary instance.
4499
4588
  class ReplicaConfiguration
4500
4589
  include Google::Apis::Core::Hashable
@@ -4933,6 +5022,11 @@ module Google
4933
5022
  # @return [String]
4934
5023
  attr_accessor :pricing_plan
4935
5024
 
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
+
4936
5030
  # Optional. Configuration value for recreation of replica after certain
4937
5031
  # replication lag
4938
5032
  # Corresponds to the JSON property `replicationLagMaxSeconds`
@@ -5034,6 +5128,7 @@ module Google
5034
5128
  @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
5035
5129
  @password_validation_policy = args[:password_validation_policy] if args.key?(:password_validation_policy)
5036
5130
  @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)
5037
5132
  @replication_lag_max_seconds = args[:replication_lag_max_seconds] if args.key?(:replication_lag_max_seconds)
5038
5133
  @replication_type = args[:replication_type] if args.key?(:replication_type)
5039
5134
  @retain_backups_on_delete = args[:retain_backups_on_delete] if args.key?(:retain_backups_on_delete)
@@ -5152,6 +5247,15 @@ module Google
5152
5247
  class SqlInstancesExecuteSqlResponse
5153
5248
  include Google::Apis::Core::Hashable
5154
5249
 
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
+
5155
5259
  # The additional metadata information regarding the execution of the SQL
5156
5260
  # statements.
5157
5261
  # Corresponds to the JSON property `metadata`
@@ -5169,6 +5273,7 @@ module Google
5169
5273
 
5170
5274
  # Update properties of this object
5171
5275
  def update!(**args)
5276
+ @messages = args[:messages] if args.key?(:messages)
5172
5277
  @metadata = args[:metadata] if args.key?(:metadata)
5173
5278
  @results = args[:results] if args.key?(:results)
5174
5279
  end
@@ -5209,6 +5314,11 @@ module Google
5209
5314
  class SqlInstancesGetLatestRecoveryTimeResponse
5210
5315
  include Google::Apis::Core::Hashable
5211
5316
 
5317
+ # Timestamp, identifies the earliest recovery time of the source instance.
5318
+ # Corresponds to the JSON property `earliestRecoveryTime`
5319
+ # @return [String]
5320
+ attr_accessor :earliest_recovery_time
5321
+
5212
5322
  # This is always `sql#getLatestRecoveryTime`.
5213
5323
  # Corresponds to the JSON property `kind`
5214
5324
  # @return [String]
@@ -5225,6 +5335,7 @@ module Google
5225
5335
 
5226
5336
  # Update properties of this object
5227
5337
  def update!(**args)
5338
+ @earliest_recovery_time = args[:earliest_recovery_time] if args.key?(:earliest_recovery_time)
5228
5339
  @kind = args[:kind] if args.key?(:kind)
5229
5340
  @latest_recovery_time = args[:latest_recovery_time] if args.key?(:latest_recovery_time)
5230
5341
  end
@@ -5835,6 +5946,31 @@ module Google
5835
5946
  end
5836
5947
  end
5837
5948
 
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
+
5838
5974
  # A Google Cloud SQL service tier resource.
5839
5975
  class Tier
5840
5976
  include Google::Apis::Core::Hashable
@@ -5953,6 +6089,11 @@ module Google
5953
6089
  # @return [String]
5954
6090
  attr_accessor :host
5955
6091
 
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
+
5956
6097
  # The name of the Cloud SQL instance. This does not include the project ID. Can
5957
6098
  # be omitted for `update` because it is already specified on the URL.
5958
6099
  # Corresponds to the JSON property `instance`
@@ -6007,6 +6148,7 @@ module Google
6007
6148
  @dual_password_type = args[:dual_password_type] if args.key?(:dual_password_type)
6008
6149
  @etag = args[:etag] if args.key?(:etag)
6009
6150
  @host = args[:host] if args.key?(:host)
6151
+ @iam_status = args[:iam_status] if args.key?(:iam_status)
6010
6152
  @instance = args[:instance] if args.key?(:instance)
6011
6153
  @kind = args[:kind] if args.key?(:kind)
6012
6154
  @name = args[:name] if args.key?(:name)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SqladminV1
18
18
  # Version of the google-apis-sqladmin_v1 gem
19
- GEM_VERSION = "0.83.0"
19
+ GEM_VERSION = "0.85.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250807"
25
+ REVISION = "20250908"
26
26
  end
27
27
  end
28
28
  end
@@ -502,6 +502,12 @@ module Google
502
502
  include Google::Apis::Core::JsonObjectSupport
503
503
  end
504
504
 
505
+ class Message
506
+ class Representation < Google::Apis::Core::JsonRepresentation; end
507
+
508
+ include Google::Apis::Core::JsonObjectSupport
509
+ end
510
+
505
511
  class Metadata
506
512
  class Representation < Google::Apis::Core::JsonRepresentation; end
507
513
 
@@ -604,6 +610,12 @@ module Google
604
610
  include Google::Apis::Core::JsonObjectSupport
605
611
  end
606
612
 
613
+ class ReadPoolAutoScaleConfig
614
+ class Representation < Google::Apis::Core::JsonRepresentation; end
615
+
616
+ include Google::Apis::Core::JsonObjectSupport
617
+ end
618
+
607
619
  class ReplicaConfiguration
608
620
  class Representation < Google::Apis::Core::JsonRepresentation; end
609
621
 
@@ -808,6 +820,12 @@ module Google
808
820
  include Google::Apis::Core::JsonObjectSupport
809
821
  end
810
822
 
823
+ class TargetMetric
824
+ class Representation < Google::Apis::Core::JsonRepresentation; end
825
+
826
+ include Google::Apis::Core::JsonObjectSupport
827
+ end
828
+
811
829
  class Tier
812
830
  class Representation < Google::Apis::Core::JsonRepresentation; end
813
831
 
@@ -1302,8 +1320,10 @@ module Google
1302
1320
  class Representation < Google::Apis::Core::JsonRepresentation
1303
1321
  property :auto_iam_authn, as: 'autoIamAuthn'
1304
1322
  property :database, as: 'database'
1323
+ property :partial_result_mode, as: 'partialResultMode'
1305
1324
  property :row_limit, :numeric_string => true, as: 'rowLimit'
1306
1325
  property :sql_statement, as: 'sqlStatement'
1326
+ property :user, as: 'user'
1307
1327
  end
1308
1328
  end
1309
1329
 
@@ -1775,6 +1795,14 @@ module Google
1775
1795
  end
1776
1796
  end
1777
1797
 
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
+
1778
1806
  class Metadata
1779
1807
  # @private
1780
1808
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1988,6 +2016,18 @@ module Google
1988
2016
  end
1989
2017
  end
1990
2018
 
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
+
1991
2031
  class ReplicaConfiguration
1992
2032
  # @private
1993
2033
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2103,6 +2143,8 @@ module Google
2103
2143
  property :password_validation_policy, as: 'passwordValidationPolicy', class: Google::Apis::SqladminV1::PasswordValidationPolicy, decorator: Google::Apis::SqladminV1::PasswordValidationPolicy::Representation
2104
2144
 
2105
2145
  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
+
2106
2148
  property :replication_lag_max_seconds, as: 'replicationLagMaxSeconds'
2107
2149
  property :replication_type, as: 'replicationType'
2108
2150
  property :retain_backups_on_delete, as: 'retainBackupsOnDelete'
@@ -2148,6 +2190,8 @@ module Google
2148
2190
  class SqlInstancesExecuteSqlResponse
2149
2191
  # @private
2150
2192
  class Representation < Google::Apis::Core::JsonRepresentation
2193
+ collection :messages, as: 'messages', class: Google::Apis::SqladminV1::Message, decorator: Google::Apis::SqladminV1::Message::Representation
2194
+
2151
2195
  property :metadata, as: 'metadata', class: Google::Apis::SqladminV1::Metadata, decorator: Google::Apis::SqladminV1::Metadata::Representation
2152
2196
 
2153
2197
  collection :results, as: 'results', class: Google::Apis::SqladminV1::QueryResult, decorator: Google::Apis::SqladminV1::QueryResult::Representation
@@ -2167,6 +2211,7 @@ module Google
2167
2211
  class SqlInstancesGetLatestRecoveryTimeResponse
2168
2212
  # @private
2169
2213
  class Representation < Google::Apis::Core::JsonRepresentation
2214
+ property :earliest_recovery_time, as: 'earliestRecoveryTime'
2170
2215
  property :kind, as: 'kind'
2171
2216
  property :latest_recovery_time, as: 'latestRecoveryTime'
2172
2217
  end
@@ -2352,6 +2397,14 @@ module Google
2352
2397
  end
2353
2398
  end
2354
2399
 
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
+
2355
2408
  class Tier
2356
2409
  # @private
2357
2410
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2386,6 +2439,7 @@ module Google
2386
2439
  property :dual_password_type, as: 'dualPasswordType'
2387
2440
  property :etag, as: 'etag'
2388
2441
  property :host, as: 'host'
2442
+ property :iam_status, as: 'iamStatus'
2389
2443
  property :instance, as: 'instance'
2390
2444
  property :kind, as: 'kind'
2391
2445
  property :name, as: 'name'
@@ -1561,6 +1561,8 @@ module Google
1561
1561
  # Project ID of the project that contains the instance.
1562
1562
  # @param [String] instance
1563
1563
  # Cloud SQL instance ID. This does not include the project ID.
1564
+ # @param [String] mode
1565
+ # Optional. Reset SSL mode to use.
1564
1566
  # @param [String] fields
1565
1567
  # Selector specifying which fields to include in a partial response.
1566
1568
  # @param [String] quota_user
@@ -1578,12 +1580,13 @@ module Google
1578
1580
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1579
1581
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1580
1582
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1581
- def reset_instance_ssl_config(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1583
+ def reset_instance_ssl_config(project, instance, mode: nil, fields: nil, quota_user: nil, options: nil, &block)
1582
1584
  command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/resetSslConfig', options)
1583
1585
  command.response_representation = Google::Apis::SqladminV1::Operation::Representation
1584
1586
  command.response_class = Google::Apis::SqladminV1::Operation
1585
1587
  command.params['project'] = project unless project.nil?
1586
1588
  command.params['instance'] = instance unless instance.nil?
1589
+ command.query['mode'] = mode unless mode.nil?
1587
1590
  command.query['fields'] = fields unless fields.nil?
1588
1591
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1589
1592
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-sqladmin_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.83.0
4
+ version: 0.85.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.83.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.85.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1
62
62
  rdoc_options: []
63
63
  require_paths: