google-apis-sqladmin_v1beta4 0.49.0 → 0.51.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c69631f4458530cbdd9e9ea0586067768726fcd2bd8e1a19b8283923b9732db8
|
4
|
+
data.tar.gz: e198c96dc09e4b27680e597491e00d85feae02afb7d4000ac96b2cd55a9a7100
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ac00354cef13b33dc0c8dd0b0f88a05121a5bc263ba4220f9c3123ef54e535a35bc2d1502a381ec43b62a30b87509e1241b85c8f89daee9f2f9c9f207613ec8
|
7
|
+
data.tar.gz: 1c88677bf25c6b5a7e2a758cb72f18153d99e6e02afaa002de0e9c574e4dcfecb1fb9e0415329a56c96f14f2ece724819c8e2a38b6ad5e99e0dfffd0bb3cd78c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-sqladmin_v1beta4
|
2
2
|
|
3
|
+
### v0.51.0 (2023-06-25)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230621
|
6
|
+
|
7
|
+
### v0.50.0 (2023-06-11)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230607
|
10
|
+
|
3
11
|
### v0.49.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
|
@@ -511,6 +536,11 @@ module Google
|
|
511
536
|
# @return [String]
|
512
537
|
attr_accessor :database_version
|
513
538
|
|
539
|
+
# The dns name of the instance.
|
540
|
+
# Corresponds to the JSON property `dnsName`
|
541
|
+
# @return [String]
|
542
|
+
attr_accessor :dns_name
|
543
|
+
|
514
544
|
# The assigned IP addresses for the instance.
|
515
545
|
# Corresponds to the JSON property `ipAddresses`
|
516
546
|
# @return [Array<Google::Apis::SqladminV1beta4::IpMapping>]
|
@@ -540,6 +570,7 @@ module Google
|
|
540
570
|
def update!(**args)
|
541
571
|
@backend_type = args[:backend_type] if args.key?(:backend_type)
|
542
572
|
@database_version = args[:database_version] if args.key?(:database_version)
|
573
|
+
@dns_name = args[:dns_name] if args.key?(:dns_name)
|
543
574
|
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
|
544
575
|
@kind = args[:kind] if args.key?(:kind)
|
545
576
|
@region = args[:region] if args.key?(:region)
|
@@ -547,6 +578,26 @@ module Google
|
|
547
578
|
end
|
548
579
|
end
|
549
580
|
|
581
|
+
# Data cache configurations.
|
582
|
+
class DataCacheConfig
|
583
|
+
include Google::Apis::Core::Hashable
|
584
|
+
|
585
|
+
# Whether data cache is enabled for the instance.
|
586
|
+
# Corresponds to the JSON property `dataCacheEnabled`
|
587
|
+
# @return [Boolean]
|
588
|
+
attr_accessor :data_cache_enabled
|
589
|
+
alias_method :data_cache_enabled?, :data_cache_enabled
|
590
|
+
|
591
|
+
def initialize(**args)
|
592
|
+
update!(**args)
|
593
|
+
end
|
594
|
+
|
595
|
+
# Update properties of this object
|
596
|
+
def update!(**args)
|
597
|
+
@data_cache_enabled = args[:data_cache_enabled] if args.key?(:data_cache_enabled)
|
598
|
+
end
|
599
|
+
end
|
600
|
+
|
550
601
|
# Represents a SQL database on the Cloud SQL instance.
|
551
602
|
class Database
|
552
603
|
include Google::Apis::Core::Hashable
|
@@ -1266,16 +1317,14 @@ module Google
|
|
1266
1317
|
# @return [String]
|
1267
1318
|
attr_accessor :bak_type
|
1268
1319
|
|
1269
|
-
#
|
1270
|
-
# deprecated as the behavior should default to copy_only = true use
|
1271
|
-
# differential_base instead
|
1320
|
+
# Deprecated: copy_only is deprecated. Use differential_base instead
|
1272
1321
|
# Corresponds to the JSON property `copyOnly`
|
1273
1322
|
# @return [Boolean]
|
1274
1323
|
attr_accessor :copy_only
|
1275
1324
|
alias_method :copy_only?, :copy_only
|
1276
1325
|
|
1277
|
-
# Whether or not the backup can be
|
1278
|
-
#
|
1326
|
+
# Whether or not the backup can be used as a differential base copy_only backup
|
1327
|
+
# can not be served as differential base
|
1279
1328
|
# Corresponds to the JSON property `differentialBase`
|
1280
1329
|
# @return [Boolean]
|
1281
1330
|
attr_accessor :differential_base
|
@@ -2055,6 +2104,25 @@ module Google
|
|
2055
2104
|
end
|
2056
2105
|
end
|
2057
2106
|
|
2107
|
+
# Database Instance reencrypt request.
|
2108
|
+
class InstancesReencryptRequest
|
2109
|
+
include Google::Apis::Core::Hashable
|
2110
|
+
|
2111
|
+
# Backup Reencryption Config
|
2112
|
+
# Corresponds to the JSON property `backupReencryptionConfig`
|
2113
|
+
# @return [Google::Apis::SqladminV1beta4::BackupReencryptionConfig]
|
2114
|
+
attr_accessor :backup_reencryption_config
|
2115
|
+
|
2116
|
+
def initialize(**args)
|
2117
|
+
update!(**args)
|
2118
|
+
end
|
2119
|
+
|
2120
|
+
# Update properties of this object
|
2121
|
+
def update!(**args)
|
2122
|
+
@backup_reencryption_config = args[:backup_reencryption_config] if args.key?(:backup_reencryption_config)
|
2123
|
+
end
|
2124
|
+
end
|
2125
|
+
|
2058
2126
|
# Database instance restore backup request.
|
2059
2127
|
class RestoreInstancesBackupRequest
|
2060
2128
|
include Google::Apis::Core::Hashable
|
@@ -3022,6 +3090,11 @@ module Google
|
|
3022
3090
|
attr_accessor :crash_safe_replication_enabled
|
3023
3091
|
alias_method :crash_safe_replication_enabled?, :crash_safe_replication_enabled
|
3024
3092
|
|
3093
|
+
# Data cache configurations.
|
3094
|
+
# Corresponds to the JSON property `dataCacheConfig`
|
3095
|
+
# @return [Google::Apis::SqladminV1beta4::DataCacheConfig]
|
3096
|
+
attr_accessor :data_cache_config
|
3097
|
+
|
3025
3098
|
# The size of data disk, in GB. The data disk size minimum is 10GB.
|
3026
3099
|
# Corresponds to the JSON property `dataDiskSizeGb`
|
3027
3100
|
# @return [Fixnum]
|
@@ -3056,6 +3129,11 @@ module Google
|
|
3056
3129
|
# @return [Array<Google::Apis::SqladminV1beta4::DenyMaintenancePeriod>]
|
3057
3130
|
attr_accessor :deny_maintenance_periods
|
3058
3131
|
|
3132
|
+
# Optional. The edition of the instance.
|
3133
|
+
# Corresponds to the JSON property `edition`
|
3134
|
+
# @return [String]
|
3135
|
+
attr_accessor :edition
|
3136
|
+
|
3059
3137
|
# Insights configuration. This specifies when Cloud SQL Insights feature is
|
3060
3138
|
# enabled and optional configuration.
|
3061
3139
|
# Corresponds to the JSON property `insightsConfig`
|
@@ -3161,12 +3239,14 @@ module Google
|
|
3161
3239
|
@collation = args[:collation] if args.key?(:collation)
|
3162
3240
|
@connector_enforcement = args[:connector_enforcement] if args.key?(:connector_enforcement)
|
3163
3241
|
@crash_safe_replication_enabled = args[:crash_safe_replication_enabled] if args.key?(:crash_safe_replication_enabled)
|
3242
|
+
@data_cache_config = args[:data_cache_config] if args.key?(:data_cache_config)
|
3164
3243
|
@data_disk_size_gb = args[:data_disk_size_gb] if args.key?(:data_disk_size_gb)
|
3165
3244
|
@data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type)
|
3166
3245
|
@database_flags = args[:database_flags] if args.key?(:database_flags)
|
3167
3246
|
@database_replication_enabled = args[:database_replication_enabled] if args.key?(:database_replication_enabled)
|
3168
3247
|
@deletion_protection_enabled = args[:deletion_protection_enabled] if args.key?(:deletion_protection_enabled)
|
3169
3248
|
@deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods)
|
3249
|
+
@edition = args[:edition] if args.key?(:edition)
|
3170
3250
|
@insights_config = args[:insights_config] if args.key?(:insights_config)
|
3171
3251
|
@ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration)
|
3172
3252
|
@kind = args[:kind] if args.key?(:kind)
|
@@ -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.51.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 = "20230621"
|
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 RestoreInstancesBackupRequest
|
302
320
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
303
321
|
|
@@ -642,6 +660,14 @@ module Google
|
|
642
660
|
end
|
643
661
|
end
|
644
662
|
|
663
|
+
class BackupReencryptionConfig
|
664
|
+
# @private
|
665
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
666
|
+
property :backup_limit, as: 'backupLimit'
|
667
|
+
property :backup_type, as: 'backupType'
|
668
|
+
end
|
669
|
+
end
|
670
|
+
|
645
671
|
class BackupRetentionSettings
|
646
672
|
# @private
|
647
673
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -714,6 +740,7 @@ module Google
|
|
714
740
|
class Representation < Google::Apis::Core::JsonRepresentation
|
715
741
|
property :backend_type, as: 'backendType'
|
716
742
|
property :database_version, as: 'databaseVersion'
|
743
|
+
property :dns_name, as: 'dnsName'
|
717
744
|
collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta4::IpMapping, decorator: Google::Apis::SqladminV1beta4::IpMapping::Representation
|
718
745
|
|
719
746
|
property :kind, as: 'kind'
|
@@ -723,6 +750,13 @@ module Google
|
|
723
750
|
end
|
724
751
|
end
|
725
752
|
|
753
|
+
class DataCacheConfig
|
754
|
+
# @private
|
755
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
756
|
+
property :data_cache_enabled, as: 'dataCacheEnabled'
|
757
|
+
end
|
758
|
+
end
|
759
|
+
|
726
760
|
class Database
|
727
761
|
# @private
|
728
762
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1117,6 +1151,14 @@ module Google
|
|
1117
1151
|
end
|
1118
1152
|
end
|
1119
1153
|
|
1154
|
+
class InstancesReencryptRequest
|
1155
|
+
# @private
|
1156
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1157
|
+
property :backup_reencryption_config, as: 'backupReencryptionConfig', class: Google::Apis::SqladminV1beta4::BackupReencryptionConfig, decorator: Google::Apis::SqladminV1beta4::BackupReencryptionConfig::Representation
|
1158
|
+
|
1159
|
+
end
|
1160
|
+
end
|
1161
|
+
|
1120
1162
|
class RestoreInstancesBackupRequest
|
1121
1163
|
# @private
|
1122
1164
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1369,6 +1411,8 @@ module Google
|
|
1369
1411
|
property :collation, as: 'collation'
|
1370
1412
|
property :connector_enforcement, as: 'connectorEnforcement'
|
1371
1413
|
property :crash_safe_replication_enabled, as: 'crashSafeReplicationEnabled'
|
1414
|
+
property :data_cache_config, as: 'dataCacheConfig', class: Google::Apis::SqladminV1beta4::DataCacheConfig, decorator: Google::Apis::SqladminV1beta4::DataCacheConfig::Representation
|
1415
|
+
|
1372
1416
|
property :data_disk_size_gb, :numeric_string => true, as: 'dataDiskSizeGb'
|
1373
1417
|
property :data_disk_type, as: 'dataDiskType'
|
1374
1418
|
collection :database_flags, as: 'databaseFlags', class: Google::Apis::SqladminV1beta4::DatabaseFlags, decorator: Google::Apis::SqladminV1beta4::DatabaseFlags::Representation
|
@@ -1377,6 +1421,7 @@ module Google
|
|
1377
1421
|
property :deletion_protection_enabled, as: 'deletionProtectionEnabled'
|
1378
1422
|
collection :deny_maintenance_periods, as: 'denyMaintenancePeriods', class: Google::Apis::SqladminV1beta4::DenyMaintenancePeriod, decorator: Google::Apis::SqladminV1beta4::DenyMaintenancePeriod::Representation
|
1379
1423
|
|
1424
|
+
property :edition, as: 'edition'
|
1380
1425
|
property :insights_config, as: 'insightsConfig', class: Google::Apis::SqladminV1beta4::InsightsConfig, decorator: Google::Apis::SqladminV1beta4::InsightsConfig::Representation
|
1381
1426
|
|
1382
1427
|
property :ip_configuration, as: 'ipConfiguration', class: Google::Apis::SqladminV1beta4::IpConfiguration, decorator: Google::Apis::SqladminV1beta4::IpConfiguration::Representation
|
@@ -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::SqladminV1beta4::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::SqladminV1beta4::Operation] parsed result object
|
1031
|
+
# @yieldparam err [StandardError] error object if request failed
|
1032
|
+
#
|
1033
|
+
# @return [Google::Apis::SqladminV1beta4::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, 'sql/v1beta4/projects/{project}/instances/{instance}/reencrypt', options)
|
1040
|
+
command.request_representation = Google::Apis::SqladminV1beta4::InstancesReencryptRequest::Representation
|
1041
|
+
command.request_object = instances_reencrypt_request_object
|
1042
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1043
|
+
command.response_class = Google::Apis::SqladminV1beta4::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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.51.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-06-
|
11
|
+
date: 2023-06-25 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_v1beta4/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.51.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|