google-apis-sqladmin_v1 0.37.0 → 0.39.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: e553f9da2c71ab295b8acd8b08234d4394867a5df24e3dffdfca66980e9bb1db
4
- data.tar.gz: ec53a84e9f12208a6314149562d2298935380175f8ddd81cd02c34a474006b78
3
+ metadata.gz: f0d2bf194e296d51de6f04720e916e7e87163e253285872025e4b17eb2fb874d
4
+ data.tar.gz: 0b37a17840a85f7cab1741a4cebb8f20ab7b50a8a8ec65847fad33b8370e83a3
5
5
  SHA512:
6
- metadata.gz: a142c489a729999f65213c03c8b4f764b3cf22e6378a4ee049f581ef7fe230c78c236f19c19c2909db5a607c6bd13ff0f75a79a3cde8d923c70c30209bc7bc1b
7
- data.tar.gz: e5986e85dd339ff1f14f0c96731c23d1c4986c48a9c9506728e25504cd9e86c9f7bd8fb8c27a3999bf74b766d397614de582aa76663bf280afd1afaae0eb1c09
6
+ metadata.gz: 656fc8d9b867933d9872b3088f15f59da182518c19cf534b982ca9cafad3116e505560532d1b3a43de874163e8787e5f1acaf3e2b8f84256b319f937c0dd21e6
7
+ data.tar.gz: 8f07138098a62b1b8837559ba12c55719fac5de59b26d14af753f77e3e23612f0f9d8763d35451497fbb0c079d773a14adc800cfeba63eafce817f72f05500d8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-sqladmin_v1
2
2
 
3
+ ### v0.39.0 (2023-06-11)
4
+
5
+ * Regenerated from discovery document revision 20230607
6
+
7
+ ### v0.38.0 (2023-06-04)
8
+
9
+ * Regenerated from discovery document revision 20230530
10
+
3
11
  ### v0.37.0 (2023-05-14)
4
12
 
5
13
  * Regenerated from discovery document revision 20230505
@@ -143,7 +143,7 @@ module Google
143
143
  # @return [String]
144
144
  attr_accessor :location
145
145
 
146
- # (Postgres only) Whether point in time recovery is enabled.
146
+ # Whether point in time recovery is enabled.
147
147
  # Corresponds to the JSON property `pointInTimeRecoveryEnabled`
148
148
  # @return [Boolean]
149
149
  attr_accessor :point_in_time_recovery_enabled
@@ -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,13 +497,6 @@ module Google
472
497
  # @return [String]
473
498
  attr_accessor :point_in_time
474
499
 
475
- # (Point-in-time recovery for PostgreSQL only) Clone to an instance in the
476
- # specified zone. If no zone is specified, clone to the same zone as the source
477
- # instance.
478
- # Corresponds to the JSON property `preferredZone`
479
- # @return [String]
480
- attr_accessor :preferred_zone
481
-
482
500
  def initialize(**args)
483
501
  update!(**args)
484
502
  end
@@ -492,7 +510,6 @@ module Google
492
510
  @kind = args[:kind] if args.key?(:kind)
493
511
  @pitr_timestamp_ms = args[:pitr_timestamp_ms] if args.key?(:pitr_timestamp_ms)
494
512
  @point_in_time = args[:point_in_time] if args.key?(:point_in_time)
495
- @preferred_zone = args[:preferred_zone] if args.key?(:preferred_zone)
496
513
  end
497
514
  end
498
515
 
@@ -519,6 +536,11 @@ module Google
519
536
  # @return [String]
520
537
  attr_accessor :database_version
521
538
 
539
+ # The dns name of the instance.
540
+ # Corresponds to the JSON property `dnsName`
541
+ # @return [String]
542
+ attr_accessor :dns_name
543
+
522
544
  # The assigned IP addresses for the instance.
523
545
  # Corresponds to the JSON property `ipAddresses`
524
546
  # @return [Array<Google::Apis::SqladminV1::IpMapping>]
@@ -548,6 +570,7 @@ module Google
548
570
  def update!(**args)
549
571
  @backend_type = args[:backend_type] if args.key?(:backend_type)
550
572
  @database_version = args[:database_version] if args.key?(:database_version)
573
+ @dns_name = args[:dns_name] if args.key?(:dns_name)
551
574
  @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
552
575
  @kind = args[:kind] if args.key?(:kind)
553
576
  @region = args[:region] if args.key?(:region)
@@ -1177,6 +1200,22 @@ module Google
1177
1200
  end
1178
1201
  end
1179
1202
 
1203
+ # A generic empty message that you can re-use to avoid defining duplicated empty
1204
+ # messages in your APIs. A typical example is to use it as the request or the
1205
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
1206
+ # protobuf.Empty) returns (google.protobuf.Empty); `
1207
+ class Empty
1208
+ include Google::Apis::Core::Hashable
1209
+
1210
+ def initialize(**args)
1211
+ update!(**args)
1212
+ end
1213
+
1214
+ # Update properties of this object
1215
+ def update!(**args)
1216
+ end
1217
+ end
1218
+
1180
1219
  # Database instance export context.
1181
1220
  class ExportContext
1182
1221
  include Google::Apis::Core::Hashable
@@ -1258,16 +1297,14 @@ module Google
1258
1297
  # @return [String]
1259
1298
  attr_accessor :bak_type
1260
1299
 
1261
- # Whether or not the export will be exeucted with COPY_ONLY, SQL Server only
1262
- # deprecated as the behavior should default to copy_only = true use
1263
- # differential_base instead
1300
+ # Deprecated: copy_only is deprecated. Use differential_base instead
1264
1301
  # Corresponds to the JSON property `copyOnly`
1265
1302
  # @return [Boolean]
1266
1303
  attr_accessor :copy_only
1267
1304
  alias_method :copy_only?, :copy_only
1268
1305
 
1269
- # Whether or not the backup can be use as differential base only non copy only
1270
- # backup can be served as differential base
1306
+ # Whether or not the backup can be used as a differential base copy_only backup
1307
+ # can not be served as differential base
1271
1308
  # Corresponds to the JSON property `differentialBase`
1272
1309
  # @return [Boolean]
1273
1310
  attr_accessor :differential_base
@@ -2046,6 +2083,25 @@ module Google
2046
2083
  end
2047
2084
  end
2048
2085
 
2086
+ # Database Instance reencrypt request.
2087
+ class InstancesReencryptRequest
2088
+ include Google::Apis::Core::Hashable
2089
+
2090
+ # Backup Reencryption Config
2091
+ # Corresponds to the JSON property `backupReencryptionConfig`
2092
+ # @return [Google::Apis::SqladminV1::BackupReencryptionConfig]
2093
+ attr_accessor :backup_reencryption_config
2094
+
2095
+ def initialize(**args)
2096
+ update!(**args)
2097
+ end
2098
+
2099
+ # Update properties of this object
2100
+ def update!(**args)
2101
+ @backup_reencryption_config = args[:backup_reencryption_config] if args.key?(:backup_reencryption_config)
2102
+ end
2103
+ end
2104
+
2049
2105
  # Database instance restore backup request.
2050
2106
  class InstancesRestoreBackupRequest
2051
2107
  include Google::Apis::Core::Hashable
@@ -3315,6 +3371,12 @@ module Google
3315
3371
  # @return [String]
3316
3372
  attr_accessor :sync_mode
3317
3373
 
3374
+ # Optional. Parallel level for initial data sync. Currently only applicable for
3375
+ # MySQL.
3376
+ # Corresponds to the JSON property `syncParallelLevel`
3377
+ # @return [String]
3378
+ attr_accessor :sync_parallel_level
3379
+
3318
3380
  def initialize(**args)
3319
3381
  update!(**args)
3320
3382
  end
@@ -3324,6 +3386,7 @@ module Google
3324
3386
  @mysql_sync_config = args[:mysql_sync_config] if args.key?(:mysql_sync_config)
3325
3387
  @skip_verification = args[:skip_verification] if args.key?(:skip_verification)
3326
3388
  @sync_mode = args[:sync_mode] if args.key?(:sync_mode)
3389
+ @sync_parallel_level = args[:sync_parallel_level] if args.key?(:sync_parallel_level)
3327
3390
  end
3328
3391
  end
3329
3392
 
@@ -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.37.0"
19
+ GEM_VERSION = "0.39.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 = "20230505"
25
+ REVISION = "20230607"
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
 
@@ -154,6 +160,12 @@ module Google
154
160
  include Google::Apis::Core::JsonObjectSupport
155
161
  end
156
162
 
163
+ class Empty
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
157
169
  class ExportContext
158
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
171
 
@@ -292,6 +304,12 @@ module Google
292
304
  include Google::Apis::Core::JsonObjectSupport
293
305
  end
294
306
 
307
+ class InstancesReencryptRequest
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
295
313
  class InstancesRestoreBackupRequest
296
314
  class Representation < Google::Apis::Core::JsonRepresentation; end
297
315
 
@@ -636,6 +654,14 @@ module Google
636
654
  end
637
655
  end
638
656
 
657
+ class BackupReencryptionConfig
658
+ # @private
659
+ class Representation < Google::Apis::Core::JsonRepresentation
660
+ property :backup_limit, as: 'backupLimit'
661
+ property :backup_type, as: 'backupType'
662
+ end
663
+ end
664
+
639
665
  class BackupRetentionSettings
640
666
  # @private
641
667
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -700,7 +726,6 @@ module Google
700
726
  property :kind, as: 'kind'
701
727
  property :pitr_timestamp_ms, :numeric_string => true, as: 'pitrTimestampMs'
702
728
  property :point_in_time, as: 'pointInTime'
703
- property :preferred_zone, as: 'preferredZone'
704
729
  end
705
730
  end
706
731
 
@@ -709,6 +734,7 @@ module Google
709
734
  class Representation < Google::Apis::Core::JsonRepresentation
710
735
  property :backend_type, as: 'backendType'
711
736
  property :database_version, as: 'databaseVersion'
737
+ property :dns_name, as: 'dnsName'
712
738
  collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1::IpMapping, decorator: Google::Apis::SqladminV1::IpMapping::Representation
713
739
 
714
740
  property :kind, as: 'kind'
@@ -869,6 +895,12 @@ module Google
869
895
  end
870
896
  end
871
897
 
898
+ class Empty
899
+ # @private
900
+ class Representation < Google::Apis::Core::JsonRepresentation
901
+ end
902
+ end
903
+
872
904
  class ExportContext
873
905
  # @private
874
906
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1106,6 +1138,14 @@ module Google
1106
1138
  end
1107
1139
  end
1108
1140
 
1141
+ class InstancesReencryptRequest
1142
+ # @private
1143
+ class Representation < Google::Apis::Core::JsonRepresentation
1144
+ property :backup_reencryption_config, as: 'backupReencryptionConfig', class: Google::Apis::SqladminV1::BackupReencryptionConfig, decorator: Google::Apis::SqladminV1::BackupReencryptionConfig::Representation
1145
+
1146
+ end
1147
+ end
1148
+
1109
1149
  class InstancesRestoreBackupRequest
1110
1150
  # @private
1111
1151
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1437,6 +1477,7 @@ module Google
1437
1477
 
1438
1478
  property :skip_verification, as: 'skipVerification'
1439
1479
  property :sync_mode, as: 'syncMode'
1480
+ property :sync_parallel_level, as: 'syncParallelLevel'
1440
1481
  end
1441
1482
  end
1442
1483
 
@@ -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
@@ -1292,6 +1328,39 @@ module Google
1292
1328
  execute_or_queue_command(command, &block)
1293
1329
  end
1294
1330
 
1331
+ # Cancels an instance operation that has been performed on an instance.
1332
+ # @param [String] project
1333
+ # Project ID of the project that contains the instance.
1334
+ # @param [String] operation
1335
+ # Instance operation ID.
1336
+ # @param [String] fields
1337
+ # Selector specifying which fields to include in a partial response.
1338
+ # @param [String] quota_user
1339
+ # Available to use for quota purposes for server-side applications. Can be any
1340
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1341
+ # @param [Google::Apis::RequestOptions] options
1342
+ # Request-specific options
1343
+ #
1344
+ # @yield [result, err] Result & error if block supplied
1345
+ # @yieldparam result [Google::Apis::SqladminV1::Empty] parsed result object
1346
+ # @yieldparam err [StandardError] error object if request failed
1347
+ #
1348
+ # @return [Google::Apis::SqladminV1::Empty]
1349
+ #
1350
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1351
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1352
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1353
+ def cancel_operation(project, operation, fields: nil, quota_user: nil, options: nil, &block)
1354
+ command = make_simple_command(:post, 'v1/projects/{project}/operations/{operation}/cancel', options)
1355
+ command.response_representation = Google::Apis::SqladminV1::Empty::Representation
1356
+ command.response_class = Google::Apis::SqladminV1::Empty
1357
+ command.params['project'] = project unless project.nil?
1358
+ command.params['operation'] = operation unless operation.nil?
1359
+ command.query['fields'] = fields unless fields.nil?
1360
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1361
+ execute_or_queue_command(command, &block)
1362
+ end
1363
+
1295
1364
  # Retrieves an instance operation that has been performed on an instance.
1296
1365
  # @param [String] project
1297
1366
  # 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.37.0
4
+ version: 0.39.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-05-14 00:00:00.000000000 Z
11
+ date: 2023-06-11 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.37.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.39.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: []