tencentcloud-sdk-mongodb 3.0.870 → 3.0.871
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/v20190725/client.rb +125 -0
- data/lib/v20190725/models.rb +368 -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: 6d8b6a4491fee36f5947483cdbdb6fe66b2dc99c
|
4
|
+
data.tar.gz: d2f07a69e5714da5c9e26316c7a8b7cb9ac419c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43a405675f3e3672309d7266885677ebdfab2aa82f62cdd98d8dc74e6de01d356f122820fa35f0c4d7ea1137bd214275a1afe369a37c43bf5131f7dc542abd22
|
7
|
+
data.tar.gz: 6891095da82b320f0d07201713c8bd817a0be02ee70f897d83957d43f8c5cc45c9c2ba291dc085b3e9250ed6e543b7a46ec7c1ccdf2f6680160964c3c5a8c9b6
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.871
|
data/lib/v20190725/client.rb
CHANGED
@@ -173,6 +173,31 @@ module TencentCloud
|
|
173
173
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
174
|
end
|
175
175
|
|
176
|
+
# 本接口(CreateDBInstanceParamTpl)用于创建云数据库MongoDB实例的参数模板
|
177
|
+
# **说明:CreateDBInstanceParamTpl API正在公测中,在此期间,该接口仅对公测用户开放**
|
178
|
+
|
179
|
+
# @param request: Request instance for CreateDBInstanceParamTpl.
|
180
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::CreateDBInstanceParamTplRequest`
|
181
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::CreateDBInstanceParamTplResponse`
|
182
|
+
def CreateDBInstanceParamTpl(request)
|
183
|
+
body = send_request('CreateDBInstanceParamTpl', request.serialize)
|
184
|
+
response = JSON.parse(body)
|
185
|
+
if response['Response'].key?('Error') == false
|
186
|
+
model = CreateDBInstanceParamTplResponse.new
|
187
|
+
model.deserialize(response['Response'])
|
188
|
+
model
|
189
|
+
else
|
190
|
+
code = response['Response']['Error']['Code']
|
191
|
+
message = response['Response']['Error']['Message']
|
192
|
+
reqid = response['Response']['RequestId']
|
193
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
194
|
+
end
|
195
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
196
|
+
raise e
|
197
|
+
rescue StandardError => e
|
198
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
199
|
+
end
|
200
|
+
|
176
201
|
# 本接口(DeleteAccountUser)用于删除实例的自定义账号。
|
177
202
|
|
178
203
|
# @param request: Request instance for DeleteAccountUser.
|
@@ -413,6 +438,56 @@ module TencentCloud
|
|
413
438
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
439
|
end
|
415
440
|
|
441
|
+
# 本接口(DescribeDBInstanceParamTpl )用于查询当前账号下所有MongoDB数据库参数模板
|
442
|
+
# **说明:DescribeDBInstanceParamTpl API正在公测中,在此期间,该接口仅对公测用户开放**
|
443
|
+
|
444
|
+
# @param request: Request instance for DescribeDBInstanceParamTpl.
|
445
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::DescribeDBInstanceParamTplRequest`
|
446
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::DescribeDBInstanceParamTplResponse`
|
447
|
+
def DescribeDBInstanceParamTpl(request)
|
448
|
+
body = send_request('DescribeDBInstanceParamTpl', request.serialize)
|
449
|
+
response = JSON.parse(body)
|
450
|
+
if response['Response'].key?('Error') == false
|
451
|
+
model = DescribeDBInstanceParamTplResponse.new
|
452
|
+
model.deserialize(response['Response'])
|
453
|
+
model
|
454
|
+
else
|
455
|
+
code = response['Response']['Error']['Code']
|
456
|
+
message = response['Response']['Error']['Message']
|
457
|
+
reqid = response['Response']['RequestId']
|
458
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
459
|
+
end
|
460
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
461
|
+
raise e
|
462
|
+
rescue StandardError => e
|
463
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
464
|
+
end
|
465
|
+
|
466
|
+
# 本接口(DescribeDBInstanceParamTplDetail )用于查询MongoDB云数据库实例的参数模板详情。
|
467
|
+
# **说明:DescribeDBInstanceParamTplDetail API正在公测中,在此期间,该接口仅对公测用户开放**
|
468
|
+
|
469
|
+
# @param request: Request instance for DescribeDBInstanceParamTplDetail.
|
470
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::DescribeDBInstanceParamTplDetailRequest`
|
471
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::DescribeDBInstanceParamTplDetailResponse`
|
472
|
+
def DescribeDBInstanceParamTplDetail(request)
|
473
|
+
body = send_request('DescribeDBInstanceParamTplDetail', request.serialize)
|
474
|
+
response = JSON.parse(body)
|
475
|
+
if response['Response'].key?('Error') == false
|
476
|
+
model = DescribeDBInstanceParamTplDetailResponse.new
|
477
|
+
model.deserialize(response['Response'])
|
478
|
+
model
|
479
|
+
else
|
480
|
+
code = response['Response']['Error']['Code']
|
481
|
+
message = response['Response']['Error']['Message']
|
482
|
+
reqid = response['Response']['RequestId']
|
483
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
484
|
+
end
|
485
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
486
|
+
raise e
|
487
|
+
rescue StandardError => e
|
488
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
489
|
+
end
|
490
|
+
|
416
491
|
# 本接口(DescribeDBInstances)用于查询云数据库实例列表,支持通过项目ID、实例ID、实例状态等过滤条件来筛选主实例、灾备实例和只读实例信息列表。
|
417
492
|
|
418
493
|
# @param request: Request instance for DescribeDBInstances.
|
@@ -581,6 +656,31 @@ module TencentCloud
|
|
581
656
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
657
|
end
|
583
658
|
|
659
|
+
# 本接口(DropDBInstanceParamTpl )用于删除云数据库MongoDB实例的参数模板
|
660
|
+
# **说明:DropDBInstanceParamTpl API正在公测中,在此期间,该接口仅对公测用户开放**
|
661
|
+
|
662
|
+
# @param request: Request instance for DropDBInstanceParamTpl.
|
663
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::DropDBInstanceParamTplRequest`
|
664
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::DropDBInstanceParamTplResponse`
|
665
|
+
def DropDBInstanceParamTpl(request)
|
666
|
+
body = send_request('DropDBInstanceParamTpl', request.serialize)
|
667
|
+
response = JSON.parse(body)
|
668
|
+
if response['Response'].key?('Error') == false
|
669
|
+
model = DropDBInstanceParamTplResponse.new
|
670
|
+
model.deserialize(response['Response'])
|
671
|
+
model
|
672
|
+
else
|
673
|
+
code = response['Response']['Error']['Code']
|
674
|
+
message = response['Response']['Error']['Message']
|
675
|
+
reqid = response['Response']['RequestId']
|
676
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
677
|
+
end
|
678
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
679
|
+
raise e
|
680
|
+
rescue StandardError => e
|
681
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
682
|
+
end
|
683
|
+
|
584
684
|
# 本接口(EnableTransparentDataEncryption)用于开启云数据库 MongoDB 的透明加密能力。
|
585
685
|
|
586
686
|
# @param request: Request instance for EnableTransparentDataEncryption.
|
@@ -798,6 +898,31 @@ module TencentCloud
|
|
798
898
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
799
899
|
end
|
800
900
|
|
901
|
+
# 本接口(ModifyDBInstanceParamTpl )用于修改MongoDB云数据库实例的参数模板。
|
902
|
+
# **说明:ModifyDBInstanceParamTpl API正在公测中,在此期间,该接口仅对公测用户开放**
|
903
|
+
|
904
|
+
# @param request: Request instance for ModifyDBInstanceParamTpl.
|
905
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::ModifyDBInstanceParamTplRequest`
|
906
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::ModifyDBInstanceParamTplResponse`
|
907
|
+
def ModifyDBInstanceParamTpl(request)
|
908
|
+
body = send_request('ModifyDBInstanceParamTpl', request.serialize)
|
909
|
+
response = JSON.parse(body)
|
910
|
+
if response['Response'].key?('Error') == false
|
911
|
+
model = ModifyDBInstanceParamTplResponse.new
|
912
|
+
model.deserialize(response['Response'])
|
913
|
+
model
|
914
|
+
else
|
915
|
+
code = response['Response']['Error']['Code']
|
916
|
+
message = response['Response']['Error']['Message']
|
917
|
+
reqid = response['Response']['RequestId']
|
918
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
919
|
+
end
|
920
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
921
|
+
raise e
|
922
|
+
rescue StandardError => e
|
923
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
924
|
+
end
|
925
|
+
|
801
926
|
# 本接口(ModifyDBInstanceSecurityGroup)用于修改实例绑定的安全组
|
802
927
|
|
803
928
|
# @param request: Request instance for ModifyDBInstanceSecurityGroup.
|
data/lib/v20190725/models.rb
CHANGED
@@ -607,6 +607,70 @@ module TencentCloud
|
|
607
607
|
end
|
608
608
|
end
|
609
609
|
|
610
|
+
# CreateDBInstanceParamTpl请求参数结构体
|
611
|
+
class CreateDBInstanceParamTplRequest < TencentCloud::Common::AbstractModel
|
612
|
+
# @param TplName: 参数模板名称。
|
613
|
+
# @type TplName: String
|
614
|
+
# @param MongoVersion: 版本号,该参数模板支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果。参数与版本对应关系是:MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本,MONGO_40_WT:MongoDB 4.0 WiredTiger存储引擎版本,MONGO_42_WT:MongoDB 4.2 WiredTiger存储引擎版本。当MirrorTplId为空时,该字段必填。
|
615
|
+
# @type MongoVersion: String
|
616
|
+
# @param ClusterType: 实例类型,REPLSET-副本集,SHARD-分片集群,STANDALONE-单节点
|
617
|
+
# 当MirrorTplId为空时,该字段必填。
|
618
|
+
# @type ClusterType: String
|
619
|
+
# @param TplDesc: 模板描述信息。
|
620
|
+
# @type TplDesc: String
|
621
|
+
# @param Params: 模板参数,若为空,则以系统默认模板作为新版本参数。
|
622
|
+
# @type Params: Array
|
623
|
+
# @param MirrorTplId: 镜像模板ID,若该字段不为空,则以该模板为镜像,克隆出一个新的模板。注意:MirrorTplId不为空时,MongoVersion及ClusterType将以MirrorTpl模板的版本及实例类型为准。
|
624
|
+
# @type MirrorTplId: String
|
625
|
+
|
626
|
+
attr_accessor :TplName, :MongoVersion, :ClusterType, :TplDesc, :Params, :MirrorTplId
|
627
|
+
|
628
|
+
def initialize(tplname=nil, mongoversion=nil, clustertype=nil, tpldesc=nil, params=nil, mirrortplid=nil)
|
629
|
+
@TplName = tplname
|
630
|
+
@MongoVersion = mongoversion
|
631
|
+
@ClusterType = clustertype
|
632
|
+
@TplDesc = tpldesc
|
633
|
+
@Params = params
|
634
|
+
@MirrorTplId = mirrortplid
|
635
|
+
end
|
636
|
+
|
637
|
+
def deserialize(params)
|
638
|
+
@TplName = params['TplName']
|
639
|
+
@MongoVersion = params['MongoVersion']
|
640
|
+
@ClusterType = params['ClusterType']
|
641
|
+
@TplDesc = params['TplDesc']
|
642
|
+
unless params['Params'].nil?
|
643
|
+
@Params = []
|
644
|
+
params['Params'].each do |i|
|
645
|
+
paramtype_tmp = ParamType.new
|
646
|
+
paramtype_tmp.deserialize(i)
|
647
|
+
@Params << paramtype_tmp
|
648
|
+
end
|
649
|
+
end
|
650
|
+
@MirrorTplId = params['MirrorTplId']
|
651
|
+
end
|
652
|
+
end
|
653
|
+
|
654
|
+
# CreateDBInstanceParamTpl返回参数结构体
|
655
|
+
class CreateDBInstanceParamTplResponse < TencentCloud::Common::AbstractModel
|
656
|
+
# @param TplId: 模板ID
|
657
|
+
# @type TplId: String
|
658
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
659
|
+
# @type RequestId: String
|
660
|
+
|
661
|
+
attr_accessor :TplId, :RequestId
|
662
|
+
|
663
|
+
def initialize(tplid=nil, requestid=nil)
|
664
|
+
@TplId = tplid
|
665
|
+
@RequestId = requestid
|
666
|
+
end
|
667
|
+
|
668
|
+
def deserialize(params)
|
669
|
+
@TplId = params['TplId']
|
670
|
+
@RequestId = params['RequestId']
|
671
|
+
end
|
672
|
+
end
|
673
|
+
|
610
674
|
# CreateDBInstance请求参数结构体
|
611
675
|
class CreateDBInstanceRequest < TencentCloud::Common::AbstractModel
|
612
676
|
# @param NodeNum: - 创建副本集实例,指每个副本集内主从节点数量。每个副本集所支持的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。
|
@@ -1480,6 +1544,171 @@ module TencentCloud
|
|
1480
1544
|
end
|
1481
1545
|
end
|
1482
1546
|
|
1547
|
+
# DescribeDBInstanceParamTplDetail请求参数结构体
|
1548
|
+
class DescribeDBInstanceParamTplDetailRequest < TencentCloud::Common::AbstractModel
|
1549
|
+
# @param TplId: 参数模板 ID。
|
1550
|
+
# @type TplId: String
|
1551
|
+
# @param ParamName: 参数名称,传入该值,则只会获取该字段的参数详情。为空时,返回全部参数。
|
1552
|
+
# @type ParamName: String
|
1553
|
+
|
1554
|
+
attr_accessor :TplId, :ParamName
|
1555
|
+
|
1556
|
+
def initialize(tplid=nil, paramname=nil)
|
1557
|
+
@TplId = tplid
|
1558
|
+
@ParamName = paramname
|
1559
|
+
end
|
1560
|
+
|
1561
|
+
def deserialize(params)
|
1562
|
+
@TplId = params['TplId']
|
1563
|
+
@ParamName = params['ParamName']
|
1564
|
+
end
|
1565
|
+
end
|
1566
|
+
|
1567
|
+
# DescribeDBInstanceParamTplDetail返回参数结构体
|
1568
|
+
class DescribeDBInstanceParamTplDetailResponse < TencentCloud::Common::AbstractModel
|
1569
|
+
# @param InstanceEnumParams: 枚举类参数详情列表。
|
1570
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1571
|
+
# @type InstanceEnumParams: Array
|
1572
|
+
# @param InstanceIntegerParams: 整形参数详情列表。
|
1573
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1574
|
+
# @type InstanceIntegerParams: Array
|
1575
|
+
# @param InstanceTextParams: 文本参数详情列表。
|
1576
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1577
|
+
# @type InstanceTextParams: Array
|
1578
|
+
# @param InstanceMultiParams: 多值参数详情列表。
|
1579
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1580
|
+
# @type InstanceMultiParams: Array
|
1581
|
+
# @param TotalCount: 参数总个数。
|
1582
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1583
|
+
# @type TotalCount: Integer
|
1584
|
+
# @param MongoVersion: 模板适配实例版本。
|
1585
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1586
|
+
# @type MongoVersion: String
|
1587
|
+
# @param ClusterType: 模板适配集群类型,副本集或分片。。
|
1588
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1589
|
+
# @type ClusterType: String
|
1590
|
+
# @param TplName: 参数模板名称。
|
1591
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1592
|
+
# @type TplName: String
|
1593
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1594
|
+
# @type RequestId: String
|
1595
|
+
|
1596
|
+
attr_accessor :InstanceEnumParams, :InstanceIntegerParams, :InstanceTextParams, :InstanceMultiParams, :TotalCount, :MongoVersion, :ClusterType, :TplName, :RequestId
|
1597
|
+
|
1598
|
+
def initialize(instanceenumparams=nil, instanceintegerparams=nil, instancetextparams=nil, instancemultiparams=nil, totalcount=nil, mongoversion=nil, clustertype=nil, tplname=nil, requestid=nil)
|
1599
|
+
@InstanceEnumParams = instanceenumparams
|
1600
|
+
@InstanceIntegerParams = instanceintegerparams
|
1601
|
+
@InstanceTextParams = instancetextparams
|
1602
|
+
@InstanceMultiParams = instancemultiparams
|
1603
|
+
@TotalCount = totalcount
|
1604
|
+
@MongoVersion = mongoversion
|
1605
|
+
@ClusterType = clustertype
|
1606
|
+
@TplName = tplname
|
1607
|
+
@RequestId = requestid
|
1608
|
+
end
|
1609
|
+
|
1610
|
+
def deserialize(params)
|
1611
|
+
unless params['InstanceEnumParams'].nil?
|
1612
|
+
@InstanceEnumParams = []
|
1613
|
+
params['InstanceEnumParams'].each do |i|
|
1614
|
+
instanceenumparam_tmp = InstanceEnumParam.new
|
1615
|
+
instanceenumparam_tmp.deserialize(i)
|
1616
|
+
@InstanceEnumParams << instanceenumparam_tmp
|
1617
|
+
end
|
1618
|
+
end
|
1619
|
+
unless params['InstanceIntegerParams'].nil?
|
1620
|
+
@InstanceIntegerParams = []
|
1621
|
+
params['InstanceIntegerParams'].each do |i|
|
1622
|
+
instanceintegerparam_tmp = InstanceIntegerParam.new
|
1623
|
+
instanceintegerparam_tmp.deserialize(i)
|
1624
|
+
@InstanceIntegerParams << instanceintegerparam_tmp
|
1625
|
+
end
|
1626
|
+
end
|
1627
|
+
unless params['InstanceTextParams'].nil?
|
1628
|
+
@InstanceTextParams = []
|
1629
|
+
params['InstanceTextParams'].each do |i|
|
1630
|
+
instancetextparam_tmp = InstanceTextParam.new
|
1631
|
+
instancetextparam_tmp.deserialize(i)
|
1632
|
+
@InstanceTextParams << instancetextparam_tmp
|
1633
|
+
end
|
1634
|
+
end
|
1635
|
+
unless params['InstanceMultiParams'].nil?
|
1636
|
+
@InstanceMultiParams = []
|
1637
|
+
params['InstanceMultiParams'].each do |i|
|
1638
|
+
instancemultiparam_tmp = InstanceMultiParam.new
|
1639
|
+
instancemultiparam_tmp.deserialize(i)
|
1640
|
+
@InstanceMultiParams << instancemultiparam_tmp
|
1641
|
+
end
|
1642
|
+
end
|
1643
|
+
@TotalCount = params['TotalCount']
|
1644
|
+
@MongoVersion = params['MongoVersion']
|
1645
|
+
@ClusterType = params['ClusterType']
|
1646
|
+
@TplName = params['TplName']
|
1647
|
+
@RequestId = params['RequestId']
|
1648
|
+
end
|
1649
|
+
end
|
1650
|
+
|
1651
|
+
# DescribeDBInstanceParamTpl请求参数结构体
|
1652
|
+
class DescribeDBInstanceParamTplRequest < TencentCloud::Common::AbstractModel
|
1653
|
+
# @param TplIds: 参数模板 ID 查询条件。
|
1654
|
+
# @type TplIds: Array
|
1655
|
+
# @param TplNames: 模板名称,查询条件。
|
1656
|
+
# @type TplNames: Array
|
1657
|
+
# @param MongoVersion: 根据版本号插叙参数模板,具体支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果。参数与版本对应关系是:MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本,MONGO_40_WT:MongoDB 4.0 WiredTiger存储引擎版本,MONGO_42_WT:MongoDB 4.2 WiredTiger存储引擎版本。
|
1658
|
+
# @type MongoVersion: Array
|
1659
|
+
# @param TplType: 根据模板类型查询参数模板,支持DEFAULT(默认模板)和CUSTOMIZE(自定义模板)两种。
|
1660
|
+
# @type TplType: String
|
1661
|
+
|
1662
|
+
attr_accessor :TplIds, :TplNames, :MongoVersion, :TplType
|
1663
|
+
|
1664
|
+
def initialize(tplids=nil, tplnames=nil, mongoversion=nil, tpltype=nil)
|
1665
|
+
@TplIds = tplids
|
1666
|
+
@TplNames = tplnames
|
1667
|
+
@MongoVersion = mongoversion
|
1668
|
+
@TplType = tpltype
|
1669
|
+
end
|
1670
|
+
|
1671
|
+
def deserialize(params)
|
1672
|
+
@TplIds = params['TplIds']
|
1673
|
+
@TplNames = params['TplNames']
|
1674
|
+
@MongoVersion = params['MongoVersion']
|
1675
|
+
@TplType = params['TplType']
|
1676
|
+
end
|
1677
|
+
end
|
1678
|
+
|
1679
|
+
# DescribeDBInstanceParamTpl返回参数结构体
|
1680
|
+
class DescribeDBInstanceParamTplResponse < TencentCloud::Common::AbstractModel
|
1681
|
+
# @param ParamTpls: 参数模板列表信息。
|
1682
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1683
|
+
# @type ParamTpls: Array
|
1684
|
+
# @param TotalCount: 参数模板总数。
|
1685
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1686
|
+
# @type TotalCount: Integer
|
1687
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1688
|
+
# @type RequestId: String
|
1689
|
+
|
1690
|
+
attr_accessor :ParamTpls, :TotalCount, :RequestId
|
1691
|
+
|
1692
|
+
def initialize(paramtpls=nil, totalcount=nil, requestid=nil)
|
1693
|
+
@ParamTpls = paramtpls
|
1694
|
+
@TotalCount = totalcount
|
1695
|
+
@RequestId = requestid
|
1696
|
+
end
|
1697
|
+
|
1698
|
+
def deserialize(params)
|
1699
|
+
unless params['ParamTpls'].nil?
|
1700
|
+
@ParamTpls = []
|
1701
|
+
params['ParamTpls'].each do |i|
|
1702
|
+
paramtpl_tmp = ParamTpl.new
|
1703
|
+
paramtpl_tmp.deserialize(i)
|
1704
|
+
@ParamTpls << paramtpl_tmp
|
1705
|
+
end
|
1706
|
+
end
|
1707
|
+
@TotalCount = params['TotalCount']
|
1708
|
+
@RequestId = params['RequestId']
|
1709
|
+
end
|
1710
|
+
end
|
1711
|
+
|
1483
1712
|
# DescribeDBInstances请求参数结构体
|
1484
1713
|
class DescribeDBInstancesRequest < TencentCloud::Common::AbstractModel
|
1485
1714
|
# @param InstanceIds: 实例 ID 列表。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
|
@@ -1944,6 +2173,38 @@ module TencentCloud
|
|
1944
2173
|
end
|
1945
2174
|
end
|
1946
2175
|
|
2176
|
+
# DropDBInstanceParamTpl请求参数结构体
|
2177
|
+
class DropDBInstanceParamTplRequest < TencentCloud::Common::AbstractModel
|
2178
|
+
# @param TplId: 参数模板 ID。
|
2179
|
+
# @type TplId: String
|
2180
|
+
|
2181
|
+
attr_accessor :TplId
|
2182
|
+
|
2183
|
+
def initialize(tplid=nil)
|
2184
|
+
@TplId = tplid
|
2185
|
+
end
|
2186
|
+
|
2187
|
+
def deserialize(params)
|
2188
|
+
@TplId = params['TplId']
|
2189
|
+
end
|
2190
|
+
end
|
2191
|
+
|
2192
|
+
# DropDBInstanceParamTpl返回参数结构体
|
2193
|
+
class DropDBInstanceParamTplResponse < TencentCloud::Common::AbstractModel
|
2194
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2195
|
+
# @type RequestId: String
|
2196
|
+
|
2197
|
+
attr_accessor :RequestId
|
2198
|
+
|
2199
|
+
def initialize(requestid=nil)
|
2200
|
+
@RequestId = requestid
|
2201
|
+
end
|
2202
|
+
|
2203
|
+
def deserialize(params)
|
2204
|
+
@RequestId = params['RequestId']
|
2205
|
+
end
|
2206
|
+
end
|
2207
|
+
|
1947
2208
|
# EnableTransparentDataEncryption请求参数结构体
|
1948
2209
|
class EnableTransparentDataEncryptionRequest < TencentCloud::Common::AbstractModel
|
1949
2210
|
# @param InstanceId: 实例 ID,例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。目前支持通用版本包含:4.4、5.0,云盘版暂不支持。
|
@@ -3039,6 +3300,57 @@ module TencentCloud
|
|
3039
3300
|
end
|
3040
3301
|
end
|
3041
3302
|
|
3303
|
+
# ModifyDBInstanceParamTpl请求参数结构体
|
3304
|
+
class ModifyDBInstanceParamTplRequest < TencentCloud::Common::AbstractModel
|
3305
|
+
# @param TplId: 待修改的参数模板 ID,示例:tpl-jglr91vew。
|
3306
|
+
# @type TplId: String
|
3307
|
+
# @param TplName: 待修改参数模板名称,为空时,保持原有名称。
|
3308
|
+
# @type TplName: String
|
3309
|
+
# @param TplDesc: 待修改参数模板描述,为空时,保持原有描述。
|
3310
|
+
# @type TplDesc: String
|
3311
|
+
# @param Params: 待修改参数名及参数值,为空时,各参数保持原有值,支持单条或批量修改。
|
3312
|
+
# @type Params: Array
|
3313
|
+
|
3314
|
+
attr_accessor :TplId, :TplName, :TplDesc, :Params
|
3315
|
+
|
3316
|
+
def initialize(tplid=nil, tplname=nil, tpldesc=nil, params=nil)
|
3317
|
+
@TplId = tplid
|
3318
|
+
@TplName = tplname
|
3319
|
+
@TplDesc = tpldesc
|
3320
|
+
@Params = params
|
3321
|
+
end
|
3322
|
+
|
3323
|
+
def deserialize(params)
|
3324
|
+
@TplId = params['TplId']
|
3325
|
+
@TplName = params['TplName']
|
3326
|
+
@TplDesc = params['TplDesc']
|
3327
|
+
unless params['Params'].nil?
|
3328
|
+
@Params = []
|
3329
|
+
params['Params'].each do |i|
|
3330
|
+
paramtype_tmp = ParamType.new
|
3331
|
+
paramtype_tmp.deserialize(i)
|
3332
|
+
@Params << paramtype_tmp
|
3333
|
+
end
|
3334
|
+
end
|
3335
|
+
end
|
3336
|
+
end
|
3337
|
+
|
3338
|
+
# ModifyDBInstanceParamTpl返回参数结构体
|
3339
|
+
class ModifyDBInstanceParamTplResponse < TencentCloud::Common::AbstractModel
|
3340
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3341
|
+
# @type RequestId: String
|
3342
|
+
|
3343
|
+
attr_accessor :RequestId
|
3344
|
+
|
3345
|
+
def initialize(requestid=nil)
|
3346
|
+
@RequestId = requestid
|
3347
|
+
end
|
3348
|
+
|
3349
|
+
def deserialize(params)
|
3350
|
+
@RequestId = params['RequestId']
|
3351
|
+
end
|
3352
|
+
end
|
3353
|
+
|
3042
3354
|
# ModifyDBInstanceSecurityGroup请求参数结构体
|
3043
3355
|
class ModifyDBInstanceSecurityGroupRequest < TencentCloud::Common::AbstractModel
|
3044
3356
|
# @param InstanceId: 实例 ID。例如:cmgo-7pje****。
|
@@ -3423,6 +3735,62 @@ module TencentCloud
|
|
3423
3735
|
end
|
3424
3736
|
end
|
3425
3737
|
|
3738
|
+
# 数据库参数模板
|
3739
|
+
class ParamTpl < TencentCloud::Common::AbstractModel
|
3740
|
+
# @param TplName: 参数模板名称
|
3741
|
+
# @type TplName: String
|
3742
|
+
# @param TplId: 参数模板ID
|
3743
|
+
# @type TplId: String
|
3744
|
+
# @param MongoVersion: 适用数据库版本
|
3745
|
+
# @type MongoVersion: String
|
3746
|
+
# @param ClusterType: 适用数据库类型
|
3747
|
+
# @type ClusterType: String
|
3748
|
+
# @param TplDesc: 参数模板描述
|
3749
|
+
# @type TplDesc: String
|
3750
|
+
# @param TplType: 模板类型,包括DEFAULT(默认模板)及CUSTOMIZE(定制模板)两种类型
|
3751
|
+
# @type TplType: String
|
3752
|
+
|
3753
|
+
attr_accessor :TplName, :TplId, :MongoVersion, :ClusterType, :TplDesc, :TplType
|
3754
|
+
|
3755
|
+
def initialize(tplname=nil, tplid=nil, mongoversion=nil, clustertype=nil, tpldesc=nil, tpltype=nil)
|
3756
|
+
@TplName = tplname
|
3757
|
+
@TplId = tplid
|
3758
|
+
@MongoVersion = mongoversion
|
3759
|
+
@ClusterType = clustertype
|
3760
|
+
@TplDesc = tpldesc
|
3761
|
+
@TplType = tpltype
|
3762
|
+
end
|
3763
|
+
|
3764
|
+
def deserialize(params)
|
3765
|
+
@TplName = params['TplName']
|
3766
|
+
@TplId = params['TplId']
|
3767
|
+
@MongoVersion = params['MongoVersion']
|
3768
|
+
@ClusterType = params['ClusterType']
|
3769
|
+
@TplDesc = params['TplDesc']
|
3770
|
+
@TplType = params['TplType']
|
3771
|
+
end
|
3772
|
+
end
|
3773
|
+
|
3774
|
+
# 数据库参数
|
3775
|
+
class ParamType < TencentCloud::Common::AbstractModel
|
3776
|
+
# @param Key: 参数
|
3777
|
+
# @type Key: String
|
3778
|
+
# @param Value: 参数值
|
3779
|
+
# @type Value: String
|
3780
|
+
|
3781
|
+
attr_accessor :Key, :Value
|
3782
|
+
|
3783
|
+
def initialize(key=nil, value=nil)
|
3784
|
+
@Key = key
|
3785
|
+
@Value = value
|
3786
|
+
end
|
3787
|
+
|
3788
|
+
def deserialize(params)
|
3789
|
+
@Key = params['Key']
|
3790
|
+
@Value = params['Value']
|
3791
|
+
end
|
3792
|
+
end
|
3793
|
+
|
3426
3794
|
# 修改实例节点详情
|
3427
3795
|
class RemoveNodeList < TencentCloud::Common::AbstractModel
|
3428
3796
|
# @param Role: 需要删除的节点角色。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-mongodb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.871
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|