tencentcloud-sdk-dlc 3.0.437 → 3.0.438
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210125/client.rb +48 -0
- data/lib/v20210125/models.rb +105 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b683133035695741f121ffd18699de6e670dece2
|
4
|
+
data.tar.gz: d27eb78b3bc3667673d60128ea594202b1f05ecf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 703da60dfbe4bf799f473f7fef46e48b12c51780ad746120b1cb8593566804f49d1c1a0c9dc456daaa4ffca466e1ac5c1736af521b5773639be5e681e6d942cc
|
7
|
+
data.tar.gz: 8a017a771e54cd6df6319ad469721da8e3adb0db751448d571358495c40c05ab3705b1b9776de054d705f41ab56d15c2700c9f222b5c41363f52363defe6a88f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.438
|
data/lib/v20210125/client.rb
CHANGED
@@ -389,6 +389,30 @@ module TencentCloud
|
|
389
389
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
390
|
end
|
391
391
|
|
392
|
+
# 创建查询结果下载任务
|
393
|
+
|
394
|
+
# @param request: Request instance for CreateResultDownload.
|
395
|
+
# @type request: :class:`Tencentcloud::dlc::V20210125::CreateResultDownloadRequest`
|
396
|
+
# @rtype: :class:`Tencentcloud::dlc::V20210125::CreateResultDownloadResponse`
|
397
|
+
def CreateResultDownload(request)
|
398
|
+
body = send_request('CreateResultDownload', request.serialize)
|
399
|
+
response = JSON.parse(body)
|
400
|
+
if response['Response'].key?('Error') == false
|
401
|
+
model = CreateResultDownloadResponse.new
|
402
|
+
model.deserialize(response['Response'])
|
403
|
+
model
|
404
|
+
else
|
405
|
+
code = response['Response']['Error']['Code']
|
406
|
+
message = response['Response']['Error']['Message']
|
407
|
+
reqid = response['Response']['RequestId']
|
408
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
409
|
+
end
|
410
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
411
|
+
raise e
|
412
|
+
rescue StandardError => e
|
413
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
|
+
end
|
415
|
+
|
392
416
|
# 该接口(CreateScript)用于创建sql脚本。
|
393
417
|
|
394
418
|
# @param request: Request instance for CreateScript.
|
@@ -869,6 +893,30 @@ module TencentCloud
|
|
869
893
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
870
894
|
end
|
871
895
|
|
896
|
+
# 查询结果下载任务
|
897
|
+
|
898
|
+
# @param request: Request instance for DescribeResultDownload.
|
899
|
+
# @type request: :class:`Tencentcloud::dlc::V20210125::DescribeResultDownloadRequest`
|
900
|
+
# @rtype: :class:`Tencentcloud::dlc::V20210125::DescribeResultDownloadResponse`
|
901
|
+
def DescribeResultDownload(request)
|
902
|
+
body = send_request('DescribeResultDownload', request.serialize)
|
903
|
+
response = JSON.parse(body)
|
904
|
+
if response['Response'].key?('Error') == false
|
905
|
+
model = DescribeResultDownloadResponse.new
|
906
|
+
model.deserialize(response['Response'])
|
907
|
+
model
|
908
|
+
else
|
909
|
+
code = response['Response']['Error']['Code']
|
910
|
+
message = response['Response']['Error']['Message']
|
911
|
+
reqid = response['Response']['RequestId']
|
912
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
913
|
+
end
|
914
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
915
|
+
raise e
|
916
|
+
rescue StandardError => e
|
917
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
918
|
+
end
|
919
|
+
|
872
920
|
# 该接口(DescribeScripts)用于获取所有SQL查询。
|
873
921
|
|
874
922
|
# @param request: Request instance for DescribeScripts.
|
data/lib/v20210125/models.rb
CHANGED
@@ -1079,6 +1079,50 @@ module TencentCloud
|
|
1079
1079
|
end
|
1080
1080
|
end
|
1081
1081
|
|
1082
|
+
# CreateResultDownload请求参数结构体
|
1083
|
+
class CreateResultDownloadRequest < TencentCloud::Common::AbstractModel
|
1084
|
+
# @param TaskId: 查询结果任务Id
|
1085
|
+
# @type TaskId: String
|
1086
|
+
# @param Format: 下载格式
|
1087
|
+
# @type Format: String
|
1088
|
+
# @param Force: 是否重新生成下载文件,仅当之前任务为 Timout | Error 时有效
|
1089
|
+
# @type Force: Boolean
|
1090
|
+
|
1091
|
+
attr_accessor :TaskId, :Format, :Force
|
1092
|
+
|
1093
|
+
def initialize(taskid=nil, format=nil, force=nil)
|
1094
|
+
@TaskId = taskid
|
1095
|
+
@Format = format
|
1096
|
+
@Force = force
|
1097
|
+
end
|
1098
|
+
|
1099
|
+
def deserialize(params)
|
1100
|
+
@TaskId = params['TaskId']
|
1101
|
+
@Format = params['Format']
|
1102
|
+
@Force = params['Force']
|
1103
|
+
end
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
# CreateResultDownload返回参数结构体
|
1107
|
+
class CreateResultDownloadResponse < TencentCloud::Common::AbstractModel
|
1108
|
+
# @param DownloadId: 下载任务Id
|
1109
|
+
# @type DownloadId: String
|
1110
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1111
|
+
# @type RequestId: String
|
1112
|
+
|
1113
|
+
attr_accessor :DownloadId, :RequestId
|
1114
|
+
|
1115
|
+
def initialize(downloadid=nil, requestid=nil)
|
1116
|
+
@DownloadId = downloadid
|
1117
|
+
@RequestId = requestid
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
def deserialize(params)
|
1121
|
+
@DownloadId = params['DownloadId']
|
1122
|
+
@RequestId = params['RequestId']
|
1123
|
+
end
|
1124
|
+
end
|
1125
|
+
|
1082
1126
|
# CreateScript请求参数结构体
|
1083
1127
|
class CreateScriptRequest < TencentCloud::Common::AbstractModel
|
1084
1128
|
# @param ScriptName: 脚本名称,最大不能超过255个字符。
|
@@ -2866,6 +2910,67 @@ module TencentCloud
|
|
2866
2910
|
end
|
2867
2911
|
end
|
2868
2912
|
|
2913
|
+
# DescribeResultDownload请求参数结构体
|
2914
|
+
class DescribeResultDownloadRequest < TencentCloud::Common::AbstractModel
|
2915
|
+
# @param DownloadId: 查询任务Id
|
2916
|
+
# @type DownloadId: String
|
2917
|
+
|
2918
|
+
attr_accessor :DownloadId
|
2919
|
+
|
2920
|
+
def initialize(downloadid=nil)
|
2921
|
+
@DownloadId = downloadid
|
2922
|
+
end
|
2923
|
+
|
2924
|
+
def deserialize(params)
|
2925
|
+
@DownloadId = params['DownloadId']
|
2926
|
+
end
|
2927
|
+
end
|
2928
|
+
|
2929
|
+
# DescribeResultDownload返回参数结构体
|
2930
|
+
class DescribeResultDownloadResponse < TencentCloud::Common::AbstractModel
|
2931
|
+
# @param Path: 下载文件路径
|
2932
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2933
|
+
# @type Path: String
|
2934
|
+
# @param Status: 任务状态 init | queue | format | compress | success| timeout | error
|
2935
|
+
# @type Status: String
|
2936
|
+
# @param Reason: 任务异常原因
|
2937
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2938
|
+
# @type Reason: String
|
2939
|
+
# @param SecretId: 临时AK
|
2940
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2941
|
+
# @type SecretId: String
|
2942
|
+
# @param SecretKey: 临时SK
|
2943
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2944
|
+
# @type SecretKey: String
|
2945
|
+
# @param Token: 临时Token
|
2946
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2947
|
+
# @type Token: String
|
2948
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2949
|
+
# @type RequestId: String
|
2950
|
+
|
2951
|
+
attr_accessor :Path, :Status, :Reason, :SecretId, :SecretKey, :Token, :RequestId
|
2952
|
+
|
2953
|
+
def initialize(path=nil, status=nil, reason=nil, secretid=nil, secretkey=nil, token=nil, requestid=nil)
|
2954
|
+
@Path = path
|
2955
|
+
@Status = status
|
2956
|
+
@Reason = reason
|
2957
|
+
@SecretId = secretid
|
2958
|
+
@SecretKey = secretkey
|
2959
|
+
@Token = token
|
2960
|
+
@RequestId = requestid
|
2961
|
+
end
|
2962
|
+
|
2963
|
+
def deserialize(params)
|
2964
|
+
@Path = params['Path']
|
2965
|
+
@Status = params['Status']
|
2966
|
+
@Reason = params['Reason']
|
2967
|
+
@SecretId = params['SecretId']
|
2968
|
+
@SecretKey = params['SecretKey']
|
2969
|
+
@Token = params['Token']
|
2970
|
+
@RequestId = params['RequestId']
|
2971
|
+
end
|
2972
|
+
end
|
2973
|
+
|
2869
2974
|
# DescribeScripts请求参数结构体
|
2870
2975
|
class DescribeScriptsRequest < TencentCloud::Common::AbstractModel
|
2871
2976
|
# @param Limit: 返回数量,默认为10,最大值为100。
|