tencentcloud-sdk-cloudhsm 3.0.525 → 3.0.526

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: 048cb1285fb8d261b9f6fe2693dfc6095e5d605f
4
- data.tar.gz: c0a980f7aea8679be1455f00c4bef8ae04dc2741
3
+ metadata.gz: ef1df14cc1f417c323965fca6bea024e30e2461c
4
+ data.tar.gz: 4d789a18354150777c5855cee81f8d22cae9ee44
5
5
  SHA512:
6
- metadata.gz: 748f4dbe677abc37f0b646428d02efa6866f1297c0cfc215285c902cbb62d429976426c92ddb4ddc8bc08275a22f2c5f3e420ce7e7d628a49c639ca5abf46ab1
7
- data.tar.gz: b78af2fd5e516c4bc9692c527dada8c2d83287af710097d4e9784b5cbcc24a48d00c4447a14015c5a43986f1dc0221e31b0908390c8bedd8fbd27f093d1dd5f4
6
+ metadata.gz: ff3caeda2b92052d4b6a1bc8446d0616bdce0b6c55d4859c7982bf3d2882d8f4ff362b6d984e0719bb10b969d82de3621b25684f18b0e9a23eb401c31b84945a
7
+ data.tar.gz: b298cfb5b7dfd36e9a48c056a0c902a0502b60114444996e6b43969ba5433e75a047ef7ddbe0f7eccab23c5e9241a2fb286096a1e029cf6f3d837b418a4eb935
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.525
1
+ 3.0.526
@@ -245,6 +245,54 @@ module TencentCloud
245
245
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
246
  end
247
247
 
248
+ # 获取告警事件
249
+
250
+ # @param request: Request instance for GetAlarmEvent.
251
+ # @type request: :class:`Tencentcloud::cloudhsm::V20191112::GetAlarmEventRequest`
252
+ # @rtype: :class:`Tencentcloud::cloudhsm::V20191112::GetAlarmEventResponse`
253
+ def GetAlarmEvent(request)
254
+ body = send_request('GetAlarmEvent', request.serialize)
255
+ response = JSON.parse(body)
256
+ if response['Response'].key?('Error') == false
257
+ model = GetAlarmEventResponse.new
258
+ model.deserialize(response['Response'])
259
+ model
260
+ else
261
+ code = response['Response']['Error']['Code']
262
+ message = response['Response']['Error']['Message']
263
+ reqid = response['Response']['RequestId']
264
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
265
+ end
266
+ rescue TencentCloud::Common::TencentCloudSDKException => e
267
+ raise e
268
+ rescue StandardError => e
269
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
+ end
271
+
272
+ # 获取VSM监控信息
273
+
274
+ # @param request: Request instance for GetVsmMonitorInfo.
275
+ # @type request: :class:`Tencentcloud::cloudhsm::V20191112::GetVsmMonitorInfoRequest`
276
+ # @rtype: :class:`Tencentcloud::cloudhsm::V20191112::GetVsmMonitorInfoResponse`
277
+ def GetVsmMonitorInfo(request)
278
+ body = send_request('GetVsmMonitorInfo', request.serialize)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = GetVsmMonitorInfoResponse.new
282
+ model.deserialize(response['Response'])
283
+ model
284
+ else
285
+ code = response['Response']['Error']['Code']
286
+ message = response['Response']['Error']['Message']
287
+ reqid = response['Response']['RequestId']
288
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
289
+ end
290
+ rescue TencentCloud::Common::TencentCloudSDKException => e
291
+ raise e
292
+ rescue StandardError => e
293
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
+ end
295
+
248
296
  # 购买询价接口
249
297
 
250
298
  # @param request: Request instance for InquiryPriceBuyVsm.
@@ -269,6 +317,30 @@ module TencentCloud
269
317
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
318
  end
271
319
 
320
+ # 修改告警事件
321
+
322
+ # @param request: Request instance for ModifyAlarmEvent.
323
+ # @type request: :class:`Tencentcloud::cloudhsm::V20191112::ModifyAlarmEventRequest`
324
+ # @rtype: :class:`Tencentcloud::cloudhsm::V20191112::ModifyAlarmEventResponse`
325
+ def ModifyAlarmEvent(request)
326
+ body = send_request('ModifyAlarmEvent', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = ModifyAlarmEventResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
272
344
  # 修改VSM属性
273
345
 
274
346
  # @param request: Request instance for ModifyVsmAttributes.
@@ -17,6 +17,42 @@
17
17
  module TencentCloud
18
18
  module Cloudhsm
19
19
  module V20191112
20
+ # 告警策略
21
+ class AlarmPolicy < TencentCloud::Common::AbstractModel
22
+ # @param Uin: 用户账号
23
+ # @type Uin: String
24
+ # @param Event: 告警事件
25
+ # @type Event: String
26
+ # @param Limit: 告警阈值
27
+ # @type Limit: Integer
28
+ # @param Status: 告警策略是否生效,0:停用,1:启用
29
+ # @type Status: Integer
30
+ # @param BeginTime: 在这个时间后才允许发送告警
31
+ # @type BeginTime: String
32
+ # @param EndTime: 在这个时间前才允许发送告警
33
+ # @type EndTime: String
34
+
35
+ attr_accessor :Uin, :Event, :Limit, :Status, :BeginTime, :EndTime
36
+
37
+ def initialize(uin=nil, event=nil, limit=nil, status=nil, begintime=nil, endtime=nil)
38
+ @Uin = uin
39
+ @Event = event
40
+ @Limit = limit
41
+ @Status = status
42
+ @BeginTime = begintime
43
+ @EndTime = endtime
44
+ end
45
+
46
+ def deserialize(params)
47
+ @Uin = params['Uin']
48
+ @Event = params['Event']
49
+ @Limit = params['Limit']
50
+ @Status = params['Status']
51
+ @BeginTime = params['BeginTime']
52
+ @EndTime = params['EndTime']
53
+ end
54
+ end
55
+
20
56
  # DescribeHSMBySubnetId请求参数结构体
21
57
  class DescribeHSMBySubnetIdRequest < TencentCloud::Common::AbstractModel
22
58
  # @param SubnetId: Subnet标识符
@@ -614,18 +650,100 @@ module TencentCloud
614
650
  end
615
651
  end
616
652
 
653
+ # GetAlarmEvent请求参数结构体
654
+ class GetAlarmEventRequest < TencentCloud::Common::AbstractModel
655
+
656
+
657
+ def initialize()
658
+ end
659
+
660
+ def deserialize(params)
661
+ end
662
+ end
663
+
664
+ # GetAlarmEvent返回参数结构体
665
+ class GetAlarmEventResponse < TencentCloud::Common::AbstractModel
666
+ # @param AlarmConfig: 用户所有的告警策略
667
+ # 注意:此字段可能返回 null,表示取不到有效值。
668
+ # @type AlarmConfig: Array
669
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
670
+ # @type RequestId: String
671
+
672
+ attr_accessor :AlarmConfig, :RequestId
673
+
674
+ def initialize(alarmconfig=nil, requestid=nil)
675
+ @AlarmConfig = alarmconfig
676
+ @RequestId = requestid
677
+ end
678
+
679
+ def deserialize(params)
680
+ unless params['AlarmConfig'].nil?
681
+ @AlarmConfig = []
682
+ params['AlarmConfig'].each do |i|
683
+ alarmpolicy_tmp = AlarmPolicy.new
684
+ alarmpolicy_tmp.deserialize(i)
685
+ @AlarmConfig << alarmpolicy_tmp
686
+ end
687
+ end
688
+ @RequestId = params['RequestId']
689
+ end
690
+ end
691
+
692
+ # GetVsmMonitorInfo请求参数结构体
693
+ class GetVsmMonitorInfoRequest < TencentCloud::Common::AbstractModel
694
+ # @param ResourceId: 资源Id
695
+ # @type ResourceId: String
696
+ # @param ResourceName: 资源名称
697
+ # @type ResourceName: String
698
+
699
+ attr_accessor :ResourceId, :ResourceName
700
+
701
+ def initialize(resourceid=nil, resourcename=nil)
702
+ @ResourceId = resourceid
703
+ @ResourceName = resourcename
704
+ end
705
+
706
+ def deserialize(params)
707
+ @ResourceId = params['ResourceId']
708
+ @ResourceName = params['ResourceName']
709
+ end
710
+ end
711
+
712
+ # GetVsmMonitorInfo返回参数结构体
713
+ class GetVsmMonitorInfoResponse < TencentCloud::Common::AbstractModel
714
+ # @param MonitorInfo: VSM监控信息
715
+ # @type MonitorInfo: Array
716
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
717
+ # @type RequestId: String
718
+
719
+ attr_accessor :MonitorInfo, :RequestId
720
+
721
+ def initialize(monitorinfo=nil, requestid=nil)
722
+ @MonitorInfo = monitorinfo
723
+ @RequestId = requestid
724
+ end
725
+
726
+ def deserialize(params)
727
+ @MonitorInfo = params['MonitorInfo']
728
+ @RequestId = params['RequestId']
729
+ end
730
+ end
731
+
617
732
  # 支持的加密机类型信息
618
733
  class HsmInfo < TencentCloud::Common::AbstractModel
619
734
  # @param Model: 加密机型号
620
735
  # @type Model: String
621
736
  # @param VsmTypes: 此类型的加密机所支持的VSM类型列表
622
737
  # @type VsmTypes: Array
738
+ # @param HsmType: 加密机母机类型:virtualization、GHSM、EHSM、SHSM
739
+ # @type HsmType: String
623
740
 
624
- attr_accessor :Model, :VsmTypes
741
+ attr_accessor :Model, :VsmTypes, :HsmType
625
742
 
626
- def initialize(model=nil, vsmtypes=nil)
743
+ def initialize(model=nil, vsmtypes=nil, hsmtype=nil)
627
744
  @Model = model
628
745
  @VsmTypes = vsmtypes
746
+ @HsmType = hsmtype
629
747
  end
630
748
 
631
749
  def deserialize(params)
@@ -638,6 +756,7 @@ module TencentCloud
638
756
  @VsmTypes << vsminfo_tmp
639
757
  end
640
758
  end
759
+ @HsmType = params['HsmType']
641
760
  end
642
761
  end
643
762
 
@@ -722,6 +841,54 @@ module TencentCloud
722
841
  end
723
842
  end
724
843
 
844
+ # ModifyAlarmEvent请求参数结构体
845
+ class ModifyAlarmEventRequest < TencentCloud::Common::AbstractModel
846
+ # @param Event: 告警事件,支持CPU、MEM、TCP
847
+ # @type Event: String
848
+ # @param Limit: 告警阈值
849
+ # @type Limit: Integer
850
+ # @param Status: 告警状态,0表示停用,1表示启动
851
+ # @type Status: Integer
852
+ # @param BeginTime: 告警开始时间,只有在这个时间后才会发送告警,当跟EndTime同时为空时表示全天告警
853
+ # @type BeginTime: String
854
+ # @param EndTime: 告警结束时间,只有在这个时间前才会发送告警,当跟BeginTime同时为空时表示全天告警
855
+ # @type EndTime: String
856
+
857
+ attr_accessor :Event, :Limit, :Status, :BeginTime, :EndTime
858
+
859
+ def initialize(event=nil, limit=nil, status=nil, begintime=nil, endtime=nil)
860
+ @Event = event
861
+ @Limit = limit
862
+ @Status = status
863
+ @BeginTime = begintime
864
+ @EndTime = endtime
865
+ end
866
+
867
+ def deserialize(params)
868
+ @Event = params['Event']
869
+ @Limit = params['Limit']
870
+ @Status = params['Status']
871
+ @BeginTime = params['BeginTime']
872
+ @EndTime = params['EndTime']
873
+ end
874
+ end
875
+
876
+ # ModifyAlarmEvent返回参数结构体
877
+ class ModifyAlarmEventResponse < TencentCloud::Common::AbstractModel
878
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
879
+ # @type RequestId: String
880
+
881
+ attr_accessor :RequestId
882
+
883
+ def initialize(requestid=nil)
884
+ @RequestId = requestid
885
+ end
886
+
887
+ def deserialize(params)
888
+ @RequestId = params['RequestId']
889
+ end
890
+ end
891
+
725
892
  # ModifyVsmAttributes请求参数结构体
726
893
  class ModifyVsmAttributesRequest < TencentCloud::Common::AbstractModel
727
894
  # @param ResourceId: 资源Id
@@ -739,16 +906,19 @@ module TencentCloud
739
906
  # @type VpcId: String
740
907
  # @param SubnetId: 子网Id
741
908
  # @type SubnetId: String
909
+ # @param AlarmStatus: 告警开关,0表示关闭告警,1表示启用告警
910
+ # @type AlarmStatus: Integer
742
911
 
743
- attr_accessor :ResourceId, :Type, :ResourceName, :SgIds, :VpcId, :SubnetId
912
+ attr_accessor :ResourceId, :Type, :ResourceName, :SgIds, :VpcId, :SubnetId, :AlarmStatus
744
913
 
745
- def initialize(resourceid=nil, type=nil, resourcename=nil, sgids=nil, vpcid=nil, subnetid=nil)
914
+ def initialize(resourceid=nil, type=nil, resourcename=nil, sgids=nil, vpcid=nil, subnetid=nil, alarmstatus=nil)
746
915
  @ResourceId = resourceid
747
916
  @Type = type
748
917
  @ResourceName = resourcename
749
918
  @SgIds = sgids
750
919
  @VpcId = vpcid
751
920
  @SubnetId = subnetid
921
+ @AlarmStatus = alarmstatus
752
922
  end
753
923
 
754
924
  def deserialize(params)
@@ -758,6 +928,7 @@ module TencentCloud
758
928
  @SgIds = params['SgIds']
759
929
  @VpcId = params['VpcId']
760
930
  @SubnetId = params['SubnetId']
931
+ @AlarmStatus = params['AlarmStatus']
761
932
  end
762
933
  end
763
934
 
@@ -845,10 +1016,13 @@ module TencentCloud
845
1016
  # @param Manufacturer: 厂商
846
1017
  # 注意:此字段可能返回 null,表示取不到有效值。
847
1018
  # @type Manufacturer: String
1019
+ # @param AlarmStatus: 告警状态,0:停用,1:启用
1020
+ # 注意:此字段可能返回 null,表示取不到有效值。
1021
+ # @type AlarmStatus: Integer
848
1022
 
849
- attr_accessor :ResourceId, :ResourceName, :Status, :Vip, :VpcId, :SubnetId, :Model, :VsmType, :RegionId, :ZoneId, :ExpireTime, :RegionName, :ZoneName, :SgList, :SubnetName, :Expired, :RemainSeconds, :VpcName, :CreateUin, :RenewFlag, :Tags, :Manufacturer
1023
+ attr_accessor :ResourceId, :ResourceName, :Status, :Vip, :VpcId, :SubnetId, :Model, :VsmType, :RegionId, :ZoneId, :ExpireTime, :RegionName, :ZoneName, :SgList, :SubnetName, :Expired, :RemainSeconds, :VpcName, :CreateUin, :RenewFlag, :Tags, :Manufacturer, :AlarmStatus
850
1024
 
851
- def initialize(resourceid=nil, resourcename=nil, status=nil, vip=nil, vpcid=nil, subnetid=nil, model=nil, vsmtype=nil, regionid=nil, zoneid=nil, expiretime=nil, regionname=nil, zonename=nil, sglist=nil, subnetname=nil, expired=nil, remainseconds=nil, vpcname=nil, createuin=nil, renewflag=nil, tags=nil, manufacturer=nil)
1025
+ def initialize(resourceid=nil, resourcename=nil, status=nil, vip=nil, vpcid=nil, subnetid=nil, model=nil, vsmtype=nil, regionid=nil, zoneid=nil, expiretime=nil, regionname=nil, zonename=nil, sglist=nil, subnetname=nil, expired=nil, remainseconds=nil, vpcname=nil, createuin=nil, renewflag=nil, tags=nil, manufacturer=nil, alarmstatus=nil)
852
1026
  @ResourceId = resourceid
853
1027
  @ResourceName = resourcename
854
1028
  @Status = status
@@ -871,6 +1045,7 @@ module TencentCloud
871
1045
  @RenewFlag = renewflag
872
1046
  @Tags = tags
873
1047
  @Manufacturer = manufacturer
1048
+ @AlarmStatus = alarmstatus
874
1049
  end
875
1050
 
876
1051
  def deserialize(params)
@@ -910,6 +1085,7 @@ module TencentCloud
910
1085
  end
911
1086
  end
912
1087
  @Manufacturer = params['Manufacturer']
1088
+ @AlarmStatus = params['AlarmStatus']
913
1089
  end
914
1090
  end
915
1091
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cloudhsm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.525
4
+ version: 3.0.526
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-09 00:00:00.000000000 Z
11
+ date: 2023-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common