tencentcloud-sdk-dsgc 3.0.1054 → 3.0.1055

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: b137a0dec6f580660483cfbb624fa9823488b108
4
- data.tar.gz: a626feb324d096ff6aee6276cd710648c58d2806
3
+ metadata.gz: fc9d0842981772ae8f4eb5c65acc781e14937f08
4
+ data.tar.gz: ea2327e320e8068aa422a36c63963f80541cdbdd
5
5
  SHA512:
6
- metadata.gz: 33c686354d5a26123596e8a354d899288a72355db8d09cd1fcd8f8f2e861fa53836d6e6f476aa38ce991e3c1d789d83aab2377e133a2316e25426d084e76a156
7
- data.tar.gz: 4821863732a89109d91c987788b5f8e0cc8eb27c4d8ed54a308f85112d78d2c115649aa87aae4de8531e80d5119e1128c5c0401c135ffb907690276c0df96af3
6
+ metadata.gz: 415e884e01a908d07282a8c73614d0472722a09e288b48fa8871d0becf35010102621adfc5a991296af1ad030f5775d897f9cd0b6eed83a9688b0bf85ba8a1b6
7
+ data.tar.gz: 777debe44c513f9c9752d6cd79b82bfbfb6be4e222a83b4a3cf14ad953ae2d0d5ffabde02ee1354d6da9b3fba4e73bd5071000ecf5b41d81d8016ff3ec10e504
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1054
1
+ 3.0.1055
@@ -2131,6 +2131,30 @@ module TencentCloud
2131
2131
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2132
2132
  end
2133
2133
 
2134
+ # 获取分类分级任务列表
2135
+
2136
+ # @param request: Request instance for DescribeDSPADiscoveryTasks.
2137
+ # @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPADiscoveryTasksRequest`
2138
+ # @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPADiscoveryTasksResponse`
2139
+ def DescribeDSPADiscoveryTasks(request)
2140
+ body = send_request('DescribeDSPADiscoveryTasks', request.serialize)
2141
+ response = JSON.parse(body)
2142
+ if response['Response'].key?('Error') == false
2143
+ model = DescribeDSPADiscoveryTasksResponse.new
2144
+ model.deserialize(response['Response'])
2145
+ model
2146
+ else
2147
+ code = response['Response']['Error']['Code']
2148
+ message = response['Response']['Error']['Message']
2149
+ reqid = response['Response']['RequestId']
2150
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2151
+ end
2152
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2153
+ raise e
2154
+ rescue StandardError => e
2155
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2156
+ end
2157
+
2134
2158
  # 根据合规组id,去查询ES的概览页统计数据
2135
2159
 
2136
2160
  # @param request: Request instance for DescribeDSPAESDataAssetByComplianceId.
@@ -1415,12 +1415,12 @@ module TencentCloud
1415
1415
 
1416
1416
  attr_accessor :DspaId, :Name, :TemplateId, :BusinessName, :BusinessDept, :BusinessOwner, :ComplianceId, :DiscoveryCondition, :Description
1417
1417
  extend Gem::Deprecate
1418
- deprecate :BusinessName, :none, 2025, 4
1419
- deprecate :BusinessName=, :none, 2025, 4
1420
- deprecate :BusinessDept, :none, 2025, 4
1421
- deprecate :BusinessDept=, :none, 2025, 4
1422
- deprecate :BusinessOwner, :none, 2025, 4
1423
- deprecate :BusinessOwner=, :none, 2025, 4
1418
+ deprecate :BusinessName, :none, 2025, 5
1419
+ deprecate :BusinessName=, :none, 2025, 5
1420
+ deprecate :BusinessDept, :none, 2025, 5
1421
+ deprecate :BusinessDept=, :none, 2025, 5
1422
+ deprecate :BusinessOwner, :none, 2025, 5
1423
+ deprecate :BusinessOwner=, :none, 2025, 5
1424
1424
 
1425
1425
  def initialize(dspaid=nil, name=nil, templateid=nil, businessname=nil, businessdept=nil, businessowner=nil, complianceid=nil, discoverycondition=nil, description=nil)
1426
1426
  @DspaId = dspaid
@@ -1778,10 +1778,10 @@ module TencentCloud
1778
1778
 
1779
1779
  attr_accessor :DspaId, :ResourceRegion, :Buckets, :CosBucketItems
1780
1780
  extend Gem::Deprecate
1781
- deprecate :ResourceRegion, :none, 2025, 4
1782
- deprecate :ResourceRegion=, :none, 2025, 4
1783
- deprecate :Buckets, :none, 2025, 4
1784
- deprecate :Buckets=, :none, 2025, 4
1781
+ deprecate :ResourceRegion, :none, 2025, 5
1782
+ deprecate :ResourceRegion=, :none, 2025, 5
1783
+ deprecate :Buckets, :none, 2025, 5
1784
+ deprecate :Buckets=, :none, 2025, 5
1785
1785
 
1786
1786
  def initialize(dspaid=nil, resourceregion=nil, buckets=nil, cosbucketitems=nil)
1787
1787
  @DspaId = dspaid
@@ -1840,14 +1840,14 @@ module TencentCloud
1840
1840
 
1841
1841
  attr_accessor :DspaId, :MetaType, :ResourceRegion, :UpdateStatus, :UpdateId, :Items, :CloudResourceItems
1842
1842
  extend Gem::Deprecate
1843
- deprecate :ResourceRegion, :none, 2025, 4
1844
- deprecate :ResourceRegion=, :none, 2025, 4
1845
- deprecate :UpdateStatus, :none, 2025, 4
1846
- deprecate :UpdateStatus=, :none, 2025, 4
1847
- deprecate :UpdateId, :none, 2025, 4
1848
- deprecate :UpdateId=, :none, 2025, 4
1849
- deprecate :Items, :none, 2025, 4
1850
- deprecate :Items=, :none, 2025, 4
1843
+ deprecate :ResourceRegion, :none, 2025, 5
1844
+ deprecate :ResourceRegion=, :none, 2025, 5
1845
+ deprecate :UpdateStatus, :none, 2025, 5
1846
+ deprecate :UpdateStatus=, :none, 2025, 5
1847
+ deprecate :UpdateId, :none, 2025, 5
1848
+ deprecate :UpdateId=, :none, 2025, 5
1849
+ deprecate :Items, :none, 2025, 5
1850
+ deprecate :Items=, :none, 2025, 5
1851
1851
 
1852
1852
  def initialize(dspaid=nil, metatype=nil, resourceregion=nil, updatestatus=nil, updateid=nil, items=nil, cloudresourceitems=nil)
1853
1853
  @DspaId = dspaid
@@ -1899,10 +1899,10 @@ module TencentCloud
1899
1899
 
1900
1900
  attr_accessor :UpdateId, :MetaType, :DspaId, :ResourceRegion, :RequestId
1901
1901
  extend Gem::Deprecate
1902
- deprecate :UpdateId, :none, 2025, 4
1903
- deprecate :UpdateId=, :none, 2025, 4
1904
- deprecate :ResourceRegion, :none, 2025, 4
1905
- deprecate :ResourceRegion=, :none, 2025, 4
1902
+ deprecate :UpdateId, :none, 2025, 5
1903
+ deprecate :UpdateId=, :none, 2025, 5
1904
+ deprecate :ResourceRegion, :none, 2025, 5
1905
+ deprecate :ResourceRegion=, :none, 2025, 5
1906
1906
 
1907
1907
  def initialize(updateid=nil, metatype=nil, dspaid=nil, resourceregion=nil, requestid=nil)
1908
1908
  @UpdateId = updateid
@@ -2028,8 +2028,8 @@ module TencentCloud
2028
2028
 
2029
2029
  attr_accessor :DspaId, :Name, :DataSourceId, :Enable, :Plan, :Period, :ResourceRegion, :DataSourceType, :GeneralRuleSetEnable, :Description, :Condition, :ComplianceGroupIds, :TimingStartTime, :Order, :Rows, :GlobalOrderField
2030
2030
  extend Gem::Deprecate
2031
- deprecate :GeneralRuleSetEnable, :none, 2025, 4
2032
- deprecate :GeneralRuleSetEnable=, :none, 2025, 4
2031
+ deprecate :GeneralRuleSetEnable, :none, 2025, 5
2032
+ deprecate :GeneralRuleSetEnable=, :none, 2025, 5
2033
2033
 
2034
2034
  def initialize(dspaid=nil, name=nil, datasourceid=nil, enable=nil, plan=nil, period=nil, resourceregion=nil, datasourcetype=nil, generalrulesetenable=nil, description=nil, condition=nil, compliancegroupids=nil, timingstarttime=nil, order=nil, rows=nil, globalorderfield=nil)
2035
2035
  @DspaId = dspaid
@@ -3389,10 +3389,10 @@ module TencentCloud
3389
3389
 
3390
3390
  attr_accessor :DspaId, :DataSourceType, :DataSourceId
3391
3391
  extend Gem::Deprecate
3392
- deprecate :DataSourceType, :none, 2025, 4
3393
- deprecate :DataSourceType=, :none, 2025, 4
3394
- deprecate :DataSourceId, :none, 2025, 4
3395
- deprecate :DataSourceId=, :none, 2025, 4
3392
+ deprecate :DataSourceType, :none, 2025, 5
3393
+ deprecate :DataSourceType=, :none, 2025, 5
3394
+ deprecate :DataSourceId, :none, 2025, 5
3395
+ deprecate :DataSourceId=, :none, 2025, 5
3396
3396
 
3397
3397
  def initialize(dspaid=nil, datasourcetype=nil, datasourceid=nil)
3398
3398
  @DspaId = dspaid
@@ -6384,6 +6384,84 @@ module TencentCloud
6384
6384
  end
6385
6385
  end
6386
6386
 
6387
+ # DescribeDSPADiscoveryTasks请求参数结构体
6388
+ class DescribeDSPADiscoveryTasksRequest < TencentCloud::Common::AbstractModel
6389
+ # @param DspaId: DSPA实例ID
6390
+ # @type DspaId: String
6391
+ # @param DataSourceType: 数据源类型,可取值如下:
6392
+ # cdb 表示云数据库 MySQL,
6393
+ # dcdb 表示TDSQL MySQL版,
6394
+ # mariadb 表示云数据库 MariaDB,
6395
+ # postgres 表示云数据库 PostgreSQL,
6396
+ # cynosdbpg 表示TDSQL-C PostgreSQL版,
6397
+ # cynosdbmysql 表示TDSQL-C MySQL版,
6398
+ # selfbuilt-db 表示自建数据库
6399
+ # @type DataSourceType: String
6400
+ # @param TaskId: 任务ID
6401
+ # @type TaskId: Integer
6402
+ # @param Name: 任务名称
6403
+ # @type Name: String
6404
+ # @param StatusList: 任务扫描结果状态,可供选择的状态值有:-1待触发 0待扫描 1扫描中 2扫描终止 3扫描成功 4扫描失败
6405
+ # @type StatusList: Array
6406
+ # @param Offset: 偏移量,默认为0
6407
+ # @type Offset: Integer
6408
+ # @param Limit: 返回结果集数量,默认值是10000,最大值为10000,根据该资源的个数限制条件,该资源的个数不会超过10000,所以如果不输入该字段,默认获取全量数据
6409
+ # @type Limit: Integer
6410
+
6411
+ attr_accessor :DspaId, :DataSourceType, :TaskId, :Name, :StatusList, :Offset, :Limit
6412
+
6413
+ def initialize(dspaid=nil, datasourcetype=nil, taskid=nil, name=nil, statuslist=nil, offset=nil, limit=nil)
6414
+ @DspaId = dspaid
6415
+ @DataSourceType = datasourcetype
6416
+ @TaskId = taskid
6417
+ @Name = name
6418
+ @StatusList = statuslist
6419
+ @Offset = offset
6420
+ @Limit = limit
6421
+ end
6422
+
6423
+ def deserialize(params)
6424
+ @DspaId = params['DspaId']
6425
+ @DataSourceType = params['DataSourceType']
6426
+ @TaskId = params['TaskId']
6427
+ @Name = params['Name']
6428
+ @StatusList = params['StatusList']
6429
+ @Offset = params['Offset']
6430
+ @Limit = params['Limit']
6431
+ end
6432
+ end
6433
+
6434
+ # DescribeDSPADiscoveryTasks返回参数结构体
6435
+ class DescribeDSPADiscoveryTasksResponse < TencentCloud::Common::AbstractModel
6436
+ # @param Items: 任务列表
6437
+ # @type Items: Array
6438
+ # @param TotalCount: 符合条件的任务列表数
6439
+ # @type TotalCount: Integer
6440
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6441
+ # @type RequestId: String
6442
+
6443
+ attr_accessor :Items, :TotalCount, :RequestId
6444
+
6445
+ def initialize(items=nil, totalcount=nil, requestid=nil)
6446
+ @Items = items
6447
+ @TotalCount = totalcount
6448
+ @RequestId = requestid
6449
+ end
6450
+
6451
+ def deserialize(params)
6452
+ unless params['Items'].nil?
6453
+ @Items = []
6454
+ params['Items'].each do |i|
6455
+ dspadiscoverytask_tmp = DspaDiscoveryTask.new
6456
+ dspadiscoverytask_tmp.deserialize(i)
6457
+ @Items << dspadiscoverytask_tmp
6458
+ end
6459
+ end
6460
+ @TotalCount = params['TotalCount']
6461
+ @RequestId = params['RequestId']
6462
+ end
6463
+ end
6464
+
6387
6465
  # DescribeDSPAESDataAssetByComplianceId请求参数结构体
6388
6466
  class DescribeDSPAESDataAssetByComplianceIdRequest < TencentCloud::Common::AbstractModel
6389
6467
  # @param DspaId: dspa实例id
@@ -8740,6 +8818,67 @@ module TencentCloud
8740
8818
  end
8741
8819
  end
8742
8820
 
8821
+ # 分类分级任务相关信息
8822
+ class DspaDiscoveryTask < TencentCloud::Common::AbstractModel
8823
+ # @param Name: 任务名称
8824
+ # @type Name: String
8825
+ # @param Description: 任务描述
8826
+ # @type Description: String
8827
+ # @param Period: 执行周期,0单次 1每天 2每周 3每月
8828
+ # @type Period: Integer
8829
+ # @param Plan: 执行计划,0立即 1定时
8830
+ # @type Plan: Integer
8831
+ # @param Enable: 任务开关;1 打开,0 关闭
8832
+ # @type Enable: Integer
8833
+ # @param DataSourceInfo: 元数据对象信息
8834
+ # @type DataSourceInfo: :class:`Tencentcloud::Dsgc.v20190723.models.DspaDiscoveryTaskDataSource`
8835
+ # @param GeneralRuleSetEnable: 通用规则集开关,0 关闭,1 启用
8836
+ # @type GeneralRuleSetEnable: Integer
8837
+ # @param Result: 任务最新的一次执行结果信息,该字段用于查询任务列表接口
8838
+ # 注意:此字段可能返回 null,表示取不到有效值。
8839
+ # @type Result: :class:`Tencentcloud::Dsgc.v20190723.models.ScanTaskResult`
8840
+ # @param TimingStartTime: 定时开始时间
8841
+ # 注意:此字段可能返回 null,表示取不到有效值。
8842
+ # @type TimingStartTime: String
8843
+ # @param ComplianceUpdate: 关联模板是否更新
8844
+ # 注意:此字段可能返回 null,表示取不到有效值。
8845
+ # @type ComplianceUpdate: Boolean
8846
+
8847
+ attr_accessor :Name, :Description, :Period, :Plan, :Enable, :DataSourceInfo, :GeneralRuleSetEnable, :Result, :TimingStartTime, :ComplianceUpdate
8848
+
8849
+ def initialize(name=nil, description=nil, period=nil, plan=nil, enable=nil, datasourceinfo=nil, generalrulesetenable=nil, result=nil, timingstarttime=nil, complianceupdate=nil)
8850
+ @Name = name
8851
+ @Description = description
8852
+ @Period = period
8853
+ @Plan = plan
8854
+ @Enable = enable
8855
+ @DataSourceInfo = datasourceinfo
8856
+ @GeneralRuleSetEnable = generalrulesetenable
8857
+ @Result = result
8858
+ @TimingStartTime = timingstarttime
8859
+ @ComplianceUpdate = complianceupdate
8860
+ end
8861
+
8862
+ def deserialize(params)
8863
+ @Name = params['Name']
8864
+ @Description = params['Description']
8865
+ @Period = params['Period']
8866
+ @Plan = params['Plan']
8867
+ @Enable = params['Enable']
8868
+ unless params['DataSourceInfo'].nil?
8869
+ @DataSourceInfo = DspaDiscoveryTaskDataSource.new
8870
+ @DataSourceInfo.deserialize(params['DataSourceInfo'])
8871
+ end
8872
+ @GeneralRuleSetEnable = params['GeneralRuleSetEnable']
8873
+ unless params['Result'].nil?
8874
+ @Result = ScanTaskResult.new
8875
+ @Result.deserialize(params['Result'])
8876
+ end
8877
+ @TimingStartTime = params['TimingStartTime']
8878
+ @ComplianceUpdate = params['ComplianceUpdate']
8879
+ end
8880
+ end
8881
+
8743
8882
  # 描述对象存储类敏感识别扫描人元数据条件。
8744
8883
  class DspaDiscoveryTaskCOSCondition < TencentCloud::Common::AbstractModel
8745
8884
  # @param Bucket: 数据桶名称
@@ -10533,8 +10672,8 @@ module TencentCloud
10533
10672
 
10534
10673
  attr_accessor :DspaId, :Status, :RiskLatestTableId, :Note, :ProcessPeople, :BathRiskIdList
10535
10674
  extend Gem::Deprecate
10536
- deprecate :RiskLatestTableId, :none, 2025, 4
10537
- deprecate :RiskLatestTableId=, :none, 2025, 4
10675
+ deprecate :RiskLatestTableId, :none, 2025, 5
10676
+ deprecate :RiskLatestTableId=, :none, 2025, 5
10538
10677
 
10539
10678
  def initialize(dspaid=nil, status=nil, risklatesttableid=nil, note=nil, processpeople=nil, bathriskidlist=nil)
10540
10679
  @DspaId = dspaid
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-dsgc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1054
4
+ version: 3.0.1055
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-07 00:00:00.000000000 Z
11
+ date: 2025-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common