google-apis-sqladmin_v1 0.84.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 +8 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/sqladmin_v1/classes.rb +221 -1
- data/lib/google/apis/sqladmin_v1/gem_version.rb +2 -2
- data/lib/google/apis/sqladmin_v1/representations.rb +100 -0
- data/lib/google/apis/sqladmin_v1/service.rb +41 -2
- 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
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-sqladmin_v1
|
2
2
|
|
3
|
+
### v0.86.0 (2025-09-28)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250915
|
6
|
+
|
7
|
+
### v0.85.0 (2025-09-21)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250908
|
10
|
+
|
3
11
|
### v0.84.0 (2025-08-31)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20250823
|
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
|
|
@@ -181,7 +181,7 @@ module Google
|
|
181
181
|
end
|
182
182
|
end
|
183
183
|
|
184
|
-
# A backup resource.
|
184
|
+
# A backup resource.
|
185
185
|
class Backup
|
186
186
|
include Google::Apis::Core::Hashable
|
187
187
|
|
@@ -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
|
@@ -3665,6 +3684,34 @@ module Google
|
|
3665
3684
|
end
|
3666
3685
|
end
|
3667
3686
|
|
3687
|
+
# Represents a notice or warning message from the database.
|
3688
|
+
class Message
|
3689
|
+
include Google::Apis::Core::Hashable
|
3690
|
+
|
3691
|
+
# The full message string. For PostgreSQL, this is a formatted string that may
|
3692
|
+
# include severity, code, and the notice/warning message. For MySQL, this
|
3693
|
+
# contains the warning message.
|
3694
|
+
# Corresponds to the JSON property `message`
|
3695
|
+
# @return [String]
|
3696
|
+
attr_accessor :message
|
3697
|
+
|
3698
|
+
# The severity of the message (e.g., "NOTICE" for PostgreSQL, "WARNING" for
|
3699
|
+
# MySQL).
|
3700
|
+
# Corresponds to the JSON property `severity`
|
3701
|
+
# @return [String]
|
3702
|
+
attr_accessor :severity
|
3703
|
+
|
3704
|
+
def initialize(**args)
|
3705
|
+
update!(**args)
|
3706
|
+
end
|
3707
|
+
|
3708
|
+
# Update properties of this object
|
3709
|
+
def update!(**args)
|
3710
|
+
@message = args[:message] if args.key?(:message)
|
3711
|
+
@severity = args[:severity] if args.key?(:severity)
|
3712
|
+
end
|
3713
|
+
end
|
3714
|
+
|
3668
3715
|
# The additional metadata information regarding the execution of the SQL
|
3669
3716
|
# statements.
|
3670
3717
|
class Metadata
|
@@ -3938,6 +3985,11 @@ module Google
|
|
3938
3985
|
# @return [String]
|
3939
3986
|
attr_accessor :operation_type
|
3940
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
|
+
|
3941
3993
|
# The URI of this resource.
|
3942
3994
|
# Corresponds to the JSON property `selfLink`
|
3943
3995
|
# @return [String]
|
@@ -3996,6 +4048,7 @@ module Google
|
|
3996
4048
|
@kind = args[:kind] if args.key?(:kind)
|
3997
4049
|
@name = args[:name] if args.key?(:name)
|
3998
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)
|
3999
4052
|
@self_link = args[:self_link] if args.key?(:self_link)
|
4000
4053
|
@start_time = args[:start_time] if args.key?(:start_time)
|
4001
4054
|
@status = args[:status] if args.key?(:status)
|
@@ -4378,6 +4431,68 @@ module Google
|
|
4378
4431
|
end
|
4379
4432
|
end
|
4380
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
|
+
|
4381
4496
|
# Settings for an automatically-setup Private Service Connect consumer endpoint
|
4382
4497
|
# that is used to connect to a Cloud SQL instance.
|
4383
4498
|
class PscAutoConnectionConfig
|
@@ -4510,6 +4625,64 @@ module Google
|
|
4510
4625
|
end
|
4511
4626
|
end
|
4512
4627
|
|
4628
|
+
# The read pool auto-scale configuration.
|
4629
|
+
class ReadPoolAutoScaleConfig
|
4630
|
+
include Google::Apis::Core::Hashable
|
4631
|
+
|
4632
|
+
# Indicates whether read pool auto scaling supports scale in operations (
|
4633
|
+
# removing nodes).
|
4634
|
+
# Corresponds to the JSON property `disableScaleIn`
|
4635
|
+
# @return [Boolean]
|
4636
|
+
attr_accessor :disable_scale_in
|
4637
|
+
alias_method :disable_scale_in?, :disable_scale_in
|
4638
|
+
|
4639
|
+
# Indicates whether read pool auto scaling is enabled.
|
4640
|
+
# Corresponds to the JSON property `enabled`
|
4641
|
+
# @return [Boolean]
|
4642
|
+
attr_accessor :enabled
|
4643
|
+
alias_method :enabled?, :enabled
|
4644
|
+
|
4645
|
+
# Maximum number of read pool nodes to be maintained.
|
4646
|
+
# Corresponds to the JSON property `maxNodeCount`
|
4647
|
+
# @return [Fixnum]
|
4648
|
+
attr_accessor :max_node_count
|
4649
|
+
|
4650
|
+
# Minimum number of read pool nodes to be maintained.
|
4651
|
+
# Corresponds to the JSON property `minNodeCount`
|
4652
|
+
# @return [Fixnum]
|
4653
|
+
attr_accessor :min_node_count
|
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
|
+
|
4665
|
+
# Optional. Target metrics for read pool auto scaling.
|
4666
|
+
# Corresponds to the JSON property `targetMetrics`
|
4667
|
+
# @return [Array<Google::Apis::SqladminV1::TargetMetric>]
|
4668
|
+
attr_accessor :target_metrics
|
4669
|
+
|
4670
|
+
def initialize(**args)
|
4671
|
+
update!(**args)
|
4672
|
+
end
|
4673
|
+
|
4674
|
+
# Update properties of this object
|
4675
|
+
def update!(**args)
|
4676
|
+
@disable_scale_in = args[:disable_scale_in] if args.key?(:disable_scale_in)
|
4677
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
4678
|
+
@max_node_count = args[:max_node_count] if args.key?(:max_node_count)
|
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)
|
4682
|
+
@target_metrics = args[:target_metrics] if args.key?(:target_metrics)
|
4683
|
+
end
|
4684
|
+
end
|
4685
|
+
|
4513
4686
|
# Read-replica configuration for connecting to the primary instance.
|
4514
4687
|
class ReplicaConfiguration
|
4515
4688
|
include Google::Apis::Core::Hashable
|
@@ -4948,6 +5121,11 @@ module Google
|
|
4948
5121
|
# @return [String]
|
4949
5122
|
attr_accessor :pricing_plan
|
4950
5123
|
|
5124
|
+
# The read pool auto-scale configuration.
|
5125
|
+
# Corresponds to the JSON property `readPoolAutoScaleConfig`
|
5126
|
+
# @return [Google::Apis::SqladminV1::ReadPoolAutoScaleConfig]
|
5127
|
+
attr_accessor :read_pool_auto_scale_config
|
5128
|
+
|
4951
5129
|
# Optional. Configuration value for recreation of replica after certain
|
4952
5130
|
# replication lag
|
4953
5131
|
# Corresponds to the JSON property `replicationLagMaxSeconds`
|
@@ -5049,6 +5227,7 @@ module Google
|
|
5049
5227
|
@maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
|
5050
5228
|
@password_validation_policy = args[:password_validation_policy] if args.key?(:password_validation_policy)
|
5051
5229
|
@pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
|
5230
|
+
@read_pool_auto_scale_config = args[:read_pool_auto_scale_config] if args.key?(:read_pool_auto_scale_config)
|
5052
5231
|
@replication_lag_max_seconds = args[:replication_lag_max_seconds] if args.key?(:replication_lag_max_seconds)
|
5053
5232
|
@replication_type = args[:replication_type] if args.key?(:replication_type)
|
5054
5233
|
@retain_backups_on_delete = args[:retain_backups_on_delete] if args.key?(:retain_backups_on_delete)
|
@@ -5167,6 +5346,15 @@ module Google
|
|
5167
5346
|
class SqlInstancesExecuteSqlResponse
|
5168
5347
|
include Google::Apis::Core::Hashable
|
5169
5348
|
|
5349
|
+
# A list of notices and warnings generated during query execution. For
|
5350
|
+
# PostgreSQL, this includes all notices and warnings. For MySQL, this includes
|
5351
|
+
# warnings generated by the last executed statement. To retrieve all warnings
|
5352
|
+
# for a multi-statement query, `SHOW WARNINGS` must be executed after each
|
5353
|
+
# statement.
|
5354
|
+
# Corresponds to the JSON property `messages`
|
5355
|
+
# @return [Array<Google::Apis::SqladminV1::Message>]
|
5356
|
+
attr_accessor :messages
|
5357
|
+
|
5170
5358
|
# The additional metadata information regarding the execution of the SQL
|
5171
5359
|
# statements.
|
5172
5360
|
# Corresponds to the JSON property `metadata`
|
@@ -5184,6 +5372,7 @@ module Google
|
|
5184
5372
|
|
5185
5373
|
# Update properties of this object
|
5186
5374
|
def update!(**args)
|
5375
|
+
@messages = args[:messages] if args.key?(:messages)
|
5187
5376
|
@metadata = args[:metadata] if args.key?(:metadata)
|
5188
5377
|
@results = args[:results] if args.key?(:results)
|
5189
5378
|
end
|
@@ -5856,6 +6045,31 @@ module Google
|
|
5856
6045
|
end
|
5857
6046
|
end
|
5858
6047
|
|
6048
|
+
# Target metric for read pool auto scaling.
|
6049
|
+
class TargetMetric
|
6050
|
+
include Google::Apis::Core::Hashable
|
6051
|
+
|
6052
|
+
# The metric name to be used for auto scaling.
|
6053
|
+
# Corresponds to the JSON property `metric`
|
6054
|
+
# @return [String]
|
6055
|
+
attr_accessor :metric
|
6056
|
+
|
6057
|
+
# The target value for the metric.
|
6058
|
+
# Corresponds to the JSON property `targetValue`
|
6059
|
+
# @return [Float]
|
6060
|
+
attr_accessor :target_value
|
6061
|
+
|
6062
|
+
def initialize(**args)
|
6063
|
+
update!(**args)
|
6064
|
+
end
|
6065
|
+
|
6066
|
+
# Update properties of this object
|
6067
|
+
def update!(**args)
|
6068
|
+
@metric = args[:metric] if args.key?(:metric)
|
6069
|
+
@target_value = args[:target_value] if args.key?(:target_value)
|
6070
|
+
end
|
6071
|
+
end
|
6072
|
+
|
5859
6073
|
# A Google Cloud SQL service tier resource.
|
5860
6074
|
class Tier
|
5861
6075
|
include Google::Apis::Core::Hashable
|
@@ -5974,6 +6188,11 @@ module Google
|
|
5974
6188
|
# @return [String]
|
5975
6189
|
attr_accessor :host
|
5976
6190
|
|
6191
|
+
# Indicates if a group is active or inactive for IAM database authentication.
|
6192
|
+
# Corresponds to the JSON property `iamStatus`
|
6193
|
+
# @return [String]
|
6194
|
+
attr_accessor :iam_status
|
6195
|
+
|
5977
6196
|
# The name of the Cloud SQL instance. This does not include the project ID. Can
|
5978
6197
|
# be omitted for `update` because it is already specified on the URL.
|
5979
6198
|
# Corresponds to the JSON property `instance`
|
@@ -6028,6 +6247,7 @@ module Google
|
|
6028
6247
|
@dual_password_type = args[:dual_password_type] if args.key?(:dual_password_type)
|
6029
6248
|
@etag = args[:etag] if args.key?(:etag)
|
6030
6249
|
@host = args[:host] if args.key?(:host)
|
6250
|
+
@iam_status = args[:iam_status] if args.key?(:iam_status)
|
6031
6251
|
@instance = args[:instance] if args.key?(:instance)
|
6032
6252
|
@kind = args[:kind] if args.key?(:kind)
|
6033
6253
|
@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.
|
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
|
|
@@ -502,6 +508,12 @@ module Google
|
|
502
508
|
include Google::Apis::Core::JsonObjectSupport
|
503
509
|
end
|
504
510
|
|
511
|
+
class Message
|
512
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
513
|
+
|
514
|
+
include Google::Apis::Core::JsonObjectSupport
|
515
|
+
end
|
516
|
+
|
505
517
|
class Metadata
|
506
518
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
507
519
|
|
@@ -586,6 +598,18 @@ module Google
|
|
586
598
|
include Google::Apis::Core::JsonObjectSupport
|
587
599
|
end
|
588
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
|
+
|
589
613
|
class PscAutoConnectionConfig
|
590
614
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
591
615
|
|
@@ -604,6 +628,12 @@ module Google
|
|
604
628
|
include Google::Apis::Core::JsonObjectSupport
|
605
629
|
end
|
606
630
|
|
631
|
+
class ReadPoolAutoScaleConfig
|
632
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
633
|
+
|
634
|
+
include Google::Apis::Core::JsonObjectSupport
|
635
|
+
end
|
636
|
+
|
607
637
|
class ReplicaConfiguration
|
608
638
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
609
639
|
|
@@ -808,6 +838,12 @@ module Google
|
|
808
838
|
include Google::Apis::Core::JsonObjectSupport
|
809
839
|
end
|
810
840
|
|
841
|
+
class TargetMetric
|
842
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
843
|
+
|
844
|
+
include Google::Apis::Core::JsonObjectSupport
|
845
|
+
end
|
846
|
+
|
811
847
|
class Tier
|
812
848
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
813
849
|
|
@@ -1665,6 +1701,14 @@ module Google
|
|
1665
1701
|
end
|
1666
1702
|
end
|
1667
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
|
+
|
1668
1712
|
class InstancesReencryptRequest
|
1669
1713
|
# @private
|
1670
1714
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1777,6 +1821,14 @@ module Google
|
|
1777
1821
|
end
|
1778
1822
|
end
|
1779
1823
|
|
1824
|
+
class Message
|
1825
|
+
# @private
|
1826
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1827
|
+
property :message, as: 'message'
|
1828
|
+
property :severity, as: 'severity'
|
1829
|
+
end
|
1830
|
+
end
|
1831
|
+
|
1780
1832
|
class Metadata
|
1781
1833
|
# @private
|
1782
1834
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1848,6 +1900,8 @@ module Google
|
|
1848
1900
|
property :kind, as: 'kind'
|
1849
1901
|
property :name, as: 'name'
|
1850
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
|
+
|
1851
1905
|
property :self_link, as: 'selfLink'
|
1852
1906
|
property :start_time, as: 'startTime'
|
1853
1907
|
property :status, as: 'status'
|
@@ -1956,6 +2010,25 @@ module Google
|
|
1956
2010
|
end
|
1957
2011
|
end
|
1958
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
|
+
|
1959
2032
|
class PscAutoConnectionConfig
|
1960
2033
|
# @private
|
1961
2034
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1990,6 +2063,20 @@ module Google
|
|
1990
2063
|
end
|
1991
2064
|
end
|
1992
2065
|
|
2066
|
+
class ReadPoolAutoScaleConfig
|
2067
|
+
# @private
|
2068
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2069
|
+
property :disable_scale_in, as: 'disableScaleIn'
|
2070
|
+
property :enabled, as: 'enabled'
|
2071
|
+
property :max_node_count, as: 'maxNodeCount'
|
2072
|
+
property :min_node_count, as: 'minNodeCount'
|
2073
|
+
property :scale_in_cooldown_seconds, as: 'scaleInCooldownSeconds'
|
2074
|
+
property :scale_out_cooldown_seconds, as: 'scaleOutCooldownSeconds'
|
2075
|
+
collection :target_metrics, as: 'targetMetrics', class: Google::Apis::SqladminV1::TargetMetric, decorator: Google::Apis::SqladminV1::TargetMetric::Representation
|
2076
|
+
|
2077
|
+
end
|
2078
|
+
end
|
2079
|
+
|
1993
2080
|
class ReplicaConfiguration
|
1994
2081
|
# @private
|
1995
2082
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2105,6 +2192,8 @@ module Google
|
|
2105
2192
|
property :password_validation_policy, as: 'passwordValidationPolicy', class: Google::Apis::SqladminV1::PasswordValidationPolicy, decorator: Google::Apis::SqladminV1::PasswordValidationPolicy::Representation
|
2106
2193
|
|
2107
2194
|
property :pricing_plan, as: 'pricingPlan'
|
2195
|
+
property :read_pool_auto_scale_config, as: 'readPoolAutoScaleConfig', class: Google::Apis::SqladminV1::ReadPoolAutoScaleConfig, decorator: Google::Apis::SqladminV1::ReadPoolAutoScaleConfig::Representation
|
2196
|
+
|
2108
2197
|
property :replication_lag_max_seconds, as: 'replicationLagMaxSeconds'
|
2109
2198
|
property :replication_type, as: 'replicationType'
|
2110
2199
|
property :retain_backups_on_delete, as: 'retainBackupsOnDelete'
|
@@ -2150,6 +2239,8 @@ module Google
|
|
2150
2239
|
class SqlInstancesExecuteSqlResponse
|
2151
2240
|
# @private
|
2152
2241
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2242
|
+
collection :messages, as: 'messages', class: Google::Apis::SqladminV1::Message, decorator: Google::Apis::SqladminV1::Message::Representation
|
2243
|
+
|
2153
2244
|
property :metadata, as: 'metadata', class: Google::Apis::SqladminV1::Metadata, decorator: Google::Apis::SqladminV1::Metadata::Representation
|
2154
2245
|
|
2155
2246
|
collection :results, as: 'results', class: Google::Apis::SqladminV1::QueryResult, decorator: Google::Apis::SqladminV1::QueryResult::Representation
|
@@ -2355,6 +2446,14 @@ module Google
|
|
2355
2446
|
end
|
2356
2447
|
end
|
2357
2448
|
|
2449
|
+
class TargetMetric
|
2450
|
+
# @private
|
2451
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2452
|
+
property :metric, as: 'metric'
|
2453
|
+
property :target_value, as: 'targetValue'
|
2454
|
+
end
|
2455
|
+
end
|
2456
|
+
|
2358
2457
|
class Tier
|
2359
2458
|
# @private
|
2360
2459
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2389,6 +2488,7 @@ module Google
|
|
2389
2488
|
property :dual_password_type, as: 'dualPasswordType'
|
2390
2489
|
property :etag, as: 'etag'
|
2391
2490
|
property :host, as: 'host'
|
2491
|
+
property :iam_status, as: 'iamStatus'
|
2392
2492
|
property :instance, as: 'instance'
|
2393
2493
|
property :kind, as: 'kind'
|
2394
2494
|
property :name, as: 'name'
|
@@ -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
|
@@ -1561,6 +1597,8 @@ module Google
|
|
1561
1597
|
# Project ID of the project that contains the instance.
|
1562
1598
|
# @param [String] instance
|
1563
1599
|
# Cloud SQL instance ID. This does not include the project ID.
|
1600
|
+
# @param [String] mode
|
1601
|
+
# Optional. Reset SSL mode to use.
|
1564
1602
|
# @param [String] fields
|
1565
1603
|
# Selector specifying which fields to include in a partial response.
|
1566
1604
|
# @param [String] quota_user
|
@@ -1578,12 +1616,13 @@ module Google
|
|
1578
1616
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1579
1617
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1580
1618
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1581
|
-
def reset_instance_ssl_config(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
1619
|
+
def reset_instance_ssl_config(project, instance, mode: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1582
1620
|
command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/resetSslConfig', options)
|
1583
1621
|
command.response_representation = Google::Apis::SqladminV1::Operation::Representation
|
1584
1622
|
command.response_class = Google::Apis::SqladminV1::Operation
|
1585
1623
|
command.params['project'] = project unless project.nil?
|
1586
1624
|
command.params['instance'] = instance unless instance.nil?
|
1625
|
+
command.query['mode'] = mode unless mode.nil?
|
1587
1626
|
command.query['fields'] = fields unless fields.nil?
|
1588
1627
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1589
1628
|
execute_or_queue_command(command, &block)
|
@@ -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:
|