tencentcloud-sdk-dc 1.0.200

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.
@@ -0,0 +1,2162 @@
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 Dc
19
+ module V20180410
20
+ # AcceptDirectConnectTunnel请求参数结构体
21
+ class AcceptDirectConnectTunnelRequest < TencentCloud::Common::AbstractModel
22
+ # @param DirectConnectTunnelId: 物理专线拥有者接受共享专用通道申请
23
+ # @type DirectConnectTunnelId: String
24
+
25
+ attr_accessor :DirectConnectTunnelId
26
+
27
+ def initialize(directconnecttunnelid=nil)
28
+ @DirectConnectTunnelId = directconnecttunnelid
29
+ end
30
+
31
+ def deserialize(params)
32
+ @DirectConnectTunnelId = params['DirectConnectTunnelId']
33
+ end
34
+ end
35
+
36
+ # AcceptDirectConnectTunnel返回参数结构体
37
+ class AcceptDirectConnectTunnelResponse < TencentCloud::Common::AbstractModel
38
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
39
+ # @type RequestId: String
40
+
41
+ attr_accessor :RequestId
42
+
43
+ def initialize(requestid=nil)
44
+ @RequestId = requestid
45
+ end
46
+
47
+ def deserialize(params)
48
+ @RequestId = params['RequestId']
49
+ end
50
+ end
51
+
52
+ # 接入点信息。
53
+ class AccessPoint < TencentCloud::Common::AbstractModel
54
+ # @param AccessPointName: 接入点的名称。
55
+ # @type AccessPointName: String
56
+ # @param AccessPointId: 接入点唯一ID。
57
+ # @type AccessPointId: String
58
+ # @param State: 接入点的状态。可用,不可用。
59
+ # @type State: String
60
+ # @param Location: 接入点的位置。
61
+ # @type Location: String
62
+ # @param LineOperator: 接入点支持的运营商列表。
63
+ # @type LineOperator: Array
64
+ # @param RegionId: 接入点管理的大区ID。
65
+ # @type RegionId: String
66
+ # @param AvailablePortType: 接入点可用的端口类型列表。1000BASE-T代表千兆电口,1000BASE-LX代表千兆单模光口10km,1000BASE-ZX代表千兆单模光口80km,10GBASE-LR代表万兆单模光口10km,10GBASE-ZR代表万兆单模光口80km,10GBASE-LH代表万兆单模光口40km,100GBASE-LR4代表100G单模光口10km
67
+ # 注意:此字段可能返回 null,表示取不到有效值。
68
+ # @type AvailablePortType: Array
69
+ # @param Coordinate: 接入点经纬度
70
+ # 注意:此字段可能返回 null,表示取不到有效值。
71
+ # @type Coordinate: :class:`Tencentcloud::Dc.v20180410.models.Coordinate`
72
+ # @param City: 接入点所在城市
73
+ # 注意:此字段可能返回 null,表示取不到有效值。
74
+ # @type City: String
75
+ # @param Area: 接入点地域名称
76
+ # 注意:此字段可能返回 null,表示取不到有效值。
77
+ # @type Area: String
78
+ # @param AccessPointType: 接入点类型。VXLAN/QCPL/QCAR
79
+ # 注意:此字段可能返回 null,表示取不到有效值。
80
+ # @type AccessPointType: String
81
+
82
+ attr_accessor :AccessPointName, :AccessPointId, :State, :Location, :LineOperator, :RegionId, :AvailablePortType, :Coordinate, :City, :Area, :AccessPointType
83
+
84
+ def initialize(accesspointname=nil, accesspointid=nil, state=nil, location=nil, lineoperator=nil, regionid=nil, availableporttype=nil, coordinate=nil, city=nil, area=nil, accesspointtype=nil)
85
+ @AccessPointName = accesspointname
86
+ @AccessPointId = accesspointid
87
+ @State = state
88
+ @Location = location
89
+ @LineOperator = lineoperator
90
+ @RegionId = regionid
91
+ @AvailablePortType = availableporttype
92
+ @Coordinate = coordinate
93
+ @City = city
94
+ @Area = area
95
+ @AccessPointType = accesspointtype
96
+ end
97
+
98
+ def deserialize(params)
99
+ @AccessPointName = params['AccessPointName']
100
+ @AccessPointId = params['AccessPointId']
101
+ @State = params['State']
102
+ @Location = params['Location']
103
+ @LineOperator = params['LineOperator']
104
+ @RegionId = params['RegionId']
105
+ @AvailablePortType = params['AvailablePortType']
106
+ unless params['Coordinate'].nil?
107
+ @Coordinate = Coordinate.new
108
+ @Coordinate.deserialize(params['Coordinate'])
109
+ end
110
+ @City = params['City']
111
+ @Area = params['Area']
112
+ @AccessPointType = params['AccessPointType']
113
+ end
114
+ end
115
+
116
+ # ApplyInternetAddress请求参数结构体
117
+ class ApplyInternetAddressRequest < TencentCloud::Common::AbstractModel
118
+ # @param MaskLen: CIDR地址掩码长度
119
+ # @type MaskLen: Integer
120
+ # @param AddrType: 0:BGP类型地址
121
+ # 1:中国电信
122
+ # 2:中国移动
123
+ # 3:中国联通
124
+ # @type AddrType: Integer
125
+ # @param AddrProto: 0:IPv4
126
+ # 1:IPv6
127
+ # @type AddrProto: Integer
128
+
129
+ attr_accessor :MaskLen, :AddrType, :AddrProto
130
+
131
+ def initialize(masklen=nil, addrtype=nil, addrproto=nil)
132
+ @MaskLen = masklen
133
+ @AddrType = addrtype
134
+ @AddrProto = addrproto
135
+ end
136
+
137
+ def deserialize(params)
138
+ @MaskLen = params['MaskLen']
139
+ @AddrType = params['AddrType']
140
+ @AddrProto = params['AddrProto']
141
+ end
142
+ end
143
+
144
+ # ApplyInternetAddress返回参数结构体
145
+ class ApplyInternetAddressResponse < TencentCloud::Common::AbstractModel
146
+ # @param InstanceId: 互联网公网地址ID
147
+ # 注意:此字段可能返回 null,表示取不到有效值。
148
+ # @type InstanceId: String
149
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
150
+ # @type RequestId: String
151
+
152
+ attr_accessor :InstanceId, :RequestId
153
+
154
+ def initialize(instanceid=nil, requestid=nil)
155
+ @InstanceId = instanceid
156
+ @RequestId = requestid
157
+ end
158
+
159
+ def deserialize(params)
160
+ @InstanceId = params['InstanceId']
161
+ @RequestId = params['RequestId']
162
+ end
163
+ end
164
+
165
+ # BFD配置信息
166
+ class BFDInfo < TencentCloud::Common::AbstractModel
167
+ # @param ProbeFailedTimes: 健康检查次数
168
+ # @type ProbeFailedTimes: Integer
169
+ # @param Interval: 健康检查间隔
170
+ # @type Interval: Integer
171
+
172
+ attr_accessor :ProbeFailedTimes, :Interval
173
+
174
+ def initialize(probefailedtimes=nil, interval=nil)
175
+ @ProbeFailedTimes = probefailedtimes
176
+ @Interval = interval
177
+ end
178
+
179
+ def deserialize(params)
180
+ @ProbeFailedTimes = params['ProbeFailedTimes']
181
+ @Interval = params['Interval']
182
+ end
183
+ end
184
+
185
+ # bgp状态信息
186
+ class BGPStatus < TencentCloud::Common::AbstractModel
187
+ # @param TencentAddressBgpState: 腾讯侧主互联IP BGP状态
188
+ # @type TencentAddressBgpState: String
189
+ # @param TencentBackupAddressBgpState: 腾讯侧备互联IP BGP状态
190
+ # @type TencentBackupAddressBgpState: String
191
+
192
+ attr_accessor :TencentAddressBgpState, :TencentBackupAddressBgpState
193
+
194
+ def initialize(tencentaddressbgpstate=nil, tencentbackupaddressbgpstate=nil)
195
+ @TencentAddressBgpState = tencentaddressbgpstate
196
+ @TencentBackupAddressBgpState = tencentbackupaddressbgpstate
197
+ end
198
+
199
+ def deserialize(params)
200
+ @TencentAddressBgpState = params['TencentAddressBgpState']
201
+ @TencentBackupAddressBgpState = params['TencentBackupAddressBgpState']
202
+ end
203
+ end
204
+
205
+ # bgp参数,包括Asn,AuthKey
206
+ class BgpPeer < TencentCloud::Common::AbstractModel
207
+ # @param Asn: 用户侧,BGP Asn
208
+ # @type Asn: Integer
209
+ # @param AuthKey: 用户侧BGP密钥
210
+ # @type AuthKey: String
211
+
212
+ attr_accessor :Asn, :AuthKey
213
+
214
+ def initialize(asn=nil, authkey=nil)
215
+ @Asn = asn
216
+ @AuthKey = authkey
217
+ end
218
+
219
+ def deserialize(params)
220
+ @Asn = params['Asn']
221
+ @AuthKey = params['AuthKey']
222
+ end
223
+ end
224
+
225
+ # 坐标,经维度描述
226
+ class Coordinate < TencentCloud::Common::AbstractModel
227
+ # @param Lat: 纬度
228
+ # @type Lat: Float
229
+ # @param Lng: 经度
230
+ # @type Lng: Float
231
+
232
+ attr_accessor :Lat, :Lng
233
+
234
+ def initialize(lat=nil, lng=nil)
235
+ @Lat = lat
236
+ @Lng = lng
237
+ end
238
+
239
+ def deserialize(params)
240
+ @Lat = params['Lat']
241
+ @Lng = params['Lng']
242
+ end
243
+ end
244
+
245
+ # CreateDirectConnect请求参数结构体
246
+ class CreateDirectConnectRequest < TencentCloud::Common::AbstractModel
247
+ # @param DirectConnectName: 物理专线的名称。
248
+ # @type DirectConnectName: String
249
+ # @param AccessPointId: 物理专线所在的接入点。
250
+ # 您可以通过调用 DescribeAccessPoints接口获取地域ID。所选择的接入点必须存在且处于可接入的状态。
251
+ # @type AccessPointId: String
252
+ # @param LineOperator: 提供接入物理专线的运营商。ChinaTelecom:中国电信, ChinaMobile:中国移动,ChinaUnicom:中国联通, In-houseWiring:楼内线,ChinaOther:中国其他, InternationalOperator:境外其他。
253
+ # @type LineOperator: String
254
+ # @param PortType: 物理专线接入端口类型,取值:100Base-T:百兆电口,1000Base-T(默认值):千兆电口,1000Base-LX:千兆单模光口(10千米),10GBase-T:万兆电口10GBase-LR:万兆单模光口(10千米),默认值,千兆单模光口(10千米)。
255
+ # @type PortType: String
256
+ # @param CircuitCode: 运营商或者服务商为物理专线提供的电路编码。
257
+ # @type CircuitCode: String
258
+ # @param Location: 本地数据中心的地理位置。
259
+ # @type Location: String
260
+ # @param Bandwidth: 物理专线接入接口带宽,单位为Mbps,默认值为1000,取值范围为 [2, 10240]。
261
+ # @type Bandwidth: Integer
262
+ # @param RedundantDirectConnectId: 冗余物理专线的ID。
263
+ # @type RedundantDirectConnectId: String
264
+ # @param Vlan: 物理专线调试VLAN。默认开启VLAN,自动分配VLAN。
265
+ # @type Vlan: Integer
266
+ # @param TencentAddress: 物理专线调试腾讯侧互联 IP。默认自动分配。
267
+ # @type TencentAddress: String
268
+ # @param CustomerAddress: 物理专线调试用户侧互联 IP。默认自动分配。
269
+ # @type CustomerAddress: String
270
+ # @param CustomerName: 物理专线申请者姓名。默认从账户体系获取。
271
+ # @type CustomerName: String
272
+ # @param CustomerContactMail: 物理专线申请者联系邮箱。默认从账户体系获取。
273
+ # @type CustomerContactMail: String
274
+ # @param CustomerContactNumber: 物理专线申请者联系号码。默认从账户体系获取。
275
+ # @type CustomerContactNumber: String
276
+ # @param FaultReportContactPerson: 报障联系人。
277
+ # @type FaultReportContactPerson: String
278
+ # @param FaultReportContactNumber: 报障联系电话。
279
+ # @type FaultReportContactNumber: String
280
+ # @param SignLaw: 物理专线申请者是否签署了用户使用协议。默认已签署
281
+ # @type SignLaw: Boolean
282
+
283
+ attr_accessor :DirectConnectName, :AccessPointId, :LineOperator, :PortType, :CircuitCode, :Location, :Bandwidth, :RedundantDirectConnectId, :Vlan, :TencentAddress, :CustomerAddress, :CustomerName, :CustomerContactMail, :CustomerContactNumber, :FaultReportContactPerson, :FaultReportContactNumber, :SignLaw
284
+
285
+ def initialize(directconnectname=nil, accesspointid=nil, lineoperator=nil, porttype=nil, circuitcode=nil, location=nil, bandwidth=nil, redundantdirectconnectid=nil, vlan=nil, tencentaddress=nil, customeraddress=nil, customername=nil, customercontactmail=nil, customercontactnumber=nil, faultreportcontactperson=nil, faultreportcontactnumber=nil, signlaw=nil)
286
+ @DirectConnectName = directconnectname
287
+ @AccessPointId = accesspointid
288
+ @LineOperator = lineoperator
289
+ @PortType = porttype
290
+ @CircuitCode = circuitcode
291
+ @Location = location
292
+ @Bandwidth = bandwidth
293
+ @RedundantDirectConnectId = redundantdirectconnectid
294
+ @Vlan = vlan
295
+ @TencentAddress = tencentaddress
296
+ @CustomerAddress = customeraddress
297
+ @CustomerName = customername
298
+ @CustomerContactMail = customercontactmail
299
+ @CustomerContactNumber = customercontactnumber
300
+ @FaultReportContactPerson = faultreportcontactperson
301
+ @FaultReportContactNumber = faultreportcontactnumber
302
+ @SignLaw = signlaw
303
+ end
304
+
305
+ def deserialize(params)
306
+ @DirectConnectName = params['DirectConnectName']
307
+ @AccessPointId = params['AccessPointId']
308
+ @LineOperator = params['LineOperator']
309
+ @PortType = params['PortType']
310
+ @CircuitCode = params['CircuitCode']
311
+ @Location = params['Location']
312
+ @Bandwidth = params['Bandwidth']
313
+ @RedundantDirectConnectId = params['RedundantDirectConnectId']
314
+ @Vlan = params['Vlan']
315
+ @TencentAddress = params['TencentAddress']
316
+ @CustomerAddress = params['CustomerAddress']
317
+ @CustomerName = params['CustomerName']
318
+ @CustomerContactMail = params['CustomerContactMail']
319
+ @CustomerContactNumber = params['CustomerContactNumber']
320
+ @FaultReportContactPerson = params['FaultReportContactPerson']
321
+ @FaultReportContactNumber = params['FaultReportContactNumber']
322
+ @SignLaw = params['SignLaw']
323
+ end
324
+ end
325
+
326
+ # CreateDirectConnect返回参数结构体
327
+ class CreateDirectConnectResponse < TencentCloud::Common::AbstractModel
328
+ # @param DirectConnectIdSet: 物理专线的ID。
329
+ # @type DirectConnectIdSet: Array
330
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
331
+ # @type RequestId: String
332
+
333
+ attr_accessor :DirectConnectIdSet, :RequestId
334
+
335
+ def initialize(directconnectidset=nil, requestid=nil)
336
+ @DirectConnectIdSet = directconnectidset
337
+ @RequestId = requestid
338
+ end
339
+
340
+ def deserialize(params)
341
+ @DirectConnectIdSet = params['DirectConnectIdSet']
342
+ @RequestId = params['RequestId']
343
+ end
344
+ end
345
+
346
+ # CreateDirectConnectTunnel请求参数结构体
347
+ class CreateDirectConnectTunnelRequest < TencentCloud::Common::AbstractModel
348
+ # @param DirectConnectId: 专线 ID,例如:dc-kd7d06of
349
+ # @type DirectConnectId: String
350
+ # @param DirectConnectTunnelName: 专用通道名称
351
+ # @type DirectConnectTunnelName: String
352
+ # @param DirectConnectOwnerAccount: 物理专线 owner,缺省为当前客户(物理专线 owner)
353
+ # 共享专线时这里需要填写共享专线的开发商账号 ID
354
+ # @type DirectConnectOwnerAccount: String
355
+ # @param NetworkType: 网络类型,分别为VPC、BMVPC,CCN,默认是VPC
356
+ # VPC:私有网络
357
+ # BMVPC:黑石网络
358
+ # CCN:云联网
359
+ # @type NetworkType: String
360
+ # @param NetworkRegion: 网络地域
361
+ # @type NetworkRegion: String
362
+ # @param VpcId: 私有网络统一 ID 或者黑石网络统一 ID
363
+ # @type VpcId: String
364
+ # @param DirectConnectGatewayId: 专线网关 ID,例如 dcg-d545ddf
365
+ # @type DirectConnectGatewayId: String
366
+ # @param Bandwidth: 专线带宽,单位:Mbps
367
+ # 默认是物理专线带宽值
368
+ # @type Bandwidth: Integer
369
+ # @param RouteType: BGP :BGP路由
370
+ # STATIC:静态
371
+ # 默认为 BGP 路由
372
+ # @type RouteType: String
373
+ # @param BgpPeer: BgpPeer,用户侧bgp信息,包括Asn和AuthKey
374
+ # @type BgpPeer: :class:`Tencentcloud::Dc.v20180410.models.BgpPeer`
375
+ # @param RouteFilterPrefixes: 静态路由,用户IDC的网段地址
376
+ # @type RouteFilterPrefixes: Array
377
+ # @param Vlan: vlan,范围:0 ~ 3000
378
+ # 0:不开启子接口
379
+ # 默认值是非0
380
+ # @type Vlan: Integer
381
+ # @param TencentAddress: TencentAddress,腾讯侧互联 IP
382
+ # @type TencentAddress: String
383
+ # @param CustomerAddress: CustomerAddress,用户侧互联 IP
384
+ # @type CustomerAddress: String
385
+ # @param TencentBackupAddress: TencentBackupAddress,腾讯侧备用互联 IP
386
+ # @type TencentBackupAddress: String
387
+ # @param CloudAttachId: 高速上云服务ID
388
+ # @type CloudAttachId: String
389
+
390
+ attr_accessor :DirectConnectId, :DirectConnectTunnelName, :DirectConnectOwnerAccount, :NetworkType, :NetworkRegion, :VpcId, :DirectConnectGatewayId, :Bandwidth, :RouteType, :BgpPeer, :RouteFilterPrefixes, :Vlan, :TencentAddress, :CustomerAddress, :TencentBackupAddress, :CloudAttachId
391
+
392
+ def initialize(directconnectid=nil, directconnecttunnelname=nil, directconnectowneraccount=nil, networktype=nil, networkregion=nil, vpcid=nil, directconnectgatewayid=nil, bandwidth=nil, routetype=nil, bgppeer=nil, routefilterprefixes=nil, vlan=nil, tencentaddress=nil, customeraddress=nil, tencentbackupaddress=nil, cloudattachid=nil)
393
+ @DirectConnectId = directconnectid
394
+ @DirectConnectTunnelName = directconnecttunnelname
395
+ @DirectConnectOwnerAccount = directconnectowneraccount
396
+ @NetworkType = networktype
397
+ @NetworkRegion = networkregion
398
+ @VpcId = vpcid
399
+ @DirectConnectGatewayId = directconnectgatewayid
400
+ @Bandwidth = bandwidth
401
+ @RouteType = routetype
402
+ @BgpPeer = bgppeer
403
+ @RouteFilterPrefixes = routefilterprefixes
404
+ @Vlan = vlan
405
+ @TencentAddress = tencentaddress
406
+ @CustomerAddress = customeraddress
407
+ @TencentBackupAddress = tencentbackupaddress
408
+ @CloudAttachId = cloudattachid
409
+ end
410
+
411
+ def deserialize(params)
412
+ @DirectConnectId = params['DirectConnectId']
413
+ @DirectConnectTunnelName = params['DirectConnectTunnelName']
414
+ @DirectConnectOwnerAccount = params['DirectConnectOwnerAccount']
415
+ @NetworkType = params['NetworkType']
416
+ @NetworkRegion = params['NetworkRegion']
417
+ @VpcId = params['VpcId']
418
+ @DirectConnectGatewayId = params['DirectConnectGatewayId']
419
+ @Bandwidth = params['Bandwidth']
420
+ @RouteType = params['RouteType']
421
+ unless params['BgpPeer'].nil?
422
+ @BgpPeer = BgpPeer.new
423
+ @BgpPeer.deserialize(params['BgpPeer'])
424
+ end
425
+ unless params['RouteFilterPrefixes'].nil?
426
+ @RouteFilterPrefixes = []
427
+ params['RouteFilterPrefixes'].each do |i|
428
+ routefilterprefix_tmp = RouteFilterPrefix.new
429
+ routefilterprefix_tmp.deserialize(i)
430
+ @RouteFilterPrefixes << routefilterprefix_tmp
431
+ end
432
+ end
433
+ @Vlan = params['Vlan']
434
+ @TencentAddress = params['TencentAddress']
435
+ @CustomerAddress = params['CustomerAddress']
436
+ @TencentBackupAddress = params['TencentBackupAddress']
437
+ @CloudAttachId = params['CloudAttachId']
438
+ end
439
+ end
440
+
441
+ # CreateDirectConnectTunnel返回参数结构体
442
+ class CreateDirectConnectTunnelResponse < TencentCloud::Common::AbstractModel
443
+ # @param DirectConnectTunnelIdSet: 专用通道ID
444
+ # @type DirectConnectTunnelIdSet: Array
445
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
446
+ # @type RequestId: String
447
+
448
+ attr_accessor :DirectConnectTunnelIdSet, :RequestId
449
+
450
+ def initialize(directconnecttunnelidset=nil, requestid=nil)
451
+ @DirectConnectTunnelIdSet = directconnecttunnelidset
452
+ @RequestId = requestid
453
+ end
454
+
455
+ def deserialize(params)
456
+ @DirectConnectTunnelIdSet = params['DirectConnectTunnelIdSet']
457
+ @RequestId = params['RequestId']
458
+ end
459
+ end
460
+
461
+ # DeleteDirectConnect请求参数结构体
462
+ class DeleteDirectConnectRequest < TencentCloud::Common::AbstractModel
463
+ # @param DirectConnectId: 物理专线的ID。
464
+ # @type DirectConnectId: String
465
+
466
+ attr_accessor :DirectConnectId
467
+
468
+ def initialize(directconnectid=nil)
469
+ @DirectConnectId = directconnectid
470
+ end
471
+
472
+ def deserialize(params)
473
+ @DirectConnectId = params['DirectConnectId']
474
+ end
475
+ end
476
+
477
+ # DeleteDirectConnect返回参数结构体
478
+ class DeleteDirectConnectResponse < TencentCloud::Common::AbstractModel
479
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
480
+ # @type RequestId: String
481
+
482
+ attr_accessor :RequestId
483
+
484
+ def initialize(requestid=nil)
485
+ @RequestId = requestid
486
+ end
487
+
488
+ def deserialize(params)
489
+ @RequestId = params['RequestId']
490
+ end
491
+ end
492
+
493
+ # DeleteDirectConnectTunnel请求参数结构体
494
+ class DeleteDirectConnectTunnelRequest < TencentCloud::Common::AbstractModel
495
+ # @param DirectConnectTunnelId: 专用通道ID
496
+ # @type DirectConnectTunnelId: String
497
+
498
+ attr_accessor :DirectConnectTunnelId
499
+
500
+ def initialize(directconnecttunnelid=nil)
501
+ @DirectConnectTunnelId = directconnecttunnelid
502
+ end
503
+
504
+ def deserialize(params)
505
+ @DirectConnectTunnelId = params['DirectConnectTunnelId']
506
+ end
507
+ end
508
+
509
+ # DeleteDirectConnectTunnel返回参数结构体
510
+ class DeleteDirectConnectTunnelResponse < TencentCloud::Common::AbstractModel
511
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
512
+ # @type RequestId: String
513
+
514
+ attr_accessor :RequestId
515
+
516
+ def initialize(requestid=nil)
517
+ @RequestId = requestid
518
+ end
519
+
520
+ def deserialize(params)
521
+ @RequestId = params['RequestId']
522
+ end
523
+ end
524
+
525
+ # DescribeAccessPoints请求参数结构体
526
+ class DescribeAccessPointsRequest < TencentCloud::Common::AbstractModel
527
+ # @param RegionId: 接入点所在的地域。使用DescribeRegions查询
528
+
529
+ # 您可以通过调用 DescribeRegions接口获取地域ID。
530
+ # @type RegionId: String
531
+ # @param Offset: 偏移量,默认为0。
532
+ # @type Offset: Integer
533
+ # @param Limit: 返回数量,默认为20,最大值为100。
534
+ # @type Limit: Integer
535
+
536
+ attr_accessor :RegionId, :Offset, :Limit
537
+
538
+ def initialize(regionid=nil, offset=nil, limit=nil)
539
+ @RegionId = regionid
540
+ @Offset = offset
541
+ @Limit = limit
542
+ end
543
+
544
+ def deserialize(params)
545
+ @RegionId = params['RegionId']
546
+ @Offset = params['Offset']
547
+ @Limit = params['Limit']
548
+ end
549
+ end
550
+
551
+ # DescribeAccessPoints返回参数结构体
552
+ class DescribeAccessPointsResponse < TencentCloud::Common::AbstractModel
553
+ # @param AccessPointSet: 接入点信息。
554
+ # @type AccessPointSet: Array
555
+ # @param TotalCount: 符合接入点数量。
556
+ # @type TotalCount: Integer
557
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
558
+ # @type RequestId: String
559
+
560
+ attr_accessor :AccessPointSet, :TotalCount, :RequestId
561
+
562
+ def initialize(accesspointset=nil, totalcount=nil, requestid=nil)
563
+ @AccessPointSet = accesspointset
564
+ @TotalCount = totalcount
565
+ @RequestId = requestid
566
+ end
567
+
568
+ def deserialize(params)
569
+ unless params['AccessPointSet'].nil?
570
+ @AccessPointSet = []
571
+ params['AccessPointSet'].each do |i|
572
+ accesspoint_tmp = AccessPoint.new
573
+ accesspoint_tmp.deserialize(i)
574
+ @AccessPointSet << accesspoint_tmp
575
+ end
576
+ end
577
+ @TotalCount = params['TotalCount']
578
+ @RequestId = params['RequestId']
579
+ end
580
+ end
581
+
582
+ # DescribeDirectConnectTunnelExtra请求参数结构体
583
+ class DescribeDirectConnectTunnelExtraRequest < TencentCloud::Common::AbstractModel
584
+ # @param DirectConnectTunnelId: 专用通道ID
585
+ # @type DirectConnectTunnelId: String
586
+
587
+ attr_accessor :DirectConnectTunnelId
588
+
589
+ def initialize(directconnecttunnelid=nil)
590
+ @DirectConnectTunnelId = directconnecttunnelid
591
+ end
592
+
593
+ def deserialize(params)
594
+ @DirectConnectTunnelId = params['DirectConnectTunnelId']
595
+ end
596
+ end
597
+
598
+ # DescribeDirectConnectTunnelExtra返回参数结构体
599
+ class DescribeDirectConnectTunnelExtraResponse < TencentCloud::Common::AbstractModel
600
+ # @param DirectConnectTunnelExtra: 专用通道扩展信息
601
+ # @type DirectConnectTunnelExtra: :class:`Tencentcloud::Dc.v20180410.models.DirectConnectTunnelExtra`
602
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
603
+ # @type RequestId: String
604
+
605
+ attr_accessor :DirectConnectTunnelExtra, :RequestId
606
+
607
+ def initialize(directconnecttunnelextra=nil, requestid=nil)
608
+ @DirectConnectTunnelExtra = directconnecttunnelextra
609
+ @RequestId = requestid
610
+ end
611
+
612
+ def deserialize(params)
613
+ unless params['DirectConnectTunnelExtra'].nil?
614
+ @DirectConnectTunnelExtra = DirectConnectTunnelExtra.new
615
+ @DirectConnectTunnelExtra.deserialize(params['DirectConnectTunnelExtra'])
616
+ end
617
+ @RequestId = params['RequestId']
618
+ end
619
+ end
620
+
621
+ # DescribeDirectConnectTunnels请求参数结构体
622
+ class DescribeDirectConnectTunnelsRequest < TencentCloud::Common::AbstractModel
623
+ # @param Filters: 过滤条件:
624
+ # 参数不支持同时指定DirectConnectTunnelIds和Filters。
625
+ # <li> direct-connect-tunnel-name, 专用通道名称。</li>
626
+ # <li> direct-connect-tunnel-id, 专用通道实例ID,如dcx-abcdefgh。</li>
627
+ # <li>direct-connect-id, 物理专线实例ID,如,dc-abcdefgh。</li>
628
+ # @type Filters: Array
629
+ # @param DirectConnectTunnelIds: 专用通道 ID数组
630
+ # @type DirectConnectTunnelIds: Array
631
+ # @param Offset: 偏移量,默认为0
632
+ # @type Offset: Integer
633
+ # @param Limit: 返回数量,默认为20,最大值为100
634
+ # @type Limit: Integer
635
+
636
+ attr_accessor :Filters, :DirectConnectTunnelIds, :Offset, :Limit
637
+
638
+ def initialize(filters=nil, directconnecttunnelids=nil, offset=nil, limit=nil)
639
+ @Filters = filters
640
+ @DirectConnectTunnelIds = directconnecttunnelids
641
+ @Offset = offset
642
+ @Limit = limit
643
+ end
644
+
645
+ def deserialize(params)
646
+ unless params['Filters'].nil?
647
+ @Filters = []
648
+ params['Filters'].each do |i|
649
+ filter_tmp = Filter.new
650
+ filter_tmp.deserialize(i)
651
+ @Filters << filter_tmp
652
+ end
653
+ end
654
+ @DirectConnectTunnelIds = params['DirectConnectTunnelIds']
655
+ @Offset = params['Offset']
656
+ @Limit = params['Limit']
657
+ end
658
+ end
659
+
660
+ # DescribeDirectConnectTunnels返回参数结构体
661
+ class DescribeDirectConnectTunnelsResponse < TencentCloud::Common::AbstractModel
662
+ # @param DirectConnectTunnelSet: 专用通道列表
663
+ # @type DirectConnectTunnelSet: Array
664
+ # @param TotalCount: 符合专用通道数量。
665
+ # @type TotalCount: Integer
666
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
667
+ # @type RequestId: String
668
+
669
+ attr_accessor :DirectConnectTunnelSet, :TotalCount, :RequestId
670
+
671
+ def initialize(directconnecttunnelset=nil, totalcount=nil, requestid=nil)
672
+ @DirectConnectTunnelSet = directconnecttunnelset
673
+ @TotalCount = totalcount
674
+ @RequestId = requestid
675
+ end
676
+
677
+ def deserialize(params)
678
+ unless params['DirectConnectTunnelSet'].nil?
679
+ @DirectConnectTunnelSet = []
680
+ params['DirectConnectTunnelSet'].each do |i|
681
+ directconnecttunnel_tmp = DirectConnectTunnel.new
682
+ directconnecttunnel_tmp.deserialize(i)
683
+ @DirectConnectTunnelSet << directconnecttunnel_tmp
684
+ end
685
+ end
686
+ @TotalCount = params['TotalCount']
687
+ @RequestId = params['RequestId']
688
+ end
689
+ end
690
+
691
+ # DescribeDirectConnects请求参数结构体
692
+ class DescribeDirectConnectsRequest < TencentCloud::Common::AbstractModel
693
+ # @param Filters: 过滤条件:
694
+ # @type Filters: Array
695
+ # @param DirectConnectIds: 物理专线 ID数组
696
+ # @type DirectConnectIds: Array
697
+ # @param Offset: 偏移量,默认为0
698
+ # @type Offset: Integer
699
+ # @param Limit: 返回数量,默认为20,最大值为100
700
+ # @type Limit: Integer
701
+
702
+ attr_accessor :Filters, :DirectConnectIds, :Offset, :Limit
703
+
704
+ def initialize(filters=nil, directconnectids=nil, offset=nil, limit=nil)
705
+ @Filters = filters
706
+ @DirectConnectIds = directconnectids
707
+ @Offset = offset
708
+ @Limit = limit
709
+ end
710
+
711
+ def deserialize(params)
712
+ unless params['Filters'].nil?
713
+ @Filters = []
714
+ params['Filters'].each do |i|
715
+ filter_tmp = Filter.new
716
+ filter_tmp.deserialize(i)
717
+ @Filters << filter_tmp
718
+ end
719
+ end
720
+ @DirectConnectIds = params['DirectConnectIds']
721
+ @Offset = params['Offset']
722
+ @Limit = params['Limit']
723
+ end
724
+ end
725
+
726
+ # DescribeDirectConnects返回参数结构体
727
+ class DescribeDirectConnectsResponse < TencentCloud::Common::AbstractModel
728
+ # @param DirectConnectSet: 物理专线列表。
729
+ # @type DirectConnectSet: Array
730
+ # @param TotalCount: 符合物理专线列表数量。
731
+ # @type TotalCount: Integer
732
+ # @param AllSignLaw: 用户名下物理专线是否都签署了用户协议
733
+ # 注意:此字段可能返回 null,表示取不到有效值。
734
+ # @type AllSignLaw: Boolean
735
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
736
+ # @type RequestId: String
737
+
738
+ attr_accessor :DirectConnectSet, :TotalCount, :AllSignLaw, :RequestId
739
+
740
+ def initialize(directconnectset=nil, totalcount=nil, allsignlaw=nil, requestid=nil)
741
+ @DirectConnectSet = directconnectset
742
+ @TotalCount = totalcount
743
+ @AllSignLaw = allsignlaw
744
+ @RequestId = requestid
745
+ end
746
+
747
+ def deserialize(params)
748
+ unless params['DirectConnectSet'].nil?
749
+ @DirectConnectSet = []
750
+ params['DirectConnectSet'].each do |i|
751
+ directconnect_tmp = DirectConnect.new
752
+ directconnect_tmp.deserialize(i)
753
+ @DirectConnectSet << directconnect_tmp
754
+ end
755
+ end
756
+ @TotalCount = params['TotalCount']
757
+ @AllSignLaw = params['AllSignLaw']
758
+ @RequestId = params['RequestId']
759
+ end
760
+ end
761
+
762
+ # DescribeInternetAddressQuota请求参数结构体
763
+ class DescribeInternetAddressQuotaRequest < TencentCloud::Common::AbstractModel
764
+
765
+
766
+ def initialize()
767
+ end
768
+
769
+ def deserialize(params)
770
+ end
771
+ end
772
+
773
+ # DescribeInternetAddressQuota返回参数结构体
774
+ class DescribeInternetAddressQuotaResponse < TencentCloud::Common::AbstractModel
775
+ # @param Ipv6PrefixLen: IPv6互联网公网允许的最小前缀长度
776
+ # 注意:此字段可能返回 null,表示取不到有效值。
777
+ # @type Ipv6PrefixLen: Integer
778
+ # @param Ipv4BgpQuota: BGP类型IPv4互联网地址配额
779
+ # 注意:此字段可能返回 null,表示取不到有效值。
780
+ # @type Ipv4BgpQuota: Integer
781
+ # @param Ipv4OtherQuota: 非BGP类型IPv4互联网地址配额
782
+ # 注意:此字段可能返回 null,表示取不到有效值。
783
+ # @type Ipv4OtherQuota: Integer
784
+ # @param Ipv4BgpNum: BGP类型IPv4互联网地址已使用数量
785
+ # 注意:此字段可能返回 null,表示取不到有效值。
786
+ # @type Ipv4BgpNum: Integer
787
+ # @param Ipv4OtherNum: 非BGP类型互联网地址已使用数量
788
+ # 注意:此字段可能返回 null,表示取不到有效值。
789
+ # @type Ipv4OtherNum: Integer
790
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
791
+ # @type RequestId: String
792
+
793
+ attr_accessor :Ipv6PrefixLen, :Ipv4BgpQuota, :Ipv4OtherQuota, :Ipv4BgpNum, :Ipv4OtherNum, :RequestId
794
+
795
+ def initialize(ipv6prefixlen=nil, ipv4bgpquota=nil, ipv4otherquota=nil, ipv4bgpnum=nil, ipv4othernum=nil, requestid=nil)
796
+ @Ipv6PrefixLen = ipv6prefixlen
797
+ @Ipv4BgpQuota = ipv4bgpquota
798
+ @Ipv4OtherQuota = ipv4otherquota
799
+ @Ipv4BgpNum = ipv4bgpnum
800
+ @Ipv4OtherNum = ipv4othernum
801
+ @RequestId = requestid
802
+ end
803
+
804
+ def deserialize(params)
805
+ @Ipv6PrefixLen = params['Ipv6PrefixLen']
806
+ @Ipv4BgpQuota = params['Ipv4BgpQuota']
807
+ @Ipv4OtherQuota = params['Ipv4OtherQuota']
808
+ @Ipv4BgpNum = params['Ipv4BgpNum']
809
+ @Ipv4OtherNum = params['Ipv4OtherNum']
810
+ @RequestId = params['RequestId']
811
+ end
812
+ end
813
+
814
+ # DescribeInternetAddress请求参数结构体
815
+ class DescribeInternetAddressRequest < TencentCloud::Common::AbstractModel
816
+ # @param Offset: 偏移量,默认为0
817
+ # @type Offset: Integer
818
+ # @param Limit: 返回数量,默认为20,最大值100
819
+ # @type Limit: Integer
820
+ # @param Filters: 过滤条件:
821
+ # <li>AddrType, 地址类型。0:BGP 1; 1: 电信, 2:移动, 3:联通</li>
822
+ # <li>AddrProto地址类型。0:IPv4 1:IPv6</li>
823
+ # <li>Status 地址状态。 0:使用中, 1:已停用, 2:已退还</li>
824
+ # <li>Subnet 互联网公网地址,数组</li>
825
+ # <InstanceIds>互联网公网地址ID,数组</li>
826
+ # @type Filters: Array
827
+
828
+ attr_accessor :Offset, :Limit, :Filters
829
+
830
+ def initialize(offset=nil, limit=nil, filters=nil)
831
+ @Offset = offset
832
+ @Limit = limit
833
+ @Filters = filters
834
+ end
835
+
836
+ def deserialize(params)
837
+ @Offset = params['Offset']
838
+ @Limit = params['Limit']
839
+ unless params['Filters'].nil?
840
+ @Filters = []
841
+ params['Filters'].each do |i|
842
+ filter_tmp = Filter.new
843
+ filter_tmp.deserialize(i)
844
+ @Filters << filter_tmp
845
+ end
846
+ end
847
+ end
848
+ end
849
+
850
+ # DescribeInternetAddress返回参数结构体
851
+ class DescribeInternetAddressResponse < TencentCloud::Common::AbstractModel
852
+ # @param TotalCount: 互联网公网地址数量
853
+ # @type TotalCount: Integer
854
+ # @param Subnets: 互联网公网地址列表
855
+ # 注意:此字段可能返回 null,表示取不到有效值。
856
+ # @type Subnets: Array
857
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
858
+ # @type RequestId: String
859
+
860
+ attr_accessor :TotalCount, :Subnets, :RequestId
861
+
862
+ def initialize(totalcount=nil, subnets=nil, requestid=nil)
863
+ @TotalCount = totalcount
864
+ @Subnets = subnets
865
+ @RequestId = requestid
866
+ end
867
+
868
+ def deserialize(params)
869
+ @TotalCount = params['TotalCount']
870
+ unless params['Subnets'].nil?
871
+ @Subnets = []
872
+ params['Subnets'].each do |i|
873
+ internetaddressdetail_tmp = InternetAddressDetail.new
874
+ internetaddressdetail_tmp.deserialize(i)
875
+ @Subnets << internetaddressdetail_tmp
876
+ end
877
+ end
878
+ @RequestId = params['RequestId']
879
+ end
880
+ end
881
+
882
+ # DescribeInternetAddressStatistics请求参数结构体
883
+ class DescribeInternetAddressStatisticsRequest < TencentCloud::Common::AbstractModel
884
+
885
+
886
+ def initialize()
887
+ end
888
+
889
+ def deserialize(params)
890
+ end
891
+ end
892
+
893
+ # DescribeInternetAddressStatistics返回参数结构体
894
+ class DescribeInternetAddressStatisticsResponse < TencentCloud::Common::AbstractModel
895
+ # @param TotalCount: 互联网公网地址统计信息数量
896
+ # @type TotalCount: Integer
897
+ # @param InternetAddressStatistics: 互联网公网地址统计信息列表
898
+ # 注意:此字段可能返回 null,表示取不到有效值。
899
+ # @type InternetAddressStatistics: Array
900
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
901
+ # @type RequestId: String
902
+
903
+ attr_accessor :TotalCount, :InternetAddressStatistics, :RequestId
904
+
905
+ def initialize(totalcount=nil, internetaddressstatistics=nil, requestid=nil)
906
+ @TotalCount = totalcount
907
+ @InternetAddressStatistics = internetaddressstatistics
908
+ @RequestId = requestid
909
+ end
910
+
911
+ def deserialize(params)
912
+ @TotalCount = params['TotalCount']
913
+ unless params['InternetAddressStatistics'].nil?
914
+ @InternetAddressStatistics = []
915
+ params['InternetAddressStatistics'].each do |i|
916
+ internetaddressstatistics_tmp = InternetAddressStatistics.new
917
+ internetaddressstatistics_tmp.deserialize(i)
918
+ @InternetAddressStatistics << internetaddressstatistics_tmp
919
+ end
920
+ end
921
+ @RequestId = params['RequestId']
922
+ end
923
+ end
924
+
925
+ # DescribePublicDirectConnectTunnelRoutes请求参数结构体
926
+ class DescribePublicDirectConnectTunnelRoutesRequest < TencentCloud::Common::AbstractModel
927
+ # @param DirectConnectTunnelId: 专用通道ID
928
+ # @type DirectConnectTunnelId: String
929
+ # @param Filters: 过滤条件:
930
+ # route-type:路由类型,取值:BGP/STATIC
931
+ # route-subnet:路由cidr,取值如:192.68.1.0/24
932
+ # @type Filters: Array
933
+ # @param Offset: 偏移量,默认为0
934
+ # @type Offset: Integer
935
+ # @param Limit: 返回数量,默认为20,最大值为100
936
+ # @type Limit: Integer
937
+
938
+ attr_accessor :DirectConnectTunnelId, :Filters, :Offset, :Limit
939
+
940
+ def initialize(directconnecttunnelid=nil, filters=nil, offset=nil, limit=nil)
941
+ @DirectConnectTunnelId = directconnecttunnelid
942
+ @Filters = filters
943
+ @Offset = offset
944
+ @Limit = limit
945
+ end
946
+
947
+ def deserialize(params)
948
+ @DirectConnectTunnelId = params['DirectConnectTunnelId']
949
+ unless params['Filters'].nil?
950
+ @Filters = []
951
+ params['Filters'].each do |i|
952
+ filter_tmp = Filter.new
953
+ filter_tmp.deserialize(i)
954
+ @Filters << filter_tmp
955
+ end
956
+ end
957
+ @Offset = params['Offset']
958
+ @Limit = params['Limit']
959
+ end
960
+ end
961
+
962
+ # DescribePublicDirectConnectTunnelRoutes返回参数结构体
963
+ class DescribePublicDirectConnectTunnelRoutesResponse < TencentCloud::Common::AbstractModel
964
+ # @param Routes: 互联网通道路由列表
965
+ # @type Routes: Array
966
+ # @param TotalCount: 记录总数
967
+ # @type TotalCount: Integer
968
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
969
+ # @type RequestId: String
970
+
971
+ attr_accessor :Routes, :TotalCount, :RequestId
972
+
973
+ def initialize(routes=nil, totalcount=nil, requestid=nil)
974
+ @Routes = routes
975
+ @TotalCount = totalcount
976
+ @RequestId = requestid
977
+ end
978
+
979
+ def deserialize(params)
980
+ unless params['Routes'].nil?
981
+ @Routes = []
982
+ params['Routes'].each do |i|
983
+ directconnecttunnelroute_tmp = DirectConnectTunnelRoute.new
984
+ directconnecttunnelroute_tmp.deserialize(i)
985
+ @Routes << directconnecttunnelroute_tmp
986
+ end
987
+ end
988
+ @TotalCount = params['TotalCount']
989
+ @RequestId = params['RequestId']
990
+ end
991
+ end
992
+
993
+ # 物理专线信息列表
994
+ class DirectConnect < TencentCloud::Common::AbstractModel
995
+ # @param DirectConnectId: 物理专线ID。
996
+ # @type DirectConnectId: String
997
+ # @param DirectConnectName: 物理专线的名称。
998
+ # @type DirectConnectName: String
999
+ # @param AccessPointId: 物理专线的接入点ID。
1000
+ # @type AccessPointId: String
1001
+ # @param State: 物理专线的状态。
1002
+ # 申请中:PENDING
1003
+ # 申请驳回:REJECTED
1004
+ # 待付款:TOPAY
1005
+ # 已付款:PAID
1006
+ # 建设中:ALLOCATED
1007
+ # 已开通:AVAILABLE
1008
+ # 删除中 :DELETING
1009
+ # 已删除:DELETED 。
1010
+ # @type State: String
1011
+ # @param CreatedTime: 物理专线创建时间。
1012
+ # @type CreatedTime: String
1013
+ # @param EnabledTime: 物理专线的开通时间。
1014
+ # @type EnabledTime: String
1015
+ # @param LineOperator: 提供接入物理专线的运营商。ChinaTelecom:中国电信, ChinaMobile:中国移动,ChinaUnicom:中国联通, In-houseWiring:楼内线,ChinaOther:中国其他, InternationalOperator:境外其他。
1016
+ # @type LineOperator: String
1017
+ # @param Location: 本地数据中心的地理位置。
1018
+ # @type Location: String
1019
+ # @param Bandwidth: 物理专线接入接口带宽,单位为Mbps。
1020
+ # @type Bandwidth: Integer
1021
+ # @param PortType: 用户侧物理专线接入端口类型,取值:100Base-T:百兆电口,1000Base-T(默认值):千兆电口,1000Base-LX:千兆单模光口(10千米),10GBase-T:万兆电口10GBase-LR:万兆单模光口(10千米),默认值,千兆单模光口(10千米)
1022
+ # @type PortType: String
1023
+ # @param CircuitCode: 运营商或者服务商为物理专线提供的电路编码。
1024
+ # 注意:此字段可能返回 null,表示取不到有效值。
1025
+ # @type CircuitCode: String
1026
+ # @param RedundantDirectConnectId: 冗余物理专线的ID。
1027
+ # @type RedundantDirectConnectId: String
1028
+ # @param Vlan: 物理专线调试VLAN。默认开启VLAN,自动分配VLAN。
1029
+ # 注意:此字段可能返回 null,表示取不到有效值。
1030
+ # @type Vlan: Integer
1031
+ # @param TencentAddress: 物理专线调试腾讯侧互联IP。
1032
+ # 注意:此字段可能返回 null,表示取不到有效值。
1033
+ # @type TencentAddress: String
1034
+ # @param CustomerAddress: 物理专线调试用户侧互联IP。
1035
+ # 注意:此字段可能返回 null,表示取不到有效值。
1036
+ # @type CustomerAddress: String
1037
+ # @param CustomerName: 物理专线申请者姓名。默认从账户体系获取。
1038
+ # 注意:此字段可能返回 null,表示取不到有效值。
1039
+ # @type CustomerName: String
1040
+ # @param CustomerContactMail: 物理专线申请者联系邮箱。默认从账户体系获取。
1041
+ # 注意:此字段可能返回 null,表示取不到有效值。
1042
+ # @type CustomerContactMail: String
1043
+ # @param CustomerContactNumber: 物理专线申请者联系号码。默认从账户体系获取。
1044
+ # 注意:此字段可能返回 null,表示取不到有效值。
1045
+ # @type CustomerContactNumber: String
1046
+ # @param ExpiredTime: 物理专线的过期时间。
1047
+ # 注意:此字段可能返回 null,表示取不到有效值。
1048
+ # @type ExpiredTime: String
1049
+ # @param ChargeType: 物理专线计费类型。 NON_RECURRING_CHARGE:一次性接入费用;PREPAID_BY_YEAR:按年预付费。
1050
+ # 注意:此字段可能返回 null,表示取不到有效值。
1051
+ # @type ChargeType: String
1052
+ # @param FaultReportContactPerson: 报障联系人。
1053
+ # 注意:此字段可能返回 null,表示取不到有效值。
1054
+ # @type FaultReportContactPerson: String
1055
+ # @param FaultReportContactNumber: 报障联系电话。
1056
+ # 注意:此字段可能返回 null,表示取不到有效值。
1057
+ # @type FaultReportContactNumber: String
1058
+ # @param TagSet: 标签键值对
1059
+ # 注意:此字段可能返回 null,表示取不到有效值。
1060
+ # @type TagSet: Array
1061
+ # @param AccessPointType: 物理专线的接入点类型。
1062
+ # @type AccessPointType: String
1063
+ # @param IdcCity: IDC所在城市
1064
+ # 注意:此字段可能返回 null,表示取不到有效值。
1065
+ # @type IdcCity: String
1066
+ # @param ChargeState: 计费状态
1067
+ # 注意:此字段可能返回 null,表示取不到有效值。
1068
+ # @type ChargeState: String
1069
+ # @param StartTime: 物理专线开通时间
1070
+ # 注意:此字段可能返回 null,表示取不到有效值。
1071
+ # @type StartTime: String
1072
+ # @param SignLaw: 物理专线是否已签署用户协议
1073
+ # 注意:此字段可能返回 null,表示取不到有效值。
1074
+ # @type SignLaw: Boolean
1075
+ # @param LocalZone: 物理专线是否为LocalZone
1076
+ # 注意:此字段可能返回 null,表示取不到有效值。
1077
+ # @type LocalZone: Boolean
1078
+ # @param VlanZeroDirectConnectTunnelCount: 该物理专线下vlan 0的专用通道数量
1079
+ # 注意:此字段可能返回 null,表示取不到有效值。
1080
+ # @type VlanZeroDirectConnectTunnelCount: Integer
1081
+ # @param OtherVlanDirectConnectTunnelCount: 该物理专线下非vlan 0的专用通道数量
1082
+ # 注意:此字段可能返回 null,表示取不到有效值。
1083
+ # @type OtherVlanDirectConnectTunnelCount: Integer
1084
+ # @param MinBandwidth: 物理专线最小带宽
1085
+ # 注意:此字段可能返回 null,表示取不到有效值。
1086
+ # @type MinBandwidth: Integer
1087
+
1088
+ attr_accessor :DirectConnectId, :DirectConnectName, :AccessPointId, :State, :CreatedTime, :EnabledTime, :LineOperator, :Location, :Bandwidth, :PortType, :CircuitCode, :RedundantDirectConnectId, :Vlan, :TencentAddress, :CustomerAddress, :CustomerName, :CustomerContactMail, :CustomerContactNumber, :ExpiredTime, :ChargeType, :FaultReportContactPerson, :FaultReportContactNumber, :TagSet, :AccessPointType, :IdcCity, :ChargeState, :StartTime, :SignLaw, :LocalZone, :VlanZeroDirectConnectTunnelCount, :OtherVlanDirectConnectTunnelCount, :MinBandwidth
1089
+
1090
+ def initialize(directconnectid=nil, directconnectname=nil, accesspointid=nil, state=nil, createdtime=nil, enabledtime=nil, lineoperator=nil, location=nil, bandwidth=nil, porttype=nil, circuitcode=nil, redundantdirectconnectid=nil, vlan=nil, tencentaddress=nil, customeraddress=nil, customername=nil, customercontactmail=nil, customercontactnumber=nil, expiredtime=nil, chargetype=nil, faultreportcontactperson=nil, faultreportcontactnumber=nil, tagset=nil, accesspointtype=nil, idccity=nil, chargestate=nil, starttime=nil, signlaw=nil, localzone=nil, vlanzerodirectconnecttunnelcount=nil, othervlandirectconnecttunnelcount=nil, minbandwidth=nil)
1091
+ @DirectConnectId = directconnectid
1092
+ @DirectConnectName = directconnectname
1093
+ @AccessPointId = accesspointid
1094
+ @State = state
1095
+ @CreatedTime = createdtime
1096
+ @EnabledTime = enabledtime
1097
+ @LineOperator = lineoperator
1098
+ @Location = location
1099
+ @Bandwidth = bandwidth
1100
+ @PortType = porttype
1101
+ @CircuitCode = circuitcode
1102
+ @RedundantDirectConnectId = redundantdirectconnectid
1103
+ @Vlan = vlan
1104
+ @TencentAddress = tencentaddress
1105
+ @CustomerAddress = customeraddress
1106
+ @CustomerName = customername
1107
+ @CustomerContactMail = customercontactmail
1108
+ @CustomerContactNumber = customercontactnumber
1109
+ @ExpiredTime = expiredtime
1110
+ @ChargeType = chargetype
1111
+ @FaultReportContactPerson = faultreportcontactperson
1112
+ @FaultReportContactNumber = faultreportcontactnumber
1113
+ @TagSet = tagset
1114
+ @AccessPointType = accesspointtype
1115
+ @IdcCity = idccity
1116
+ @ChargeState = chargestate
1117
+ @StartTime = starttime
1118
+ @SignLaw = signlaw
1119
+ @LocalZone = localzone
1120
+ @VlanZeroDirectConnectTunnelCount = vlanzerodirectconnecttunnelcount
1121
+ @OtherVlanDirectConnectTunnelCount = othervlandirectconnecttunnelcount
1122
+ @MinBandwidth = minbandwidth
1123
+ end
1124
+
1125
+ def deserialize(params)
1126
+ @DirectConnectId = params['DirectConnectId']
1127
+ @DirectConnectName = params['DirectConnectName']
1128
+ @AccessPointId = params['AccessPointId']
1129
+ @State = params['State']
1130
+ @CreatedTime = params['CreatedTime']
1131
+ @EnabledTime = params['EnabledTime']
1132
+ @LineOperator = params['LineOperator']
1133
+ @Location = params['Location']
1134
+ @Bandwidth = params['Bandwidth']
1135
+ @PortType = params['PortType']
1136
+ @CircuitCode = params['CircuitCode']
1137
+ @RedundantDirectConnectId = params['RedundantDirectConnectId']
1138
+ @Vlan = params['Vlan']
1139
+ @TencentAddress = params['TencentAddress']
1140
+ @CustomerAddress = params['CustomerAddress']
1141
+ @CustomerName = params['CustomerName']
1142
+ @CustomerContactMail = params['CustomerContactMail']
1143
+ @CustomerContactNumber = params['CustomerContactNumber']
1144
+ @ExpiredTime = params['ExpiredTime']
1145
+ @ChargeType = params['ChargeType']
1146
+ @FaultReportContactPerson = params['FaultReportContactPerson']
1147
+ @FaultReportContactNumber = params['FaultReportContactNumber']
1148
+ unless params['TagSet'].nil?
1149
+ @TagSet = []
1150
+ params['TagSet'].each do |i|
1151
+ tag_tmp = Tag.new
1152
+ tag_tmp.deserialize(i)
1153
+ @TagSet << tag_tmp
1154
+ end
1155
+ end
1156
+ @AccessPointType = params['AccessPointType']
1157
+ @IdcCity = params['IdcCity']
1158
+ @ChargeState = params['ChargeState']
1159
+ @StartTime = params['StartTime']
1160
+ @SignLaw = params['SignLaw']
1161
+ @LocalZone = params['LocalZone']
1162
+ @VlanZeroDirectConnectTunnelCount = params['VlanZeroDirectConnectTunnelCount']
1163
+ @OtherVlanDirectConnectTunnelCount = params['OtherVlanDirectConnectTunnelCount']
1164
+ @MinBandwidth = params['MinBandwidth']
1165
+ end
1166
+ end
1167
+
1168
+ # 专用通道信息列表
1169
+ class DirectConnectTunnel < TencentCloud::Common::AbstractModel
1170
+ # @param DirectConnectTunnelId: 专用通道ID
1171
+ # @type DirectConnectTunnelId: String
1172
+ # @param DirectConnectId: 物理专线ID
1173
+ # @type DirectConnectId: String
1174
+ # @param State: 专用通道状态
1175
+ # AVAILABLE:就绪或者已连接
1176
+ # PENDING:申请中
1177
+ # ALLOCATING:配置中
1178
+ # ALLOCATED:配置完成
1179
+ # ALTERING:修改中
1180
+ # DELETING:删除中
1181
+ # DELETED:删除完成
1182
+ # COMFIRMING:待接受
1183
+ # REJECTED:拒绝
1184
+ # @type State: String
1185
+ # @param DirectConnectOwnerAccount: 物理专线的拥有者,开发商账号 ID
1186
+ # @type DirectConnectOwnerAccount: String
1187
+ # @param OwnerAccount: 专用通道的拥有者,开发商账号 ID
1188
+ # @type OwnerAccount: String
1189
+ # @param NetworkType: 网络类型,分别为VPC、BMVPC、CCN
1190
+ # VPC:私有网络 ,BMVPC:黑石网络,CCN:云联网
1191
+ # @type NetworkType: String
1192
+ # @param NetworkRegion: VPC地域对应的网络名,如ap-guangzhou
1193
+ # @type NetworkRegion: String
1194
+ # @param VpcId: 私有网络统一 ID 或者黑石网络统一 ID
1195
+ # @type VpcId: String
1196
+ # @param DirectConnectGatewayId: 专线网关 ID
1197
+ # @type DirectConnectGatewayId: String
1198
+ # @param RouteType: BGP :BGP路由 STATIC:静态 默认为 BGP 路由
1199
+ # @type RouteType: String
1200
+ # @param BgpPeer: 用户侧BGP,Asn,AuthKey
1201
+ # @type BgpPeer: :class:`Tencentcloud::Dc.v20180410.models.BgpPeer`
1202
+ # @param RouteFilterPrefixes: 用户侧网段地址
1203
+ # @type RouteFilterPrefixes: Array
1204
+ # @param Vlan: 专用通道的Vlan
1205
+ # @type Vlan: Integer
1206
+ # @param TencentAddress: TencentAddress,腾讯侧互联 IP
1207
+ # @type TencentAddress: String
1208
+ # @param CustomerAddress: CustomerAddress,用户侧互联 IP
1209
+ # @type CustomerAddress: String
1210
+ # @param DirectConnectTunnelName: 专用通道名称
1211
+ # @type DirectConnectTunnelName: String
1212
+ # @param CreatedTime: 专用通道创建时间
1213
+ # @type CreatedTime: String
1214
+ # @param Bandwidth: 专用通道带宽值
1215
+ # @type Bandwidth: Integer
1216
+ # @param TagSet: 专用通道标签值
1217
+ # @type TagSet: Array
1218
+ # @param NetDetectId: 关联的网络自定义探测ID
1219
+ # 注意:此字段可能返回 null,表示取不到有效值。
1220
+ # @type NetDetectId: String
1221
+ # @param EnableBGPCommunity: BGP community开关
1222
+ # 注意:此字段可能返回 null,表示取不到有效值。
1223
+ # @type EnableBGPCommunity: Boolean
1224
+ # @param NatType: 是否为Nat通道
1225
+ # 注意:此字段可能返回 null,表示取不到有效值。
1226
+ # @type NatType: Integer
1227
+ # @param VpcRegion: VPC地域简码,如gz、cd
1228
+ # 注意:此字段可能返回 null,表示取不到有效值。
1229
+ # @type VpcRegion: String
1230
+ # @param BfdEnable: 是否开启BFD
1231
+ # 注意:此字段可能返回 null,表示取不到有效值。
1232
+ # @type BfdEnable: Integer
1233
+ # @param AccessPointType: 专用通道接入点类型
1234
+ # 注意:此字段可能返回 null,表示取不到有效值。
1235
+ # @type AccessPointType: String
1236
+ # @param DirectConnectGatewayName: 专线网关名称
1237
+ # 注意:此字段可能返回 null,表示取不到有效值。
1238
+ # @type DirectConnectGatewayName: String
1239
+ # @param VpcName: VPC名称
1240
+ # 注意:此字段可能返回 null,表示取不到有效值。
1241
+ # @type VpcName: String
1242
+ # @param TencentBackupAddress: TencentBackupAddress,腾讯侧备用互联 IP
1243
+ # 注意:此字段可能返回 null,表示取不到有效值。
1244
+ # @type TencentBackupAddress: String
1245
+ # @param SignLaw: 专用通道关联的物理专线是否签署了用户协议
1246
+ # 注意:此字段可能返回 null,表示取不到有效值。
1247
+ # @type SignLaw: Boolean
1248
+ # @param CloudAttachId: 高速上云服务ID
1249
+ # 注意:此字段可能返回 null,表示取不到有效值。
1250
+ # @type CloudAttachId: String
1251
+
1252
+ attr_accessor :DirectConnectTunnelId, :DirectConnectId, :State, :DirectConnectOwnerAccount, :OwnerAccount, :NetworkType, :NetworkRegion, :VpcId, :DirectConnectGatewayId, :RouteType, :BgpPeer, :RouteFilterPrefixes, :Vlan, :TencentAddress, :CustomerAddress, :DirectConnectTunnelName, :CreatedTime, :Bandwidth, :TagSet, :NetDetectId, :EnableBGPCommunity, :NatType, :VpcRegion, :BfdEnable, :AccessPointType, :DirectConnectGatewayName, :VpcName, :TencentBackupAddress, :SignLaw, :CloudAttachId
1253
+
1254
+ def initialize(directconnecttunnelid=nil, directconnectid=nil, state=nil, directconnectowneraccount=nil, owneraccount=nil, networktype=nil, networkregion=nil, vpcid=nil, directconnectgatewayid=nil, routetype=nil, bgppeer=nil, routefilterprefixes=nil, vlan=nil, tencentaddress=nil, customeraddress=nil, directconnecttunnelname=nil, createdtime=nil, bandwidth=nil, tagset=nil, netdetectid=nil, enablebgpcommunity=nil, nattype=nil, vpcregion=nil, bfdenable=nil, accesspointtype=nil, directconnectgatewayname=nil, vpcname=nil, tencentbackupaddress=nil, signlaw=nil, cloudattachid=nil)
1255
+ @DirectConnectTunnelId = directconnecttunnelid
1256
+ @DirectConnectId = directconnectid
1257
+ @State = state
1258
+ @DirectConnectOwnerAccount = directconnectowneraccount
1259
+ @OwnerAccount = owneraccount
1260
+ @NetworkType = networktype
1261
+ @NetworkRegion = networkregion
1262
+ @VpcId = vpcid
1263
+ @DirectConnectGatewayId = directconnectgatewayid
1264
+ @RouteType = routetype
1265
+ @BgpPeer = bgppeer
1266
+ @RouteFilterPrefixes = routefilterprefixes
1267
+ @Vlan = vlan
1268
+ @TencentAddress = tencentaddress
1269
+ @CustomerAddress = customeraddress
1270
+ @DirectConnectTunnelName = directconnecttunnelname
1271
+ @CreatedTime = createdtime
1272
+ @Bandwidth = bandwidth
1273
+ @TagSet = tagset
1274
+ @NetDetectId = netdetectid
1275
+ @EnableBGPCommunity = enablebgpcommunity
1276
+ @NatType = nattype
1277
+ @VpcRegion = vpcregion
1278
+ @BfdEnable = bfdenable
1279
+ @AccessPointType = accesspointtype
1280
+ @DirectConnectGatewayName = directconnectgatewayname
1281
+ @VpcName = vpcname
1282
+ @TencentBackupAddress = tencentbackupaddress
1283
+ @SignLaw = signlaw
1284
+ @CloudAttachId = cloudattachid
1285
+ end
1286
+
1287
+ def deserialize(params)
1288
+ @DirectConnectTunnelId = params['DirectConnectTunnelId']
1289
+ @DirectConnectId = params['DirectConnectId']
1290
+ @State = params['State']
1291
+ @DirectConnectOwnerAccount = params['DirectConnectOwnerAccount']
1292
+ @OwnerAccount = params['OwnerAccount']
1293
+ @NetworkType = params['NetworkType']
1294
+ @NetworkRegion = params['NetworkRegion']
1295
+ @VpcId = params['VpcId']
1296
+ @DirectConnectGatewayId = params['DirectConnectGatewayId']
1297
+ @RouteType = params['RouteType']
1298
+ unless params['BgpPeer'].nil?
1299
+ @BgpPeer = BgpPeer.new
1300
+ @BgpPeer.deserialize(params['BgpPeer'])
1301
+ end
1302
+ unless params['RouteFilterPrefixes'].nil?
1303
+ @RouteFilterPrefixes = []
1304
+ params['RouteFilterPrefixes'].each do |i|
1305
+ routefilterprefix_tmp = RouteFilterPrefix.new
1306
+ routefilterprefix_tmp.deserialize(i)
1307
+ @RouteFilterPrefixes << routefilterprefix_tmp
1308
+ end
1309
+ end
1310
+ @Vlan = params['Vlan']
1311
+ @TencentAddress = params['TencentAddress']
1312
+ @CustomerAddress = params['CustomerAddress']
1313
+ @DirectConnectTunnelName = params['DirectConnectTunnelName']
1314
+ @CreatedTime = params['CreatedTime']
1315
+ @Bandwidth = params['Bandwidth']
1316
+ unless params['TagSet'].nil?
1317
+ @TagSet = []
1318
+ params['TagSet'].each do |i|
1319
+ tag_tmp = Tag.new
1320
+ tag_tmp.deserialize(i)
1321
+ @TagSet << tag_tmp
1322
+ end
1323
+ end
1324
+ @NetDetectId = params['NetDetectId']
1325
+ @EnableBGPCommunity = params['EnableBGPCommunity']
1326
+ @NatType = params['NatType']
1327
+ @VpcRegion = params['VpcRegion']
1328
+ @BfdEnable = params['BfdEnable']
1329
+ @AccessPointType = params['AccessPointType']
1330
+ @DirectConnectGatewayName = params['DirectConnectGatewayName']
1331
+ @VpcName = params['VpcName']
1332
+ @TencentBackupAddress = params['TencentBackupAddress']
1333
+ @SignLaw = params['SignLaw']
1334
+ @CloudAttachId = params['CloudAttachId']
1335
+ end
1336
+ end
1337
+
1338
+ # 专用通道扩展信息
1339
+ class DirectConnectTunnelExtra < TencentCloud::Common::AbstractModel
1340
+ # @param DirectConnectTunnelId: 专用通道ID
1341
+ # @type DirectConnectTunnelId: String
1342
+ # @param DirectConnectId: 物理专线ID
1343
+ # @type DirectConnectId: String
1344
+ # @param State: 专用通道状态
1345
+ # AVAILABLE:就绪或者已连接
1346
+ # PENDING:申请中
1347
+ # ALLOCATING:配置中
1348
+ # ALLOCATED:配置完成
1349
+ # ALTERING:修改中
1350
+ # DELETING:删除中
1351
+ # DELETED:删除完成
1352
+ # COMFIRMING:待接受
1353
+ # REJECTED:拒绝
1354
+ # @type State: String
1355
+ # @param DirectConnectOwnerAccount: 物理专线的拥有者,开发商账号 ID
1356
+ # @type DirectConnectOwnerAccount: String
1357
+ # @param OwnerAccount: 专用通道的拥有者,开发商账号 ID
1358
+ # @type OwnerAccount: String
1359
+ # @param NetworkType: 网络类型,分别为VPC、BMVPC、CCN
1360
+ # VPC:私有网络 ,BMVPC:黑石网络,CCN:云联网
1361
+ # @type NetworkType: String
1362
+ # @param NetworkRegion: VPC地域对应的网络名,如ap-guangzhou
1363
+ # @type NetworkRegion: String
1364
+ # @param VpcId: 私有网络统一 ID 或者黑石网络统一 ID
1365
+ # @type VpcId: String
1366
+ # @param DirectConnectGatewayId: 专线网关 ID
1367
+ # @type DirectConnectGatewayId: String
1368
+ # @param RouteType: BGP :BGP路由 STATIC:静态 默认为 BGP 路由
1369
+ # @type RouteType: String
1370
+ # @param BgpPeer: 用户侧BGP,Asn,AuthKey
1371
+ # @type BgpPeer: :class:`Tencentcloud::Dc.v20180410.models.BgpPeer`
1372
+ # @param RouteFilterPrefixes: 用户侧网段地址
1373
+ # @type RouteFilterPrefixes: Array
1374
+ # @param PublicAddresses: 互联网通道公网网段地址
1375
+ # @type PublicAddresses: Array
1376
+ # @param Vlan: 专用通道的Vlan
1377
+ # @type Vlan: Integer
1378
+ # @param TencentAddress: 腾讯侧互联 IP
1379
+ # @type TencentAddress: String
1380
+ # @param TencentBackupAddress: 腾讯侧备用互联IP
1381
+ # @type TencentBackupAddress: String
1382
+ # @param CustomerAddress: 用户侧互联 IP
1383
+ # @type CustomerAddress: String
1384
+ # @param DirectConnectTunnelName: 专用通道名称
1385
+ # @type DirectConnectTunnelName: String
1386
+ # @param CreatedTime: 专用通道创建时间
1387
+ # @type CreatedTime: String
1388
+ # @param Bandwidth: 专用通道带宽值
1389
+ # @type Bandwidth: Integer
1390
+ # @param NetDetectId: 关联的网络自定义探测ID
1391
+ # @type NetDetectId: String
1392
+ # @param EnableBGPCommunity: BGP community开关
1393
+ # @type EnableBGPCommunity: Boolean
1394
+ # @param NatType: 是否为Nat通道
1395
+ # @type NatType: Integer
1396
+ # @param VpcRegion: VPC地域简码,如gz、cd
1397
+ # @type VpcRegion: String
1398
+ # @param BfdEnable: 是否开启BFD
1399
+ # @type BfdEnable: Integer
1400
+ # @param NqaEnable: 是否开启NQA
1401
+ # @type NqaEnable: Integer
1402
+ # @param AccessPointType: 专用通道接入点类型
1403
+ # @type AccessPointType: String
1404
+ # @param DirectConnectGatewayName: 专线网关名称
1405
+ # @type DirectConnectGatewayName: String
1406
+ # @param VpcName: VPC名称
1407
+ # @type VpcName: String
1408
+ # @param SignLaw: 专用通道关联的物理专线是否签署了用户协议
1409
+ # @type SignLaw: Boolean
1410
+ # @param BfdInfo: BFD配置信息
1411
+ # @type BfdInfo: :class:`Tencentcloud::Dc.v20180410.models.BFDInfo`
1412
+ # @param NqaInfo: NQA配置信息
1413
+ # @type NqaInfo: :class:`Tencentcloud::Dc.v20180410.models.NQAInfo`
1414
+ # @param BgpStatus: BGP状态
1415
+ # @type BgpStatus: :class:`Tencentcloud::Dc.v20180410.models.BGPStatus`
1416
+ # @param IPv6Enable: 是否开启IPv6
1417
+ # 注意:此字段可能返回 null,表示取不到有效值。
1418
+ # @type IPv6Enable: Integer
1419
+ # @param TencentIPv6Address: 腾讯侧互联IPv6地址
1420
+ # 注意:此字段可能返回 null,表示取不到有效值。
1421
+ # @type TencentIPv6Address: String
1422
+ # @param TencentBackupIPv6Address: 腾讯侧备用互联IPv6地址
1423
+ # 注意:此字段可能返回 null,表示取不到有效值。
1424
+ # @type TencentBackupIPv6Address: String
1425
+ # @param BgpIPv6Status: BGPv6状态
1426
+ # 注意:此字段可能返回 null,表示取不到有效值。
1427
+ # @type BgpIPv6Status: :class:`Tencentcloud::Dc.v20180410.models.BGPStatus`
1428
+ # @param CustomerIPv6Address: 用户侧互联IPv6地址
1429
+ # 注意:此字段可能返回 null,表示取不到有效值。
1430
+ # @type CustomerIPv6Address: String
1431
+ # @param JumboEnable: 专用通道是否支持巨帧。1 支持,0 不支持
1432
+ # 注意:此字段可能返回 null,表示取不到有效值。
1433
+ # @type JumboEnable: Integer
1434
+
1435
+ attr_accessor :DirectConnectTunnelId, :DirectConnectId, :State, :DirectConnectOwnerAccount, :OwnerAccount, :NetworkType, :NetworkRegion, :VpcId, :DirectConnectGatewayId, :RouteType, :BgpPeer, :RouteFilterPrefixes, :PublicAddresses, :Vlan, :TencentAddress, :TencentBackupAddress, :CustomerAddress, :DirectConnectTunnelName, :CreatedTime, :Bandwidth, :NetDetectId, :EnableBGPCommunity, :NatType, :VpcRegion, :BfdEnable, :NqaEnable, :AccessPointType, :DirectConnectGatewayName, :VpcName, :SignLaw, :BfdInfo, :NqaInfo, :BgpStatus, :IPv6Enable, :TencentIPv6Address, :TencentBackupIPv6Address, :BgpIPv6Status, :CustomerIPv6Address, :JumboEnable
1436
+
1437
+ def initialize(directconnecttunnelid=nil, directconnectid=nil, state=nil, directconnectowneraccount=nil, owneraccount=nil, networktype=nil, networkregion=nil, vpcid=nil, directconnectgatewayid=nil, routetype=nil, bgppeer=nil, routefilterprefixes=nil, publicaddresses=nil, vlan=nil, tencentaddress=nil, tencentbackupaddress=nil, customeraddress=nil, directconnecttunnelname=nil, createdtime=nil, bandwidth=nil, netdetectid=nil, enablebgpcommunity=nil, nattype=nil, vpcregion=nil, bfdenable=nil, nqaenable=nil, accesspointtype=nil, directconnectgatewayname=nil, vpcname=nil, signlaw=nil, bfdinfo=nil, nqainfo=nil, bgpstatus=nil, ipv6enable=nil, tencentipv6address=nil, tencentbackupipv6address=nil, bgpipv6status=nil, customeripv6address=nil, jumboenable=nil)
1438
+ @DirectConnectTunnelId = directconnecttunnelid
1439
+ @DirectConnectId = directconnectid
1440
+ @State = state
1441
+ @DirectConnectOwnerAccount = directconnectowneraccount
1442
+ @OwnerAccount = owneraccount
1443
+ @NetworkType = networktype
1444
+ @NetworkRegion = networkregion
1445
+ @VpcId = vpcid
1446
+ @DirectConnectGatewayId = directconnectgatewayid
1447
+ @RouteType = routetype
1448
+ @BgpPeer = bgppeer
1449
+ @RouteFilterPrefixes = routefilterprefixes
1450
+ @PublicAddresses = publicaddresses
1451
+ @Vlan = vlan
1452
+ @TencentAddress = tencentaddress
1453
+ @TencentBackupAddress = tencentbackupaddress
1454
+ @CustomerAddress = customeraddress
1455
+ @DirectConnectTunnelName = directconnecttunnelname
1456
+ @CreatedTime = createdtime
1457
+ @Bandwidth = bandwidth
1458
+ @NetDetectId = netdetectid
1459
+ @EnableBGPCommunity = enablebgpcommunity
1460
+ @NatType = nattype
1461
+ @VpcRegion = vpcregion
1462
+ @BfdEnable = bfdenable
1463
+ @NqaEnable = nqaenable
1464
+ @AccessPointType = accesspointtype
1465
+ @DirectConnectGatewayName = directconnectgatewayname
1466
+ @VpcName = vpcname
1467
+ @SignLaw = signlaw
1468
+ @BfdInfo = bfdinfo
1469
+ @NqaInfo = nqainfo
1470
+ @BgpStatus = bgpstatus
1471
+ @IPv6Enable = ipv6enable
1472
+ @TencentIPv6Address = tencentipv6address
1473
+ @TencentBackupIPv6Address = tencentbackupipv6address
1474
+ @BgpIPv6Status = bgpipv6status
1475
+ @CustomerIPv6Address = customeripv6address
1476
+ @JumboEnable = jumboenable
1477
+ end
1478
+
1479
+ def deserialize(params)
1480
+ @DirectConnectTunnelId = params['DirectConnectTunnelId']
1481
+ @DirectConnectId = params['DirectConnectId']
1482
+ @State = params['State']
1483
+ @DirectConnectOwnerAccount = params['DirectConnectOwnerAccount']
1484
+ @OwnerAccount = params['OwnerAccount']
1485
+ @NetworkType = params['NetworkType']
1486
+ @NetworkRegion = params['NetworkRegion']
1487
+ @VpcId = params['VpcId']
1488
+ @DirectConnectGatewayId = params['DirectConnectGatewayId']
1489
+ @RouteType = params['RouteType']
1490
+ unless params['BgpPeer'].nil?
1491
+ @BgpPeer = BgpPeer.new
1492
+ @BgpPeer.deserialize(params['BgpPeer'])
1493
+ end
1494
+ unless params['RouteFilterPrefixes'].nil?
1495
+ @RouteFilterPrefixes = []
1496
+ params['RouteFilterPrefixes'].each do |i|
1497
+ routefilterprefix_tmp = RouteFilterPrefix.new
1498
+ routefilterprefix_tmp.deserialize(i)
1499
+ @RouteFilterPrefixes << routefilterprefix_tmp
1500
+ end
1501
+ end
1502
+ unless params['PublicAddresses'].nil?
1503
+ @PublicAddresses = []
1504
+ params['PublicAddresses'].each do |i|
1505
+ routefilterprefix_tmp = RouteFilterPrefix.new
1506
+ routefilterprefix_tmp.deserialize(i)
1507
+ @PublicAddresses << routefilterprefix_tmp
1508
+ end
1509
+ end
1510
+ @Vlan = params['Vlan']
1511
+ @TencentAddress = params['TencentAddress']
1512
+ @TencentBackupAddress = params['TencentBackupAddress']
1513
+ @CustomerAddress = params['CustomerAddress']
1514
+ @DirectConnectTunnelName = params['DirectConnectTunnelName']
1515
+ @CreatedTime = params['CreatedTime']
1516
+ @Bandwidth = params['Bandwidth']
1517
+ @NetDetectId = params['NetDetectId']
1518
+ @EnableBGPCommunity = params['EnableBGPCommunity']
1519
+ @NatType = params['NatType']
1520
+ @VpcRegion = params['VpcRegion']
1521
+ @BfdEnable = params['BfdEnable']
1522
+ @NqaEnable = params['NqaEnable']
1523
+ @AccessPointType = params['AccessPointType']
1524
+ @DirectConnectGatewayName = params['DirectConnectGatewayName']
1525
+ @VpcName = params['VpcName']
1526
+ @SignLaw = params['SignLaw']
1527
+ unless params['BfdInfo'].nil?
1528
+ @BfdInfo = BFDInfo.new
1529
+ @BfdInfo.deserialize(params['BfdInfo'])
1530
+ end
1531
+ unless params['NqaInfo'].nil?
1532
+ @NqaInfo = NQAInfo.new
1533
+ @NqaInfo.deserialize(params['NqaInfo'])
1534
+ end
1535
+ unless params['BgpStatus'].nil?
1536
+ @BgpStatus = BGPStatus.new
1537
+ @BgpStatus.deserialize(params['BgpStatus'])
1538
+ end
1539
+ @IPv6Enable = params['IPv6Enable']
1540
+ @TencentIPv6Address = params['TencentIPv6Address']
1541
+ @TencentBackupIPv6Address = params['TencentBackupIPv6Address']
1542
+ unless params['BgpIPv6Status'].nil?
1543
+ @BgpIPv6Status = BGPStatus.new
1544
+ @BgpIPv6Status.deserialize(params['BgpIPv6Status'])
1545
+ end
1546
+ @CustomerIPv6Address = params['CustomerIPv6Address']
1547
+ @JumboEnable = params['JumboEnable']
1548
+ end
1549
+ end
1550
+
1551
+ # 专用通道路由
1552
+ class DirectConnectTunnelRoute < TencentCloud::Common::AbstractModel
1553
+ # @param RouteId: 专用通道路由ID
1554
+ # @type RouteId: String
1555
+ # @param DestinationCidrBlock: 网段CIDR
1556
+ # @type DestinationCidrBlock: String
1557
+ # @param RouteType: 路由类型:BGP/STATIC路由
1558
+ # @type RouteType: String
1559
+ # @param Status: ENABLE:路由启用,DISABLE:路由禁用
1560
+ # @type Status: String
1561
+ # @param ASPath: ASPath信息
1562
+ # @type ASPath: Array
1563
+ # @param NextHop: 路由下一跳IP
1564
+ # @type NextHop: String
1565
+
1566
+ attr_accessor :RouteId, :DestinationCidrBlock, :RouteType, :Status, :ASPath, :NextHop
1567
+
1568
+ def initialize(routeid=nil, destinationcidrblock=nil, routetype=nil, status=nil, aspath=nil, nexthop=nil)
1569
+ @RouteId = routeid
1570
+ @DestinationCidrBlock = destinationcidrblock
1571
+ @RouteType = routetype
1572
+ @Status = status
1573
+ @ASPath = aspath
1574
+ @NextHop = nexthop
1575
+ end
1576
+
1577
+ def deserialize(params)
1578
+ @RouteId = params['RouteId']
1579
+ @DestinationCidrBlock = params['DestinationCidrBlock']
1580
+ @RouteType = params['RouteType']
1581
+ @Status = params['Status']
1582
+ @ASPath = params['ASPath']
1583
+ @NextHop = params['NextHop']
1584
+ end
1585
+ end
1586
+
1587
+ # DisableInternetAddress请求参数结构体
1588
+ class DisableInternetAddressRequest < TencentCloud::Common::AbstractModel
1589
+ # @param InstanceId: 公网互联网地址ID
1590
+ # @type InstanceId: String
1591
+
1592
+ attr_accessor :InstanceId
1593
+
1594
+ def initialize(instanceid=nil)
1595
+ @InstanceId = instanceid
1596
+ end
1597
+
1598
+ def deserialize(params)
1599
+ @InstanceId = params['InstanceId']
1600
+ end
1601
+ end
1602
+
1603
+ # DisableInternetAddress返回参数结构体
1604
+ class DisableInternetAddressResponse < TencentCloud::Common::AbstractModel
1605
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1606
+ # @type RequestId: String
1607
+
1608
+ attr_accessor :RequestId
1609
+
1610
+ def initialize(requestid=nil)
1611
+ @RequestId = requestid
1612
+ end
1613
+
1614
+ def deserialize(params)
1615
+ @RequestId = params['RequestId']
1616
+ end
1617
+ end
1618
+
1619
+ # EnableInternetAddress请求参数结构体
1620
+ class EnableInternetAddressRequest < TencentCloud::Common::AbstractModel
1621
+ # @param InstanceId: 互联网公网地址ID
1622
+ # @type InstanceId: String
1623
+
1624
+ attr_accessor :InstanceId
1625
+
1626
+ def initialize(instanceid=nil)
1627
+ @InstanceId = instanceid
1628
+ end
1629
+
1630
+ def deserialize(params)
1631
+ @InstanceId = params['InstanceId']
1632
+ end
1633
+ end
1634
+
1635
+ # EnableInternetAddress返回参数结构体
1636
+ class EnableInternetAddressResponse < TencentCloud::Common::AbstractModel
1637
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1638
+ # @type RequestId: String
1639
+
1640
+ attr_accessor :RequestId
1641
+
1642
+ def initialize(requestid=nil)
1643
+ @RequestId = requestid
1644
+ end
1645
+
1646
+ def deserialize(params)
1647
+ @RequestId = params['RequestId']
1648
+ end
1649
+ end
1650
+
1651
+ # 用于条件过滤查询
1652
+ class Filter < TencentCloud::Common::AbstractModel
1653
+ # @param Name: 需要过滤的字段。
1654
+ # @type Name: String
1655
+ # @param Values: 字段的过滤值。
1656
+ # @type Values: Array
1657
+
1658
+ attr_accessor :Name, :Values
1659
+
1660
+ def initialize(name=nil, values=nil)
1661
+ @Name = name
1662
+ @Values = values
1663
+ end
1664
+
1665
+ def deserialize(params)
1666
+ @Name = params['Name']
1667
+ @Values = params['Values']
1668
+ end
1669
+ end
1670
+
1671
+ # 互联网地址详细信息
1672
+ class InternetAddressDetail < TencentCloud::Common::AbstractModel
1673
+ # @param InstanceId: 互联网地址ID
1674
+ # 注意:此字段可能返回 null,表示取不到有效值。
1675
+ # @type InstanceId: String
1676
+ # @param Subnet: 互联网网络地址
1677
+ # 注意:此字段可能返回 null,表示取不到有效值。
1678
+ # @type Subnet: String
1679
+ # @param MaskLen: 网络地址掩码长度
1680
+ # 注意:此字段可能返回 null,表示取不到有效值。
1681
+ # @type MaskLen: Integer
1682
+ # @param AddrType: 0:BGP
1683
+ # 1:电信
1684
+ # 2:移动
1685
+ # 3:联通
1686
+ # 注意:此字段可能返回 null,表示取不到有效值。
1687
+ # @type AddrType: Integer
1688
+ # @param Status: 0:使用中
1689
+ # 1:已停用
1690
+ # 2:已退还
1691
+ # @type Status: Integer
1692
+ # @param ApplyTime: 申请时间
1693
+ # 注意:此字段可能返回 null,表示取不到有效值。
1694
+ # @type ApplyTime: String
1695
+ # @param StopTime: 停用时间
1696
+ # 注意:此字段可能返回 null,表示取不到有效值。
1697
+ # @type StopTime: String
1698
+ # @param ReleaseTime: 退还时间
1699
+ # 注意:此字段可能返回 null,表示取不到有效值。
1700
+ # @type ReleaseTime: String
1701
+ # @param Region: 地域信息
1702
+ # 注意:此字段可能返回 null,表示取不到有效值。
1703
+ # @type Region: String
1704
+ # @param AppId: 用户ID
1705
+ # 注意:此字段可能返回 null,表示取不到有效值。
1706
+ # @type AppId: Integer
1707
+ # @param AddrProto: 0:IPv4 1:IPv6
1708
+ # 注意:此字段可能返回 null,表示取不到有效值。
1709
+ # @type AddrProto: Integer
1710
+ # @param ReserveTime: 释放状态的IP地址保留的天数
1711
+ # 注意:此字段可能返回 null,表示取不到有效值。
1712
+ # @type ReserveTime: Integer
1713
+
1714
+ attr_accessor :InstanceId, :Subnet, :MaskLen, :AddrType, :Status, :ApplyTime, :StopTime, :ReleaseTime, :Region, :AppId, :AddrProto, :ReserveTime
1715
+
1716
+ def initialize(instanceid=nil, subnet=nil, masklen=nil, addrtype=nil, status=nil, applytime=nil, stoptime=nil, releasetime=nil, region=nil, appid=nil, addrproto=nil, reservetime=nil)
1717
+ @InstanceId = instanceid
1718
+ @Subnet = subnet
1719
+ @MaskLen = masklen
1720
+ @AddrType = addrtype
1721
+ @Status = status
1722
+ @ApplyTime = applytime
1723
+ @StopTime = stoptime
1724
+ @ReleaseTime = releasetime
1725
+ @Region = region
1726
+ @AppId = appid
1727
+ @AddrProto = addrproto
1728
+ @ReserveTime = reservetime
1729
+ end
1730
+
1731
+ def deserialize(params)
1732
+ @InstanceId = params['InstanceId']
1733
+ @Subnet = params['Subnet']
1734
+ @MaskLen = params['MaskLen']
1735
+ @AddrType = params['AddrType']
1736
+ @Status = params['Status']
1737
+ @ApplyTime = params['ApplyTime']
1738
+ @StopTime = params['StopTime']
1739
+ @ReleaseTime = params['ReleaseTime']
1740
+ @Region = params['Region']
1741
+ @AppId = params['AppId']
1742
+ @AddrProto = params['AddrProto']
1743
+ @ReserveTime = params['ReserveTime']
1744
+ end
1745
+ end
1746
+
1747
+ # 互联网公网地址统计
1748
+ class InternetAddressStatistics < TencentCloud::Common::AbstractModel
1749
+ # @param Region: 地域
1750
+ # 注意:此字段可能返回 null,表示取不到有效值。
1751
+ # @type Region: String
1752
+ # @param SubnetNum: 互联网公网地址数量
1753
+ # 注意:此字段可能返回 null,表示取不到有效值。
1754
+ # @type SubnetNum: Integer
1755
+
1756
+ attr_accessor :Region, :SubnetNum
1757
+
1758
+ def initialize(region=nil, subnetnum=nil)
1759
+ @Region = region
1760
+ @SubnetNum = subnetnum
1761
+ end
1762
+
1763
+ def deserialize(params)
1764
+ @Region = params['Region']
1765
+ @SubnetNum = params['SubnetNum']
1766
+ end
1767
+ end
1768
+
1769
+ # ModifyDirectConnectAttribute请求参数结构体
1770
+ class ModifyDirectConnectAttributeRequest < TencentCloud::Common::AbstractModel
1771
+ # @param DirectConnectId: 物理专线的ID。
1772
+ # @type DirectConnectId: String
1773
+ # @param DirectConnectName: 物理专线名称。
1774
+ # @type DirectConnectName: String
1775
+ # @param CircuitCode: 运营商或者服务商为物理专线提供的电路编码。
1776
+ # @type CircuitCode: String
1777
+ # @param Vlan: 物理专线调试VLAN。
1778
+ # @type Vlan: Integer
1779
+ # @param TencentAddress: 物理专线调试腾讯侧互联 IP。
1780
+ # @type TencentAddress: String
1781
+ # @param CustomerAddress: 物理专线调试用户侧互联 IP。
1782
+ # @type CustomerAddress: String
1783
+ # @param CustomerName: 物理专线申请者姓名。默认从账户体系获取。
1784
+ # @type CustomerName: String
1785
+ # @param CustomerContactMail: 物理专线申请者联系邮箱。默认从账户体系获取。
1786
+ # @type CustomerContactMail: String
1787
+ # @param CustomerContactNumber: 物理专线申请者联系号码。默认从账户体系获取。
1788
+ # @type CustomerContactNumber: String
1789
+ # @param FaultReportContactPerson: 报障联系人。
1790
+ # @type FaultReportContactPerson: String
1791
+ # @param FaultReportContactNumber: 报障联系电话。
1792
+ # @type FaultReportContactNumber: String
1793
+ # @param SignLaw: 物理专线申请者补签用户使用协议
1794
+ # @type SignLaw: Boolean
1795
+ # @param Bandwidth: 物理专线带宽
1796
+ # @type Bandwidth: Integer
1797
+
1798
+ attr_accessor :DirectConnectId, :DirectConnectName, :CircuitCode, :Vlan, :TencentAddress, :CustomerAddress, :CustomerName, :CustomerContactMail, :CustomerContactNumber, :FaultReportContactPerson, :FaultReportContactNumber, :SignLaw, :Bandwidth
1799
+
1800
+ def initialize(directconnectid=nil, directconnectname=nil, circuitcode=nil, vlan=nil, tencentaddress=nil, customeraddress=nil, customername=nil, customercontactmail=nil, customercontactnumber=nil, faultreportcontactperson=nil, faultreportcontactnumber=nil, signlaw=nil, bandwidth=nil)
1801
+ @DirectConnectId = directconnectid
1802
+ @DirectConnectName = directconnectname
1803
+ @CircuitCode = circuitcode
1804
+ @Vlan = vlan
1805
+ @TencentAddress = tencentaddress
1806
+ @CustomerAddress = customeraddress
1807
+ @CustomerName = customername
1808
+ @CustomerContactMail = customercontactmail
1809
+ @CustomerContactNumber = customercontactnumber
1810
+ @FaultReportContactPerson = faultreportcontactperson
1811
+ @FaultReportContactNumber = faultreportcontactnumber
1812
+ @SignLaw = signlaw
1813
+ @Bandwidth = bandwidth
1814
+ end
1815
+
1816
+ def deserialize(params)
1817
+ @DirectConnectId = params['DirectConnectId']
1818
+ @DirectConnectName = params['DirectConnectName']
1819
+ @CircuitCode = params['CircuitCode']
1820
+ @Vlan = params['Vlan']
1821
+ @TencentAddress = params['TencentAddress']
1822
+ @CustomerAddress = params['CustomerAddress']
1823
+ @CustomerName = params['CustomerName']
1824
+ @CustomerContactMail = params['CustomerContactMail']
1825
+ @CustomerContactNumber = params['CustomerContactNumber']
1826
+ @FaultReportContactPerson = params['FaultReportContactPerson']
1827
+ @FaultReportContactNumber = params['FaultReportContactNumber']
1828
+ @SignLaw = params['SignLaw']
1829
+ @Bandwidth = params['Bandwidth']
1830
+ end
1831
+ end
1832
+
1833
+ # ModifyDirectConnectAttribute返回参数结构体
1834
+ class ModifyDirectConnectAttributeResponse < TencentCloud::Common::AbstractModel
1835
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1836
+ # @type RequestId: String
1837
+
1838
+ attr_accessor :RequestId
1839
+
1840
+ def initialize(requestid=nil)
1841
+ @RequestId = requestid
1842
+ end
1843
+
1844
+ def deserialize(params)
1845
+ @RequestId = params['RequestId']
1846
+ end
1847
+ end
1848
+
1849
+ # ModifyDirectConnectTunnelAttribute请求参数结构体
1850
+ class ModifyDirectConnectTunnelAttributeRequest < TencentCloud::Common::AbstractModel
1851
+ # @param DirectConnectTunnelId: 专用通道ID
1852
+ # @type DirectConnectTunnelId: String
1853
+ # @param DirectConnectTunnelName: 专用通道名称
1854
+ # @type DirectConnectTunnelName: String
1855
+ # @param BgpPeer: 用户侧BGP,包括Asn,AuthKey
1856
+ # @type BgpPeer: :class:`Tencentcloud::Dc.v20180410.models.BgpPeer`
1857
+ # @param RouteFilterPrefixes: 用户侧网段地址
1858
+ # @type RouteFilterPrefixes: Array
1859
+ # @param TencentAddress: 腾讯侧互联IP
1860
+ # @type TencentAddress: String
1861
+ # @param CustomerAddress: 用户侧互联IP
1862
+ # @type CustomerAddress: String
1863
+ # @param Bandwidth: 专用通道带宽值,单位为M。
1864
+ # @type Bandwidth: Integer
1865
+ # @param TencentBackupAddress: 腾讯侧备用互联IP
1866
+ # @type TencentBackupAddress: String
1867
+
1868
+ attr_accessor :DirectConnectTunnelId, :DirectConnectTunnelName, :BgpPeer, :RouteFilterPrefixes, :TencentAddress, :CustomerAddress, :Bandwidth, :TencentBackupAddress
1869
+
1870
+ def initialize(directconnecttunnelid=nil, directconnecttunnelname=nil, bgppeer=nil, routefilterprefixes=nil, tencentaddress=nil, customeraddress=nil, bandwidth=nil, tencentbackupaddress=nil)
1871
+ @DirectConnectTunnelId = directconnecttunnelid
1872
+ @DirectConnectTunnelName = directconnecttunnelname
1873
+ @BgpPeer = bgppeer
1874
+ @RouteFilterPrefixes = routefilterprefixes
1875
+ @TencentAddress = tencentaddress
1876
+ @CustomerAddress = customeraddress
1877
+ @Bandwidth = bandwidth
1878
+ @TencentBackupAddress = tencentbackupaddress
1879
+ end
1880
+
1881
+ def deserialize(params)
1882
+ @DirectConnectTunnelId = params['DirectConnectTunnelId']
1883
+ @DirectConnectTunnelName = params['DirectConnectTunnelName']
1884
+ unless params['BgpPeer'].nil?
1885
+ @BgpPeer = BgpPeer.new
1886
+ @BgpPeer.deserialize(params['BgpPeer'])
1887
+ end
1888
+ unless params['RouteFilterPrefixes'].nil?
1889
+ @RouteFilterPrefixes = []
1890
+ params['RouteFilterPrefixes'].each do |i|
1891
+ routefilterprefix_tmp = RouteFilterPrefix.new
1892
+ routefilterprefix_tmp.deserialize(i)
1893
+ @RouteFilterPrefixes << routefilterprefix_tmp
1894
+ end
1895
+ end
1896
+ @TencentAddress = params['TencentAddress']
1897
+ @CustomerAddress = params['CustomerAddress']
1898
+ @Bandwidth = params['Bandwidth']
1899
+ @TencentBackupAddress = params['TencentBackupAddress']
1900
+ end
1901
+ end
1902
+
1903
+ # ModifyDirectConnectTunnelAttribute返回参数结构体
1904
+ class ModifyDirectConnectTunnelAttributeResponse < TencentCloud::Common::AbstractModel
1905
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1906
+ # @type RequestId: String
1907
+
1908
+ attr_accessor :RequestId
1909
+
1910
+ def initialize(requestid=nil)
1911
+ @RequestId = requestid
1912
+ end
1913
+
1914
+ def deserialize(params)
1915
+ @RequestId = params['RequestId']
1916
+ end
1917
+ end
1918
+
1919
+ # ModifyDirectConnectTunnelExtra请求参数结构体
1920
+ class ModifyDirectConnectTunnelExtraRequest < TencentCloud::Common::AbstractModel
1921
+ # @param DirectConnectTunnelId: 专用通道ID
1922
+ # @type DirectConnectTunnelId: String
1923
+ # @param Vlan: 专用通道的Vlan
1924
+ # @type Vlan: Integer
1925
+ # @param BgpPeer: 用户侧BGP,Asn,AuthKey
1926
+ # @type BgpPeer: :class:`Tencentcloud::Dc.v20180410.models.BgpPeer`
1927
+ # @param RouteFilterPrefixes: 用户侧过滤网段地址
1928
+ # @type RouteFilterPrefixes: :class:`Tencentcloud::Dc.v20180410.models.RouteFilterPrefix`
1929
+ # @param TencentAddress: 腾讯侧互联IP
1930
+ # @type TencentAddress: String
1931
+ # @param TencentBackupAddress: 腾讯侧备用互联IP
1932
+ # @type TencentBackupAddress: String
1933
+ # @param CustomerAddress: 用户侧互联IP
1934
+ # @type CustomerAddress: String
1935
+ # @param Bandwidth: 专用通道带宽值
1936
+ # @type Bandwidth: Integer
1937
+ # @param EnableBGPCommunity: BGP community开关
1938
+ # @type EnableBGPCommunity: Boolean
1939
+ # @param BfdEnable: 是否开启BFD
1940
+ # @type BfdEnable: Integer
1941
+ # @param NqaEnable: 是否开启NQA
1942
+ # @type NqaEnable: Integer
1943
+ # @param BfdInfo: BFD配置信息
1944
+ # @type BfdInfo: :class:`Tencentcloud::Dc.v20180410.models.BFDInfo`
1945
+ # @param NqaInfo: NQA配置信息
1946
+ # @type NqaInfo: :class:`Tencentcloud::Dc.v20180410.models.NQAInfo`
1947
+ # @param IPv6Enable: 0:停用IPv6
1948
+ # 1: 启用IPv6
1949
+ # @type IPv6Enable: Integer
1950
+ # @param CustomerIDCRoutes: 去往用户侧的路由信息
1951
+ # @type CustomerIDCRoutes: Array
1952
+ # @param JumboEnable: 是否开启巨帧
1953
+ # 1:开启
1954
+ # 0:不开启
1955
+ # @type JumboEnable: Integer
1956
+
1957
+ attr_accessor :DirectConnectTunnelId, :Vlan, :BgpPeer, :RouteFilterPrefixes, :TencentAddress, :TencentBackupAddress, :CustomerAddress, :Bandwidth, :EnableBGPCommunity, :BfdEnable, :NqaEnable, :BfdInfo, :NqaInfo, :IPv6Enable, :CustomerIDCRoutes, :JumboEnable
1958
+
1959
+ def initialize(directconnecttunnelid=nil, vlan=nil, bgppeer=nil, routefilterprefixes=nil, tencentaddress=nil, tencentbackupaddress=nil, customeraddress=nil, bandwidth=nil, enablebgpcommunity=nil, bfdenable=nil, nqaenable=nil, bfdinfo=nil, nqainfo=nil, ipv6enable=nil, customeridcroutes=nil, jumboenable=nil)
1960
+ @DirectConnectTunnelId = directconnecttunnelid
1961
+ @Vlan = vlan
1962
+ @BgpPeer = bgppeer
1963
+ @RouteFilterPrefixes = routefilterprefixes
1964
+ @TencentAddress = tencentaddress
1965
+ @TencentBackupAddress = tencentbackupaddress
1966
+ @CustomerAddress = customeraddress
1967
+ @Bandwidth = bandwidth
1968
+ @EnableBGPCommunity = enablebgpcommunity
1969
+ @BfdEnable = bfdenable
1970
+ @NqaEnable = nqaenable
1971
+ @BfdInfo = bfdinfo
1972
+ @NqaInfo = nqainfo
1973
+ @IPv6Enable = ipv6enable
1974
+ @CustomerIDCRoutes = customeridcroutes
1975
+ @JumboEnable = jumboenable
1976
+ end
1977
+
1978
+ def deserialize(params)
1979
+ @DirectConnectTunnelId = params['DirectConnectTunnelId']
1980
+ @Vlan = params['Vlan']
1981
+ unless params['BgpPeer'].nil?
1982
+ @BgpPeer = BgpPeer.new
1983
+ @BgpPeer.deserialize(params['BgpPeer'])
1984
+ end
1985
+ unless params['RouteFilterPrefixes'].nil?
1986
+ @RouteFilterPrefixes = RouteFilterPrefix.new
1987
+ @RouteFilterPrefixes.deserialize(params['RouteFilterPrefixes'])
1988
+ end
1989
+ @TencentAddress = params['TencentAddress']
1990
+ @TencentBackupAddress = params['TencentBackupAddress']
1991
+ @CustomerAddress = params['CustomerAddress']
1992
+ @Bandwidth = params['Bandwidth']
1993
+ @EnableBGPCommunity = params['EnableBGPCommunity']
1994
+ @BfdEnable = params['BfdEnable']
1995
+ @NqaEnable = params['NqaEnable']
1996
+ unless params['BfdInfo'].nil?
1997
+ @BfdInfo = BFDInfo.new
1998
+ @BfdInfo.deserialize(params['BfdInfo'])
1999
+ end
2000
+ unless params['NqaInfo'].nil?
2001
+ @NqaInfo = NQAInfo.new
2002
+ @NqaInfo.deserialize(params['NqaInfo'])
2003
+ end
2004
+ @IPv6Enable = params['IPv6Enable']
2005
+ unless params['CustomerIDCRoutes'].nil?
2006
+ @CustomerIDCRoutes = []
2007
+ params['CustomerIDCRoutes'].each do |i|
2008
+ routefilterprefix_tmp = RouteFilterPrefix.new
2009
+ routefilterprefix_tmp.deserialize(i)
2010
+ @CustomerIDCRoutes << routefilterprefix_tmp
2011
+ end
2012
+ end
2013
+ @JumboEnable = params['JumboEnable']
2014
+ end
2015
+ end
2016
+
2017
+ # ModifyDirectConnectTunnelExtra返回参数结构体
2018
+ class ModifyDirectConnectTunnelExtraResponse < TencentCloud::Common::AbstractModel
2019
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2020
+ # @type RequestId: String
2021
+
2022
+ attr_accessor :RequestId
2023
+
2024
+ def initialize(requestid=nil)
2025
+ @RequestId = requestid
2026
+ end
2027
+
2028
+ def deserialize(params)
2029
+ @RequestId = params['RequestId']
2030
+ end
2031
+ end
2032
+
2033
+ # nqa配置信息
2034
+ class NQAInfo < TencentCloud::Common::AbstractModel
2035
+ # @param ProbeFailedTimes: 健康检查次数
2036
+ # @type ProbeFailedTimes: Integer
2037
+ # @param Interval: 健康检查间隔
2038
+ # @type Interval: Integer
2039
+ # @param DestinationIp: 健康检查地址
2040
+ # @type DestinationIp: String
2041
+
2042
+ attr_accessor :ProbeFailedTimes, :Interval, :DestinationIp
2043
+
2044
+ def initialize(probefailedtimes=nil, interval=nil, destinationip=nil)
2045
+ @ProbeFailedTimes = probefailedtimes
2046
+ @Interval = interval
2047
+ @DestinationIp = destinationip
2048
+ end
2049
+
2050
+ def deserialize(params)
2051
+ @ProbeFailedTimes = params['ProbeFailedTimes']
2052
+ @Interval = params['Interval']
2053
+ @DestinationIp = params['DestinationIp']
2054
+ end
2055
+ end
2056
+
2057
+ # RejectDirectConnectTunnel请求参数结构体
2058
+ class RejectDirectConnectTunnelRequest < TencentCloud::Common::AbstractModel
2059
+ # @param DirectConnectTunnelId: 无
2060
+ # @type DirectConnectTunnelId: String
2061
+
2062
+ attr_accessor :DirectConnectTunnelId
2063
+
2064
+ def initialize(directconnecttunnelid=nil)
2065
+ @DirectConnectTunnelId = directconnecttunnelid
2066
+ end
2067
+
2068
+ def deserialize(params)
2069
+ @DirectConnectTunnelId = params['DirectConnectTunnelId']
2070
+ end
2071
+ end
2072
+
2073
+ # RejectDirectConnectTunnel返回参数结构体
2074
+ class RejectDirectConnectTunnelResponse < TencentCloud::Common::AbstractModel
2075
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2076
+ # @type RequestId: String
2077
+
2078
+ attr_accessor :RequestId
2079
+
2080
+ def initialize(requestid=nil)
2081
+ @RequestId = requestid
2082
+ end
2083
+
2084
+ def deserialize(params)
2085
+ @RequestId = params['RequestId']
2086
+ end
2087
+ end
2088
+
2089
+ # ReleaseInternetAddress请求参数结构体
2090
+ class ReleaseInternetAddressRequest < TencentCloud::Common::AbstractModel
2091
+ # @param InstanceId: 公网互联网地址ID
2092
+ # @type InstanceId: String
2093
+
2094
+ attr_accessor :InstanceId
2095
+
2096
+ def initialize(instanceid=nil)
2097
+ @InstanceId = instanceid
2098
+ end
2099
+
2100
+ def deserialize(params)
2101
+ @InstanceId = params['InstanceId']
2102
+ end
2103
+ end
2104
+
2105
+ # ReleaseInternetAddress返回参数结构体
2106
+ class ReleaseInternetAddressResponse < TencentCloud::Common::AbstractModel
2107
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2108
+ # @type RequestId: String
2109
+
2110
+ attr_accessor :RequestId
2111
+
2112
+ def initialize(requestid=nil)
2113
+ @RequestId = requestid
2114
+ end
2115
+
2116
+ def deserialize(params)
2117
+ @RequestId = params['RequestId']
2118
+ end
2119
+ end
2120
+
2121
+ # 用户侧网段地址
2122
+ class RouteFilterPrefix < TencentCloud::Common::AbstractModel
2123
+ # @param Cidr: 用户侧网段地址
2124
+ # @type Cidr: String
2125
+
2126
+ attr_accessor :Cidr
2127
+
2128
+ def initialize(cidr=nil)
2129
+ @Cidr = cidr
2130
+ end
2131
+
2132
+ def deserialize(params)
2133
+ @Cidr = params['Cidr']
2134
+ end
2135
+ end
2136
+
2137
+ # 标签键值对
2138
+ class Tag < TencentCloud::Common::AbstractModel
2139
+ # @param Key: 标签键
2140
+ # 注意:此字段可能返回 null,表示取不到有效值。
2141
+ # @type Key: String
2142
+ # @param Value: 标签值
2143
+ # 注意:此字段可能返回 null,表示取不到有效值。
2144
+ # @type Value: String
2145
+
2146
+ attr_accessor :Key, :Value
2147
+
2148
+ def initialize(key=nil, value=nil)
2149
+ @Key = key
2150
+ @Value = value
2151
+ end
2152
+
2153
+ def deserialize(params)
2154
+ @Key = params['Key']
2155
+ @Value = params['Value']
2156
+ end
2157
+ end
2158
+
2159
+ end
2160
+ end
2161
+ end
2162
+