tencentcloud-sdk-mongodb 3.0.438 → 3.0.439
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 +24 -0
- data/lib/v20190725/models.rb +208 -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: 37310b7b8717acd09f902fd6e24fce9e0a5e4548
|
4
|
+
data.tar.gz: 757dd7f5005f75852cccb13bf1f615d83deda951
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 291d522644f4a7ab5524416644549680851e77fdda3e31a666be8587e463816e043555332b8b58c1739793c91a6643811b89d0eb12ca56b1e2b6f6a61280f60c
|
7
|
+
data.tar.gz: 2fdd0c18e1ef9fc696b6bdfcbbc26729c17a0c9b222a4bd7c9b638ca9472125fd0e7320b0c93dc5fb77200db6d8c61c608f355397ce072075f5ebba4762f56d7
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.439
|
data/lib/v20190725/client.rb
CHANGED
@@ -317,6 +317,30 @@ module TencentCloud
|
|
317
317
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
318
|
end
|
319
319
|
|
320
|
+
# 本接口用于查询节点的属性,包括节点所在可用区、节点名称、地址、角色、状态、主从延迟、优先级、投票权、标签等属性。
|
321
|
+
|
322
|
+
# @param request: Request instance for DescribeDBInstanceNodeProperty.
|
323
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::DescribeDBInstanceNodePropertyRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::DescribeDBInstanceNodePropertyResponse`
|
325
|
+
def DescribeDBInstanceNodeProperty(request)
|
326
|
+
body = send_request('DescribeDBInstanceNodeProperty', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = DescribeDBInstanceNodePropertyResponse.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
|
+
|
320
344
|
# 本接口(DescribeDBInstances)用于查询云数据库实例列表,支持通过项目ID、实例ID、实例状态等过滤条件来筛选实例。支持查询主实例、灾备实例和只读实例信息列表。
|
321
345
|
|
322
346
|
# @param request: Request instance for DescribeDBInstances.
|
data/lib/v20190725/models.rb
CHANGED
@@ -1117,6 +1117,94 @@ module TencentCloud
|
|
1117
1117
|
end
|
1118
1118
|
end
|
1119
1119
|
|
1120
|
+
# DescribeDBInstanceNodeProperty请求参数结构体
|
1121
|
+
class DescribeDBInstanceNodePropertyRequest < TencentCloud::Common::AbstractModel
|
1122
|
+
# @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同。
|
1123
|
+
# @type InstanceId: String
|
1124
|
+
# @param NodeIds: 节点ID。
|
1125
|
+
# @type NodeIds: Array
|
1126
|
+
# @param Roles: 节点角色。可选值包括:
|
1127
|
+
# <ul><li>PRIMARY:主节点。</li><li>SECONDARY:从节点。</li><li>READONLY:只读节点。</li><li>ARBITER:仲裁节点。</li></ul>
|
1128
|
+
# @type Roles: Array
|
1129
|
+
# @param OnlyHidden: 该参数指定节点是否为Hidden节点,默认为false。
|
1130
|
+
# @type OnlyHidden: Boolean
|
1131
|
+
# @param Priority: 该参数指定选举新主节点的优先级。其取值范围为[0,100],数值越高,优先级越高。
|
1132
|
+
# @type Priority: Integer
|
1133
|
+
# @param Votes: 该参数指定节点投票权。
|
1134
|
+
# <ul><li>1:具有投票权。</li><li>0:无投票权。</li></ul>
|
1135
|
+
# @type Votes: Integer
|
1136
|
+
# @param Tags: 节点标签。
|
1137
|
+
# @type Tags: Array
|
1138
|
+
|
1139
|
+
attr_accessor :InstanceId, :NodeIds, :Roles, :OnlyHidden, :Priority, :Votes, :Tags
|
1140
|
+
|
1141
|
+
def initialize(instanceid=nil, nodeids=nil, roles=nil, onlyhidden=nil, priority=nil, votes=nil, tags=nil)
|
1142
|
+
@InstanceId = instanceid
|
1143
|
+
@NodeIds = nodeids
|
1144
|
+
@Roles = roles
|
1145
|
+
@OnlyHidden = onlyhidden
|
1146
|
+
@Priority = priority
|
1147
|
+
@Votes = votes
|
1148
|
+
@Tags = tags
|
1149
|
+
end
|
1150
|
+
|
1151
|
+
def deserialize(params)
|
1152
|
+
@InstanceId = params['InstanceId']
|
1153
|
+
@NodeIds = params['NodeIds']
|
1154
|
+
@Roles = params['Roles']
|
1155
|
+
@OnlyHidden = params['OnlyHidden']
|
1156
|
+
@Priority = params['Priority']
|
1157
|
+
@Votes = params['Votes']
|
1158
|
+
unless params['Tags'].nil?
|
1159
|
+
@Tags = []
|
1160
|
+
params['Tags'].each do |i|
|
1161
|
+
nodetag_tmp = NodeTag.new
|
1162
|
+
nodetag_tmp.deserialize(i)
|
1163
|
+
@Tags << nodetag_tmp
|
1164
|
+
end
|
1165
|
+
end
|
1166
|
+
end
|
1167
|
+
end
|
1168
|
+
|
1169
|
+
# DescribeDBInstanceNodeProperty返回参数结构体
|
1170
|
+
class DescribeDBInstanceNodePropertyResponse < TencentCloud::Common::AbstractModel
|
1171
|
+
# @param Mongos: Mongos节点属性。
|
1172
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1173
|
+
# @type Mongos: Array
|
1174
|
+
# @param ReplicateSets: 副本集节点信息。
|
1175
|
+
# @type ReplicateSets: Array
|
1176
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1177
|
+
# @type RequestId: String
|
1178
|
+
|
1179
|
+
attr_accessor :Mongos, :ReplicateSets, :RequestId
|
1180
|
+
|
1181
|
+
def initialize(mongos=nil, replicatesets=nil, requestid=nil)
|
1182
|
+
@Mongos = mongos
|
1183
|
+
@ReplicateSets = replicatesets
|
1184
|
+
@RequestId = requestid
|
1185
|
+
end
|
1186
|
+
|
1187
|
+
def deserialize(params)
|
1188
|
+
unless params['Mongos'].nil?
|
1189
|
+
@Mongos = []
|
1190
|
+
params['Mongos'].each do |i|
|
1191
|
+
nodeproperty_tmp = NodeProperty.new
|
1192
|
+
nodeproperty_tmp.deserialize(i)
|
1193
|
+
@Mongos << nodeproperty_tmp
|
1194
|
+
end
|
1195
|
+
end
|
1196
|
+
unless params['ReplicateSets'].nil?
|
1197
|
+
@ReplicateSets = []
|
1198
|
+
params['ReplicateSets'].each do |i|
|
1199
|
+
replicatesetinfo_tmp = ReplicateSetInfo.new
|
1200
|
+
replicatesetinfo_tmp.deserialize(i)
|
1201
|
+
@ReplicateSets << replicatesetinfo_tmp
|
1202
|
+
end
|
1203
|
+
end
|
1204
|
+
@RequestId = params['RequestId']
|
1205
|
+
end
|
1206
|
+
end
|
1207
|
+
|
1120
1208
|
# DescribeDBInstances请求参数结构体
|
1121
1209
|
class DescribeDBInstancesRequest < TencentCloud::Common::AbstractModel
|
1122
1210
|
# @param InstanceIds: 实例ID列表,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
|
@@ -2420,6 +2508,102 @@ module TencentCloud
|
|
2420
2508
|
end
|
2421
2509
|
end
|
2422
2510
|
|
2511
|
+
# 节点属性
|
2512
|
+
class NodeProperty < TencentCloud::Common::AbstractModel
|
2513
|
+
# @param Zone: 节点所在的可用区。
|
2514
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2515
|
+
# @type Zone: String
|
2516
|
+
# @param NodeName: 节点名称。
|
2517
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2518
|
+
# @type NodeName: String
|
2519
|
+
# @param Address: 节点访问地址。
|
2520
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2521
|
+
# @type Address: String
|
2522
|
+
# @param Role: 角色。
|
2523
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2524
|
+
# @type Role: String
|
2525
|
+
# @param Hidden: 是否为Hidden节点
|
2526
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2527
|
+
# @type Hidden: Boolean
|
2528
|
+
# @param Status: 节点状态,包括:ORMAL/STARTUP/RECOVERING/STARTUP2/UNKNOWN/DOWN/ROLLBACK/REMOVED等。
|
2529
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2530
|
+
# @type Status: String
|
2531
|
+
# @param SlaveDelay: 主从延迟,单位秒。
|
2532
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2533
|
+
# @type SlaveDelay: Integer
|
2534
|
+
# @param Priority: 节点优先级。
|
2535
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2536
|
+
# @type Priority: Integer
|
2537
|
+
# @param Votes: 节点投票权。
|
2538
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2539
|
+
# @type Votes: Integer
|
2540
|
+
# @param Tags: 节点标签。
|
2541
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2542
|
+
# @type Tags: Array
|
2543
|
+
# @param ReplicateSetId: 副本集Id。
|
2544
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2545
|
+
# @type ReplicateSetId: String
|
2546
|
+
|
2547
|
+
attr_accessor :Zone, :NodeName, :Address, :Role, :Hidden, :Status, :SlaveDelay, :Priority, :Votes, :Tags, :ReplicateSetId
|
2548
|
+
|
2549
|
+
def initialize(zone=nil, nodename=nil, address=nil, role=nil, hidden=nil, status=nil, slavedelay=nil, priority=nil, votes=nil, tags=nil, replicatesetid=nil)
|
2550
|
+
@Zone = zone
|
2551
|
+
@NodeName = nodename
|
2552
|
+
@Address = address
|
2553
|
+
@Role = role
|
2554
|
+
@Hidden = hidden
|
2555
|
+
@Status = status
|
2556
|
+
@SlaveDelay = slavedelay
|
2557
|
+
@Priority = priority
|
2558
|
+
@Votes = votes
|
2559
|
+
@Tags = tags
|
2560
|
+
@ReplicateSetId = replicatesetid
|
2561
|
+
end
|
2562
|
+
|
2563
|
+
def deserialize(params)
|
2564
|
+
@Zone = params['Zone']
|
2565
|
+
@NodeName = params['NodeName']
|
2566
|
+
@Address = params['Address']
|
2567
|
+
@Role = params['Role']
|
2568
|
+
@Hidden = params['Hidden']
|
2569
|
+
@Status = params['Status']
|
2570
|
+
@SlaveDelay = params['SlaveDelay']
|
2571
|
+
@Priority = params['Priority']
|
2572
|
+
@Votes = params['Votes']
|
2573
|
+
unless params['Tags'].nil?
|
2574
|
+
@Tags = []
|
2575
|
+
params['Tags'].each do |i|
|
2576
|
+
nodetag_tmp = NodeTag.new
|
2577
|
+
nodetag_tmp.deserialize(i)
|
2578
|
+
@Tags << nodetag_tmp
|
2579
|
+
end
|
2580
|
+
end
|
2581
|
+
@ReplicateSetId = params['ReplicateSetId']
|
2582
|
+
end
|
2583
|
+
end
|
2584
|
+
|
2585
|
+
# 节点Tag
|
2586
|
+
class NodeTag < TencentCloud::Common::AbstractModel
|
2587
|
+
# @param TagKey: 节点Tag key
|
2588
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2589
|
+
# @type TagKey: String
|
2590
|
+
# @param TagValue: 节点Tag Value
|
2591
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2592
|
+
# @type TagValue: String
|
2593
|
+
|
2594
|
+
attr_accessor :TagKey, :TagValue
|
2595
|
+
|
2596
|
+
def initialize(tagkey=nil, tagvalue=nil)
|
2597
|
+
@TagKey = tagkey
|
2598
|
+
@TagValue = tagvalue
|
2599
|
+
end
|
2600
|
+
|
2601
|
+
def deserialize(params)
|
2602
|
+
@TagKey = params['TagKey']
|
2603
|
+
@TagValue = params['TagValue']
|
2604
|
+
end
|
2605
|
+
end
|
2606
|
+
|
2423
2607
|
# OfflineIsolatedDBInstance请求参数结构体
|
2424
2608
|
class OfflineIsolatedDBInstanceRequest < TencentCloud::Common::AbstractModel
|
2425
2609
|
# @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
|
@@ -2571,6 +2755,30 @@ module TencentCloud
|
|
2571
2755
|
end
|
2572
2756
|
end
|
2573
2757
|
|
2758
|
+
# 副本集信息
|
2759
|
+
class ReplicateSetInfo < TencentCloud::Common::AbstractModel
|
2760
|
+
# @param Nodes: 节点属性
|
2761
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2762
|
+
# @type Nodes: Array
|
2763
|
+
|
2764
|
+
attr_accessor :Nodes
|
2765
|
+
|
2766
|
+
def initialize(nodes=nil)
|
2767
|
+
@Nodes = nodes
|
2768
|
+
end
|
2769
|
+
|
2770
|
+
def deserialize(params)
|
2771
|
+
unless params['Nodes'].nil?
|
2772
|
+
@Nodes = []
|
2773
|
+
params['Nodes'].each do |i|
|
2774
|
+
nodeproperty_tmp = NodeProperty.new
|
2775
|
+
nodeproperty_tmp.deserialize(i)
|
2776
|
+
@Nodes << nodeproperty_tmp
|
2777
|
+
end
|
2778
|
+
end
|
2779
|
+
end
|
2780
|
+
end
|
2781
|
+
|
2574
2782
|
# ResetDBInstancePassword请求参数结构体
|
2575
2783
|
class ResetDBInstancePasswordRequest < TencentCloud::Common::AbstractModel
|
2576
2784
|
# @param InstanceId: 实例Id
|
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.439
|
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-10-
|
11
|
+
date: 2022-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|