google-apis-sqladmin_v1 0.85.0 → 0.86.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/sqladmin_v1/classes.rb +99 -0
- data/lib/google/apis/sqladmin_v1/gem_version.rb +2 -2
- data/lib/google/apis/sqladmin_v1/representations.rb +49 -0
- data/lib/google/apis/sqladmin_v1/service.rb +37 -1
- data/lib/google/apis/sqladmin_v1.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db84d759454b10e34359ab79fcb5751bcf22e6de05846c38b95fba6403275ef2
|
4
|
+
data.tar.gz: 5f7fece6b9cd0d7ea1ce6b8c259d13e9321913e141c86664ae18bfcd535d16e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4ed02b223d98873990618d69920c0cad4215558148ef58930b1af92dbf2c3af8c8172b97287c630585a8ea5e2abf31f3a23e902d5a1e26493c40c57c2d4a349
|
7
|
+
data.tar.gz: 824817907341dec976d2481cc84fca95f91cb87371f580852e32660757cfcb18832c8adebe42966d145fa6c798299e90c61f9dbb8dacbfc571a6481161f585fd
|
data/CHANGELOG.md
CHANGED
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://
|
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
|
|
@@ -3242,6 +3242,25 @@ module Google
|
|
3242
3242
|
end
|
3243
3243
|
end
|
3244
3244
|
|
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
|
+
|
3245
3264
|
# Database Instance reencrypt request.
|
3246
3265
|
class InstancesReencryptRequest
|
3247
3266
|
include Google::Apis::Core::Hashable
|
@@ -3966,6 +3985,11 @@ module Google
|
|
3966
3985
|
# @return [String]
|
3967
3986
|
attr_accessor :operation_type
|
3968
3987
|
|
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
|
+
|
3969
3993
|
# The URI of this resource.
|
3970
3994
|
# Corresponds to the JSON property `selfLink`
|
3971
3995
|
# @return [String]
|
@@ -4024,6 +4048,7 @@ module Google
|
|
4024
4048
|
@kind = args[:kind] if args.key?(:kind)
|
4025
4049
|
@name = args[:name] if args.key?(:name)
|
4026
4050
|
@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)
|
4027
4052
|
@self_link = args[:self_link] if args.key?(:self_link)
|
4028
4053
|
@start_time = args[:start_time] if args.key?(:start_time)
|
4029
4054
|
@status = args[:status] if args.key?(:status)
|
@@ -4406,6 +4431,68 @@ module Google
|
|
4406
4431
|
end
|
4407
4432
|
end
|
4408
4433
|
|
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
|
+
|
4409
4496
|
# Settings for an automatically-setup Private Service Connect consumer endpoint
|
4410
4497
|
# that is used to connect to a Cloud SQL instance.
|
4411
4498
|
class PscAutoConnectionConfig
|
@@ -4565,6 +4652,16 @@ module Google
|
|
4565
4652
|
# @return [Fixnum]
|
4566
4653
|
attr_accessor :min_node_count
|
4567
4654
|
|
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
|
+
|
4568
4665
|
# Optional. Target metrics for read pool auto scaling.
|
4569
4666
|
# Corresponds to the JSON property `targetMetrics`
|
4570
4667
|
# @return [Array<Google::Apis::SqladminV1::TargetMetric>]
|
@@ -4580,6 +4677,8 @@ module Google
|
|
4580
4677
|
@enabled = args[:enabled] if args.key?(:enabled)
|
4581
4678
|
@max_node_count = args[:max_node_count] if args.key?(:max_node_count)
|
4582
4679
|
@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)
|
4583
4682
|
@target_metrics = args[:target_metrics] if args.key?(:target_metrics)
|
4584
4683
|
end
|
4585
4684
|
end
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.86.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 = "
|
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::SqladminV1::PreCheckMajorVersionUpgradeContext, decorator: Google::Apis::SqladminV1::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::SqladminV1::PreCheckMajorVersionUpgradeContext, decorator: Google::Apis::SqladminV1::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::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
|
+
|
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::SqladminV1::TargetMetric, decorator: Google::Apis::SqladminV1::TargetMetric::Representation
|
2027
2076
|
|
2028
2077
|
end
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# Sqladmin = Google::Apis::SqladminV1 # Alias the module
|
31
31
|
# service = Sqladmin::SQLAdminService.new
|
32
32
|
#
|
33
|
-
# @see https://
|
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
|
|
@@ -1443,6 +1443,42 @@ module Google
|
|
1443
1443
|
execute_or_queue_command(command, &block)
|
1444
1444
|
end
|
1445
1445
|
|
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
|
+
|
1446
1482
|
# Promotes the read replica instance to be an independent Cloud SQL primary
|
1447
1483
|
# instance. Using this operation might cause your instance to restart.
|
1448
1484
|
# @param [String] project
|
@@ -23,7 +23,7 @@ module Google
|
|
23
23
|
#
|
24
24
|
# API for Cloud SQL database instance management
|
25
25
|
#
|
26
|
-
# @see https://
|
26
|
+
# @see https://cloud.google.com/sql/docs
|
27
27
|
module SqladminV1
|
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_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.86.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.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.86.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:
|