tencentcloud-sdk-vdb 3.0.902 → 3.0.903
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/v20230616/client.rb +120 -0
- data/lib/v20230616/models.rb +358 -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: 43f41e98d783c5b6be81841939bdafb06d52f4e5
|
4
|
+
data.tar.gz: cc64222a1e40aa0201a7de2e3d0eefcf7a41494e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60f8a941f5eec42b06986cc41bb386b63eec067ec03fb199ca803b1f74c7aa2402aea5473b511f694228c4005cc5c61c3cb1a9e5178403c7e08a97719937cffe
|
7
|
+
data.tar.gz: ad67ade9e1518a3c87d9e6f07d679a08ec29a7ce7739c894b708d264182ab75472d5be73c02ff06e491b90e5a487fde8dc5b1d2c37c1efedfbeaf73ac21ed20c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.903
|
data/lib/v20230616/client.rb
CHANGED
@@ -29,6 +29,78 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 本接口 (AssociateSecurityGroups) 用于安全组批量绑定多个指定实例。
|
33
|
+
|
34
|
+
# @param request: Request instance for AssociateSecurityGroups.
|
35
|
+
# @type request: :class:`Tencentcloud::vdb::V20230616::AssociateSecurityGroupsRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::vdb::V20230616::AssociateSecurityGroupsResponse`
|
37
|
+
def AssociateSecurityGroups(request)
|
38
|
+
body = send_request('AssociateSecurityGroups', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = AssociateSecurityGroupsResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
56
|
+
# 本接口(DescribeDBSecurityGroups)用于查询实例的安全组详情。
|
57
|
+
|
58
|
+
# @param request: Request instance for DescribeDBSecurityGroups.
|
59
|
+
# @type request: :class:`Tencentcloud::vdb::V20230616::DescribeDBSecurityGroupsRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::vdb::V20230616::DescribeDBSecurityGroupsResponse`
|
61
|
+
def DescribeDBSecurityGroups(request)
|
62
|
+
body = send_request('DescribeDBSecurityGroups', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DescribeDBSecurityGroupsResponse.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
|
+
|
80
|
+
# 实例节点列表
|
81
|
+
|
82
|
+
# @param request: Request instance for DescribeInstanceNodes.
|
83
|
+
# @type request: :class:`Tencentcloud::vdb::V20230616::DescribeInstanceNodesRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::vdb::V20230616::DescribeInstanceNodesResponse`
|
85
|
+
def DescribeInstanceNodes(request)
|
86
|
+
body = send_request('DescribeInstanceNodes', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = DescribeInstanceNodesResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
32
104
|
# 查询实例列表
|
33
105
|
|
34
106
|
# @param request: Request instance for DescribeInstances.
|
@@ -53,6 +125,54 @@ module TencentCloud
|
|
53
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
126
|
end
|
55
127
|
|
128
|
+
# 本接口(DisassociateSecurityGroups)用于安全组批量解绑实例。
|
129
|
+
|
130
|
+
# @param request: Request instance for DisassociateSecurityGroups.
|
131
|
+
# @type request: :class:`Tencentcloud::vdb::V20230616::DisassociateSecurityGroupsRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::vdb::V20230616::DisassociateSecurityGroupsResponse`
|
133
|
+
def DisassociateSecurityGroups(request)
|
134
|
+
body = send_request('DisassociateSecurityGroups', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = DisassociateSecurityGroupsResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
152
|
+
# 本接口(ModifyDBInstanceSecurityGroups)用于修改实例绑定的安全组。
|
153
|
+
|
154
|
+
# @param request: Request instance for ModifyDBInstanceSecurityGroups.
|
155
|
+
# @type request: :class:`Tencentcloud::vdb::V20230616::ModifyDBInstanceSecurityGroupsRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::vdb::V20230616::ModifyDBInstanceSecurityGroupsResponse`
|
157
|
+
def ModifyDBInstanceSecurityGroups(request)
|
158
|
+
body = send_request('ModifyDBInstanceSecurityGroups', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = ModifyDBInstanceSecurityGroupsResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
56
176
|
|
57
177
|
end
|
58
178
|
end
|
data/lib/v20230616/models.rb
CHANGED
@@ -17,6 +17,129 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Vdb
|
19
19
|
module V20230616
|
20
|
+
# AssociateSecurityGroups请求参数结构体
|
21
|
+
class AssociateSecurityGroupsRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param SecurityGroupIds: 要绑定的安全组 ID,类似sg-efil7***。
|
23
|
+
# @type SecurityGroupIds: Array
|
24
|
+
# @param InstanceIds: 实例 ID,格式如:vdb-c1nl9***,支持指定多个实例
|
25
|
+
# @type InstanceIds: Array
|
26
|
+
|
27
|
+
attr_accessor :SecurityGroupIds, :InstanceIds
|
28
|
+
|
29
|
+
def initialize(securitygroupids=nil, instanceids=nil)
|
30
|
+
@SecurityGroupIds = securitygroupids
|
31
|
+
@InstanceIds = instanceids
|
32
|
+
end
|
33
|
+
|
34
|
+
def deserialize(params)
|
35
|
+
@SecurityGroupIds = params['SecurityGroupIds']
|
36
|
+
@InstanceIds = params['InstanceIds']
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# AssociateSecurityGroups返回参数结构体
|
41
|
+
class AssociateSecurityGroupsResponse < TencentCloud::Common::AbstractModel
|
42
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
43
|
+
# @type RequestId: String
|
44
|
+
|
45
|
+
attr_accessor :RequestId
|
46
|
+
|
47
|
+
def initialize(requestid=nil)
|
48
|
+
@RequestId = requestid
|
49
|
+
end
|
50
|
+
|
51
|
+
def deserialize(params)
|
52
|
+
@RequestId = params['RequestId']
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# DescribeDBSecurityGroups请求参数结构体
|
57
|
+
class DescribeDBSecurityGroupsRequest < TencentCloud::Common::AbstractModel
|
58
|
+
# @param InstanceId: 实例ID,格式如:vdb-c1nl9***。
|
59
|
+
# @type InstanceId: String
|
60
|
+
|
61
|
+
attr_accessor :InstanceId
|
62
|
+
|
63
|
+
def initialize(instanceid=nil)
|
64
|
+
@InstanceId = instanceid
|
65
|
+
end
|
66
|
+
|
67
|
+
def deserialize(params)
|
68
|
+
@InstanceId = params['InstanceId']
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# DescribeDBSecurityGroups返回参数结构体
|
73
|
+
class DescribeDBSecurityGroupsResponse < TencentCloud::Common::AbstractModel
|
74
|
+
# @param Groups: 安全组规则。
|
75
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
76
|
+
# @type Groups: Array
|
77
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
78
|
+
# @type RequestId: String
|
79
|
+
|
80
|
+
attr_accessor :Groups, :RequestId
|
81
|
+
|
82
|
+
def initialize(groups=nil, requestid=nil)
|
83
|
+
@Groups = groups
|
84
|
+
@RequestId = requestid
|
85
|
+
end
|
86
|
+
|
87
|
+
def deserialize(params)
|
88
|
+
unless params['Groups'].nil?
|
89
|
+
@Groups = []
|
90
|
+
params['Groups'].each do |i|
|
91
|
+
securitygroup_tmp = SecurityGroup.new
|
92
|
+
securitygroup_tmp.deserialize(i)
|
93
|
+
@Groups << securitygroup_tmp
|
94
|
+
end
|
95
|
+
end
|
96
|
+
@RequestId = params['RequestId']
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# DescribeInstanceNodes请求参数结构体
|
101
|
+
class DescribeInstanceNodesRequest < TencentCloud::Common::AbstractModel
|
102
|
+
|
103
|
+
|
104
|
+
def initialize()
|
105
|
+
end
|
106
|
+
|
107
|
+
def deserialize(params)
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
# DescribeInstanceNodes返回参数结构体
|
112
|
+
class DescribeInstanceNodesResponse < TencentCloud::Common::AbstractModel
|
113
|
+
# @param Items: 实例pod列表。
|
114
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
115
|
+
# @type Items: Array
|
116
|
+
# @param TotalCount: 查询结果总数量。
|
117
|
+
# @type TotalCount: Integer
|
118
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
119
|
+
# @type RequestId: String
|
120
|
+
|
121
|
+
attr_accessor :Items, :TotalCount, :RequestId
|
122
|
+
|
123
|
+
def initialize(items=nil, totalcount=nil, requestid=nil)
|
124
|
+
@Items = items
|
125
|
+
@TotalCount = totalcount
|
126
|
+
@RequestId = requestid
|
127
|
+
end
|
128
|
+
|
129
|
+
def deserialize(params)
|
130
|
+
unless params['Items'].nil?
|
131
|
+
@Items = []
|
132
|
+
params['Items'].each do |i|
|
133
|
+
nodeinfo_tmp = NodeInfo.new
|
134
|
+
nodeinfo_tmp.deserialize(i)
|
135
|
+
@Items << nodeinfo_tmp
|
136
|
+
end
|
137
|
+
end
|
138
|
+
@TotalCount = params['TotalCount']
|
139
|
+
@RequestId = params['RequestId']
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
20
143
|
# DescribeInstances请求参数结构体
|
21
144
|
class DescribeInstancesRequest < TencentCloud::Common::AbstractModel
|
22
145
|
# @param InstanceIds: 实例ID数组。
|
@@ -120,6 +243,86 @@ module TencentCloud
|
|
120
243
|
end
|
121
244
|
end
|
122
245
|
|
246
|
+
# DisassociateSecurityGroups请求参数结构体
|
247
|
+
class DisassociateSecurityGroupsRequest < TencentCloud::Common::AbstractModel
|
248
|
+
# @param SecurityGroupIds: 要绑定的安全组 ID,类似sg-efil****。
|
249
|
+
# @type SecurityGroupIds: String
|
250
|
+
# @param InstanceIds: 实例 ID,格式如:vdb-c1nl****,支持指定多个实例。
|
251
|
+
# @type InstanceIds: Array
|
252
|
+
|
253
|
+
attr_accessor :SecurityGroupIds, :InstanceIds
|
254
|
+
|
255
|
+
def initialize(securitygroupids=nil, instanceids=nil)
|
256
|
+
@SecurityGroupIds = securitygroupids
|
257
|
+
@InstanceIds = instanceids
|
258
|
+
end
|
259
|
+
|
260
|
+
def deserialize(params)
|
261
|
+
@SecurityGroupIds = params['SecurityGroupIds']
|
262
|
+
@InstanceIds = params['InstanceIds']
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
266
|
+
# DisassociateSecurityGroups返回参数结构体
|
267
|
+
class DisassociateSecurityGroupsResponse < TencentCloud::Common::AbstractModel
|
268
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
269
|
+
# @type RequestId: String
|
270
|
+
|
271
|
+
attr_accessor :RequestId
|
272
|
+
|
273
|
+
def initialize(requestid=nil)
|
274
|
+
@RequestId = requestid
|
275
|
+
end
|
276
|
+
|
277
|
+
def deserialize(params)
|
278
|
+
@RequestId = params['RequestId']
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
# 安全组入站规则
|
283
|
+
class Inbound < TencentCloud::Common::AbstractModel
|
284
|
+
# @param Action: 策略,ACCEPT或者DROP。
|
285
|
+
# @type Action: String
|
286
|
+
# @param AddressModule: 地址组id代表的地址集合。
|
287
|
+
# @type AddressModule: String
|
288
|
+
# @param CidrIp: 来源Ip或Ip段,例如192.168.0.0/16。
|
289
|
+
# @type CidrIp: String
|
290
|
+
# @param Desc: 描述。
|
291
|
+
# @type Desc: String
|
292
|
+
# @param IpProtocol: 网络协议,支持udp、tcp等。
|
293
|
+
# @type IpProtocol: String
|
294
|
+
# @param PortRange: 端口。
|
295
|
+
# @type PortRange: String
|
296
|
+
# @param ServiceModule: 服务组id代表的协议和端口集合。
|
297
|
+
# @type ServiceModule: String
|
298
|
+
# @param Id: 安全组id代表的地址集合。
|
299
|
+
# @type Id: String
|
300
|
+
|
301
|
+
attr_accessor :Action, :AddressModule, :CidrIp, :Desc, :IpProtocol, :PortRange, :ServiceModule, :Id
|
302
|
+
|
303
|
+
def initialize(action=nil, addressmodule=nil, cidrip=nil, desc=nil, ipprotocol=nil, portrange=nil, servicemodule=nil, id=nil)
|
304
|
+
@Action = action
|
305
|
+
@AddressModule = addressmodule
|
306
|
+
@CidrIp = cidrip
|
307
|
+
@Desc = desc
|
308
|
+
@IpProtocol = ipprotocol
|
309
|
+
@PortRange = portrange
|
310
|
+
@ServiceModule = servicemodule
|
311
|
+
@Id = id
|
312
|
+
end
|
313
|
+
|
314
|
+
def deserialize(params)
|
315
|
+
@Action = params['Action']
|
316
|
+
@AddressModule = params['AddressModule']
|
317
|
+
@CidrIp = params['CidrIp']
|
318
|
+
@Desc = params['Desc']
|
319
|
+
@IpProtocol = params['IpProtocol']
|
320
|
+
@PortRange = params['PortRange']
|
321
|
+
@ServiceModule = params['ServiceModule']
|
322
|
+
@Id = params['Id']
|
323
|
+
end
|
324
|
+
end
|
325
|
+
|
123
326
|
# 实例信息,用于实例列表
|
124
327
|
class InstanceInfo < TencentCloud::Common::AbstractModel
|
125
328
|
# @param InstanceId: 实例ID。
|
@@ -281,6 +484,42 @@ module TencentCloud
|
|
281
484
|
end
|
282
485
|
end
|
283
486
|
|
487
|
+
# ModifyDBInstanceSecurityGroups请求参数结构体
|
488
|
+
class ModifyDBInstanceSecurityGroupsRequest < TencentCloud::Common::AbstractModel
|
489
|
+
# @param SecurityGroupIds: 要修改的安全组ID列表,一个或者多个安全组 ID 组成的数组。
|
490
|
+
# @type SecurityGroupIds: Array
|
491
|
+
# @param InstanceIds: 实例ID,格式如:vdb-c9s3****。
|
492
|
+
# @type InstanceIds: Array
|
493
|
+
|
494
|
+
attr_accessor :SecurityGroupIds, :InstanceIds
|
495
|
+
|
496
|
+
def initialize(securitygroupids=nil, instanceids=nil)
|
497
|
+
@SecurityGroupIds = securitygroupids
|
498
|
+
@InstanceIds = instanceids
|
499
|
+
end
|
500
|
+
|
501
|
+
def deserialize(params)
|
502
|
+
@SecurityGroupIds = params['SecurityGroupIds']
|
503
|
+
@InstanceIds = params['InstanceIds']
|
504
|
+
end
|
505
|
+
end
|
506
|
+
|
507
|
+
# ModifyDBInstanceSecurityGroups返回参数结构体
|
508
|
+
class ModifyDBInstanceSecurityGroupsResponse < TencentCloud::Common::AbstractModel
|
509
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
510
|
+
# @type RequestId: String
|
511
|
+
|
512
|
+
attr_accessor :RequestId
|
513
|
+
|
514
|
+
def initialize(requestid=nil)
|
515
|
+
@RequestId = requestid
|
516
|
+
end
|
517
|
+
|
518
|
+
def deserialize(params)
|
519
|
+
@RequestId = params['RequestId']
|
520
|
+
end
|
521
|
+
end
|
522
|
+
|
284
523
|
# 网络信息
|
285
524
|
class Network < TencentCloud::Common::AbstractModel
|
286
525
|
# @param VpcId: VpcId(VPC网络下有效)
|
@@ -313,6 +552,125 @@ module TencentCloud
|
|
313
552
|
end
|
314
553
|
end
|
315
554
|
|
555
|
+
# 实例pod信息,仅包含 pod 名称
|
556
|
+
class NodeInfo < TencentCloud::Common::AbstractModel
|
557
|
+
# @param Name: Pod名称。
|
558
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
559
|
+
# @type Name: String
|
560
|
+
|
561
|
+
attr_accessor :Name
|
562
|
+
|
563
|
+
def initialize(name=nil)
|
564
|
+
@Name = name
|
565
|
+
end
|
566
|
+
|
567
|
+
def deserialize(params)
|
568
|
+
@Name = params['Name']
|
569
|
+
end
|
570
|
+
end
|
571
|
+
|
572
|
+
# 安全组出站规则
|
573
|
+
class Outbound < TencentCloud::Common::AbstractModel
|
574
|
+
# @param Action: 策略,ACCEPT或者DROP。
|
575
|
+
# @type Action: String
|
576
|
+
# @param AddressModule: 地址组id代表的地址集合。
|
577
|
+
# @type AddressModule: String
|
578
|
+
# @param CidrIp: 来源Ip或Ip段,例如192.168.0.0/16。
|
579
|
+
# @type CidrIp: String
|
580
|
+
# @param Desc: 描述。
|
581
|
+
# @type Desc: String
|
582
|
+
# @param IpProtocol: 网络协议,支持udp、tcp等。
|
583
|
+
# @type IpProtocol: String
|
584
|
+
# @param PortRange: 端口。
|
585
|
+
# @type PortRange: String
|
586
|
+
# @param ServiceModule: 服务组id代表的协议和端口集合。
|
587
|
+
# @type ServiceModule: String
|
588
|
+
# @param Id: 安全组id代表的地址集合。
|
589
|
+
# @type Id: String
|
590
|
+
|
591
|
+
attr_accessor :Action, :AddressModule, :CidrIp, :Desc, :IpProtocol, :PortRange, :ServiceModule, :Id
|
592
|
+
|
593
|
+
def initialize(action=nil, addressmodule=nil, cidrip=nil, desc=nil, ipprotocol=nil, portrange=nil, servicemodule=nil, id=nil)
|
594
|
+
@Action = action
|
595
|
+
@AddressModule = addressmodule
|
596
|
+
@CidrIp = cidrip
|
597
|
+
@Desc = desc
|
598
|
+
@IpProtocol = ipprotocol
|
599
|
+
@PortRange = portrange
|
600
|
+
@ServiceModule = servicemodule
|
601
|
+
@Id = id
|
602
|
+
end
|
603
|
+
|
604
|
+
def deserialize(params)
|
605
|
+
@Action = params['Action']
|
606
|
+
@AddressModule = params['AddressModule']
|
607
|
+
@CidrIp = params['CidrIp']
|
608
|
+
@Desc = params['Desc']
|
609
|
+
@IpProtocol = params['IpProtocol']
|
610
|
+
@PortRange = params['PortRange']
|
611
|
+
@ServiceModule = params['ServiceModule']
|
612
|
+
@Id = params['Id']
|
613
|
+
end
|
614
|
+
end
|
615
|
+
|
616
|
+
# 安全组规则
|
617
|
+
class SecurityGroup < TencentCloud::Common::AbstractModel
|
618
|
+
# @param CreateTime: 创建时间,时间格式:yyyy-mm-dd hh:mm:ss。
|
619
|
+
# @type CreateTime: String
|
620
|
+
# @param ProjectId: 项目ID。
|
621
|
+
# @type ProjectId: String
|
622
|
+
# @param SecurityGroupId: 安全组ID。
|
623
|
+
# @type SecurityGroupId: String
|
624
|
+
# @param SecurityGroupName: 安全组名称。
|
625
|
+
# @type SecurityGroupName: String
|
626
|
+
# @param SecurityGroupRemark: 安全组备注。
|
627
|
+
# @type SecurityGroupRemark: String
|
628
|
+
# @param Outbound: 出站规则。
|
629
|
+
# @type Outbound: Array
|
630
|
+
# @param Inbound: 入站规则。
|
631
|
+
# @type Inbound: Array
|
632
|
+
# @param UpdateTime: 修改时间,时间格式:yyyy-mm-dd hh:mm:ss。
|
633
|
+
# @type UpdateTime: String
|
634
|
+
|
635
|
+
attr_accessor :CreateTime, :ProjectId, :SecurityGroupId, :SecurityGroupName, :SecurityGroupRemark, :Outbound, :Inbound, :UpdateTime
|
636
|
+
|
637
|
+
def initialize(createtime=nil, projectid=nil, securitygroupid=nil, securitygroupname=nil, securitygroupremark=nil, outbound=nil, inbound=nil, updatetime=nil)
|
638
|
+
@CreateTime = createtime
|
639
|
+
@ProjectId = projectid
|
640
|
+
@SecurityGroupId = securitygroupid
|
641
|
+
@SecurityGroupName = securitygroupname
|
642
|
+
@SecurityGroupRemark = securitygroupremark
|
643
|
+
@Outbound = outbound
|
644
|
+
@Inbound = inbound
|
645
|
+
@UpdateTime = updatetime
|
646
|
+
end
|
647
|
+
|
648
|
+
def deserialize(params)
|
649
|
+
@CreateTime = params['CreateTime']
|
650
|
+
@ProjectId = params['ProjectId']
|
651
|
+
@SecurityGroupId = params['SecurityGroupId']
|
652
|
+
@SecurityGroupName = params['SecurityGroupName']
|
653
|
+
@SecurityGroupRemark = params['SecurityGroupRemark']
|
654
|
+
unless params['Outbound'].nil?
|
655
|
+
@Outbound = []
|
656
|
+
params['Outbound'].each do |i|
|
657
|
+
outbound_tmp = Outbound.new
|
658
|
+
outbound_tmp.deserialize(i)
|
659
|
+
@Outbound << outbound_tmp
|
660
|
+
end
|
661
|
+
end
|
662
|
+
unless params['Inbound'].nil?
|
663
|
+
@Inbound = []
|
664
|
+
params['Inbound'].each do |i|
|
665
|
+
inbound_tmp = Inbound.new
|
666
|
+
inbound_tmp.deserialize(i)
|
667
|
+
@Inbound << inbound_tmp
|
668
|
+
end
|
669
|
+
end
|
670
|
+
@UpdateTime = params['UpdateTime']
|
671
|
+
end
|
672
|
+
end
|
673
|
+
|
316
674
|
# 标签键值对
|
317
675
|
class Tag < TencentCloud::Common::AbstractModel
|
318
676
|
# @param TagKey: 标签键
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-vdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.903
|
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-09-
|
11
|
+
date: 2024-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|