tencentcloud-sdk-cloudhsm 1.0.200
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-cloudhsm.rb +11 -0
- data/lib/v20191112/client.rb +300 -0
- data/lib/v20191112/models.rb +1199 -0
- metadata +66 -0
@@ -0,0 +1,1199 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module TencentCloud
|
18
|
+
module Cloudhsm
|
19
|
+
module V20191112
|
20
|
+
# DescribeHSMBySubnetId请求参数结构体
|
21
|
+
class DescribeHSMBySubnetIdRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param SubnetId: Subnet标识符
|
23
|
+
# @type SubnetId: String
|
24
|
+
|
25
|
+
attr_accessor :SubnetId
|
26
|
+
|
27
|
+
def initialize(subnetid=nil)
|
28
|
+
@SubnetId = subnetid
|
29
|
+
end
|
30
|
+
|
31
|
+
def deserialize(params)
|
32
|
+
@SubnetId = params['SubnetId']
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
# DescribeHSMBySubnetId返回参数结构体
|
37
|
+
class DescribeHSMBySubnetIdResponse < TencentCloud::Common::AbstractModel
|
38
|
+
# @param TotalCount: HSM数量
|
39
|
+
# @type TotalCount: Integer
|
40
|
+
# @param SubnetId: 作为查询条件的SubnetId
|
41
|
+
# @type SubnetId: String
|
42
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
43
|
+
# @type RequestId: String
|
44
|
+
|
45
|
+
attr_accessor :TotalCount, :SubnetId, :RequestId
|
46
|
+
|
47
|
+
def initialize(totalcount=nil, subnetid=nil, requestid=nil)
|
48
|
+
@TotalCount = totalcount
|
49
|
+
@SubnetId = subnetid
|
50
|
+
@RequestId = requestid
|
51
|
+
end
|
52
|
+
|
53
|
+
def deserialize(params)
|
54
|
+
@TotalCount = params['TotalCount']
|
55
|
+
@SubnetId = params['SubnetId']
|
56
|
+
@RequestId = params['RequestId']
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# DescribeHSMByVpcId请求参数结构体
|
61
|
+
class DescribeHSMByVpcIdRequest < TencentCloud::Common::AbstractModel
|
62
|
+
# @param VpcId: VPC标识符
|
63
|
+
# @type VpcId: String
|
64
|
+
|
65
|
+
attr_accessor :VpcId
|
66
|
+
|
67
|
+
def initialize(vpcid=nil)
|
68
|
+
@VpcId = vpcid
|
69
|
+
end
|
70
|
+
|
71
|
+
def deserialize(params)
|
72
|
+
@VpcId = params['VpcId']
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
# DescribeHSMByVpcId返回参数结构体
|
77
|
+
class DescribeHSMByVpcIdResponse < TencentCloud::Common::AbstractModel
|
78
|
+
# @param TotalCount: HSM数量
|
79
|
+
# @type TotalCount: Integer
|
80
|
+
# @param VpcId: 作为查询条件的VpcId
|
81
|
+
# @type VpcId: String
|
82
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
83
|
+
# @type RequestId: String
|
84
|
+
|
85
|
+
attr_accessor :TotalCount, :VpcId, :RequestId
|
86
|
+
|
87
|
+
def initialize(totalcount=nil, vpcid=nil, requestid=nil)
|
88
|
+
@TotalCount = totalcount
|
89
|
+
@VpcId = vpcid
|
90
|
+
@RequestId = requestid
|
91
|
+
end
|
92
|
+
|
93
|
+
def deserialize(params)
|
94
|
+
@TotalCount = params['TotalCount']
|
95
|
+
@VpcId = params['VpcId']
|
96
|
+
@RequestId = params['RequestId']
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# DescribeSubnet请求参数结构体
|
101
|
+
class DescribeSubnetRequest < TencentCloud::Common::AbstractModel
|
102
|
+
# @param Limit: 返回数量。
|
103
|
+
# @type Limit: Integer
|
104
|
+
# @param Offset: 偏移量。
|
105
|
+
# @type Offset: Integer
|
106
|
+
# @param VpcId: 查询指定VpcId下的子网信息。
|
107
|
+
# @type VpcId: String
|
108
|
+
# @param SearchWord: 查找关键字
|
109
|
+
# @type SearchWord: String
|
110
|
+
|
111
|
+
attr_accessor :Limit, :Offset, :VpcId, :SearchWord
|
112
|
+
|
113
|
+
def initialize(limit=nil, offset=nil, vpcid=nil, searchword=nil)
|
114
|
+
@Limit = limit
|
115
|
+
@Offset = offset
|
116
|
+
@VpcId = vpcid
|
117
|
+
@SearchWord = searchword
|
118
|
+
end
|
119
|
+
|
120
|
+
def deserialize(params)
|
121
|
+
@Limit = params['Limit']
|
122
|
+
@Offset = params['Offset']
|
123
|
+
@VpcId = params['VpcId']
|
124
|
+
@SearchWord = params['SearchWord']
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
# DescribeSubnet返回参数结构体
|
129
|
+
class DescribeSubnetResponse < TencentCloud::Common::AbstractModel
|
130
|
+
# @param TotalCount: 返回的子网数量。
|
131
|
+
# @type TotalCount: Integer
|
132
|
+
# @param SubnetList: 返回的子网实例列表。
|
133
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
134
|
+
# @type SubnetList: Array
|
135
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
136
|
+
# @type RequestId: String
|
137
|
+
|
138
|
+
attr_accessor :TotalCount, :SubnetList, :RequestId
|
139
|
+
|
140
|
+
def initialize(totalcount=nil, subnetlist=nil, requestid=nil)
|
141
|
+
@TotalCount = totalcount
|
142
|
+
@SubnetList = subnetlist
|
143
|
+
@RequestId = requestid
|
144
|
+
end
|
145
|
+
|
146
|
+
def deserialize(params)
|
147
|
+
@TotalCount = params['TotalCount']
|
148
|
+
unless params['SubnetList'].nil?
|
149
|
+
@SubnetList = []
|
150
|
+
params['SubnetList'].each do |i|
|
151
|
+
subnet_tmp = Subnet.new
|
152
|
+
subnet_tmp.deserialize(i)
|
153
|
+
@SubnetList << subnet_tmp
|
154
|
+
end
|
155
|
+
end
|
156
|
+
@RequestId = params['RequestId']
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
# DescribeSupportedHsm请求参数结构体
|
161
|
+
class DescribeSupportedHsmRequest < TencentCloud::Common::AbstractModel
|
162
|
+
|
163
|
+
|
164
|
+
def initialize()
|
165
|
+
end
|
166
|
+
|
167
|
+
def deserialize(params)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
# DescribeSupportedHsm返回参数结构体
|
172
|
+
class DescribeSupportedHsmResponse < TencentCloud::Common::AbstractModel
|
173
|
+
# @param DeviceTypes: 当前地域所支持的设备列表
|
174
|
+
# @type DeviceTypes: Array
|
175
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
176
|
+
# @type RequestId: String
|
177
|
+
|
178
|
+
attr_accessor :DeviceTypes, :RequestId
|
179
|
+
|
180
|
+
def initialize(devicetypes=nil, requestid=nil)
|
181
|
+
@DeviceTypes = devicetypes
|
182
|
+
@RequestId = requestid
|
183
|
+
end
|
184
|
+
|
185
|
+
def deserialize(params)
|
186
|
+
unless params['DeviceTypes'].nil?
|
187
|
+
@DeviceTypes = []
|
188
|
+
params['DeviceTypes'].each do |i|
|
189
|
+
deviceinfo_tmp = DeviceInfo.new
|
190
|
+
deviceinfo_tmp.deserialize(i)
|
191
|
+
@DeviceTypes << deviceinfo_tmp
|
192
|
+
end
|
193
|
+
end
|
194
|
+
@RequestId = params['RequestId']
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# DescribeUsg请求参数结构体
|
199
|
+
class DescribeUsgRequest < TencentCloud::Common::AbstractModel
|
200
|
+
# @param Offset: 偏移量,当Offset和Limit均为0时将一次性返回用户所有的安全组列表。
|
201
|
+
# @type Offset: Integer
|
202
|
+
# @param Limit: 返回量,当Offset和Limit均为0时将一次性返回用户所有的安全组列表。
|
203
|
+
# @type Limit: Integer
|
204
|
+
# @param SearchWord: 搜索关键字
|
205
|
+
# @type SearchWord: String
|
206
|
+
|
207
|
+
attr_accessor :Offset, :Limit, :SearchWord
|
208
|
+
|
209
|
+
def initialize(offset=nil, limit=nil, searchword=nil)
|
210
|
+
@Offset = offset
|
211
|
+
@Limit = limit
|
212
|
+
@SearchWord = searchword
|
213
|
+
end
|
214
|
+
|
215
|
+
def deserialize(params)
|
216
|
+
@Offset = params['Offset']
|
217
|
+
@Limit = params['Limit']
|
218
|
+
@SearchWord = params['SearchWord']
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
# DescribeUsg返回参数结构体
|
223
|
+
class DescribeUsgResponse < TencentCloud::Common::AbstractModel
|
224
|
+
# @param SgList: 用户的安全组列表
|
225
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
226
|
+
# @type SgList: Array
|
227
|
+
# @param TotalCount: 返回的安全组数量
|
228
|
+
# @type TotalCount: Integer
|
229
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
230
|
+
# @type RequestId: String
|
231
|
+
|
232
|
+
attr_accessor :SgList, :TotalCount, :RequestId
|
233
|
+
|
234
|
+
def initialize(sglist=nil, totalcount=nil, requestid=nil)
|
235
|
+
@SgList = sglist
|
236
|
+
@TotalCount = totalcount
|
237
|
+
@RequestId = requestid
|
238
|
+
end
|
239
|
+
|
240
|
+
def deserialize(params)
|
241
|
+
unless params['SgList'].nil?
|
242
|
+
@SgList = []
|
243
|
+
params['SgList'].each do |i|
|
244
|
+
sgunit_tmp = SgUnit.new
|
245
|
+
sgunit_tmp.deserialize(i)
|
246
|
+
@SgList << sgunit_tmp
|
247
|
+
end
|
248
|
+
end
|
249
|
+
@TotalCount = params['TotalCount']
|
250
|
+
@RequestId = params['RequestId']
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
# DescribeUsgRule请求参数结构体
|
255
|
+
class DescribeUsgRuleRequest < TencentCloud::Common::AbstractModel
|
256
|
+
# @param SgIds: 根据安全组Id获取安全组详情
|
257
|
+
# @type SgIds: Array
|
258
|
+
|
259
|
+
attr_accessor :SgIds
|
260
|
+
|
261
|
+
def initialize(sgids=nil)
|
262
|
+
@SgIds = sgids
|
263
|
+
end
|
264
|
+
|
265
|
+
def deserialize(params)
|
266
|
+
@SgIds = params['SgIds']
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
# DescribeUsgRule返回参数结构体
|
271
|
+
class DescribeUsgRuleResponse < TencentCloud::Common::AbstractModel
|
272
|
+
# @param SgRules: 安全组详情
|
273
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
274
|
+
# @type SgRules: Array
|
275
|
+
# @param TotalCount: 安全组详情数量
|
276
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
277
|
+
# @type TotalCount: Integer
|
278
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
279
|
+
# @type RequestId: String
|
280
|
+
|
281
|
+
attr_accessor :SgRules, :TotalCount, :RequestId
|
282
|
+
|
283
|
+
def initialize(sgrules=nil, totalcount=nil, requestid=nil)
|
284
|
+
@SgRules = sgrules
|
285
|
+
@TotalCount = totalcount
|
286
|
+
@RequestId = requestid
|
287
|
+
end
|
288
|
+
|
289
|
+
def deserialize(params)
|
290
|
+
unless params['SgRules'].nil?
|
291
|
+
@SgRules = []
|
292
|
+
params['SgRules'].each do |i|
|
293
|
+
usgruledetail_tmp = UsgRuleDetail.new
|
294
|
+
usgruledetail_tmp.deserialize(i)
|
295
|
+
@SgRules << usgruledetail_tmp
|
296
|
+
end
|
297
|
+
end
|
298
|
+
@TotalCount = params['TotalCount']
|
299
|
+
@RequestId = params['RequestId']
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
# DescribeVpc请求参数结构体
|
304
|
+
class DescribeVpcRequest < TencentCloud::Common::AbstractModel
|
305
|
+
# @param Offset: 返回偏移量。
|
306
|
+
# @type Offset: Integer
|
307
|
+
# @param Limit: 返回数量。
|
308
|
+
# @type Limit: Integer
|
309
|
+
# @param SearchWord: 搜索关键字
|
310
|
+
# @type SearchWord: String
|
311
|
+
|
312
|
+
attr_accessor :Offset, :Limit, :SearchWord
|
313
|
+
|
314
|
+
def initialize(offset=nil, limit=nil, searchword=nil)
|
315
|
+
@Offset = offset
|
316
|
+
@Limit = limit
|
317
|
+
@SearchWord = searchword
|
318
|
+
end
|
319
|
+
|
320
|
+
def deserialize(params)
|
321
|
+
@Offset = params['Offset']
|
322
|
+
@Limit = params['Limit']
|
323
|
+
@SearchWord = params['SearchWord']
|
324
|
+
end
|
325
|
+
end
|
326
|
+
|
327
|
+
# DescribeVpc返回参数结构体
|
328
|
+
class DescribeVpcResponse < TencentCloud::Common::AbstractModel
|
329
|
+
# @param TotalCount: 可查询到的所有Vpc实例总数。
|
330
|
+
# @type TotalCount: Integer
|
331
|
+
# @param VpcList: Vpc对象列表
|
332
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
333
|
+
# @type VpcList: Array
|
334
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
335
|
+
# @type RequestId: String
|
336
|
+
|
337
|
+
attr_accessor :TotalCount, :VpcList, :RequestId
|
338
|
+
|
339
|
+
def initialize(totalcount=nil, vpclist=nil, requestid=nil)
|
340
|
+
@TotalCount = totalcount
|
341
|
+
@VpcList = vpclist
|
342
|
+
@RequestId = requestid
|
343
|
+
end
|
344
|
+
|
345
|
+
def deserialize(params)
|
346
|
+
@TotalCount = params['TotalCount']
|
347
|
+
unless params['VpcList'].nil?
|
348
|
+
@VpcList = []
|
349
|
+
params['VpcList'].each do |i|
|
350
|
+
vpc_tmp = Vpc.new
|
351
|
+
vpc_tmp.deserialize(i)
|
352
|
+
@VpcList << vpc_tmp
|
353
|
+
end
|
354
|
+
end
|
355
|
+
@RequestId = params['RequestId']
|
356
|
+
end
|
357
|
+
end
|
358
|
+
|
359
|
+
# DescribeVsmAttributes请求参数结构体
|
360
|
+
class DescribeVsmAttributesRequest < TencentCloud::Common::AbstractModel
|
361
|
+
# @param ResourceId: 资源Id
|
362
|
+
# @type ResourceId: String
|
363
|
+
|
364
|
+
attr_accessor :ResourceId
|
365
|
+
|
366
|
+
def initialize(resourceid=nil)
|
367
|
+
@ResourceId = resourceid
|
368
|
+
end
|
369
|
+
|
370
|
+
def deserialize(params)
|
371
|
+
@ResourceId = params['ResourceId']
|
372
|
+
end
|
373
|
+
end
|
374
|
+
|
375
|
+
# DescribeVsmAttributes返回参数结构体
|
376
|
+
class DescribeVsmAttributesResponse < TencentCloud::Common::AbstractModel
|
377
|
+
# @param ResourceId: 资源Id
|
378
|
+
# @type ResourceId: String
|
379
|
+
# @param ResourceName: 资源名称
|
380
|
+
# @type ResourceName: String
|
381
|
+
# @param Status: 资源状态,1表示资源为正常,2表示资源处于隔离状态
|
382
|
+
# @type Status: Integer
|
383
|
+
# @param Vip: 资源IP
|
384
|
+
# @type Vip: String
|
385
|
+
# @param VpcId: 资源所属Vpc
|
386
|
+
# @type VpcId: String
|
387
|
+
# @param SubnetId: 资源所属子网
|
388
|
+
# @type SubnetId: String
|
389
|
+
# @param Model: 资源所属HSM的规格
|
390
|
+
# @type Model: String
|
391
|
+
# @param VsmType: 资源类型,17表示EVSM,33表示GVSM,49表示SVSM
|
392
|
+
# @type VsmType: Integer
|
393
|
+
# @param RegionId: 地域Id,返回腾讯云地域代码,如广州为1,北京为8
|
394
|
+
# @type RegionId: Integer
|
395
|
+
# @param ZoneId: 区域Id,返回腾讯云每个地域的可用区代码
|
396
|
+
# @type ZoneId: Integer
|
397
|
+
# @param ExpireTime: 过期时间
|
398
|
+
# @type ExpireTime: Integer
|
399
|
+
# @param SgList: 安全组详情信息
|
400
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
401
|
+
# @type SgList: Array
|
402
|
+
# @param SubnetName: 子网名
|
403
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
404
|
+
# @type SubnetName: String
|
405
|
+
# @param RegionName: 地域名
|
406
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
407
|
+
# @type RegionName: String
|
408
|
+
# @param ZoneName: 区域名
|
409
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
410
|
+
# @type ZoneName: String
|
411
|
+
# @param Expired: 实例是否已经过期
|
412
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
413
|
+
# @type Expired: Boolean
|
414
|
+
# @param RemainSeconds: 为正数表示实例距离过期时间剩余秒数,为负数表示实例已经过期多少秒
|
415
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
416
|
+
# @type RemainSeconds: Integer
|
417
|
+
# @param VpcName: 私有虚拟网络名称
|
418
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
419
|
+
# @type VpcName: String
|
420
|
+
# @param VpcCidrBlock: VPC的IPv4 CIDR
|
421
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
422
|
+
# @type VpcCidrBlock: String
|
423
|
+
# @param SubnetCidrBlock: 子网的CIDR
|
424
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
425
|
+
# @type SubnetCidrBlock: String
|
426
|
+
# @param Tags: 资源所关联的Tag
|
427
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
428
|
+
# @type Tags: Array
|
429
|
+
# @param RenewFlag: 资源续费标识,0表示默认状态(用户未设置,即初始状态), 1表示自动续费,2表示明确不自动续费(用户设置)
|
430
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
431
|
+
# @type RenewFlag: Integer
|
432
|
+
# @param Manufacturer: 厂商
|
433
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
434
|
+
# @type Manufacturer: String
|
435
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
436
|
+
# @type RequestId: String
|
437
|
+
|
438
|
+
attr_accessor :ResourceId, :ResourceName, :Status, :Vip, :VpcId, :SubnetId, :Model, :VsmType, :RegionId, :ZoneId, :ExpireTime, :SgList, :SubnetName, :RegionName, :ZoneName, :Expired, :RemainSeconds, :VpcName, :VpcCidrBlock, :SubnetCidrBlock, :Tags, :RenewFlag, :Manufacturer, :RequestId
|
439
|
+
|
440
|
+
def initialize(resourceid=nil, resourcename=nil, status=nil, vip=nil, vpcid=nil, subnetid=nil, model=nil, vsmtype=nil, regionid=nil, zoneid=nil, expiretime=nil, sglist=nil, subnetname=nil, regionname=nil, zonename=nil, expired=nil, remainseconds=nil, vpcname=nil, vpccidrblock=nil, subnetcidrblock=nil, tags=nil, renewflag=nil, manufacturer=nil, requestid=nil)
|
441
|
+
@ResourceId = resourceid
|
442
|
+
@ResourceName = resourcename
|
443
|
+
@Status = status
|
444
|
+
@Vip = vip
|
445
|
+
@VpcId = vpcid
|
446
|
+
@SubnetId = subnetid
|
447
|
+
@Model = model
|
448
|
+
@VsmType = vsmtype
|
449
|
+
@RegionId = regionid
|
450
|
+
@ZoneId = zoneid
|
451
|
+
@ExpireTime = expiretime
|
452
|
+
@SgList = sglist
|
453
|
+
@SubnetName = subnetname
|
454
|
+
@RegionName = regionname
|
455
|
+
@ZoneName = zonename
|
456
|
+
@Expired = expired
|
457
|
+
@RemainSeconds = remainseconds
|
458
|
+
@VpcName = vpcname
|
459
|
+
@VpcCidrBlock = vpccidrblock
|
460
|
+
@SubnetCidrBlock = subnetcidrblock
|
461
|
+
@Tags = tags
|
462
|
+
@RenewFlag = renewflag
|
463
|
+
@Manufacturer = manufacturer
|
464
|
+
@RequestId = requestid
|
465
|
+
end
|
466
|
+
|
467
|
+
def deserialize(params)
|
468
|
+
@ResourceId = params['ResourceId']
|
469
|
+
@ResourceName = params['ResourceName']
|
470
|
+
@Status = params['Status']
|
471
|
+
@Vip = params['Vip']
|
472
|
+
@VpcId = params['VpcId']
|
473
|
+
@SubnetId = params['SubnetId']
|
474
|
+
@Model = params['Model']
|
475
|
+
@VsmType = params['VsmType']
|
476
|
+
@RegionId = params['RegionId']
|
477
|
+
@ZoneId = params['ZoneId']
|
478
|
+
@ExpireTime = params['ExpireTime']
|
479
|
+
unless params['SgList'].nil?
|
480
|
+
@SgList = []
|
481
|
+
params['SgList'].each do |i|
|
482
|
+
usgruledetail_tmp = UsgRuleDetail.new
|
483
|
+
usgruledetail_tmp.deserialize(i)
|
484
|
+
@SgList << usgruledetail_tmp
|
485
|
+
end
|
486
|
+
end
|
487
|
+
@SubnetName = params['SubnetName']
|
488
|
+
@RegionName = params['RegionName']
|
489
|
+
@ZoneName = params['ZoneName']
|
490
|
+
@Expired = params['Expired']
|
491
|
+
@RemainSeconds = params['RemainSeconds']
|
492
|
+
@VpcName = params['VpcName']
|
493
|
+
@VpcCidrBlock = params['VpcCidrBlock']
|
494
|
+
@SubnetCidrBlock = params['SubnetCidrBlock']
|
495
|
+
unless params['Tags'].nil?
|
496
|
+
@Tags = []
|
497
|
+
params['Tags'].each do |i|
|
498
|
+
tag_tmp = Tag.new
|
499
|
+
tag_tmp.deserialize(i)
|
500
|
+
@Tags << tag_tmp
|
501
|
+
end
|
502
|
+
end
|
503
|
+
@RenewFlag = params['RenewFlag']
|
504
|
+
@Manufacturer = params['Manufacturer']
|
505
|
+
@RequestId = params['RequestId']
|
506
|
+
end
|
507
|
+
end
|
508
|
+
|
509
|
+
# DescribeVsms请求参数结构体
|
510
|
+
class DescribeVsmsRequest < TencentCloud::Common::AbstractModel
|
511
|
+
# @param Offset: 偏移
|
512
|
+
# @type Offset: Integer
|
513
|
+
# @param Limit: 最大数量
|
514
|
+
# @type Limit: Integer
|
515
|
+
# @param SearchWord: 查询关键字
|
516
|
+
# @type SearchWord: String
|
517
|
+
# @param TagFilters: 标签过滤条件
|
518
|
+
# @type TagFilters: Array
|
519
|
+
# @param Manufacturer: 设备所属的厂商名称,根据厂商来进行筛选
|
520
|
+
# @type Manufacturer: String
|
521
|
+
|
522
|
+
attr_accessor :Offset, :Limit, :SearchWord, :TagFilters, :Manufacturer
|
523
|
+
|
524
|
+
def initialize(offset=nil, limit=nil, searchword=nil, tagfilters=nil, manufacturer=nil)
|
525
|
+
@Offset = offset
|
526
|
+
@Limit = limit
|
527
|
+
@SearchWord = searchword
|
528
|
+
@TagFilters = tagfilters
|
529
|
+
@Manufacturer = manufacturer
|
530
|
+
end
|
531
|
+
|
532
|
+
def deserialize(params)
|
533
|
+
@Offset = params['Offset']
|
534
|
+
@Limit = params['Limit']
|
535
|
+
@SearchWord = params['SearchWord']
|
536
|
+
unless params['TagFilters'].nil?
|
537
|
+
@TagFilters = []
|
538
|
+
params['TagFilters'].each do |i|
|
539
|
+
tagfilter_tmp = TagFilter.new
|
540
|
+
tagfilter_tmp.deserialize(i)
|
541
|
+
@TagFilters << tagfilter_tmp
|
542
|
+
end
|
543
|
+
end
|
544
|
+
@Manufacturer = params['Manufacturer']
|
545
|
+
end
|
546
|
+
end
|
547
|
+
|
548
|
+
# DescribeVsms返回参数结构体
|
549
|
+
class DescribeVsmsResponse < TencentCloud::Common::AbstractModel
|
550
|
+
# @param TotalCount: 获取实例的总个数
|
551
|
+
# @type TotalCount: Integer
|
552
|
+
# @param VsmList: 资源信息
|
553
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
554
|
+
# @type VsmList: Array
|
555
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
556
|
+
# @type RequestId: String
|
557
|
+
|
558
|
+
attr_accessor :TotalCount, :VsmList, :RequestId
|
559
|
+
|
560
|
+
def initialize(totalcount=nil, vsmlist=nil, requestid=nil)
|
561
|
+
@TotalCount = totalcount
|
562
|
+
@VsmList = vsmlist
|
563
|
+
@RequestId = requestid
|
564
|
+
end
|
565
|
+
|
566
|
+
def deserialize(params)
|
567
|
+
@TotalCount = params['TotalCount']
|
568
|
+
unless params['VsmList'].nil?
|
569
|
+
@VsmList = []
|
570
|
+
params['VsmList'].each do |i|
|
571
|
+
resourceinfo_tmp = ResourceInfo.new
|
572
|
+
resourceinfo_tmp.deserialize(i)
|
573
|
+
@VsmList << resourceinfo_tmp
|
574
|
+
end
|
575
|
+
end
|
576
|
+
@RequestId = params['RequestId']
|
577
|
+
end
|
578
|
+
end
|
579
|
+
|
580
|
+
# 设备厂商信息
|
581
|
+
class DeviceInfo < TencentCloud::Common::AbstractModel
|
582
|
+
# @param Manufacturer: 厂商名称
|
583
|
+
# @type Manufacturer: String
|
584
|
+
# @param HsmTypes: 此厂商旗下的设备信息列表
|
585
|
+
# @type HsmTypes: Array
|
586
|
+
|
587
|
+
attr_accessor :Manufacturer, :HsmTypes
|
588
|
+
|
589
|
+
def initialize(manufacturer=nil, hsmtypes=nil)
|
590
|
+
@Manufacturer = manufacturer
|
591
|
+
@HsmTypes = hsmtypes
|
592
|
+
end
|
593
|
+
|
594
|
+
def deserialize(params)
|
595
|
+
@Manufacturer = params['Manufacturer']
|
596
|
+
unless params['HsmTypes'].nil?
|
597
|
+
@HsmTypes = []
|
598
|
+
params['HsmTypes'].each do |i|
|
599
|
+
hsminfo_tmp = HsmInfo.new
|
600
|
+
hsminfo_tmp.deserialize(i)
|
601
|
+
@HsmTypes << hsminfo_tmp
|
602
|
+
end
|
603
|
+
end
|
604
|
+
end
|
605
|
+
end
|
606
|
+
|
607
|
+
# 支持的加密机类型信息
|
608
|
+
class HsmInfo < TencentCloud::Common::AbstractModel
|
609
|
+
# @param Model: 加密机型号
|
610
|
+
# @type Model: String
|
611
|
+
# @param VsmTypes: 此类型的加密机所支持的VSM类型列表
|
612
|
+
# @type VsmTypes: Array
|
613
|
+
|
614
|
+
attr_accessor :Model, :VsmTypes
|
615
|
+
|
616
|
+
def initialize(model=nil, vsmtypes=nil)
|
617
|
+
@Model = model
|
618
|
+
@VsmTypes = vsmtypes
|
619
|
+
end
|
620
|
+
|
621
|
+
def deserialize(params)
|
622
|
+
@Model = params['Model']
|
623
|
+
unless params['VsmTypes'].nil?
|
624
|
+
@VsmTypes = []
|
625
|
+
params['VsmTypes'].each do |i|
|
626
|
+
vsminfo_tmp = VsmInfo.new
|
627
|
+
vsminfo_tmp.deserialize(i)
|
628
|
+
@VsmTypes << vsminfo_tmp
|
629
|
+
end
|
630
|
+
end
|
631
|
+
end
|
632
|
+
end
|
633
|
+
|
634
|
+
# InquiryPriceBuyVsm请求参数结构体
|
635
|
+
class InquiryPriceBuyVsmRequest < TencentCloud::Common::AbstractModel
|
636
|
+
# @param GoodsNum: 需购买实例的数量
|
637
|
+
# @type GoodsNum: Integer
|
638
|
+
# @param PayMode: 付费模式:0表示按需计费/后付费,1表示预付费
|
639
|
+
# @type PayMode: Integer
|
640
|
+
# @param TimeSpan: 商品的时间大小
|
641
|
+
# @type TimeSpan: String
|
642
|
+
# @param TimeUnit: 商品的时间单位,m表示月,y表示年
|
643
|
+
# @type TimeUnit: String
|
644
|
+
# @param Currency: 货币类型,默认为CNY
|
645
|
+
# @type Currency: String
|
646
|
+
# @param Type: 默认为CREATE,可选RENEW
|
647
|
+
# @type Type: String
|
648
|
+
|
649
|
+
attr_accessor :GoodsNum, :PayMode, :TimeSpan, :TimeUnit, :Currency, :Type
|
650
|
+
|
651
|
+
def initialize(goodsnum=nil, paymode=nil, timespan=nil, timeunit=nil, currency=nil, type=nil)
|
652
|
+
@GoodsNum = goodsnum
|
653
|
+
@PayMode = paymode
|
654
|
+
@TimeSpan = timespan
|
655
|
+
@TimeUnit = timeunit
|
656
|
+
@Currency = currency
|
657
|
+
@Type = type
|
658
|
+
end
|
659
|
+
|
660
|
+
def deserialize(params)
|
661
|
+
@GoodsNum = params['GoodsNum']
|
662
|
+
@PayMode = params['PayMode']
|
663
|
+
@TimeSpan = params['TimeSpan']
|
664
|
+
@TimeUnit = params['TimeUnit']
|
665
|
+
@Currency = params['Currency']
|
666
|
+
@Type = params['Type']
|
667
|
+
end
|
668
|
+
end
|
669
|
+
|
670
|
+
# InquiryPriceBuyVsm返回参数结构体
|
671
|
+
class InquiryPriceBuyVsmResponse < TencentCloud::Common::AbstractModel
|
672
|
+
# @param TotalCost: 原始总金额
|
673
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
674
|
+
# @type TotalCost: Float
|
675
|
+
# @param GoodsNum: 购买的实例数量
|
676
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
677
|
+
# @type GoodsNum: Integer
|
678
|
+
# @param TimeSpan: 商品的时间大小
|
679
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
680
|
+
# @type TimeSpan: String
|
681
|
+
# @param TimeUnit: 商品的时间单位
|
682
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
683
|
+
# @type TimeUnit: String
|
684
|
+
# @param OriginalCost: 应付总金额
|
685
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
686
|
+
# @type OriginalCost: Float
|
687
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
688
|
+
# @type RequestId: String
|
689
|
+
|
690
|
+
attr_accessor :TotalCost, :GoodsNum, :TimeSpan, :TimeUnit, :OriginalCost, :RequestId
|
691
|
+
|
692
|
+
def initialize(totalcost=nil, goodsnum=nil, timespan=nil, timeunit=nil, originalcost=nil, requestid=nil)
|
693
|
+
@TotalCost = totalcost
|
694
|
+
@GoodsNum = goodsnum
|
695
|
+
@TimeSpan = timespan
|
696
|
+
@TimeUnit = timeunit
|
697
|
+
@OriginalCost = originalcost
|
698
|
+
@RequestId = requestid
|
699
|
+
end
|
700
|
+
|
701
|
+
def deserialize(params)
|
702
|
+
@TotalCost = params['TotalCost']
|
703
|
+
@GoodsNum = params['GoodsNum']
|
704
|
+
@TimeSpan = params['TimeSpan']
|
705
|
+
@TimeUnit = params['TimeUnit']
|
706
|
+
@OriginalCost = params['OriginalCost']
|
707
|
+
@RequestId = params['RequestId']
|
708
|
+
end
|
709
|
+
end
|
710
|
+
|
711
|
+
# ModifyVsmAttributes请求参数结构体
|
712
|
+
class ModifyVsmAttributesRequest < TencentCloud::Common::AbstractModel
|
713
|
+
# @param ResourceId: 资源Id
|
714
|
+
# @type ResourceId: String
|
715
|
+
# @param Type: UpdateResourceName-修改资源名称,
|
716
|
+
# UpdateSgIds-修改安全组名称,
|
717
|
+
# UpdateNetWork-修改网络,
|
718
|
+
# Default-默认不修改
|
719
|
+
# @type Type: Array
|
720
|
+
# @param ResourceName: 资源名称
|
721
|
+
# @type ResourceName: String
|
722
|
+
# @param SgIds: 安全组Id
|
723
|
+
# @type SgIds: Array
|
724
|
+
# @param VpcId: 虚拟专网Id
|
725
|
+
# @type VpcId: String
|
726
|
+
# @param SubnetId: 子网Id
|
727
|
+
# @type SubnetId: String
|
728
|
+
|
729
|
+
attr_accessor :ResourceId, :Type, :ResourceName, :SgIds, :VpcId, :SubnetId
|
730
|
+
|
731
|
+
def initialize(resourceid=nil, type=nil, resourcename=nil, sgids=nil, vpcid=nil, subnetid=nil)
|
732
|
+
@ResourceId = resourceid
|
733
|
+
@Type = type
|
734
|
+
@ResourceName = resourcename
|
735
|
+
@SgIds = sgids
|
736
|
+
@VpcId = vpcid
|
737
|
+
@SubnetId = subnetid
|
738
|
+
end
|
739
|
+
|
740
|
+
def deserialize(params)
|
741
|
+
@ResourceId = params['ResourceId']
|
742
|
+
@Type = params['Type']
|
743
|
+
@ResourceName = params['ResourceName']
|
744
|
+
@SgIds = params['SgIds']
|
745
|
+
@VpcId = params['VpcId']
|
746
|
+
@SubnetId = params['SubnetId']
|
747
|
+
end
|
748
|
+
end
|
749
|
+
|
750
|
+
# ModifyVsmAttributes返回参数结构体
|
751
|
+
class ModifyVsmAttributesResponse < TencentCloud::Common::AbstractModel
|
752
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
753
|
+
# @type RequestId: String
|
754
|
+
|
755
|
+
attr_accessor :RequestId
|
756
|
+
|
757
|
+
def initialize(requestid=nil)
|
758
|
+
@RequestId = requestid
|
759
|
+
end
|
760
|
+
|
761
|
+
def deserialize(params)
|
762
|
+
@RequestId = params['RequestId']
|
763
|
+
end
|
764
|
+
end
|
765
|
+
|
766
|
+
# 资源信息
|
767
|
+
class ResourceInfo < TencentCloud::Common::AbstractModel
|
768
|
+
# @param ResourceId: 资源Id
|
769
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
770
|
+
# @type ResourceId: String
|
771
|
+
# @param ResourceName: 资源名称
|
772
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
773
|
+
# @type ResourceName: String
|
774
|
+
# @param Status: 资源状态
|
775
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
776
|
+
# @type Status: Integer
|
777
|
+
# @param Vip: 资源IP
|
778
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
779
|
+
# @type Vip: String
|
780
|
+
# @param VpcId: 资源所属Vpc
|
781
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
782
|
+
# @type VpcId: String
|
783
|
+
# @param SubnetId: 资源所属子网
|
784
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
785
|
+
# @type SubnetId: String
|
786
|
+
# @param Model: 资源所属HSM规格
|
787
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
788
|
+
# @type Model: String
|
789
|
+
# @param VsmType: 资源类型
|
790
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
791
|
+
# @type VsmType: Integer
|
792
|
+
# @param RegionId: 地域Id
|
793
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
794
|
+
# @type RegionId: Integer
|
795
|
+
# @param ZoneId: 区域Id
|
796
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
797
|
+
# @type ZoneId: Integer
|
798
|
+
# @param ExpireTime: 过期时间
|
799
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
800
|
+
# @type ExpireTime: Integer
|
801
|
+
# @param RegionName: 地域名
|
802
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
803
|
+
# @type RegionName: String
|
804
|
+
# @param ZoneName: 区域名
|
805
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
806
|
+
# @type ZoneName: String
|
807
|
+
# @param SgList: 实例的安全组列表
|
808
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
809
|
+
# @type SgList: Array
|
810
|
+
# @param SubnetName: 子网名称
|
811
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
812
|
+
# @type SubnetName: String
|
813
|
+
# @param Expired: 当前实例是否已经过期
|
814
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
815
|
+
# @type Expired: Boolean
|
816
|
+
# @param RemainSeconds: 为正数表示实例距离过期时间还剩余多少秒,为负数表示已经过期多少秒
|
817
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
818
|
+
# @type RemainSeconds: Integer
|
819
|
+
# @param VpcName: Vpc名称
|
820
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
821
|
+
# @type VpcName: String
|
822
|
+
# @param CreateUin: 创建者Uin账号
|
823
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
824
|
+
# @type CreateUin: String
|
825
|
+
# @param RenewFlag: 自动续费状态标识, 0-手动续费,1-自动续费,2-到期不续
|
826
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
827
|
+
# @type RenewFlag: Integer
|
828
|
+
# @param Tags: 标签列表
|
829
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
830
|
+
# @type Tags: Array
|
831
|
+
# @param Manufacturer: 厂商
|
832
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
833
|
+
# @type Manufacturer: String
|
834
|
+
|
835
|
+
attr_accessor :ResourceId, :ResourceName, :Status, :Vip, :VpcId, :SubnetId, :Model, :VsmType, :RegionId, :ZoneId, :ExpireTime, :RegionName, :ZoneName, :SgList, :SubnetName, :Expired, :RemainSeconds, :VpcName, :CreateUin, :RenewFlag, :Tags, :Manufacturer
|
836
|
+
|
837
|
+
def initialize(resourceid=nil, resourcename=nil, status=nil, vip=nil, vpcid=nil, subnetid=nil, model=nil, vsmtype=nil, regionid=nil, zoneid=nil, expiretime=nil, regionname=nil, zonename=nil, sglist=nil, subnetname=nil, expired=nil, remainseconds=nil, vpcname=nil, createuin=nil, renewflag=nil, tags=nil, manufacturer=nil)
|
838
|
+
@ResourceId = resourceid
|
839
|
+
@ResourceName = resourcename
|
840
|
+
@Status = status
|
841
|
+
@Vip = vip
|
842
|
+
@VpcId = vpcid
|
843
|
+
@SubnetId = subnetid
|
844
|
+
@Model = model
|
845
|
+
@VsmType = vsmtype
|
846
|
+
@RegionId = regionid
|
847
|
+
@ZoneId = zoneid
|
848
|
+
@ExpireTime = expiretime
|
849
|
+
@RegionName = regionname
|
850
|
+
@ZoneName = zonename
|
851
|
+
@SgList = sglist
|
852
|
+
@SubnetName = subnetname
|
853
|
+
@Expired = expired
|
854
|
+
@RemainSeconds = remainseconds
|
855
|
+
@VpcName = vpcname
|
856
|
+
@CreateUin = createuin
|
857
|
+
@RenewFlag = renewflag
|
858
|
+
@Tags = tags
|
859
|
+
@Manufacturer = manufacturer
|
860
|
+
end
|
861
|
+
|
862
|
+
def deserialize(params)
|
863
|
+
@ResourceId = params['ResourceId']
|
864
|
+
@ResourceName = params['ResourceName']
|
865
|
+
@Status = params['Status']
|
866
|
+
@Vip = params['Vip']
|
867
|
+
@VpcId = params['VpcId']
|
868
|
+
@SubnetId = params['SubnetId']
|
869
|
+
@Model = params['Model']
|
870
|
+
@VsmType = params['VsmType']
|
871
|
+
@RegionId = params['RegionId']
|
872
|
+
@ZoneId = params['ZoneId']
|
873
|
+
@ExpireTime = params['ExpireTime']
|
874
|
+
@RegionName = params['RegionName']
|
875
|
+
@ZoneName = params['ZoneName']
|
876
|
+
unless params['SgList'].nil?
|
877
|
+
@SgList = []
|
878
|
+
params['SgList'].each do |i|
|
879
|
+
sgunit_tmp = SgUnit.new
|
880
|
+
sgunit_tmp.deserialize(i)
|
881
|
+
@SgList << sgunit_tmp
|
882
|
+
end
|
883
|
+
end
|
884
|
+
@SubnetName = params['SubnetName']
|
885
|
+
@Expired = params['Expired']
|
886
|
+
@RemainSeconds = params['RemainSeconds']
|
887
|
+
@VpcName = params['VpcName']
|
888
|
+
@CreateUin = params['CreateUin']
|
889
|
+
@RenewFlag = params['RenewFlag']
|
890
|
+
unless params['Tags'].nil?
|
891
|
+
@Tags = []
|
892
|
+
params['Tags'].each do |i|
|
893
|
+
tag_tmp = Tag.new
|
894
|
+
tag_tmp.deserialize(i)
|
895
|
+
@Tags << tag_tmp
|
896
|
+
end
|
897
|
+
end
|
898
|
+
@Manufacturer = params['Manufacturer']
|
899
|
+
end
|
900
|
+
end
|
901
|
+
|
902
|
+
# 安全组基础信息
|
903
|
+
class SgUnit < TencentCloud::Common::AbstractModel
|
904
|
+
# @param SgId: 安全组Id
|
905
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
906
|
+
# @type SgId: String
|
907
|
+
# @param SgName: 安全组名称
|
908
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
909
|
+
# @type SgName: String
|
910
|
+
# @param SgRemark: 备注
|
911
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
912
|
+
# @type SgRemark: String
|
913
|
+
# @param CreateTime: 创建时间
|
914
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
915
|
+
# @type CreateTime: String
|
916
|
+
|
917
|
+
attr_accessor :SgId, :SgName, :SgRemark, :CreateTime
|
918
|
+
|
919
|
+
def initialize(sgid=nil, sgname=nil, sgremark=nil, createtime=nil)
|
920
|
+
@SgId = sgid
|
921
|
+
@SgName = sgname
|
922
|
+
@SgRemark = sgremark
|
923
|
+
@CreateTime = createtime
|
924
|
+
end
|
925
|
+
|
926
|
+
def deserialize(params)
|
927
|
+
@SgId = params['SgId']
|
928
|
+
@SgName = params['SgName']
|
929
|
+
@SgRemark = params['SgRemark']
|
930
|
+
@CreateTime = params['CreateTime']
|
931
|
+
end
|
932
|
+
end
|
933
|
+
|
934
|
+
# Subnet对象
|
935
|
+
class Subnet < TencentCloud::Common::AbstractModel
|
936
|
+
# @param VpcId: VPC实例ID。
|
937
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
938
|
+
# @type VpcId: String
|
939
|
+
# @param SubnetId: 子网实例ID,例如:subnet-bthucmmy。
|
940
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
941
|
+
# @type SubnetId: String
|
942
|
+
# @param SubnetName: 子网名称。
|
943
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
944
|
+
# @type SubnetName: String
|
945
|
+
# @param CidrBlock: 子网的 IPv4 CIDR。
|
946
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
947
|
+
# @type CidrBlock: String
|
948
|
+
# @param CreatedTime: 创建时间。
|
949
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
950
|
+
# @type CreatedTime: String
|
951
|
+
# @param AvailableIpAddressCount: 可用IP数。
|
952
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
953
|
+
# @type AvailableIpAddressCount: Integer
|
954
|
+
# @param Ipv6CidrBlock: 子网的 IPv6 CIDR。
|
955
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
956
|
+
# @type Ipv6CidrBlock: String
|
957
|
+
# @param TotalIpAddressCount: 总IP数
|
958
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
959
|
+
# @type TotalIpAddressCount: Integer
|
960
|
+
# @param IsDefault: 是否为默认Subnet
|
961
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
962
|
+
# @type IsDefault: Boolean
|
963
|
+
|
964
|
+
attr_accessor :VpcId, :SubnetId, :SubnetName, :CidrBlock, :CreatedTime, :AvailableIpAddressCount, :Ipv6CidrBlock, :TotalIpAddressCount, :IsDefault
|
965
|
+
|
966
|
+
def initialize(vpcid=nil, subnetid=nil, subnetname=nil, cidrblock=nil, createdtime=nil, availableipaddresscount=nil, ipv6cidrblock=nil, totalipaddresscount=nil, isdefault=nil)
|
967
|
+
@VpcId = vpcid
|
968
|
+
@SubnetId = subnetid
|
969
|
+
@SubnetName = subnetname
|
970
|
+
@CidrBlock = cidrblock
|
971
|
+
@CreatedTime = createdtime
|
972
|
+
@AvailableIpAddressCount = availableipaddresscount
|
973
|
+
@Ipv6CidrBlock = ipv6cidrblock
|
974
|
+
@TotalIpAddressCount = totalipaddresscount
|
975
|
+
@IsDefault = isdefault
|
976
|
+
end
|
977
|
+
|
978
|
+
def deserialize(params)
|
979
|
+
@VpcId = params['VpcId']
|
980
|
+
@SubnetId = params['SubnetId']
|
981
|
+
@SubnetName = params['SubnetName']
|
982
|
+
@CidrBlock = params['CidrBlock']
|
983
|
+
@CreatedTime = params['CreatedTime']
|
984
|
+
@AvailableIpAddressCount = params['AvailableIpAddressCount']
|
985
|
+
@Ipv6CidrBlock = params['Ipv6CidrBlock']
|
986
|
+
@TotalIpAddressCount = params['TotalIpAddressCount']
|
987
|
+
@IsDefault = params['IsDefault']
|
988
|
+
end
|
989
|
+
end
|
990
|
+
|
991
|
+
# 标签
|
992
|
+
class Tag < TencentCloud::Common::AbstractModel
|
993
|
+
# @param TagKey: 标签键
|
994
|
+
# @type TagKey: String
|
995
|
+
# @param TagValue: 标签值
|
996
|
+
# @type TagValue: String
|
997
|
+
|
998
|
+
attr_accessor :TagKey, :TagValue
|
999
|
+
|
1000
|
+
def initialize(tagkey=nil, tagvalue=nil)
|
1001
|
+
@TagKey = tagkey
|
1002
|
+
@TagValue = tagvalue
|
1003
|
+
end
|
1004
|
+
|
1005
|
+
def deserialize(params)
|
1006
|
+
@TagKey = params['TagKey']
|
1007
|
+
@TagValue = params['TagValue']
|
1008
|
+
end
|
1009
|
+
end
|
1010
|
+
|
1011
|
+
# 标签过滤参数
|
1012
|
+
class TagFilter < TencentCloud::Common::AbstractModel
|
1013
|
+
# @param TagKey: 标签键
|
1014
|
+
# @type TagKey: String
|
1015
|
+
# @param TagValue: 标签值
|
1016
|
+
# @type TagValue: Array
|
1017
|
+
|
1018
|
+
attr_accessor :TagKey, :TagValue
|
1019
|
+
|
1020
|
+
def initialize(tagkey=nil, tagvalue=nil)
|
1021
|
+
@TagKey = tagkey
|
1022
|
+
@TagValue = tagvalue
|
1023
|
+
end
|
1024
|
+
|
1025
|
+
def deserialize(params)
|
1026
|
+
@TagKey = params['TagKey']
|
1027
|
+
@TagValue = params['TagValue']
|
1028
|
+
end
|
1029
|
+
end
|
1030
|
+
|
1031
|
+
# 安全组策略
|
1032
|
+
class UsgPolicy < TencentCloud::Common::AbstractModel
|
1033
|
+
# @param Ip: cidr格式地址
|
1034
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1035
|
+
# @type Ip: String
|
1036
|
+
# @param Id: 安全组id代表的地址集合
|
1037
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1038
|
+
# @type Id: String
|
1039
|
+
# @param AddressModule: 地址组id代表的地址集合
|
1040
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1041
|
+
# @type AddressModule: String
|
1042
|
+
# @param Proto: 协议
|
1043
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1044
|
+
# @type Proto: String
|
1045
|
+
# @param Port: 端口
|
1046
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1047
|
+
# @type Port: String
|
1048
|
+
# @param ServiceModule: 服务组id代表的协议和端口集合
|
1049
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1050
|
+
# @type ServiceModule: String
|
1051
|
+
# @param Desc: 备注
|
1052
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1053
|
+
# @type Desc: String
|
1054
|
+
# @param Action: 匹配后行为:ACCEPT/DROP
|
1055
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1056
|
+
# @type Action: String
|
1057
|
+
|
1058
|
+
attr_accessor :Ip, :Id, :AddressModule, :Proto, :Port, :ServiceModule, :Desc, :Action
|
1059
|
+
|
1060
|
+
def initialize(ip=nil, id=nil, addressmodule=nil, proto=nil, port=nil, servicemodule=nil, desc=nil, action=nil)
|
1061
|
+
@Ip = ip
|
1062
|
+
@Id = id
|
1063
|
+
@AddressModule = addressmodule
|
1064
|
+
@Proto = proto
|
1065
|
+
@Port = port
|
1066
|
+
@ServiceModule = servicemodule
|
1067
|
+
@Desc = desc
|
1068
|
+
@Action = action
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
def deserialize(params)
|
1072
|
+
@Ip = params['Ip']
|
1073
|
+
@Id = params['Id']
|
1074
|
+
@AddressModule = params['AddressModule']
|
1075
|
+
@Proto = params['Proto']
|
1076
|
+
@Port = params['Port']
|
1077
|
+
@ServiceModule = params['ServiceModule']
|
1078
|
+
@Desc = params['Desc']
|
1079
|
+
@Action = params['Action']
|
1080
|
+
end
|
1081
|
+
end
|
1082
|
+
|
1083
|
+
# 安全组规则详情
|
1084
|
+
class UsgRuleDetail < TencentCloud::Common::AbstractModel
|
1085
|
+
# @param InBound: 入站规则
|
1086
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1087
|
+
# @type InBound: Array
|
1088
|
+
# @param OutBound: 出站规则
|
1089
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1090
|
+
# @type OutBound: Array
|
1091
|
+
# @param SgId: 安全组Id
|
1092
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1093
|
+
# @type SgId: String
|
1094
|
+
# @param SgName: 安全组名称
|
1095
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1096
|
+
# @type SgName: String
|
1097
|
+
# @param SgRemark: 备注
|
1098
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1099
|
+
# @type SgRemark: String
|
1100
|
+
# @param CreateTime: 创建时间
|
1101
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1102
|
+
# @type CreateTime: String
|
1103
|
+
# @param Version: 版本
|
1104
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1105
|
+
# @type Version: Integer
|
1106
|
+
|
1107
|
+
attr_accessor :InBound, :OutBound, :SgId, :SgName, :SgRemark, :CreateTime, :Version
|
1108
|
+
|
1109
|
+
def initialize(inbound=nil, outbound=nil, sgid=nil, sgname=nil, sgremark=nil, createtime=nil, version=nil)
|
1110
|
+
@InBound = inbound
|
1111
|
+
@OutBound = outbound
|
1112
|
+
@SgId = sgid
|
1113
|
+
@SgName = sgname
|
1114
|
+
@SgRemark = sgremark
|
1115
|
+
@CreateTime = createtime
|
1116
|
+
@Version = version
|
1117
|
+
end
|
1118
|
+
|
1119
|
+
def deserialize(params)
|
1120
|
+
unless params['InBound'].nil?
|
1121
|
+
@InBound = []
|
1122
|
+
params['InBound'].each do |i|
|
1123
|
+
usgpolicy_tmp = UsgPolicy.new
|
1124
|
+
usgpolicy_tmp.deserialize(i)
|
1125
|
+
@InBound << usgpolicy_tmp
|
1126
|
+
end
|
1127
|
+
end
|
1128
|
+
unless params['OutBound'].nil?
|
1129
|
+
@OutBound = []
|
1130
|
+
params['OutBound'].each do |i|
|
1131
|
+
usgpolicy_tmp = UsgPolicy.new
|
1132
|
+
usgpolicy_tmp.deserialize(i)
|
1133
|
+
@OutBound << usgpolicy_tmp
|
1134
|
+
end
|
1135
|
+
end
|
1136
|
+
@SgId = params['SgId']
|
1137
|
+
@SgName = params['SgName']
|
1138
|
+
@SgRemark = params['SgRemark']
|
1139
|
+
@CreateTime = params['CreateTime']
|
1140
|
+
@Version = params['Version']
|
1141
|
+
end
|
1142
|
+
end
|
1143
|
+
|
1144
|
+
# VPC对象
|
1145
|
+
class Vpc < TencentCloud::Common::AbstractModel
|
1146
|
+
# @param VpcName: Vpc名称
|
1147
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1148
|
+
# @type VpcName: String
|
1149
|
+
# @param VpcId: VpcId
|
1150
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1151
|
+
# @type VpcId: String
|
1152
|
+
# @param CreatedTime: 创建时间
|
1153
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1154
|
+
# @type CreatedTime: String
|
1155
|
+
# @param IsDefault: 是否为默认VPC
|
1156
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1157
|
+
# @type IsDefault: Boolean
|
1158
|
+
|
1159
|
+
attr_accessor :VpcName, :VpcId, :CreatedTime, :IsDefault
|
1160
|
+
|
1161
|
+
def initialize(vpcname=nil, vpcid=nil, createdtime=nil, isdefault=nil)
|
1162
|
+
@VpcName = vpcname
|
1163
|
+
@VpcId = vpcid
|
1164
|
+
@CreatedTime = createdtime
|
1165
|
+
@IsDefault = isdefault
|
1166
|
+
end
|
1167
|
+
|
1168
|
+
def deserialize(params)
|
1169
|
+
@VpcName = params['VpcName']
|
1170
|
+
@VpcId = params['VpcId']
|
1171
|
+
@CreatedTime = params['CreatedTime']
|
1172
|
+
@IsDefault = params['IsDefault']
|
1173
|
+
end
|
1174
|
+
end
|
1175
|
+
|
1176
|
+
# 支持的Vsm类型信息
|
1177
|
+
class VsmInfo < TencentCloud::Common::AbstractModel
|
1178
|
+
# @param TypeName: VSM类型名称
|
1179
|
+
# @type TypeName: String
|
1180
|
+
# @param TypeID: VSM类型值
|
1181
|
+
# @type TypeID: Integer
|
1182
|
+
|
1183
|
+
attr_accessor :TypeName, :TypeID
|
1184
|
+
|
1185
|
+
def initialize(typename=nil, typeid=nil)
|
1186
|
+
@TypeName = typename
|
1187
|
+
@TypeID = typeid
|
1188
|
+
end
|
1189
|
+
|
1190
|
+
def deserialize(params)
|
1191
|
+
@TypeName = params['TypeName']
|
1192
|
+
@TypeID = params['TypeID']
|
1193
|
+
end
|
1194
|
+
end
|
1195
|
+
|
1196
|
+
end
|
1197
|
+
end
|
1198
|
+
end
|
1199
|
+
|