google-apis-sqladmin_v1beta4 0.90.0 → 0.91.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: c0d125abe1d27cd8bd99dac768632757fc1864126fa9a7c49a01fd2e88e3873c
4
- data.tar.gz: c2483c64d153f7331e57503147f146b9af7328c124042ad992f9b6f114e2728e
3
+ metadata.gz: bede6989540588db529cfe3fbc4df00037794459018d70ab2299182cd99d2a05
4
+ data.tar.gz: 5ed6d1bc9ea47d14f64d28d509337bc1b978c38976382191cb981774036ca959
5
5
  SHA512:
6
- metadata.gz: 1913cebc5e4e89fe1fddc574e259b38a965ce87d60fcce718f4e058561b30c93c23430646dddb00162c611a51afde6cb5ec6a78a58e6a11cdaf123068db3c39f
7
- data.tar.gz: 66f53cf367293d389d567dee5522b1bcf1dc8f5eeab9963b89a8dcdc2f8a6b48e4e6fc20154e062d259c5bf812025a106746bc8f872e44ae1c53eda02001c553
6
+ metadata.gz: 8463cf92f05c8ccbc0769377e6daeb7d25a5ed407740b120cf21dc01517c470298f9f9f62915484d4b57de65898ecc3f9c8e4b69dadee48da6121e7ea36f6af0
7
+ data.tar.gz: aad5076125a02cc947a04596187714237b1b13cccf1698ba3d026503c39e2ff59df35128996385a8a94e6840e2629468bb40df2741620dbf7f6ddb7dc04ef982
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-sqladmin_v1beta4
2
2
 
3
+ ### v0.91.0 (2025-09-28)
4
+
5
+ * Regenerated from discovery document revision 20250915
6
+
3
7
  ### v0.90.0 (2025-09-21)
4
8
 
5
9
  * Regenerated from discovery document revision 20250908
data/OVERVIEW.md CHANGED
@@ -79,7 +79,7 @@ Gem names for modern clients are often of the form `google-cloud-<service_name>`
79
79
 
80
80
  **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.
81
81
 
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.
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
@@ -3243,6 +3243,25 @@ module Google
3243
3243
  end
3244
3244
  end
3245
3245
 
3246
+ # Request for Pre-checks for MVU
3247
+ class InstancesPreCheckMajorVersionUpgradeRequest
3248
+ include Google::Apis::Core::Hashable
3249
+
3250
+ # Pre-check major version upgrade context.
3251
+ # Corresponds to the JSON property `preCheckMajorVersionUpgradeContext`
3252
+ # @return [Google::Apis::SqladminV1beta4::PreCheckMajorVersionUpgradeContext]
3253
+ attr_accessor :pre_check_major_version_upgrade_context
3254
+
3255
+ def initialize(**args)
3256
+ update!(**args)
3257
+ end
3258
+
3259
+ # Update properties of this object
3260
+ def update!(**args)
3261
+ @pre_check_major_version_upgrade_context = args[:pre_check_major_version_upgrade_context] if args.key?(:pre_check_major_version_upgrade_context)
3262
+ end
3263
+ end
3264
+
3246
3265
  # Database Instance reencrypt request.
3247
3266
  class InstancesReencryptRequest
3248
3267
  include Google::Apis::Core::Hashable
@@ -3967,6 +3986,11 @@ module Google
3967
3986
  # @return [String]
3968
3987
  attr_accessor :operation_type
3969
3988
 
3989
+ # Pre-check major version upgrade context.
3990
+ # Corresponds to the JSON property `preCheckMajorVersionUpgradeContext`
3991
+ # @return [Google::Apis::SqladminV1beta4::PreCheckMajorVersionUpgradeContext]
3992
+ attr_accessor :pre_check_major_version_upgrade_context
3993
+
3970
3994
  # The URI of this resource.
3971
3995
  # Corresponds to the JSON property `selfLink`
3972
3996
  # @return [String]
@@ -4025,6 +4049,7 @@ module Google
4025
4049
  @kind = args[:kind] if args.key?(:kind)
4026
4050
  @name = args[:name] if args.key?(:name)
4027
4051
  @operation_type = args[:operation_type] if args.key?(:operation_type)
4052
+ @pre_check_major_version_upgrade_context = args[:pre_check_major_version_upgrade_context] if args.key?(:pre_check_major_version_upgrade_context)
4028
4053
  @self_link = args[:self_link] if args.key?(:self_link)
4029
4054
  @start_time = args[:start_time] if args.key?(:start_time)
4030
4055
  @status = args[:status] if args.key?(:status)
@@ -4407,6 +4432,68 @@ module Google
4407
4432
  end
4408
4433
  end
4409
4434
 
4435
+ # Pre-check major version upgrade context.
4436
+ class PreCheckMajorVersionUpgradeContext
4437
+ include Google::Apis::Core::Hashable
4438
+
4439
+ # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
4440
+ # Corresponds to the JSON property `kind`
4441
+ # @return [String]
4442
+ attr_accessor :kind
4443
+
4444
+ # Output only. The responses from the precheck operation.
4445
+ # Corresponds to the JSON property `preCheckResponse`
4446
+ # @return [Array<Google::Apis::SqladminV1beta4::PreCheckResponse>]
4447
+ attr_accessor :pre_check_response
4448
+
4449
+ # Required. The target database version to upgrade to.
4450
+ # Corresponds to the JSON property `targetDatabaseVersion`
4451
+ # @return [String]
4452
+ attr_accessor :target_database_version
4453
+
4454
+ def initialize(**args)
4455
+ update!(**args)
4456
+ end
4457
+
4458
+ # Update properties of this object
4459
+ def update!(**args)
4460
+ @kind = args[:kind] if args.key?(:kind)
4461
+ @pre_check_response = args[:pre_check_response] if args.key?(:pre_check_response)
4462
+ @target_database_version = args[:target_database_version] if args.key?(:target_database_version)
4463
+ end
4464
+ end
4465
+
4466
+ # Structured PreCheckResponse containing message, type, and required actions.
4467
+ class PreCheckResponse
4468
+ include Google::Apis::Core::Hashable
4469
+
4470
+ # The actions that the user needs to take. Use repeated for multiple actions.
4471
+ # Corresponds to the JSON property `actionsRequired`
4472
+ # @return [Array<String>]
4473
+ attr_accessor :actions_required
4474
+
4475
+ # The message to be displayed to the user.
4476
+ # Corresponds to the JSON property `message`
4477
+ # @return [String]
4478
+ attr_accessor :message
4479
+
4480
+ # The type of message whether it is an info, warning, or error.
4481
+ # Corresponds to the JSON property `messageType`
4482
+ # @return [String]
4483
+ attr_accessor :message_type
4484
+
4485
+ def initialize(**args)
4486
+ update!(**args)
4487
+ end
4488
+
4489
+ # Update properties of this object
4490
+ def update!(**args)
4491
+ @actions_required = args[:actions_required] if args.key?(:actions_required)
4492
+ @message = args[:message] if args.key?(:message)
4493
+ @message_type = args[:message_type] if args.key?(:message_type)
4494
+ end
4495
+ end
4496
+
4410
4497
  # Settings for an automatically-setup Private Service Connect consumer endpoint
4411
4498
  # that is used to connect to a Cloud SQL instance.
4412
4499
  class PscAutoConnectionConfig
@@ -4566,6 +4653,16 @@ module Google
4566
4653
  # @return [Fixnum]
4567
4654
  attr_accessor :min_node_count
4568
4655
 
4656
+ # The cooldown period for scale in operations.
4657
+ # Corresponds to the JSON property `scaleInCooldownSeconds`
4658
+ # @return [Fixnum]
4659
+ attr_accessor :scale_in_cooldown_seconds
4660
+
4661
+ # The cooldown period for scale out operations.
4662
+ # Corresponds to the JSON property `scaleOutCooldownSeconds`
4663
+ # @return [Fixnum]
4664
+ attr_accessor :scale_out_cooldown_seconds
4665
+
4569
4666
  # Optional. Target metrics for read pool auto scaling.
4570
4667
  # Corresponds to the JSON property `targetMetrics`
4571
4668
  # @return [Array<Google::Apis::SqladminV1beta4::TargetMetric>]
@@ -4581,6 +4678,8 @@ module Google
4581
4678
  @enabled = args[:enabled] if args.key?(:enabled)
4582
4679
  @max_node_count = args[:max_node_count] if args.key?(:max_node_count)
4583
4680
  @min_node_count = args[:min_node_count] if args.key?(:min_node_count)
4681
+ @scale_in_cooldown_seconds = args[:scale_in_cooldown_seconds] if args.key?(:scale_in_cooldown_seconds)
4682
+ @scale_out_cooldown_seconds = args[:scale_out_cooldown_seconds] if args.key?(:scale_out_cooldown_seconds)
4584
4683
  @target_metrics = args[:target_metrics] if args.key?(:target_metrics)
4585
4684
  end
4586
4685
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SqladminV1beta4
18
18
  # Version of the google-apis-sqladmin_v1beta4 gem
19
- GEM_VERSION = "0.90.0"
19
+ GEM_VERSION = "0.91.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 = "20250908"
25
+ REVISION = "20250915"
26
26
  end
27
27
  end
28
28
  end
@@ -436,6 +436,12 @@ module Google
436
436
  include Google::Apis::Core::JsonObjectSupport
437
437
  end
438
438
 
439
+ class InstancesPreCheckMajorVersionUpgradeRequest
440
+ class Representation < Google::Apis::Core::JsonRepresentation; end
441
+
442
+ include Google::Apis::Core::JsonObjectSupport
443
+ end
444
+
439
445
  class InstancesReencryptRequest
440
446
  class Representation < Google::Apis::Core::JsonRepresentation; end
441
447
 
@@ -592,6 +598,18 @@ module Google
592
598
  include Google::Apis::Core::JsonObjectSupport
593
599
  end
594
600
 
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
+
595
613
  class PscAutoConnectionConfig
596
614
  class Representation < Google::Apis::Core::JsonRepresentation; end
597
615
 
@@ -1683,6 +1701,14 @@ module Google
1683
1701
  end
1684
1702
  end
1685
1703
 
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::SqladminV1beta4::PreCheckMajorVersionUpgradeContext, decorator: Google::Apis::SqladminV1beta4::PreCheckMajorVersionUpgradeContext::Representation
1708
+
1709
+ end
1710
+ end
1711
+
1686
1712
  class InstancesReencryptRequest
1687
1713
  # @private
1688
1714
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1874,6 +1900,8 @@ module Google
1874
1900
  property :kind, as: 'kind'
1875
1901
  property :name, as: 'name'
1876
1902
  property :operation_type, as: 'operationType'
1903
+ property :pre_check_major_version_upgrade_context, as: 'preCheckMajorVersionUpgradeContext', class: Google::Apis::SqladminV1beta4::PreCheckMajorVersionUpgradeContext, decorator: Google::Apis::SqladminV1beta4::PreCheckMajorVersionUpgradeContext::Representation
1904
+
1877
1905
  property :self_link, as: 'selfLink'
1878
1906
  property :start_time, as: 'startTime'
1879
1907
  property :status, as: 'status'
@@ -1982,6 +2010,25 @@ module Google
1982
2010
  end
1983
2011
  end
1984
2012
 
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::SqladminV1beta4::PreCheckResponse, decorator: Google::Apis::SqladminV1beta4::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
+
1985
2032
  class PscAutoConnectionConfig
1986
2033
  # @private
1987
2034
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2023,6 +2070,8 @@ module Google
2023
2070
  property :enabled, as: 'enabled'
2024
2071
  property :max_node_count, as: 'maxNodeCount'
2025
2072
  property :min_node_count, as: 'minNodeCount'
2073
+ property :scale_in_cooldown_seconds, as: 'scaleInCooldownSeconds'
2074
+ property :scale_out_cooldown_seconds, as: 'scaleOutCooldownSeconds'
2026
2075
  collection :target_metrics, as: 'targetMetrics', class: Google::Apis::SqladminV1beta4::TargetMetric, decorator: Google::Apis::SqladminV1beta4::TargetMetric::Representation
2027
2076
 
2028
2077
  end
@@ -30,7 +30,7 @@ module Google
30
30
  # Sqladmin = Google::Apis::SqladminV1beta4 # Alias the module
31
31
  # service = Sqladmin::SQLAdminService.new
32
32
  #
33
- # @see https://developers.google.com/cloud-sql/
33
+ # @see https://cloud.google.com/sql/docs
34
34
  class SQLAdminService < Google::Apis::Core::BaseService
35
35
  DEFAULT_ENDPOINT_TEMPLATE = "https://sqladmin.$UNIVERSE_DOMAIN$/"
36
36
 
@@ -1442,6 +1442,42 @@ module Google
1442
1442
  execute_or_queue_command(command, &block)
1443
1443
  end
1444
1444
 
1445
+ # Execute MVU Pre-checks
1446
+ # @param [String] project
1447
+ # Required. Project ID of the project that contains the instance.
1448
+ # @param [String] instance
1449
+ # Required. Cloud SQL instance ID. This does not include the project ID.
1450
+ # @param [Google::Apis::SqladminV1beta4::InstancesPreCheckMajorVersionUpgradeRequest] instances_pre_check_major_version_upgrade_request_object
1451
+ # @param [String] fields
1452
+ # Selector specifying which fields to include in a partial response.
1453
+ # @param [String] quota_user
1454
+ # Available to use for quota purposes for server-side applications. Can be any
1455
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1456
+ # @param [Google::Apis::RequestOptions] options
1457
+ # Request-specific options
1458
+ #
1459
+ # @yield [result, err] Result & error if block supplied
1460
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1461
+ # @yieldparam err [StandardError] error object if request failed
1462
+ #
1463
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1464
+ #
1465
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1466
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1467
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1468
+ 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)
1469
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/preCheckMajorVersionUpgrade', options)
1470
+ command.request_representation = Google::Apis::SqladminV1beta4::InstancesPreCheckMajorVersionUpgradeRequest::Representation
1471
+ command.request_object = instances_pre_check_major_version_upgrade_request_object
1472
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1473
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1474
+ command.params['project'] = project unless project.nil?
1475
+ command.params['instance'] = instance unless instance.nil?
1476
+ command.query['fields'] = fields unless fields.nil?
1477
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1478
+ execute_or_queue_command(command, &block)
1479
+ end
1480
+
1445
1481
  # Promotes the read replica instance to be an independent Cloud SQL primary
1446
1482
  # instance. Using this operation might cause your instance to restart.
1447
1483
  # @param [String] project
@@ -1879,6 +1915,7 @@ module Google
1879
1915
  end
1880
1916
 
1881
1917
  # Cancels an instance operation that has been performed on an instance.
1918
+ # Ordinarily, this method name should be `CancelSqlOperation`.
1882
1919
  # @param [String] project
1883
1920
  # Project ID of the project that contains the instance.
1884
1921
  # @param [String] operation
@@ -23,7 +23,7 @@ module Google
23
23
  #
24
24
  # API for Cloud SQL database instance management
25
25
  #
26
- # @see https://developers.google.com/cloud-sql/
26
+ # @see https://cloud.google.com/sql/docs
27
27
  module SqladminV1beta4
28
28
  # Version of the Cloud SQL Admin API this client connects to.
29
29
  # This is NOT the gem version.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-sqladmin_v1beta4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.90.0
4
+ version: 0.91.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_v1beta4/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.90.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.91.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4
62
62
  rdoc_options: []
63
63
  require_paths: