tencentcloud-sdk-mna 3.0.861 → 3.0.862

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98c9ec12216abc1f719fdd75eab35b57be1fabed
4
- data.tar.gz: e2bcfd7fe59234f315d5131e73222123b3318549
3
+ metadata.gz: a32ba412f93a968a42a112b78df948007be9ee12
4
+ data.tar.gz: e3b1ca814267bf41103c5e535be60298cc2566b4
5
5
  SHA512:
6
- metadata.gz: b63255df1dc4a35ea2c77951568866cfaf32eae1b8de77bed564eef552c88e0658728c1a1008d0bf99489f530348579392d88eab228cac7946fb834712867b5b
7
- data.tar.gz: 5759f428ecbae9478124e1e6b7d5e5e2dfa3672b22540830bbd5bb5d2ca2b7ed2dd5218ed97fa4f42a04e21baa2baf6620a31e6198bc3f9d904d45e851b5c9b9
6
+ metadata.gz: 614e2f01815f5f8acaa2b8419926fd83157b12c68e3e1593db521f64e8e8d800327d9d43c9e8080aae37b3d89f953b93b84332acf7776b5a3c7bea463ccc9f24
7
+ data.tar.gz: d24817546f9eca8c99c2afbd140a56aea48e5566630ca55c9b7c35c5561b188e39ec49afc8535db15480bf593cb96e6251fcb5f8adc895619355747a1d42a361
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.861
1
+ 3.0.862
@@ -77,6 +77,30 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 新建分组
81
+
82
+ # @param request: Request instance for AddGroup.
83
+ # @type request: :class:`Tencentcloud::mna::V20210119::AddGroupRequest`
84
+ # @rtype: :class:`Tencentcloud::mna::V20210119::AddGroupResponse`
85
+ def AddGroup(request)
86
+ body = send_request('AddGroup', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = AddGroupResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
80
104
  # 添加硬件设备,生成未激活的硬件设备,可支持批量添加
81
105
 
82
106
  # @param request: Request instance for AddHardware.
@@ -173,6 +197,30 @@ module TencentCloud
173
197
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
198
  end
175
199
 
200
+ # 删除分组
201
+
202
+ # @param request: Request instance for DeleteGroup.
203
+ # @type request: :class:`Tencentcloud::mna::V20210119::DeleteGroupRequest`
204
+ # @rtype: :class:`Tencentcloud::mna::V20210119::DeleteGroupResponse`
205
+ def DeleteGroup(request)
206
+ body = send_request('DeleteGroup', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = DeleteGroupResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
176
224
  # 移动网络停止Qos加速过程
177
225
 
178
226
  # @param request: Request instance for DeleteQos.
@@ -389,6 +437,78 @@ module TencentCloud
389
437
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
438
  end
391
439
 
440
+ # 获取指定区域,指定时间点数据流量使用情况
441
+
442
+ # @param request: Request instance for GetFlowStatisticByRegion.
443
+ # @type request: :class:`Tencentcloud::mna::V20210119::GetFlowStatisticByRegionRequest`
444
+ # @rtype: :class:`Tencentcloud::mna::V20210119::GetFlowStatisticByRegionResponse`
445
+ def GetFlowStatisticByRegion(request)
446
+ body = send_request('GetFlowStatisticByRegion', request.serialize)
447
+ response = JSON.parse(body)
448
+ if response['Response'].key?('Error') == false
449
+ model = GetFlowStatisticByRegionResponse.new
450
+ model.deserialize(response['Response'])
451
+ model
452
+ else
453
+ code = response['Response']['Error']['Code']
454
+ message = response['Response']['Error']['Message']
455
+ reqid = response['Response']['RequestId']
456
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
457
+ end
458
+ rescue TencentCloud::Common::TencentCloudSDKException => e
459
+ raise e
460
+ rescue StandardError => e
461
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
462
+ end
463
+
464
+ # 查看分组详细信息
465
+
466
+ # @param request: Request instance for GetGroupDetail.
467
+ # @type request: :class:`Tencentcloud::mna::V20210119::GetGroupDetailRequest`
468
+ # @rtype: :class:`Tencentcloud::mna::V20210119::GetGroupDetailResponse`
469
+ def GetGroupDetail(request)
470
+ body = send_request('GetGroupDetail', request.serialize)
471
+ response = JSON.parse(body)
472
+ if response['Response'].key?('Error') == false
473
+ model = GetGroupDetailResponse.new
474
+ model.deserialize(response['Response'])
475
+ model
476
+ else
477
+ code = response['Response']['Error']['Code']
478
+ message = response['Response']['Error']['Message']
479
+ reqid = response['Response']['RequestId']
480
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
481
+ end
482
+ rescue TencentCloud::Common::TencentCloudSDKException => e
483
+ raise e
484
+ rescue StandardError => e
485
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
486
+ end
487
+
488
+ # 获取分组列表
489
+
490
+ # @param request: Request instance for GetGroupList.
491
+ # @type request: :class:`Tencentcloud::mna::V20210119::GetGroupListRequest`
492
+ # @rtype: :class:`Tencentcloud::mna::V20210119::GetGroupListResponse`
493
+ def GetGroupList(request)
494
+ body = send_request('GetGroupList', request.serialize)
495
+ response = JSON.parse(body)
496
+ if response['Response'].key?('Error') == false
497
+ model = GetGroupListResponse.new
498
+ model.deserialize(response['Response'])
499
+ model
500
+ else
501
+ code = response['Response']['Error']['Code']
502
+ message = response['Response']['Error']['Message']
503
+ reqid = response['Response']['RequestId']
504
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
505
+ end
506
+ rescue TencentCloud::Common::TencentCloudSDKException => e
507
+ raise e
508
+ rescue StandardError => e
509
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
+ end
511
+
392
512
  # 获取厂商硬件列表
393
513
 
394
514
  # @param request: Request instance for GetHardwareList.
@@ -533,6 +653,54 @@ module TencentCloud
533
653
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
654
  end
535
655
 
656
+ # 向已存在分组中添加设备
657
+
658
+ # @param request: Request instance for GroupAddDevice.
659
+ # @type request: :class:`Tencentcloud::mna::V20210119::GroupAddDeviceRequest`
660
+ # @rtype: :class:`Tencentcloud::mna::V20210119::GroupAddDeviceResponse`
661
+ def GroupAddDevice(request)
662
+ body = send_request('GroupAddDevice', request.serialize)
663
+ response = JSON.parse(body)
664
+ if response['Response'].key?('Error') == false
665
+ model = GroupAddDeviceResponse.new
666
+ model.deserialize(response['Response'])
667
+ model
668
+ else
669
+ code = response['Response']['Error']['Code']
670
+ message = response['Response']['Error']['Message']
671
+ reqid = response['Response']['RequestId']
672
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
673
+ end
674
+ rescue TencentCloud::Common::TencentCloudSDKException => e
675
+ raise e
676
+ rescue StandardError => e
677
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
+ end
679
+
680
+ # 删除分组中的设备
681
+
682
+ # @param request: Request instance for GroupDeleteDevice.
683
+ # @type request: :class:`Tencentcloud::mna::V20210119::GroupDeleteDeviceRequest`
684
+ # @rtype: :class:`Tencentcloud::mna::V20210119::GroupDeleteDeviceResponse`
685
+ def GroupDeleteDevice(request)
686
+ body = send_request('GroupDeleteDevice', request.serialize)
687
+ response = JSON.parse(body)
688
+ if response['Response'].key?('Error') == false
689
+ model = GroupDeleteDeviceResponse.new
690
+ model.deserialize(response['Response'])
691
+ model
692
+ else
693
+ code = response['Response']['Error']['Code']
694
+ message = response['Response']['Error']['Message']
695
+ reqid = response['Response']['RequestId']
696
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
697
+ end
698
+ rescue TencentCloud::Common::TencentCloudSDKException => e
699
+ raise e
700
+ rescue StandardError => e
701
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
702
+ end
703
+
536
704
  # 可开启/关闭流量包自动续费,不影响当前周期正在生效的流量包。
537
705
 
538
706
  # @param request: Request instance for ModifyPackageRenewFlag.
@@ -581,6 +749,30 @@ module TencentCloud
581
749
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
750
  end
583
751
 
752
+ # 设置用户流量告警信息接口,通过该接口设置流量包告警阈值以及告警时回调的url和key
753
+
754
+ # @param request: Request instance for SetNotifyUrl.
755
+ # @type request: :class:`Tencentcloud::mna::V20210119::SetNotifyUrlRequest`
756
+ # @rtype: :class:`Tencentcloud::mna::V20210119::SetNotifyUrlResponse`
757
+ def SetNotifyUrl(request)
758
+ body = send_request('SetNotifyUrl', request.serialize)
759
+ response = JSON.parse(body)
760
+ if response['Response'].key?('Error') == false
761
+ model = SetNotifyUrlResponse.new
762
+ model.deserialize(response['Response'])
763
+ model
764
+ else
765
+ code = response['Response']['Error']['Code']
766
+ message = response['Response']['Error']['Message']
767
+ reqid = response['Response']['RequestId']
768
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
769
+ end
770
+ rescue TencentCloud::Common::TencentCloudSDKException => e
771
+ raise e
772
+ rescue StandardError => e
773
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
774
+ end
775
+
584
776
  # 更新设备信息
585
777
 
586
778
  # @param request: Request instance for UpdateDevice.
@@ -605,6 +797,30 @@ module TencentCloud
605
797
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
798
  end
607
799
 
800
+ # 更新分组备注
801
+
802
+ # @param request: Request instance for UpdateGroup.
803
+ # @type request: :class:`Tencentcloud::mna::V20210119::UpdateGroupRequest`
804
+ # @rtype: :class:`Tencentcloud::mna::V20210119::UpdateGroupResponse`
805
+ def UpdateGroup(request)
806
+ body = send_request('UpdateGroup', request.serialize)
807
+ response = JSON.parse(body)
808
+ if response['Response'].key?('Error') == false
809
+ model = UpdateGroupResponse.new
810
+ model.deserialize(response['Response'])
811
+ model
812
+ else
813
+ code = response['Response']['Error']['Code']
814
+ message = response['Response']['Error']['Message']
815
+ reqid = response['Response']['RequestId']
816
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
817
+ end
818
+ rescue TencentCloud::Common::TencentCloudSDKException => e
819
+ raise e
820
+ rescue StandardError => e
821
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
822
+ end
823
+
608
824
  # 更新硬件信息
609
825
 
610
826
  # @param request: Request instance for UpdateHardware.
@@ -48,10 +48,16 @@ module TencentCloud
48
48
  # @param GroupName: 设备分组名称,预留参数,需要分组时传入GroupId
49
49
  # 注意:此字段可能返回 null,表示取不到有效值。
50
50
  # @type GroupName: String
51
+ # @param FlowTrunc: 设备无流量包处理方式,0: 按量付费,1: 截断加速
52
+ # 注意:此字段可能返回 null,表示取不到有效值。
53
+ # @type FlowTrunc: Integer
54
+ # @param DeviceId: 激活后的设备ID
55
+ # 注意:此字段可能返回 null,表示取不到有效值。
56
+ # @type DeviceId: String
51
57
 
52
- attr_accessor :Vendor, :SN, :DeviceName, :Description, :DataKey, :AccessScope, :LicensePayMode, :GroupId, :GroupName
58
+ attr_accessor :Vendor, :SN, :DeviceName, :Description, :DataKey, :AccessScope, :LicensePayMode, :GroupId, :GroupName, :FlowTrunc, :DeviceId
53
59
 
54
- def initialize(vendor=nil, sn=nil, devicename=nil, description=nil, datakey=nil, accessscope=nil, licensepaymode=nil, groupid=nil, groupname=nil)
60
+ def initialize(vendor=nil, sn=nil, devicename=nil, description=nil, datakey=nil, accessscope=nil, licensepaymode=nil, groupid=nil, groupname=nil, flowtrunc=nil, deviceid=nil)
55
61
  @Vendor = vendor
56
62
  @SN = sn
57
63
  @DeviceName = devicename
@@ -61,6 +67,8 @@ module TencentCloud
61
67
  @LicensePayMode = licensepaymode
62
68
  @GroupId = groupid
63
69
  @GroupName = groupname
70
+ @FlowTrunc = flowtrunc
71
+ @DeviceId = deviceid
64
72
  end
65
73
 
66
74
  def deserialize(params)
@@ -73,6 +81,8 @@ module TencentCloud
73
81
  @LicensePayMode = params['LicensePayMode']
74
82
  @GroupId = params['GroupId']
75
83
  @GroupName = params['GroupName']
84
+ @FlowTrunc = params['FlowTrunc']
85
+ @DeviceId = params['DeviceId']
76
86
  end
77
87
  end
78
88
 
@@ -152,10 +162,12 @@ module TencentCloud
152
162
  # @type GroupName: String
153
163
  # @param GroupId: 设备分组ID,非必选,如果不填写则默认设备无分组
154
164
  # @type GroupId: String
165
+ # @param FlowTrunc: 设备无流量包处理方式,0: 按量付费,1: 截断加速
166
+ # @type FlowTrunc: Integer
155
167
 
156
- attr_accessor :DeviceName, :Remark, :DataKey, :Encrypted, :AccessScope, :LicensePayMode, :GroupName, :GroupId
168
+ attr_accessor :DeviceName, :Remark, :DataKey, :Encrypted, :AccessScope, :LicensePayMode, :GroupName, :GroupId, :FlowTrunc
157
169
 
158
- def initialize(devicename=nil, remark=nil, datakey=nil, encrypted=nil, accessscope=nil, licensepaymode=nil, groupname=nil, groupid=nil)
170
+ def initialize(devicename=nil, remark=nil, datakey=nil, encrypted=nil, accessscope=nil, licensepaymode=nil, groupname=nil, groupid=nil, flowtrunc=nil)
159
171
  @DeviceName = devicename
160
172
  @Remark = remark
161
173
  @DataKey = datakey
@@ -164,6 +176,7 @@ module TencentCloud
164
176
  @LicensePayMode = licensepaymode
165
177
  @GroupName = groupname
166
178
  @GroupId = groupid
179
+ @FlowTrunc = flowtrunc
167
180
  end
168
181
 
169
182
  def deserialize(params)
@@ -175,6 +188,7 @@ module TencentCloud
175
188
  @LicensePayMode = params['LicensePayMode']
176
189
  @GroupName = params['GroupName']
177
190
  @GroupId = params['GroupId']
191
+ @FlowTrunc = params['FlowTrunc']
178
192
  end
179
193
  end
180
194
 
@@ -207,6 +221,46 @@ module TencentCloud
207
221
  end
208
222
  end
209
223
 
224
+ # AddGroup请求参数结构体
225
+ class AddGroupRequest < TencentCloud::Common::AbstractModel
226
+ # @param GroupName: 分组的名称
227
+ # @type GroupName: String
228
+ # @param Description: 分组的描述
229
+ # @type Description: String
230
+
231
+ attr_accessor :GroupName, :Description
232
+
233
+ def initialize(groupname=nil, description=nil)
234
+ @GroupName = groupname
235
+ @Description = description
236
+ end
237
+
238
+ def deserialize(params)
239
+ @GroupName = params['GroupName']
240
+ @Description = params['Description']
241
+ end
242
+ end
243
+
244
+ # AddGroup返回参数结构体
245
+ class AddGroupResponse < TencentCloud::Common::AbstractModel
246
+ # @param GroupId: 分组的唯一ID,仅做分组唯一区分
247
+ # @type GroupId: String
248
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
249
+ # @type RequestId: String
250
+
251
+ attr_accessor :GroupId, :RequestId
252
+
253
+ def initialize(groupid=nil, requestid=nil)
254
+ @GroupId = groupid
255
+ @RequestId = requestid
256
+ end
257
+
258
+ def deserialize(params)
259
+ @GroupId = params['GroupId']
260
+ @RequestId = params['RequestId']
261
+ end
262
+ end
263
+
210
264
  # AddHardware请求参数结构体
211
265
  class AddHardwareRequest < TencentCloud::Common::AbstractModel
212
266
  # @param Hardware: 硬件列表
@@ -476,6 +530,38 @@ module TencentCloud
476
530
  end
477
531
  end
478
532
 
533
+ # DeleteGroup请求参数结构体
534
+ class DeleteGroupRequest < TencentCloud::Common::AbstractModel
535
+ # @param GroupId: 删除指定分组
536
+ # @type GroupId: String
537
+
538
+ attr_accessor :GroupId
539
+
540
+ def initialize(groupid=nil)
541
+ @GroupId = groupid
542
+ end
543
+
544
+ def deserialize(params)
545
+ @GroupId = params['GroupId']
546
+ end
547
+ end
548
+
549
+ # DeleteGroup返回参数结构体
550
+ class DeleteGroupResponse < TencentCloud::Common::AbstractModel
551
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
552
+ # @type RequestId: String
553
+
554
+ attr_accessor :RequestId
555
+
556
+ def initialize(requestid=nil)
557
+ @RequestId = requestid
558
+ end
559
+
560
+ def deserialize(params)
561
+ @RequestId = params['RequestId']
562
+ end
563
+ end
564
+
479
565
  # DeleteQos请求参数结构体
480
566
  class DeleteQosRequest < TencentCloud::Common::AbstractModel
481
567
  # @param SessionId: 单次加速唯一 Id
@@ -615,10 +701,13 @@ module TencentCloud
615
701
  # @param GroupName: 设备分组名称
616
702
  # 注意:此字段可能返回 null,表示取不到有效值。
617
703
  # @type GroupName: String
704
+ # @param FlowTrunc: 设备无流量包处理方式,0: 按量付费,1: 截断加速
705
+ # 注意:此字段可能返回 null,表示取不到有效值。
706
+ # @type FlowTrunc: Integer
618
707
 
619
- attr_accessor :DeviceId, :DeviceName, :CreateTime, :LastTime, :Remark, :AccessScope, :LicensePayMode, :Payer, :GroupId, :GroupName
708
+ attr_accessor :DeviceId, :DeviceName, :CreateTime, :LastTime, :Remark, :AccessScope, :LicensePayMode, :Payer, :GroupId, :GroupName, :FlowTrunc
620
709
 
621
- def initialize(deviceid=nil, devicename=nil, createtime=nil, lasttime=nil, remark=nil, accessscope=nil, licensepaymode=nil, payer=nil, groupid=nil, groupname=nil)
710
+ def initialize(deviceid=nil, devicename=nil, createtime=nil, lasttime=nil, remark=nil, accessscope=nil, licensepaymode=nil, payer=nil, groupid=nil, groupname=nil, flowtrunc=nil)
622
711
  @DeviceId = deviceid
623
712
  @DeviceName = devicename
624
713
  @CreateTime = createtime
@@ -629,6 +718,7 @@ module TencentCloud
629
718
  @Payer = payer
630
719
  @GroupId = groupid
631
720
  @GroupName = groupname
721
+ @FlowTrunc = flowtrunc
632
722
  end
633
723
 
634
724
  def deserialize(params)
@@ -642,6 +732,7 @@ module TencentCloud
642
732
  @Payer = params['Payer']
643
733
  @GroupId = params['GroupId']
644
734
  @GroupName = params['GroupName']
735
+ @FlowTrunc = params['FlowTrunc']
645
736
  end
646
737
  end
647
738
 
@@ -1341,6 +1432,81 @@ module TencentCloud
1341
1432
  end
1342
1433
  end
1343
1434
 
1435
+ # GetFlowStatisticByRegion请求参数结构体
1436
+ class GetFlowStatisticByRegionRequest < TencentCloud::Common::AbstractModel
1437
+ # @param BeginTime: 开始查找时间
1438
+ # @type BeginTime: Integer
1439
+ # @param EndTime: 截止时间
1440
+ # @type EndTime: Integer
1441
+ # @param Type: 流量种类(1:上行流量,2:下行流量, 3: 上下行总和)
1442
+ # @type Type: Integer
1443
+ # @param TimeGranularity: 时间粒度(1:按小时统计,2:按天统计)
1444
+ # @type TimeGranularity: Integer
1445
+ # @param GatewayType: 网关类型。0:公有云网关;1:自有网关。
1446
+ # @type GatewayType: Integer
1447
+ # @param AccessRegion: 接入区域。取值范围:['MC','AP','EU','AM'] MC=中国大陆 AP=亚太 EU=欧洲 AM=美洲。不填代表全量区域。
1448
+ # @type AccessRegion: String
1449
+
1450
+ attr_accessor :BeginTime, :EndTime, :Type, :TimeGranularity, :GatewayType, :AccessRegion
1451
+
1452
+ def initialize(begintime=nil, endtime=nil, type=nil, timegranularity=nil, gatewaytype=nil, accessregion=nil)
1453
+ @BeginTime = begintime
1454
+ @EndTime = endtime
1455
+ @Type = type
1456
+ @TimeGranularity = timegranularity
1457
+ @GatewayType = gatewaytype
1458
+ @AccessRegion = accessregion
1459
+ end
1460
+
1461
+ def deserialize(params)
1462
+ @BeginTime = params['BeginTime']
1463
+ @EndTime = params['EndTime']
1464
+ @Type = params['Type']
1465
+ @TimeGranularity = params['TimeGranularity']
1466
+ @GatewayType = params['GatewayType']
1467
+ @AccessRegion = params['AccessRegion']
1468
+ end
1469
+ end
1470
+
1471
+ # GetFlowStatisticByRegion返回参数结构体
1472
+ class GetFlowStatisticByRegionResponse < TencentCloud::Common::AbstractModel
1473
+ # @param NetDetails: 流量详细信息
1474
+ # @type NetDetails: Array
1475
+ # @param MaxValue: 查找时间段流量使用最大值(单位:byte)
1476
+ # @type MaxValue: Float
1477
+ # @param AvgValue: 查找时间段流量使用平均值(单位:byte)
1478
+ # @type AvgValue: Float
1479
+ # @param TotalValue: 查找时间段流量使用总量(单位:byte)
1480
+ # @type TotalValue: Float
1481
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1482
+ # @type RequestId: String
1483
+
1484
+ attr_accessor :NetDetails, :MaxValue, :AvgValue, :TotalValue, :RequestId
1485
+
1486
+ def initialize(netdetails=nil, maxvalue=nil, avgvalue=nil, totalvalue=nil, requestid=nil)
1487
+ @NetDetails = netdetails
1488
+ @MaxValue = maxvalue
1489
+ @AvgValue = avgvalue
1490
+ @TotalValue = totalvalue
1491
+ @RequestId = requestid
1492
+ end
1493
+
1494
+ def deserialize(params)
1495
+ unless params['NetDetails'].nil?
1496
+ @NetDetails = []
1497
+ params['NetDetails'].each do |i|
1498
+ netdetails_tmp = NetDetails.new
1499
+ netdetails_tmp.deserialize(i)
1500
+ @NetDetails << netdetails_tmp
1501
+ end
1502
+ end
1503
+ @MaxValue = params['MaxValue']
1504
+ @AvgValue = params['AvgValue']
1505
+ @TotalValue = params['TotalValue']
1506
+ @RequestId = params['RequestId']
1507
+ end
1508
+ end
1509
+
1344
1510
  # GetFlowStatistic请求参数结构体
1345
1511
  class GetFlowStatisticRequest < TencentCloud::Common::AbstractModel
1346
1512
  # @param DeviceId: 设备ID
@@ -1424,6 +1590,135 @@ module TencentCloud
1424
1590
  end
1425
1591
  end
1426
1592
 
1593
+ # GetGroupDetail请求参数结构体
1594
+ class GetGroupDetailRequest < TencentCloud::Common::AbstractModel
1595
+ # @param GroupId: 分组ID
1596
+ # @type GroupId: String
1597
+ # @param PageSize: 每页显示记录数,PageSize、PageNumber值均为-1 时,按照1页无限制条数匹配所有设备
1598
+ # @type PageSize: Integer
1599
+ # @param PageNumber: 每页显示记录数,PageSize、PageNumber值均为-1 时,按照1页无限制条数匹配所有设备
1600
+ # @type PageNumber: Integer
1601
+ # @param KeyWord: 搜索关键字
1602
+ # @type KeyWord: String
1603
+
1604
+ attr_accessor :GroupId, :PageSize, :PageNumber, :KeyWord
1605
+
1606
+ def initialize(groupid=nil, pagesize=nil, pagenumber=nil, keyword=nil)
1607
+ @GroupId = groupid
1608
+ @PageSize = pagesize
1609
+ @PageNumber = pagenumber
1610
+ @KeyWord = keyword
1611
+ end
1612
+
1613
+ def deserialize(params)
1614
+ @GroupId = params['GroupId']
1615
+ @PageSize = params['PageSize']
1616
+ @PageNumber = params['PageNumber']
1617
+ @KeyWord = params['KeyWord']
1618
+ end
1619
+ end
1620
+
1621
+ # GetGroupDetail返回参数结构体
1622
+ class GetGroupDetailResponse < TencentCloud::Common::AbstractModel
1623
+ # @param GroupInfo: 分组基本信息
1624
+ # @type GroupInfo: :class:`Tencentcloud::Mna.v20210119.models.GroupInfo`
1625
+ # @param DeviceInfos: 分组中设备列表
1626
+ # @type DeviceInfos: Array
1627
+ # @param Length: 设备总记录条数
1628
+ # @type Length: Integer
1629
+ # @param TotalPage: 总页数
1630
+ # @type TotalPage: Integer
1631
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1632
+ # @type RequestId: String
1633
+
1634
+ attr_accessor :GroupInfo, :DeviceInfos, :Length, :TotalPage, :RequestId
1635
+
1636
+ def initialize(groupinfo=nil, deviceinfos=nil, length=nil, totalpage=nil, requestid=nil)
1637
+ @GroupInfo = groupinfo
1638
+ @DeviceInfos = deviceinfos
1639
+ @Length = length
1640
+ @TotalPage = totalpage
1641
+ @RequestId = requestid
1642
+ end
1643
+
1644
+ def deserialize(params)
1645
+ unless params['GroupInfo'].nil?
1646
+ @GroupInfo = GroupInfo.new
1647
+ @GroupInfo.deserialize(params['GroupInfo'])
1648
+ end
1649
+ unless params['DeviceInfos'].nil?
1650
+ @DeviceInfos = []
1651
+ params['DeviceInfos'].each do |i|
1652
+ devicebaseinfo_tmp = DeviceBaseInfo.new
1653
+ devicebaseinfo_tmp.deserialize(i)
1654
+ @DeviceInfos << devicebaseinfo_tmp
1655
+ end
1656
+ end
1657
+ @Length = params['Length']
1658
+ @TotalPage = params['TotalPage']
1659
+ @RequestId = params['RequestId']
1660
+ end
1661
+ end
1662
+
1663
+ # GetGroupList请求参数结构体
1664
+ class GetGroupListRequest < TencentCloud::Common::AbstractModel
1665
+ # @param PageSize: 每页显示记录数,PageSize、PageNumber值均为-1 时,按照1页无限制条数匹配所有设备
1666
+ # @type PageSize: Integer
1667
+ # @param PageNumber: 当前查看页码,PageSize、PageNumber值均为-1 时,按照1页无限制条数匹配所有设备
1668
+ # @type PageNumber: Integer
1669
+ # @param Keyword: 搜索分组的关键字,为空时匹配所有分组
1670
+ # @type Keyword: String
1671
+
1672
+ attr_accessor :PageSize, :PageNumber, :Keyword
1673
+
1674
+ def initialize(pagesize=nil, pagenumber=nil, keyword=nil)
1675
+ @PageSize = pagesize
1676
+ @PageNumber = pagenumber
1677
+ @Keyword = keyword
1678
+ end
1679
+
1680
+ def deserialize(params)
1681
+ @PageSize = params['PageSize']
1682
+ @PageNumber = params['PageNumber']
1683
+ @Keyword = params['Keyword']
1684
+ end
1685
+ end
1686
+
1687
+ # GetGroupList返回参数结构体
1688
+ class GetGroupListResponse < TencentCloud::Common::AbstractModel
1689
+ # @param GroupInfos: 设备信息列表
1690
+ # @type GroupInfos: Array
1691
+ # @param Length: 设备总记录条数
1692
+ # @type Length: Integer
1693
+ # @param TotalPage: 总页数
1694
+ # @type TotalPage: Integer
1695
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1696
+ # @type RequestId: String
1697
+
1698
+ attr_accessor :GroupInfos, :Length, :TotalPage, :RequestId
1699
+
1700
+ def initialize(groupinfos=nil, length=nil, totalpage=nil, requestid=nil)
1701
+ @GroupInfos = groupinfos
1702
+ @Length = length
1703
+ @TotalPage = totalpage
1704
+ @RequestId = requestid
1705
+ end
1706
+
1707
+ def deserialize(params)
1708
+ unless params['GroupInfos'].nil?
1709
+ @GroupInfos = []
1710
+ params['GroupInfos'].each do |i|
1711
+ groupinfo_tmp = GroupInfo.new
1712
+ groupinfo_tmp.deserialize(i)
1713
+ @GroupInfos << groupinfo_tmp
1714
+ end
1715
+ end
1716
+ @Length = params['Length']
1717
+ @TotalPage = params['TotalPage']
1718
+ @RequestId = params['RequestId']
1719
+ end
1720
+ end
1721
+
1427
1722
  # GetHardwareList请求参数结构体
1428
1723
  class GetHardwareListRequest < TencentCloud::Common::AbstractModel
1429
1724
  # @param PageNumber: 页码
@@ -1781,6 +2076,123 @@ module TencentCloud
1781
2076
  end
1782
2077
  end
1783
2078
 
2079
+ # GroupAddDevice请求参数结构体
2080
+ class GroupAddDeviceRequest < TencentCloud::Common::AbstractModel
2081
+ # @param GroupId: 分组ID
2082
+ # @type GroupId: String
2083
+ # @param DeviceList: 待添加的设备列表
2084
+ # @type DeviceList: Array
2085
+
2086
+ attr_accessor :GroupId, :DeviceList
2087
+
2088
+ def initialize(groupid=nil, devicelist=nil)
2089
+ @GroupId = groupid
2090
+ @DeviceList = devicelist
2091
+ end
2092
+
2093
+ def deserialize(params)
2094
+ @GroupId = params['GroupId']
2095
+ @DeviceList = params['DeviceList']
2096
+ end
2097
+ end
2098
+
2099
+ # GroupAddDevice返回参数结构体
2100
+ class GroupAddDeviceResponse < TencentCloud::Common::AbstractModel
2101
+ # @param DeviceNum: 分组中的设备数量
2102
+ # @type DeviceNum: Integer
2103
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2104
+ # @type RequestId: String
2105
+
2106
+ attr_accessor :DeviceNum, :RequestId
2107
+
2108
+ def initialize(devicenum=nil, requestid=nil)
2109
+ @DeviceNum = devicenum
2110
+ @RequestId = requestid
2111
+ end
2112
+
2113
+ def deserialize(params)
2114
+ @DeviceNum = params['DeviceNum']
2115
+ @RequestId = params['RequestId']
2116
+ end
2117
+ end
2118
+
2119
+ # GroupDeleteDevice请求参数结构体
2120
+ class GroupDeleteDeviceRequest < TencentCloud::Common::AbstractModel
2121
+ # @param GroupId: 分组ID
2122
+ # @type GroupId: String
2123
+ # @param DeviceList: 待删除的设备列表
2124
+ # @type DeviceList: Array
2125
+
2126
+ attr_accessor :GroupId, :DeviceList
2127
+
2128
+ def initialize(groupid=nil, devicelist=nil)
2129
+ @GroupId = groupid
2130
+ @DeviceList = devicelist
2131
+ end
2132
+
2133
+ def deserialize(params)
2134
+ @GroupId = params['GroupId']
2135
+ @DeviceList = params['DeviceList']
2136
+ end
2137
+ end
2138
+
2139
+ # GroupDeleteDevice返回参数结构体
2140
+ class GroupDeleteDeviceResponse < TencentCloud::Common::AbstractModel
2141
+ # @param DeviceNum: 分组中的设备数量
2142
+ # @type DeviceNum: Integer
2143
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2144
+ # @type RequestId: String
2145
+
2146
+ attr_accessor :DeviceNum, :RequestId
2147
+
2148
+ def initialize(devicenum=nil, requestid=nil)
2149
+ @DeviceNum = devicenum
2150
+ @RequestId = requestid
2151
+ end
2152
+
2153
+ def deserialize(params)
2154
+ @DeviceNum = params['DeviceNum']
2155
+ @RequestId = params['RequestId']
2156
+ end
2157
+ end
2158
+
2159
+ # 分组的基本信息
2160
+ class GroupInfo < TencentCloud::Common::AbstractModel
2161
+ # @param GroupId: 分组ID
2162
+ # @type GroupId: String
2163
+ # @param GroupName: 分组名
2164
+ # @type GroupName: String
2165
+ # @param CreateTime: 分组创建的时间,单位:ms
2166
+ # @type CreateTime: String
2167
+ # @param UpdateTime: 分组更新的时间,单位:ms
2168
+ # @type UpdateTime: String
2169
+ # @param Description: 分组描述
2170
+ # 注意:此字段可能返回 null,表示取不到有效值。
2171
+ # @type Description: String
2172
+ # @param DeviceNum: 分组中的设备数量
2173
+ # @type DeviceNum: Integer
2174
+
2175
+ attr_accessor :GroupId, :GroupName, :CreateTime, :UpdateTime, :Description, :DeviceNum
2176
+
2177
+ def initialize(groupid=nil, groupname=nil, createtime=nil, updatetime=nil, description=nil, devicenum=nil)
2178
+ @GroupId = groupid
2179
+ @GroupName = groupname
2180
+ @CreateTime = createtime
2181
+ @UpdateTime = updatetime
2182
+ @Description = description
2183
+ @DeviceNum = devicenum
2184
+ end
2185
+
2186
+ def deserialize(params)
2187
+ @GroupId = params['GroupId']
2188
+ @GroupName = params['GroupName']
2189
+ @CreateTime = params['CreateTime']
2190
+ @UpdateTime = params['UpdateTime']
2191
+ @Description = params['Description']
2192
+ @DeviceNum = params['DeviceNum']
2193
+ end
2194
+ end
2195
+
1784
2196
  # 新建Hardware入参
1785
2197
  class Hardware < TencentCloud::Common::AbstractModel
1786
2198
  # @param SN: 硬件序列号
@@ -1862,10 +2274,13 @@ module TencentCloud
1862
2274
  # @param GroupName: 设备分组名称
1863
2275
  # 注意:此字段可能返回 null,表示取不到有效值。
1864
2276
  # @type GroupName: String
2277
+ # @param FlowTrunc: 设备无流量包处理方式,0: 按量付费,1: 截断加速
2278
+ # 注意:此字段可能返回 null,表示取不到有效值。
2279
+ # @type FlowTrunc: Integer
1865
2280
 
1866
- attr_accessor :DeviceId, :DeviceName, :ActiveTime, :LastOnlineTime, :Description, :VendorDescription, :LicenseChargingMode, :CreateTime, :SN, :LicensePayMode, :Payer, :GroupId, :GroupName
2281
+ attr_accessor :DeviceId, :DeviceName, :ActiveTime, :LastOnlineTime, :Description, :VendorDescription, :LicenseChargingMode, :CreateTime, :SN, :LicensePayMode, :Payer, :GroupId, :GroupName, :FlowTrunc
1867
2282
 
1868
- def initialize(deviceid=nil, devicename=nil, activetime=nil, lastonlinetime=nil, description=nil, vendordescription=nil, licensechargingmode=nil, createtime=nil, sn=nil, licensepaymode=nil, payer=nil, groupid=nil, groupname=nil)
2283
+ def initialize(deviceid=nil, devicename=nil, activetime=nil, lastonlinetime=nil, description=nil, vendordescription=nil, licensechargingmode=nil, createtime=nil, sn=nil, licensepaymode=nil, payer=nil, groupid=nil, groupname=nil, flowtrunc=nil)
1869
2284
  @DeviceId = deviceid
1870
2285
  @DeviceName = devicename
1871
2286
  @ActiveTime = activetime
@@ -1879,6 +2294,7 @@ module TencentCloud
1879
2294
  @Payer = payer
1880
2295
  @GroupId = groupid
1881
2296
  @GroupName = groupname
2297
+ @FlowTrunc = flowtrunc
1882
2298
  end
1883
2299
 
1884
2300
  def deserialize(params)
@@ -1895,6 +2311,7 @@ module TencentCloud
1895
2311
  @Payer = params['Payer']
1896
2312
  @GroupId = params['GroupId']
1897
2313
  @GroupName = params['GroupName']
2314
+ @FlowTrunc = params['FlowTrunc']
1898
2315
  end
1899
2316
  end
1900
2317
 
@@ -2089,6 +2506,46 @@ module TencentCloud
2089
2506
  end
2090
2507
  end
2091
2508
 
2509
+ # SetNotifyUrl请求参数结构体
2510
+ class SetNotifyUrlRequest < TencentCloud::Common::AbstractModel
2511
+ # @param NotifyUrl: 告警通知回调url
2512
+ # @type NotifyUrl: String
2513
+ # @param CallbackKey: 告警通知回调key
2514
+ # @type CallbackKey: String
2515
+ # @param AlarmValue: 流量包的告警阈值
2516
+ # @type AlarmValue: Integer
2517
+
2518
+ attr_accessor :NotifyUrl, :CallbackKey, :AlarmValue
2519
+
2520
+ def initialize(notifyurl=nil, callbackkey=nil, alarmvalue=nil)
2521
+ @NotifyUrl = notifyurl
2522
+ @CallbackKey = callbackkey
2523
+ @AlarmValue = alarmvalue
2524
+ end
2525
+
2526
+ def deserialize(params)
2527
+ @NotifyUrl = params['NotifyUrl']
2528
+ @CallbackKey = params['CallbackKey']
2529
+ @AlarmValue = params['AlarmValue']
2530
+ end
2531
+ end
2532
+
2533
+ # SetNotifyUrl返回参数结构体
2534
+ class SetNotifyUrlResponse < TencentCloud::Common::AbstractModel
2535
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2536
+ # @type RequestId: String
2537
+
2538
+ attr_accessor :RequestId
2539
+
2540
+ def initialize(requestid=nil)
2541
+ @RequestId = requestid
2542
+ end
2543
+
2544
+ def deserialize(params)
2545
+ @RequestId = params['RequestId']
2546
+ end
2547
+ end
2548
+
2092
2549
  # 网卡流量指标数据
2093
2550
  class SlotNetInfo < TencentCloud::Common::AbstractModel
2094
2551
  # @param NetInfoName: 网卡名
@@ -2150,14 +2607,17 @@ module TencentCloud
2150
2607
  # @type Remark: String
2151
2608
  # @param UpdateNetInfo: 更新设备网络信息
2152
2609
  # @type UpdateNetInfo: Array
2610
+ # @param FlowTrunc: 设备无流量包处理方式,0: 按量付费,1: 截断加速
2611
+ # @type FlowTrunc: Integer
2153
2612
 
2154
- attr_accessor :DeviceId, :DeviceName, :Remark, :UpdateNetInfo
2613
+ attr_accessor :DeviceId, :DeviceName, :Remark, :UpdateNetInfo, :FlowTrunc
2155
2614
 
2156
- def initialize(deviceid=nil, devicename=nil, remark=nil, updatenetinfo=nil)
2615
+ def initialize(deviceid=nil, devicename=nil, remark=nil, updatenetinfo=nil, flowtrunc=nil)
2157
2616
  @DeviceId = deviceid
2158
2617
  @DeviceName = devicename
2159
2618
  @Remark = remark
2160
2619
  @UpdateNetInfo = updatenetinfo
2620
+ @FlowTrunc = flowtrunc
2161
2621
  end
2162
2622
 
2163
2623
  def deserialize(params)
@@ -2172,6 +2632,7 @@ module TencentCloud
2172
2632
  @UpdateNetInfo << updatenetinfo_tmp
2173
2633
  end
2174
2634
  end
2635
+ @FlowTrunc = params['FlowTrunc']
2175
2636
  end
2176
2637
  end
2177
2638
 
@@ -2191,6 +2652,42 @@ module TencentCloud
2191
2652
  end
2192
2653
  end
2193
2654
 
2655
+ # UpdateGroup请求参数结构体
2656
+ class UpdateGroupRequest < TencentCloud::Common::AbstractModel
2657
+ # @param GroupId: 分组ID
2658
+ # @type GroupId: String
2659
+ # @param Description: 分组备注
2660
+ # @type Description: String
2661
+
2662
+ attr_accessor :GroupId, :Description
2663
+
2664
+ def initialize(groupid=nil, description=nil)
2665
+ @GroupId = groupid
2666
+ @Description = description
2667
+ end
2668
+
2669
+ def deserialize(params)
2670
+ @GroupId = params['GroupId']
2671
+ @Description = params['Description']
2672
+ end
2673
+ end
2674
+
2675
+ # UpdateGroup返回参数结构体
2676
+ class UpdateGroupResponse < TencentCloud::Common::AbstractModel
2677
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2678
+ # @type RequestId: String
2679
+
2680
+ attr_accessor :RequestId
2681
+
2682
+ def initialize(requestid=nil)
2683
+ @RequestId = requestid
2684
+ end
2685
+
2686
+ def deserialize(params)
2687
+ @RequestId = params['RequestId']
2688
+ end
2689
+ end
2690
+
2194
2691
  # UpdateHardware请求参数结构体
2195
2692
  class UpdateHardwareRequest < TencentCloud::Common::AbstractModel
2196
2693
  # @param HardwareId: 硬件ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-mna
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.861
4
+ version: 3.0.862
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-09 00:00:00.000000000 Z
11
+ date: 2024-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common