tencentcloud-sdk-dlc 3.0.672 → 3.0.674

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: 6c67f9d6ad14cccbe19533278840cad230bcf78c
4
+ data.tar.gz: 790873552a33d1bbf601b123837b11027ad7d331
5
5
  SHA512:
6
- metadata.gz: 6107f89c94ca9a18cbc8c94692856630456bc11ada260a0678a3440dee644e2ca0a710fe380211ea9ffc899ee5e3f45081e30a9902eb4623f714bbfe2dc95021
7
- data.tar.gz: 3f3df9793a4cbdf3e51fa1c0ef0fe3d51534c2f1d1f0e7f1168916739975e97caa809aedd19152ac3b9b2db6579fdadeba0143c66ae8f66f6b74cfc5dddc47b7
6
+ metadata.gz: 5885846ee27519a42329364827eede4784e04c689a0f11be5d0288a923754b5969672640ca6f5429021deabf5dc9482b35e20516e9885408856abe401e221fb7
7
+ data.tar.gz: 477d3a0ba94fdd6d5cf7b42165d3f7ae27497e78510750358e799bcf8e838d6e1919657f49ff0c1859b247d2cfea592c77ea8febbfefd888a664e8b820578164
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.672
1
+ 3.0.674
@@ -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.
@@ -3055,14 +3055,60 @@ module TencentCloud
3055
3055
  end
3056
3056
  end
3057
3057
 
3058
+ # 引擎配置信息
3059
+ class DataEngineConfigInstanceInfo < TencentCloud::Common::AbstractModel
3060
+ # @param DataEngineId: 引擎ID
3061
+ # 注意:此字段可能返回 null,表示取不到有效值。
3062
+ # @type DataEngineId: String
3063
+ # @param DataEngineConfigPairs: 用户自定义配置项集合
3064
+ # @type DataEngineConfigPairs: Array
3065
+ # @param SessionResourceTemplate: 作业集群资源参数配置模版
3066
+ # @type SessionResourceTemplate: :class:`Tencentcloud::Dlc.v20210125.models.SessionResourceTemplate`
3067
+
3068
+ attr_accessor :DataEngineId, :DataEngineConfigPairs, :SessionResourceTemplate
3069
+
3070
+ def initialize(dataengineid=nil, dataengineconfigpairs=nil, sessionresourcetemplate=nil)
3071
+ @DataEngineId = dataengineid
3072
+ @DataEngineConfigPairs = dataengineconfigpairs
3073
+ @SessionResourceTemplate = sessionresourcetemplate
3074
+ end
3075
+
3076
+ def deserialize(params)
3077
+ @DataEngineId = params['DataEngineId']
3078
+ unless params['DataEngineConfigPairs'].nil?
3079
+ @DataEngineConfigPairs = []
3080
+ params['DataEngineConfigPairs'].each do |i|
3081
+ dataengineconfigpair_tmp = DataEngineConfigPair.new
3082
+ dataengineconfigpair_tmp.deserialize(i)
3083
+ @DataEngineConfigPairs << dataengineconfigpair_tmp
3084
+ end
3085
+ end
3086
+ unless params['SessionResourceTemplate'].nil?
3087
+ @SessionResourceTemplate = SessionResourceTemplate.new
3088
+ @SessionResourceTemplate.deserialize(params['SessionResourceTemplate'])
3089
+ end
3090
+ end
3091
+ end
3092
+
3058
3093
  # 引擎配置
3059
3094
  class DataEngineConfigPair < TencentCloud::Common::AbstractModel
3095
+ # @param ConfigItem: 配置项
3096
+ # 注意:此字段可能返回 null,表示取不到有效值。
3097
+ # @type ConfigItem: String
3098
+ # @param ConfigValue: 配置值
3099
+ # 注意:此字段可能返回 null,表示取不到有效值。
3100
+ # @type ConfigValue: String
3060
3101
 
3102
+ attr_accessor :ConfigItem, :ConfigValue
3061
3103
 
3062
- def initialize()
3104
+ def initialize(configitem=nil, configvalue=nil)
3105
+ @ConfigItem = configitem
3106
+ @ConfigValue = configvalue
3063
3107
  end
3064
3108
 
3065
3109
  def deserialize(params)
3110
+ @ConfigItem = params['ConfigItem']
3111
+ @ConfigValue = params['ConfigValue']
3066
3112
  end
3067
3113
  end
3068
3114
 
@@ -6074,27 +6120,73 @@ module TencentCloud
6074
6120
 
6075
6121
  # DescribeUserDataEngineConfig请求参数结构体
6076
6122
  class DescribeUserDataEngineConfigRequest < TencentCloud::Common::AbstractModel
6123
+ # @param Sorting: 排序方式,desc表示倒序,asc表示正序
6124
+ # @type Sorting: String
6125
+ # @param Limit: 返回数量,默认为10,最大值为100。
6126
+ # @type Limit: Integer
6127
+ # @param Offset: 偏移量,默认为0。
6128
+ # @type Offset: Integer
6129
+ # @param SortBy: 排序字段,支持如下字段类型,create-time
6130
+ # @type SortBy: String
6131
+ # @param Filters: 过滤条件,如下支持的过滤类型,传参Name应为以下其中一个,每种过滤参数支持的过滤值不超过5个。
6132
+ # app-id - String - (appid过滤)
6133
+ # engine-id - String - (引擎ID过滤)
6134
+ # @type Filters: Array
6077
6135
 
6136
+ attr_accessor :Sorting, :Limit, :Offset, :SortBy, :Filters
6078
6137
 
6079
- def initialize()
6138
+ def initialize(sorting=nil, limit=nil, offset=nil, sortby=nil, filters=nil)
6139
+ @Sorting = sorting
6140
+ @Limit = limit
6141
+ @Offset = offset
6142
+ @SortBy = sortby
6143
+ @Filters = filters
6080
6144
  end
6081
6145
 
6082
6146
  def deserialize(params)
6147
+ @Sorting = params['Sorting']
6148
+ @Limit = params['Limit']
6149
+ @Offset = params['Offset']
6150
+ @SortBy = params['SortBy']
6151
+ unless params['Filters'].nil?
6152
+ @Filters = []
6153
+ params['Filters'].each do |i|
6154
+ filter_tmp = Filter.new
6155
+ filter_tmp.deserialize(i)
6156
+ @Filters << filter_tmp
6157
+ end
6158
+ end
6083
6159
  end
6084
6160
  end
6085
6161
 
6086
6162
  # DescribeUserDataEngineConfig返回参数结构体
6087
6163
  class DescribeUserDataEngineConfigResponse < TencentCloud::Common::AbstractModel
6164
+ # @param DataEngineConfigInstanceInfos: 用户引擎自定义配置项列表。
6165
+ # 注意:此字段可能返回 null,表示取不到有效值。
6166
+ # @type DataEngineConfigInstanceInfos: Array
6167
+ # @param TotalCount: 配置项总数。
6168
+ # @type TotalCount: Integer
6088
6169
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6089
6170
  # @type RequestId: String
6090
6171
 
6091
- attr_accessor :RequestId
6172
+ attr_accessor :DataEngineConfigInstanceInfos, :TotalCount, :RequestId
6092
6173
 
6093
- def initialize(requestid=nil)
6174
+ def initialize(dataengineconfiginstanceinfos=nil, totalcount=nil, requestid=nil)
6175
+ @DataEngineConfigInstanceInfos = dataengineconfiginstanceinfos
6176
+ @TotalCount = totalcount
6094
6177
  @RequestId = requestid
6095
6178
  end
6096
6179
 
6097
6180
  def deserialize(params)
6181
+ unless params['DataEngineConfigInstanceInfos'].nil?
6182
+ @DataEngineConfigInstanceInfos = []
6183
+ params['DataEngineConfigInstanceInfos'].each do |i|
6184
+ dataengineconfiginstanceinfo_tmp = DataEngineConfigInstanceInfo.new
6185
+ dataengineconfiginstanceinfo_tmp.deserialize(i)
6186
+ @DataEngineConfigInstanceInfos << dataengineconfiginstanceinfo_tmp
6187
+ end
6188
+ end
6189
+ @TotalCount = params['TotalCount']
6098
6190
  @RequestId = params['RequestId']
6099
6191
  end
6100
6192
  end
@@ -6927,6 +7019,38 @@ module TencentCloud
6927
7019
  end
6928
7020
  end
6929
7021
 
7022
+ # FavorInfo
7023
+ class FavorInfo < TencentCloud::Common::AbstractModel
7024
+ # @param Priority: 优先事项
7025
+ # 注意:此字段可能返回 null,表示取不到有效值。
7026
+ # @type Priority: Integer
7027
+ # @param Catalog: Catalog名称
7028
+ # 注意:此字段可能返回 null,表示取不到有效值。
7029
+ # @type Catalog: String
7030
+ # @param DataBase: DataBase名称
7031
+ # 注意:此字段可能返回 null,表示取不到有效值。
7032
+ # @type DataBase: String
7033
+ # @param Table: Table名称
7034
+ # 注意:此字段可能返回 null,表示取不到有效值。
7035
+ # @type Table: String
7036
+
7037
+ attr_accessor :Priority, :Catalog, :DataBase, :Table
7038
+
7039
+ def initialize(priority=nil, catalog=nil, database=nil, table=nil)
7040
+ @Priority = priority
7041
+ @Catalog = catalog
7042
+ @DataBase = database
7043
+ @Table = table
7044
+ end
7045
+
7046
+ def deserialize(params)
7047
+ @Priority = params['Priority']
7048
+ @Catalog = params['Catalog']
7049
+ @DataBase = params['DataBase']
7050
+ @Table = params['Table']
7051
+ end
7052
+ end
7053
+
6930
7054
  # 查询列表过滤条件参数
6931
7055
  class Filter < TencentCloud::Common::AbstractModel
6932
7056
  # @param Name: 属性名称, 若存在多个Filter时,Filter间的关系为逻辑或(OR)关系。
@@ -7026,6 +7150,48 @@ module TencentCloud
7026
7150
  end
7027
7151
  end
7028
7152
 
7153
+ # GetOptimizerPolicy请求参数结构体
7154
+ class GetOptimizerPolicyRequest < TencentCloud::Common::AbstractModel
7155
+ # @param SmartPolicy: 策略描述
7156
+ # @type SmartPolicy: :class:`Tencentcloud::Dlc.v20210125.models.SmartPolicy`
7157
+
7158
+ attr_accessor :SmartPolicy
7159
+
7160
+ def initialize(smartpolicy=nil)
7161
+ @SmartPolicy = smartpolicy
7162
+ end
7163
+
7164
+ def deserialize(params)
7165
+ unless params['SmartPolicy'].nil?
7166
+ @SmartPolicy = SmartPolicy.new
7167
+ @SmartPolicy.deserialize(params['SmartPolicy'])
7168
+ end
7169
+ end
7170
+ end
7171
+
7172
+ # GetOptimizerPolicy返回参数结构体
7173
+ class GetOptimizerPolicyResponse < TencentCloud::Common::AbstractModel
7174
+ # @param SmartOptimizerPolicy: 智能优化策略
7175
+ # @type SmartOptimizerPolicy: :class:`Tencentcloud::Dlc.v20210125.models.SmartOptimizerPolicy`
7176
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7177
+ # @type RequestId: String
7178
+
7179
+ attr_accessor :SmartOptimizerPolicy, :RequestId
7180
+
7181
+ def initialize(smartoptimizerpolicy=nil, requestid=nil)
7182
+ @SmartOptimizerPolicy = smartoptimizerpolicy
7183
+ @RequestId = requestid
7184
+ end
7185
+
7186
+ def deserialize(params)
7187
+ unless params['SmartOptimizerPolicy'].nil?
7188
+ @SmartOptimizerPolicy = SmartOptimizerPolicy.new
7189
+ @SmartOptimizerPolicy.deserialize(params['SmartOptimizerPolicy'])
7190
+ end
7191
+ @RequestId = params['RequestId']
7192
+ end
7193
+ end
7194
+
7029
7195
  # hive类型数据源的信息
7030
7196
  class HiveInfo < TencentCloud::Common::AbstractModel
7031
7197
  # @param MetaStoreUrl: hive metastore的地址
@@ -8655,14 +8821,72 @@ module TencentCloud
8655
8821
  end
8656
8822
  end
8657
8823
 
8824
+ # ResourceInfo
8825
+ class ResourceInfo < TencentCloud::Common::AbstractModel
8826
+ # @param AttributionType: 归属类型
8827
+ # 注意:此字段可能返回 null,表示取不到有效值。
8828
+ # @type AttributionType: String
8829
+ # @param ResourceType: 资源类型
8830
+ # 注意:此字段可能返回 null,表示取不到有效值。
8831
+ # @type ResourceType: String
8832
+ # @param Name: 引擎名称
8833
+ # 注意:此字段可能返回 null,表示取不到有效值。
8834
+ # @type Name: String
8835
+ # @param Instance: 如资源类型为spark-sql 取值为Name, 如为spark-batch 取值为session app_name
8836
+ # 注意:此字段可能返回 null,表示取不到有效值。
8837
+ # @type Instance: String
8838
+ # @param Favor: 亲和性
8839
+ # 注意:此字段可能返回 null,表示取不到有效值。
8840
+ # @type Favor: Array
8841
+ # @param Status: 状态
8842
+ # 注意:此字段可能返回 null,表示取不到有效值。
8843
+ # @type Status: Integer
8844
+
8845
+ attr_accessor :AttributionType, :ResourceType, :Name, :Instance, :Favor, :Status
8846
+
8847
+ def initialize(attributiontype=nil, resourcetype=nil, name=nil, instance=nil, favor=nil, status=nil)
8848
+ @AttributionType = attributiontype
8849
+ @ResourceType = resourcetype
8850
+ @Name = name
8851
+ @Instance = instance
8852
+ @Favor = favor
8853
+ @Status = status
8854
+ end
8855
+
8856
+ def deserialize(params)
8857
+ @AttributionType = params['AttributionType']
8858
+ @ResourceType = params['ResourceType']
8859
+ @Name = params['Name']
8860
+ @Instance = params['Instance']
8861
+ unless params['Favor'].nil?
8862
+ @Favor = []
8863
+ params['Favor'].each do |i|
8864
+ favorinfo_tmp = FavorInfo.new
8865
+ favorinfo_tmp.deserialize(i)
8866
+ @Favor << favorinfo_tmp
8867
+ end
8868
+ end
8869
+ @Status = params['Status']
8870
+ end
8871
+ end
8872
+
8658
8873
  # RestartDataEngine请求参数结构体
8659
8874
  class RestartDataEngineRequest < TencentCloud::Common::AbstractModel
8875
+ # @param DataEngineId: 引擎ID
8876
+ # @type DataEngineId: String
8877
+ # @param ForcedOperation: 是否强制重启,忽略任务
8878
+ # @type ForcedOperation: Boolean
8660
8879
 
8880
+ attr_accessor :DataEngineId, :ForcedOperation
8661
8881
 
8662
- def initialize()
8882
+ def initialize(dataengineid=nil, forcedoperation=nil)
8883
+ @DataEngineId = dataengineid
8884
+ @ForcedOperation = forcedoperation
8663
8885
  end
8664
8886
 
8665
8887
  def deserialize(params)
8888
+ @DataEngineId = params['DataEngineId']
8889
+ @ForcedOperation = params['ForcedOperation']
8666
8890
  end
8667
8891
  end
8668
8892
 
@@ -8684,12 +8908,25 @@ module TencentCloud
8684
8908
 
8685
8909
  # RollbackDataEngineImage请求参数结构体
8686
8910
  class RollbackDataEngineImageRequest < TencentCloud::Common::AbstractModel
8911
+ # @param DataEngineId: 引擎ID
8912
+ # @type DataEngineId: String
8913
+ # @param FromRecordId: 检查是否能回滚的接口返回的FromRecordId参数
8914
+ # @type FromRecordId: String
8915
+ # @param ToRecordId: 检查是否能回滚的接口返回的ToRecordId参数
8916
+ # @type ToRecordId: String
8687
8917
 
8918
+ attr_accessor :DataEngineId, :FromRecordId, :ToRecordId
8688
8919
 
8689
- def initialize()
8920
+ def initialize(dataengineid=nil, fromrecordid=nil, torecordid=nil)
8921
+ @DataEngineId = dataengineid
8922
+ @FromRecordId = fromrecordid
8923
+ @ToRecordId = torecordid
8690
8924
  end
8691
8925
 
8692
8926
  def deserialize(params)
8927
+ @DataEngineId = params['DataEngineId']
8928
+ @FromRecordId = params['FromRecordId']
8929
+ @ToRecordId = params['ToRecordId']
8693
8930
  end
8694
8931
  end
8695
8932
 
@@ -8810,6 +9047,184 @@ module TencentCloud
8810
9047
  end
8811
9048
  end
8812
9049
 
9050
+ # SmartOptimizerIndexPolicy
9051
+ class SmartOptimizerIndexPolicy < TencentCloud::Common::AbstractModel
9052
+ # @param IndexEnable: 开启索引
9053
+ # 注意:此字段可能返回 null,表示取不到有效值。
9054
+ # @type IndexEnable: String
9055
+
9056
+ attr_accessor :IndexEnable
9057
+
9058
+ def initialize(indexenable=nil)
9059
+ @IndexEnable = indexenable
9060
+ end
9061
+
9062
+ def deserialize(params)
9063
+ @IndexEnable = params['IndexEnable']
9064
+ end
9065
+ end
9066
+
9067
+ # SmartOptimizerLifecyclePolicy
9068
+ class SmartOptimizerLifecyclePolicy < TencentCloud::Common::AbstractModel
9069
+ # @param LifecycleEnable: 生命周期启用
9070
+ # 注意:此字段可能返回 null,表示取不到有效值。
9071
+ # @type LifecycleEnable: String
9072
+ # @param Expiration: 过期时间
9073
+ # 注意:此字段可能返回 null,表示取不到有效值。
9074
+ # @type Expiration: Integer
9075
+ # @param DropTable: 是否删表
9076
+ # 注意:此字段可能返回 null,表示取不到有效值。
9077
+ # @type DropTable: Boolean
9078
+
9079
+ attr_accessor :LifecycleEnable, :Expiration, :DropTable
9080
+
9081
+ def initialize(lifecycleenable=nil, expiration=nil, droptable=nil)
9082
+ @LifecycleEnable = lifecycleenable
9083
+ @Expiration = expiration
9084
+ @DropTable = droptable
9085
+ end
9086
+
9087
+ def deserialize(params)
9088
+ @LifecycleEnable = params['LifecycleEnable']
9089
+ @Expiration = params['Expiration']
9090
+ @DropTable = params['DropTable']
9091
+ end
9092
+ end
9093
+
9094
+ # SmartOptimizerPolicy
9095
+ class SmartOptimizerPolicy < TencentCloud::Common::AbstractModel
9096
+ # @param Inherit: 是否继承
9097
+ # 注意:此字段可能返回 null,表示取不到有效值。
9098
+ # @type Inherit: String
9099
+ # @param Resources: ResourceInfo
9100
+ # 注意:此字段可能返回 null,表示取不到有效值。
9101
+ # @type Resources: Array
9102
+ # @param Written: SmartOptimizerWrittenPolicy
9103
+ # 注意:此字段可能返回 null,表示取不到有效值。
9104
+ # @type Written: :class:`Tencentcloud::Dlc.v20210125.models.SmartOptimizerWrittenPolicy`
9105
+ # @param Lifecycle: SmartOptimizerLifecyclePolicy
9106
+ # 注意:此字段可能返回 null,表示取不到有效值。
9107
+ # @type Lifecycle: :class:`Tencentcloud::Dlc.v20210125.models.SmartOptimizerLifecyclePolicy`
9108
+ # @param Index: SmartOptimizerIndexPolicy
9109
+ # 注意:此字段可能返回 null,表示取不到有效值。
9110
+ # @type Index: :class:`Tencentcloud::Dlc.v20210125.models.SmartOptimizerIndexPolicy`
9111
+
9112
+ attr_accessor :Inherit, :Resources, :Written, :Lifecycle, :Index
9113
+
9114
+ def initialize(inherit=nil, resources=nil, written=nil, lifecycle=nil, index=nil)
9115
+ @Inherit = inherit
9116
+ @Resources = resources
9117
+ @Written = written
9118
+ @Lifecycle = lifecycle
9119
+ @Index = index
9120
+ end
9121
+
9122
+ def deserialize(params)
9123
+ @Inherit = params['Inherit']
9124
+ unless params['Resources'].nil?
9125
+ @Resources = []
9126
+ params['Resources'].each do |i|
9127
+ resourceinfo_tmp = ResourceInfo.new
9128
+ resourceinfo_tmp.deserialize(i)
9129
+ @Resources << resourceinfo_tmp
9130
+ end
9131
+ end
9132
+ unless params['Written'].nil?
9133
+ @Written = SmartOptimizerWrittenPolicy.new
9134
+ @Written.deserialize(params['Written'])
9135
+ end
9136
+ unless params['Lifecycle'].nil?
9137
+ @Lifecycle = SmartOptimizerLifecyclePolicy.new
9138
+ @Lifecycle.deserialize(params['Lifecycle'])
9139
+ end
9140
+ unless params['Index'].nil?
9141
+ @Index = SmartOptimizerIndexPolicy.new
9142
+ @Index.deserialize(params['Index'])
9143
+ end
9144
+ end
9145
+ end
9146
+
9147
+ # SmartOptimizerWrittenPolicy
9148
+ class SmartOptimizerWrittenPolicy < TencentCloud::Common::AbstractModel
9149
+
9150
+
9151
+ def initialize()
9152
+ end
9153
+
9154
+ def deserialize(params)
9155
+ end
9156
+ end
9157
+
9158
+ # SmartPolicyRequest
9159
+ class SmartPolicy < TencentCloud::Common::AbstractModel
9160
+ # @param BaseInfo: 基础信息
9161
+ # 注意:此字段可能返回 null,表示取不到有效值。
9162
+ # @type BaseInfo: :class:`Tencentcloud::Dlc.v20210125.models.SmartPolicyBaseInfo`
9163
+ # @param Policy: 策略描述
9164
+ # 注意:此字段可能返回 null,表示取不到有效值。
9165
+ # @type Policy: :class:`Tencentcloud::Dlc.v20210125.models.SmartOptimizerPolicy`
9166
+
9167
+ attr_accessor :BaseInfo, :Policy
9168
+
9169
+ def initialize(baseinfo=nil, policy=nil)
9170
+ @BaseInfo = baseinfo
9171
+ @Policy = policy
9172
+ end
9173
+
9174
+ def deserialize(params)
9175
+ unless params['BaseInfo'].nil?
9176
+ @BaseInfo = SmartPolicyBaseInfo.new
9177
+ @BaseInfo.deserialize(params['BaseInfo'])
9178
+ end
9179
+ unless params['Policy'].nil?
9180
+ @Policy = SmartOptimizerPolicy.new
9181
+ @Policy.deserialize(params['Policy'])
9182
+ end
9183
+ end
9184
+ end
9185
+
9186
+ # SmartPolicyBaseInfo
9187
+ class SmartPolicyBaseInfo < TencentCloud::Common::AbstractModel
9188
+ # @param Uin: 用户uin
9189
+ # 注意:此字段可能返回 null,表示取不到有效值。
9190
+ # @type Uin: String
9191
+ # @param PolicyType: Catalog/Database/Table
9192
+ # 注意:此字段可能返回 null,表示取不到有效值。
9193
+ # @type PolicyType: String
9194
+ # @param Catalog: Catalog名称
9195
+ # 注意:此字段可能返回 null,表示取不到有效值。
9196
+ # @type Catalog: String
9197
+ # @param Database: 数据库名称
9198
+ # 注意:此字段可能返回 null,表示取不到有效值。
9199
+ # @type Database: String
9200
+ # @param Table: 表名称
9201
+ # 注意:此字段可能返回 null,表示取不到有效值。
9202
+ # @type Table: String
9203
+ # @param AppId: 用户appid
9204
+ # 注意:此字段可能返回 null,表示取不到有效值。
9205
+ # @type AppId: String
9206
+
9207
+ attr_accessor :Uin, :PolicyType, :Catalog, :Database, :Table, :AppId
9208
+
9209
+ def initialize(uin=nil, policytype=nil, catalog=nil, database=nil, table=nil, appid=nil)
9210
+ @Uin = uin
9211
+ @PolicyType = policytype
9212
+ @Catalog = catalog
9213
+ @Database = database
9214
+ @Table = table
9215
+ @AppId = appid
9216
+ end
9217
+
9218
+ def deserialize(params)
9219
+ @Uin = params['Uin']
9220
+ @PolicyType = params['PolicyType']
9221
+ @Catalog = params['Catalog']
9222
+ @Database = params['Database']
9223
+ @Table = params['Table']
9224
+ @AppId = params['AppId']
9225
+ end
9226
+ end
9227
+
8813
9228
  # spark作业详情。
8814
9229
  class SparkJobInfo < TencentCloud::Common::AbstractModel
8815
9230
  # @param JobId: spark作业ID
@@ -9253,12 +9668,21 @@ module TencentCloud
9253
9668
 
9254
9669
  # SwitchDataEngineImage请求参数结构体
9255
9670
  class SwitchDataEngineImageRequest < TencentCloud::Common::AbstractModel
9671
+ # @param DataEngineId: 引擎ID
9672
+ # @type DataEngineId: String
9673
+ # @param NewImageVersionId: 新镜像版本ID
9674
+ # @type NewImageVersionId: String
9256
9675
 
9676
+ attr_accessor :DataEngineId, :NewImageVersionId
9257
9677
 
9258
- def initialize()
9678
+ def initialize(dataengineid=nil, newimageversionid=nil)
9679
+ @DataEngineId = dataengineid
9680
+ @NewImageVersionId = newimageversionid
9259
9681
  end
9260
9682
 
9261
9683
  def deserialize(params)
9684
+ @DataEngineId = params['DataEngineId']
9685
+ @NewImageVersionId = params['NewImageVersionId']
9262
9686
  end
9263
9687
  end
9264
9688
 
@@ -9420,10 +9844,13 @@ module TencentCloud
9420
9844
  # @param DbGovernPolicyIsDisable: 库数据治理是否关闭,关闭:true,开启:false
9421
9845
  # 注意:此字段可能返回 null,表示取不到有效值。
9422
9846
  # @type DbGovernPolicyIsDisable: String
9847
+ # @param SmartPolicy: 智能数据治理配置项
9848
+ # 注意:此字段可能返回 null,表示取不到有效值。
9849
+ # @type SmartPolicy: :class:`Tencentcloud::Dlc.v20210125.models.SmartPolicy`
9423
9850
 
9424
- attr_accessor :DatabaseName, :TableName, :DatasourceConnectionName, :TableComment, :Type, :TableFormat, :UserAlias, :UserSubUin, :GovernPolicy, :DbGovernPolicyIsDisable
9851
+ attr_accessor :DatabaseName, :TableName, :DatasourceConnectionName, :TableComment, :Type, :TableFormat, :UserAlias, :UserSubUin, :GovernPolicy, :DbGovernPolicyIsDisable, :SmartPolicy
9425
9852
 
9426
- def initialize(databasename=nil, tablename=nil, datasourceconnectionname=nil, tablecomment=nil, type=nil, tableformat=nil, useralias=nil, usersubuin=nil, governpolicy=nil, dbgovernpolicyisdisable=nil)
9853
+ 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
9854
  @DatabaseName = databasename
9428
9855
  @TableName = tablename
9429
9856
  @DatasourceConnectionName = datasourceconnectionname
@@ -9434,6 +9861,7 @@ module TencentCloud
9434
9861
  @UserSubUin = usersubuin
9435
9862
  @GovernPolicy = governpolicy
9436
9863
  @DbGovernPolicyIsDisable = dbgovernpolicyisdisable
9864
+ @SmartPolicy = smartpolicy
9437
9865
  end
9438
9866
 
9439
9867
  def deserialize(params)
@@ -9450,6 +9878,10 @@ module TencentCloud
9450
9878
  @GovernPolicy.deserialize(params['GovernPolicy'])
9451
9879
  end
9452
9880
  @DbGovernPolicyIsDisable = params['DbGovernPolicyIsDisable']
9881
+ unless params['SmartPolicy'].nil?
9882
+ @SmartPolicy = SmartPolicy.new
9883
+ @SmartPolicy.deserialize(params['SmartPolicy'])
9884
+ end
9453
9885
  end
9454
9886
  end
9455
9887
 
@@ -10116,12 +10548,21 @@ module TencentCloud
10116
10548
 
10117
10549
  # UpdateDataEngineConfig请求参数结构体
10118
10550
  class UpdateDataEngineConfigRequest < TencentCloud::Common::AbstractModel
10551
+ # @param DataEngineIds: 引擎ID
10552
+ # @type DataEngineIds: Array
10553
+ # @param DataEngineConfigCommand: 引擎配置命令,支持UpdateSparkSQLLakefsPath(更新原生表配置)、UpdateSparkSQLResultPath(更新结果路径配置)
10554
+ # @type DataEngineConfigCommand: String
10119
10555
 
10556
+ attr_accessor :DataEngineIds, :DataEngineConfigCommand
10120
10557
 
10121
- def initialize()
10558
+ def initialize(dataengineids=nil, dataengineconfigcommand=nil)
10559
+ @DataEngineIds = dataengineids
10560
+ @DataEngineConfigCommand = dataengineconfigcommand
10122
10561
  end
10123
10562
 
10124
10563
  def deserialize(params)
10564
+ @DataEngineIds = params['DataEngineIds']
10565
+ @DataEngineConfigCommand = params['DataEngineConfigCommand']
10125
10566
  end
10126
10567
  end
10127
10568
 
@@ -10276,12 +10717,35 @@ module TencentCloud
10276
10717
 
10277
10718
  # UpdateUserDataEngineConfig请求参数结构体
10278
10719
  class UpdateUserDataEngineConfigRequest < TencentCloud::Common::AbstractModel
10720
+ # @param DataEngineId: 引擎ID
10721
+ # @type DataEngineId: String
10722
+ # @param DataEngineConfigPairs: 引擎配置项
10723
+ # @type DataEngineConfigPairs: Array
10724
+ # @param SessionResourceTemplate: 作业引擎资源配置模版
10725
+ # @type SessionResourceTemplate: :class:`Tencentcloud::Dlc.v20210125.models.SessionResourceTemplate`
10279
10726
 
10727
+ attr_accessor :DataEngineId, :DataEngineConfigPairs, :SessionResourceTemplate
10280
10728
 
10281
- def initialize()
10729
+ def initialize(dataengineid=nil, dataengineconfigpairs=nil, sessionresourcetemplate=nil)
10730
+ @DataEngineId = dataengineid
10731
+ @DataEngineConfigPairs = dataengineconfigpairs
10732
+ @SessionResourceTemplate = sessionresourcetemplate
10282
10733
  end
10283
10734
 
10284
10735
  def deserialize(params)
10736
+ @DataEngineId = params['DataEngineId']
10737
+ unless params['DataEngineConfigPairs'].nil?
10738
+ @DataEngineConfigPairs = []
10739
+ params['DataEngineConfigPairs'].each do |i|
10740
+ dataengineconfigpair_tmp = DataEngineConfigPair.new
10741
+ dataengineconfigpair_tmp.deserialize(i)
10742
+ @DataEngineConfigPairs << dataengineconfigpair_tmp
10743
+ end
10744
+ end
10745
+ unless params['SessionResourceTemplate'].nil?
10746
+ @SessionResourceTemplate = SessionResourceTemplate.new
10747
+ @SessionResourceTemplate.deserialize(params['SessionResourceTemplate'])
10748
+ end
10285
10749
  end
10286
10750
  end
10287
10751
 
@@ -10303,12 +10767,17 @@ module TencentCloud
10303
10767
 
10304
10768
  # UpgradeDataEngineImage请求参数结构体
10305
10769
  class UpgradeDataEngineImageRequest < TencentCloud::Common::AbstractModel
10770
+ # @param DataEngineId: 引擎ID
10771
+ # @type DataEngineId: String
10306
10772
 
10773
+ attr_accessor :DataEngineId
10307
10774
 
10308
- def initialize()
10775
+ def initialize(dataengineid=nil)
10776
+ @DataEngineId = dataengineid
10309
10777
  end
10310
10778
 
10311
10779
  def deserialize(params)
10780
+ @DataEngineId = params['DataEngineId']
10312
10781
  end
10313
10782
  end
10314
10783
 
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.674
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-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common