google-apis-sqladmin_v1 0.38.0 → 0.40.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: 4c2c3450ce9260e1e4ef9f2c273c78f3f7da729b66960882f5d9a28b62655a0e
|
4
|
+
data.tar.gz: 4fdf41e5227ca48a51ad82c42c33737208211fd3a7f3e5ca0de48d924afd0801
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0587cec5feb0f5503fb52af5cdcc7a42b867eeca18e906f3859aa9036148a08b1845bd84bd9633bd17646f78337973551542ca143cea915df36804725ed2afbd'
|
7
|
+
data.tar.gz: c6b504e7f60953aa1ab56b24ef80b40bcd0a5e76386fce14ae467cbc810fb47dd7d558b2e91fd082ac3ba894ba084207e73283f8be22cb44afcf01311fc1b312
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-sqladmin_v1
|
2
2
|
|
3
|
+
### v0.40.0 (2023-07-02)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230627
|
6
|
+
|
7
|
+
### v0.39.0 (2023-06-11)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230607
|
10
|
+
|
3
11
|
### v0.38.0 (2023-06-04)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230530
|
@@ -210,6 +210,31 @@ module Google
|
|
210
210
|
end
|
211
211
|
end
|
212
212
|
|
213
|
+
# Backup Reencryption Config
|
214
|
+
class BackupReencryptionConfig
|
215
|
+
include Google::Apis::Core::Hashable
|
216
|
+
|
217
|
+
# Backup re-encryption limit
|
218
|
+
# Corresponds to the JSON property `backupLimit`
|
219
|
+
# @return [Fixnum]
|
220
|
+
attr_accessor :backup_limit
|
221
|
+
|
222
|
+
# Type of backups users want to re-encrypt.
|
223
|
+
# Corresponds to the JSON property `backupType`
|
224
|
+
# @return [String]
|
225
|
+
attr_accessor :backup_type
|
226
|
+
|
227
|
+
def initialize(**args)
|
228
|
+
update!(**args)
|
229
|
+
end
|
230
|
+
|
231
|
+
# Update properties of this object
|
232
|
+
def update!(**args)
|
233
|
+
@backup_limit = args[:backup_limit] if args.key?(:backup_limit)
|
234
|
+
@backup_type = args[:backup_type] if args.key?(:backup_type)
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
213
238
|
# We currently only support backup retention by specifying the number of backups
|
214
239
|
# we will retain.
|
215
240
|
class BackupRetentionSettings
|
@@ -472,6 +497,13 @@ module Google
|
|
472
497
|
# @return [String]
|
473
498
|
attr_accessor :point_in_time
|
474
499
|
|
500
|
+
# Optional. (Point-in-time recovery for PostgreSQL only) Clone to an instance in
|
501
|
+
# the specified zone. If no zone is specified, clone to the same zone as the
|
502
|
+
# source instance.
|
503
|
+
# Corresponds to the JSON property `preferredZone`
|
504
|
+
# @return [String]
|
505
|
+
attr_accessor :preferred_zone
|
506
|
+
|
475
507
|
def initialize(**args)
|
476
508
|
update!(**args)
|
477
509
|
end
|
@@ -485,6 +517,7 @@ module Google
|
|
485
517
|
@kind = args[:kind] if args.key?(:kind)
|
486
518
|
@pitr_timestamp_ms = args[:pitr_timestamp_ms] if args.key?(:pitr_timestamp_ms)
|
487
519
|
@point_in_time = args[:point_in_time] if args.key?(:point_in_time)
|
520
|
+
@preferred_zone = args[:preferred_zone] if args.key?(:preferred_zone)
|
488
521
|
end
|
489
522
|
end
|
490
523
|
|
@@ -511,6 +544,11 @@ module Google
|
|
511
544
|
# @return [String]
|
512
545
|
attr_accessor :database_version
|
513
546
|
|
547
|
+
# The dns name of the instance.
|
548
|
+
# Corresponds to the JSON property `dnsName`
|
549
|
+
# @return [String]
|
550
|
+
attr_accessor :dns_name
|
551
|
+
|
514
552
|
# The assigned IP addresses for the instance.
|
515
553
|
# Corresponds to the JSON property `ipAddresses`
|
516
554
|
# @return [Array<Google::Apis::SqladminV1::IpMapping>]
|
@@ -540,6 +578,7 @@ module Google
|
|
540
578
|
def update!(**args)
|
541
579
|
@backend_type = args[:backend_type] if args.key?(:backend_type)
|
542
580
|
@database_version = args[:database_version] if args.key?(:database_version)
|
581
|
+
@dns_name = args[:dns_name] if args.key?(:dns_name)
|
543
582
|
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
|
544
583
|
@kind = args[:kind] if args.key?(:kind)
|
545
584
|
@region = args[:region] if args.key?(:region)
|
@@ -547,6 +586,26 @@ module Google
|
|
547
586
|
end
|
548
587
|
end
|
549
588
|
|
589
|
+
# Data cache configurations.
|
590
|
+
class DataCacheConfig
|
591
|
+
include Google::Apis::Core::Hashable
|
592
|
+
|
593
|
+
# Whether data cache is enabled for the instance.
|
594
|
+
# Corresponds to the JSON property `dataCacheEnabled`
|
595
|
+
# @return [Boolean]
|
596
|
+
attr_accessor :data_cache_enabled
|
597
|
+
alias_method :data_cache_enabled?, :data_cache_enabled
|
598
|
+
|
599
|
+
def initialize(**args)
|
600
|
+
update!(**args)
|
601
|
+
end
|
602
|
+
|
603
|
+
# Update properties of this object
|
604
|
+
def update!(**args)
|
605
|
+
@data_cache_enabled = args[:data_cache_enabled] if args.key?(:data_cache_enabled)
|
606
|
+
end
|
607
|
+
end
|
608
|
+
|
550
609
|
# Represents a SQL database on the Cloud SQL instance.
|
551
610
|
class Database
|
552
611
|
include Google::Apis::Core::Hashable
|
@@ -1266,16 +1325,14 @@ module Google
|
|
1266
1325
|
# @return [String]
|
1267
1326
|
attr_accessor :bak_type
|
1268
1327
|
|
1269
|
-
#
|
1270
|
-
# deprecated as the behavior should default to copy_only = true use
|
1271
|
-
# differential_base instead
|
1328
|
+
# Deprecated: copy_only is deprecated. Use differential_base instead
|
1272
1329
|
# Corresponds to the JSON property `copyOnly`
|
1273
1330
|
# @return [Boolean]
|
1274
1331
|
attr_accessor :copy_only
|
1275
1332
|
alias_method :copy_only?, :copy_only
|
1276
1333
|
|
1277
|
-
# Whether or not the backup can be
|
1278
|
-
#
|
1334
|
+
# Whether or not the backup can be used as a differential base copy_only backup
|
1335
|
+
# can not be served as differential base
|
1279
1336
|
# Corresponds to the JSON property `differentialBase`
|
1280
1337
|
# @return [Boolean]
|
1281
1338
|
attr_accessor :differential_base
|
@@ -2054,6 +2111,25 @@ module Google
|
|
2054
2111
|
end
|
2055
2112
|
end
|
2056
2113
|
|
2114
|
+
# Database Instance reencrypt request.
|
2115
|
+
class InstancesReencryptRequest
|
2116
|
+
include Google::Apis::Core::Hashable
|
2117
|
+
|
2118
|
+
# Backup Reencryption Config
|
2119
|
+
# Corresponds to the JSON property `backupReencryptionConfig`
|
2120
|
+
# @return [Google::Apis::SqladminV1::BackupReencryptionConfig]
|
2121
|
+
attr_accessor :backup_reencryption_config
|
2122
|
+
|
2123
|
+
def initialize(**args)
|
2124
|
+
update!(**args)
|
2125
|
+
end
|
2126
|
+
|
2127
|
+
# Update properties of this object
|
2128
|
+
def update!(**args)
|
2129
|
+
@backup_reencryption_config = args[:backup_reencryption_config] if args.key?(:backup_reencryption_config)
|
2130
|
+
end
|
2131
|
+
end
|
2132
|
+
|
2057
2133
|
# Database instance restore backup request.
|
2058
2134
|
class InstancesRestoreBackupRequest
|
2059
2135
|
include Google::Apis::Core::Hashable
|
@@ -3021,6 +3097,11 @@ module Google
|
|
3021
3097
|
attr_accessor :crash_safe_replication_enabled
|
3022
3098
|
alias_method :crash_safe_replication_enabled?, :crash_safe_replication_enabled
|
3023
3099
|
|
3100
|
+
# Data cache configurations.
|
3101
|
+
# Corresponds to the JSON property `dataCacheConfig`
|
3102
|
+
# @return [Google::Apis::SqladminV1::DataCacheConfig]
|
3103
|
+
attr_accessor :data_cache_config
|
3104
|
+
|
3024
3105
|
# The size of data disk, in GB. The data disk size minimum is 10GB.
|
3025
3106
|
# Corresponds to the JSON property `dataDiskSizeGb`
|
3026
3107
|
# @return [Fixnum]
|
@@ -3055,6 +3136,11 @@ module Google
|
|
3055
3136
|
# @return [Array<Google::Apis::SqladminV1::DenyMaintenancePeriod>]
|
3056
3137
|
attr_accessor :deny_maintenance_periods
|
3057
3138
|
|
3139
|
+
# Optional. The edition of the instance.
|
3140
|
+
# Corresponds to the JSON property `edition`
|
3141
|
+
# @return [String]
|
3142
|
+
attr_accessor :edition
|
3143
|
+
|
3058
3144
|
# Insights configuration. This specifies when Cloud SQL Insights feature is
|
3059
3145
|
# enabled and optional configuration.
|
3060
3146
|
# Corresponds to the JSON property `insightsConfig`
|
@@ -3160,12 +3246,14 @@ module Google
|
|
3160
3246
|
@collation = args[:collation] if args.key?(:collation)
|
3161
3247
|
@connector_enforcement = args[:connector_enforcement] if args.key?(:connector_enforcement)
|
3162
3248
|
@crash_safe_replication_enabled = args[:crash_safe_replication_enabled] if args.key?(:crash_safe_replication_enabled)
|
3249
|
+
@data_cache_config = args[:data_cache_config] if args.key?(:data_cache_config)
|
3163
3250
|
@data_disk_size_gb = args[:data_disk_size_gb] if args.key?(:data_disk_size_gb)
|
3164
3251
|
@data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type)
|
3165
3252
|
@database_flags = args[:database_flags] if args.key?(:database_flags)
|
3166
3253
|
@database_replication_enabled = args[:database_replication_enabled] if args.key?(:database_replication_enabled)
|
3167
3254
|
@deletion_protection_enabled = args[:deletion_protection_enabled] if args.key?(:deletion_protection_enabled)
|
3168
3255
|
@deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods)
|
3256
|
+
@edition = args[:edition] if args.key?(:edition)
|
3169
3257
|
@insights_config = args[:insights_config] if args.key?(:insights_config)
|
3170
3258
|
@ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration)
|
3171
3259
|
@kind = args[:kind] if args.key?(:kind)
|
@@ -3271,6 +3359,31 @@ module Google
|
|
3271
3359
|
end
|
3272
3360
|
end
|
3273
3361
|
|
3362
|
+
# Instance get latest recovery time response.
|
3363
|
+
class SqlInstancesGetLatestRecoveryTimeResponse
|
3364
|
+
include Google::Apis::Core::Hashable
|
3365
|
+
|
3366
|
+
# This is always `sql#getLatestRecoveryTime`.
|
3367
|
+
# Corresponds to the JSON property `kind`
|
3368
|
+
# @return [String]
|
3369
|
+
attr_accessor :kind
|
3370
|
+
|
3371
|
+
# Timestamp, identifies the latest recovery time of the source instance.
|
3372
|
+
# Corresponds to the JSON property `latestRecoveryTime`
|
3373
|
+
# @return [String]
|
3374
|
+
attr_accessor :latest_recovery_time
|
3375
|
+
|
3376
|
+
def initialize(**args)
|
3377
|
+
update!(**args)
|
3378
|
+
end
|
3379
|
+
|
3380
|
+
# Update properties of this object
|
3381
|
+
def update!(**args)
|
3382
|
+
@kind = args[:kind] if args.key?(:kind)
|
3383
|
+
@latest_recovery_time = args[:latest_recovery_time] if args.key?(:latest_recovery_time)
|
3384
|
+
end
|
3385
|
+
end
|
3386
|
+
|
3274
3387
|
# Reschedule options for maintenance windows.
|
3275
3388
|
class SqlInstancesRescheduleMaintenanceRequestBody
|
3276
3389
|
include Google::Apis::Core::Hashable
|
@@ -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.40.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230627"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -52,6 +52,12 @@ module Google
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
+
class BackupReencryptionConfig
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
55
61
|
class BackupRetentionSettings
|
56
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
63
|
|
@@ -88,6 +94,12 @@ module Google
|
|
88
94
|
include Google::Apis::Core::JsonObjectSupport
|
89
95
|
end
|
90
96
|
|
97
|
+
class DataCacheConfig
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
91
103
|
class Database
|
92
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
105
|
|
@@ -298,6 +310,12 @@ module Google
|
|
298
310
|
include Google::Apis::Core::JsonObjectSupport
|
299
311
|
end
|
300
312
|
|
313
|
+
class InstancesReencryptRequest
|
314
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
|
+
|
316
|
+
include Google::Apis::Core::JsonObjectSupport
|
317
|
+
end
|
318
|
+
|
301
319
|
class InstancesRestoreBackupRequest
|
302
320
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
303
321
|
|
@@ -454,6 +472,12 @@ module Google
|
|
454
472
|
include Google::Apis::Core::JsonObjectSupport
|
455
473
|
end
|
456
474
|
|
475
|
+
class SqlInstancesGetLatestRecoveryTimeResponse
|
476
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
477
|
+
|
478
|
+
include Google::Apis::Core::JsonObjectSupport
|
479
|
+
end
|
480
|
+
|
457
481
|
class SqlInstancesRescheduleMaintenanceRequestBody
|
458
482
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
483
|
|
@@ -642,6 +666,14 @@ module Google
|
|
642
666
|
end
|
643
667
|
end
|
644
668
|
|
669
|
+
class BackupReencryptionConfig
|
670
|
+
# @private
|
671
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
672
|
+
property :backup_limit, as: 'backupLimit'
|
673
|
+
property :backup_type, as: 'backupType'
|
674
|
+
end
|
675
|
+
end
|
676
|
+
|
645
677
|
class BackupRetentionSettings
|
646
678
|
# @private
|
647
679
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -706,6 +738,7 @@ module Google
|
|
706
738
|
property :kind, as: 'kind'
|
707
739
|
property :pitr_timestamp_ms, :numeric_string => true, as: 'pitrTimestampMs'
|
708
740
|
property :point_in_time, as: 'pointInTime'
|
741
|
+
property :preferred_zone, as: 'preferredZone'
|
709
742
|
end
|
710
743
|
end
|
711
744
|
|
@@ -714,6 +747,7 @@ module Google
|
|
714
747
|
class Representation < Google::Apis::Core::JsonRepresentation
|
715
748
|
property :backend_type, as: 'backendType'
|
716
749
|
property :database_version, as: 'databaseVersion'
|
750
|
+
property :dns_name, as: 'dnsName'
|
717
751
|
collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1::IpMapping, decorator: Google::Apis::SqladminV1::IpMapping::Representation
|
718
752
|
|
719
753
|
property :kind, as: 'kind'
|
@@ -723,6 +757,13 @@ module Google
|
|
723
757
|
end
|
724
758
|
end
|
725
759
|
|
760
|
+
class DataCacheConfig
|
761
|
+
# @private
|
762
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
763
|
+
property :data_cache_enabled, as: 'dataCacheEnabled'
|
764
|
+
end
|
765
|
+
end
|
766
|
+
|
726
767
|
class Database
|
727
768
|
# @private
|
728
769
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1117,6 +1158,14 @@ module Google
|
|
1117
1158
|
end
|
1118
1159
|
end
|
1119
1160
|
|
1161
|
+
class InstancesReencryptRequest
|
1162
|
+
# @private
|
1163
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1164
|
+
property :backup_reencryption_config, as: 'backupReencryptionConfig', class: Google::Apis::SqladminV1::BackupReencryptionConfig, decorator: Google::Apis::SqladminV1::BackupReencryptionConfig::Representation
|
1165
|
+
|
1166
|
+
end
|
1167
|
+
end
|
1168
|
+
|
1120
1169
|
class InstancesRestoreBackupRequest
|
1121
1170
|
# @private
|
1122
1171
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1369,6 +1418,8 @@ module Google
|
|
1369
1418
|
property :collation, as: 'collation'
|
1370
1419
|
property :connector_enforcement, as: 'connectorEnforcement'
|
1371
1420
|
property :crash_safe_replication_enabled, as: 'crashSafeReplicationEnabled'
|
1421
|
+
property :data_cache_config, as: 'dataCacheConfig', class: Google::Apis::SqladminV1::DataCacheConfig, decorator: Google::Apis::SqladminV1::DataCacheConfig::Representation
|
1422
|
+
|
1372
1423
|
property :data_disk_size_gb, :numeric_string => true, as: 'dataDiskSizeGb'
|
1373
1424
|
property :data_disk_type, as: 'dataDiskType'
|
1374
1425
|
collection :database_flags, as: 'databaseFlags', class: Google::Apis::SqladminV1::DatabaseFlags, decorator: Google::Apis::SqladminV1::DatabaseFlags::Representation
|
@@ -1377,6 +1428,7 @@ module Google
|
|
1377
1428
|
property :deletion_protection_enabled, as: 'deletionProtectionEnabled'
|
1378
1429
|
collection :deny_maintenance_periods, as: 'denyMaintenancePeriods', class: Google::Apis::SqladminV1::DenyMaintenancePeriod, decorator: Google::Apis::SqladminV1::DenyMaintenancePeriod::Representation
|
1379
1430
|
|
1431
|
+
property :edition, as: 'edition'
|
1380
1432
|
property :insights_config, as: 'insightsConfig', class: Google::Apis::SqladminV1::InsightsConfig, decorator: Google::Apis::SqladminV1::InsightsConfig::Representation
|
1381
1433
|
|
1382
1434
|
property :ip_configuration, as: 'ipConfiguration', class: Google::Apis::SqladminV1::IpConfiguration, decorator: Google::Apis::SqladminV1::IpConfiguration::Representation
|
@@ -1427,6 +1479,14 @@ module Google
|
|
1427
1479
|
end
|
1428
1480
|
end
|
1429
1481
|
|
1482
|
+
class SqlInstancesGetLatestRecoveryTimeResponse
|
1483
|
+
# @private
|
1484
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1485
|
+
property :kind, as: 'kind'
|
1486
|
+
property :latest_recovery_time, as: 'latestRecoveryTime'
|
1487
|
+
end
|
1488
|
+
end
|
1489
|
+
|
1430
1490
|
class SqlInstancesRescheduleMaintenanceRequestBody
|
1431
1491
|
# @private
|
1432
1492
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1012,6 +1012,42 @@ module Google
|
|
1012
1012
|
execute_or_queue_command(command, &block)
|
1013
1013
|
end
|
1014
1014
|
|
1015
|
+
# Reencrypt CMEK instance with latest key version.
|
1016
|
+
# @param [String] project
|
1017
|
+
# ID of the project that contains the instance.
|
1018
|
+
# @param [String] instance
|
1019
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
1020
|
+
# @param [Google::Apis::SqladminV1::InstancesReencryptRequest] instances_reencrypt_request_object
|
1021
|
+
# @param [String] fields
|
1022
|
+
# Selector specifying which fields to include in a partial response.
|
1023
|
+
# @param [String] quota_user
|
1024
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1025
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1026
|
+
# @param [Google::Apis::RequestOptions] options
|
1027
|
+
# Request-specific options
|
1028
|
+
#
|
1029
|
+
# @yield [result, err] Result & error if block supplied
|
1030
|
+
# @yieldparam result [Google::Apis::SqladminV1::Operation] parsed result object
|
1031
|
+
# @yieldparam err [StandardError] error object if request failed
|
1032
|
+
#
|
1033
|
+
# @return [Google::Apis::SqladminV1::Operation]
|
1034
|
+
#
|
1035
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1036
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1037
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1038
|
+
def reencrypt_instance(project, instance, instances_reencrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1039
|
+
command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/reencrypt', options)
|
1040
|
+
command.request_representation = Google::Apis::SqladminV1::InstancesReencryptRequest::Representation
|
1041
|
+
command.request_object = instances_reencrypt_request_object
|
1042
|
+
command.response_representation = Google::Apis::SqladminV1::Operation::Representation
|
1043
|
+
command.response_class = Google::Apis::SqladminV1::Operation
|
1044
|
+
command.params['project'] = project unless project.nil?
|
1045
|
+
command.params['instance'] = instance unless instance.nil?
|
1046
|
+
command.query['fields'] = fields unless fields.nil?
|
1047
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1048
|
+
execute_or_queue_command(command, &block)
|
1049
|
+
end
|
1050
|
+
|
1015
1051
|
# Deletes all client certificates and generates a new server SSL certificate for
|
1016
1052
|
# the instance.
|
1017
1053
|
# @param [String] project
|
@@ -1432,6 +1468,39 @@ module Google
|
|
1432
1468
|
execute_or_queue_command(command, &block)
|
1433
1469
|
end
|
1434
1470
|
|
1471
|
+
# Get Latest Recovery Time for a given instance.
|
1472
|
+
# @param [String] project
|
1473
|
+
# Project ID of the project that contains the instance.
|
1474
|
+
# @param [String] instance
|
1475
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
1476
|
+
# @param [String] fields
|
1477
|
+
# Selector specifying which fields to include in a partial response.
|
1478
|
+
# @param [String] quota_user
|
1479
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1480
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1481
|
+
# @param [Google::Apis::RequestOptions] options
|
1482
|
+
# Request-specific options
|
1483
|
+
#
|
1484
|
+
# @yield [result, err] Result & error if block supplied
|
1485
|
+
# @yieldparam result [Google::Apis::SqladminV1::SqlInstancesGetLatestRecoveryTimeResponse] parsed result object
|
1486
|
+
# @yieldparam err [StandardError] error object if request failed
|
1487
|
+
#
|
1488
|
+
# @return [Google::Apis::SqladminV1::SqlInstancesGetLatestRecoveryTimeResponse]
|
1489
|
+
#
|
1490
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1491
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1492
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1493
|
+
def get_project_instance_latest_recovery_time(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
1494
|
+
command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/getLatestRecoveryTime', options)
|
1495
|
+
command.response_representation = Google::Apis::SqladminV1::SqlInstancesGetLatestRecoveryTimeResponse::Representation
|
1496
|
+
command.response_class = Google::Apis::SqladminV1::SqlInstancesGetLatestRecoveryTimeResponse
|
1497
|
+
command.params['project'] = project unless project.nil?
|
1498
|
+
command.params['instance'] = instance unless instance.nil?
|
1499
|
+
command.query['fields'] = fields unless fields.nil?
|
1500
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1501
|
+
execute_or_queue_command(command, &block)
|
1502
|
+
end
|
1503
|
+
|
1435
1504
|
# Perform Disk Shrink on primary instance.
|
1436
1505
|
# @param [String] project
|
1437
1506
|
# Project ID of the project that contains the instance.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.40.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.40.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|