tencentcloud-sdk-dlc 3.0.672 → 3.0.673

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: adacaf45bb2ced0690bb240621db6c739e7a0dfb
4
- data.tar.gz: 7afdb7884a7330b2f9db12cd56c5d534aadcafcf
3
+ metadata.gz: ffe5566671e94209b7f3adb5f7a0fd16439314d1
4
+ data.tar.gz: bac1d816089a2b346e46171f08e8e6b198760fdb
5
5
  SHA512:
6
- metadata.gz: 6107f89c94ca9a18cbc8c94692856630456bc11ada260a0678a3440dee644e2ca0a710fe380211ea9ffc899ee5e3f45081e30a9902eb4623f714bbfe2dc95021
7
- data.tar.gz: 3f3df9793a4cbdf3e51fa1c0ef0fe3d51534c2f1d1f0e7f1168916739975e97caa809aedd19152ac3b9b2db6579fdadeba0143c66ae8f66f6b74cfc5dddc47b7
6
+ metadata.gz: fe44d4d59c399ccd5f7c2637d2e696721191ac4b8c33742667c574c4611e79772d5cbc1f053a5f9d24dc69882a0c96d7234c848c8710739121629f8e1ed0eb9e
7
+ data.tar.gz: 7eace573295a5643701ac1d719ab6c5c7be4cc5091f4f8ff4b7d634d7aebc1be1ddf68954016eed363061b7323acaee44d6a7bde463a1ba38a609b2073f360f4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.672
1
+ 3.0.673
@@ -2213,6 +2213,30 @@ module TencentCloud
2213
2213
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2214
2214
  end
2215
2215
 
2216
+ # GetOptimizerPolicy
2217
+
2218
+ # @param request: Request instance for GetOptimizerPolicy.
2219
+ # @type request: :class:`Tencentcloud::dlc::V20210125::GetOptimizerPolicyRequest`
2220
+ # @rtype: :class:`Tencentcloud::dlc::V20210125::GetOptimizerPolicyResponse`
2221
+ def GetOptimizerPolicy(request)
2222
+ body = send_request('GetOptimizerPolicy', request.serialize)
2223
+ response = JSON.parse(body)
2224
+ if response['Response'].key?('Error') == false
2225
+ model = GetOptimizerPolicyResponse.new
2226
+ model.deserialize(response['Response'])
2227
+ model
2228
+ else
2229
+ code = response['Response']['Error']['Code']
2230
+ message = response['Response']['Error']['Message']
2231
+ reqid = response['Response']['RequestId']
2232
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2233
+ end
2234
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2235
+ raise e
2236
+ rescue StandardError => e
2237
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2238
+ end
2239
+
2216
2240
  # 本接口(ListTaskJobLogDetail)用于获取spark 作业任务日志详情
2217
2241
 
2218
2242
  # @param request: Request instance for ListTaskJobLogDetail.
@@ -6927,6 +6927,38 @@ module TencentCloud
6927
6927
  end
6928
6928
  end
6929
6929
 
6930
+ # FavorInfo
6931
+ class FavorInfo < TencentCloud::Common::AbstractModel
6932
+ # @param Priority: 优先事项
6933
+ # 注意:此字段可能返回 null,表示取不到有效值。
6934
+ # @type Priority: Integer
6935
+ # @param Catalog: Catalog名称
6936
+ # 注意:此字段可能返回 null,表示取不到有效值。
6937
+ # @type Catalog: String
6938
+ # @param DataBase: DataBase名称
6939
+ # 注意:此字段可能返回 null,表示取不到有效值。
6940
+ # @type DataBase: String
6941
+ # @param Table: Table名称
6942
+ # 注意:此字段可能返回 null,表示取不到有效值。
6943
+ # @type Table: String
6944
+
6945
+ attr_accessor :Priority, :Catalog, :DataBase, :Table
6946
+
6947
+ def initialize(priority=nil, catalog=nil, database=nil, table=nil)
6948
+ @Priority = priority
6949
+ @Catalog = catalog
6950
+ @DataBase = database
6951
+ @Table = table
6952
+ end
6953
+
6954
+ def deserialize(params)
6955
+ @Priority = params['Priority']
6956
+ @Catalog = params['Catalog']
6957
+ @DataBase = params['DataBase']
6958
+ @Table = params['Table']
6959
+ end
6960
+ end
6961
+
6930
6962
  # 查询列表过滤条件参数
6931
6963
  class Filter < TencentCloud::Common::AbstractModel
6932
6964
  # @param Name: 属性名称, 若存在多个Filter时,Filter间的关系为逻辑或(OR)关系。
@@ -7026,6 +7058,48 @@ module TencentCloud
7026
7058
  end
7027
7059
  end
7028
7060
 
7061
+ # GetOptimizerPolicy请求参数结构体
7062
+ class GetOptimizerPolicyRequest < TencentCloud::Common::AbstractModel
7063
+ # @param SmartPolicy: 策略描述
7064
+ # @type SmartPolicy: :class:`Tencentcloud::Dlc.v20210125.models.SmartPolicy`
7065
+
7066
+ attr_accessor :SmartPolicy
7067
+
7068
+ def initialize(smartpolicy=nil)
7069
+ @SmartPolicy = smartpolicy
7070
+ end
7071
+
7072
+ def deserialize(params)
7073
+ unless params['SmartPolicy'].nil?
7074
+ @SmartPolicy = SmartPolicy.new
7075
+ @SmartPolicy.deserialize(params['SmartPolicy'])
7076
+ end
7077
+ end
7078
+ end
7079
+
7080
+ # GetOptimizerPolicy返回参数结构体
7081
+ class GetOptimizerPolicyResponse < TencentCloud::Common::AbstractModel
7082
+ # @param SmartOptimizerPolicy: 智能优化策略
7083
+ # @type SmartOptimizerPolicy: :class:`Tencentcloud::Dlc.v20210125.models.SmartOptimizerPolicy`
7084
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7085
+ # @type RequestId: String
7086
+
7087
+ attr_accessor :SmartOptimizerPolicy, :RequestId
7088
+
7089
+ def initialize(smartoptimizerpolicy=nil, requestid=nil)
7090
+ @SmartOptimizerPolicy = smartoptimizerpolicy
7091
+ @RequestId = requestid
7092
+ end
7093
+
7094
+ def deserialize(params)
7095
+ unless params['SmartOptimizerPolicy'].nil?
7096
+ @SmartOptimizerPolicy = SmartOptimizerPolicy.new
7097
+ @SmartOptimizerPolicy.deserialize(params['SmartOptimizerPolicy'])
7098
+ end
7099
+ @RequestId = params['RequestId']
7100
+ end
7101
+ end
7102
+
7029
7103
  # hive类型数据源的信息
7030
7104
  class HiveInfo < TencentCloud::Common::AbstractModel
7031
7105
  # @param MetaStoreUrl: hive metastore的地址
@@ -8655,6 +8729,55 @@ module TencentCloud
8655
8729
  end
8656
8730
  end
8657
8731
 
8732
+ # ResourceInfo
8733
+ class ResourceInfo < TencentCloud::Common::AbstractModel
8734
+ # @param AttributionType: 归属类型
8735
+ # 注意:此字段可能返回 null,表示取不到有效值。
8736
+ # @type AttributionType: String
8737
+ # @param ResourceType: 资源类型
8738
+ # 注意:此字段可能返回 null,表示取不到有效值。
8739
+ # @type ResourceType: String
8740
+ # @param Name: 引擎名称
8741
+ # 注意:此字段可能返回 null,表示取不到有效值。
8742
+ # @type Name: String
8743
+ # @param Instance: 如资源类型为spark-sql 取值为Name, 如为spark-batch 取值为session app_name
8744
+ # 注意:此字段可能返回 null,表示取不到有效值。
8745
+ # @type Instance: String
8746
+ # @param Favor: 亲和性
8747
+ # 注意:此字段可能返回 null,表示取不到有效值。
8748
+ # @type Favor: Array
8749
+ # @param Status: 状态
8750
+ # 注意:此字段可能返回 null,表示取不到有效值。
8751
+ # @type Status: Integer
8752
+
8753
+ attr_accessor :AttributionType, :ResourceType, :Name, :Instance, :Favor, :Status
8754
+
8755
+ def initialize(attributiontype=nil, resourcetype=nil, name=nil, instance=nil, favor=nil, status=nil)
8756
+ @AttributionType = attributiontype
8757
+ @ResourceType = resourcetype
8758
+ @Name = name
8759
+ @Instance = instance
8760
+ @Favor = favor
8761
+ @Status = status
8762
+ end
8763
+
8764
+ def deserialize(params)
8765
+ @AttributionType = params['AttributionType']
8766
+ @ResourceType = params['ResourceType']
8767
+ @Name = params['Name']
8768
+ @Instance = params['Instance']
8769
+ unless params['Favor'].nil?
8770
+ @Favor = []
8771
+ params['Favor'].each do |i|
8772
+ favorinfo_tmp = FavorInfo.new
8773
+ favorinfo_tmp.deserialize(i)
8774
+ @Favor << favorinfo_tmp
8775
+ end
8776
+ end
8777
+ @Status = params['Status']
8778
+ end
8779
+ end
8780
+
8658
8781
  # RestartDataEngine请求参数结构体
8659
8782
  class RestartDataEngineRequest < TencentCloud::Common::AbstractModel
8660
8783
 
@@ -8810,6 +8933,184 @@ module TencentCloud
8810
8933
  end
8811
8934
  end
8812
8935
 
8936
+ # SmartOptimizerIndexPolicy
8937
+ class SmartOptimizerIndexPolicy < TencentCloud::Common::AbstractModel
8938
+ # @param IndexEnable: 开启索引
8939
+ # 注意:此字段可能返回 null,表示取不到有效值。
8940
+ # @type IndexEnable: String
8941
+
8942
+ attr_accessor :IndexEnable
8943
+
8944
+ def initialize(indexenable=nil)
8945
+ @IndexEnable = indexenable
8946
+ end
8947
+
8948
+ def deserialize(params)
8949
+ @IndexEnable = params['IndexEnable']
8950
+ end
8951
+ end
8952
+
8953
+ # SmartOptimizerLifecyclePolicy
8954
+ class SmartOptimizerLifecyclePolicy < TencentCloud::Common::AbstractModel
8955
+ # @param LifecycleEnable: 生命周期启用
8956
+ # 注意:此字段可能返回 null,表示取不到有效值。
8957
+ # @type LifecycleEnable: String
8958
+ # @param Expiration: 过期时间
8959
+ # 注意:此字段可能返回 null,表示取不到有效值。
8960
+ # @type Expiration: Integer
8961
+ # @param DropTable: 是否删表
8962
+ # 注意:此字段可能返回 null,表示取不到有效值。
8963
+ # @type DropTable: Boolean
8964
+
8965
+ attr_accessor :LifecycleEnable, :Expiration, :DropTable
8966
+
8967
+ def initialize(lifecycleenable=nil, expiration=nil, droptable=nil)
8968
+ @LifecycleEnable = lifecycleenable
8969
+ @Expiration = expiration
8970
+ @DropTable = droptable
8971
+ end
8972
+
8973
+ def deserialize(params)
8974
+ @LifecycleEnable = params['LifecycleEnable']
8975
+ @Expiration = params['Expiration']
8976
+ @DropTable = params['DropTable']
8977
+ end
8978
+ end
8979
+
8980
+ # SmartOptimizerPolicy
8981
+ class SmartOptimizerPolicy < TencentCloud::Common::AbstractModel
8982
+ # @param Inherit: 是否继承
8983
+ # 注意:此字段可能返回 null,表示取不到有效值。
8984
+ # @type Inherit: String
8985
+ # @param Resources: ResourceInfo
8986
+ # 注意:此字段可能返回 null,表示取不到有效值。
8987
+ # @type Resources: Array
8988
+ # @param Written: SmartOptimizerWrittenPolicy
8989
+ # 注意:此字段可能返回 null,表示取不到有效值。
8990
+ # @type Written: :class:`Tencentcloud::Dlc.v20210125.models.SmartOptimizerWrittenPolicy`
8991
+ # @param Lifecycle: SmartOptimizerLifecyclePolicy
8992
+ # 注意:此字段可能返回 null,表示取不到有效值。
8993
+ # @type Lifecycle: :class:`Tencentcloud::Dlc.v20210125.models.SmartOptimizerLifecyclePolicy`
8994
+ # @param Index: SmartOptimizerIndexPolicy
8995
+ # 注意:此字段可能返回 null,表示取不到有效值。
8996
+ # @type Index: :class:`Tencentcloud::Dlc.v20210125.models.SmartOptimizerIndexPolicy`
8997
+
8998
+ attr_accessor :Inherit, :Resources, :Written, :Lifecycle, :Index
8999
+
9000
+ def initialize(inherit=nil, resources=nil, written=nil, lifecycle=nil, index=nil)
9001
+ @Inherit = inherit
9002
+ @Resources = resources
9003
+ @Written = written
9004
+ @Lifecycle = lifecycle
9005
+ @Index = index
9006
+ end
9007
+
9008
+ def deserialize(params)
9009
+ @Inherit = params['Inherit']
9010
+ unless params['Resources'].nil?
9011
+ @Resources = []
9012
+ params['Resources'].each do |i|
9013
+ resourceinfo_tmp = ResourceInfo.new
9014
+ resourceinfo_tmp.deserialize(i)
9015
+ @Resources << resourceinfo_tmp
9016
+ end
9017
+ end
9018
+ unless params['Written'].nil?
9019
+ @Written = SmartOptimizerWrittenPolicy.new
9020
+ @Written.deserialize(params['Written'])
9021
+ end
9022
+ unless params['Lifecycle'].nil?
9023
+ @Lifecycle = SmartOptimizerLifecyclePolicy.new
9024
+ @Lifecycle.deserialize(params['Lifecycle'])
9025
+ end
9026
+ unless params['Index'].nil?
9027
+ @Index = SmartOptimizerIndexPolicy.new
9028
+ @Index.deserialize(params['Index'])
9029
+ end
9030
+ end
9031
+ end
9032
+
9033
+ # SmartOptimizerWrittenPolicy
9034
+ class SmartOptimizerWrittenPolicy < TencentCloud::Common::AbstractModel
9035
+
9036
+
9037
+ def initialize()
9038
+ end
9039
+
9040
+ def deserialize(params)
9041
+ end
9042
+ end
9043
+
9044
+ # SmartPolicyRequest
9045
+ class SmartPolicy < TencentCloud::Common::AbstractModel
9046
+ # @param BaseInfo: 基础信息
9047
+ # 注意:此字段可能返回 null,表示取不到有效值。
9048
+ # @type BaseInfo: :class:`Tencentcloud::Dlc.v20210125.models.SmartPolicyBaseInfo`
9049
+ # @param Policy: 策略描述
9050
+ # 注意:此字段可能返回 null,表示取不到有效值。
9051
+ # @type Policy: :class:`Tencentcloud::Dlc.v20210125.models.SmartOptimizerPolicy`
9052
+
9053
+ attr_accessor :BaseInfo, :Policy
9054
+
9055
+ def initialize(baseinfo=nil, policy=nil)
9056
+ @BaseInfo = baseinfo
9057
+ @Policy = policy
9058
+ end
9059
+
9060
+ def deserialize(params)
9061
+ unless params['BaseInfo'].nil?
9062
+ @BaseInfo = SmartPolicyBaseInfo.new
9063
+ @BaseInfo.deserialize(params['BaseInfo'])
9064
+ end
9065
+ unless params['Policy'].nil?
9066
+ @Policy = SmartOptimizerPolicy.new
9067
+ @Policy.deserialize(params['Policy'])
9068
+ end
9069
+ end
9070
+ end
9071
+
9072
+ # SmartPolicyBaseInfo
9073
+ class SmartPolicyBaseInfo < TencentCloud::Common::AbstractModel
9074
+ # @param Uin: 用户uin
9075
+ # 注意:此字段可能返回 null,表示取不到有效值。
9076
+ # @type Uin: String
9077
+ # @param PolicyType: Catalog/Database/Table
9078
+ # 注意:此字段可能返回 null,表示取不到有效值。
9079
+ # @type PolicyType: String
9080
+ # @param Catalog: Catalog名称
9081
+ # 注意:此字段可能返回 null,表示取不到有效值。
9082
+ # @type Catalog: String
9083
+ # @param Database: 数据库名称
9084
+ # 注意:此字段可能返回 null,表示取不到有效值。
9085
+ # @type Database: String
9086
+ # @param Table: 表名称
9087
+ # 注意:此字段可能返回 null,表示取不到有效值。
9088
+ # @type Table: String
9089
+ # @param AppId: 用户appid
9090
+ # 注意:此字段可能返回 null,表示取不到有效值。
9091
+ # @type AppId: String
9092
+
9093
+ attr_accessor :Uin, :PolicyType, :Catalog, :Database, :Table, :AppId
9094
+
9095
+ def initialize(uin=nil, policytype=nil, catalog=nil, database=nil, table=nil, appid=nil)
9096
+ @Uin = uin
9097
+ @PolicyType = policytype
9098
+ @Catalog = catalog
9099
+ @Database = database
9100
+ @Table = table
9101
+ @AppId = appid
9102
+ end
9103
+
9104
+ def deserialize(params)
9105
+ @Uin = params['Uin']
9106
+ @PolicyType = params['PolicyType']
9107
+ @Catalog = params['Catalog']
9108
+ @Database = params['Database']
9109
+ @Table = params['Table']
9110
+ @AppId = params['AppId']
9111
+ end
9112
+ end
9113
+
8813
9114
  # spark作业详情。
8814
9115
  class SparkJobInfo < TencentCloud::Common::AbstractModel
8815
9116
  # @param JobId: spark作业ID
@@ -9420,10 +9721,13 @@ module TencentCloud
9420
9721
  # @param DbGovernPolicyIsDisable: 库数据治理是否关闭,关闭:true,开启:false
9421
9722
  # 注意:此字段可能返回 null,表示取不到有效值。
9422
9723
  # @type DbGovernPolicyIsDisable: String
9724
+ # @param SmartPolicy: 智能数据治理配置项
9725
+ # 注意:此字段可能返回 null,表示取不到有效值。
9726
+ # @type SmartPolicy: :class:`Tencentcloud::Dlc.v20210125.models.SmartPolicy`
9423
9727
 
9424
- attr_accessor :DatabaseName, :TableName, :DatasourceConnectionName, :TableComment, :Type, :TableFormat, :UserAlias, :UserSubUin, :GovernPolicy, :DbGovernPolicyIsDisable
9728
+ attr_accessor :DatabaseName, :TableName, :DatasourceConnectionName, :TableComment, :Type, :TableFormat, :UserAlias, :UserSubUin, :GovernPolicy, :DbGovernPolicyIsDisable, :SmartPolicy
9425
9729
 
9426
- def initialize(databasename=nil, tablename=nil, datasourceconnectionname=nil, tablecomment=nil, type=nil, tableformat=nil, useralias=nil, usersubuin=nil, governpolicy=nil, dbgovernpolicyisdisable=nil)
9730
+ def initialize(databasename=nil, tablename=nil, datasourceconnectionname=nil, tablecomment=nil, type=nil, tableformat=nil, useralias=nil, usersubuin=nil, governpolicy=nil, dbgovernpolicyisdisable=nil, smartpolicy=nil)
9427
9731
  @DatabaseName = databasename
9428
9732
  @TableName = tablename
9429
9733
  @DatasourceConnectionName = datasourceconnectionname
@@ -9434,6 +9738,7 @@ module TencentCloud
9434
9738
  @UserSubUin = usersubuin
9435
9739
  @GovernPolicy = governpolicy
9436
9740
  @DbGovernPolicyIsDisable = dbgovernpolicyisdisable
9741
+ @SmartPolicy = smartpolicy
9437
9742
  end
9438
9743
 
9439
9744
  def deserialize(params)
@@ -9450,6 +9755,10 @@ module TencentCloud
9450
9755
  @GovernPolicy.deserialize(params['GovernPolicy'])
9451
9756
  end
9452
9757
  @DbGovernPolicyIsDisable = params['DbGovernPolicyIsDisable']
9758
+ unless params['SmartPolicy'].nil?
9759
+ @SmartPolicy = SmartPolicy.new
9760
+ @SmartPolicy.deserialize(params['SmartPolicy'])
9761
+ end
9453
9762
  end
9454
9763
  end
9455
9764
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-dlc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.672
4
+ version: 3.0.673
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-10-09 00:00:00.000000000 Z
11
+ date: 2023-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common