tencentcloud-sdk-igtm 3.0.1092

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,2390 @@
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 Igtm
19
+ module V20231024
20
+ # 添加地址池地址
21
+ class Address < TencentCloud::Common::AbstractModel
22
+ # @param Addr: 地址值:只支持ipv4、ipv6和域名格式;
23
+ # 不支持回环地址、保留地址、内网地址与腾讯保留网段
24
+ # 注意:此字段可能返回 null,表示取不到有效值。
25
+ # @type Addr: String
26
+ # @param IsEnable: 是否启用:DISABLED不启用;ENABLED启用
27
+ # 注意:此字段可能返回 null,表示取不到有效值。
28
+ # @type IsEnable: String
29
+ # @param AddressId: 地址id
30
+ # 注意:此字段可能返回 null,表示取不到有效值。
31
+ # @type AddressId: Integer
32
+ # @param Location: 地址名称
33
+ # 注意:此字段可能返回 null,表示取不到有效值。
34
+ # @type Location: String
35
+ # @param Status: OK正常,DOWN故障,WARN风险,UNKNOWN探测中,UNMONITORED未知
36
+ # 注意:此字段可能返回 null,表示取不到有效值。
37
+ # @type Status: String
38
+ # @param Weight: 权重,流量策略为WEIGHT时,必填;范围1-100
39
+ # 注意:此字段可能返回 null,表示取不到有效值。
40
+ # @type Weight: Integer
41
+ # @param CreatedOn: 创建时间
42
+ # 注意:此字段可能返回 null,表示取不到有效值。
43
+ # @type CreatedOn: String
44
+ # @param UpdatedOn: 修改时间
45
+ # 注意:此字段可能返回 null,表示取不到有效值。
46
+ # @type UpdatedOn: String
47
+
48
+ attr_accessor :Addr, :IsEnable, :AddressId, :Location, :Status, :Weight, :CreatedOn, :UpdatedOn
49
+
50
+ def initialize(addr=nil, isenable=nil, addressid=nil, location=nil, status=nil, weight=nil, createdon=nil, updatedon=nil)
51
+ @Addr = addr
52
+ @IsEnable = isenable
53
+ @AddressId = addressid
54
+ @Location = location
55
+ @Status = status
56
+ @Weight = weight
57
+ @CreatedOn = createdon
58
+ @UpdatedOn = updatedon
59
+ end
60
+
61
+ def deserialize(params)
62
+ @Addr = params['Addr']
63
+ @IsEnable = params['IsEnable']
64
+ @AddressId = params['AddressId']
65
+ @Location = params['Location']
66
+ @Status = params['Status']
67
+ @Weight = params['Weight']
68
+ @CreatedOn = params['CreatedOn']
69
+ @UpdatedOn = params['UpdatedOn']
70
+ end
71
+ end
72
+
73
+ # 地址所属地域
74
+ class AddressLocation < TencentCloud::Common::AbstractModel
75
+ # @param Addr: ip地址
76
+ # 注意:此字段可能返回 null,表示取不到有效值。
77
+ # @type Addr: String
78
+ # @param Location: 所属地域
79
+ # 注意:此字段可能返回 null,表示取不到有效值。
80
+ # @type Location: String
81
+
82
+ attr_accessor :Addr, :Location
83
+
84
+ def initialize(addr=nil, location=nil)
85
+ @Addr = addr
86
+ @Location = location
87
+ end
88
+
89
+ def deserialize(params)
90
+ @Addr = params['Addr']
91
+ @Location = params['Location']
92
+ end
93
+ end
94
+
95
+ # 地址池
96
+ class AddressPool < TencentCloud::Common::AbstractModel
97
+ # @param PoolId: 地址池 id
98
+ # 注意:此字段可能返回 null,表示取不到有效值。
99
+ # @type PoolId: Integer
100
+ # @param PoolName: 地址池名
101
+ # 注意:此字段可能返回 null,表示取不到有效值。
102
+ # @type PoolName: String
103
+ # @param AddrType: 地址池地址类型:IPV4、IPV6、DOMAIN
104
+ # 注意:此字段可能返回 null,表示取不到有效值。
105
+ # @type AddrType: String
106
+ # @param TrafficStrategy: 流量策略: WEIGHT负载均衡,ALL解析全部
107
+ # 注意:此字段可能返回 null,表示取不到有效值。
108
+ # @type TrafficStrategy: String
109
+ # @param MonitorId: 监控器id
110
+ # 注意:此字段可能返回 null,表示取不到有效值。
111
+ # @type MonitorId: Integer
112
+ # @param Status: OK正常,DOWN故障,WARN风险,UNKNOWN未知
113
+ # 注意:此字段可能返回 null,表示取不到有效值。
114
+ # @type Status: String
115
+ # @param AddressNum: 地址数
116
+ # 注意:此字段可能返回 null,表示取不到有效值。
117
+ # @type AddressNum: Integer
118
+ # @param MonitorGroupNum: 探点数
119
+ # 注意:此字段可能返回 null,表示取不到有效值。
120
+ # @type MonitorGroupNum: Integer
121
+ # @param MonitorTaskNum: 探测任务数
122
+ # 注意:此字段可能返回 null,表示取不到有效值。
123
+ # @type MonitorTaskNum: Integer
124
+ # @param InstanceInfo: 实例相关信息
125
+ # 注意:此字段可能返回 null,表示取不到有效值。
126
+ # @type InstanceInfo: Array
127
+ # @param AddressSet: 地址池地址信息
128
+ # 注意:此字段可能返回 null,表示取不到有效值。
129
+ # @type AddressSet: Array
130
+ # @param CreatedOn: 创建时间
131
+ # 注意:此字段可能返回 null,表示取不到有效值。
132
+ # @type CreatedOn: String
133
+ # @param UpdatedOn: 更新时间
134
+ # 注意:此字段可能返回 null,表示取不到有效值。
135
+ # @type UpdatedOn: String
136
+
137
+ attr_accessor :PoolId, :PoolName, :AddrType, :TrafficStrategy, :MonitorId, :Status, :AddressNum, :MonitorGroupNum, :MonitorTaskNum, :InstanceInfo, :AddressSet, :CreatedOn, :UpdatedOn
138
+
139
+ def initialize(poolid=nil, poolname=nil, addrtype=nil, trafficstrategy=nil, monitorid=nil, status=nil, addressnum=nil, monitorgroupnum=nil, monitortasknum=nil, instanceinfo=nil, addressset=nil, createdon=nil, updatedon=nil)
140
+ @PoolId = poolid
141
+ @PoolName = poolname
142
+ @AddrType = addrtype
143
+ @TrafficStrategy = trafficstrategy
144
+ @MonitorId = monitorid
145
+ @Status = status
146
+ @AddressNum = addressnum
147
+ @MonitorGroupNum = monitorgroupnum
148
+ @MonitorTaskNum = monitortasknum
149
+ @InstanceInfo = instanceinfo
150
+ @AddressSet = addressset
151
+ @CreatedOn = createdon
152
+ @UpdatedOn = updatedon
153
+ end
154
+
155
+ def deserialize(params)
156
+ @PoolId = params['PoolId']
157
+ @PoolName = params['PoolName']
158
+ @AddrType = params['AddrType']
159
+ @TrafficStrategy = params['TrafficStrategy']
160
+ @MonitorId = params['MonitorId']
161
+ @Status = params['Status']
162
+ @AddressNum = params['AddressNum']
163
+ @MonitorGroupNum = params['MonitorGroupNum']
164
+ @MonitorTaskNum = params['MonitorTaskNum']
165
+ unless params['InstanceInfo'].nil?
166
+ @InstanceInfo = []
167
+ params['InstanceInfo'].each do |i|
168
+ instanceinfo_tmp = InstanceInfo.new
169
+ instanceinfo_tmp.deserialize(i)
170
+ @InstanceInfo << instanceinfo_tmp
171
+ end
172
+ end
173
+ unless params['AddressSet'].nil?
174
+ @AddressSet = []
175
+ params['AddressSet'].each do |i|
176
+ address_tmp = Address.new
177
+ address_tmp.deserialize(i)
178
+ @AddressSet << address_tmp
179
+ end
180
+ end
181
+ @CreatedOn = params['CreatedOn']
182
+ @UpdatedOn = params['UpdatedOn']
183
+ end
184
+ end
185
+
186
+ # 地址池详情
187
+ class AddressPoolDetail < TencentCloud::Common::AbstractModel
188
+ # @param PoolId: 地址池 id
189
+ # 注意:此字段可能返回 null,表示取不到有效值。
190
+ # @type PoolId: Integer
191
+ # @param PoolName: 地址池名
192
+ # 注意:此字段可能返回 null,表示取不到有效值。
193
+ # @type PoolName: String
194
+ # @param AddrType: 地址池地址类型:IPV4、IPV6、DOMAIN
195
+ # 注意:此字段可能返回 null,表示取不到有效值。
196
+ # @type AddrType: String
197
+ # @param TrafficStrategy: 流量策略: WEIGHT负载均衡,ALL解析全部
198
+ # 注意:此字段可能返回 null,表示取不到有效值。
199
+ # @type TrafficStrategy: String
200
+ # @param MonitorId: 监控器id
201
+ # 注意:此字段可能返回 null,表示取不到有效值。
202
+ # @type MonitorId: Integer
203
+ # @param CreatedOn: 创建时间
204
+ # 注意:此字段可能返回 null,表示取不到有效值。
205
+ # @type CreatedOn: String
206
+ # @param UpdatedOn: 更新时间
207
+ # 注意:此字段可能返回 null,表示取不到有效值。
208
+ # @type UpdatedOn: String
209
+
210
+ attr_accessor :PoolId, :PoolName, :AddrType, :TrafficStrategy, :MonitorId, :CreatedOn, :UpdatedOn
211
+
212
+ def initialize(poolid=nil, poolname=nil, addrtype=nil, trafficstrategy=nil, monitorid=nil, createdon=nil, updatedon=nil)
213
+ @PoolId = poolid
214
+ @PoolName = poolname
215
+ @AddrType = addrtype
216
+ @TrafficStrategy = trafficstrategy
217
+ @MonitorId = monitorid
218
+ @CreatedOn = createdon
219
+ @UpdatedOn = updatedon
220
+ end
221
+
222
+ def deserialize(params)
223
+ @PoolId = params['PoolId']
224
+ @PoolName = params['PoolName']
225
+ @AddrType = params['AddrType']
226
+ @TrafficStrategy = params['TrafficStrategy']
227
+ @MonitorId = params['MonitorId']
228
+ @CreatedOn = params['CreatedOn']
229
+ @UpdatedOn = params['UpdatedOn']
230
+ end
231
+ end
232
+
233
+ # CreateAddressPool请求参数结构体
234
+ class CreateAddressPoolRequest < TencentCloud::Common::AbstractModel
235
+ # @param PoolName: 地址池名称,不允许重复
236
+ # @type PoolName: String
237
+ # @param TrafficStrategy: 流量策略:WEIGHT负载均衡,ALL解析所有健康地址
238
+ # @type TrafficStrategy: String
239
+ # @param AddressSet: 地址列表
240
+ # @type AddressSet: Array
241
+ # @param MonitorId: 监控器id
242
+ # @type MonitorId: Integer
243
+
244
+ attr_accessor :PoolName, :TrafficStrategy, :AddressSet, :MonitorId
245
+
246
+ def initialize(poolname=nil, trafficstrategy=nil, addressset=nil, monitorid=nil)
247
+ @PoolName = poolname
248
+ @TrafficStrategy = trafficstrategy
249
+ @AddressSet = addressset
250
+ @MonitorId = monitorid
251
+ end
252
+
253
+ def deserialize(params)
254
+ @PoolName = params['PoolName']
255
+ @TrafficStrategy = params['TrafficStrategy']
256
+ unless params['AddressSet'].nil?
257
+ @AddressSet = []
258
+ params['AddressSet'].each do |i|
259
+ address_tmp = Address.new
260
+ address_tmp.deserialize(i)
261
+ @AddressSet << address_tmp
262
+ end
263
+ end
264
+ @MonitorId = params['MonitorId']
265
+ end
266
+ end
267
+
268
+ # CreateAddressPool返回参数结构体
269
+ class CreateAddressPoolResponse < TencentCloud::Common::AbstractModel
270
+ # @param AddressPoolId: 地址池id
271
+ # @type AddressPoolId: Integer
272
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
273
+ # @type RequestId: String
274
+
275
+ attr_accessor :AddressPoolId, :RequestId
276
+
277
+ def initialize(addresspoolid=nil, requestid=nil)
278
+ @AddressPoolId = addresspoolid
279
+ @RequestId = requestid
280
+ end
281
+
282
+ def deserialize(params)
283
+ @AddressPoolId = params['AddressPoolId']
284
+ @RequestId = params['RequestId']
285
+ end
286
+ end
287
+
288
+ # CreateInstance请求参数结构体
289
+ class CreateInstanceRequest < TencentCloud::Common::AbstractModel
290
+ # @param Domain: 业务域名
291
+ # @type Domain: String
292
+ # @param AccessType: CUSTOM: 自定义接入域名
293
+ # SYSTEM: 系统接入域名
294
+ # @type AccessType: String
295
+ # @param GlobalTtl: 解析生效时间
296
+ # @type GlobalTtl: Integer
297
+ # @param PackageType: 套餐类型
298
+ # FREE: 免费版
299
+ # STANDARD:标准版
300
+ # ULTIMATE:旗舰版
301
+ # @type PackageType: String
302
+ # @param InstanceName: 实例名称
303
+ # @type InstanceName: String
304
+ # @param AccessDomain: 接入主域名
305
+ # @type AccessDomain: String
306
+ # @param AccessSubDomain: 接入子域名
307
+ # @type AccessSubDomain: String
308
+ # @param Remark: 备注
309
+ # @type Remark: String
310
+ # @param ResourceId: 套餐资源id,必填
311
+ # @type ResourceId: String
312
+
313
+ attr_accessor :Domain, :AccessType, :GlobalTtl, :PackageType, :InstanceName, :AccessDomain, :AccessSubDomain, :Remark, :ResourceId
314
+
315
+ def initialize(domain=nil, accesstype=nil, globalttl=nil, packagetype=nil, instancename=nil, accessdomain=nil, accesssubdomain=nil, remark=nil, resourceid=nil)
316
+ @Domain = domain
317
+ @AccessType = accesstype
318
+ @GlobalTtl = globalttl
319
+ @PackageType = packagetype
320
+ @InstanceName = instancename
321
+ @AccessDomain = accessdomain
322
+ @AccessSubDomain = accesssubdomain
323
+ @Remark = remark
324
+ @ResourceId = resourceid
325
+ end
326
+
327
+ def deserialize(params)
328
+ @Domain = params['Domain']
329
+ @AccessType = params['AccessType']
330
+ @GlobalTtl = params['GlobalTtl']
331
+ @PackageType = params['PackageType']
332
+ @InstanceName = params['InstanceName']
333
+ @AccessDomain = params['AccessDomain']
334
+ @AccessSubDomain = params['AccessSubDomain']
335
+ @Remark = params['Remark']
336
+ @ResourceId = params['ResourceId']
337
+ end
338
+ end
339
+
340
+ # CreateInstance返回参数结构体
341
+ class CreateInstanceResponse < TencentCloud::Common::AbstractModel
342
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
343
+ # @type RequestId: String
344
+
345
+ attr_accessor :RequestId
346
+
347
+ def initialize(requestid=nil)
348
+ @RequestId = requestid
349
+ end
350
+
351
+ def deserialize(params)
352
+ @RequestId = params['RequestId']
353
+ end
354
+ end
355
+
356
+ # CreateMonitor请求参数结构体
357
+ class CreateMonitorRequest < TencentCloud::Common::AbstractModel
358
+ # @param MonitorName: 监控器名称
359
+ # @type MonitorName: String
360
+ # @param CheckProtocol: 探测协议,可选值 PING TCP HTTP HTTPS
361
+ # @type CheckProtocol: String
362
+ # @param CheckInterval: 检查间隔(秒),可选值有15 60 120 300
363
+ # @type CheckInterval: Integer
364
+ # @param Timeout: 超时时间,单位秒,可选值为2 3 5 10
365
+ # @type Timeout: Integer
366
+ # @param FailTimes: 重试次数,可选值为 0,1,2
367
+ # @type FailTimes: Integer
368
+ # @param FailRate: 失败比例,取值为 20 30 40 50 60 70 80 100,默认值50
369
+ # @type FailRate: Integer
370
+ # @param DetectorStyle: 监控节点类型,可选值有AUTO INTERNAL OVERSEAS IPV6 ALL
371
+ # @type DetectorStyle: String
372
+ # @param DetectorGroupIds: 探测器组id列表以,分隔
373
+ # @type DetectorGroupIds: Array
374
+ # @param PingNum: PING 包数目,当CheckProtocol=ping时必填,可选值有20 50 100
375
+ # @type PingNum: Integer
376
+ # @param TcpPort: 检查端口,可选值在1-65535之间
377
+ # @type TcpPort: Integer
378
+ # @param Host: Host 设置,默认为业务域名
379
+ # @type Host: String
380
+ # @param Path: URL 路径,默认为“/”
381
+ # @type Path: String
382
+ # @param ReturnCodeThreshold: 返回错误码阈值, 可选值为 400 和 500, 默认值500
383
+ # @type ReturnCodeThreshold: Integer
384
+ # @param EnableRedirect: 跟随 3XX 重定向 ,不开启为 DISABLED, 开启为 ENABLED,默认不开启
385
+ # @type EnableRedirect: String
386
+ # @param EnableSni: 启用 SNI,不开启为 DISABLED, 开启为 ENABLED,默认不开启
387
+ # @type EnableSni: String
388
+ # @param PacketLossRate: 丢包率告警阈值,当CheckProtocol=ping时必填取值为10 30 50 80 90 100
389
+ # @type PacketLossRate: Integer
390
+ # @param ContinuePeriod: 持续周期数,可选值1-5
391
+ # @type ContinuePeriod: Integer
392
+
393
+ attr_accessor :MonitorName, :CheckProtocol, :CheckInterval, :Timeout, :FailTimes, :FailRate, :DetectorStyle, :DetectorGroupIds, :PingNum, :TcpPort, :Host, :Path, :ReturnCodeThreshold, :EnableRedirect, :EnableSni, :PacketLossRate, :ContinuePeriod
394
+
395
+ def initialize(monitorname=nil, checkprotocol=nil, checkinterval=nil, timeout=nil, failtimes=nil, failrate=nil, detectorstyle=nil, detectorgroupids=nil, pingnum=nil, tcpport=nil, host=nil, path=nil, returncodethreshold=nil, enableredirect=nil, enablesni=nil, packetlossrate=nil, continueperiod=nil)
396
+ @MonitorName = monitorname
397
+ @CheckProtocol = checkprotocol
398
+ @CheckInterval = checkinterval
399
+ @Timeout = timeout
400
+ @FailTimes = failtimes
401
+ @FailRate = failrate
402
+ @DetectorStyle = detectorstyle
403
+ @DetectorGroupIds = detectorgroupids
404
+ @PingNum = pingnum
405
+ @TcpPort = tcpport
406
+ @Host = host
407
+ @Path = path
408
+ @ReturnCodeThreshold = returncodethreshold
409
+ @EnableRedirect = enableredirect
410
+ @EnableSni = enablesni
411
+ @PacketLossRate = packetlossrate
412
+ @ContinuePeriod = continueperiod
413
+ end
414
+
415
+ def deserialize(params)
416
+ @MonitorName = params['MonitorName']
417
+ @CheckProtocol = params['CheckProtocol']
418
+ @CheckInterval = params['CheckInterval']
419
+ @Timeout = params['Timeout']
420
+ @FailTimes = params['FailTimes']
421
+ @FailRate = params['FailRate']
422
+ @DetectorStyle = params['DetectorStyle']
423
+ @DetectorGroupIds = params['DetectorGroupIds']
424
+ @PingNum = params['PingNum']
425
+ @TcpPort = params['TcpPort']
426
+ @Host = params['Host']
427
+ @Path = params['Path']
428
+ @ReturnCodeThreshold = params['ReturnCodeThreshold']
429
+ @EnableRedirect = params['EnableRedirect']
430
+ @EnableSni = params['EnableSni']
431
+ @PacketLossRate = params['PacketLossRate']
432
+ @ContinuePeriod = params['ContinuePeriod']
433
+ end
434
+ end
435
+
436
+ # CreateMonitor返回参数结构体
437
+ class CreateMonitorResponse < TencentCloud::Common::AbstractModel
438
+ # @param MonitorId: 监控器id
439
+ # 注意:此字段可能返回 null,表示取不到有效值。
440
+ # @type MonitorId: Integer
441
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
442
+ # @type RequestId: String
443
+
444
+ attr_accessor :MonitorId, :RequestId
445
+
446
+ def initialize(monitorid=nil, requestid=nil)
447
+ @MonitorId = monitorid
448
+ @RequestId = requestid
449
+ end
450
+
451
+ def deserialize(params)
452
+ @MonitorId = params['MonitorId']
453
+ @RequestId = params['RequestId']
454
+ end
455
+ end
456
+
457
+ # CreateStrategy请求参数结构体
458
+ class CreateStrategyRequest < TencentCloud::Common::AbstractModel
459
+ # @param InstanceId: 实例id
460
+ # @type InstanceId: String
461
+ # @param StrategyName: 策略名称,不允许重复
462
+ # @type StrategyName: String
463
+ # @param Source: 解析线路
464
+ # @type Source: Array
465
+ # @param MainAddressPoolSet: 主力地址池集合,最多允许配置四级
466
+ # @type MainAddressPoolSet: Array
467
+ # @param FallbackAddressPoolSet: 兜底地址池集合,只允许配置一级,且地址池数量为1
468
+ # @type FallbackAddressPoolSet: Array
469
+ # @param KeepDomainRecords: 是否开启策略强制保留默认线路 disabled, enabled,默认不开启且只有一个策略能开启
470
+ # @type KeepDomainRecords: String
471
+ # @param SwitchPoolType: 策略调度模式:AUTO默认切换;STOP仅暂停不切换
472
+ # @type SwitchPoolType: String
473
+
474
+ attr_accessor :InstanceId, :StrategyName, :Source, :MainAddressPoolSet, :FallbackAddressPoolSet, :KeepDomainRecords, :SwitchPoolType
475
+
476
+ def initialize(instanceid=nil, strategyname=nil, source=nil, mainaddresspoolset=nil, fallbackaddresspoolset=nil, keepdomainrecords=nil, switchpooltype=nil)
477
+ @InstanceId = instanceid
478
+ @StrategyName = strategyname
479
+ @Source = source
480
+ @MainAddressPoolSet = mainaddresspoolset
481
+ @FallbackAddressPoolSet = fallbackaddresspoolset
482
+ @KeepDomainRecords = keepdomainrecords
483
+ @SwitchPoolType = switchpooltype
484
+ end
485
+
486
+ def deserialize(params)
487
+ @InstanceId = params['InstanceId']
488
+ @StrategyName = params['StrategyName']
489
+ unless params['Source'].nil?
490
+ @Source = []
491
+ params['Source'].each do |i|
492
+ source_tmp = Source.new
493
+ source_tmp.deserialize(i)
494
+ @Source << source_tmp
495
+ end
496
+ end
497
+ unless params['MainAddressPoolSet'].nil?
498
+ @MainAddressPoolSet = []
499
+ params['MainAddressPoolSet'].each do |i|
500
+ mainaddresspool_tmp = MainAddressPool.new
501
+ mainaddresspool_tmp.deserialize(i)
502
+ @MainAddressPoolSet << mainaddresspool_tmp
503
+ end
504
+ end
505
+ unless params['FallbackAddressPoolSet'].nil?
506
+ @FallbackAddressPoolSet = []
507
+ params['FallbackAddressPoolSet'].each do |i|
508
+ mainaddresspool_tmp = MainAddressPool.new
509
+ mainaddresspool_tmp.deserialize(i)
510
+ @FallbackAddressPoolSet << mainaddresspool_tmp
511
+ end
512
+ end
513
+ @KeepDomainRecords = params['KeepDomainRecords']
514
+ @SwitchPoolType = params['SwitchPoolType']
515
+ end
516
+ end
517
+
518
+ # CreateStrategy返回参数结构体
519
+ class CreateStrategyResponse < TencentCloud::Common::AbstractModel
520
+ # @param StrategyId: 新增策略id
521
+ # 注意:此字段可能返回 null,表示取不到有效值。
522
+ # @type StrategyId: Integer
523
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
524
+ # @type RequestId: String
525
+
526
+ attr_accessor :StrategyId, :RequestId
527
+
528
+ def initialize(strategyid=nil, requestid=nil)
529
+ @StrategyId = strategyid
530
+ @RequestId = requestid
531
+ end
532
+
533
+ def deserialize(params)
534
+ @StrategyId = params['StrategyId']
535
+ @RequestId = params['RequestId']
536
+ end
537
+ end
538
+
539
+ # DeleteAddressPool请求参数结构体
540
+ class DeleteAddressPoolRequest < TencentCloud::Common::AbstractModel
541
+ # @param PoolId: 地址池id
542
+ # @type PoolId: Integer
543
+
544
+ attr_accessor :PoolId
545
+
546
+ def initialize(poolid=nil)
547
+ @PoolId = poolid
548
+ end
549
+
550
+ def deserialize(params)
551
+ @PoolId = params['PoolId']
552
+ end
553
+ end
554
+
555
+ # DeleteAddressPool返回参数结构体
556
+ class DeleteAddressPoolResponse < TencentCloud::Common::AbstractModel
557
+ # @param Msg: 是否成功
558
+ # 注意:此字段可能返回 null,表示取不到有效值。
559
+ # @type Msg: String
560
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
561
+ # @type RequestId: String
562
+
563
+ attr_accessor :Msg, :RequestId
564
+
565
+ def initialize(msg=nil, requestid=nil)
566
+ @Msg = msg
567
+ @RequestId = requestid
568
+ end
569
+
570
+ def deserialize(params)
571
+ @Msg = params['Msg']
572
+ @RequestId = params['RequestId']
573
+ end
574
+ end
575
+
576
+ # DeleteMonitor请求参数结构体
577
+ class DeleteMonitorRequest < TencentCloud::Common::AbstractModel
578
+ # @param MonitorId: 监控器id
579
+ # @type MonitorId: Integer
580
+
581
+ attr_accessor :MonitorId
582
+
583
+ def initialize(monitorid=nil)
584
+ @MonitorId = monitorid
585
+ end
586
+
587
+ def deserialize(params)
588
+ @MonitorId = params['MonitorId']
589
+ end
590
+ end
591
+
592
+ # DeleteMonitor返回参数结构体
593
+ class DeleteMonitorResponse < TencentCloud::Common::AbstractModel
594
+ # @param Msg: 成功返回
595
+ # 注意:此字段可能返回 null,表示取不到有效值。
596
+ # @type Msg: String
597
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
598
+ # @type RequestId: String
599
+
600
+ attr_accessor :Msg, :RequestId
601
+
602
+ def initialize(msg=nil, requestid=nil)
603
+ @Msg = msg
604
+ @RequestId = requestid
605
+ end
606
+
607
+ def deserialize(params)
608
+ @Msg = params['Msg']
609
+ @RequestId = params['RequestId']
610
+ end
611
+ end
612
+
613
+ # DeleteStrategy请求参数结构体
614
+ class DeleteStrategyRequest < TencentCloud::Common::AbstractModel
615
+ # @param StrategyId: 策略id
616
+ # @type StrategyId: Integer
617
+ # @param InstanceId: 实例id
618
+ # @type InstanceId: String
619
+
620
+ attr_accessor :StrategyId, :InstanceId
621
+
622
+ def initialize(strategyid=nil, instanceid=nil)
623
+ @StrategyId = strategyid
624
+ @InstanceId = instanceid
625
+ end
626
+
627
+ def deserialize(params)
628
+ @StrategyId = params['StrategyId']
629
+ @InstanceId = params['InstanceId']
630
+ end
631
+ end
632
+
633
+ # DeleteStrategy返回参数结构体
634
+ class DeleteStrategyResponse < TencentCloud::Common::AbstractModel
635
+ # @param Msg: 是否成功
636
+ # 注意:此字段可能返回 null,表示取不到有效值。
637
+ # @type Msg: String
638
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
639
+ # @type RequestId: String
640
+
641
+ attr_accessor :Msg, :RequestId
642
+
643
+ def initialize(msg=nil, requestid=nil)
644
+ @Msg = msg
645
+ @RequestId = requestid
646
+ end
647
+
648
+ def deserialize(params)
649
+ @Msg = params['Msg']
650
+ @RequestId = params['RequestId']
651
+ end
652
+ end
653
+
654
+ # DescribeAddressLocation请求参数结构体
655
+ class DescribeAddressLocationRequest < TencentCloud::Common::AbstractModel
656
+ # @param Address: 地址数组
657
+ # @type Address: Array
658
+
659
+ attr_accessor :Address
660
+
661
+ def initialize(address=nil)
662
+ @Address = address
663
+ end
664
+
665
+ def deserialize(params)
666
+ @Address = params['Address']
667
+ end
668
+ end
669
+
670
+ # DescribeAddressLocation返回参数结构体
671
+ class DescribeAddressLocationResponse < TencentCloud::Common::AbstractModel
672
+ # @param AddressLocation: 所属地域
673
+ # 注意:此字段可能返回 null,表示取不到有效值。
674
+ # @type AddressLocation: Array
675
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
676
+ # @type RequestId: String
677
+
678
+ attr_accessor :AddressLocation, :RequestId
679
+
680
+ def initialize(addresslocation=nil, requestid=nil)
681
+ @AddressLocation = addresslocation
682
+ @RequestId = requestid
683
+ end
684
+
685
+ def deserialize(params)
686
+ unless params['AddressLocation'].nil?
687
+ @AddressLocation = []
688
+ params['AddressLocation'].each do |i|
689
+ addresslocation_tmp = AddressLocation.new
690
+ addresslocation_tmp.deserialize(i)
691
+ @AddressLocation << addresslocation_tmp
692
+ end
693
+ end
694
+ @RequestId = params['RequestId']
695
+ end
696
+ end
697
+
698
+ # DescribeAddressPoolDetail请求参数结构体
699
+ class DescribeAddressPoolDetailRequest < TencentCloud::Common::AbstractModel
700
+ # @param PoolId: 地址池id
701
+ # @type PoolId: Integer
702
+
703
+ attr_accessor :PoolId
704
+
705
+ def initialize(poolid=nil)
706
+ @PoolId = poolid
707
+ end
708
+
709
+ def deserialize(params)
710
+ @PoolId = params['PoolId']
711
+ end
712
+ end
713
+
714
+ # DescribeAddressPoolDetail返回参数结构体
715
+ class DescribeAddressPoolDetailResponse < TencentCloud::Common::AbstractModel
716
+ # @param AddressPool: 资源组详情描述
717
+ # 注意:此字段可能返回 null,表示取不到有效值。
718
+ # @type AddressPool: :class:`Tencentcloud::Igtm.v20231024.models.AddressPoolDetail`
719
+ # @param AddressSet: 资源组中的资源列表
720
+ # 注意:此字段可能返回 null,表示取不到有效值。
721
+ # @type AddressSet: Array
722
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
723
+ # @type RequestId: String
724
+
725
+ attr_accessor :AddressPool, :AddressSet, :RequestId
726
+
727
+ def initialize(addresspool=nil, addressset=nil, requestid=nil)
728
+ @AddressPool = addresspool
729
+ @AddressSet = addressset
730
+ @RequestId = requestid
731
+ end
732
+
733
+ def deserialize(params)
734
+ unless params['AddressPool'].nil?
735
+ @AddressPool = AddressPoolDetail.new
736
+ @AddressPool.deserialize(params['AddressPool'])
737
+ end
738
+ unless params['AddressSet'].nil?
739
+ @AddressSet = []
740
+ params['AddressSet'].each do |i|
741
+ address_tmp = Address.new
742
+ address_tmp.deserialize(i)
743
+ @AddressSet << address_tmp
744
+ end
745
+ end
746
+ @RequestId = params['RequestId']
747
+ end
748
+ end
749
+
750
+ # DescribeAddressPoolList请求参数结构体
751
+ class DescribeAddressPoolListRequest < TencentCloud::Common::AbstractModel
752
+ # @param Filters: 告警过滤条件:PoolName:地址池名称;MonitorId:监控器id
753
+ # @type Filters: Array
754
+ # @param Offset: 页数
755
+ # @type Offset: Integer
756
+ # @param Limit: 每页数
757
+ # @type Limit: Integer
758
+
759
+ attr_accessor :Filters, :Offset, :Limit
760
+
761
+ def initialize(filters=nil, offset=nil, limit=nil)
762
+ @Filters = filters
763
+ @Offset = offset
764
+ @Limit = limit
765
+ end
766
+
767
+ def deserialize(params)
768
+ unless params['Filters'].nil?
769
+ @Filters = []
770
+ params['Filters'].each do |i|
771
+ resourcefilter_tmp = ResourceFilter.new
772
+ resourcefilter_tmp.deserialize(i)
773
+ @Filters << resourcefilter_tmp
774
+ end
775
+ end
776
+ @Offset = params['Offset']
777
+ @Limit = params['Limit']
778
+ end
779
+ end
780
+
781
+ # DescribeAddressPoolList返回参数结构体
782
+ class DescribeAddressPoolListResponse < TencentCloud::Common::AbstractModel
783
+ # @param AddressPoolSet: 资源组列表
784
+ # 注意:此字段可能返回 null,表示取不到有效值。
785
+ # @type AddressPoolSet: Array
786
+ # @param TotalCount: 总数
787
+ # 注意:此字段可能返回 null,表示取不到有效值。
788
+ # @type TotalCount: Integer
789
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
790
+ # @type RequestId: String
791
+
792
+ attr_accessor :AddressPoolSet, :TotalCount, :RequestId
793
+
794
+ def initialize(addresspoolset=nil, totalcount=nil, requestid=nil)
795
+ @AddressPoolSet = addresspoolset
796
+ @TotalCount = totalcount
797
+ @RequestId = requestid
798
+ end
799
+
800
+ def deserialize(params)
801
+ unless params['AddressPoolSet'].nil?
802
+ @AddressPoolSet = []
803
+ params['AddressPoolSet'].each do |i|
804
+ addresspool_tmp = AddressPool.new
805
+ addresspool_tmp.deserialize(i)
806
+ @AddressPoolSet << addresspool_tmp
807
+ end
808
+ end
809
+ @TotalCount = params['TotalCount']
810
+ @RequestId = params['RequestId']
811
+ end
812
+ end
813
+
814
+ # DescribeDetectors请求参数结构体
815
+ class DescribeDetectorsRequest < TencentCloud::Common::AbstractModel
816
+
817
+
818
+ def initialize()
819
+ end
820
+
821
+ def deserialize(params)
822
+ end
823
+ end
824
+
825
+ # DescribeDetectors返回参数结构体
826
+ class DescribeDetectorsResponse < TencentCloud::Common::AbstractModel
827
+ # @param DetectorGroupSet: 探测器组列表
828
+ # @type DetectorGroupSet: Array
829
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
830
+ # @type RequestId: String
831
+
832
+ attr_accessor :DetectorGroupSet, :RequestId
833
+
834
+ def initialize(detectorgroupset=nil, requestid=nil)
835
+ @DetectorGroupSet = detectorgroupset
836
+ @RequestId = requestid
837
+ end
838
+
839
+ def deserialize(params)
840
+ unless params['DetectorGroupSet'].nil?
841
+ @DetectorGroupSet = []
842
+ params['DetectorGroupSet'].each do |i|
843
+ detectorgroup_tmp = DetectorGroup.new
844
+ detectorgroup_tmp.deserialize(i)
845
+ @DetectorGroupSet << detectorgroup_tmp
846
+ end
847
+ end
848
+ @RequestId = params['RequestId']
849
+ end
850
+ end
851
+
852
+ # DescribeDnsLineList请求参数结构体
853
+ class DescribeDnsLineListRequest < TencentCloud::Common::AbstractModel
854
+ # @param InstanceId: 实例id
855
+ # @type InstanceId: String
856
+
857
+ attr_accessor :InstanceId
858
+
859
+ def initialize(instanceid=nil)
860
+ @InstanceId = instanceid
861
+ end
862
+
863
+ def deserialize(params)
864
+ @InstanceId = params['InstanceId']
865
+ end
866
+ end
867
+
868
+ # DescribeDnsLineList返回参数结构体
869
+ class DescribeDnsLineListResponse < TencentCloud::Common::AbstractModel
870
+ # @param DnsLineSet: 地址池列表
871
+ # @type DnsLineSet: Array
872
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
873
+ # @type RequestId: String
874
+
875
+ attr_accessor :DnsLineSet, :RequestId
876
+
877
+ def initialize(dnslineset=nil, requestid=nil)
878
+ @DnsLineSet = dnslineset
879
+ @RequestId = requestid
880
+ end
881
+
882
+ def deserialize(params)
883
+ unless params['DnsLineSet'].nil?
884
+ @DnsLineSet = []
885
+ params['DnsLineSet'].each do |i|
886
+ groupline_tmp = GroupLine.new
887
+ groupline_tmp.deserialize(i)
888
+ @DnsLineSet << groupline_tmp
889
+ end
890
+ end
891
+ @RequestId = params['RequestId']
892
+ end
893
+ end
894
+
895
+ # DescribeInstanceDetail请求参数结构体
896
+ class DescribeInstanceDetailRequest < TencentCloud::Common::AbstractModel
897
+
898
+
899
+ def initialize()
900
+ end
901
+
902
+ def deserialize(params)
903
+ end
904
+ end
905
+
906
+ # DescribeInstanceDetail返回参数结构体
907
+ class DescribeInstanceDetailResponse < TencentCloud::Common::AbstractModel
908
+ # @param Instance: 实例详情
909
+ # @type Instance: :class:`Tencentcloud::Igtm.v20231024.models.InstanceDetail`
910
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
911
+ # @type RequestId: String
912
+
913
+ attr_accessor :Instance, :RequestId
914
+
915
+ def initialize(instance=nil, requestid=nil)
916
+ @Instance = instance
917
+ @RequestId = requestid
918
+ end
919
+
920
+ def deserialize(params)
921
+ unless params['Instance'].nil?
922
+ @Instance = InstanceDetail.new
923
+ @Instance.deserialize(params['Instance'])
924
+ end
925
+ @RequestId = params['RequestId']
926
+ end
927
+ end
928
+
929
+ # DescribeInstanceList请求参数结构体
930
+ class DescribeInstanceListRequest < TencentCloud::Common::AbstractModel
931
+ # @param Offset: 分页偏移量
932
+ # @type Offset: Integer
933
+ # @param Limit: 分页数
934
+ # @type Limit: Integer
935
+ # @param Filters: Name: "实例名称" 模糊查询Domain: "域名" 模糊查询MonitorId: "监控器 id" PoolId: "地址池id", AccessDomain接入主域名
936
+ # @type Filters: Array
937
+
938
+ attr_accessor :Offset, :Limit, :Filters
939
+
940
+ def initialize(offset=nil, limit=nil, filters=nil)
941
+ @Offset = offset
942
+ @Limit = limit
943
+ @Filters = filters
944
+ end
945
+
946
+ def deserialize(params)
947
+ @Offset = params['Offset']
948
+ @Limit = params['Limit']
949
+ unless params['Filters'].nil?
950
+ @Filters = []
951
+ params['Filters'].each do |i|
952
+ resourcefilter_tmp = ResourceFilter.new
953
+ resourcefilter_tmp.deserialize(i)
954
+ @Filters << resourcefilter_tmp
955
+ end
956
+ end
957
+ end
958
+ end
959
+
960
+ # DescribeInstanceList返回参数结构体
961
+ class DescribeInstanceListResponse < TencentCloud::Common::AbstractModel
962
+ # @param InstanceSet: 实例列表
963
+ # 注意:此字段可能返回 null,表示取不到有效值。
964
+ # @type InstanceSet: Array
965
+ # @param TotalCount: 列表总数
966
+ # 注意:此字段可能返回 null,表示取不到有效值。
967
+ # @type TotalCount: Integer
968
+ # @param SystemAccessEnabled: 是否支持系统域名接入:true支持;false不支持
969
+ # 注意:此字段可能返回 null,表示取不到有效值。
970
+ # @type SystemAccessEnabled: Boolean
971
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
972
+ # @type RequestId: String
973
+
974
+ attr_accessor :InstanceSet, :TotalCount, :SystemAccessEnabled, :RequestId
975
+
976
+ def initialize(instanceset=nil, totalcount=nil, systemaccessenabled=nil, requestid=nil)
977
+ @InstanceSet = instanceset
978
+ @TotalCount = totalcount
979
+ @SystemAccessEnabled = systemaccessenabled
980
+ @RequestId = requestid
981
+ end
982
+
983
+ def deserialize(params)
984
+ unless params['InstanceSet'].nil?
985
+ @InstanceSet = []
986
+ params['InstanceSet'].each do |i|
987
+ instance_tmp = Instance.new
988
+ instance_tmp.deserialize(i)
989
+ @InstanceSet << instance_tmp
990
+ end
991
+ end
992
+ @TotalCount = params['TotalCount']
993
+ @SystemAccessEnabled = params['SystemAccessEnabled']
994
+ @RequestId = params['RequestId']
995
+ end
996
+ end
997
+
998
+ # DescribeMonitorDetail请求参数结构体
999
+ class DescribeMonitorDetailRequest < TencentCloud::Common::AbstractModel
1000
+ # @param MonitorId: 监控器id
1001
+ # @type MonitorId: Integer
1002
+
1003
+ attr_accessor :MonitorId
1004
+
1005
+ def initialize(monitorid=nil)
1006
+ @MonitorId = monitorid
1007
+ end
1008
+
1009
+ def deserialize(params)
1010
+ @MonitorId = params['MonitorId']
1011
+ end
1012
+ end
1013
+
1014
+ # DescribeMonitorDetail返回参数结构体
1015
+ class DescribeMonitorDetailResponse < TencentCloud::Common::AbstractModel
1016
+ # @param MonitorDetail: 探测规则
1017
+ # 注意:此字段可能返回 null,表示取不到有效值。
1018
+ # @type MonitorDetail: :class:`Tencentcloud::Igtm.v20231024.models.MonitorDetail`
1019
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1020
+ # @type RequestId: String
1021
+
1022
+ attr_accessor :MonitorDetail, :RequestId
1023
+
1024
+ def initialize(monitordetail=nil, requestid=nil)
1025
+ @MonitorDetail = monitordetail
1026
+ @RequestId = requestid
1027
+ end
1028
+
1029
+ def deserialize(params)
1030
+ unless params['MonitorDetail'].nil?
1031
+ @MonitorDetail = MonitorDetail.new
1032
+ @MonitorDetail.deserialize(params['MonitorDetail'])
1033
+ end
1034
+ @RequestId = params['RequestId']
1035
+ end
1036
+ end
1037
+
1038
+ # DescribeMonitors请求参数结构体
1039
+ class DescribeMonitorsRequest < TencentCloud::Common::AbstractModel
1040
+ # @param Offset: 分页,偏移值
1041
+ # @type Offset: Integer
1042
+ # @param Limit: 分页,当前分页记录数
1043
+ # @type Limit: Integer
1044
+ # @param IsDetectNum: 是否查探测次数0否1是
1045
+ # @type IsDetectNum: Integer
1046
+
1047
+ attr_accessor :Offset, :Limit, :IsDetectNum
1048
+
1049
+ def initialize(offset=nil, limit=nil, isdetectnum=nil)
1050
+ @Offset = offset
1051
+ @Limit = limit
1052
+ @IsDetectNum = isdetectnum
1053
+ end
1054
+
1055
+ def deserialize(params)
1056
+ @Offset = params['Offset']
1057
+ @Limit = params['Limit']
1058
+ @IsDetectNum = params['IsDetectNum']
1059
+ end
1060
+ end
1061
+
1062
+ # DescribeMonitors返回参数结构体
1063
+ class DescribeMonitorsResponse < TencentCloud::Common::AbstractModel
1064
+ # @param MonitorDataSet: 监控器列表
1065
+ # 注意:此字段可能返回 null,表示取不到有效值。
1066
+ # @type MonitorDataSet: Array
1067
+ # @param TotalCount: 数量
1068
+ # @type TotalCount: Integer
1069
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1070
+ # @type RequestId: String
1071
+
1072
+ attr_accessor :MonitorDataSet, :TotalCount, :RequestId
1073
+
1074
+ def initialize(monitordataset=nil, totalcount=nil, requestid=nil)
1075
+ @MonitorDataSet = monitordataset
1076
+ @TotalCount = totalcount
1077
+ @RequestId = requestid
1078
+ end
1079
+
1080
+ def deserialize(params)
1081
+ unless params['MonitorDataSet'].nil?
1082
+ @MonitorDataSet = []
1083
+ params['MonitorDataSet'].each do |i|
1084
+ monitordetail_tmp = MonitorDetail.new
1085
+ monitordetail_tmp.deserialize(i)
1086
+ @MonitorDataSet << monitordetail_tmp
1087
+ end
1088
+ end
1089
+ @TotalCount = params['TotalCount']
1090
+ @RequestId = params['RequestId']
1091
+ end
1092
+ end
1093
+
1094
+ # DescribeQuotas请求参数结构体
1095
+ class DescribeQuotasRequest < TencentCloud::Common::AbstractModel
1096
+ # @param AccessDomain: 接入域名
1097
+ # @type AccessDomain: String
1098
+
1099
+ attr_accessor :AccessDomain
1100
+
1101
+ def initialize(accessdomain=nil)
1102
+ @AccessDomain = accessdomain
1103
+ end
1104
+
1105
+ def deserialize(params)
1106
+ @AccessDomain = params['AccessDomain']
1107
+ end
1108
+ end
1109
+
1110
+ # DescribeQuotas返回参数结构体
1111
+ class DescribeQuotasResponse < TencentCloud::Common::AbstractModel
1112
+ # @param Quotas: 配额id
1113
+ # 注意:此字段可能返回 null,表示取不到有效值。
1114
+ # @type Quotas: :class:`Tencentcloud::Igtm.v20231024.models.Quota`
1115
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1116
+ # @type RequestId: String
1117
+
1118
+ attr_accessor :Quotas, :RequestId
1119
+
1120
+ def initialize(quotas=nil, requestid=nil)
1121
+ @Quotas = quotas
1122
+ @RequestId = requestid
1123
+ end
1124
+
1125
+ def deserialize(params)
1126
+ unless params['Quotas'].nil?
1127
+ @Quotas = Quota.new
1128
+ @Quotas.deserialize(params['Quotas'])
1129
+ end
1130
+ @RequestId = params['RequestId']
1131
+ end
1132
+ end
1133
+
1134
+ # DescribeStrategyDetail请求参数结构体
1135
+ class DescribeStrategyDetailRequest < TencentCloud::Common::AbstractModel
1136
+ # @param InstanceId: 实例id
1137
+ # @type InstanceId: String
1138
+ # @param StrategyId: 策略 id
1139
+ # @type StrategyId: Integer
1140
+
1141
+ attr_accessor :InstanceId, :StrategyId
1142
+
1143
+ def initialize(instanceid=nil, strategyid=nil)
1144
+ @InstanceId = instanceid
1145
+ @StrategyId = strategyid
1146
+ end
1147
+
1148
+ def deserialize(params)
1149
+ @InstanceId = params['InstanceId']
1150
+ @StrategyId = params['StrategyId']
1151
+ end
1152
+ end
1153
+
1154
+ # DescribeStrategyDetail返回参数结构体
1155
+ class DescribeStrategyDetailResponse < TencentCloud::Common::AbstractModel
1156
+ # @param StrategyDetail: 策略详情
1157
+ # @type StrategyDetail: :class:`Tencentcloud::Igtm.v20231024.models.StrategyDetail`
1158
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1159
+ # @type RequestId: String
1160
+
1161
+ attr_accessor :StrategyDetail, :RequestId
1162
+
1163
+ def initialize(strategydetail=nil, requestid=nil)
1164
+ @StrategyDetail = strategydetail
1165
+ @RequestId = requestid
1166
+ end
1167
+
1168
+ def deserialize(params)
1169
+ unless params['StrategyDetail'].nil?
1170
+ @StrategyDetail = StrategyDetail.new
1171
+ @StrategyDetail.deserialize(params['StrategyDetail'])
1172
+ end
1173
+ @RequestId = params['RequestId']
1174
+ end
1175
+ end
1176
+
1177
+ # DescribeStrategyList请求参数结构体
1178
+ class DescribeStrategyListRequest < TencentCloud::Common::AbstractModel
1179
+ # @param InstanceId: 实例 id
1180
+ # @type InstanceId: String
1181
+ # @param Offset: 偏移量
1182
+ # @type Offset: Integer
1183
+ # @param Limit: 每页条数
1184
+ # @type Limit: Integer
1185
+ # @param Filters: 策略过滤条件:StrategyName:策略名称
1186
+ # @type Filters: Array
1187
+
1188
+ attr_accessor :InstanceId, :Offset, :Limit, :Filters
1189
+
1190
+ def initialize(instanceid=nil, offset=nil, limit=nil, filters=nil)
1191
+ @InstanceId = instanceid
1192
+ @Offset = offset
1193
+ @Limit = limit
1194
+ @Filters = filters
1195
+ end
1196
+
1197
+ def deserialize(params)
1198
+ @InstanceId = params['InstanceId']
1199
+ @Offset = params['Offset']
1200
+ @Limit = params['Limit']
1201
+ unless params['Filters'].nil?
1202
+ @Filters = []
1203
+ params['Filters'].each do |i|
1204
+ resourcefilter_tmp = ResourceFilter.new
1205
+ resourcefilter_tmp.deserialize(i)
1206
+ @Filters << resourcefilter_tmp
1207
+ end
1208
+ end
1209
+ end
1210
+ end
1211
+
1212
+ # DescribeStrategyList返回参数结构体
1213
+ class DescribeStrategyListResponse < TencentCloud::Common::AbstractModel
1214
+ # @param StrategySet: 策略列表
1215
+ # 注意:此字段可能返回 null,表示取不到有效值。
1216
+ # @type StrategySet: Array
1217
+ # @param TotalCount: 总数
1218
+ # 注意:此字段可能返回 null,表示取不到有效值。
1219
+ # @type TotalCount: Integer
1220
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1221
+ # @type RequestId: String
1222
+
1223
+ attr_accessor :StrategySet, :TotalCount, :RequestId
1224
+
1225
+ def initialize(strategyset=nil, totalcount=nil, requestid=nil)
1226
+ @StrategySet = strategyset
1227
+ @TotalCount = totalcount
1228
+ @RequestId = requestid
1229
+ end
1230
+
1231
+ def deserialize(params)
1232
+ unless params['StrategySet'].nil?
1233
+ @StrategySet = []
1234
+ params['StrategySet'].each do |i|
1235
+ strategy_tmp = Strategy.new
1236
+ strategy_tmp.deserialize(i)
1237
+ @StrategySet << strategy_tmp
1238
+ end
1239
+ end
1240
+ @TotalCount = params['TotalCount']
1241
+ @RequestId = params['RequestId']
1242
+ end
1243
+ end
1244
+
1245
+ # 探测组
1246
+ class DetectorGroup < TencentCloud::Common::AbstractModel
1247
+ # @param Gid: 线路组id GroupLineId
1248
+ # @type Gid: Integer
1249
+ # @param GroupType: bgp, international, isp
1250
+ # @type GroupType: String
1251
+ # @param GroupName: 组名
1252
+ # @type GroupName: String
1253
+ # @param InternetFamily: ipv4, ipv6
1254
+ # @type InternetFamily: String
1255
+ # @param PackageSet: 支持的套餐类型
1256
+ # 注意:此字段可能返回 null,表示取不到有效值。
1257
+ # @type PackageSet: Array
1258
+
1259
+ attr_accessor :Gid, :GroupType, :GroupName, :InternetFamily, :PackageSet
1260
+
1261
+ def initialize(gid=nil, grouptype=nil, groupname=nil, internetfamily=nil, packageset=nil)
1262
+ @Gid = gid
1263
+ @GroupType = grouptype
1264
+ @GroupName = groupname
1265
+ @InternetFamily = internetfamily
1266
+ @PackageSet = packageset
1267
+ end
1268
+
1269
+ def deserialize(params)
1270
+ @Gid = params['Gid']
1271
+ @GroupType = params['GroupType']
1272
+ @GroupName = params['GroupName']
1273
+ @InternetFamily = params['InternetFamily']
1274
+ @PackageSet = params['PackageSet']
1275
+ end
1276
+ end
1277
+
1278
+ # 线路列表
1279
+ class GroupLine < TencentCloud::Common::AbstractModel
1280
+ # @param DnsLineId: 分组线路id
1281
+ # 注意:此字段可能返回 null,表示取不到有效值。
1282
+ # @type DnsLineId: Integer
1283
+ # @param Parent: 父节点 0为根节点
1284
+ # 注意:此字段可能返回 null,表示取不到有效值。
1285
+ # @type Parent: Integer
1286
+ # @param LineName: 线路名
1287
+ # 注意:此字段可能返回 null,表示取不到有效值。
1288
+ # @type LineName: String
1289
+ # @param LineId: 10=9 DNSPod 线路 id
1290
+ # 注意:此字段可能返回 null,表示取不到有效值。
1291
+ # @type LineId: String
1292
+ # @param Useful: 是否已使用过
1293
+ # 注意:此字段可能返回 null,表示取不到有效值。
1294
+ # @type Useful: Boolean
1295
+ # @param SubGroup: 0为未使用
1296
+ # 注意:此字段可能返回 null,表示取不到有效值。
1297
+ # @type SubGroup: Integer
1298
+ # @param LinePackage: 权限标识
1299
+ # 注意:此字段可能返回 null,表示取不到有效值。
1300
+ # @type LinePackage: Integer
1301
+ # @param Weight: 1
1302
+ # 注意:此字段可能返回 null,表示取不到有效值。
1303
+ # @type Weight: Integer
1304
+
1305
+ attr_accessor :DnsLineId, :Parent, :LineName, :LineId, :Useful, :SubGroup, :LinePackage, :Weight
1306
+
1307
+ def initialize(dnslineid=nil, parent=nil, linename=nil, lineid=nil, useful=nil, subgroup=nil, linepackage=nil, weight=nil)
1308
+ @DnsLineId = dnslineid
1309
+ @Parent = parent
1310
+ @LineName = linename
1311
+ @LineId = lineid
1312
+ @Useful = useful
1313
+ @SubGroup = subgroup
1314
+ @LinePackage = linepackage
1315
+ @Weight = weight
1316
+ end
1317
+
1318
+ def deserialize(params)
1319
+ @DnsLineId = params['DnsLineId']
1320
+ @Parent = params['Parent']
1321
+ @LineName = params['LineName']
1322
+ @LineId = params['LineId']
1323
+ @Useful = params['Useful']
1324
+ @SubGroup = params['SubGroup']
1325
+ @LinePackage = params['LinePackage']
1326
+ @Weight = params['Weight']
1327
+ end
1328
+ end
1329
+
1330
+ # 返回实例
1331
+ class Instance < TencentCloud::Common::AbstractModel
1332
+ # @param InstanceId: 实例id
1333
+ # @type InstanceId: String
1334
+ # @param InstanceName: 实例名
1335
+ # @type InstanceName: String
1336
+ # @param ResourceId: 资源 id
1337
+ # 注意:此字段可能返回 null,表示取不到有效值。
1338
+ # @type ResourceId: String
1339
+ # @param Domain: 业务域名
1340
+ # @type Domain: String
1341
+ # @param AccessType: Cname域名接入方式
1342
+ # CUSTOM: 自定义接入域名
1343
+ # SYSTEM: 系统接入域名
1344
+ # @type AccessType: String
1345
+ # @param AccessDomain: 接入域名
1346
+ # @type AccessDomain: String
1347
+ # @param AccessSubDomain: 接入子域名
1348
+ # @type AccessSubDomain: String
1349
+ # @param GlobalTtl: 全局记录过期时间
1350
+ # @type GlobalTtl: Integer
1351
+ # @param PackageType: 套餐类型
1352
+ # FREE: 免费版
1353
+ # STANDARD:标准版
1354
+ # ULTIMATE:旗舰版
1355
+ # 注意:此字段可能返回 null,表示取不到有效值。
1356
+ # @type PackageType: String
1357
+ # @param WorkingStatus: 实例运行状态
1358
+ # NORMAL: 健康
1359
+ # FAULTY: 有风险
1360
+ # DOWN: 宕机
1361
+ # UNKNOWN: 未知
1362
+ # 注意:此字段可能返回 null,表示取不到有效值。
1363
+ # @type WorkingStatus: String
1364
+ # @param Status: 实例状态
1365
+ # ENABLED: 正常
1366
+ # DISABLED: 禁用
1367
+ # @type Status: String
1368
+ # @param IsCnameConfigured: 是否cname接入:true已接入;false未接入
1369
+ # 注意:此字段可能返回 null,表示取不到有效值。
1370
+ # @type IsCnameConfigured: Boolean
1371
+ # @param Remark: 备注
1372
+ # 注意:此字段可能返回 null,表示取不到有效值。
1373
+ # @type Remark: String
1374
+ # @param StrategyNum: 策略数量
1375
+ # 注意:此字段可能返回 null,表示取不到有效值。
1376
+ # @type StrategyNum: Integer
1377
+ # @param AddressPoolNum: 绑定地址池个数
1378
+ # 注意:此字段可能返回 null,表示取不到有效值。
1379
+ # @type AddressPoolNum: Integer
1380
+ # @param MonitorNum: 绑定监控器数量
1381
+ # 注意:此字段可能返回 null,表示取不到有效值。
1382
+ # @type MonitorNum: Integer
1383
+ # @param PoolId: 地址池id
1384
+ # 注意:此字段可能返回 null,表示取不到有效值。
1385
+ # @type PoolId: Integer
1386
+ # @param PoolName: 地址池名称
1387
+ # 注意:此字段可能返回 null,表示取不到有效值。
1388
+ # @type PoolName: String
1389
+ # @param CreatedOn: 实例创建时间
1390
+ # @type CreatedOn: String
1391
+ # @param UpdatedOn: 实例更新时间
1392
+ # @type UpdatedOn: String
1393
+
1394
+ attr_accessor :InstanceId, :InstanceName, :ResourceId, :Domain, :AccessType, :AccessDomain, :AccessSubDomain, :GlobalTtl, :PackageType, :WorkingStatus, :Status, :IsCnameConfigured, :Remark, :StrategyNum, :AddressPoolNum, :MonitorNum, :PoolId, :PoolName, :CreatedOn, :UpdatedOn
1395
+
1396
+ def initialize(instanceid=nil, instancename=nil, resourceid=nil, domain=nil, accesstype=nil, accessdomain=nil, accesssubdomain=nil, globalttl=nil, packagetype=nil, workingstatus=nil, status=nil, iscnameconfigured=nil, remark=nil, strategynum=nil, addresspoolnum=nil, monitornum=nil, poolid=nil, poolname=nil, createdon=nil, updatedon=nil)
1397
+ @InstanceId = instanceid
1398
+ @InstanceName = instancename
1399
+ @ResourceId = resourceid
1400
+ @Domain = domain
1401
+ @AccessType = accesstype
1402
+ @AccessDomain = accessdomain
1403
+ @AccessSubDomain = accesssubdomain
1404
+ @GlobalTtl = globalttl
1405
+ @PackageType = packagetype
1406
+ @WorkingStatus = workingstatus
1407
+ @Status = status
1408
+ @IsCnameConfigured = iscnameconfigured
1409
+ @Remark = remark
1410
+ @StrategyNum = strategynum
1411
+ @AddressPoolNum = addresspoolnum
1412
+ @MonitorNum = monitornum
1413
+ @PoolId = poolid
1414
+ @PoolName = poolname
1415
+ @CreatedOn = createdon
1416
+ @UpdatedOn = updatedon
1417
+ end
1418
+
1419
+ def deserialize(params)
1420
+ @InstanceId = params['InstanceId']
1421
+ @InstanceName = params['InstanceName']
1422
+ @ResourceId = params['ResourceId']
1423
+ @Domain = params['Domain']
1424
+ @AccessType = params['AccessType']
1425
+ @AccessDomain = params['AccessDomain']
1426
+ @AccessSubDomain = params['AccessSubDomain']
1427
+ @GlobalTtl = params['GlobalTtl']
1428
+ @PackageType = params['PackageType']
1429
+ @WorkingStatus = params['WorkingStatus']
1430
+ @Status = params['Status']
1431
+ @IsCnameConfigured = params['IsCnameConfigured']
1432
+ @Remark = params['Remark']
1433
+ @StrategyNum = params['StrategyNum']
1434
+ @AddressPoolNum = params['AddressPoolNum']
1435
+ @MonitorNum = params['MonitorNum']
1436
+ @PoolId = params['PoolId']
1437
+ @PoolName = params['PoolName']
1438
+ @CreatedOn = params['CreatedOn']
1439
+ @UpdatedOn = params['UpdatedOn']
1440
+ end
1441
+ end
1442
+
1443
+ # 实例配置详情
1444
+ class InstanceConfig < TencentCloud::Common::AbstractModel
1445
+ # @param InstanceName: 实例名称
1446
+ # @type InstanceName: String
1447
+ # @param Domain: 业务域名
1448
+ # @type Domain: String
1449
+ # @param AccessType: CUSTOM: 自定义接入域名
1450
+ # SYSTEM: 系统接入域名
1451
+ # @type AccessType: String
1452
+ # @param Remark: 备注
1453
+ # @type Remark: String
1454
+ # @param GlobalTtl: 全局记录过期时间
1455
+ # @type GlobalTtl: Integer
1456
+ # @param AccessDomain: 接入主域名,自定义接入域名时必填
1457
+ # @type AccessDomain: String
1458
+ # @param AccessSubDomain: 接入子域名,自定义接入域名时必填
1459
+ # @type AccessSubDomain: String
1460
+
1461
+ attr_accessor :InstanceName, :Domain, :AccessType, :Remark, :GlobalTtl, :AccessDomain, :AccessSubDomain
1462
+
1463
+ def initialize(instancename=nil, domain=nil, accesstype=nil, remark=nil, globalttl=nil, accessdomain=nil, accesssubdomain=nil)
1464
+ @InstanceName = instancename
1465
+ @Domain = domain
1466
+ @AccessType = accesstype
1467
+ @Remark = remark
1468
+ @GlobalTtl = globalttl
1469
+ @AccessDomain = accessdomain
1470
+ @AccessSubDomain = accesssubdomain
1471
+ end
1472
+
1473
+ def deserialize(params)
1474
+ @InstanceName = params['InstanceName']
1475
+ @Domain = params['Domain']
1476
+ @AccessType = params['AccessType']
1477
+ @Remark = params['Remark']
1478
+ @GlobalTtl = params['GlobalTtl']
1479
+ @AccessDomain = params['AccessDomain']
1480
+ @AccessSubDomain = params['AccessSubDomain']
1481
+ end
1482
+ end
1483
+
1484
+ # 返回实例
1485
+ class InstanceDetail < TencentCloud::Common::AbstractModel
1486
+ # @param InstanceId: 实例id
1487
+ # @type InstanceId: String
1488
+ # @param InstanceName: 实例名
1489
+ # @type InstanceName: String
1490
+ # @param Domain: 业务域名
1491
+ # @type Domain: String
1492
+ # @param AccessType: Cname域名接入方式
1493
+ # CUSTOM: 自定义接入域名
1494
+ # SYSTEM: 系统接入域名
1495
+ # @type AccessType: String
1496
+ # @param AccessSubDomain: 接入子域名
1497
+ # @type AccessSubDomain: String
1498
+ # @param AccessDomain: 接入域名
1499
+ # @type AccessDomain: String
1500
+ # @param GlobalTtl: 解析生效时间
1501
+ # @type GlobalTtl: Integer
1502
+ # @param PackageType: 套餐类型
1503
+ # FREE: 免费版
1504
+ # STANDARD:标准版
1505
+ # ULTIMATE:旗舰版
1506
+ # 注意:此字段可能返回 null,表示取不到有效值。
1507
+ # @type PackageType: String
1508
+ # @param WorkingStatus: 实例运行状态
1509
+ # NORMAL: 健康
1510
+ # FAULTY: 有风险
1511
+ # DOWN: 宕机
1512
+ # UNKNOWN: 未知
1513
+ # @type WorkingStatus: String
1514
+ # @param Status: 实例状态
1515
+ # ENABLED: 正常
1516
+ # DISABLED: 禁用
1517
+ # @type Status: String
1518
+ # @param IsCnameConfigured: cname是否接入:true已接入;false未接入
1519
+ # 注意:此字段可能返回 null,表示取不到有效值。
1520
+ # @type IsCnameConfigured: Boolean
1521
+ # @param Remark: 备注
1522
+ # 注意:此字段可能返回 null,表示取不到有效值。
1523
+ # @type Remark: String
1524
+ # @param StrategyNum: 策略数量
1525
+ # @type StrategyNum: Integer
1526
+ # @param AddressPoolNum: 绑定地址池个数
1527
+ # @type AddressPoolNum: Integer
1528
+ # @param MonitorNum: 绑定监控器数量
1529
+ # @type MonitorNum: Integer
1530
+ # @param ResourceId: 实例绑定套餐资源id
1531
+ # 注意:此字段可能返回 null,表示取不到有效值。
1532
+ # @type ResourceId: String
1533
+ # @param NotifyEventSet: 订阅事件列表
1534
+ # @type NotifyEventSet: Array
1535
+ # @param CreatedOn: 实例创建时间
1536
+ # @type CreatedOn: String
1537
+ # @param UpdatedOn: 实例更新时间
1538
+ # @type UpdatedOn: String
1539
+
1540
+ attr_accessor :InstanceId, :InstanceName, :Domain, :AccessType, :AccessSubDomain, :AccessDomain, :GlobalTtl, :PackageType, :WorkingStatus, :Status, :IsCnameConfigured, :Remark, :StrategyNum, :AddressPoolNum, :MonitorNum, :ResourceId, :NotifyEventSet, :CreatedOn, :UpdatedOn
1541
+
1542
+ def initialize(instanceid=nil, instancename=nil, domain=nil, accesstype=nil, accesssubdomain=nil, accessdomain=nil, globalttl=nil, packagetype=nil, workingstatus=nil, status=nil, iscnameconfigured=nil, remark=nil, strategynum=nil, addresspoolnum=nil, monitornum=nil, resourceid=nil, notifyeventset=nil, createdon=nil, updatedon=nil)
1543
+ @InstanceId = instanceid
1544
+ @InstanceName = instancename
1545
+ @Domain = domain
1546
+ @AccessType = accesstype
1547
+ @AccessSubDomain = accesssubdomain
1548
+ @AccessDomain = accessdomain
1549
+ @GlobalTtl = globalttl
1550
+ @PackageType = packagetype
1551
+ @WorkingStatus = workingstatus
1552
+ @Status = status
1553
+ @IsCnameConfigured = iscnameconfigured
1554
+ @Remark = remark
1555
+ @StrategyNum = strategynum
1556
+ @AddressPoolNum = addresspoolnum
1557
+ @MonitorNum = monitornum
1558
+ @ResourceId = resourceid
1559
+ @NotifyEventSet = notifyeventset
1560
+ @CreatedOn = createdon
1561
+ @UpdatedOn = updatedon
1562
+ end
1563
+
1564
+ def deserialize(params)
1565
+ @InstanceId = params['InstanceId']
1566
+ @InstanceName = params['InstanceName']
1567
+ @Domain = params['Domain']
1568
+ @AccessType = params['AccessType']
1569
+ @AccessSubDomain = params['AccessSubDomain']
1570
+ @AccessDomain = params['AccessDomain']
1571
+ @GlobalTtl = params['GlobalTtl']
1572
+ @PackageType = params['PackageType']
1573
+ @WorkingStatus = params['WorkingStatus']
1574
+ @Status = params['Status']
1575
+ @IsCnameConfigured = params['IsCnameConfigured']
1576
+ @Remark = params['Remark']
1577
+ @StrategyNum = params['StrategyNum']
1578
+ @AddressPoolNum = params['AddressPoolNum']
1579
+ @MonitorNum = params['MonitorNum']
1580
+ @ResourceId = params['ResourceId']
1581
+ @NotifyEventSet = params['NotifyEventSet']
1582
+ @CreatedOn = params['CreatedOn']
1583
+ @UpdatedOn = params['UpdatedOn']
1584
+ end
1585
+ end
1586
+
1587
+ # 实例相关信息
1588
+ class InstanceInfo < TencentCloud::Common::AbstractModel
1589
+ # @param InstanceId: 实例id
1590
+ # 注意:此字段可能返回 null,表示取不到有效值。
1591
+ # @type InstanceId: String
1592
+ # @param InstanceName: 实例名称
1593
+ # 注意:此字段可能返回 null,表示取不到有效值。
1594
+ # @type InstanceName: String
1595
+
1596
+ attr_accessor :InstanceId, :InstanceName
1597
+
1598
+ def initialize(instanceid=nil, instancename=nil)
1599
+ @InstanceId = instanceid
1600
+ @InstanceName = instancename
1601
+ end
1602
+
1603
+ def deserialize(params)
1604
+ @InstanceId = params['InstanceId']
1605
+ @InstanceName = params['InstanceName']
1606
+ end
1607
+ end
1608
+
1609
+ # 主力地址池
1610
+ class MainAddressPool < TencentCloud::Common::AbstractModel
1611
+ # @param AddressPools: 集合中的地址池id与权重,数组
1612
+ # 注意:此字段可能返回 null,表示取不到有效值。
1613
+ # @type AddressPools: Array
1614
+ # @param MainAddressPoolId: 地址池集合id
1615
+ # 注意:此字段可能返回 null,表示取不到有效值。
1616
+ # @type MainAddressPoolId: Integer
1617
+ # @param MinSurviveNum: 切换阀值,不能大于主力集合内地址总数
1618
+ # 注意:此字段可能返回 null,表示取不到有效值。
1619
+ # @type MinSurviveNum: Integer
1620
+ # @param TrafficStrategy: 切换策略:ALL解析所有地址;WEIGHT:负载均衡。当为ALL时,解析地址的权重值为1;当为WEIGHT时;权重为地址池权重*地址权重
1621
+ # 注意:此字段可能返回 null,表示取不到有效值。
1622
+ # @type TrafficStrategy: String
1623
+
1624
+ attr_accessor :AddressPools, :MainAddressPoolId, :MinSurviveNum, :TrafficStrategy
1625
+
1626
+ def initialize(addresspools=nil, mainaddresspoolid=nil, minsurvivenum=nil, trafficstrategy=nil)
1627
+ @AddressPools = addresspools
1628
+ @MainAddressPoolId = mainaddresspoolid
1629
+ @MinSurviveNum = minsurvivenum
1630
+ @TrafficStrategy = trafficstrategy
1631
+ end
1632
+
1633
+ def deserialize(params)
1634
+ unless params['AddressPools'].nil?
1635
+ @AddressPools = []
1636
+ params['AddressPools'].each do |i|
1637
+ mainpoolweight_tmp = MainPoolWeight.new
1638
+ mainpoolweight_tmp.deserialize(i)
1639
+ @AddressPools << mainpoolweight_tmp
1640
+ end
1641
+ end
1642
+ @MainAddressPoolId = params['MainAddressPoolId']
1643
+ @MinSurviveNum = params['MinSurviveNum']
1644
+ @TrafficStrategy = params['TrafficStrategy']
1645
+ end
1646
+ end
1647
+
1648
+ # 主力地址池id与权重
1649
+ class MainPoolWeight < TencentCloud::Common::AbstractModel
1650
+ # @param PoolId: 地址池id
1651
+ # 注意:此字段可能返回 null,表示取不到有效值。
1652
+ # @type PoolId: Integer
1653
+ # @param Weight: 权重
1654
+ # 注意:此字段可能返回 null,表示取不到有效值。
1655
+ # @type Weight: Integer
1656
+
1657
+ attr_accessor :PoolId, :Weight
1658
+
1659
+ def initialize(poolid=nil, weight=nil)
1660
+ @PoolId = poolid
1661
+ @Weight = weight
1662
+ end
1663
+
1664
+ def deserialize(params)
1665
+ @PoolId = params['PoolId']
1666
+ @Weight = params['Weight']
1667
+ end
1668
+ end
1669
+
1670
+ # ModifyAddressPool请求参数结构体
1671
+ class ModifyAddressPoolRequest < TencentCloud::Common::AbstractModel
1672
+ # @param PoolId: 地址池id
1673
+ # @type PoolId: Integer
1674
+ # @param PoolName: 地址池名称,不允许重复
1675
+ # @type PoolName: String
1676
+ # @param TrafficStrategy: 流量策略: WEIGHT负载均衡,ALl解析全部
1677
+ # @type TrafficStrategy: String
1678
+ # @param MonitorId: 监控器id
1679
+ # @type MonitorId: Integer
1680
+ # @param AddressSet: 地址列表
1681
+ # @type AddressSet: Array
1682
+
1683
+ attr_accessor :PoolId, :PoolName, :TrafficStrategy, :MonitorId, :AddressSet
1684
+
1685
+ def initialize(poolid=nil, poolname=nil, trafficstrategy=nil, monitorid=nil, addressset=nil)
1686
+ @PoolId = poolid
1687
+ @PoolName = poolname
1688
+ @TrafficStrategy = trafficstrategy
1689
+ @MonitorId = monitorid
1690
+ @AddressSet = addressset
1691
+ end
1692
+
1693
+ def deserialize(params)
1694
+ @PoolId = params['PoolId']
1695
+ @PoolName = params['PoolName']
1696
+ @TrafficStrategy = params['TrafficStrategy']
1697
+ @MonitorId = params['MonitorId']
1698
+ unless params['AddressSet'].nil?
1699
+ @AddressSet = []
1700
+ params['AddressSet'].each do |i|
1701
+ address_tmp = Address.new
1702
+ address_tmp.deserialize(i)
1703
+ @AddressSet << address_tmp
1704
+ end
1705
+ end
1706
+ end
1707
+ end
1708
+
1709
+ # ModifyAddressPool返回参数结构体
1710
+ class ModifyAddressPoolResponse < TencentCloud::Common::AbstractModel
1711
+ # @param Msg: 是否修改成功
1712
+ # 注意:此字段可能返回 null,表示取不到有效值。
1713
+ # @type Msg: String
1714
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1715
+ # @type RequestId: String
1716
+
1717
+ attr_accessor :Msg, :RequestId
1718
+
1719
+ def initialize(msg=nil, requestid=nil)
1720
+ @Msg = msg
1721
+ @RequestId = requestid
1722
+ end
1723
+
1724
+ def deserialize(params)
1725
+ @Msg = params['Msg']
1726
+ @RequestId = params['RequestId']
1727
+ end
1728
+ end
1729
+
1730
+ # ModifyInstanceConfig请求参数结构体
1731
+ class ModifyInstanceConfigRequest < TencentCloud::Common::AbstractModel
1732
+ # @param InstanceConfig: 实例配置详情
1733
+ # @type InstanceConfig: :class:`Tencentcloud::Igtm.v20231024.models.InstanceConfig`
1734
+
1735
+ attr_accessor :InstanceConfig
1736
+
1737
+ def initialize(instanceconfig=nil)
1738
+ @InstanceConfig = instanceconfig
1739
+ end
1740
+
1741
+ def deserialize(params)
1742
+ unless params['InstanceConfig'].nil?
1743
+ @InstanceConfig = InstanceConfig.new
1744
+ @InstanceConfig.deserialize(params['InstanceConfig'])
1745
+ end
1746
+ end
1747
+ end
1748
+
1749
+ # ModifyInstanceConfig返回参数结构体
1750
+ class ModifyInstanceConfigResponse < TencentCloud::Common::AbstractModel
1751
+ # @param Instance: 实例详情
1752
+ # @type Instance: :class:`Tencentcloud::Igtm.v20231024.models.InstanceDetail`
1753
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1754
+ # @type RequestId: String
1755
+
1756
+ attr_accessor :Instance, :RequestId
1757
+
1758
+ def initialize(instance=nil, requestid=nil)
1759
+ @Instance = instance
1760
+ @RequestId = requestid
1761
+ end
1762
+
1763
+ def deserialize(params)
1764
+ unless params['Instance'].nil?
1765
+ @Instance = InstanceDetail.new
1766
+ @Instance.deserialize(params['Instance'])
1767
+ end
1768
+ @RequestId = params['RequestId']
1769
+ end
1770
+ end
1771
+
1772
+ # ModifyMonitor请求参数结构体
1773
+ class ModifyMonitorRequest < TencentCloud::Common::AbstractModel
1774
+ # @param MonitorId: 监控器id
1775
+ # @type MonitorId: Integer
1776
+ # @param MonitorName: 监控器名称
1777
+ # @type MonitorName: String
1778
+ # @param CheckProtocol: 检查协议,可选值 PING TCP HTTP HTTPS
1779
+ # @type CheckProtocol: String
1780
+ # @param CheckInterval: 检查间隔(秒),可选值 15 60 120 300
1781
+ # @type CheckInterval: Integer
1782
+ # @param Timeout: 超时时间,单位:秒,可选值 2 3 5 10
1783
+ # @type Timeout: Integer
1784
+ # @param FailTimes: 重试次数,可选值为 0,1,2
1785
+ # @type FailTimes: Integer
1786
+ # @param FailRate: 失败比例,可选值为 20 30 40 50 60 70 80 100,默认值为50
1787
+ # @type FailRate: Integer
1788
+ # @param DetectorStyle: 监控节点类型,可选值有AUTO INTERNAL OVERSEAS IPV6 ALL
1789
+ # @type DetectorStyle: String
1790
+ # @param DetectorGroupIds: 探测器组id列表
1791
+ # @type DetectorGroupIds: Array
1792
+ # @param PingNum: PING 包数目, 当CheckProtocol=ping时必填,可选值 20 50 100
1793
+ # @type PingNum: Integer
1794
+ # @param TcpPort: 检查端口,可选值为1-65535之间的整数
1795
+ # @type TcpPort: Integer
1796
+ # @param Host: Host 设置,默认为业务域名
1797
+ # @type Host: String
1798
+ # @param Path: URL 路径,默认为“/”
1799
+ # @type Path: String
1800
+ # @param ReturnCodeThreshold: 返回错误码阈值, 可选值为 400 和 500, 默认值500
1801
+ # @type ReturnCodeThreshold: Integer
1802
+ # @param EnableRedirect: 跟随 3XX 重定向 ,不开启为 DISABLED, 开启为 ENABLED,默认不开启
1803
+ # @type EnableRedirect: String
1804
+ # @param EnableSni: 启用 SNI,不开启为 DISABLED, 开启为 ENABLED,默认不开启
1805
+ # @type EnableSni: String
1806
+ # @param PacketLossRate: 丢包率告警阈值,当CheckProtocol=ping时必填,取值在10 30 50 80 90 100
1807
+ # @type PacketLossRate: Integer
1808
+ # @param ContinuePeriod: 持续周期数,可选值1-5
1809
+ # @type ContinuePeriod: Integer
1810
+
1811
+ attr_accessor :MonitorId, :MonitorName, :CheckProtocol, :CheckInterval, :Timeout, :FailTimes, :FailRate, :DetectorStyle, :DetectorGroupIds, :PingNum, :TcpPort, :Host, :Path, :ReturnCodeThreshold, :EnableRedirect, :EnableSni, :PacketLossRate, :ContinuePeriod
1812
+
1813
+ def initialize(monitorid=nil, monitorname=nil, checkprotocol=nil, checkinterval=nil, timeout=nil, failtimes=nil, failrate=nil, detectorstyle=nil, detectorgroupids=nil, pingnum=nil, tcpport=nil, host=nil, path=nil, returncodethreshold=nil, enableredirect=nil, enablesni=nil, packetlossrate=nil, continueperiod=nil)
1814
+ @MonitorId = monitorid
1815
+ @MonitorName = monitorname
1816
+ @CheckProtocol = checkprotocol
1817
+ @CheckInterval = checkinterval
1818
+ @Timeout = timeout
1819
+ @FailTimes = failtimes
1820
+ @FailRate = failrate
1821
+ @DetectorStyle = detectorstyle
1822
+ @DetectorGroupIds = detectorgroupids
1823
+ @PingNum = pingnum
1824
+ @TcpPort = tcpport
1825
+ @Host = host
1826
+ @Path = path
1827
+ @ReturnCodeThreshold = returncodethreshold
1828
+ @EnableRedirect = enableredirect
1829
+ @EnableSni = enablesni
1830
+ @PacketLossRate = packetlossrate
1831
+ @ContinuePeriod = continueperiod
1832
+ end
1833
+
1834
+ def deserialize(params)
1835
+ @MonitorId = params['MonitorId']
1836
+ @MonitorName = params['MonitorName']
1837
+ @CheckProtocol = params['CheckProtocol']
1838
+ @CheckInterval = params['CheckInterval']
1839
+ @Timeout = params['Timeout']
1840
+ @FailTimes = params['FailTimes']
1841
+ @FailRate = params['FailRate']
1842
+ @DetectorStyle = params['DetectorStyle']
1843
+ @DetectorGroupIds = params['DetectorGroupIds']
1844
+ @PingNum = params['PingNum']
1845
+ @TcpPort = params['TcpPort']
1846
+ @Host = params['Host']
1847
+ @Path = params['Path']
1848
+ @ReturnCodeThreshold = params['ReturnCodeThreshold']
1849
+ @EnableRedirect = params['EnableRedirect']
1850
+ @EnableSni = params['EnableSni']
1851
+ @PacketLossRate = params['PacketLossRate']
1852
+ @ContinuePeriod = params['ContinuePeriod']
1853
+ end
1854
+ end
1855
+
1856
+ # ModifyMonitor返回参数结构体
1857
+ class ModifyMonitorResponse < TencentCloud::Common::AbstractModel
1858
+ # @param Msg: success 为修改成功
1859
+ # 注意:此字段可能返回 null,表示取不到有效值。
1860
+ # @type Msg: String
1861
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1862
+ # @type RequestId: String
1863
+
1864
+ attr_accessor :Msg, :RequestId
1865
+
1866
+ def initialize(msg=nil, requestid=nil)
1867
+ @Msg = msg
1868
+ @RequestId = requestid
1869
+ end
1870
+
1871
+ def deserialize(params)
1872
+ @Msg = params['Msg']
1873
+ @RequestId = params['RequestId']
1874
+ end
1875
+ end
1876
+
1877
+ # ModifyStrategy请求参数结构体
1878
+ class ModifyStrategyRequest < TencentCloud::Common::AbstractModel
1879
+ # @param InstanceId: 实例id
1880
+ # @type InstanceId: String
1881
+ # @param StrategyId: 策略id
1882
+ # @type StrategyId: Integer
1883
+ # @param Source: 解析线路,需要全量传参
1884
+ # @type Source: Array
1885
+ # @param MainAddressPoolSet: 主力地址池集合,需要全量传参
1886
+ # @type MainAddressPoolSet: Array
1887
+ # @param FallbackAddressPoolSet: 兜底地址池集合,需要全量传参
1888
+ # @type FallbackAddressPoolSet: Array
1889
+ # @param StrategyName: 策略名称,不允许重复
1890
+ # @type StrategyName: String
1891
+ # @param IsEnabled: 策略开启状态:ENABLED开启;DISABLED关闭
1892
+ # @type IsEnabled: String
1893
+ # @param KeepDomainRecords: 是否开启策略强制保留默认线路 disabled, enabled,默认不开启且只有一个策略能开启
1894
+ # @type KeepDomainRecords: String
1895
+ # @param SwitchPoolType: 调度模式:AUTO默认;STOP仅暂停不切换
1896
+ # @type SwitchPoolType: String
1897
+
1898
+ attr_accessor :InstanceId, :StrategyId, :Source, :MainAddressPoolSet, :FallbackAddressPoolSet, :StrategyName, :IsEnabled, :KeepDomainRecords, :SwitchPoolType
1899
+
1900
+ def initialize(instanceid=nil, strategyid=nil, source=nil, mainaddresspoolset=nil, fallbackaddresspoolset=nil, strategyname=nil, isenabled=nil, keepdomainrecords=nil, switchpooltype=nil)
1901
+ @InstanceId = instanceid
1902
+ @StrategyId = strategyid
1903
+ @Source = source
1904
+ @MainAddressPoolSet = mainaddresspoolset
1905
+ @FallbackAddressPoolSet = fallbackaddresspoolset
1906
+ @StrategyName = strategyname
1907
+ @IsEnabled = isenabled
1908
+ @KeepDomainRecords = keepdomainrecords
1909
+ @SwitchPoolType = switchpooltype
1910
+ end
1911
+
1912
+ def deserialize(params)
1913
+ @InstanceId = params['InstanceId']
1914
+ @StrategyId = params['StrategyId']
1915
+ unless params['Source'].nil?
1916
+ @Source = []
1917
+ params['Source'].each do |i|
1918
+ source_tmp = Source.new
1919
+ source_tmp.deserialize(i)
1920
+ @Source << source_tmp
1921
+ end
1922
+ end
1923
+ unless params['MainAddressPoolSet'].nil?
1924
+ @MainAddressPoolSet = []
1925
+ params['MainAddressPoolSet'].each do |i|
1926
+ mainaddresspool_tmp = MainAddressPool.new
1927
+ mainaddresspool_tmp.deserialize(i)
1928
+ @MainAddressPoolSet << mainaddresspool_tmp
1929
+ end
1930
+ end
1931
+ unless params['FallbackAddressPoolSet'].nil?
1932
+ @FallbackAddressPoolSet = []
1933
+ params['FallbackAddressPoolSet'].each do |i|
1934
+ mainaddresspool_tmp = MainAddressPool.new
1935
+ mainaddresspool_tmp.deserialize(i)
1936
+ @FallbackAddressPoolSet << mainaddresspool_tmp
1937
+ end
1938
+ end
1939
+ @StrategyName = params['StrategyName']
1940
+ @IsEnabled = params['IsEnabled']
1941
+ @KeepDomainRecords = params['KeepDomainRecords']
1942
+ @SwitchPoolType = params['SwitchPoolType']
1943
+ end
1944
+ end
1945
+
1946
+ # ModifyStrategy返回参数结构体
1947
+ class ModifyStrategyResponse < TencentCloud::Common::AbstractModel
1948
+ # @param Msg: 是否成功
1949
+ # 注意:此字段可能返回 null,表示取不到有效值。
1950
+ # @type Msg: String
1951
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1952
+ # @type RequestId: String
1953
+
1954
+ attr_accessor :Msg, :RequestId
1955
+
1956
+ def initialize(msg=nil, requestid=nil)
1957
+ @Msg = msg
1958
+ @RequestId = requestid
1959
+ end
1960
+
1961
+ def deserialize(params)
1962
+ @Msg = params['Msg']
1963
+ @RequestId = params['RequestId']
1964
+ end
1965
+ end
1966
+
1967
+ # 监控器详情
1968
+ class MonitorDetail < TencentCloud::Common::AbstractModel
1969
+ # @param MonitorId: 探测规则id
1970
+ # @type MonitorId: Integer
1971
+ # @param MonitorName: 监控器名称
1972
+ # 注意:此字段可能返回 null,表示取不到有效值。
1973
+ # @type MonitorName: String
1974
+ # @param Uin: 所属用户
1975
+ # 注意:此字段可能返回 null,表示取不到有效值。
1976
+ # @type Uin: String
1977
+ # @param DetectorGroupIds: 监控节点id组
1978
+ # 注意:此字段可能返回 null,表示取不到有效值。
1979
+ # @type DetectorGroupIds: Array
1980
+ # @param CheckProtocol: 探测协议 PING TCP HTTP HTTPS
1981
+ # 注意:此字段可能返回 null,表示取不到有效值。
1982
+ # @type CheckProtocol: String
1983
+ # @param CheckInterval: 探测周期
1984
+ # 注意:此字段可能返回 null,表示取不到有效值。
1985
+ # @type CheckInterval: Integer
1986
+ # @param PingNum: 发包数量
1987
+ # 注意:此字段可能返回 null,表示取不到有效值。
1988
+ # @type PingNum: Integer
1989
+ # @param TcpPort: tcp端口
1990
+ # 注意:此字段可能返回 null,表示取不到有效值。
1991
+ # @type TcpPort: Integer
1992
+ # @param Host: 探测 host
1993
+ # 注意:此字段可能返回 null,表示取不到有效值。
1994
+ # @type Host: String
1995
+ # @param Path: 探测路径
1996
+ # 注意:此字段可能返回 null,表示取不到有效值。
1997
+ # @type Path: String
1998
+ # @param ReturnCodeThreshold: 返回值阈值
1999
+ # 注意:此字段可能返回 null,表示取不到有效值。
2000
+ # @type ReturnCodeThreshold: Integer
2001
+ # @param EnableRedirect: 是否开启3xx重定向跟随 ENABLED DISABLED
2002
+ # 注意:此字段可能返回 null,表示取不到有效值。
2003
+ # @type EnableRedirect: String
2004
+ # @param EnableSni: 是否启用 sni
2005
+ # ENABLED DISABLED
2006
+ # 注意:此字段可能返回 null,表示取不到有效值。
2007
+ # @type EnableSni: String
2008
+ # @param PacketLossRate: 丢包率上限
2009
+ # 注意:此字段可能返回 null,表示取不到有效值。
2010
+ # @type PacketLossRate: Integer
2011
+ # @param Timeout: 探测超时
2012
+ # 注意:此字段可能返回 null,表示取不到有效值。
2013
+ # @type Timeout: Integer
2014
+ # @param FailTimes: 失败次数
2015
+ # 注意:此字段可能返回 null,表示取不到有效值。
2016
+ # @type FailTimes: Integer
2017
+ # @param FailRate: 失败率上限100
2018
+ # 注意:此字段可能返回 null,表示取不到有效值。
2019
+ # @type FailRate: Integer
2020
+ # @param CreatedOn: 创建时间
2021
+ # 注意:此字段可能返回 null,表示取不到有效值。
2022
+ # @type CreatedOn: String
2023
+ # @param UpdatedOn: 更新时间
2024
+ # 注意:此字段可能返回 null,表示取不到有效值。
2025
+ # @type UpdatedOn: String
2026
+ # @param DetectorStyle: 监控节点类型
2027
+ # AUTO INTERNAL OVERSEAS IPV6 ALL
2028
+ # 注意:此字段可能返回 null,表示取不到有效值。
2029
+ # @type DetectorStyle: String
2030
+ # @param DetectNum: 探测次数
2031
+ # 注意:此字段可能返回 null,表示取不到有效值。
2032
+ # @type DetectNum: Integer
2033
+ # @param ContinuePeriod: 持续周期数
2034
+ # 注意:此字段可能返回 null,表示取不到有效值。
2035
+ # @type ContinuePeriod: Integer
2036
+
2037
+ attr_accessor :MonitorId, :MonitorName, :Uin, :DetectorGroupIds, :CheckProtocol, :CheckInterval, :PingNum, :TcpPort, :Host, :Path, :ReturnCodeThreshold, :EnableRedirect, :EnableSni, :PacketLossRate, :Timeout, :FailTimes, :FailRate, :CreatedOn, :UpdatedOn, :DetectorStyle, :DetectNum, :ContinuePeriod
2038
+
2039
+ def initialize(monitorid=nil, monitorname=nil, uin=nil, detectorgroupids=nil, checkprotocol=nil, checkinterval=nil, pingnum=nil, tcpport=nil, host=nil, path=nil, returncodethreshold=nil, enableredirect=nil, enablesni=nil, packetlossrate=nil, timeout=nil, failtimes=nil, failrate=nil, createdon=nil, updatedon=nil, detectorstyle=nil, detectnum=nil, continueperiod=nil)
2040
+ @MonitorId = monitorid
2041
+ @MonitorName = monitorname
2042
+ @Uin = uin
2043
+ @DetectorGroupIds = detectorgroupids
2044
+ @CheckProtocol = checkprotocol
2045
+ @CheckInterval = checkinterval
2046
+ @PingNum = pingnum
2047
+ @TcpPort = tcpport
2048
+ @Host = host
2049
+ @Path = path
2050
+ @ReturnCodeThreshold = returncodethreshold
2051
+ @EnableRedirect = enableredirect
2052
+ @EnableSni = enablesni
2053
+ @PacketLossRate = packetlossrate
2054
+ @Timeout = timeout
2055
+ @FailTimes = failtimes
2056
+ @FailRate = failrate
2057
+ @CreatedOn = createdon
2058
+ @UpdatedOn = updatedon
2059
+ @DetectorStyle = detectorstyle
2060
+ @DetectNum = detectnum
2061
+ @ContinuePeriod = continueperiod
2062
+ end
2063
+
2064
+ def deserialize(params)
2065
+ @MonitorId = params['MonitorId']
2066
+ @MonitorName = params['MonitorName']
2067
+ @Uin = params['Uin']
2068
+ @DetectorGroupIds = params['DetectorGroupIds']
2069
+ @CheckProtocol = params['CheckProtocol']
2070
+ @CheckInterval = params['CheckInterval']
2071
+ @PingNum = params['PingNum']
2072
+ @TcpPort = params['TcpPort']
2073
+ @Host = params['Host']
2074
+ @Path = params['Path']
2075
+ @ReturnCodeThreshold = params['ReturnCodeThreshold']
2076
+ @EnableRedirect = params['EnableRedirect']
2077
+ @EnableSni = params['EnableSni']
2078
+ @PacketLossRate = params['PacketLossRate']
2079
+ @Timeout = params['Timeout']
2080
+ @FailTimes = params['FailTimes']
2081
+ @FailRate = params['FailRate']
2082
+ @CreatedOn = params['CreatedOn']
2083
+ @UpdatedOn = params['UpdatedOn']
2084
+ @DetectorStyle = params['DetectorStyle']
2085
+ @DetectNum = params['DetectNum']
2086
+ @ContinuePeriod = params['ContinuePeriod']
2087
+ end
2088
+ end
2089
+
2090
+ # 配额
2091
+ class Quota < TencentCloud::Common::AbstractModel
2092
+ # @param TaskQuota: 探测任务配额
2093
+ # 注意:此字段可能返回 null,表示取不到有效值。
2094
+ # @type TaskQuota: Integer
2095
+ # @param PoolQuota: 地址池配额
2096
+ # 注意:此字段可能返回 null,表示取不到有效值。
2097
+ # @type PoolQuota: Integer
2098
+ # @param AddressQuota: 地址配额
2099
+ # 注意:此字段可能返回 null,表示取不到有效值。
2100
+ # @type AddressQuota: Integer
2101
+ # @param MonitorQuota: 探点资源数
2102
+ # 注意:此字段可能返回 null,表示取不到有效值。
2103
+ # @type MonitorQuota: Integer
2104
+ # @param MessageQuota: 消息资源数
2105
+ # 注意:此字段可能返回 null,表示取不到有效值。
2106
+ # @type MessageQuota: Integer
2107
+ # @param UsedTaskQuota: 已使用探测任务数
2108
+ # 注意:此字段可能返回 null,表示取不到有效值。
2109
+ # @type UsedTaskQuota: Integer
2110
+ # @param UsedFreeInstanceNum: 已使用体验实例数
2111
+ # 注意:此字段可能返回 null,表示取不到有效值。
2112
+ # @type UsedFreeInstanceNum: Integer
2113
+ # @param UsedBillInstanceNum: 已使用付费实例
2114
+ # 注意:此字段可能返回 null,表示取不到有效值。
2115
+ # @type UsedBillInstanceNum: Integer
2116
+ # @param FreePackageNum: 体验套餐总数
2117
+ # 注意:此字段可能返回 null,表示取不到有效值。
2118
+ # @type FreePackageNum: Integer
2119
+ # @param UsedBillPackageNum: 已使用付费套餐数
2120
+ # 注意:此字段可能返回 null,表示取不到有效值。
2121
+ # @type UsedBillPackageNum: Integer
2122
+ # @param BillPackageNum: 付费套餐总数
2123
+ # 注意:此字段可能返回 null,表示取不到有效值。
2124
+ # @type BillPackageNum: Integer
2125
+
2126
+ attr_accessor :TaskQuota, :PoolQuota, :AddressQuota, :MonitorQuota, :MessageQuota, :UsedTaskQuota, :UsedFreeInstanceNum, :UsedBillInstanceNum, :FreePackageNum, :UsedBillPackageNum, :BillPackageNum
2127
+
2128
+ def initialize(taskquota=nil, poolquota=nil, addressquota=nil, monitorquota=nil, messagequota=nil, usedtaskquota=nil, usedfreeinstancenum=nil, usedbillinstancenum=nil, freepackagenum=nil, usedbillpackagenum=nil, billpackagenum=nil)
2129
+ @TaskQuota = taskquota
2130
+ @PoolQuota = poolquota
2131
+ @AddressQuota = addressquota
2132
+ @MonitorQuota = monitorquota
2133
+ @MessageQuota = messagequota
2134
+ @UsedTaskQuota = usedtaskquota
2135
+ @UsedFreeInstanceNum = usedfreeinstancenum
2136
+ @UsedBillInstanceNum = usedbillinstancenum
2137
+ @FreePackageNum = freepackagenum
2138
+ @UsedBillPackageNum = usedbillpackagenum
2139
+ @BillPackageNum = billpackagenum
2140
+ end
2141
+
2142
+ def deserialize(params)
2143
+ @TaskQuota = params['TaskQuota']
2144
+ @PoolQuota = params['PoolQuota']
2145
+ @AddressQuota = params['AddressQuota']
2146
+ @MonitorQuota = params['MonitorQuota']
2147
+ @MessageQuota = params['MessageQuota']
2148
+ @UsedTaskQuota = params['UsedTaskQuota']
2149
+ @UsedFreeInstanceNum = params['UsedFreeInstanceNum']
2150
+ @UsedBillInstanceNum = params['UsedBillInstanceNum']
2151
+ @FreePackageNum = params['FreePackageNum']
2152
+ @UsedBillPackageNum = params['UsedBillPackageNum']
2153
+ @BillPackageNum = params['BillPackageNum']
2154
+ end
2155
+ end
2156
+
2157
+ # 查询时过滤条件。
2158
+ class ResourceFilter < TencentCloud::Common::AbstractModel
2159
+ # @param Name: 过滤字段名,支持的列表如下:
2160
+ # - type:主资源类型,CDN。
2161
+ # - instanceId:IGTM实例ID。此为必传参数,未传将导致接口查询失败。
2162
+ # @type Name: String
2163
+ # @param Value: 过滤字段值。
2164
+ # @type Value: Array
2165
+ # @param Fuzzy: 是否启用模糊查询,仅支持过滤字段名为domain。
2166
+ # 模糊查询时,Value长度最大为1,否则Value长度最大为5。(预留字段,暂未使用)
2167
+ # @type Fuzzy: Boolean
2168
+
2169
+ attr_accessor :Name, :Value, :Fuzzy
2170
+
2171
+ def initialize(name=nil, value=nil, fuzzy=nil)
2172
+ @Name = name
2173
+ @Value = value
2174
+ @Fuzzy = fuzzy
2175
+ end
2176
+
2177
+ def deserialize(params)
2178
+ @Name = params['Name']
2179
+ @Value = params['Value']
2180
+ @Fuzzy = params['Fuzzy']
2181
+ end
2182
+ end
2183
+
2184
+ # 解析线路
2185
+ class Source < TencentCloud::Common::AbstractModel
2186
+ # @param DnsLineId: 解析请求来源线路id
2187
+ # @type DnsLineId: Integer
2188
+ # @param Name: 解析请求来源线路名
2189
+ # 注意:此字段可能返回 null,表示取不到有效值。
2190
+ # @type Name: String
2191
+
2192
+ attr_accessor :DnsLineId, :Name
2193
+
2194
+ def initialize(dnslineid=nil, name=nil)
2195
+ @DnsLineId = dnslineid
2196
+ @Name = name
2197
+ end
2198
+
2199
+ def deserialize(params)
2200
+ @DnsLineId = params['DnsLineId']
2201
+ @Name = params['Name']
2202
+ end
2203
+ end
2204
+
2205
+ # 地址池
2206
+ class Strategy < TencentCloud::Common::AbstractModel
2207
+ # @param InstanceId: 实例id
2208
+ # 注意:此字段可能返回 null,表示取不到有效值。
2209
+ # @type InstanceId: String
2210
+ # @param Name: 策略名
2211
+ # 注意:此字段可能返回 null,表示取不到有效值。
2212
+ # @type Name: String
2213
+ # @param Source: 地址来源
2214
+ # 注意:此字段可能返回 null,表示取不到有效值。
2215
+ # @type Source: Array
2216
+ # @param StrategyId: 策略id
2217
+ # 注意:此字段可能返回 null,表示取不到有效值。
2218
+ # @type StrategyId: Integer
2219
+ # @param Status: 健康状态:ok健康、warn风险、down故障
2220
+ # 注意:此字段可能返回 null,表示取不到有效值。
2221
+ # @type Status: String
2222
+ # @param ActivateMainPoolId: 生效的主力池id,null则为未知
2223
+ # 注意:此字段可能返回 null,表示取不到有效值。
2224
+ # @type ActivateMainPoolId: Integer
2225
+ # @param ActivateLevel: 当前生效地址池所在级数,为0则代表兜底生效,null则为未知
2226
+ # 注意:此字段可能返回 null,表示取不到有效值。
2227
+ # @type ActivateLevel: Integer
2228
+ # @param ActivePoolType: 当前生效地址池集合类型:main主力;fallback兜底
2229
+ # 注意:此字段可能返回 null,表示取不到有效值。
2230
+ # @type ActivePoolType: String
2231
+ # @param ActiveTrafficStrategy: 当前生效地址池流量策略:all解析所有;weight负载均衡
2232
+ # 注意:此字段可能返回 null,表示取不到有效值。
2233
+ # @type ActiveTrafficStrategy: String
2234
+ # @param MonitorNum: 监控器数量
2235
+ # 注意:此字段可能返回 null,表示取不到有效值。
2236
+ # @type MonitorNum: Integer
2237
+ # @param IsEnabled: 是否开启:ENABLED开启;DISABLED关闭
2238
+ # 注意:此字段可能返回 null,表示取不到有效值。
2239
+ # @type IsEnabled: String
2240
+ # @param KeepDomainRecords: 是否保留线路:enabled保留,disabled不保留,只保留默认线路
2241
+ # 注意:此字段可能返回 null,表示取不到有效值。
2242
+ # @type KeepDomainRecords: String
2243
+ # @param SwitchPoolType: 调度模式:AUTO默认;PAUSE仅暂停不切换
2244
+ # 注意:此字段可能返回 null,表示取不到有效值。
2245
+ # @type SwitchPoolType: String
2246
+ # @param CreatedOn: 创建时间
2247
+ # 注意:此字段可能返回 null,表示取不到有效值。
2248
+ # @type CreatedOn: String
2249
+ # @param UpdatedOn: 更新时间
2250
+ # 注意:此字段可能返回 null,表示取不到有效值。
2251
+ # @type UpdatedOn: String
2252
+
2253
+ attr_accessor :InstanceId, :Name, :Source, :StrategyId, :Status, :ActivateMainPoolId, :ActivateLevel, :ActivePoolType, :ActiveTrafficStrategy, :MonitorNum, :IsEnabled, :KeepDomainRecords, :SwitchPoolType, :CreatedOn, :UpdatedOn
2254
+
2255
+ def initialize(instanceid=nil, name=nil, source=nil, strategyid=nil, status=nil, activatemainpoolid=nil, activatelevel=nil, activepooltype=nil, activetrafficstrategy=nil, monitornum=nil, isenabled=nil, keepdomainrecords=nil, switchpooltype=nil, createdon=nil, updatedon=nil)
2256
+ @InstanceId = instanceid
2257
+ @Name = name
2258
+ @Source = source
2259
+ @StrategyId = strategyid
2260
+ @Status = status
2261
+ @ActivateMainPoolId = activatemainpoolid
2262
+ @ActivateLevel = activatelevel
2263
+ @ActivePoolType = activepooltype
2264
+ @ActiveTrafficStrategy = activetrafficstrategy
2265
+ @MonitorNum = monitornum
2266
+ @IsEnabled = isenabled
2267
+ @KeepDomainRecords = keepdomainrecords
2268
+ @SwitchPoolType = switchpooltype
2269
+ @CreatedOn = createdon
2270
+ @UpdatedOn = updatedon
2271
+ end
2272
+
2273
+ def deserialize(params)
2274
+ @InstanceId = params['InstanceId']
2275
+ @Name = params['Name']
2276
+ unless params['Source'].nil?
2277
+ @Source = []
2278
+ params['Source'].each do |i|
2279
+ source_tmp = Source.new
2280
+ source_tmp.deserialize(i)
2281
+ @Source << source_tmp
2282
+ end
2283
+ end
2284
+ @StrategyId = params['StrategyId']
2285
+ @Status = params['Status']
2286
+ @ActivateMainPoolId = params['ActivateMainPoolId']
2287
+ @ActivateLevel = params['ActivateLevel']
2288
+ @ActivePoolType = params['ActivePoolType']
2289
+ @ActiveTrafficStrategy = params['ActiveTrafficStrategy']
2290
+ @MonitorNum = params['MonitorNum']
2291
+ @IsEnabled = params['IsEnabled']
2292
+ @KeepDomainRecords = params['KeepDomainRecords']
2293
+ @SwitchPoolType = params['SwitchPoolType']
2294
+ @CreatedOn = params['CreatedOn']
2295
+ @UpdatedOn = params['UpdatedOn']
2296
+ end
2297
+ end
2298
+
2299
+ # 策略详情
2300
+ class StrategyDetail < TencentCloud::Common::AbstractModel
2301
+ # @param InstanceId: 实例id
2302
+ # 注意:此字段可能返回 null,表示取不到有效值。
2303
+ # @type InstanceId: String
2304
+ # @param StrategyId: 策略id
2305
+ # 注意:此字段可能返回 null,表示取不到有效值。
2306
+ # @type StrategyId: Integer
2307
+ # @param Name: 策略名
2308
+ # 注意:此字段可能返回 null,表示取不到有效值。
2309
+ # @type Name: String
2310
+ # @param Source: 线路
2311
+ # 注意:此字段可能返回 null,表示取不到有效值。
2312
+ # @type Source: Array
2313
+ # @param MainAddressPoolSet: 主力地址池集合
2314
+ # 注意:此字段可能返回 null,表示取不到有效值。
2315
+ # @type MainAddressPoolSet: Array
2316
+ # @param FallbackAddressPoolSet: 兜底地址池id
2317
+ # 注意:此字段可能返回 null,表示取不到有效值。
2318
+ # @type FallbackAddressPoolSet: Array
2319
+ # @param KeepDomainRecords: 是否保留线路:enabled保留,disabled不保留,只保留默认线路
2320
+ # 注意:此字段可能返回 null,表示取不到有效值。
2321
+ # @type KeepDomainRecords: String
2322
+ # @param ActivateMainPoolId: 生效主力地址池id
2323
+ # 注意:此字段可能返回 null,表示取不到有效值。
2324
+ # @type ActivateMainPoolId: Integer
2325
+ # @param CreatedOn: 创建时间
2326
+ # 注意:此字段可能返回 null,表示取不到有效值。
2327
+ # @type CreatedOn: String
2328
+ # @param UpdatedOn: 更新时间
2329
+ # 注意:此字段可能返回 null,表示取不到有效值。
2330
+ # @type UpdatedOn: String
2331
+ # @param SwitchPoolType: 调度模式:AUTO默认;PAUSE仅暂停不切换
2332
+ # 注意:此字段可能返回 null,表示取不到有效值。
2333
+ # @type SwitchPoolType: String
2334
+
2335
+ attr_accessor :InstanceId, :StrategyId, :Name, :Source, :MainAddressPoolSet, :FallbackAddressPoolSet, :KeepDomainRecords, :ActivateMainPoolId, :CreatedOn, :UpdatedOn, :SwitchPoolType
2336
+
2337
+ def initialize(instanceid=nil, strategyid=nil, name=nil, source=nil, mainaddresspoolset=nil, fallbackaddresspoolset=nil, keepdomainrecords=nil, activatemainpoolid=nil, createdon=nil, updatedon=nil, switchpooltype=nil)
2338
+ @InstanceId = instanceid
2339
+ @StrategyId = strategyid
2340
+ @Name = name
2341
+ @Source = source
2342
+ @MainAddressPoolSet = mainaddresspoolset
2343
+ @FallbackAddressPoolSet = fallbackaddresspoolset
2344
+ @KeepDomainRecords = keepdomainrecords
2345
+ @ActivateMainPoolId = activatemainpoolid
2346
+ @CreatedOn = createdon
2347
+ @UpdatedOn = updatedon
2348
+ @SwitchPoolType = switchpooltype
2349
+ end
2350
+
2351
+ def deserialize(params)
2352
+ @InstanceId = params['InstanceId']
2353
+ @StrategyId = params['StrategyId']
2354
+ @Name = params['Name']
2355
+ unless params['Source'].nil?
2356
+ @Source = []
2357
+ params['Source'].each do |i|
2358
+ source_tmp = Source.new
2359
+ source_tmp.deserialize(i)
2360
+ @Source << source_tmp
2361
+ end
2362
+ end
2363
+ unless params['MainAddressPoolSet'].nil?
2364
+ @MainAddressPoolSet = []
2365
+ params['MainAddressPoolSet'].each do |i|
2366
+ mainaddresspool_tmp = MainAddressPool.new
2367
+ mainaddresspool_tmp.deserialize(i)
2368
+ @MainAddressPoolSet << mainaddresspool_tmp
2369
+ end
2370
+ end
2371
+ unless params['FallbackAddressPoolSet'].nil?
2372
+ @FallbackAddressPoolSet = []
2373
+ params['FallbackAddressPoolSet'].each do |i|
2374
+ mainaddresspool_tmp = MainAddressPool.new
2375
+ mainaddresspool_tmp.deserialize(i)
2376
+ @FallbackAddressPoolSet << mainaddresspool_tmp
2377
+ end
2378
+ end
2379
+ @KeepDomainRecords = params['KeepDomainRecords']
2380
+ @ActivateMainPoolId = params['ActivateMainPoolId']
2381
+ @CreatedOn = params['CreatedOn']
2382
+ @UpdatedOn = params['UpdatedOn']
2383
+ @SwitchPoolType = params['SwitchPoolType']
2384
+ end
2385
+ end
2386
+
2387
+ end
2388
+ end
2389
+ end
2390
+