tencentcloud-sdk-postgres 3.0.533 → 3.0.535

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
  SHA1:
3
- metadata.gz: 9a8ee4ececef21c00eacb4fcf65574cd9c9d0a3b
4
- data.tar.gz: 12ebe411fc4bca87ca1f976ea81dbc6f8e5c24f5
3
+ metadata.gz: 8e4736360dcce499cfe8717d491a3fd8df04e3ed
4
+ data.tar.gz: 2cb1323f3e5f6fa902061ccbaf183986f2d40133
5
5
  SHA512:
6
- metadata.gz: 32b191943de8038c0e7b7840bd05ac056a31186c69cc49acce681060bf94cf9cf0df8b830e57bb1756177c22e7059c072c9e4aabeedf8558210e505c8deb78d3
7
- data.tar.gz: 86c4387a0ca42edf7d56f19bdee0cb43db4d14f6ccaaccae90f80009296c0e36bf813c0d7ddd880a48b6f6d18389fdbb427fae176c4c1023e990434b8a4cdb7b
6
+ metadata.gz: c47e3c9ea63374bb3cdfea1145d6143f40527cf31fbd5420bc7fc041aa6e5c55a1a7eadc40d7163b968ed16b7c3583c4e4a71fc558b02b1ac04ff69c4dffafdf
7
+ data.tar.gz: a7b12814f336e78de4d3d19c867a200981e25234c8efea11d2d017c4b1d0af770a74f9895e35088691b5f8942b792766f7db1e7a3aab3b7098d7afd3d551b1ad
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.533
1
+ 3.0.535
@@ -125,6 +125,30 @@ module TencentCloud
125
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
126
  end
127
127
 
128
+ # 本接口(CreateBaseBackup)用于创建实例的全量备份。
129
+
130
+ # @param request: Request instance for CreateBaseBackup.
131
+ # @type request: :class:`Tencentcloud::postgres::V20170312::CreateBaseBackupRequest`
132
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::CreateBaseBackupResponse`
133
+ def CreateBaseBackup(request)
134
+ body = send_request('CreateBaseBackup', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = CreateBaseBackupResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
128
152
  # 可对实例进行网络的添加操作。
129
153
 
130
154
  # @param request: Request instance for CreateDBInstanceNetworkAccess.
@@ -317,6 +341,30 @@ module TencentCloud
317
341
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
342
  end
319
343
 
344
+ # 本接口(DeleteBaseBackup)用于删除实例指定全量备份。
345
+
346
+ # @param request: Request instance for DeleteBaseBackup.
347
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DeleteBaseBackupRequest`
348
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DeleteBaseBackupResponse`
349
+ def DeleteBaseBackup(request)
350
+ body = send_request('DeleteBaseBackup', request.serialize)
351
+ response = JSON.parse(body)
352
+ if response['Response'].key?('Error') == false
353
+ model = DeleteBaseBackupResponse.new
354
+ model.deserialize(response['Response'])
355
+ model
356
+ else
357
+ code = response['Response']['Error']['Code']
358
+ message = response['Response']['Error']['Message']
359
+ reqid = response['Response']['RequestId']
360
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
361
+ end
362
+ rescue TencentCloud::Common::TencentCloudSDKException => e
363
+ raise e
364
+ rescue StandardError => e
365
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
+ end
367
+
320
368
  # 可对实例进行网络的删除操作。
321
369
 
322
370
  # @param request: Request instance for DeleteDBInstanceNetworkAccess.
@@ -341,6 +389,30 @@ module TencentCloud
341
389
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
390
  end
343
391
 
392
+ # 本接口(DeleteLogBackup)用于删除实例指定日志备份。
393
+
394
+ # @param request: Request instance for DeleteLogBackup.
395
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DeleteLogBackupRequest`
396
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DeleteLogBackupResponse`
397
+ def DeleteLogBackup(request)
398
+ body = send_request('DeleteLogBackup', request.serialize)
399
+ response = JSON.parse(body)
400
+ if response['Response'].key?('Error') == false
401
+ model = DeleteLogBackupResponse.new
402
+ model.deserialize(response['Response'])
403
+ model
404
+ else
405
+ code = response['Response']['Error']['Code']
406
+ message = response['Response']['Error']['Message']
407
+ reqid = response['Response']['RequestId']
408
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
409
+ end
410
+ rescue TencentCloud::Common::TencentCloudSDKException => e
411
+ raise e
412
+ rescue StandardError => e
413
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
414
+ end
415
+
344
416
  # 本接口(DeleteParameterTemplate)主要用于删除某个参数模板。
345
417
 
346
418
  # @param request: Request instance for DeleteParameterTemplate.
@@ -485,6 +557,54 @@ module TencentCloud
485
557
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
486
558
  end
487
559
 
560
+ # 本接口 (DescribeBackupDownloadURL) 用于获取备份下载链接。
561
+
562
+ # @param request: Request instance for DescribeBackupDownloadURL.
563
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DescribeBackupDownloadURLRequest`
564
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeBackupDownloadURLResponse`
565
+ def DescribeBackupDownloadURL(request)
566
+ body = send_request('DescribeBackupDownloadURL', request.serialize)
567
+ response = JSON.parse(body)
568
+ if response['Response'].key?('Error') == false
569
+ model = DescribeBackupDownloadURLResponse.new
570
+ model.deserialize(response['Response'])
571
+ model
572
+ else
573
+ code = response['Response']['Error']['Code']
574
+ message = response['Response']['Error']['Message']
575
+ reqid = response['Response']['RequestId']
576
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
577
+ end
578
+ rescue TencentCloud::Common::TencentCloudSDKException => e
579
+ raise e
580
+ rescue StandardError => e
581
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
+ end
583
+
584
+ # 本接口(DescribeBackupOverview)用于查询用户的备份概览信息。返回用户当前备份个数、备份占用容量、免费容量、收费容量等信息(容量单位为字节)。
585
+
586
+ # @param request: Request instance for DescribeBackupOverview.
587
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DescribeBackupOverviewRequest`
588
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeBackupOverviewResponse`
589
+ def DescribeBackupOverview(request)
590
+ body = send_request('DescribeBackupOverview', request.serialize)
591
+ response = JSON.parse(body)
592
+ if response['Response'].key?('Error') == false
593
+ model = DescribeBackupOverviewResponse.new
594
+ model.deserialize(response['Response'])
595
+ model
596
+ else
597
+ code = response['Response']['Error']['Code']
598
+ message = response['Response']['Error']['Message']
599
+ reqid = response['Response']['RequestId']
600
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
601
+ end
602
+ rescue TencentCloud::Common::TencentCloudSDKException => e
603
+ raise e
604
+ rescue StandardError => e
605
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
+ end
607
+
488
608
  # 本接口 (DescribeBackupPlans) 用于实例所有的备份计划查询
489
609
 
490
610
  # @param request: Request instance for DescribeBackupPlans.
@@ -509,6 +629,78 @@ module TencentCloud
509
629
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
630
  end
511
631
 
632
+ # 本接口(DescribeBackupSummaries)用于查询实例备份的统计信息,返回以实例为维度的备份个数、占用容量等信息(容量单位为字节)。
633
+
634
+ # @param request: Request instance for DescribeBackupSummaries.
635
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DescribeBackupSummariesRequest`
636
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeBackupSummariesResponse`
637
+ def DescribeBackupSummaries(request)
638
+ body = send_request('DescribeBackupSummaries', request.serialize)
639
+ response = JSON.parse(body)
640
+ if response['Response'].key?('Error') == false
641
+ model = DescribeBackupSummariesResponse.new
642
+ model.deserialize(response['Response'])
643
+ model
644
+ else
645
+ code = response['Response']['Error']['Code']
646
+ message = response['Response']['Error']['Message']
647
+ reqid = response['Response']['RequestId']
648
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
649
+ end
650
+ rescue TencentCloud::Common::TencentCloudSDKException => e
651
+ raise e
652
+ rescue StandardError => e
653
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
+ end
655
+
656
+ # 本接口 (DescribeBaseBackups) 用于查询基础备份列表。
657
+
658
+ # @param request: Request instance for DescribeBaseBackups.
659
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DescribeBaseBackupsRequest`
660
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeBaseBackupsResponse`
661
+ def DescribeBaseBackups(request)
662
+ body = send_request('DescribeBaseBackups', request.serialize)
663
+ response = JSON.parse(body)
664
+ if response['Response'].key?('Error') == false
665
+ model = DescribeBaseBackupsResponse.new
666
+ model.deserialize(response['Response'])
667
+ model
668
+ else
669
+ code = response['Response']['Error']['Code']
670
+ message = response['Response']['Error']['Message']
671
+ reqid = response['Response']['RequestId']
672
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
673
+ end
674
+ rescue TencentCloud::Common::TencentCloudSDKException => e
675
+ raise e
676
+ rescue StandardError => e
677
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
+ end
679
+
680
+ # 本接口(DescribeClasses)用于查询实例售卖规格。
681
+
682
+ # @param request: Request instance for DescribeClasses.
683
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DescribeClassesRequest`
684
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeClassesResponse`
685
+ def DescribeClasses(request)
686
+ body = send_request('DescribeClasses', request.serialize)
687
+ response = JSON.parse(body)
688
+ if response['Response'].key?('Error') == false
689
+ model = DescribeClassesResponse.new
690
+ model.deserialize(response['Response'])
691
+ model
692
+ else
693
+ code = response['Response']['Error']['Code']
694
+ message = response['Response']['Error']['Message']
695
+ reqid = response['Response']['RequestId']
696
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
697
+ end
698
+ rescue TencentCloud::Common::TencentCloudSDKException => e
699
+ raise e
700
+ rescue StandardError => e
701
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
702
+ end
703
+
512
704
  # 本接口(DescribeCloneDBInstanceSpec)用于查询克隆实例可选择的最小规格,包括SpecCode和磁盘。
513
705
 
514
706
  # @param request: Request instance for DescribeCloneDBInstanceSpec.
@@ -701,6 +893,30 @@ module TencentCloud
701
893
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
702
894
  end
703
895
 
896
+ # 本接口(DescribeDBVersions)用于查询支持的数据库版本号列表。
897
+
898
+ # @param request: Request instance for DescribeDBVersions.
899
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DescribeDBVersionsRequest`
900
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeDBVersionsResponse`
901
+ def DescribeDBVersions(request)
902
+ body = send_request('DescribeDBVersions', request.serialize)
903
+ response = JSON.parse(body)
904
+ if response['Response'].key?('Error') == false
905
+ model = DescribeDBVersionsResponse.new
906
+ model.deserialize(response['Response'])
907
+ model
908
+ else
909
+ code = response['Response']['Error']['Code']
910
+ message = response['Response']['Error']['Message']
911
+ reqid = response['Response']['RequestId']
912
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
913
+ end
914
+ rescue TencentCloud::Common::TencentCloudSDKException => e
915
+ raise e
916
+ rescue StandardError => e
917
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
918
+ end
919
+
704
920
  # 本接口(DescribeDBXlogs)用于获取实例Xlog列表。
705
921
 
706
922
  # @param request: Request instance for DescribeDBXlogs.
@@ -797,6 +1013,30 @@ module TencentCloud
797
1013
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
798
1014
  end
799
1015
 
1016
+ # 本接口 (DescribeLogBackups) 用于查询日志备份列表。
1017
+
1018
+ # @param request: Request instance for DescribeLogBackups.
1019
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DescribeLogBackupsRequest`
1020
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeLogBackupsResponse`
1021
+ def DescribeLogBackups(request)
1022
+ body = send_request('DescribeLogBackups', request.serialize)
1023
+ response = JSON.parse(body)
1024
+ if response['Response'].key?('Error') == false
1025
+ model = DescribeLogBackupsResponse.new
1026
+ model.deserialize(response['Response'])
1027
+ model
1028
+ else
1029
+ code = response['Response']['Error']['Code']
1030
+ message = response['Response']['Error']['Message']
1031
+ reqid = response['Response']['RequestId']
1032
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1033
+ end
1034
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1035
+ raise e
1036
+ rescue StandardError => e
1037
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1038
+ end
1039
+
800
1040
  # 本接口(DescribeOrders)用于获取订单信息。
801
1041
 
802
1042
  # @param request: Request instance for DescribeOrders.
@@ -1277,6 +1517,30 @@ module TencentCloud
1277
1517
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1278
1518
  end
1279
1519
 
1520
+ # 本接口(DeleteBaseBackup)用于修改实例指定全量备份的过期时间。
1521
+
1522
+ # @param request: Request instance for ModifyBaseBackupExpireTime.
1523
+ # @type request: :class:`Tencentcloud::postgres::V20170312::ModifyBaseBackupExpireTimeRequest`
1524
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::ModifyBaseBackupExpireTimeResponse`
1525
+ def ModifyBaseBackupExpireTime(request)
1526
+ body = send_request('ModifyBaseBackupExpireTime', request.serialize)
1527
+ response = JSON.parse(body)
1528
+ if response['Response'].key?('Error') == false
1529
+ model = ModifyBaseBackupExpireTimeResponse.new
1530
+ model.deserialize(response['Response'])
1531
+ model
1532
+ else
1533
+ code = response['Response']['Error']['Code']
1534
+ message = response['Response']['Error']['Message']
1535
+ reqid = response['Response']['RequestId']
1536
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1537
+ end
1538
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1539
+ raise e
1540
+ rescue StandardError => e
1541
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1542
+ end
1543
+
1280
1544
  # 本接口(ModifyDBInstanceDeployment)用于修改节点可用区部署方式,仅支持主实例。
1281
1545
 
1282
1546
  # @param request: Request instance for ModifyDBInstanceDeployment.
@@ -1733,6 +1997,30 @@ module TencentCloud
1733
1997
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1734
1998
  end
1735
1999
 
2000
+ # 本接口(UpgradeDBInstanceKernelVersion)用于升级实例的内核版本号。
2001
+
2002
+ # @param request: Request instance for UpgradeDBInstanceKernelVersion.
2003
+ # @type request: :class:`Tencentcloud::postgres::V20170312::UpgradeDBInstanceKernelVersionRequest`
2004
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::UpgradeDBInstanceKernelVersionResponse`
2005
+ def UpgradeDBInstanceKernelVersion(request)
2006
+ body = send_request('UpgradeDBInstanceKernelVersion', request.serialize)
2007
+ response = JSON.parse(body)
2008
+ if response['Response'].key?('Error') == false
2009
+ model = UpgradeDBInstanceKernelVersionResponse.new
2010
+ model.deserialize(response['Response'])
2011
+ model
2012
+ else
2013
+ code = response['Response']['Error']['Code']
2014
+ message = response['Response']['Error']['Message']
2015
+ reqid = response['Response']['RequestId']
2016
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2017
+ end
2018
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2019
+ raise e
2020
+ rescue StandardError => e
2021
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2022
+ end
2023
+
1736
2024
 
1737
2025
  end
1738
2026
  end
@@ -185,6 +185,142 @@ module TencentCloud
185
185
  end
186
186
  end
187
187
 
188
+ # 实例备份统计项
189
+ class BackupSummary < TencentCloud::Common::AbstractModel
190
+ # @param DBInstanceId: 实例ID。
191
+ # @type DBInstanceId: String
192
+ # @param LogBackupCount: 实例日志备份数量。
193
+ # @type LogBackupCount: Integer
194
+ # @param LogBackupSize: 实例日志备份大小。
195
+ # @type LogBackupSize: Integer
196
+ # @param ManualBaseBackupCount: 手动创建的实例基础备份数量。
197
+ # @type ManualBaseBackupCount: Integer
198
+ # @param ManualBaseBackupSize: 手动创建的实例基础备份大小。
199
+ # @type ManualBaseBackupSize: Integer
200
+ # @param AutoBaseBackupCount: 自动创建的实例基础备份数量。
201
+ # @type AutoBaseBackupCount: Integer
202
+ # @param AutoBaseBackupSize: 自动创建的实例基础备份大小。
203
+ # @type AutoBaseBackupSize: Integer
204
+ # @param TotalBackupCount: 总备份数量
205
+ # @type TotalBackupCount: Integer
206
+ # @param TotalBackupSize: 总备份大小
207
+ # @type TotalBackupSize: Integer
208
+
209
+ attr_accessor :DBInstanceId, :LogBackupCount, :LogBackupSize, :ManualBaseBackupCount, :ManualBaseBackupSize, :AutoBaseBackupCount, :AutoBaseBackupSize, :TotalBackupCount, :TotalBackupSize
210
+
211
+ def initialize(dbinstanceid=nil, logbackupcount=nil, logbackupsize=nil, manualbasebackupcount=nil, manualbasebackupsize=nil, autobasebackupcount=nil, autobasebackupsize=nil, totalbackupcount=nil, totalbackupsize=nil)
212
+ @DBInstanceId = dbinstanceid
213
+ @LogBackupCount = logbackupcount
214
+ @LogBackupSize = logbackupsize
215
+ @ManualBaseBackupCount = manualbasebackupcount
216
+ @ManualBaseBackupSize = manualbasebackupsize
217
+ @AutoBaseBackupCount = autobasebackupcount
218
+ @AutoBaseBackupSize = autobasebackupsize
219
+ @TotalBackupCount = totalbackupcount
220
+ @TotalBackupSize = totalbackupsize
221
+ end
222
+
223
+ def deserialize(params)
224
+ @DBInstanceId = params['DBInstanceId']
225
+ @LogBackupCount = params['LogBackupCount']
226
+ @LogBackupSize = params['LogBackupSize']
227
+ @ManualBaseBackupCount = params['ManualBaseBackupCount']
228
+ @ManualBaseBackupSize = params['ManualBaseBackupSize']
229
+ @AutoBaseBackupCount = params['AutoBaseBackupCount']
230
+ @AutoBaseBackupSize = params['AutoBaseBackupSize']
231
+ @TotalBackupCount = params['TotalBackupCount']
232
+ @TotalBackupSize = params['TotalBackupSize']
233
+ end
234
+ end
235
+
236
+ # 数据库基础备份信息
237
+ class BaseBackup < TencentCloud::Common::AbstractModel
238
+ # @param DBInstanceId: 实例ID。
239
+ # @type DBInstanceId: String
240
+ # @param Id: 备份文件唯一标识。
241
+ # @type Id: String
242
+ # @param Name: 备份文件名称。
243
+ # @type Name: String
244
+ # @param BackupMethod: 备份方式:物理备份、逻辑备份。
245
+ # @type BackupMethod: String
246
+ # @param BackupMode: 备份模式:自动备份、手动备份。
247
+ # @type BackupMode: String
248
+ # @param State: 备份任务状态。
249
+ # @type State: String
250
+ # @param Size: 备份集大小,单位bytes。
251
+ # @type Size: Integer
252
+ # @param StartTime: 备份的开始时间。
253
+ # @type StartTime: String
254
+ # @param FinishTime: 备份的结束时间。
255
+ # @type FinishTime: String
256
+ # @param ExpireTime: 备份的过期时间。
257
+ # @type ExpireTime: String
258
+
259
+ attr_accessor :DBInstanceId, :Id, :Name, :BackupMethod, :BackupMode, :State, :Size, :StartTime, :FinishTime, :ExpireTime
260
+
261
+ def initialize(dbinstanceid=nil, id=nil, name=nil, backupmethod=nil, backupmode=nil, state=nil, size=nil, starttime=nil, finishtime=nil, expiretime=nil)
262
+ @DBInstanceId = dbinstanceid
263
+ @Id = id
264
+ @Name = name
265
+ @BackupMethod = backupmethod
266
+ @BackupMode = backupmode
267
+ @State = state
268
+ @Size = size
269
+ @StartTime = starttime
270
+ @FinishTime = finishtime
271
+ @ExpireTime = expiretime
272
+ end
273
+
274
+ def deserialize(params)
275
+ @DBInstanceId = params['DBInstanceId']
276
+ @Id = params['Id']
277
+ @Name = params['Name']
278
+ @BackupMethod = params['BackupMethod']
279
+ @BackupMode = params['BackupMode']
280
+ @State = params['State']
281
+ @Size = params['Size']
282
+ @StartTime = params['StartTime']
283
+ @FinishTime = params['FinishTime']
284
+ @ExpireTime = params['ExpireTime']
285
+ end
286
+ end
287
+
288
+ # 数据库实例规格
289
+ class ClassInfo < TencentCloud::Common::AbstractModel
290
+ # @param SpecCode: 规格ID
291
+ # @type SpecCode: String
292
+ # @param CPU: CPU核数
293
+ # @type CPU: Integer
294
+ # @param Memory: 内存大小,单位:MB
295
+ # @type Memory: Integer
296
+ # @param MaxStorage: 该规格所支持最大存储容量,单位:GB
297
+ # @type MaxStorage: Integer
298
+ # @param MinStorage: 该规格所支持最小存储容量,单位:GB
299
+ # @type MinStorage: Integer
300
+ # @param QPS: 该规格的预估QPS
301
+ # @type QPS: Integer
302
+
303
+ attr_accessor :SpecCode, :CPU, :Memory, :MaxStorage, :MinStorage, :QPS
304
+
305
+ def initialize(speccode=nil, cpu=nil, memory=nil, maxstorage=nil, minstorage=nil, qps=nil)
306
+ @SpecCode = speccode
307
+ @CPU = cpu
308
+ @Memory = memory
309
+ @MaxStorage = maxstorage
310
+ @MinStorage = minstorage
311
+ @QPS = qps
312
+ end
313
+
314
+ def deserialize(params)
315
+ @SpecCode = params['SpecCode']
316
+ @CPU = params['CPU']
317
+ @Memory = params['Memory']
318
+ @MaxStorage = params['MaxStorage']
319
+ @MinStorage = params['MinStorage']
320
+ @QPS = params['QPS']
321
+ end
322
+ end
323
+
188
324
  # CloneDBInstance请求参数结构体
189
325
  class CloneDBInstanceRequest < TencentCloud::Common::AbstractModel
190
326
  # @param DBInstanceId: 克隆的源实例ID。
@@ -390,6 +526,38 @@ module TencentCloud
390
526
  end
391
527
  end
392
528
 
529
+ # CreateBaseBackup请求参数结构体
530
+ class CreateBaseBackupRequest < TencentCloud::Common::AbstractModel
531
+ # @param DBInstanceId: 实例ID。
532
+ # @type DBInstanceId: String
533
+
534
+ attr_accessor :DBInstanceId
535
+
536
+ def initialize(dbinstanceid=nil)
537
+ @DBInstanceId = dbinstanceid
538
+ end
539
+
540
+ def deserialize(params)
541
+ @DBInstanceId = params['DBInstanceId']
542
+ end
543
+ end
544
+
545
+ # CreateBaseBackup返回参数结构体
546
+ class CreateBaseBackupResponse < TencentCloud::Common::AbstractModel
547
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
548
+ # @type RequestId: String
549
+
550
+ attr_accessor :RequestId
551
+
552
+ def initialize(requestid=nil)
553
+ @RequestId = requestid
554
+ end
555
+
556
+ def deserialize(params)
557
+ @RequestId = params['RequestId']
558
+ end
559
+ end
560
+
393
561
  # CreateDBInstanceNetworkAccess请求参数结构体
394
562
  class CreateDBInstanceNetworkAccessRequest < TencentCloud::Common::AbstractModel
395
563
  # @param DBInstanceId: 实例ID,形如:postgres-6bwgamo3。
@@ -1468,6 +1636,42 @@ module TencentCloud
1468
1636
  end
1469
1637
  end
1470
1638
 
1639
+ # DeleteBaseBackup请求参数结构体
1640
+ class DeleteBaseBackupRequest < TencentCloud::Common::AbstractModel
1641
+ # @param DBInstanceId: 实例ID。
1642
+ # @type DBInstanceId: String
1643
+ # @param BaseBackupId: 基础备份ID。
1644
+ # @type BaseBackupId: String
1645
+
1646
+ attr_accessor :DBInstanceId, :BaseBackupId
1647
+
1648
+ def initialize(dbinstanceid=nil, basebackupid=nil)
1649
+ @DBInstanceId = dbinstanceid
1650
+ @BaseBackupId = basebackupid
1651
+ end
1652
+
1653
+ def deserialize(params)
1654
+ @DBInstanceId = params['DBInstanceId']
1655
+ @BaseBackupId = params['BaseBackupId']
1656
+ end
1657
+ end
1658
+
1659
+ # DeleteBaseBackup返回参数结构体
1660
+ class DeleteBaseBackupResponse < TencentCloud::Common::AbstractModel
1661
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1662
+ # @type RequestId: String
1663
+
1664
+ attr_accessor :RequestId
1665
+
1666
+ def initialize(requestid=nil)
1667
+ @RequestId = requestid
1668
+ end
1669
+
1670
+ def deserialize(params)
1671
+ @RequestId = params['RequestId']
1672
+ end
1673
+ end
1674
+
1471
1675
  # DeleteDBInstanceNetworkAccess请求参数结构体
1472
1676
  class DeleteDBInstanceNetworkAccessRequest < TencentCloud::Common::AbstractModel
1473
1677
  # @param DBInstanceId: 实例ID,形如:postgres-6bwgamo3。
@@ -1517,6 +1721,42 @@ module TencentCloud
1517
1721
  end
1518
1722
  end
1519
1723
 
1724
+ # DeleteLogBackup请求参数结构体
1725
+ class DeleteLogBackupRequest < TencentCloud::Common::AbstractModel
1726
+ # @param DBInstanceId: 实例ID。
1727
+ # @type DBInstanceId: String
1728
+ # @param LogBackupId: 日志备份ID。
1729
+ # @type LogBackupId: String
1730
+
1731
+ attr_accessor :DBInstanceId, :LogBackupId
1732
+
1733
+ def initialize(dbinstanceid=nil, logbackupid=nil)
1734
+ @DBInstanceId = dbinstanceid
1735
+ @LogBackupId = logbackupid
1736
+ end
1737
+
1738
+ def deserialize(params)
1739
+ @DBInstanceId = params['DBInstanceId']
1740
+ @LogBackupId = params['LogBackupId']
1741
+ end
1742
+ end
1743
+
1744
+ # DeleteLogBackup返回参数结构体
1745
+ class DeleteLogBackupResponse < TencentCloud::Common::AbstractModel
1746
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1747
+ # @type RequestId: String
1748
+
1749
+ attr_accessor :RequestId
1750
+
1751
+ def initialize(requestid=nil)
1752
+ @RequestId = requestid
1753
+ end
1754
+
1755
+ def deserialize(params)
1756
+ @RequestId = params['RequestId']
1757
+ end
1758
+ end
1759
+
1520
1760
  # DeleteParameterTemplate请求参数结构体
1521
1761
  class DeleteParameterTemplateRequest < TencentCloud::Common::AbstractModel
1522
1762
  # @param TemplateId: 参数模板ID,用于唯一确认待操作的参数模板
@@ -1774,6 +2014,117 @@ module TencentCloud
1774
2014
  end
1775
2015
  end
1776
2016
 
2017
+ # DescribeBackupDownloadURL请求参数结构体
2018
+ class DescribeBackupDownloadURLRequest < TencentCloud::Common::AbstractModel
2019
+ # @param DBInstanceId: 实例ID。
2020
+ # @type DBInstanceId: String
2021
+ # @param BackupType: 备份类型,目前支持:LogBackup,BaseBackup。
2022
+ # @type BackupType: String
2023
+ # @param BackupId: 备份的唯一ID。
2024
+ # @type BackupId: String
2025
+ # @param URLExpireTime: 链接的有效时间,默认为12小时。
2026
+ # @type URLExpireTime: Integer
2027
+
2028
+ attr_accessor :DBInstanceId, :BackupType, :BackupId, :URLExpireTime
2029
+
2030
+ def initialize(dbinstanceid=nil, backuptype=nil, backupid=nil, urlexpiretime=nil)
2031
+ @DBInstanceId = dbinstanceid
2032
+ @BackupType = backuptype
2033
+ @BackupId = backupid
2034
+ @URLExpireTime = urlexpiretime
2035
+ end
2036
+
2037
+ def deserialize(params)
2038
+ @DBInstanceId = params['DBInstanceId']
2039
+ @BackupType = params['BackupType']
2040
+ @BackupId = params['BackupId']
2041
+ @URLExpireTime = params['URLExpireTime']
2042
+ end
2043
+ end
2044
+
2045
+ # DescribeBackupDownloadURL返回参数结构体
2046
+ class DescribeBackupDownloadURLResponse < TencentCloud::Common::AbstractModel
2047
+ # @param BackupDownloadURL: 备份的下载地址。
2048
+ # @type BackupDownloadURL: String
2049
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2050
+ # @type RequestId: String
2051
+
2052
+ attr_accessor :BackupDownloadURL, :RequestId
2053
+
2054
+ def initialize(backupdownloadurl=nil, requestid=nil)
2055
+ @BackupDownloadURL = backupdownloadurl
2056
+ @RequestId = requestid
2057
+ end
2058
+
2059
+ def deserialize(params)
2060
+ @BackupDownloadURL = params['BackupDownloadURL']
2061
+ @RequestId = params['RequestId']
2062
+ end
2063
+ end
2064
+
2065
+ # DescribeBackupOverview请求参数结构体
2066
+ class DescribeBackupOverviewRequest < TencentCloud::Common::AbstractModel
2067
+
2068
+
2069
+ def initialize()
2070
+ end
2071
+
2072
+ def deserialize(params)
2073
+ end
2074
+ end
2075
+
2076
+ # DescribeBackupOverview返回参数结构体
2077
+ class DescribeBackupOverviewResponse < TencentCloud::Common::AbstractModel
2078
+ # @param TotalFreeSize: 总免费空间大小,单位byte。
2079
+ # @type TotalFreeSize: Integer
2080
+ # @param UsedFreeSize: 已使用免费空间大小,单位byte。
2081
+ # @type UsedFreeSize: Integer
2082
+ # @param UsedBillingSize: 已使用收费空间大小,单位byte。
2083
+ # @type UsedBillingSize: Integer
2084
+ # @param LogBackupCount: 日志备份数量。
2085
+ # @type LogBackupCount: Integer
2086
+ # @param LogBackupSize: 日志备份大小,单位byte。
2087
+ # @type LogBackupSize: Integer
2088
+ # @param ManualBaseBackupCount: 手动创建的基础备份数量。
2089
+ # @type ManualBaseBackupCount: Integer
2090
+ # @param ManualBaseBackupSize: 手动创建的基础备份大小,单位byte。
2091
+ # @type ManualBaseBackupSize: Integer
2092
+ # @param AutoBaseBackupCount: 自动创建的基础备份数量。
2093
+ # @type AutoBaseBackupCount: Integer
2094
+ # @param AutoBaseBackupSize: 自动创建的基础备份大小,单位byte。
2095
+ # @type AutoBaseBackupSize: Integer
2096
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2097
+ # @type RequestId: String
2098
+
2099
+ attr_accessor :TotalFreeSize, :UsedFreeSize, :UsedBillingSize, :LogBackupCount, :LogBackupSize, :ManualBaseBackupCount, :ManualBaseBackupSize, :AutoBaseBackupCount, :AutoBaseBackupSize, :RequestId
2100
+
2101
+ def initialize(totalfreesize=nil, usedfreesize=nil, usedbillingsize=nil, logbackupcount=nil, logbackupsize=nil, manualbasebackupcount=nil, manualbasebackupsize=nil, autobasebackupcount=nil, autobasebackupsize=nil, requestid=nil)
2102
+ @TotalFreeSize = totalfreesize
2103
+ @UsedFreeSize = usedfreesize
2104
+ @UsedBillingSize = usedbillingsize
2105
+ @LogBackupCount = logbackupcount
2106
+ @LogBackupSize = logbackupsize
2107
+ @ManualBaseBackupCount = manualbasebackupcount
2108
+ @ManualBaseBackupSize = manualbasebackupsize
2109
+ @AutoBaseBackupCount = autobasebackupcount
2110
+ @AutoBaseBackupSize = autobasebackupsize
2111
+ @RequestId = requestid
2112
+ end
2113
+
2114
+ def deserialize(params)
2115
+ @TotalFreeSize = params['TotalFreeSize']
2116
+ @UsedFreeSize = params['UsedFreeSize']
2117
+ @UsedBillingSize = params['UsedBillingSize']
2118
+ @LogBackupCount = params['LogBackupCount']
2119
+ @LogBackupSize = params['LogBackupSize']
2120
+ @ManualBaseBackupCount = params['ManualBaseBackupCount']
2121
+ @ManualBaseBackupSize = params['ManualBaseBackupSize']
2122
+ @AutoBaseBackupCount = params['AutoBaseBackupCount']
2123
+ @AutoBaseBackupSize = params['AutoBaseBackupSize']
2124
+ @RequestId = params['RequestId']
2125
+ end
2126
+ end
2127
+
1777
2128
  # DescribeBackupPlans请求参数结构体
1778
2129
  class DescribeBackupPlansRequest < TencentCloud::Common::AbstractModel
1779
2130
  # @param DBInstanceId: 实例ID
@@ -1817,6 +2168,213 @@ module TencentCloud
1817
2168
  end
1818
2169
  end
1819
2170
 
2171
+ # DescribeBackupSummaries请求参数结构体
2172
+ class DescribeBackupSummariesRequest < TencentCloud::Common::AbstractModel
2173
+ # @param Limit: 每页显示数量,取值范围为1-100,默认为返回10条。
2174
+ # @type Limit: Integer
2175
+ # @param Offset: 数据偏移量,从0开始。
2176
+ # @type Offset: Integer
2177
+ # @param Filters: 按照一个或者多个过滤条件进行查询,目前支持的过滤条件有:
2178
+ # db-instance-id:按照实例ID过滤,类型为string。
2179
+ # db-instance-name:按照实例名过滤,类型为string。
2180
+ # db-instance-ip:按照实例私有网络IP地址过滤,类型为string。
2181
+ # @type Filters: Array
2182
+ # @param OrderBy: 排序字段,支持TotalBackupSize,LogBackupSize,ManualBaseBackupSize,AutoBaseBackupSize。
2183
+ # @type OrderBy: String
2184
+ # @param OrderByType: 排序方式,包括升序:asc,降序:desc。
2185
+ # @type OrderByType: String
2186
+
2187
+ attr_accessor :Limit, :Offset, :Filters, :OrderBy, :OrderByType
2188
+
2189
+ def initialize(limit=nil, offset=nil, filters=nil, orderby=nil, orderbytype=nil)
2190
+ @Limit = limit
2191
+ @Offset = offset
2192
+ @Filters = filters
2193
+ @OrderBy = orderby
2194
+ @OrderByType = orderbytype
2195
+ end
2196
+
2197
+ def deserialize(params)
2198
+ @Limit = params['Limit']
2199
+ @Offset = params['Offset']
2200
+ unless params['Filters'].nil?
2201
+ @Filters = []
2202
+ params['Filters'].each do |i|
2203
+ filter_tmp = Filter.new
2204
+ filter_tmp.deserialize(i)
2205
+ @Filters << filter_tmp
2206
+ end
2207
+ end
2208
+ @OrderBy = params['OrderBy']
2209
+ @OrderByType = params['OrderByType']
2210
+ end
2211
+ end
2212
+
2213
+ # DescribeBackupSummaries返回参数结构体
2214
+ class DescribeBackupSummariesResponse < TencentCloud::Common::AbstractModel
2215
+ # @param BackupSummarySet: 备份统计信息列表。
2216
+ # @type BackupSummarySet: Array
2217
+ # @param TotalCount: 查询到的所有备份信息数量。
2218
+ # @type TotalCount: Integer
2219
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2220
+ # @type RequestId: String
2221
+
2222
+ attr_accessor :BackupSummarySet, :TotalCount, :RequestId
2223
+
2224
+ def initialize(backupsummaryset=nil, totalcount=nil, requestid=nil)
2225
+ @BackupSummarySet = backupsummaryset
2226
+ @TotalCount = totalcount
2227
+ @RequestId = requestid
2228
+ end
2229
+
2230
+ def deserialize(params)
2231
+ unless params['BackupSummarySet'].nil?
2232
+ @BackupSummarySet = []
2233
+ params['BackupSummarySet'].each do |i|
2234
+ backupsummary_tmp = BackupSummary.new
2235
+ backupsummary_tmp.deserialize(i)
2236
+ @BackupSummarySet << backupsummary_tmp
2237
+ end
2238
+ end
2239
+ @TotalCount = params['TotalCount']
2240
+ @RequestId = params['RequestId']
2241
+ end
2242
+ end
2243
+
2244
+ # DescribeBaseBackups请求参数结构体
2245
+ class DescribeBaseBackupsRequest < TencentCloud::Common::AbstractModel
2246
+ # @param MinFinishTime: 备份的最小结束时间,形如2018-01-01 00:00:00。默认为7天前。
2247
+ # @type MinFinishTime: String
2248
+ # @param MaxFinishTime: 备份的最大结束时间,形如2018-01-01 00:00:00。默认为当前时间。
2249
+ # @type MaxFinishTime: String
2250
+ # @param Filters: 按照一个或者多个过滤条件进行查询,目前支持的过滤条件有:
2251
+ # db-instance-id:按照实例ID过滤,类型为string。
2252
+ # db-instance-name:按照实例名过滤,类型为string。
2253
+ # db-instance-ip:按照实例私有网络IP地址过滤,类型为string。
2254
+ # @type Filters: Array
2255
+ # @param Limit: 每页显示数量,取值范围为1-100,默认为返回10条。
2256
+ # @type Limit: Integer
2257
+ # @param Offset: 数据偏移量,从0开始。
2258
+ # @type Offset: Integer
2259
+ # @param OrderBy: 排序字段,支持StartTime,FinishTime,Size。
2260
+ # @type OrderBy: String
2261
+ # @param OrderByType: 排序方式,包括升序:asc,降序:desc。
2262
+ # @type OrderByType: String
2263
+
2264
+ attr_accessor :MinFinishTime, :MaxFinishTime, :Filters, :Limit, :Offset, :OrderBy, :OrderByType
2265
+
2266
+ def initialize(minfinishtime=nil, maxfinishtime=nil, filters=nil, limit=nil, offset=nil, orderby=nil, orderbytype=nil)
2267
+ @MinFinishTime = minfinishtime
2268
+ @MaxFinishTime = maxfinishtime
2269
+ @Filters = filters
2270
+ @Limit = limit
2271
+ @Offset = offset
2272
+ @OrderBy = orderby
2273
+ @OrderByType = orderbytype
2274
+ end
2275
+
2276
+ def deserialize(params)
2277
+ @MinFinishTime = params['MinFinishTime']
2278
+ @MaxFinishTime = params['MaxFinishTime']
2279
+ unless params['Filters'].nil?
2280
+ @Filters = []
2281
+ params['Filters'].each do |i|
2282
+ filter_tmp = Filter.new
2283
+ filter_tmp.deserialize(i)
2284
+ @Filters << filter_tmp
2285
+ end
2286
+ end
2287
+ @Limit = params['Limit']
2288
+ @Offset = params['Offset']
2289
+ @OrderBy = params['OrderBy']
2290
+ @OrderByType = params['OrderByType']
2291
+ end
2292
+ end
2293
+
2294
+ # DescribeBaseBackups返回参数结构体
2295
+ class DescribeBaseBackupsResponse < TencentCloud::Common::AbstractModel
2296
+ # @param TotalCount: 查询到的基础备份数量。
2297
+ # @type TotalCount: Integer
2298
+ # @param BaseBackupSet: 基础备份详细信息列表。
2299
+ # @type BaseBackupSet: Array
2300
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2301
+ # @type RequestId: String
2302
+
2303
+ attr_accessor :TotalCount, :BaseBackupSet, :RequestId
2304
+
2305
+ def initialize(totalcount=nil, basebackupset=nil, requestid=nil)
2306
+ @TotalCount = totalcount
2307
+ @BaseBackupSet = basebackupset
2308
+ @RequestId = requestid
2309
+ end
2310
+
2311
+ def deserialize(params)
2312
+ @TotalCount = params['TotalCount']
2313
+ unless params['BaseBackupSet'].nil?
2314
+ @BaseBackupSet = []
2315
+ params['BaseBackupSet'].each do |i|
2316
+ basebackup_tmp = BaseBackup.new
2317
+ basebackup_tmp.deserialize(i)
2318
+ @BaseBackupSet << basebackup_tmp
2319
+ end
2320
+ end
2321
+ @RequestId = params['RequestId']
2322
+ end
2323
+ end
2324
+
2325
+ # DescribeClasses请求参数结构体
2326
+ class DescribeClassesRequest < TencentCloud::Common::AbstractModel
2327
+ # @param Zone: 可用区ID。可以通过接口DescribeZones获取。
2328
+ # @type Zone: String
2329
+ # @param DBEngine: 数据库引擎,支持:
2330
+ # 1、postgresql(云数据库PostgreSQL);
2331
+ # 2、mssql_compatible(MSSQL兼容-云数据库PostgreSQL);
2332
+ # @type DBEngine: String
2333
+ # @param DBMajorVersion: 数据库主版本号。例如12,13,可以通过接口DescribeDBVersions获取。
2334
+ # @type DBMajorVersion: String
2335
+
2336
+ attr_accessor :Zone, :DBEngine, :DBMajorVersion
2337
+
2338
+ def initialize(zone=nil, dbengine=nil, dbmajorversion=nil)
2339
+ @Zone = zone
2340
+ @DBEngine = dbengine
2341
+ @DBMajorVersion = dbmajorversion
2342
+ end
2343
+
2344
+ def deserialize(params)
2345
+ @Zone = params['Zone']
2346
+ @DBEngine = params['DBEngine']
2347
+ @DBMajorVersion = params['DBMajorVersion']
2348
+ end
2349
+ end
2350
+
2351
+ # DescribeClasses返回参数结构体
2352
+ class DescribeClassesResponse < TencentCloud::Common::AbstractModel
2353
+ # @param ClassInfoSet: 数据库规格列表
2354
+ # @type ClassInfoSet: Array
2355
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2356
+ # @type RequestId: String
2357
+
2358
+ attr_accessor :ClassInfoSet, :RequestId
2359
+
2360
+ def initialize(classinfoset=nil, requestid=nil)
2361
+ @ClassInfoSet = classinfoset
2362
+ @RequestId = requestid
2363
+ end
2364
+
2365
+ def deserialize(params)
2366
+ unless params['ClassInfoSet'].nil?
2367
+ @ClassInfoSet = []
2368
+ params['ClassInfoSet'].each do |i|
2369
+ classinfo_tmp = ClassInfo.new
2370
+ classinfo_tmp.deserialize(i)
2371
+ @ClassInfoSet << classinfo_tmp
2372
+ end
2373
+ end
2374
+ @RequestId = params['RequestId']
2375
+ end
2376
+ end
2377
+
1820
2378
  # DescribeCloneDBInstanceSpec请求参数结构体
1821
2379
  class DescribeCloneDBInstanceSpecRequest < TencentCloud::Common::AbstractModel
1822
2380
  # @param DBInstanceId: 实例ID。
@@ -2286,6 +2844,44 @@ module TencentCloud
2286
2844
  end
2287
2845
  end
2288
2846
 
2847
+ # DescribeDBVersions请求参数结构体
2848
+ class DescribeDBVersionsRequest < TencentCloud::Common::AbstractModel
2849
+
2850
+
2851
+ def initialize()
2852
+ end
2853
+
2854
+ def deserialize(params)
2855
+ end
2856
+ end
2857
+
2858
+ # DescribeDBVersions返回参数结构体
2859
+ class DescribeDBVersionsResponse < TencentCloud::Common::AbstractModel
2860
+ # @param VersionSet: 数据库版本号信息列表
2861
+ # @type VersionSet: Array
2862
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2863
+ # @type RequestId: String
2864
+
2865
+ attr_accessor :VersionSet, :RequestId
2866
+
2867
+ def initialize(versionset=nil, requestid=nil)
2868
+ @VersionSet = versionset
2869
+ @RequestId = requestid
2870
+ end
2871
+
2872
+ def deserialize(params)
2873
+ unless params['VersionSet'].nil?
2874
+ @VersionSet = []
2875
+ params['VersionSet'].each do |i|
2876
+ version_tmp = Version.new
2877
+ version_tmp.deserialize(i)
2878
+ @VersionSet << version_tmp
2879
+ end
2880
+ end
2881
+ @RequestId = params['RequestId']
2882
+ end
2883
+ end
2884
+
2289
2885
  # DescribeDBXlogs请求参数结构体
2290
2886
  class DescribeDBXlogsRequest < TencentCloud::Common::AbstractModel
2291
2887
  # @param DBInstanceId: 实例ID,形如postgres-4wdeb0zv。
@@ -2481,6 +3077,87 @@ module TencentCloud
2481
3077
  end
2482
3078
  end
2483
3079
 
3080
+ # DescribeLogBackups请求参数结构体
3081
+ class DescribeLogBackupsRequest < TencentCloud::Common::AbstractModel
3082
+ # @param MinFinishTime: 备份的最小结束时间,形如2018-01-01 00:00:00。默认为7天前。
3083
+ # @type MinFinishTime: String
3084
+ # @param MaxFinishTime: 备份的最大结束时间,形如2018-01-01 00:00:00。默认为当前时间。
3085
+ # @type MaxFinishTime: String
3086
+ # @param Filters: 按照一个或者多个过滤条件进行查询,目前支持的过滤条件有:
3087
+ # db-instance-id:按照实例ID过滤,类型为string。
3088
+ # db-instance-name:按照实例名过滤,类型为string。
3089
+ # db-instance-ip:按照实例私有网络IP地址过滤,类型为string。
3090
+ # @type Filters: Array
3091
+ # @param Limit: 每页显示数量,取值范围为1-100,默认为返回10条。
3092
+ # @type Limit: Integer
3093
+ # @param Offset: 数据偏移量,从0开始。
3094
+ # @type Offset: Integer
3095
+ # @param OrderBy: 排序字段,支持StartTime,FinishTime,Size。
3096
+ # @type OrderBy: String
3097
+ # @param OrderByType: 排序方式,包括升序:asc,降序:desc。
3098
+ # @type OrderByType: String
3099
+
3100
+ attr_accessor :MinFinishTime, :MaxFinishTime, :Filters, :Limit, :Offset, :OrderBy, :OrderByType
3101
+
3102
+ def initialize(minfinishtime=nil, maxfinishtime=nil, filters=nil, limit=nil, offset=nil, orderby=nil, orderbytype=nil)
3103
+ @MinFinishTime = minfinishtime
3104
+ @MaxFinishTime = maxfinishtime
3105
+ @Filters = filters
3106
+ @Limit = limit
3107
+ @Offset = offset
3108
+ @OrderBy = orderby
3109
+ @OrderByType = orderbytype
3110
+ end
3111
+
3112
+ def deserialize(params)
3113
+ @MinFinishTime = params['MinFinishTime']
3114
+ @MaxFinishTime = params['MaxFinishTime']
3115
+ unless params['Filters'].nil?
3116
+ @Filters = []
3117
+ params['Filters'].each do |i|
3118
+ filter_tmp = Filter.new
3119
+ filter_tmp.deserialize(i)
3120
+ @Filters << filter_tmp
3121
+ end
3122
+ end
3123
+ @Limit = params['Limit']
3124
+ @Offset = params['Offset']
3125
+ @OrderBy = params['OrderBy']
3126
+ @OrderByType = params['OrderByType']
3127
+ end
3128
+ end
3129
+
3130
+ # DescribeLogBackups返回参数结构体
3131
+ class DescribeLogBackupsResponse < TencentCloud::Common::AbstractModel
3132
+ # @param TotalCount: 查询到的日志备份数量。
3133
+ # @type TotalCount: Integer
3134
+ # @param LogBackupSet: 日志备份详细信息列表。
3135
+ # @type LogBackupSet: Array
3136
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3137
+ # @type RequestId: String
3138
+
3139
+ attr_accessor :TotalCount, :LogBackupSet, :RequestId
3140
+
3141
+ def initialize(totalcount=nil, logbackupset=nil, requestid=nil)
3142
+ @TotalCount = totalcount
3143
+ @LogBackupSet = logbackupset
3144
+ @RequestId = requestid
3145
+ end
3146
+
3147
+ def deserialize(params)
3148
+ @TotalCount = params['TotalCount']
3149
+ unless params['LogBackupSet'].nil?
3150
+ @LogBackupSet = []
3151
+ params['LogBackupSet'].each do |i|
3152
+ logbackup_tmp = LogBackup.new
3153
+ logbackup_tmp.deserialize(i)
3154
+ @LogBackupSet << logbackup_tmp
3155
+ end
3156
+ end
3157
+ @RequestId = params['RequestId']
3158
+ end
3159
+ end
3160
+
2484
3161
  # DescribeOrders请求参数结构体
2485
3162
  class DescribeOrdersRequest < TencentCloud::Common::AbstractModel
2486
3163
  # @param DealNames: 订单名集合
@@ -3719,6 +4396,58 @@ module TencentCloud
3719
4396
  end
3720
4397
  end
3721
4398
 
4399
+ # 数据库日志备份信息
4400
+ class LogBackup < TencentCloud::Common::AbstractModel
4401
+ # @param DBInstanceId: 实例ID。
4402
+ # @type DBInstanceId: String
4403
+ # @param Id: 备份文件唯一标识。
4404
+ # @type Id: String
4405
+ # @param Name: 备份文件名称。
4406
+ # @type Name: String
4407
+ # @param BackupMethod: 备份方式:物理备份、逻辑备份。
4408
+ # @type BackupMethod: String
4409
+ # @param BackupMode: 备份模式:自动备份、手动备份。
4410
+ # @type BackupMode: String
4411
+ # @param State: 备份任务状态。
4412
+ # @type State: String
4413
+ # @param Size: 备份集大小,单位bytes。
4414
+ # @type Size: Integer
4415
+ # @param StartTime: 备份的开始时间。
4416
+ # @type StartTime: String
4417
+ # @param FinishTime: 备份的结束时间。
4418
+ # @type FinishTime: String
4419
+ # @param ExpireTime: 备份的过期时间。
4420
+ # @type ExpireTime: String
4421
+
4422
+ attr_accessor :DBInstanceId, :Id, :Name, :BackupMethod, :BackupMode, :State, :Size, :StartTime, :FinishTime, :ExpireTime
4423
+
4424
+ def initialize(dbinstanceid=nil, id=nil, name=nil, backupmethod=nil, backupmode=nil, state=nil, size=nil, starttime=nil, finishtime=nil, expiretime=nil)
4425
+ @DBInstanceId = dbinstanceid
4426
+ @Id = id
4427
+ @Name = name
4428
+ @BackupMethod = backupmethod
4429
+ @BackupMode = backupmode
4430
+ @State = state
4431
+ @Size = size
4432
+ @StartTime = starttime
4433
+ @FinishTime = finishtime
4434
+ @ExpireTime = expiretime
4435
+ end
4436
+
4437
+ def deserialize(params)
4438
+ @DBInstanceId = params['DBInstanceId']
4439
+ @Id = params['Id']
4440
+ @Name = params['Name']
4441
+ @BackupMethod = params['BackupMethod']
4442
+ @BackupMode = params['BackupMode']
4443
+ @State = params['State']
4444
+ @Size = params['Size']
4445
+ @StartTime = params['StartTime']
4446
+ @FinishTime = params['FinishTime']
4447
+ @ExpireTime = params['ExpireTime']
4448
+ end
4449
+ end
4450
+
3722
4451
  # ModifyAccountRemark请求参数结构体
3723
4452
  class ModifyAccountRemarkRequest < TencentCloud::Common::AbstractModel
3724
4453
  # @param DBInstanceId: 实例ID,形如postgres-4wdeb0zv
@@ -3807,6 +4536,46 @@ module TencentCloud
3807
4536
  end
3808
4537
  end
3809
4538
 
4539
+ # ModifyBaseBackupExpireTime请求参数结构体
4540
+ class ModifyBaseBackupExpireTimeRequest < TencentCloud::Common::AbstractModel
4541
+ # @param DBInstanceId: 实例ID。
4542
+ # @type DBInstanceId: String
4543
+ # @param BaseBackupId: 基础备份ID。
4544
+ # @type BaseBackupId: String
4545
+ # @param NewExpireTime: 新过期时间。
4546
+ # @type NewExpireTime: String
4547
+
4548
+ attr_accessor :DBInstanceId, :BaseBackupId, :NewExpireTime
4549
+
4550
+ def initialize(dbinstanceid=nil, basebackupid=nil, newexpiretime=nil)
4551
+ @DBInstanceId = dbinstanceid
4552
+ @BaseBackupId = basebackupid
4553
+ @NewExpireTime = newexpiretime
4554
+ end
4555
+
4556
+ def deserialize(params)
4557
+ @DBInstanceId = params['DBInstanceId']
4558
+ @BaseBackupId = params['BaseBackupId']
4559
+ @NewExpireTime = params['NewExpireTime']
4560
+ end
4561
+ end
4562
+
4563
+ # ModifyBaseBackupExpireTime返回参数结构体
4564
+ class ModifyBaseBackupExpireTimeResponse < TencentCloud::Common::AbstractModel
4565
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4566
+ # @type RequestId: String
4567
+
4568
+ attr_accessor :RequestId
4569
+
4570
+ def initialize(requestid=nil)
4571
+ @RequestId = requestid
4572
+ end
4573
+
4574
+ def deserialize(params)
4575
+ @RequestId = params['RequestId']
4576
+ end
4577
+ end
4578
+
3810
4579
  # ModifyDBInstanceDeployment请求参数结构体
3811
4580
  class ModifyDBInstanceDeploymentRequest < TencentCloud::Common::AbstractModel
3812
4581
  # @param DBInstanceId: 实例ID。
@@ -5638,6 +6407,63 @@ module TencentCloud
5638
6407
  end
5639
6408
  end
5640
6409
 
6410
+ # UpgradeDBInstanceKernelVersion请求参数结构体
6411
+ class UpgradeDBInstanceKernelVersionRequest < TencentCloud::Common::AbstractModel
6412
+ # @param DBInstanceId: 实例ID
6413
+ # @type DBInstanceId: String
6414
+ # @param TargetDBKernelVersion: 升级的目标内核版本号。可以通过接口DescribeDBVersions的返回字段AvailableUpgradeTarget获取。
6415
+ # @type TargetDBKernelVersion: String
6416
+ # @param SwitchTag: 指定实例升级内核版本号完成后的切换时间。可选值,
6417
+ # 0:立即切换(默认值)。
6418
+ # 1:指定时间切换。
6419
+ # 2:维护时间窗口内切换。
6420
+ # @type SwitchTag: Integer
6421
+ # @param SwitchStartTime: 切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。
6422
+ # @type SwitchStartTime: String
6423
+ # @param SwitchEndTime: 切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。SwitchStartTime和SwitchEndTime时间窗口不能小于30分钟。
6424
+ # @type SwitchEndTime: String
6425
+ # @param DryRun: 是否对本次升级实例内核版本号操作执行预检查。可选值,
6426
+ # true:执行预检查操作,不升级内核版本号。检查项目包含请求参数、内核版本号兼容性、实例参数等。
6427
+ # false:发送正常请求(默认值),通过检查后直接升级内核版本号。
6428
+ # @type DryRun: Boolean
6429
+
6430
+ attr_accessor :DBInstanceId, :TargetDBKernelVersion, :SwitchTag, :SwitchStartTime, :SwitchEndTime, :DryRun
6431
+
6432
+ def initialize(dbinstanceid=nil, targetdbkernelversion=nil, switchtag=nil, switchstarttime=nil, switchendtime=nil, dryrun=nil)
6433
+ @DBInstanceId = dbinstanceid
6434
+ @TargetDBKernelVersion = targetdbkernelversion
6435
+ @SwitchTag = switchtag
6436
+ @SwitchStartTime = switchstarttime
6437
+ @SwitchEndTime = switchendtime
6438
+ @DryRun = dryrun
6439
+ end
6440
+
6441
+ def deserialize(params)
6442
+ @DBInstanceId = params['DBInstanceId']
6443
+ @TargetDBKernelVersion = params['TargetDBKernelVersion']
6444
+ @SwitchTag = params['SwitchTag']
6445
+ @SwitchStartTime = params['SwitchStartTime']
6446
+ @SwitchEndTime = params['SwitchEndTime']
6447
+ @DryRun = params['DryRun']
6448
+ end
6449
+ end
6450
+
6451
+ # UpgradeDBInstanceKernelVersion返回参数结构体
6452
+ class UpgradeDBInstanceKernelVersionResponse < TencentCloud::Common::AbstractModel
6453
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6454
+ # @type RequestId: String
6455
+
6456
+ attr_accessor :RequestId
6457
+
6458
+ def initialize(requestid=nil)
6459
+ @RequestId = requestid
6460
+ end
6461
+
6462
+ def deserialize(params)
6463
+ @RequestId = params['RequestId']
6464
+ end
6465
+ end
6466
+
5641
6467
  # UpgradeDBInstance请求参数结构体
5642
6468
  class UpgradeDBInstanceRequest < TencentCloud::Common::AbstractModel
5643
6469
  # @param Memory: 升级后的实例内存大小,单位GB
@@ -5710,6 +6536,51 @@ module TencentCloud
5710
6536
  end
5711
6537
  end
5712
6538
 
6539
+ # 数据库版本号信息
6540
+ class Version < TencentCloud::Common::AbstractModel
6541
+ # @param DBEngine: 数据库引擎,支持:
6542
+ # 1、postgresql(云数据库PostgreSQL);
6543
+ # 2、mssql_compatible(MSSQL兼容-云数据库PostgreSQL);
6544
+ # @type DBEngine: String
6545
+ # @param DBVersion: 数据库版本,例如:12.4
6546
+ # @type DBVersion: String
6547
+ # @param DBMajorVersion: 数据库主要版本,例如:12
6548
+ # @type DBMajorVersion: String
6549
+ # @param DBKernelVersion: 数据库内核版本,例如:v12.4_r1.3
6550
+ # @type DBKernelVersion: String
6551
+ # @param SupportedFeatureNames: 数据库内核支持的特性列表。例如,
6552
+ # TDE:支持数据加密。
6553
+ # @type SupportedFeatureNames: Array
6554
+ # @param Status: 数据库版本状态,包括:
6555
+ # AVAILABLE:可用;
6556
+ # DEPRECATED:已弃用。
6557
+ # @type Status: String
6558
+ # @param AvailableUpgradeTarget: 该数据库版本(DBKernelVersion)可以升级到的版本号列表。
6559
+ # @type AvailableUpgradeTarget: Array
6560
+
6561
+ attr_accessor :DBEngine, :DBVersion, :DBMajorVersion, :DBKernelVersion, :SupportedFeatureNames, :Status, :AvailableUpgradeTarget
6562
+
6563
+ def initialize(dbengine=nil, dbversion=nil, dbmajorversion=nil, dbkernelversion=nil, supportedfeaturenames=nil, status=nil, availableupgradetarget=nil)
6564
+ @DBEngine = dbengine
6565
+ @DBVersion = dbversion
6566
+ @DBMajorVersion = dbmajorversion
6567
+ @DBKernelVersion = dbkernelversion
6568
+ @SupportedFeatureNames = supportedfeaturenames
6569
+ @Status = status
6570
+ @AvailableUpgradeTarget = availableupgradetarget
6571
+ end
6572
+
6573
+ def deserialize(params)
6574
+ @DBEngine = params['DBEngine']
6575
+ @DBVersion = params['DBVersion']
6576
+ @DBMajorVersion = params['DBMajorVersion']
6577
+ @DBKernelVersion = params['DBKernelVersion']
6578
+ @SupportedFeatureNames = params['SupportedFeatureNames']
6579
+ @Status = params['Status']
6580
+ @AvailableUpgradeTarget = params['AvailableUpgradeTarget']
6581
+ end
6582
+ end
6583
+
5713
6584
  # 数据库Xlog信息
5714
6585
  class Xlog < TencentCloud::Common::AbstractModel
5715
6586
  # @param Id: 备份文件唯一标识
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-postgres
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.533
4
+ version: 3.0.535
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-20 00:00:00.000000000 Z
11
+ date: 2023-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common