tencentcloud-sdk-dcdb 3.0.578 → 3.0.579

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: 1059c4b701c3e7ddc5e8c3ccd00ec53921215767
4
- data.tar.gz: 5e45b8c41fabfda7a17ab4789d9c738b7207a115
3
+ metadata.gz: 1a18f046e066814bbd1aca2353d7dac7b9cb1824
4
+ data.tar.gz: aabaa8ffb556b13d57cb7bc07e0c6c1bac3f73cd
5
5
  SHA512:
6
- metadata.gz: 3f9e513573dc71b7f59a7f25ce14666a9f5f8b04d01430e7fe7e5ae1ca6e4715cb2fb6204bf11e3a9333a4e5b057d3e920c73f2f2a62ba546934e6badf1e1e41
7
- data.tar.gz: 9ec98652b0066580c6650f6d1c8b960c7df4955634b214ae27d66b129667b5df9333dd6eb0178a1cc7c812786f2a3252fe627c379b6bb45a03692f5b9c244709
6
+ metadata.gz: 847e24f04e36d6eeaf74a63e6fadeb97df367be942606b2b24a08d948b33238c35873efa35da886c299c11298d3311fe5c958b2ed98cfc5b767acb259a358090
7
+ data.tar.gz: 321d59e2370f367c88f4b9e32829cb19cc40fa0ad6f1b99cb98e21d5c5da23931519a5e445accdc68a4a95d5538d6e307ef6ba7895a42b8c0cb692ddd8b7323b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.578
1
+ 3.0.579
@@ -29,7 +29,7 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
- # 解隔离DCDB后付费实例
32
+ # 解隔离TDSQL按量计费实例
33
33
 
34
34
  # @param request: Request instance for ActiveHourDCDBInstance.
35
35
  # @type request: :class:`Tencentcloud::dcdb::V20180411::ActiveHourDCDBInstanceRequest`
@@ -198,7 +198,7 @@ module TencentCloud
198
198
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
199
199
  end
200
200
 
201
- # 本接口(CreateDCDBInstance)用于创建包年包月的云数据库实例,可通过传入实例规格、数据库版本号、购买时长等信息创建云数据库实例。
201
+ # 本接口(CreateDCDBInstance)用于创建包年包月的TDSQL实例,可通过传入实例规格、数据库版本号、购买时长等信息创建云数据库实例。
202
202
 
203
203
  # @param request: Request instance for CreateDCDBInstance.
204
204
  # @type request: :class:`Tencentcloud::dcdb::V20180411::CreateDCDBInstanceRequest`
@@ -222,7 +222,7 @@ module TencentCloud
222
222
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
223
223
  end
224
224
 
225
- # 创建独享集群DCDB实例
225
+ # 创建TDSQL独享集群实例
226
226
 
227
227
  # @param request: Request instance for CreateDedicatedClusterDCDBInstance.
228
228
  # @type request: :class:`Tencentcloud::dcdb::V20180411::CreateDedicatedClusterDCDBInstanceRequest`
@@ -246,7 +246,7 @@ module TencentCloud
246
246
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
247
247
  end
248
248
 
249
- # 创建DCDB后付费实例
249
+ # 创建TDSQL按量计费实例
250
250
 
251
251
  # @param request: Request instance for CreateHourDCDBInstance.
252
252
  # @type request: :class:`Tencentcloud::dcdb::V20180411::CreateHourDCDBInstanceRequest`
@@ -270,6 +270,30 @@ module TencentCloud
270
270
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
271
271
  end
272
272
 
273
+ # 回档TDSQL实例
274
+
275
+ # @param request: Request instance for CreateTmpDCDBInstance.
276
+ # @type request: :class:`Tencentcloud::dcdb::V20180411::CreateTmpDCDBInstanceRequest`
277
+ # @rtype: :class:`Tencentcloud::dcdb::V20180411::CreateTmpDCDBInstanceResponse`
278
+ def CreateTmpDCDBInstance(request)
279
+ body = send_request('CreateTmpDCDBInstance', request.serialize)
280
+ response = JSON.parse(body)
281
+ if response['Response'].key?('Error') == false
282
+ model = CreateTmpDCDBInstanceResponse.new
283
+ model.deserialize(response['Response'])
284
+ model
285
+ else
286
+ code = response['Response']['Error']['Code']
287
+ message = response['Response']['Error']['Message']
288
+ reqid = response['Response']['RequestId']
289
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
290
+ end
291
+ rescue TencentCloud::Common::TencentCloudSDKException => e
292
+ raise e
293
+ rescue StandardError => e
294
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
295
+ end
296
+
273
297
  # 本接口(DeleteAccount)用于删除云数据库账号。用户名+host唯一确定一个账号。
274
298
 
275
299
  # @param request: Request instance for DeleteAccount.
@@ -511,7 +535,7 @@ module TencentCloud
511
535
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
512
536
  end
513
537
 
514
- # 本接口(DescribeDCDBInstanceDetail)用于获取DCDB实例详情
538
+ # 本接口(DescribeDCDBInstanceDetail)用于获取TDSQL实例详情
515
539
 
516
540
  # @param request: Request instance for DescribeDCDBInstanceDetail.
517
541
  # @type request: :class:`Tencentcloud::dcdb::V20180411::DescribeDCDBInstanceDetailRequest`
@@ -994,7 +1018,7 @@ module TencentCloud
994
1018
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
995
1019
  end
996
1020
 
997
- # 本接口(DestroyDCDBInstance)用于销毁已隔离的包年包月实例。
1021
+ # 本接口(DestroyDCDBInstance)用于销毁已隔离的TDSQL包年包月实例。
998
1022
 
999
1023
  # @param request: Request instance for DestroyDCDBInstance.
1000
1024
  # @type request: :class:`Tencentcloud::dcdb::V20180411::DestroyDCDBInstanceRequest`
@@ -1018,7 +1042,7 @@ module TencentCloud
1018
1042
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1019
1043
  end
1020
1044
 
1021
- # 本接口(DestroyHourDCDBInstance)用于销毁按量计费实例。
1045
+ # 本接口(DestroyHourDCDBInstance)用于TDSQL销毁按量计费实例。
1022
1046
 
1023
1047
  # @param request: Request instance for DestroyHourDCDBInstance.
1024
1048
  # @type request: :class:`Tencentcloud::dcdb::V20180411::DestroyHourDCDBInstanceRequest`
@@ -1163,7 +1187,7 @@ module TencentCloud
1163
1187
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1164
1188
  end
1165
1189
 
1166
- # 隔离DCDB后付费实例
1190
+ # 隔离TDSQL按量计费实例
1167
1191
 
1168
1192
  # @param request: Request instance for IsolateHourDCDBInstance.
1169
1193
  # @type request: :class:`Tencentcloud::dcdb::V20180411::IsolateHourDCDBInstanceRequest`
@@ -1655,7 +1679,7 @@ module TencentCloud
1655
1679
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1656
1680
  end
1657
1681
 
1658
- # 本接口(UpgradeDedicatedDCDBInstance)用于升级独享DCDB实例
1682
+ # 本接口(UpgradeDedicatedDCDBInstance)用于升级TDSQL独享集群实例
1659
1683
 
1660
1684
  # @param request: Request instance for UpgradeDedicatedDCDBInstance.
1661
1685
  # @type request: :class:`Tencentcloud::dcdb::V20180411::UpgradeDedicatedDCDBInstanceRequest`
@@ -1679,7 +1703,7 @@ module TencentCloud
1679
1703
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1680
1704
  end
1681
1705
 
1682
- # 本接口(UpgradeHourDCDBInstance)用于升级后付费分布式数据库实例。
1706
+ # 本接口(UpgradeHourDCDBInstance)用于升级分布式数据库TDSQL按量计费实例。
1683
1707
 
1684
1708
  # @param request: Request instance for UpgradeHourDCDBInstance.
1685
1709
  # @type request: :class:`Tencentcloud::dcdb::V20180411::UpgradeHourDCDBInstanceRequest`
@@ -518,7 +518,7 @@ module TencentCloud
518
518
  # @type SecurityGroupId: String
519
519
  # @param InstanceName: 实例名称, 可以通过该字段自主的设置实例的名字
520
520
  # @type InstanceName: String
521
- # @param Ipv6Flag: 是否支持IPv6
521
+ # @param Ipv6Flag: 是否支持IPv6,0:不支持,1:支持
522
522
  # @type Ipv6Flag: Integer
523
523
  # @param ResourceTags: 标签键值对数组
524
524
  # @type ResourceTags: Array
@@ -528,7 +528,7 @@ module TencentCloud
528
528
  # @type DcnRegion: String
529
529
  # @param DcnInstanceId: DCN源实例ID
530
530
  # @type DcnInstanceId: String
531
- # @param AutoRenewFlag: 自动续费标记,0表示默认状态(用户未设置,即初始状态即手动续费,用户开通了预付费不停服特权也会进行自动续费), 1表示自动续费,2表示明确不自动续费(用户设置),若业务无续费概念或无需自动续费,需要设置为0
531
+ # @param AutoRenewFlag: 自动续费标记,0:默认状态(用户未设置,即初始状态即手动续费,用户开通了预付费不停服特权也会进行自动续费), 1:自动续费,2:明确不自动续费(用户设置)。若业务无续费概念或无需自动续费,需要设置为0
532
532
  # @type AutoRenewFlag: Integer
533
533
  # @param SecurityGroupIds: 安全组ids,安全组可以传数组形式,兼容之前SecurityGroupId参数
534
534
  # @type SecurityGroupIds: Array
@@ -812,7 +812,7 @@ module TencentCloud
812
812
  # @type SecurityGroupId: String
813
813
  # @param InstanceName: 实例名称, 可以通过该字段自主的设置实例的名字
814
814
  # @type InstanceName: String
815
- # @param Ipv6Flag: 是否支持IPv6
815
+ # @param Ipv6Flag: 是否支持IPv6,0:不支持,1:支持
816
816
  # @type Ipv6Flag: Integer
817
817
  # @param ResourceTags: 标签键值对数组
818
818
  # @type ResourceTags: Array
@@ -824,7 +824,7 @@ module TencentCloud
824
824
  # @type InitParams: Array
825
825
  # @param RollbackInstanceId: 需要回档的源实例ID
826
826
  # @type RollbackInstanceId: String
827
- # @param RollbackTime: 回档时间
827
+ # @param RollbackTime: 回档时间,例如“2021-11-22 00:00:00”
828
828
  # @type RollbackTime: String
829
829
  # @param SecurityGroupIds: 安全组ids,安全组可以传数组形式,兼容之前SecurityGroupId参数
830
830
  # @type SecurityGroupIds: Array
@@ -923,6 +923,46 @@ module TencentCloud
923
923
  end
924
924
  end
925
925
 
926
+ # CreateTmpDCDBInstance请求参数结构体
927
+ class CreateTmpDCDBInstanceRequest < TencentCloud::Common::AbstractModel
928
+ # @param InstanceId: 回档实例的ID
929
+ # @type InstanceId: String
930
+ # @param RollbackTime: 回档时间点
931
+ # @type RollbackTime: String
932
+
933
+ attr_accessor :InstanceId, :RollbackTime
934
+
935
+ def initialize(instanceid=nil, rollbacktime=nil)
936
+ @InstanceId = instanceid
937
+ @RollbackTime = rollbacktime
938
+ end
939
+
940
+ def deserialize(params)
941
+ @InstanceId = params['InstanceId']
942
+ @RollbackTime = params['RollbackTime']
943
+ end
944
+ end
945
+
946
+ # CreateTmpDCDBInstance返回参数结构体
947
+ class CreateTmpDCDBInstanceResponse < TencentCloud::Common::AbstractModel
948
+ # @param FlowId: 任务流ID
949
+ # @type FlowId: Integer
950
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
951
+ # @type RequestId: String
952
+
953
+ attr_accessor :FlowId, :RequestId
954
+
955
+ def initialize(flowid=nil, requestid=nil)
956
+ @FlowId = flowid
957
+ @RequestId = requestid
958
+ end
959
+
960
+ def deserialize(params)
961
+ @FlowId = params['FlowId']
962
+ @RequestId = params['RequestId']
963
+ end
964
+ end
965
+
926
966
  # 云数据库账号信息
927
967
  class DBAccount < TencentCloud::Common::AbstractModel
928
968
  # @param UserName: 用户名
@@ -942,10 +982,12 @@ module TencentCloud
942
982
  # @type DelayThresh: Integer
943
983
  # @param SlaveConst: 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。
944
984
  # @type SlaveConst: Integer
985
+ # @param MaxUserConnections: 用户最大连接数,0代表无限制
986
+ # @type MaxUserConnections: Integer
945
987
 
946
- attr_accessor :UserName, :Host, :Description, :CreateTime, :UpdateTime, :ReadOnly, :DelayThresh, :SlaveConst
988
+ attr_accessor :UserName, :Host, :Description, :CreateTime, :UpdateTime, :ReadOnly, :DelayThresh, :SlaveConst, :MaxUserConnections
947
989
 
948
- def initialize(username=nil, host=nil, description=nil, createtime=nil, updatetime=nil, readonly=nil, delaythresh=nil, slaveconst=nil)
990
+ def initialize(username=nil, host=nil, description=nil, createtime=nil, updatetime=nil, readonly=nil, delaythresh=nil, slaveconst=nil, maxuserconnections=nil)
949
991
  @UserName = username
950
992
  @Host = host
951
993
  @Description = description
@@ -954,6 +996,7 @@ module TencentCloud
954
996
  @ReadOnly = readonly
955
997
  @DelayThresh = delaythresh
956
998
  @SlaveConst = slaveconst
999
+ @MaxUserConnections = maxuserconnections
957
1000
  end
958
1001
 
959
1002
  def deserialize(params)
@@ -965,6 +1008,7 @@ module TencentCloud
965
1008
  @ReadOnly = params['ReadOnly']
966
1009
  @DelayThresh = params['DelayThresh']
967
1010
  @SlaveConst = params['SlaveConst']
1011
+ @MaxUserConnections = params['MaxUserConnections']
968
1012
  end
969
1013
  end
970
1014
 
@@ -2302,12 +2346,14 @@ module TencentCloud
2302
2346
  # @param RsAccessStrategy: VPC就近访问
2303
2347
  # 注意:此字段可能返回 null,表示取不到有效值。
2304
2348
  # @type RsAccessStrategy: Integer
2349
+ # @param ReservedNetResources: 尚未回收的网络资源
2350
+ # @type ReservedNetResources: Array
2305
2351
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2306
2352
  # @type RequestId: String
2307
2353
 
2308
- attr_accessor :InstanceId, :InstanceName, :Status, :StatusDesc, :Vip, :Vport, :NodeCount, :Region, :VpcId, :SubnetId, :WanStatus, :WanDomain, :WanVip, :WanPort, :ProjectId, :AutoRenewFlag, :ExclusterId, :PayMode, :CreateTime, :PeriodEndTime, :DbVersion, :IsAuditSupported, :IsEncryptSupported, :Machine, :Memory, :Storage, :StorageUsage, :LogStorage, :Pid, :MasterZone, :SlaveZones, :Shards, :Vip6, :Cpu, :Qps, :DbEngine, :Ipv6Flag, :WanVipv6, :WanStatusIpv6, :WanPortIpv6, :ResourceTags, :DcnFlag, :DcnStatus, :DcnDstNum, :InstanceType, :IsMaxUserConnectionsSupported, :DbVersionId, :EncryptStatus, :ExclusterType, :RsAccessStrategy, :RequestId
2354
+ attr_accessor :InstanceId, :InstanceName, :Status, :StatusDesc, :Vip, :Vport, :NodeCount, :Region, :VpcId, :SubnetId, :WanStatus, :WanDomain, :WanVip, :WanPort, :ProjectId, :AutoRenewFlag, :ExclusterId, :PayMode, :CreateTime, :PeriodEndTime, :DbVersion, :IsAuditSupported, :IsEncryptSupported, :Machine, :Memory, :Storage, :StorageUsage, :LogStorage, :Pid, :MasterZone, :SlaveZones, :Shards, :Vip6, :Cpu, :Qps, :DbEngine, :Ipv6Flag, :WanVipv6, :WanStatusIpv6, :WanPortIpv6, :ResourceTags, :DcnFlag, :DcnStatus, :DcnDstNum, :InstanceType, :IsMaxUserConnectionsSupported, :DbVersionId, :EncryptStatus, :ExclusterType, :RsAccessStrategy, :ReservedNetResources, :RequestId
2309
2355
 
2310
- def initialize(instanceid=nil, instancename=nil, status=nil, statusdesc=nil, vip=nil, vport=nil, nodecount=nil, region=nil, vpcid=nil, subnetid=nil, wanstatus=nil, wandomain=nil, wanvip=nil, wanport=nil, projectid=nil, autorenewflag=nil, exclusterid=nil, paymode=nil, createtime=nil, periodendtime=nil, dbversion=nil, isauditsupported=nil, isencryptsupported=nil, machine=nil, memory=nil, storage=nil, storageusage=nil, logstorage=nil, pid=nil, masterzone=nil, slavezones=nil, shards=nil, vip6=nil, cpu=nil, qps=nil, dbengine=nil, ipv6flag=nil, wanvipv6=nil, wanstatusipv6=nil, wanportipv6=nil, resourcetags=nil, dcnflag=nil, dcnstatus=nil, dcndstnum=nil, instancetype=nil, ismaxuserconnectionssupported=nil, dbversionid=nil, encryptstatus=nil, exclustertype=nil, rsaccessstrategy=nil, requestid=nil)
2356
+ def initialize(instanceid=nil, instancename=nil, status=nil, statusdesc=nil, vip=nil, vport=nil, nodecount=nil, region=nil, vpcid=nil, subnetid=nil, wanstatus=nil, wandomain=nil, wanvip=nil, wanport=nil, projectid=nil, autorenewflag=nil, exclusterid=nil, paymode=nil, createtime=nil, periodendtime=nil, dbversion=nil, isauditsupported=nil, isencryptsupported=nil, machine=nil, memory=nil, storage=nil, storageusage=nil, logstorage=nil, pid=nil, masterzone=nil, slavezones=nil, shards=nil, vip6=nil, cpu=nil, qps=nil, dbengine=nil, ipv6flag=nil, wanvipv6=nil, wanstatusipv6=nil, wanportipv6=nil, resourcetags=nil, dcnflag=nil, dcnstatus=nil, dcndstnum=nil, instancetype=nil, ismaxuserconnectionssupported=nil, dbversionid=nil, encryptstatus=nil, exclustertype=nil, rsaccessstrategy=nil, reservednetresources=nil, requestid=nil)
2311
2357
  @InstanceId = instanceid
2312
2358
  @InstanceName = instancename
2313
2359
  @Status = status
@@ -2358,6 +2404,7 @@ module TencentCloud
2358
2404
  @EncryptStatus = encryptstatus
2359
2405
  @ExclusterType = exclustertype
2360
2406
  @RsAccessStrategy = rsaccessstrategy
2407
+ @ReservedNetResources = reservednetresources
2361
2408
  @RequestId = requestid
2362
2409
  end
2363
2410
 
@@ -2426,6 +2473,14 @@ module TencentCloud
2426
2473
  @EncryptStatus = params['EncryptStatus']
2427
2474
  @ExclusterType = params['ExclusterType']
2428
2475
  @RsAccessStrategy = params['RsAccessStrategy']
2476
+ unless params['ReservedNetResources'].nil?
2477
+ @ReservedNetResources = []
2478
+ params['ReservedNetResources'].each do |i|
2479
+ reservednetresource_tmp = ReservedNetResource.new
2480
+ reservednetresource_tmp.deserialize(i)
2481
+ @ReservedNetResources << reservednetresource_tmp
2482
+ end
2483
+ end
2429
2484
  @RequestId = params['RequestId']
2430
2485
  end
2431
2486
  end
@@ -3952,7 +4007,7 @@ module TencentCloud
3952
4007
 
3953
4008
  # IsolateHourDCDBInstance请求参数结构体
3954
4009
  class IsolateHourDCDBInstanceRequest < TencentCloud::Common::AbstractModel
3955
- # @param InstanceIds: 实例uuid列表
4010
+ # @param InstanceIds: 待升级的实例ID列表。形如:["dcdbt-ow728lmc"],可以通过 DescribeDCDBInstances 查询实例详情获得。
3956
4011
  # @type InstanceIds: Array
3957
4012
 
3958
4013
  attr_accessor :InstanceIds
@@ -4944,6 +4999,38 @@ module TencentCloud
4944
4999
  end
4945
5000
  end
4946
5001
 
5002
+ # 保留的网络资源信息
5003
+ class ReservedNetResource < TencentCloud::Common::AbstractModel
5004
+ # @param VpcId: 私有网络
5005
+ # @type VpcId: String
5006
+ # @param SubnetId: 子网
5007
+ # @type SubnetId: String
5008
+ # @param Vip: VpcId,SubnetId下保留的内网ip
5009
+ # @type Vip: String
5010
+ # @param Vports: Vip下的端口
5011
+ # @type Vports: Array
5012
+ # @param RecycleTime: Vip的回收时间
5013
+ # @type RecycleTime: String
5014
+
5015
+ attr_accessor :VpcId, :SubnetId, :Vip, :Vports, :RecycleTime
5016
+
5017
+ def initialize(vpcid=nil, subnetid=nil, vip=nil, vports=nil, recycletime=nil)
5018
+ @VpcId = vpcid
5019
+ @SubnetId = subnetid
5020
+ @Vip = vip
5021
+ @Vports = vports
5022
+ @RecycleTime = recycletime
5023
+ end
5024
+
5025
+ def deserialize(params)
5026
+ @VpcId = params['VpcId']
5027
+ @SubnetId = params['SubnetId']
5028
+ @Vip = params['Vip']
5029
+ @Vports = params['Vports']
5030
+ @RecycleTime = params['RecycleTime']
5031
+ end
5032
+ end
5033
+
4947
5034
  # ResetAccountPassword请求参数结构体
4948
5035
  class ResetAccountPasswordRequest < TencentCloud::Common::AbstractModel
4949
5036
  # @param InstanceId: 实例 ID,形如:dcdbt-ow728lmc。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-dcdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.578
4
+ version: 3.0.579
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-05-26 00:00:00.000000000 Z
11
+ date: 2023-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common