google-apis-sqladmin_v1beta4 0.93.0 → 0.95.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6386fe947ab7b59336dd90eff98503131f090cf0d91283add9177cd5aba289f5
|
|
4
|
+
data.tar.gz: 57c9ea922fdd16ea9c831884d1246c4e4327e68a9e2b4f3e1802ea3002971c66
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8792f0ddd23b01ca3dfd9b4e580d90cadc6bf099dbcabf02ffccec2adb89be8ae306b9a9e0136b5c0ea67f067f5588a2ae48f399e46c6311ffc2111f8c85fa4e
|
|
7
|
+
data.tar.gz: f3513fdda7d376ff91acb7d0de92343960a9d539d5cd5cbf15daa68a547b6e6295ec72f7b7bc86e6dcfabfefbfd452e0ecfd9124a71c938440a34d5375a6e817
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-sqladmin_v1beta4
|
|
2
2
|
|
|
3
|
+
### v0.95.0 (2025-12-14)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20251201
|
|
6
|
+
|
|
7
|
+
### v0.94.0 (2025-11-16)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20251107
|
|
10
|
+
|
|
3
11
|
### v0.93.0 (2025-10-26)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20251019
|
|
@@ -2666,7 +2666,7 @@ module Google
|
|
|
2666
2666
|
attr_accessor :encryption_options
|
|
2667
2667
|
|
|
2668
2668
|
# Whether or not the backup importing will restore database with NORECOVERY
|
|
2669
|
-
# option Applies only to Cloud SQL for SQL Server.
|
|
2669
|
+
# option. Applies only to Cloud SQL for SQL Server.
|
|
2670
2670
|
# Corresponds to the JSON property `noRecovery`
|
|
2671
2671
|
# @return [Boolean]
|
|
2672
2672
|
attr_accessor :no_recovery
|
|
@@ -3137,6 +3137,37 @@ module Google
|
|
|
3137
3137
|
end
|
|
3138
3138
|
end
|
|
3139
3139
|
|
|
3140
|
+
# Instances ListEntraIdCertificates response.
|
|
3141
|
+
class InstancesListEntraIdCertificatesResponse
|
|
3142
|
+
include Google::Apis::Core::Hashable
|
|
3143
|
+
|
|
3144
|
+
# The `sha1_fingerprint` of the active certificate from `certs`.
|
|
3145
|
+
# Corresponds to the JSON property `activeVersion`
|
|
3146
|
+
# @return [String]
|
|
3147
|
+
attr_accessor :active_version
|
|
3148
|
+
|
|
3149
|
+
# List of Entra ID certificates for the instance.
|
|
3150
|
+
# Corresponds to the JSON property `certs`
|
|
3151
|
+
# @return [Array<Google::Apis::SqladminV1beta4::SslCert>]
|
|
3152
|
+
attr_accessor :certs
|
|
3153
|
+
|
|
3154
|
+
# This is always `sql#instancesListEntraIdCertificates`.
|
|
3155
|
+
# Corresponds to the JSON property `kind`
|
|
3156
|
+
# @return [String]
|
|
3157
|
+
attr_accessor :kind
|
|
3158
|
+
|
|
3159
|
+
def initialize(**args)
|
|
3160
|
+
update!(**args)
|
|
3161
|
+
end
|
|
3162
|
+
|
|
3163
|
+
# Update properties of this object
|
|
3164
|
+
def update!(**args)
|
|
3165
|
+
@active_version = args[:active_version] if args.key?(:active_version)
|
|
3166
|
+
@certs = args[:certs] if args.key?(:certs)
|
|
3167
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
3168
|
+
end
|
|
3169
|
+
end
|
|
3170
|
+
|
|
3140
3171
|
# Database instances list response.
|
|
3141
3172
|
class ListInstancesResponse
|
|
3142
3173
|
include Google::Apis::Core::Hashable
|
|
@@ -3333,6 +3364,25 @@ module Google
|
|
|
3333
3364
|
end
|
|
3334
3365
|
end
|
|
3335
3366
|
|
|
3367
|
+
# Rotate Entra ID Certificate request.
|
|
3368
|
+
class InstancesRotateEntraIdCertificateRequest
|
|
3369
|
+
include Google::Apis::Core::Hashable
|
|
3370
|
+
|
|
3371
|
+
# Instance rotate Entra ID certificate context.
|
|
3372
|
+
# Corresponds to the JSON property `rotateEntraIdCertificateContext`
|
|
3373
|
+
# @return [Google::Apis::SqladminV1beta4::RotateEntraIdCertificateContext]
|
|
3374
|
+
attr_accessor :rotate_entra_id_certificate_context
|
|
3375
|
+
|
|
3376
|
+
def initialize(**args)
|
|
3377
|
+
update!(**args)
|
|
3378
|
+
end
|
|
3379
|
+
|
|
3380
|
+
# Update properties of this object
|
|
3381
|
+
def update!(**args)
|
|
3382
|
+
@rotate_entra_id_certificate_context = args[:rotate_entra_id_certificate_context] if args.key?(:rotate_entra_id_certificate_context)
|
|
3383
|
+
end
|
|
3384
|
+
end
|
|
3385
|
+
|
|
3336
3386
|
# Rotate Server CA request.
|
|
3337
3387
|
class InstancesRotateServerCaRequest
|
|
3338
3388
|
include Google::Apis::Core::Hashable
|
|
@@ -3495,6 +3545,16 @@ module Google
|
|
|
3495
3545
|
# @return [String]
|
|
3496
3546
|
attr_accessor :server_ca_pool
|
|
3497
3547
|
|
|
3548
|
+
# Optional. Controls the automatic server certificate rotation feature. This
|
|
3549
|
+
# feature is disabled by default. When enabled, the server certificate will be
|
|
3550
|
+
# automatically rotated during Cloud SQL scheduled maintenance or self-service
|
|
3551
|
+
# maintenance updates up to six months before it expires. This setting can only
|
|
3552
|
+
# be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA or
|
|
3553
|
+
# CUSTOMER_MANAGED_CAS_CA.
|
|
3554
|
+
# Corresponds to the JSON property `serverCertificateRotationMode`
|
|
3555
|
+
# @return [String]
|
|
3556
|
+
attr_accessor :server_certificate_rotation_mode
|
|
3557
|
+
|
|
3498
3558
|
# Specify how SSL/TLS is enforced in database connections. If you must use the `
|
|
3499
3559
|
# require_ssl` flag for backward compatibility, then only the following value
|
|
3500
3560
|
# pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=
|
|
@@ -3528,6 +3588,7 @@ module Google
|
|
|
3528
3588
|
@require_ssl = args[:require_ssl] if args.key?(:require_ssl)
|
|
3529
3589
|
@server_ca_mode = args[:server_ca_mode] if args.key?(:server_ca_mode)
|
|
3530
3590
|
@server_ca_pool = args[:server_ca_pool] if args.key?(:server_ca_pool)
|
|
3591
|
+
@server_certificate_rotation_mode = args[:server_certificate_rotation_mode] if args.key?(:server_certificate_rotation_mode)
|
|
3531
3592
|
@ssl_mode = args[:ssl_mode] if args.key?(:ssl_mode)
|
|
3532
3593
|
end
|
|
3533
3594
|
end
|
|
@@ -4235,7 +4296,10 @@ module Google
|
|
|
4235
4296
|
end
|
|
4236
4297
|
end
|
|
4237
4298
|
|
|
4238
|
-
# Database instance local user password validation policy
|
|
4299
|
+
# Database instance local user password validation policy. This message defines
|
|
4300
|
+
# the password policy for local database users. When enabled, it enforces
|
|
4301
|
+
# constraints on password complexity, length, and reuse. Keep this policy
|
|
4302
|
+
# enabled to help prevent unauthorized access.
|
|
4239
4303
|
class PasswordValidationPolicy
|
|
4240
4304
|
include Google::Apis::Core::Hashable
|
|
4241
4305
|
|
|
@@ -4256,7 +4320,9 @@ module Google
|
|
|
4256
4320
|
attr_accessor :disallow_username_substring
|
|
4257
4321
|
alias_method :disallow_username_substring?, :disallow_username_substring
|
|
4258
4322
|
|
|
4259
|
-
# Whether the password policy
|
|
4323
|
+
# Whether to enable the password policy or not. When enabled, passwords must
|
|
4324
|
+
# meet complexity requirements. Keep this policy enabled to help prevent
|
|
4325
|
+
# unauthorized access. Disabling this policy allows weak passwords.
|
|
4260
4326
|
# Corresponds to the JSON property `enablePasswordPolicy`
|
|
4261
4327
|
# @return [Boolean]
|
|
4262
4328
|
attr_accessor :enable_password_policy
|
|
@@ -4313,8 +4379,62 @@ module Google
|
|
|
4313
4379
|
end
|
|
4314
4380
|
end
|
|
4315
4381
|
|
|
4316
|
-
#
|
|
4317
|
-
|
|
4382
|
+
# Performance Capture configuration.
|
|
4383
|
+
class PerformanceCaptureConfig
|
|
4384
|
+
include Google::Apis::Core::Hashable
|
|
4385
|
+
|
|
4386
|
+
# Optional. Enable or disable the Performance Capture.
|
|
4387
|
+
# Corresponds to the JSON property `enabled`
|
|
4388
|
+
# @return [Boolean]
|
|
4389
|
+
attr_accessor :enabled
|
|
4390
|
+
alias_method :enabled?, :enabled
|
|
4391
|
+
|
|
4392
|
+
# Optional. The minimum number of consecutive readings above threshold that
|
|
4393
|
+
# triggers instance state capture.
|
|
4394
|
+
# Corresponds to the JSON property `probeThreshold`
|
|
4395
|
+
# @return [Fixnum]
|
|
4396
|
+
attr_accessor :probe_threshold
|
|
4397
|
+
|
|
4398
|
+
# Optional. The time interval in seconds between any two probes.
|
|
4399
|
+
# Corresponds to the JSON property `probingIntervalSeconds`
|
|
4400
|
+
# @return [Fixnum]
|
|
4401
|
+
attr_accessor :probing_interval_seconds
|
|
4402
|
+
|
|
4403
|
+
# Optional. The minimum number of server threads running to trigger the capture
|
|
4404
|
+
# on primary.
|
|
4405
|
+
# Corresponds to the JSON property `runningThreadsThreshold`
|
|
4406
|
+
# @return [Fixnum]
|
|
4407
|
+
attr_accessor :running_threads_threshold
|
|
4408
|
+
|
|
4409
|
+
# Optional. The minimum number of seconds replica must be lagging behind primary
|
|
4410
|
+
# to trigger capture on replica.
|
|
4411
|
+
# Corresponds to the JSON property `secondsBehindSourceThreshold`
|
|
4412
|
+
# @return [Fixnum]
|
|
4413
|
+
attr_accessor :seconds_behind_source_threshold
|
|
4414
|
+
|
|
4415
|
+
# Optional. The amount of time in seconds that a transaction needs to have been
|
|
4416
|
+
# open before the watcher starts recording it.
|
|
4417
|
+
# Corresponds to the JSON property `transactionDurationThreshold`
|
|
4418
|
+
# @return [Fixnum]
|
|
4419
|
+
attr_accessor :transaction_duration_threshold
|
|
4420
|
+
|
|
4421
|
+
def initialize(**args)
|
|
4422
|
+
update!(**args)
|
|
4423
|
+
end
|
|
4424
|
+
|
|
4425
|
+
# Update properties of this object
|
|
4426
|
+
def update!(**args)
|
|
4427
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
|
4428
|
+
@probe_threshold = args[:probe_threshold] if args.key?(:probe_threshold)
|
|
4429
|
+
@probing_interval_seconds = args[:probing_interval_seconds] if args.key?(:probing_interval_seconds)
|
|
4430
|
+
@running_threads_threshold = args[:running_threads_threshold] if args.key?(:running_threads_threshold)
|
|
4431
|
+
@seconds_behind_source_threshold = args[:seconds_behind_source_threshold] if args.key?(:seconds_behind_source_threshold)
|
|
4432
|
+
@transaction_duration_threshold = args[:transaction_duration_threshold] if args.key?(:transaction_duration_threshold)
|
|
4433
|
+
end
|
|
4434
|
+
end
|
|
4435
|
+
|
|
4436
|
+
# Context to perform a point-in-time restore of an instance managed by Backup
|
|
4437
|
+
# and Disaster Recovery (DR) Service.
|
|
4318
4438
|
class PointInTimeRestoreContext
|
|
4319
4439
|
include Google::Apis::Core::Hashable
|
|
4320
4440
|
|
|
@@ -4329,7 +4449,7 @@ module Google
|
|
|
4329
4449
|
# @return [String]
|
|
4330
4450
|
attr_accessor :allocated_ip_range
|
|
4331
4451
|
|
|
4332
|
-
# The
|
|
4452
|
+
# The Backup and Disaster Recovery (DR) Service Datasource URI. Format: projects/
|
|
4333
4453
|
# `project`/locations/`region`/backupVaults/`backupvault`/dataSources/`
|
|
4334
4454
|
# datasource`.
|
|
4335
4455
|
# Corresponds to the JSON property `datasource`
|
|
@@ -4413,6 +4533,19 @@ module Google
|
|
|
4413
4533
|
# @return [String]
|
|
4414
4534
|
attr_accessor :name
|
|
4415
4535
|
|
|
4536
|
+
# Output only. The list of settings for requested automatically-setup Private
|
|
4537
|
+
# Service Connect (PSC) consumer endpoints that can be used to connect to this
|
|
4538
|
+
# read pool node.
|
|
4539
|
+
# Corresponds to the JSON property `pscAutoConnections`
|
|
4540
|
+
# @return [Array<Google::Apis::SqladminV1beta4::PscAutoConnectionConfig>]
|
|
4541
|
+
attr_accessor :psc_auto_connections
|
|
4542
|
+
|
|
4543
|
+
# Output only. The Private Service Connect (PSC) service attachment of the read
|
|
4544
|
+
# pool node.
|
|
4545
|
+
# Corresponds to the JSON property `pscServiceAttachmentLink`
|
|
4546
|
+
# @return [String]
|
|
4547
|
+
attr_accessor :psc_service_attachment_link
|
|
4548
|
+
|
|
4416
4549
|
# Output only. The current state of the read pool node.
|
|
4417
4550
|
# Corresponds to the JSON property `state`
|
|
4418
4551
|
# @return [String]
|
|
@@ -4429,6 +4562,8 @@ module Google
|
|
|
4429
4562
|
@gce_zone = args[:gce_zone] if args.key?(:gce_zone)
|
|
4430
4563
|
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
|
|
4431
4564
|
@name = args[:name] if args.key?(:name)
|
|
4565
|
+
@psc_auto_connections = args[:psc_auto_connections] if args.key?(:psc_auto_connections)
|
|
4566
|
+
@psc_service_attachment_link = args[:psc_service_attachment_link] if args.key?(:psc_service_attachment_link)
|
|
4432
4567
|
@state = args[:state] if args.key?(:state)
|
|
4433
4568
|
end
|
|
4434
4569
|
end
|
|
@@ -4853,6 +4988,33 @@ module Google
|
|
|
4853
4988
|
end
|
|
4854
4989
|
end
|
|
4855
4990
|
|
|
4991
|
+
# Instance rotate Entra ID certificate context.
|
|
4992
|
+
class RotateEntraIdCertificateContext
|
|
4993
|
+
include Google::Apis::Core::Hashable
|
|
4994
|
+
|
|
4995
|
+
# Optional. This is always `sql#rotateEntraIdCertificateContext`.
|
|
4996
|
+
# Corresponds to the JSON property `kind`
|
|
4997
|
+
# @return [String]
|
|
4998
|
+
attr_accessor :kind
|
|
4999
|
+
|
|
5000
|
+
# Optional. The fingerprint of the next version to be rotated to. If left
|
|
5001
|
+
# unspecified, will be rotated to the most recently added Entra ID certificate
|
|
5002
|
+
# version.
|
|
5003
|
+
# Corresponds to the JSON property `nextVersion`
|
|
5004
|
+
# @return [String]
|
|
5005
|
+
attr_accessor :next_version
|
|
5006
|
+
|
|
5007
|
+
def initialize(**args)
|
|
5008
|
+
update!(**args)
|
|
5009
|
+
end
|
|
5010
|
+
|
|
5011
|
+
# Update properties of this object
|
|
5012
|
+
def update!(**args)
|
|
5013
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
5014
|
+
@next_version = args[:next_version] if args.key?(:next_version)
|
|
5015
|
+
end
|
|
5016
|
+
end
|
|
5017
|
+
|
|
4856
5018
|
# Instance rotate server CA context.
|
|
4857
5019
|
class RotateServerCaContext
|
|
4858
5020
|
include Google::Apis::Core::Hashable
|
|
@@ -5025,8 +5187,8 @@ module Google
|
|
|
5025
5187
|
attr_accessor :crash_safe_replication_enabled
|
|
5026
5188
|
alias_method :crash_safe_replication_enabled?, :crash_safe_replication_enabled
|
|
5027
5189
|
|
|
5028
|
-
# This parameter controls whether to allow using
|
|
5029
|
-
# instance. Not allowed by default.
|
|
5190
|
+
# This parameter controls whether to allow using ExecuteSql API to connect to
|
|
5191
|
+
# the instance. Not allowed by default.
|
|
5030
5192
|
# Corresponds to the JSON property `dataApiAccess`
|
|
5031
5193
|
# @return [String]
|
|
5032
5194
|
attr_accessor :data_api_access
|
|
@@ -5104,6 +5266,11 @@ module Google
|
|
|
5104
5266
|
attr_accessor :enable_google_ml_integration
|
|
5105
5267
|
alias_method :enable_google_ml_integration?, :enable_google_ml_integration
|
|
5106
5268
|
|
|
5269
|
+
# SQL Server Entra ID configuration.
|
|
5270
|
+
# Corresponds to the JSON property `entraidConfig`
|
|
5271
|
+
# @return [Google::Apis::SqladminV1beta4::SqlServerEntraIdConfig]
|
|
5272
|
+
attr_accessor :entraid_config
|
|
5273
|
+
|
|
5107
5274
|
# Config used to determine the final backup settings for the instance.
|
|
5108
5275
|
# Corresponds to the JSON property `finalBackupConfig`
|
|
5109
5276
|
# @return [Google::Apis::SqladminV1beta4::FinalBackupConfig]
|
|
@@ -5138,11 +5305,19 @@ module Google
|
|
|
5138
5305
|
# @return [Google::Apis::SqladminV1beta4::MaintenanceWindow]
|
|
5139
5306
|
attr_accessor :maintenance_window
|
|
5140
5307
|
|
|
5141
|
-
# Database instance local user password validation policy
|
|
5308
|
+
# Database instance local user password validation policy. This message defines
|
|
5309
|
+
# the password policy for local database users. When enabled, it enforces
|
|
5310
|
+
# constraints on password complexity, length, and reuse. Keep this policy
|
|
5311
|
+
# enabled to help prevent unauthorized access.
|
|
5142
5312
|
# Corresponds to the JSON property `passwordValidationPolicy`
|
|
5143
5313
|
# @return [Google::Apis::SqladminV1beta4::PasswordValidationPolicy]
|
|
5144
5314
|
attr_accessor :password_validation_policy
|
|
5145
5315
|
|
|
5316
|
+
# Performance Capture configuration.
|
|
5317
|
+
# Corresponds to the JSON property `performanceCaptureConfig`
|
|
5318
|
+
# @return [Google::Apis::SqladminV1beta4::PerformanceCaptureConfig]
|
|
5319
|
+
attr_accessor :performance_capture_config
|
|
5320
|
+
|
|
5146
5321
|
# The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`.
|
|
5147
5322
|
# Only `PER_USE` is supported for Second Generation instances.
|
|
5148
5323
|
# Corresponds to the JSON property `pricingPlan`
|
|
@@ -5249,6 +5424,7 @@ module Google
|
|
|
5249
5424
|
@edition = args[:edition] if args.key?(:edition)
|
|
5250
5425
|
@enable_dataplex_integration = args[:enable_dataplex_integration] if args.key?(:enable_dataplex_integration)
|
|
5251
5426
|
@enable_google_ml_integration = args[:enable_google_ml_integration] if args.key?(:enable_google_ml_integration)
|
|
5427
|
+
@entraid_config = args[:entraid_config] if args.key?(:entraid_config)
|
|
5252
5428
|
@final_backup_config = args[:final_backup_config] if args.key?(:final_backup_config)
|
|
5253
5429
|
@insights_config = args[:insights_config] if args.key?(:insights_config)
|
|
5254
5430
|
@ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration)
|
|
@@ -5256,6 +5432,7 @@ module Google
|
|
|
5256
5432
|
@location_preference = args[:location_preference] if args.key?(:location_preference)
|
|
5257
5433
|
@maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
|
|
5258
5434
|
@password_validation_policy = args[:password_validation_policy] if args.key?(:password_validation_policy)
|
|
5435
|
+
@performance_capture_config = args[:performance_capture_config] if args.key?(:performance_capture_config)
|
|
5259
5436
|
@pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
|
|
5260
5437
|
@read_pool_auto_scale_config = args[:read_pool_auto_scale_config] if args.key?(:read_pool_auto_scale_config)
|
|
5261
5438
|
@replication_lag_max_seconds = args[:replication_lag_max_seconds] if args.key?(:replication_lag_max_seconds)
|
|
@@ -5810,6 +5987,37 @@ module Google
|
|
|
5810
5987
|
end
|
|
5811
5988
|
end
|
|
5812
5989
|
|
|
5990
|
+
# SQL Server Entra ID configuration.
|
|
5991
|
+
class SqlServerEntraIdConfig
|
|
5992
|
+
include Google::Apis::Core::Hashable
|
|
5993
|
+
|
|
5994
|
+
# Optional. The application ID for the Entra ID configuration.
|
|
5995
|
+
# Corresponds to the JSON property `applicationId`
|
|
5996
|
+
# @return [String]
|
|
5997
|
+
attr_accessor :application_id
|
|
5998
|
+
|
|
5999
|
+
# Output only. This is always sql#sqlServerEntraIdConfig
|
|
6000
|
+
# Corresponds to the JSON property `kind`
|
|
6001
|
+
# @return [String]
|
|
6002
|
+
attr_accessor :kind
|
|
6003
|
+
|
|
6004
|
+
# Optional. The tenant ID for the Entra ID configuration.
|
|
6005
|
+
# Corresponds to the JSON property `tenantId`
|
|
6006
|
+
# @return [String]
|
|
6007
|
+
attr_accessor :tenant_id
|
|
6008
|
+
|
|
6009
|
+
def initialize(**args)
|
|
6010
|
+
update!(**args)
|
|
6011
|
+
end
|
|
6012
|
+
|
|
6013
|
+
# Update properties of this object
|
|
6014
|
+
def update!(**args)
|
|
6015
|
+
@application_id = args[:application_id] if args.key?(:application_id)
|
|
6016
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
6017
|
+
@tenant_id = args[:tenant_id] if args.key?(:tenant_id)
|
|
6018
|
+
end
|
|
6019
|
+
end
|
|
6020
|
+
|
|
5813
6021
|
# Represents a Sql Server user on the Cloud SQL instance.
|
|
5814
6022
|
class SqlServerUserDetails
|
|
5815
6023
|
include Google::Apis::Core::Hashable
|
|
@@ -6249,6 +6457,11 @@ module Google
|
|
|
6249
6457
|
class User
|
|
6250
6458
|
include Google::Apis::Core::Hashable
|
|
6251
6459
|
|
|
6460
|
+
# Optional. Role memberships of the user
|
|
6461
|
+
# Corresponds to the JSON property `databaseRoles`
|
|
6462
|
+
# @return [Array<String>]
|
|
6463
|
+
attr_accessor :database_roles
|
|
6464
|
+
|
|
6252
6465
|
# Dual password status for the user.
|
|
6253
6466
|
# Corresponds to the JSON property `dualPasswordType`
|
|
6254
6467
|
# @return [String]
|
|
@@ -6330,6 +6543,7 @@ module Google
|
|
|
6330
6543
|
|
|
6331
6544
|
# Update properties of this object
|
|
6332
6545
|
def update!(**args)
|
|
6546
|
+
@database_roles = args[:database_roles] if args.key?(:database_roles)
|
|
6333
6547
|
@dual_password_type = args[:dual_password_type] if args.key?(:dual_password_type)
|
|
6334
6548
|
@etag = args[:etag] if args.key?(:etag)
|
|
6335
6549
|
@host = args[:host] if args.key?(:host)
|
|
@@ -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.
|
|
19
|
+
GEM_VERSION = "0.95.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 = "20251201"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -418,6 +418,12 @@ module Google
|
|
|
418
418
|
include Google::Apis::Core::JsonObjectSupport
|
|
419
419
|
end
|
|
420
420
|
|
|
421
|
+
class InstancesListEntraIdCertificatesResponse
|
|
422
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
423
|
+
|
|
424
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
425
|
+
end
|
|
426
|
+
|
|
421
427
|
class ListInstancesResponse
|
|
422
428
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
423
429
|
|
|
@@ -454,6 +460,12 @@ module Google
|
|
|
454
460
|
include Google::Apis::Core::JsonObjectSupport
|
|
455
461
|
end
|
|
456
462
|
|
|
463
|
+
class InstancesRotateEntraIdCertificateRequest
|
|
464
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
465
|
+
|
|
466
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
467
|
+
end
|
|
468
|
+
|
|
457
469
|
class InstancesRotateServerCaRequest
|
|
458
470
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
459
471
|
|
|
@@ -586,6 +598,12 @@ module Google
|
|
|
586
598
|
include Google::Apis::Core::JsonObjectSupport
|
|
587
599
|
end
|
|
588
600
|
|
|
601
|
+
class PerformanceCaptureConfig
|
|
602
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
603
|
+
|
|
604
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
605
|
+
end
|
|
606
|
+
|
|
589
607
|
class PointInTimeRestoreContext
|
|
590
608
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
591
609
|
|
|
@@ -658,6 +676,12 @@ module Google
|
|
|
658
676
|
include Google::Apis::Core::JsonObjectSupport
|
|
659
677
|
end
|
|
660
678
|
|
|
679
|
+
class RotateEntraIdCertificateContext
|
|
680
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
681
|
+
|
|
682
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
683
|
+
end
|
|
684
|
+
|
|
661
685
|
class RotateServerCaContext
|
|
662
686
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
663
687
|
|
|
@@ -784,6 +808,12 @@ module Google
|
|
|
784
808
|
include Google::Apis::Core::JsonObjectSupport
|
|
785
809
|
end
|
|
786
810
|
|
|
811
|
+
class SqlServerEntraIdConfig
|
|
812
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
813
|
+
|
|
814
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
815
|
+
end
|
|
816
|
+
|
|
787
817
|
class SqlServerUserDetails
|
|
788
818
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
789
819
|
|
|
@@ -1673,6 +1703,16 @@ module Google
|
|
|
1673
1703
|
end
|
|
1674
1704
|
end
|
|
1675
1705
|
|
|
1706
|
+
class InstancesListEntraIdCertificatesResponse
|
|
1707
|
+
# @private
|
|
1708
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1709
|
+
property :active_version, as: 'activeVersion'
|
|
1710
|
+
collection :certs, as: 'certs', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation
|
|
1711
|
+
|
|
1712
|
+
property :kind, as: 'kind'
|
|
1713
|
+
end
|
|
1714
|
+
end
|
|
1715
|
+
|
|
1676
1716
|
class ListInstancesResponse
|
|
1677
1717
|
# @private
|
|
1678
1718
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1736,6 +1776,14 @@ module Google
|
|
|
1736
1776
|
end
|
|
1737
1777
|
end
|
|
1738
1778
|
|
|
1779
|
+
class InstancesRotateEntraIdCertificateRequest
|
|
1780
|
+
# @private
|
|
1781
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1782
|
+
property :rotate_entra_id_certificate_context, as: 'rotateEntraIdCertificateContext', class: Google::Apis::SqladminV1beta4::RotateEntraIdCertificateContext, decorator: Google::Apis::SqladminV1beta4::RotateEntraIdCertificateContext::Representation
|
|
1783
|
+
|
|
1784
|
+
end
|
|
1785
|
+
end
|
|
1786
|
+
|
|
1739
1787
|
class InstancesRotateServerCaRequest
|
|
1740
1788
|
# @private
|
|
1741
1789
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1783,6 +1831,7 @@ module Google
|
|
|
1783
1831
|
property :require_ssl, as: 'requireSsl'
|
|
1784
1832
|
property :server_ca_mode, as: 'serverCaMode'
|
|
1785
1833
|
property :server_ca_pool, as: 'serverCaPool'
|
|
1834
|
+
property :server_certificate_rotation_mode, as: 'serverCertificateRotationMode'
|
|
1786
1835
|
property :ssl_mode, as: 'sslMode'
|
|
1787
1836
|
end
|
|
1788
1837
|
end
|
|
@@ -1989,6 +2038,18 @@ module Google
|
|
|
1989
2038
|
end
|
|
1990
2039
|
end
|
|
1991
2040
|
|
|
2041
|
+
class PerformanceCaptureConfig
|
|
2042
|
+
# @private
|
|
2043
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2044
|
+
property :enabled, as: 'enabled'
|
|
2045
|
+
property :probe_threshold, as: 'probeThreshold'
|
|
2046
|
+
property :probing_interval_seconds, as: 'probingIntervalSeconds'
|
|
2047
|
+
property :running_threads_threshold, as: 'runningThreadsThreshold'
|
|
2048
|
+
property :seconds_behind_source_threshold, as: 'secondsBehindSourceThreshold'
|
|
2049
|
+
property :transaction_duration_threshold, as: 'transactionDurationThreshold'
|
|
2050
|
+
end
|
|
2051
|
+
end
|
|
2052
|
+
|
|
1992
2053
|
class PointInTimeRestoreContext
|
|
1993
2054
|
# @private
|
|
1994
2055
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2012,6 +2073,9 @@ module Google
|
|
|
2012
2073
|
collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta4::IpMapping, decorator: Google::Apis::SqladminV1beta4::IpMapping::Representation
|
|
2013
2074
|
|
|
2014
2075
|
property :name, as: 'name'
|
|
2076
|
+
collection :psc_auto_connections, as: 'pscAutoConnections', class: Google::Apis::SqladminV1beta4::PscAutoConnectionConfig, decorator: Google::Apis::SqladminV1beta4::PscAutoConnectionConfig::Representation
|
|
2077
|
+
|
|
2078
|
+
property :psc_service_attachment_link, as: 'pscServiceAttachmentLink'
|
|
2015
2079
|
property :state, as: 'state'
|
|
2016
2080
|
end
|
|
2017
2081
|
end
|
|
@@ -2123,6 +2187,14 @@ module Google
|
|
|
2123
2187
|
end
|
|
2124
2188
|
end
|
|
2125
2189
|
|
|
2190
|
+
class RotateEntraIdCertificateContext
|
|
2191
|
+
# @private
|
|
2192
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2193
|
+
property :kind, as: 'kind'
|
|
2194
|
+
property :next_version, as: 'nextVersion'
|
|
2195
|
+
end
|
|
2196
|
+
end
|
|
2197
|
+
|
|
2126
2198
|
class RotateServerCaContext
|
|
2127
2199
|
# @private
|
|
2128
2200
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2188,6 +2260,8 @@ module Google
|
|
|
2188
2260
|
property :edition, as: 'edition'
|
|
2189
2261
|
property :enable_dataplex_integration, as: 'enableDataplexIntegration'
|
|
2190
2262
|
property :enable_google_ml_integration, as: 'enableGoogleMlIntegration'
|
|
2263
|
+
property :entraid_config, as: 'entraidConfig', class: Google::Apis::SqladminV1beta4::SqlServerEntraIdConfig, decorator: Google::Apis::SqladminV1beta4::SqlServerEntraIdConfig::Representation
|
|
2264
|
+
|
|
2191
2265
|
property :final_backup_config, as: 'finalBackupConfig', class: Google::Apis::SqladminV1beta4::FinalBackupConfig, decorator: Google::Apis::SqladminV1beta4::FinalBackupConfig::Representation
|
|
2192
2266
|
|
|
2193
2267
|
property :insights_config, as: 'insightsConfig', class: Google::Apis::SqladminV1beta4::InsightsConfig, decorator: Google::Apis::SqladminV1beta4::InsightsConfig::Representation
|
|
@@ -2201,6 +2275,8 @@ module Google
|
|
|
2201
2275
|
|
|
2202
2276
|
property :password_validation_policy, as: 'passwordValidationPolicy', class: Google::Apis::SqladminV1beta4::PasswordValidationPolicy, decorator: Google::Apis::SqladminV1beta4::PasswordValidationPolicy::Representation
|
|
2203
2277
|
|
|
2278
|
+
property :performance_capture_config, as: 'performanceCaptureConfig', class: Google::Apis::SqladminV1beta4::PerformanceCaptureConfig, decorator: Google::Apis::SqladminV1beta4::PerformanceCaptureConfig::Representation
|
|
2279
|
+
|
|
2204
2280
|
property :pricing_plan, as: 'pricingPlan'
|
|
2205
2281
|
property :read_pool_auto_scale_config, as: 'readPoolAutoScaleConfig', class: Google::Apis::SqladminV1beta4::ReadPoolAutoScaleConfig, decorator: Google::Apis::SqladminV1beta4::ReadPoolAutoScaleConfig::Representation
|
|
2206
2282
|
|
|
@@ -2374,6 +2450,15 @@ module Google
|
|
|
2374
2450
|
end
|
|
2375
2451
|
end
|
|
2376
2452
|
|
|
2453
|
+
class SqlServerEntraIdConfig
|
|
2454
|
+
# @private
|
|
2455
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2456
|
+
property :application_id, as: 'applicationId'
|
|
2457
|
+
property :kind, as: 'kind'
|
|
2458
|
+
property :tenant_id, as: 'tenantId'
|
|
2459
|
+
end
|
|
2460
|
+
end
|
|
2461
|
+
|
|
2377
2462
|
class SqlServerUserDetails
|
|
2378
2463
|
# @private
|
|
2379
2464
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2506,6 +2591,7 @@ module Google
|
|
|
2506
2591
|
class User
|
|
2507
2592
|
# @private
|
|
2508
2593
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2594
|
+
collection :database_roles, as: 'databaseRoles'
|
|
2509
2595
|
property :dual_password_type, as: 'dualPasswordType'
|
|
2510
2596
|
property :etag, as: 'etag'
|
|
2511
2597
|
property :host, as: 'host'
|
|
@@ -719,6 +719,42 @@ module Google
|
|
|
719
719
|
execute_or_queue_command(command, &block)
|
|
720
720
|
end
|
|
721
721
|
|
|
722
|
+
# Lists all versions of EntraID certificates for the specified instance. There
|
|
723
|
+
# can be up to three sets of certificates listed: the certificate that is
|
|
724
|
+
# currently in use, a future that has been added but not yet used to sign a
|
|
725
|
+
# certificate, and a certificate that has been rotated out.
|
|
726
|
+
# @param [String] project
|
|
727
|
+
# Required. Project ID of the project that contains the instance.
|
|
728
|
+
# @param [String] instance
|
|
729
|
+
# Required. Cloud SQL instance ID. This does not include the project ID.
|
|
730
|
+
# @param [String] fields
|
|
731
|
+
# Selector specifying which fields to include in a partial response.
|
|
732
|
+
# @param [String] quota_user
|
|
733
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
734
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
735
|
+
# @param [Google::Apis::RequestOptions] options
|
|
736
|
+
# Request-specific options
|
|
737
|
+
#
|
|
738
|
+
# @yield [result, err] Result & error if block supplied
|
|
739
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::InstancesListEntraIdCertificatesResponse] parsed result object
|
|
740
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
741
|
+
#
|
|
742
|
+
# @return [Google::Apis::SqladminV1beta4::InstancesListEntraIdCertificatesResponse]
|
|
743
|
+
#
|
|
744
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
745
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
746
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
747
|
+
def list_instance_entra_id_certificates(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
|
748
|
+
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/listEntraIdCertificates', options)
|
|
749
|
+
command.response_representation = Google::Apis::SqladminV1beta4::InstancesListEntraIdCertificatesResponse::Representation
|
|
750
|
+
command.response_class = Google::Apis::SqladminV1beta4::InstancesListEntraIdCertificatesResponse
|
|
751
|
+
command.params['project'] = project unless project.nil?
|
|
752
|
+
command.params['instance'] = instance unless instance.nil?
|
|
753
|
+
command.query['fields'] = fields unless fields.nil?
|
|
754
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
755
|
+
execute_or_queue_command(command, &block)
|
|
756
|
+
end
|
|
757
|
+
|
|
722
758
|
# Lists all versions of server certificates and certificate authorities (CAs)
|
|
723
759
|
# for the specified instance. There can be up to three sets of certs listed: the
|
|
724
760
|
# certificate that is currently in use, a future that has been added but not yet
|
|
@@ -757,6 +793,43 @@ module Google
|
|
|
757
793
|
execute_or_queue_command(command, &block)
|
|
758
794
|
end
|
|
759
795
|
|
|
796
|
+
# Rotates the Entra Id certificate version to one previously added with the
|
|
797
|
+
# addEntraIdCertificate method.
|
|
798
|
+
# @param [String] project
|
|
799
|
+
# Required. Project ID of the project that contains the instance.
|
|
800
|
+
# @param [String] instance
|
|
801
|
+
# Required. Cloud SQL instance ID. This does not include the project ID.
|
|
802
|
+
# @param [Google::Apis::SqladminV1beta4::InstancesRotateEntraIdCertificateRequest] instances_rotate_entra_id_certificate_request_object
|
|
803
|
+
# @param [String] fields
|
|
804
|
+
# Selector specifying which fields to include in a partial response.
|
|
805
|
+
# @param [String] quota_user
|
|
806
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
807
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
808
|
+
# @param [Google::Apis::RequestOptions] options
|
|
809
|
+
# Request-specific options
|
|
810
|
+
#
|
|
811
|
+
# @yield [result, err] Result & error if block supplied
|
|
812
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
|
813
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
814
|
+
#
|
|
815
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
|
816
|
+
#
|
|
817
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
818
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
819
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
820
|
+
def rotate_instance_entra_id_certificate(project, instance, instances_rotate_entra_id_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
821
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/rotateEntraIdCertificate', options)
|
|
822
|
+
command.request_representation = Google::Apis::SqladminV1beta4::InstancesRotateEntraIdCertificateRequest::Representation
|
|
823
|
+
command.request_object = instances_rotate_entra_id_certificate_request_object
|
|
824
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
|
825
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
|
826
|
+
command.params['project'] = project unless project.nil?
|
|
827
|
+
command.params['instance'] = instance unless instance.nil?
|
|
828
|
+
command.query['fields'] = fields unless fields.nil?
|
|
829
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
830
|
+
execute_or_queue_command(command, &block)
|
|
831
|
+
end
|
|
832
|
+
|
|
760
833
|
# Rotates the server certificate version to one previously added with the
|
|
761
834
|
# addServerCertificate method. For instances not using Certificate Authority
|
|
762
835
|
# Service (CAS) server CA, use RotateServerCa instead.
|
|
@@ -833,6 +906,41 @@ module Google
|
|
|
833
906
|
execute_or_queue_command(command, &block)
|
|
834
907
|
end
|
|
835
908
|
|
|
909
|
+
# Adds a new Entra ID certificate for the specified instance. If an Entra ID
|
|
910
|
+
# certificate was previously added but never used in a certificate rotation,
|
|
911
|
+
# this operation replaces that version.
|
|
912
|
+
# @param [String] project
|
|
913
|
+
# Required. Project ID of the project that contains the instance.
|
|
914
|
+
# @param [String] instance
|
|
915
|
+
# Required. Cloud SQL instance ID. This does not include the project ID.
|
|
916
|
+
# @param [String] fields
|
|
917
|
+
# Selector specifying which fields to include in a partial response.
|
|
918
|
+
# @param [String] quota_user
|
|
919
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
920
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
921
|
+
# @param [Google::Apis::RequestOptions] options
|
|
922
|
+
# Request-specific options
|
|
923
|
+
#
|
|
924
|
+
# @yield [result, err] Result & error if block supplied
|
|
925
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
|
926
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
927
|
+
#
|
|
928
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
|
929
|
+
#
|
|
930
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
931
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
932
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
933
|
+
def add_instance_entra_id_certificate(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
|
934
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/addEntraIdCertificate', options)
|
|
935
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
|
936
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
|
937
|
+
command.params['project'] = project unless project.nil?
|
|
938
|
+
command.params['instance'] = instance unless instance.nil?
|
|
939
|
+
command.query['fields'] = fields unless fields.nil?
|
|
940
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
941
|
+
execute_or_queue_command(command, &block)
|
|
942
|
+
end
|
|
943
|
+
|
|
836
944
|
# Add a new trusted Certificate Authority (CA) version for the specified
|
|
837
945
|
# instance. Required to prepare for a certificate rotation. If a CA version was
|
|
838
946
|
# previously added but never used in a certificate rotation, this operation
|
|
@@ -2640,10 +2748,15 @@ module Google
|
|
|
2640
2748
|
# @param [String] instance
|
|
2641
2749
|
# Database instance ID. This does not include the project ID.
|
|
2642
2750
|
# @param [Google::Apis::SqladminV1beta4::User] user_object
|
|
2751
|
+
# @param [Array<String>, String] database_roles
|
|
2752
|
+
# Optional. List of database roles to grant to the user. body.database_roles
|
|
2753
|
+
# will be ignored for update request.
|
|
2643
2754
|
# @param [String] host
|
|
2644
2755
|
# Optional. Host of the user in the instance.
|
|
2645
2756
|
# @param [String] name
|
|
2646
2757
|
# Name of the user in the instance.
|
|
2758
|
+
# @param [Boolean] revoke_existing_roles
|
|
2759
|
+
# Optional. revoke the existing roles granted to the user.
|
|
2647
2760
|
# @param [String] fields
|
|
2648
2761
|
# Selector specifying which fields to include in a partial response.
|
|
2649
2762
|
# @param [String] quota_user
|
|
@@ -2661,7 +2774,7 @@ module Google
|
|
|
2661
2774
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2662
2775
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2663
2776
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2664
|
-
def update_user(project, instance, user_object = nil, host: nil, name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2777
|
+
def update_user(project, instance, user_object = nil, database_roles: nil, host: nil, name: nil, revoke_existing_roles: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2665
2778
|
command = make_simple_command(:put, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options)
|
|
2666
2779
|
command.request_representation = Google::Apis::SqladminV1beta4::User::Representation
|
|
2667
2780
|
command.request_object = user_object
|
|
@@ -2669,8 +2782,10 @@ module Google
|
|
|
2669
2782
|
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
|
2670
2783
|
command.params['project'] = project unless project.nil?
|
|
2671
2784
|
command.params['instance'] = instance unless instance.nil?
|
|
2785
|
+
command.query['databaseRoles'] = database_roles unless database_roles.nil?
|
|
2672
2786
|
command.query['host'] = host unless host.nil?
|
|
2673
2787
|
command.query['name'] = name unless name.nil?
|
|
2788
|
+
command.query['revokeExistingRoles'] = revoke_existing_roles unless revoke_existing_roles.nil?
|
|
2674
2789
|
command.query['fields'] = fields unless fields.nil?
|
|
2675
2790
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2676
2791
|
execute_or_queue_command(command, &block)
|
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.
|
|
4
|
+
version: 0.95.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.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.95.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:
|