tencentcloud-sdk-csip 3.0.752 → 3.0.754

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e9eaa4fd52cfc761e55989deadca1343804e7c1
4
- data.tar.gz: 31b87ccf6dcfdc29446966bf71ddb47275aab7e9
3
+ metadata.gz: ae032623df2f8b899e6aabda645c33883092365f
4
+ data.tar.gz: ff4f3dbc53516a6ea041c7a6e5d37ecd4e7132d7
5
5
  SHA512:
6
- metadata.gz: ce69591086ac69f4315c542d8ae2e96fc353b8c2cac4d283db7faef5ac042e0cc2acf8ef7aae265c34de98c0bd8f71d7f09a46060cccd84f7bb9b1b815b1ae1e
7
- data.tar.gz: 1315cabb4d5a692e9bd091e72079b9aa49cac41059898f60b2d962abd07870f9fbd6eec1b1ecfcf250d3d36a0e3f25193a6b09f34de5d083ea8f6eece4011bd5
6
+ metadata.gz: bef3e612e877240c4304e2d552e112705cebc601cf4ad42d45a659dceadd83a43face97dcafa2f77a3b65ac7a109eb0eed3d0c70061c7f156d1d23e9c753d21a
7
+ data.tar.gz: dc34ff033d386fba6e8d8a4dfea3088b13d3344d4cbf6c363e2d87268ebc9a265a63203c1da45939afc44112a7f7f7ad61678c0a1df36bd77c6615b6fce679ea
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.752
1
+ 3.0.754
@@ -797,6 +797,30 @@ module TencentCloud
797
797
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
798
798
  end
799
799
 
800
+ # 修改集团账号状态
801
+
802
+ # @param request: Request instance for ModifyOrganizationAccountStatus.
803
+ # @type request: :class:`Tencentcloud::csip::V20221121::ModifyOrganizationAccountStatusRequest`
804
+ # @rtype: :class:`Tencentcloud::csip::V20221121::ModifyOrganizationAccountStatusResponse`
805
+ def ModifyOrganizationAccountStatus(request)
806
+ body = send_request('ModifyOrganizationAccountStatus', request.serialize)
807
+ response = JSON.parse(body)
808
+ if response['Response'].key?('Error') == false
809
+ model = ModifyOrganizationAccountStatusResponse.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
+
800
824
  # 修改风险中心风险状态
801
825
 
802
826
  # @param request: Request instance for ModifyRiskCenterRiskStatus.
@@ -821,6 +845,30 @@ module TencentCloud
821
845
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
822
846
  end
823
847
 
848
+ # 修改风险中心扫描任务
849
+
850
+ # @param request: Request instance for ModifyRiskCenterScanTask.
851
+ # @type request: :class:`Tencentcloud::csip::V20221121::ModifyRiskCenterScanTaskRequest`
852
+ # @rtype: :class:`Tencentcloud::csip::V20221121::ModifyRiskCenterScanTaskResponse`
853
+ def ModifyRiskCenterScanTask(request)
854
+ body = send_request('ModifyRiskCenterScanTask', request.serialize)
855
+ response = JSON.parse(body)
856
+ if response['Response'].key?('Error') == false
857
+ model = ModifyRiskCenterScanTaskResponse.new
858
+ model.deserialize(response['Response'])
859
+ model
860
+ else
861
+ code = response['Response']['Error']['Code']
862
+ message = response['Response']['Error']['Message']
863
+ reqid = response['Response']['RequestId']
864
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
865
+ end
866
+ rescue TencentCloud::Common::TencentCloudSDKException => e
867
+ raise e
868
+ rescue StandardError => e
869
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
870
+ end
871
+
824
872
  # 停止扫风险中心扫描任务
825
873
 
826
874
  # @param request: Request instance for StopRiskCenterTask.
@@ -4856,6 +4856,42 @@ module TencentCloud
4856
4856
  end
4857
4857
  end
4858
4858
 
4859
+ # ModifyOrganizationAccountStatus请求参数结构体
4860
+ class ModifyOrganizationAccountStatusRequest < TencentCloud::Common::AbstractModel
4861
+ # @param Status: 修改集团账号状态,1 开启, 2关闭
4862
+ # @type Status: Integer
4863
+
4864
+ attr_accessor :Status
4865
+
4866
+ def initialize(status=nil)
4867
+ @Status = status
4868
+ end
4869
+
4870
+ def deserialize(params)
4871
+ @Status = params['Status']
4872
+ end
4873
+ end
4874
+
4875
+ # ModifyOrganizationAccountStatus返回参数结构体
4876
+ class ModifyOrganizationAccountStatusResponse < TencentCloud::Common::AbstractModel
4877
+ # @param Status: 返回值为0,则修改成功
4878
+ # @type Status: Integer
4879
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4880
+ # @type RequestId: String
4881
+
4882
+ attr_accessor :Status, :RequestId
4883
+
4884
+ def initialize(status=nil, requestid=nil)
4885
+ @Status = status
4886
+ @RequestId = requestid
4887
+ end
4888
+
4889
+ def deserialize(params)
4890
+ @Status = params['Status']
4891
+ @RequestId = params['RequestId']
4892
+ end
4893
+ end
4894
+
4859
4895
  # ModifyRiskCenterRiskStatus请求参数结构体
4860
4896
  class ModifyRiskCenterRiskStatusRequest < TencentCloud::Common::AbstractModel
4861
4897
  # @param RiskStatusKeys: 风险资产相关数据
@@ -4903,6 +4939,96 @@ module TencentCloud
4903
4939
  end
4904
4940
  end
4905
4941
 
4942
+ # ModifyRiskCenterScanTask请求参数结构体
4943
+ class ModifyRiskCenterScanTaskRequest < TencentCloud::Common::AbstractModel
4944
+ # @param TaskName: 任务名称
4945
+ # @type TaskName: String
4946
+ # @param ScanAssetType: 0-全扫,1-指定资产扫,2-排除资产扫,3-手动填写扫;1和2则Assets字段必填,3则SelfDefiningAssets必填
4947
+ # @type ScanAssetType: Integer
4948
+ # @param ScanItem: 扫描项目;port/poc/weakpass/webcontent/configrisk
4949
+ # @type ScanItem: Array
4950
+ # @param ScanPlanType: 0-周期任务,1-立即扫描,2-定时扫描,3-自定义;0,2,3则ScanPlanContent必填
4951
+ # @type ScanPlanType: Integer
4952
+ # @param TaskId: 要修改的任务id
4953
+ # @type TaskId: String
4954
+ # @param Assets: 扫描资产信息列表
4955
+ # @type Assets: Array
4956
+ # @param ScanPlanContent: 扫描计划详情
4957
+ # @type ScanPlanContent: String
4958
+ # @param SelfDefiningAssets: ip/域名/url数组
4959
+ # @type SelfDefiningAssets: Array
4960
+ # @param TaskAdvanceCFG: 高级配置
4961
+ # @type TaskAdvanceCFG: :class:`Tencentcloud::Csip.v20221121.models.TaskAdvanceCFG`
4962
+ # @param TaskMode: 体检模式,0-标准模式,1-快速模式,2-高级模式,默认标准模式
4963
+ # @type TaskMode: Integer
4964
+
4965
+ attr_accessor :TaskName, :ScanAssetType, :ScanItem, :ScanPlanType, :TaskId, :Assets, :ScanPlanContent, :SelfDefiningAssets, :TaskAdvanceCFG, :TaskMode
4966
+
4967
+ def initialize(taskname=nil, scanassettype=nil, scanitem=nil, scanplantype=nil, taskid=nil, assets=nil, scanplancontent=nil, selfdefiningassets=nil, taskadvancecfg=nil, taskmode=nil)
4968
+ @TaskName = taskname
4969
+ @ScanAssetType = scanassettype
4970
+ @ScanItem = scanitem
4971
+ @ScanPlanType = scanplantype
4972
+ @TaskId = taskid
4973
+ @Assets = assets
4974
+ @ScanPlanContent = scanplancontent
4975
+ @SelfDefiningAssets = selfdefiningassets
4976
+ @TaskAdvanceCFG = taskadvancecfg
4977
+ @TaskMode = taskmode
4978
+ end
4979
+
4980
+ def deserialize(params)
4981
+ @TaskName = params['TaskName']
4982
+ @ScanAssetType = params['ScanAssetType']
4983
+ @ScanItem = params['ScanItem']
4984
+ @ScanPlanType = params['ScanPlanType']
4985
+ @TaskId = params['TaskId']
4986
+ unless params['Assets'].nil?
4987
+ @Assets = []
4988
+ params['Assets'].each do |i|
4989
+ taskassetobject_tmp = TaskAssetObject.new
4990
+ taskassetobject_tmp.deserialize(i)
4991
+ @Assets << taskassetobject_tmp
4992
+ end
4993
+ end
4994
+ @ScanPlanContent = params['ScanPlanContent']
4995
+ @SelfDefiningAssets = params['SelfDefiningAssets']
4996
+ unless params['TaskAdvanceCFG'].nil?
4997
+ @TaskAdvanceCFG = TaskAdvanceCFG.new
4998
+ @TaskAdvanceCFG.deserialize(params['TaskAdvanceCFG'])
4999
+ end
5000
+ @TaskMode = params['TaskMode']
5001
+ end
5002
+ end
5003
+
5004
+ # ModifyRiskCenterScanTask返回参数结构体
5005
+ class ModifyRiskCenterScanTaskResponse < TencentCloud::Common::AbstractModel
5006
+ # @param TaskId: 任务id
5007
+ # @type TaskId: String
5008
+ # @param Status: 0,修改成功,其他失败;-1为存在资产未认证
5009
+ # @type Status: Integer
5010
+ # @param UnAuthAsset: 未认证资产列表
5011
+ # @type UnAuthAsset: Array
5012
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5013
+ # @type RequestId: String
5014
+
5015
+ attr_accessor :TaskId, :Status, :UnAuthAsset, :RequestId
5016
+
5017
+ def initialize(taskid=nil, status=nil, unauthasset=nil, requestid=nil)
5018
+ @TaskId = taskid
5019
+ @Status = status
5020
+ @UnAuthAsset = unauthasset
5021
+ @RequestId = requestid
5022
+ end
5023
+
5024
+ def deserialize(params)
5025
+ @TaskId = params['TaskId']
5026
+ @Status = params['Status']
5027
+ @UnAuthAsset = params['UnAuthAsset']
5028
+ @RequestId = params['RequestId']
5029
+ end
5030
+ end
5031
+
4906
5032
  # 网卡资产
4907
5033
  class NICAsset < TencentCloud::Common::AbstractModel
4908
5034
  # @param AppId: appid
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-csip
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.752
4
+ version: 3.0.754
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-01-17 00:00:00.000000000 Z
11
+ date: 2024-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common