tencentcloud-sdk-postgres 1.0.239 → 1.0.240
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20170312/client.rb +144 -0
- data/lib/v20170312/models.rb +386 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82cd403ae1a7708af84f7f8f58739f589d986638
|
4
|
+
data.tar.gz: 9c7f9c3ad2fa4a6f98b9a9839d33bc9d247e2da3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aee8744c1b46633948ceef42955a067b30f79dff2e907dfb9b0924591ab6b1c92140d749c1e162c8aa95352e667f9e8036b2b9f50ea53e4e0c0d1cf8fd0cabe
|
7
|
+
data.tar.gz: 3048ef7d22f13b68cc6a0635806b61e5290379994a103dbcf9c0ded33cfb699eacc6d746b4b5a2c0d7a974f9848b24d7ffcc89b595ddd64b8591369d73c678b7
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.240
|
data/lib/v20170312/client.rb
CHANGED
@@ -53,6 +53,30 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 用于克隆实例,支持指定备份集、指定时间点进行克隆。
|
57
|
+
|
58
|
+
# @param request: Request instance for CloneDBInstance.
|
59
|
+
# @type request: :class:`Tencentcloud::postgres::V20170312::CloneDBInstanceRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::postgres::V20170312::CloneDBInstanceResponse`
|
61
|
+
def CloneDBInstance(request)
|
62
|
+
body = send_request('CloneDBInstance', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = CloneDBInstanceResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
56
80
|
# 本接口(CloseDBExtranetAccess)用于关闭实例外网链接。
|
57
81
|
|
58
82
|
# @param request: Request instance for CloseDBExtranetAccess.
|
@@ -293,6 +317,78 @@ module TencentCloud
|
|
293
317
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
318
|
end
|
295
319
|
|
320
|
+
# 本接口(DescribeAvailableRecoveryTime)用于查询实例可恢复的时间范围。
|
321
|
+
|
322
|
+
# @param request: Request instance for DescribeAvailableRecoveryTime.
|
323
|
+
# @type request: :class:`Tencentcloud::postgres::V20170312::DescribeAvailableRecoveryTimeRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeAvailableRecoveryTimeResponse`
|
325
|
+
def DescribeAvailableRecoveryTime(request)
|
326
|
+
body = send_request('DescribeAvailableRecoveryTime', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = DescribeAvailableRecoveryTimeResponse.new
|
330
|
+
model.deserialize(response['Response'])
|
331
|
+
model
|
332
|
+
else
|
333
|
+
code = response['Response']['Error']['Code']
|
334
|
+
message = response['Response']['Error']['Message']
|
335
|
+
reqid = response['Response']['RequestId']
|
336
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
337
|
+
end
|
338
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
339
|
+
raise e
|
340
|
+
rescue StandardError => e
|
341
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
|
+
end
|
343
|
+
|
344
|
+
# 本接口 (DescribeBackupPlans) 用于实例所有的备份计划查询
|
345
|
+
|
346
|
+
# @param request: Request instance for DescribeBackupPlans.
|
347
|
+
# @type request: :class:`Tencentcloud::postgres::V20170312::DescribeBackupPlansRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeBackupPlansResponse`
|
349
|
+
def DescribeBackupPlans(request)
|
350
|
+
body = send_request('DescribeBackupPlans', request.serialize)
|
351
|
+
response = JSON.parse(body)
|
352
|
+
if response['Response'].key?('Error') == false
|
353
|
+
model = DescribeBackupPlansResponse.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
|
+
|
368
|
+
# 本接口(DescribeCloneDBInstanceSpec)用于查询克隆实例可选择的最小规格,包括SpecCode和磁盘。
|
369
|
+
|
370
|
+
# @param request: Request instance for DescribeCloneDBInstanceSpec.
|
371
|
+
# @type request: :class:`Tencentcloud::postgres::V20170312::DescribeCloneDBInstanceSpecRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeCloneDBInstanceSpecResponse`
|
373
|
+
def DescribeCloneDBInstanceSpec(request)
|
374
|
+
body = send_request('DescribeCloneDBInstanceSpec', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = DescribeCloneDBInstanceSpecResponse.new
|
378
|
+
model.deserialize(response['Response'])
|
379
|
+
model
|
380
|
+
else
|
381
|
+
code = response['Response']['Error']['Code']
|
382
|
+
message = response['Response']['Error']['Message']
|
383
|
+
reqid = response['Response']['RequestId']
|
384
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
385
|
+
end
|
386
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
387
|
+
raise e
|
388
|
+
rescue StandardError => e
|
389
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
|
+
end
|
391
|
+
|
296
392
|
# 本接口(DescribeDBBackups)用于查询实例备份列表。
|
297
393
|
|
298
394
|
# @param request: Request instance for DescribeDBBackups.
|
@@ -893,6 +989,54 @@ module TencentCloud
|
|
893
989
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
894
990
|
end
|
895
991
|
|
992
|
+
# 本接口 (ModifyBackupPlan) 用于实例备份计划的修改,默认是在每天的凌晨开始全量备份,备份保留时长是7天。可以根据此接口指定时间进行实例的备份。
|
993
|
+
|
994
|
+
# @param request: Request instance for ModifyBackupPlan.
|
995
|
+
# @type request: :class:`Tencentcloud::postgres::V20170312::ModifyBackupPlanRequest`
|
996
|
+
# @rtype: :class:`Tencentcloud::postgres::V20170312::ModifyBackupPlanResponse`
|
997
|
+
def ModifyBackupPlan(request)
|
998
|
+
body = send_request('ModifyBackupPlan', request.serialize)
|
999
|
+
response = JSON.parse(body)
|
1000
|
+
if response['Response'].key?('Error') == false
|
1001
|
+
model = ModifyBackupPlanResponse.new
|
1002
|
+
model.deserialize(response['Response'])
|
1003
|
+
model
|
1004
|
+
else
|
1005
|
+
code = response['Response']['Error']['Code']
|
1006
|
+
message = response['Response']['Error']['Message']
|
1007
|
+
reqid = response['Response']['RequestId']
|
1008
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1009
|
+
end
|
1010
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1011
|
+
raise e
|
1012
|
+
rescue StandardError => e
|
1013
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1014
|
+
end
|
1015
|
+
|
1016
|
+
# 本接口(ModifyDBInstanceDeployment)用于修改节点可用区部署方式,仅支持主实例。
|
1017
|
+
|
1018
|
+
# @param request: Request instance for ModifyDBInstanceDeployment.
|
1019
|
+
# @type request: :class:`Tencentcloud::postgres::V20170312::ModifyDBInstanceDeploymentRequest`
|
1020
|
+
# @rtype: :class:`Tencentcloud::postgres::V20170312::ModifyDBInstanceDeploymentResponse`
|
1021
|
+
def ModifyDBInstanceDeployment(request)
|
1022
|
+
body = send_request('ModifyDBInstanceDeployment', request.serialize)
|
1023
|
+
response = JSON.parse(body)
|
1024
|
+
if response['Response'].key?('Error') == false
|
1025
|
+
model = ModifyDBInstanceDeploymentResponse.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
|
+
|
896
1040
|
# 本接口(ModifyDBInstanceName)用于修改postgresql实例名字。
|
897
1041
|
|
898
1042
|
# @param request: Request instance for ModifyDBInstanceName.
|
data/lib/v20170312/models.rb
CHANGED
@@ -157,6 +157,158 @@ module TencentCloud
|
|
157
157
|
end
|
158
158
|
end
|
159
159
|
|
160
|
+
# 备份计划
|
161
|
+
class BackupPlan < TencentCloud::Common::AbstractModel
|
162
|
+
# @param BackupPeriod: 备份周期
|
163
|
+
# @type BackupPeriod: String
|
164
|
+
# @param BaseBackupRetentionPeriod: 基础备份保留时长
|
165
|
+
# @type BaseBackupRetentionPeriod: Integer
|
166
|
+
# @param MinBackupStartTime: 开始备份的最早时间
|
167
|
+
# @type MinBackupStartTime: String
|
168
|
+
# @param MaxBackupStartTime: 开始备份的最晚时间
|
169
|
+
# @type MaxBackupStartTime: String
|
170
|
+
|
171
|
+
attr_accessor :BackupPeriod, :BaseBackupRetentionPeriod, :MinBackupStartTime, :MaxBackupStartTime
|
172
|
+
|
173
|
+
def initialize(backupperiod=nil, basebackupretentionperiod=nil, minbackupstarttime=nil, maxbackupstarttime=nil)
|
174
|
+
@BackupPeriod = backupperiod
|
175
|
+
@BaseBackupRetentionPeriod = basebackupretentionperiod
|
176
|
+
@MinBackupStartTime = minbackupstarttime
|
177
|
+
@MaxBackupStartTime = maxbackupstarttime
|
178
|
+
end
|
179
|
+
|
180
|
+
def deserialize(params)
|
181
|
+
@BackupPeriod = params['BackupPeriod']
|
182
|
+
@BaseBackupRetentionPeriod = params['BaseBackupRetentionPeriod']
|
183
|
+
@MinBackupStartTime = params['MinBackupStartTime']
|
184
|
+
@MaxBackupStartTime = params['MaxBackupStartTime']
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
# CloneDBInstance请求参数结构体
|
189
|
+
class CloneDBInstanceRequest < TencentCloud::Common::AbstractModel
|
190
|
+
# @param DBInstanceId: 克隆的源实例ID。
|
191
|
+
# @type DBInstanceId: String
|
192
|
+
# @param SpecCode: 售卖规格ID。该参数可以通过调用DescribeProductConfig的返回值中的SpecCode字段来获取。
|
193
|
+
# @type SpecCode: String
|
194
|
+
# @param Storage: 实例容量大小,单位:GB。
|
195
|
+
# @type Storage: Integer
|
196
|
+
# @param Period: 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值,按量计费模式下该参数传1。
|
197
|
+
# @type Period: Integer
|
198
|
+
# @param AutoRenewFlag: 续费标记:0-正常续费(默认);1-自动续费。
|
199
|
+
# @type AutoRenewFlag: Integer
|
200
|
+
# @param VpcId: 私有网络ID。
|
201
|
+
# @type VpcId: String
|
202
|
+
# @param SubnetId: 已配置的私有网络中的子网ID。
|
203
|
+
# @type SubnetId: String
|
204
|
+
# @param Name: 新购实例的实例名称。
|
205
|
+
# @type Name: String
|
206
|
+
# @param InstanceChargeType: 实例计费类型。目前支持:PREPAID(预付费,即包年包月),POSTPAID_BY_HOUR(后付费,即按量计费)。
|
207
|
+
# @type InstanceChargeType: String
|
208
|
+
# @param SecurityGroupIds: 安全组ID。
|
209
|
+
# @type SecurityGroupIds: Array
|
210
|
+
# @param ProjectId: 项目ID。
|
211
|
+
# @type ProjectId: Integer
|
212
|
+
# @param TagList: 实例需要绑定的Tag信息,默认为空。
|
213
|
+
# @type TagList: Array
|
214
|
+
# @param DBNodeSet: 购买多可用区实例时填写。
|
215
|
+
# @type DBNodeSet: Array
|
216
|
+
# @param AutoVoucher: 是否自动使用代金券。1(是),0(否),默认不使用。
|
217
|
+
# @type AutoVoucher: Integer
|
218
|
+
# @param VoucherIds: 代金券ID列表。
|
219
|
+
# @type VoucherIds: String
|
220
|
+
# @param ActivityId: 活动ID。
|
221
|
+
# @type ActivityId: Integer
|
222
|
+
# @param BackupSetId: 基础备份集ID。
|
223
|
+
# @type BackupSetId: String
|
224
|
+
# @param RecoveryTargetTime: 恢复时间点。
|
225
|
+
# @type RecoveryTargetTime: String
|
226
|
+
|
227
|
+
attr_accessor :DBInstanceId, :SpecCode, :Storage, :Period, :AutoRenewFlag, :VpcId, :SubnetId, :Name, :InstanceChargeType, :SecurityGroupIds, :ProjectId, :TagList, :DBNodeSet, :AutoVoucher, :VoucherIds, :ActivityId, :BackupSetId, :RecoveryTargetTime
|
228
|
+
|
229
|
+
def initialize(dbinstanceid=nil, speccode=nil, storage=nil, period=nil, autorenewflag=nil, vpcid=nil, subnetid=nil, name=nil, instancechargetype=nil, securitygroupids=nil, projectid=nil, taglist=nil, dbnodeset=nil, autovoucher=nil, voucherids=nil, activityid=nil, backupsetid=nil, recoverytargettime=nil)
|
230
|
+
@DBInstanceId = dbinstanceid
|
231
|
+
@SpecCode = speccode
|
232
|
+
@Storage = storage
|
233
|
+
@Period = period
|
234
|
+
@AutoRenewFlag = autorenewflag
|
235
|
+
@VpcId = vpcid
|
236
|
+
@SubnetId = subnetid
|
237
|
+
@Name = name
|
238
|
+
@InstanceChargeType = instancechargetype
|
239
|
+
@SecurityGroupIds = securitygroupids
|
240
|
+
@ProjectId = projectid
|
241
|
+
@TagList = taglist
|
242
|
+
@DBNodeSet = dbnodeset
|
243
|
+
@AutoVoucher = autovoucher
|
244
|
+
@VoucherIds = voucherids
|
245
|
+
@ActivityId = activityid
|
246
|
+
@BackupSetId = backupsetid
|
247
|
+
@RecoveryTargetTime = recoverytargettime
|
248
|
+
end
|
249
|
+
|
250
|
+
def deserialize(params)
|
251
|
+
@DBInstanceId = params['DBInstanceId']
|
252
|
+
@SpecCode = params['SpecCode']
|
253
|
+
@Storage = params['Storage']
|
254
|
+
@Period = params['Period']
|
255
|
+
@AutoRenewFlag = params['AutoRenewFlag']
|
256
|
+
@VpcId = params['VpcId']
|
257
|
+
@SubnetId = params['SubnetId']
|
258
|
+
@Name = params['Name']
|
259
|
+
@InstanceChargeType = params['InstanceChargeType']
|
260
|
+
@SecurityGroupIds = params['SecurityGroupIds']
|
261
|
+
@ProjectId = params['ProjectId']
|
262
|
+
unless params['TagList'].nil?
|
263
|
+
@TagList = []
|
264
|
+
params['TagList'].each do |i|
|
265
|
+
tag_tmp = Tag.new
|
266
|
+
tag_tmp.deserialize(i)
|
267
|
+
@TagList << tag_tmp
|
268
|
+
end
|
269
|
+
end
|
270
|
+
unless params['DBNodeSet'].nil?
|
271
|
+
@DBNodeSet = []
|
272
|
+
params['DBNodeSet'].each do |i|
|
273
|
+
dbnode_tmp = DBNode.new
|
274
|
+
dbnode_tmp.deserialize(i)
|
275
|
+
@DBNodeSet << dbnode_tmp
|
276
|
+
end
|
277
|
+
end
|
278
|
+
@AutoVoucher = params['AutoVoucher']
|
279
|
+
@VoucherIds = params['VoucherIds']
|
280
|
+
@ActivityId = params['ActivityId']
|
281
|
+
@BackupSetId = params['BackupSetId']
|
282
|
+
@RecoveryTargetTime = params['RecoveryTargetTime']
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
# CloneDBInstance返回参数结构体
|
287
|
+
class CloneDBInstanceResponse < TencentCloud::Common::AbstractModel
|
288
|
+
# @param DealName: 订单号。
|
289
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
290
|
+
# @type DealName: String
|
291
|
+
# @param BillId: 订单流水号。
|
292
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
293
|
+
# @type BillId: String
|
294
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
295
|
+
# @type RequestId: String
|
296
|
+
|
297
|
+
attr_accessor :DealName, :BillId, :RequestId
|
298
|
+
|
299
|
+
def initialize(dealname=nil, billid=nil, requestid=nil)
|
300
|
+
@DealName = dealname
|
301
|
+
@BillId = billid
|
302
|
+
@RequestId = requestid
|
303
|
+
end
|
304
|
+
|
305
|
+
def deserialize(params)
|
306
|
+
@DealName = params['DealName']
|
307
|
+
@BillId = params['BillId']
|
308
|
+
@RequestId = params['RequestId']
|
309
|
+
end
|
310
|
+
end
|
311
|
+
|
160
312
|
# CloseDBExtranetAccess请求参数结构体
|
161
313
|
class CloseDBExtranetAccessRequest < TencentCloud::Common::AbstractModel
|
162
314
|
# @param DBInstanceId: 实例ID,形如postgres-6r233v55
|
@@ -1239,6 +1391,137 @@ module TencentCloud
|
|
1239
1391
|
end
|
1240
1392
|
end
|
1241
1393
|
|
1394
|
+
# DescribeAvailableRecoveryTime请求参数结构体
|
1395
|
+
class DescribeAvailableRecoveryTimeRequest < TencentCloud::Common::AbstractModel
|
1396
|
+
# @param DBInstanceId: 实例ID
|
1397
|
+
# @type DBInstanceId: String
|
1398
|
+
|
1399
|
+
attr_accessor :DBInstanceId
|
1400
|
+
|
1401
|
+
def initialize(dbinstanceid=nil)
|
1402
|
+
@DBInstanceId = dbinstanceid
|
1403
|
+
end
|
1404
|
+
|
1405
|
+
def deserialize(params)
|
1406
|
+
@DBInstanceId = params['DBInstanceId']
|
1407
|
+
end
|
1408
|
+
end
|
1409
|
+
|
1410
|
+
# DescribeAvailableRecoveryTime返回参数结构体
|
1411
|
+
class DescribeAvailableRecoveryTimeResponse < TencentCloud::Common::AbstractModel
|
1412
|
+
# @param RecoveryBeginTime: 可恢复的最早时间,时区为东八区(UTC+8)。
|
1413
|
+
# @type RecoveryBeginTime: String
|
1414
|
+
# @param RecoveryEndTime: 可恢复的最晚时间,时区为东八区(UTC+8)。
|
1415
|
+
# @type RecoveryEndTime: String
|
1416
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1417
|
+
# @type RequestId: String
|
1418
|
+
|
1419
|
+
attr_accessor :RecoveryBeginTime, :RecoveryEndTime, :RequestId
|
1420
|
+
|
1421
|
+
def initialize(recoverybegintime=nil, recoveryendtime=nil, requestid=nil)
|
1422
|
+
@RecoveryBeginTime = recoverybegintime
|
1423
|
+
@RecoveryEndTime = recoveryendtime
|
1424
|
+
@RequestId = requestid
|
1425
|
+
end
|
1426
|
+
|
1427
|
+
def deserialize(params)
|
1428
|
+
@RecoveryBeginTime = params['RecoveryBeginTime']
|
1429
|
+
@RecoveryEndTime = params['RecoveryEndTime']
|
1430
|
+
@RequestId = params['RequestId']
|
1431
|
+
end
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
# DescribeBackupPlans请求参数结构体
|
1435
|
+
class DescribeBackupPlansRequest < TencentCloud::Common::AbstractModel
|
1436
|
+
# @param DBInstanceId: 实例ID
|
1437
|
+
# @type DBInstanceId: String
|
1438
|
+
|
1439
|
+
attr_accessor :DBInstanceId
|
1440
|
+
|
1441
|
+
def initialize(dbinstanceid=nil)
|
1442
|
+
@DBInstanceId = dbinstanceid
|
1443
|
+
end
|
1444
|
+
|
1445
|
+
def deserialize(params)
|
1446
|
+
@DBInstanceId = params['DBInstanceId']
|
1447
|
+
end
|
1448
|
+
end
|
1449
|
+
|
1450
|
+
# DescribeBackupPlans返回参数结构体
|
1451
|
+
class DescribeBackupPlansResponse < TencentCloud::Common::AbstractModel
|
1452
|
+
# @param Plans: 实例的备份计划集
|
1453
|
+
# @type Plans: Array
|
1454
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1455
|
+
# @type RequestId: String
|
1456
|
+
|
1457
|
+
attr_accessor :Plans, :RequestId
|
1458
|
+
|
1459
|
+
def initialize(plans=nil, requestid=nil)
|
1460
|
+
@Plans = plans
|
1461
|
+
@RequestId = requestid
|
1462
|
+
end
|
1463
|
+
|
1464
|
+
def deserialize(params)
|
1465
|
+
unless params['Plans'].nil?
|
1466
|
+
@Plans = []
|
1467
|
+
params['Plans'].each do |i|
|
1468
|
+
backupplan_tmp = BackupPlan.new
|
1469
|
+
backupplan_tmp.deserialize(i)
|
1470
|
+
@Plans << backupplan_tmp
|
1471
|
+
end
|
1472
|
+
end
|
1473
|
+
@RequestId = params['RequestId']
|
1474
|
+
end
|
1475
|
+
end
|
1476
|
+
|
1477
|
+
# DescribeCloneDBInstanceSpec请求参数结构体
|
1478
|
+
class DescribeCloneDBInstanceSpecRequest < TencentCloud::Common::AbstractModel
|
1479
|
+
# @param DBInstanceId: 实例ID。
|
1480
|
+
# @type DBInstanceId: String
|
1481
|
+
# @param BackupSetId: 基础备份集ID,此入参和RecoveryTargetTime必须选择一个传入。如与RecoveryTargetTime参数同时设置,则以此参数为准。
|
1482
|
+
# @type BackupSetId: String
|
1483
|
+
# @param RecoveryTargetTime: 恢复目标时间,此入参和BackupSetId必须选择一个传入。时区以东八区(UTC+8)为准。
|
1484
|
+
# @type RecoveryTargetTime: String
|
1485
|
+
|
1486
|
+
attr_accessor :DBInstanceId, :BackupSetId, :RecoveryTargetTime
|
1487
|
+
|
1488
|
+
def initialize(dbinstanceid=nil, backupsetid=nil, recoverytargettime=nil)
|
1489
|
+
@DBInstanceId = dbinstanceid
|
1490
|
+
@BackupSetId = backupsetid
|
1491
|
+
@RecoveryTargetTime = recoverytargettime
|
1492
|
+
end
|
1493
|
+
|
1494
|
+
def deserialize(params)
|
1495
|
+
@DBInstanceId = params['DBInstanceId']
|
1496
|
+
@BackupSetId = params['BackupSetId']
|
1497
|
+
@RecoveryTargetTime = params['RecoveryTargetTime']
|
1498
|
+
end
|
1499
|
+
end
|
1500
|
+
|
1501
|
+
# DescribeCloneDBInstanceSpec返回参数结构体
|
1502
|
+
class DescribeCloneDBInstanceSpecResponse < TencentCloud::Common::AbstractModel
|
1503
|
+
# @param MinSpecCode: 可购买的最小规格码。
|
1504
|
+
# @type MinSpecCode: String
|
1505
|
+
# @param MinStorage: 可购买的最小磁盘容量,单位GB。
|
1506
|
+
# @type MinStorage: Integer
|
1507
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1508
|
+
# @type RequestId: String
|
1509
|
+
|
1510
|
+
attr_accessor :MinSpecCode, :MinStorage, :RequestId
|
1511
|
+
|
1512
|
+
def initialize(minspeccode=nil, minstorage=nil, requestid=nil)
|
1513
|
+
@MinSpecCode = minspeccode
|
1514
|
+
@MinStorage = minstorage
|
1515
|
+
@RequestId = requestid
|
1516
|
+
end
|
1517
|
+
|
1518
|
+
def deserialize(params)
|
1519
|
+
@MinSpecCode = params['MinSpecCode']
|
1520
|
+
@MinStorage = params['MinStorage']
|
1521
|
+
@RequestId = params['RequestId']
|
1522
|
+
end
|
1523
|
+
end
|
1524
|
+
|
1242
1525
|
# DescribeDBBackups请求参数结构体
|
1243
1526
|
class DescribeDBBackupsRequest < TencentCloud::Common::AbstractModel
|
1244
1527
|
# @param DBInstanceId: 实例ID,形如postgres-4wdeb0zv。
|
@@ -2773,6 +3056,109 @@ module TencentCloud
|
|
2773
3056
|
end
|
2774
3057
|
end
|
2775
3058
|
|
3059
|
+
# ModifyBackupPlan请求参数结构体
|
3060
|
+
class ModifyBackupPlanRequest < TencentCloud::Common::AbstractModel
|
3061
|
+
# @param DBInstanceId: 实例ID
|
3062
|
+
# @type DBInstanceId: String
|
3063
|
+
# @param MinBackupStartTime: 实例最早开始备份时间
|
3064
|
+
# @type MinBackupStartTime: String
|
3065
|
+
# @param MaxBackupStartTime: 实例最晚开始备份时间
|
3066
|
+
# @type MaxBackupStartTime: String
|
3067
|
+
# @param BaseBackupRetentionPeriod: 实例备份保留时长,取值范围为3-7,单位是天
|
3068
|
+
# @type BaseBackupRetentionPeriod: Integer
|
3069
|
+
# @param BackupPeriod: 实例备份周期,按照星期维度,格式为小写星期英文单词
|
3070
|
+
# @type BackupPeriod: Array
|
3071
|
+
|
3072
|
+
attr_accessor :DBInstanceId, :MinBackupStartTime, :MaxBackupStartTime, :BaseBackupRetentionPeriod, :BackupPeriod
|
3073
|
+
|
3074
|
+
def initialize(dbinstanceid=nil, minbackupstarttime=nil, maxbackupstarttime=nil, basebackupretentionperiod=nil, backupperiod=nil)
|
3075
|
+
@DBInstanceId = dbinstanceid
|
3076
|
+
@MinBackupStartTime = minbackupstarttime
|
3077
|
+
@MaxBackupStartTime = maxbackupstarttime
|
3078
|
+
@BaseBackupRetentionPeriod = basebackupretentionperiod
|
3079
|
+
@BackupPeriod = backupperiod
|
3080
|
+
end
|
3081
|
+
|
3082
|
+
def deserialize(params)
|
3083
|
+
@DBInstanceId = params['DBInstanceId']
|
3084
|
+
@MinBackupStartTime = params['MinBackupStartTime']
|
3085
|
+
@MaxBackupStartTime = params['MaxBackupStartTime']
|
3086
|
+
@BaseBackupRetentionPeriod = params['BaseBackupRetentionPeriod']
|
3087
|
+
@BackupPeriod = params['BackupPeriod']
|
3088
|
+
end
|
3089
|
+
end
|
3090
|
+
|
3091
|
+
# ModifyBackupPlan返回参数结构体
|
3092
|
+
class ModifyBackupPlanResponse < TencentCloud::Common::AbstractModel
|
3093
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3094
|
+
# @type RequestId: String
|
3095
|
+
|
3096
|
+
attr_accessor :RequestId
|
3097
|
+
|
3098
|
+
def initialize(requestid=nil)
|
3099
|
+
@RequestId = requestid
|
3100
|
+
end
|
3101
|
+
|
3102
|
+
def deserialize(params)
|
3103
|
+
@RequestId = params['RequestId']
|
3104
|
+
end
|
3105
|
+
end
|
3106
|
+
|
3107
|
+
# ModifyDBInstanceDeployment请求参数结构体
|
3108
|
+
class ModifyDBInstanceDeploymentRequest < TencentCloud::Common::AbstractModel
|
3109
|
+
# @param DBInstanceId: 实例ID。
|
3110
|
+
# @type DBInstanceId: String
|
3111
|
+
# @param DBNodeSet: 实例节点信息。
|
3112
|
+
# @type DBNodeSet: Array
|
3113
|
+
# @param SwitchTag: 切换时间,默认为 立即切换,入参为 0 :立即切换 。1:指定时间切换。
|
3114
|
+
# @type SwitchTag: Integer
|
3115
|
+
# @param SwitchStartTime: 切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。
|
3116
|
+
# @type SwitchStartTime: String
|
3117
|
+
# @param SwitchEndTime: 切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。
|
3118
|
+
# @type SwitchEndTime: String
|
3119
|
+
|
3120
|
+
attr_accessor :DBInstanceId, :DBNodeSet, :SwitchTag, :SwitchStartTime, :SwitchEndTime
|
3121
|
+
|
3122
|
+
def initialize(dbinstanceid=nil, dbnodeset=nil, switchtag=nil, switchstarttime=nil, switchendtime=nil)
|
3123
|
+
@DBInstanceId = dbinstanceid
|
3124
|
+
@DBNodeSet = dbnodeset
|
3125
|
+
@SwitchTag = switchtag
|
3126
|
+
@SwitchStartTime = switchstarttime
|
3127
|
+
@SwitchEndTime = switchendtime
|
3128
|
+
end
|
3129
|
+
|
3130
|
+
def deserialize(params)
|
3131
|
+
@DBInstanceId = params['DBInstanceId']
|
3132
|
+
unless params['DBNodeSet'].nil?
|
3133
|
+
@DBNodeSet = []
|
3134
|
+
params['DBNodeSet'].each do |i|
|
3135
|
+
dbnode_tmp = DBNode.new
|
3136
|
+
dbnode_tmp.deserialize(i)
|
3137
|
+
@DBNodeSet << dbnode_tmp
|
3138
|
+
end
|
3139
|
+
end
|
3140
|
+
@SwitchTag = params['SwitchTag']
|
3141
|
+
@SwitchStartTime = params['SwitchStartTime']
|
3142
|
+
@SwitchEndTime = params['SwitchEndTime']
|
3143
|
+
end
|
3144
|
+
end
|
3145
|
+
|
3146
|
+
# ModifyDBInstanceDeployment返回参数结构体
|
3147
|
+
class ModifyDBInstanceDeploymentResponse < TencentCloud::Common::AbstractModel
|
3148
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3149
|
+
# @type RequestId: String
|
3150
|
+
|
3151
|
+
attr_accessor :RequestId
|
3152
|
+
|
3153
|
+
def initialize(requestid=nil)
|
3154
|
+
@RequestId = requestid
|
3155
|
+
end
|
3156
|
+
|
3157
|
+
def deserialize(params)
|
3158
|
+
@RequestId = params['RequestId']
|
3159
|
+
end
|
3160
|
+
end
|
3161
|
+
|
2776
3162
|
# ModifyDBInstanceName请求参数结构体
|
2777
3163
|
class ModifyDBInstanceNameRequest < TencentCloud::Common::AbstractModel
|
2778
3164
|
# @param DBInstanceId: 数据库实例ID,形如postgres-6fego161
|
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: 1.0.
|
4
|
+
version: 1.0.240
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|