tencentcloud-sdk-mongodb 3.0.1201 → 3.0.1209
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190725/client.rb +96 -0
- data/lib/v20190725/models.rb +150 -2
- 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: 36f6a4e34a47b34cd612b1dbaa73a4e081fda4ec
|
|
4
|
+
data.tar.gz: eec3b5ea871e5329fa54cdb09203cc6ee8f8d642
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 85a1940fb86e6dd17bd1b43d830260fd7551cba4d90b64d0ce2f3a033d58d397b90605c17142f075e09aaf2c982da793e525670e3701901f017ddffb9cb6c59f
|
|
7
|
+
data.tar.gz: 41facf292ad2e1594600af43437cae72f8070b018d4e4eab53589d175b1cc12d7580afe495ed02f07d54cb8d83d72c70812f9b5105ea3f3e8a748198ecb09d8d
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1209
|
data/lib/v20190725/client.rb
CHANGED
|
@@ -800,6 +800,30 @@ module TencentCloud
|
|
|
800
800
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
801
801
|
end
|
|
802
802
|
|
|
803
|
+
# 本接口(DescribeSRVConnectionDomain)用于查询MongoDB数据库当前的域名信息。
|
|
804
|
+
|
|
805
|
+
# @param request: Request instance for DescribeSRVConnectionDomain.
|
|
806
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::DescribeSRVConnectionDomainRequest`
|
|
807
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::DescribeSRVConnectionDomainResponse`
|
|
808
|
+
def DescribeSRVConnectionDomain(request)
|
|
809
|
+
body = send_request('DescribeSRVConnectionDomain', request.serialize)
|
|
810
|
+
response = JSON.parse(body)
|
|
811
|
+
if response['Response'].key?('Error') == false
|
|
812
|
+
model = DescribeSRVConnectionDomainResponse.new
|
|
813
|
+
model.deserialize(response['Response'])
|
|
814
|
+
model
|
|
815
|
+
else
|
|
816
|
+
code = response['Response']['Error']['Code']
|
|
817
|
+
message = response['Response']['Error']['Message']
|
|
818
|
+
reqid = response['Response']['RequestId']
|
|
819
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
820
|
+
end
|
|
821
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
822
|
+
raise e
|
|
823
|
+
rescue StandardError => e
|
|
824
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
825
|
+
end
|
|
826
|
+
|
|
803
827
|
# 本接口(DescribeSecurityGroup)用于查询实例绑定的安全组。
|
|
804
828
|
|
|
805
829
|
# @param request: Request instance for DescribeSecurityGroup.
|
|
@@ -920,6 +944,30 @@ module TencentCloud
|
|
|
920
944
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
921
945
|
end
|
|
922
946
|
|
|
947
|
+
# 本接口(DisableSRVConnectionUrl)用于关闭MongoDB数据库的SRV访问地址。
|
|
948
|
+
|
|
949
|
+
# @param request: Request instance for DisableSRVConnectionUrl.
|
|
950
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::DisableSRVConnectionUrlRequest`
|
|
951
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::DisableSRVConnectionUrlResponse`
|
|
952
|
+
def DisableSRVConnectionUrl(request)
|
|
953
|
+
body = send_request('DisableSRVConnectionUrl', request.serialize)
|
|
954
|
+
response = JSON.parse(body)
|
|
955
|
+
if response['Response'].key?('Error') == false
|
|
956
|
+
model = DisableSRVConnectionUrlResponse.new
|
|
957
|
+
model.deserialize(response['Response'])
|
|
958
|
+
model
|
|
959
|
+
else
|
|
960
|
+
code = response['Response']['Error']['Code']
|
|
961
|
+
message = response['Response']['Error']['Message']
|
|
962
|
+
reqid = response['Response']['RequestId']
|
|
963
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
964
|
+
end
|
|
965
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
966
|
+
raise e
|
|
967
|
+
rescue StandardError => e
|
|
968
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
969
|
+
end
|
|
970
|
+
|
|
923
971
|
# 本接口(DropDBInstanceParamTpl )用于删除云数据库MongoDB实例的参数模板
|
|
924
972
|
# **说明:DropDBInstanceParamTpl API正在公测中,在此期间,该接口仅对公测用户开放**
|
|
925
973
|
|
|
@@ -945,6 +993,30 @@ module TencentCloud
|
|
|
945
993
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
946
994
|
end
|
|
947
995
|
|
|
996
|
+
# 本接口(EnableSRVConnectionUrl)用于开启MongoDB数据库的SRV访问地址。
|
|
997
|
+
|
|
998
|
+
# @param request: Request instance for EnableSRVConnectionUrl.
|
|
999
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::EnableSRVConnectionUrlRequest`
|
|
1000
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::EnableSRVConnectionUrlResponse`
|
|
1001
|
+
def EnableSRVConnectionUrl(request)
|
|
1002
|
+
body = send_request('EnableSRVConnectionUrl', request.serialize)
|
|
1003
|
+
response = JSON.parse(body)
|
|
1004
|
+
if response['Response'].key?('Error') == false
|
|
1005
|
+
model = EnableSRVConnectionUrlResponse.new
|
|
1006
|
+
model.deserialize(response['Response'])
|
|
1007
|
+
model
|
|
1008
|
+
else
|
|
1009
|
+
code = response['Response']['Error']['Code']
|
|
1010
|
+
message = response['Response']['Error']['Message']
|
|
1011
|
+
reqid = response['Response']['RequestId']
|
|
1012
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1013
|
+
end
|
|
1014
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1015
|
+
raise e
|
|
1016
|
+
rescue StandardError => e
|
|
1017
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1018
|
+
end
|
|
1019
|
+
|
|
948
1020
|
# 本接口(EnableTransparentDataEncryption)用于开启云数据库 MongoDB 的透明加密能力。
|
|
949
1021
|
|
|
950
1022
|
# @param request: Request instance for EnableTransparentDataEncryption.
|
|
@@ -1307,6 +1379,30 @@ module TencentCloud
|
|
|
1307
1379
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1308
1380
|
end
|
|
1309
1381
|
|
|
1382
|
+
# 本接口(DisableSRVConnectionUrl)用于修改MongoDB数据库的SRV访问地址的TTL时长。
|
|
1383
|
+
|
|
1384
|
+
# @param request: Request instance for ModifySRVConnectionUrl.
|
|
1385
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::ModifySRVConnectionUrlRequest`
|
|
1386
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::ModifySRVConnectionUrlResponse`
|
|
1387
|
+
def ModifySRVConnectionUrl(request)
|
|
1388
|
+
body = send_request('ModifySRVConnectionUrl', request.serialize)
|
|
1389
|
+
response = JSON.parse(body)
|
|
1390
|
+
if response['Response'].key?('Error') == false
|
|
1391
|
+
model = ModifySRVConnectionUrlResponse.new
|
|
1392
|
+
model.deserialize(response['Response'])
|
|
1393
|
+
model
|
|
1394
|
+
else
|
|
1395
|
+
code = response['Response']['Error']['Code']
|
|
1396
|
+
message = response['Response']['Error']['Message']
|
|
1397
|
+
reqid = response['Response']['RequestId']
|
|
1398
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1399
|
+
end
|
|
1400
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1401
|
+
raise e
|
|
1402
|
+
rescue StandardError => e
|
|
1403
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1404
|
+
end
|
|
1405
|
+
|
|
1310
1406
|
# 本接口(OfflineIsolatedDBInstance)用于立即下线隔离状态的云数据库实例。进行操作的实例状态必须为隔离状态。
|
|
1311
1407
|
|
|
1312
1408
|
# @param request: Request instance for OfflineIsolatedDBInstance.
|
data/lib/v20190725/models.rb
CHANGED
|
@@ -2954,6 +2954,42 @@ module TencentCloud
|
|
|
2954
2954
|
end
|
|
2955
2955
|
end
|
|
2956
2956
|
|
|
2957
|
+
# DescribeSRVConnectionDomain请求参数结构体
|
|
2958
|
+
class DescribeSRVConnectionDomainRequest < TencentCloud::Common::AbstractModel
|
|
2959
|
+
# @param InstanceId: 实例 ID,例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
|
|
2960
|
+
# @type InstanceId: String
|
|
2961
|
+
|
|
2962
|
+
attr_accessor :InstanceId
|
|
2963
|
+
|
|
2964
|
+
def initialize(instanceid=nil)
|
|
2965
|
+
@InstanceId = instanceid
|
|
2966
|
+
end
|
|
2967
|
+
|
|
2968
|
+
def deserialize(params)
|
|
2969
|
+
@InstanceId = params['InstanceId']
|
|
2970
|
+
end
|
|
2971
|
+
end
|
|
2972
|
+
|
|
2973
|
+
# DescribeSRVConnectionDomain返回参数结构体
|
|
2974
|
+
class DescribeSRVConnectionDomainResponse < TencentCloud::Common::AbstractModel
|
|
2975
|
+
# @param Domain: 实例当前的srv域名信息。
|
|
2976
|
+
# @type Domain: String
|
|
2977
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2978
|
+
# @type RequestId: String
|
|
2979
|
+
|
|
2980
|
+
attr_accessor :Domain, :RequestId
|
|
2981
|
+
|
|
2982
|
+
def initialize(domain=nil, requestid=nil)
|
|
2983
|
+
@Domain = domain
|
|
2984
|
+
@RequestId = requestid
|
|
2985
|
+
end
|
|
2986
|
+
|
|
2987
|
+
def deserialize(params)
|
|
2988
|
+
@Domain = params['Domain']
|
|
2989
|
+
@RequestId = params['RequestId']
|
|
2990
|
+
end
|
|
2991
|
+
end
|
|
2992
|
+
|
|
2957
2993
|
# DescribeSecurityGroup请求参数结构体
|
|
2958
2994
|
class DescribeSecurityGroupRequest < TencentCloud::Common::AbstractModel
|
|
2959
2995
|
# @param InstanceId: 实例 ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
|
|
@@ -3233,6 +3269,42 @@ module TencentCloud
|
|
|
3233
3269
|
end
|
|
3234
3270
|
end
|
|
3235
3271
|
|
|
3272
|
+
# DisableSRVConnectionUrl请求参数结构体
|
|
3273
|
+
class DisableSRVConnectionUrlRequest < TencentCloud::Common::AbstractModel
|
|
3274
|
+
# @param InstanceId: 实例 ID,例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
|
|
3275
|
+
# @type InstanceId: String
|
|
3276
|
+
|
|
3277
|
+
attr_accessor :InstanceId
|
|
3278
|
+
|
|
3279
|
+
def initialize(instanceid=nil)
|
|
3280
|
+
@InstanceId = instanceid
|
|
3281
|
+
end
|
|
3282
|
+
|
|
3283
|
+
def deserialize(params)
|
|
3284
|
+
@InstanceId = params['InstanceId']
|
|
3285
|
+
end
|
|
3286
|
+
end
|
|
3287
|
+
|
|
3288
|
+
# DisableSRVConnectionUrl返回参数结构体
|
|
3289
|
+
class DisableSRVConnectionUrlResponse < TencentCloud::Common::AbstractModel
|
|
3290
|
+
# @param FlowId: 开启任务ID。
|
|
3291
|
+
# @type FlowId: Integer
|
|
3292
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3293
|
+
# @type RequestId: String
|
|
3294
|
+
|
|
3295
|
+
attr_accessor :FlowId, :RequestId
|
|
3296
|
+
|
|
3297
|
+
def initialize(flowid=nil, requestid=nil)
|
|
3298
|
+
@FlowId = flowid
|
|
3299
|
+
@RequestId = requestid
|
|
3300
|
+
end
|
|
3301
|
+
|
|
3302
|
+
def deserialize(params)
|
|
3303
|
+
@FlowId = params['FlowId']
|
|
3304
|
+
@RequestId = params['RequestId']
|
|
3305
|
+
end
|
|
3306
|
+
end
|
|
3307
|
+
|
|
3236
3308
|
# DropDBInstanceParamTpl请求参数结构体
|
|
3237
3309
|
class DropDBInstanceParamTplRequest < TencentCloud::Common::AbstractModel
|
|
3238
3310
|
# @param TplId: 参数模板 ID。请通过接口 [DescribeDBInstanceParamTpl](https://cloud.tencent.com/document/product/240/109155) 获取模板 ID。
|
|
@@ -3265,6 +3337,42 @@ module TencentCloud
|
|
|
3265
3337
|
end
|
|
3266
3338
|
end
|
|
3267
3339
|
|
|
3340
|
+
# EnableSRVConnectionUrl请求参数结构体
|
|
3341
|
+
class EnableSRVConnectionUrlRequest < TencentCloud::Common::AbstractModel
|
|
3342
|
+
# @param InstanceId: 实例 ID,例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
|
|
3343
|
+
# @type InstanceId: String
|
|
3344
|
+
|
|
3345
|
+
attr_accessor :InstanceId
|
|
3346
|
+
|
|
3347
|
+
def initialize(instanceid=nil)
|
|
3348
|
+
@InstanceId = instanceid
|
|
3349
|
+
end
|
|
3350
|
+
|
|
3351
|
+
def deserialize(params)
|
|
3352
|
+
@InstanceId = params['InstanceId']
|
|
3353
|
+
end
|
|
3354
|
+
end
|
|
3355
|
+
|
|
3356
|
+
# EnableSRVConnectionUrl返回参数结构体
|
|
3357
|
+
class EnableSRVConnectionUrlResponse < TencentCloud::Common::AbstractModel
|
|
3358
|
+
# @param FlowId: 开启任务ID。
|
|
3359
|
+
# @type FlowId: Integer
|
|
3360
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3361
|
+
# @type RequestId: String
|
|
3362
|
+
|
|
3363
|
+
attr_accessor :FlowId, :RequestId
|
|
3364
|
+
|
|
3365
|
+
def initialize(flowid=nil, requestid=nil)
|
|
3366
|
+
@FlowId = flowid
|
|
3367
|
+
@RequestId = requestid
|
|
3368
|
+
end
|
|
3369
|
+
|
|
3370
|
+
def deserialize(params)
|
|
3371
|
+
@FlowId = params['FlowId']
|
|
3372
|
+
@RequestId = params['RequestId']
|
|
3373
|
+
end
|
|
3374
|
+
end
|
|
3375
|
+
|
|
3268
3376
|
# EnableTransparentDataEncryption请求参数结构体
|
|
3269
3377
|
class EnableTransparentDataEncryptionRequest < TencentCloud::Common::AbstractModel
|
|
3270
3378
|
# @param InstanceId: 实例 ID,例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。目前支持通用版本包含:4.4、5.0,云盘版暂不支持。
|
|
@@ -4788,8 +4896,8 @@ module TencentCloud
|
|
|
4788
4896
|
|
|
4789
4897
|
attr_accessor :InstanceId, :Memory, :Volume, :OplogSize, :NodeNum, :ReplicateSetNum, :InMaintenance, :MongosMemory, :AddNodeList, :RemoveNodeList
|
|
4790
4898
|
extend Gem::Deprecate
|
|
4791
|
-
deprecate :OplogSize, :none,
|
|
4792
|
-
deprecate :OplogSize=, :none,
|
|
4899
|
+
deprecate :OplogSize, :none, 2026, 1
|
|
4900
|
+
deprecate :OplogSize=, :none, 2026, 1
|
|
4793
4901
|
|
|
4794
4902
|
def initialize(instanceid=nil, memory=nil, volume=nil, oplogsize=nil, nodenum=nil, replicatesetnum=nil, inmaintenance=nil, mongosmemory=nil, addnodelist=nil, removenodelist=nil)
|
|
4795
4903
|
@InstanceId = instanceid
|
|
@@ -4951,6 +5059,46 @@ module TencentCloud
|
|
|
4951
5059
|
end
|
|
4952
5060
|
end
|
|
4953
5061
|
|
|
5062
|
+
# ModifySRVConnectionUrl请求参数结构体
|
|
5063
|
+
class ModifySRVConnectionUrlRequest < TencentCloud::Common::AbstractModel
|
|
5064
|
+
# @param InstanceId: 实例 ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
|
|
5065
|
+
# @type InstanceId: String
|
|
5066
|
+
# @param CustomDomain: 自定义的实例的访问域名。
|
|
5067
|
+
# @type CustomDomain: String
|
|
5068
|
+
|
|
5069
|
+
attr_accessor :InstanceId, :CustomDomain
|
|
5070
|
+
|
|
5071
|
+
def initialize(instanceid=nil, customdomain=nil)
|
|
5072
|
+
@InstanceId = instanceid
|
|
5073
|
+
@CustomDomain = customdomain
|
|
5074
|
+
end
|
|
5075
|
+
|
|
5076
|
+
def deserialize(params)
|
|
5077
|
+
@InstanceId = params['InstanceId']
|
|
5078
|
+
@CustomDomain = params['CustomDomain']
|
|
5079
|
+
end
|
|
5080
|
+
end
|
|
5081
|
+
|
|
5082
|
+
# ModifySRVConnectionUrl返回参数结构体
|
|
5083
|
+
class ModifySRVConnectionUrlResponse < TencentCloud::Common::AbstractModel
|
|
5084
|
+
# @param FlowId: 开启任务ID。
|
|
5085
|
+
# @type FlowId: Integer
|
|
5086
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5087
|
+
# @type RequestId: String
|
|
5088
|
+
|
|
5089
|
+
attr_accessor :FlowId, :RequestId
|
|
5090
|
+
|
|
5091
|
+
def initialize(flowid=nil, requestid=nil)
|
|
5092
|
+
@FlowId = flowid
|
|
5093
|
+
@RequestId = requestid
|
|
5094
|
+
end
|
|
5095
|
+
|
|
5096
|
+
def deserialize(params)
|
|
5097
|
+
@FlowId = params['FlowId']
|
|
5098
|
+
@RequestId = params['RequestId']
|
|
5099
|
+
end
|
|
5100
|
+
end
|
|
5101
|
+
|
|
4954
5102
|
# 节点属性
|
|
4955
5103
|
class NodeProperty < TencentCloud::Common::AbstractModel
|
|
4956
5104
|
# @param Zone: 节点所在的可用区。
|
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.1209
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|