tencentcloud-sdk-ess 1.0.302 → 1.0.305
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20201111/client.rb +25 -0
- data/lib/v20201111/models.rb +145 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2c4795b2569e282bcf9a16e1ba164fb95c02e38
|
4
|
+
data.tar.gz: 39d77cd9e7ed799b1622610bf1f9987facd9d991
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eda0096b54258f58ca949c2ec61dc555853b96ddec77e084b827c7267c474dcd6b39fb4f0aae93325af4691b48e86a33398846a1a02376fd7d1f02237506fdc9
|
7
|
+
data.tar.gz: 71265e196b8708a88ca0e8b34dc59777b05ca9b86a2427724db40c580908f633f120f3049b88344c1506d20f9f2e080107850393f19e2c4bc141dc1792347146
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.305
|
data/lib/v20201111/client.rb
CHANGED
@@ -245,6 +245,31 @@ module TencentCloud
|
|
245
245
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
246
|
end
|
247
247
|
|
248
|
+
# 此接口(UploadFiles)用于文件上传。
|
249
|
+
# 调用时需要设置Domain 为 file.ess.tencent.cn,设置Version为2020-12-22
|
250
|
+
|
251
|
+
# @param request: Request instance for UploadFiles.
|
252
|
+
# @type request: :class:`Tencentcloud::ess::V20201111::UploadFilesRequest`
|
253
|
+
# @rtype: :class:`Tencentcloud::ess::V20201111::UploadFilesResponse`
|
254
|
+
def UploadFiles(request)
|
255
|
+
body = send_request('UploadFiles', request.serialize)
|
256
|
+
response = JSON.parse(body)
|
257
|
+
if response['Response'].key?('Error') == false
|
258
|
+
model = UploadFilesResponse.new
|
259
|
+
model.deserialize(response['Response'])
|
260
|
+
model
|
261
|
+
else
|
262
|
+
code = response['Response']['Error']['Code']
|
263
|
+
message = response['Response']['Error']['Message']
|
264
|
+
reqid = response['Response']['RequestId']
|
265
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
266
|
+
end
|
267
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
268
|
+
raise e
|
269
|
+
rescue StandardError => e
|
270
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
271
|
+
end
|
272
|
+
|
248
273
|
|
249
274
|
end
|
250
275
|
end
|
data/lib/v20201111/models.rb
CHANGED
@@ -98,6 +98,34 @@ module TencentCloud
|
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
101
|
+
# 此结构体 (Caller) 用于描述调用方属性。
|
102
|
+
class Caller < TencentCloud::Common::AbstractModel
|
103
|
+
# @param ApplicationId: 应用号
|
104
|
+
# @type ApplicationId: String
|
105
|
+
# @param OrganizationId: 主机构ID
|
106
|
+
# @type OrganizationId: String
|
107
|
+
# @param SubOrganizationId: 下属机构ID
|
108
|
+
# @type SubOrganizationId: String
|
109
|
+
# @param OperatorId: 经办人的用户ID
|
110
|
+
# @type OperatorId: String
|
111
|
+
|
112
|
+
attr_accessor :ApplicationId, :OrganizationId, :SubOrganizationId, :OperatorId
|
113
|
+
|
114
|
+
def initialize(applicationid=nil, organizationid=nil, suborganizationid=nil, operatorid=nil)
|
115
|
+
@ApplicationId = applicationid
|
116
|
+
@OrganizationId = organizationid
|
117
|
+
@SubOrganizationId = suborganizationid
|
118
|
+
@OperatorId = operatorid
|
119
|
+
end
|
120
|
+
|
121
|
+
def deserialize(params)
|
122
|
+
@ApplicationId = params['ApplicationId']
|
123
|
+
@OrganizationId = params['OrganizationId']
|
124
|
+
@SubOrganizationId = params['SubOrganizationId']
|
125
|
+
@OperatorId = params['OperatorId']
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
101
129
|
# CancelFlow请求参数结构体
|
102
130
|
class CancelFlowRequest < TencentCloud::Common::AbstractModel
|
103
131
|
# @param Operator: 操作用户id
|
@@ -553,16 +581,25 @@ module TencentCloud
|
|
553
581
|
# @type PathType: Integer
|
554
582
|
# @param FlowId: 合同详情 id (PathType=1时必传)
|
555
583
|
# @type FlowId: String
|
584
|
+
# @param OrganizationName: 企业名称
|
585
|
+
# @type OrganizationName: String
|
586
|
+
# @param EndPoint: 链接类型 HTTP:跳转电子签小程序的http_url,APP:第三方APP或小程序跳转电子签小程序,默认为HTTP类型
|
587
|
+
# @type EndPoint: String
|
588
|
+
# @param AutoJumpBack: 是否自动回跳 true:是, false:否。该参数只针对"APP" 类型的签署链接有效
|
589
|
+
# @type AutoJumpBack: Boolean
|
556
590
|
|
557
|
-
attr_accessor :Operator, :Agent, :Name, :Mobile, :PathType, :FlowId
|
591
|
+
attr_accessor :Operator, :Agent, :Name, :Mobile, :PathType, :FlowId, :OrganizationName, :EndPoint, :AutoJumpBack
|
558
592
|
|
559
|
-
def initialize(operator=nil, agent=nil, name=nil, mobile=nil, pathtype=nil, flowid=nil)
|
593
|
+
def initialize(operator=nil, agent=nil, name=nil, mobile=nil, pathtype=nil, flowid=nil, organizationname=nil, endpoint=nil, autojumpback=nil)
|
560
594
|
@Operator = operator
|
561
595
|
@Agent = agent
|
562
596
|
@Name = name
|
563
597
|
@Mobile = mobile
|
564
598
|
@PathType = pathtype
|
565
599
|
@FlowId = flowid
|
600
|
+
@OrganizationName = organizationname
|
601
|
+
@EndPoint = endpoint
|
602
|
+
@AutoJumpBack = autojumpback
|
566
603
|
end
|
567
604
|
|
568
605
|
def deserialize(params)
|
@@ -578,6 +615,9 @@ module TencentCloud
|
|
578
615
|
@Mobile = params['Mobile']
|
579
616
|
@PathType = params['PathType']
|
580
617
|
@FlowId = params['FlowId']
|
618
|
+
@OrganizationName = params['OrganizationName']
|
619
|
+
@EndPoint = params['EndPoint']
|
620
|
+
@AutoJumpBack = params['AutoJumpBack']
|
581
621
|
end
|
582
622
|
end
|
583
623
|
|
@@ -1012,6 +1052,109 @@ module TencentCloud
|
|
1012
1052
|
end
|
1013
1053
|
end
|
1014
1054
|
|
1055
|
+
# 此结构体 (UploadFile) 用于描述多文件上传的文件信息。
|
1056
|
+
class UploadFile < TencentCloud::Common::AbstractModel
|
1057
|
+
# @param FileBody: Base64编码后的文件内容
|
1058
|
+
# @type FileBody: String
|
1059
|
+
# @param FileName: 文件名
|
1060
|
+
# @type FileName: String
|
1061
|
+
|
1062
|
+
attr_accessor :FileBody, :FileName
|
1063
|
+
|
1064
|
+
def initialize(filebody=nil, filename=nil)
|
1065
|
+
@FileBody = filebody
|
1066
|
+
@FileName = filename
|
1067
|
+
end
|
1068
|
+
|
1069
|
+
def deserialize(params)
|
1070
|
+
@FileBody = params['FileBody']
|
1071
|
+
@FileName = params['FileName']
|
1072
|
+
end
|
1073
|
+
end
|
1074
|
+
|
1075
|
+
# UploadFiles请求参数结构体
|
1076
|
+
class UploadFilesRequest < TencentCloud::Common::AbstractModel
|
1077
|
+
# @param Caller: 调用方信息
|
1078
|
+
# @type Caller: :class:`Tencentcloud::Ess.v20201111.models.Caller`
|
1079
|
+
# @param BusinessType: 文件对应业务类型,用于区分文件存储路径:
|
1080
|
+
# 1. TEMPLATE - 模版; 文件类型:.pdf/.html
|
1081
|
+
# 2. DOCUMENT - 签署过程及签署后的合同文档 文件类型:.pdf/.html
|
1082
|
+
# 3. FLOW - 签署过程 文件类型:.pdf/.html
|
1083
|
+
# 4. SEAL - 印章; 文件类型:.jpg/.jpeg/.png
|
1084
|
+
# 5. BUSINESSLICENSE - 营业执照 文件类型:.jpg/.jpeg/.png
|
1085
|
+
# 6. IDCARD - 身份证 文件类型:.jpg/.jpeg/.png
|
1086
|
+
# @type BusinessType: String
|
1087
|
+
# @param FileInfos: 上传文件内容数组,最多支持20个文件
|
1088
|
+
# @type FileInfos: Array
|
1089
|
+
# @param FileUrls: 上传文件链接数组,最多支持20个URL
|
1090
|
+
# @type FileUrls: String
|
1091
|
+
# @param CoverRect: 是否将pdf灰色矩阵置白
|
1092
|
+
# true--是,处理置白
|
1093
|
+
# false--否,不处理
|
1094
|
+
# @type CoverRect: Boolean
|
1095
|
+
# @param FileType: 特殊文件类型需要指定文件类型:
|
1096
|
+
# HTML-- .html文件
|
1097
|
+
# @type FileType: String
|
1098
|
+
# @param CustomIds: 用户自定义ID数组,与上传文件一一对应
|
1099
|
+
# @type CustomIds: Array
|
1100
|
+
|
1101
|
+
attr_accessor :Caller, :BusinessType, :FileInfos, :FileUrls, :CoverRect, :FileType, :CustomIds
|
1102
|
+
|
1103
|
+
def initialize(caller=nil, businesstype=nil, fileinfos=nil, fileurls=nil, coverrect=nil, filetype=nil, customids=nil)
|
1104
|
+
@Caller = caller
|
1105
|
+
@BusinessType = businesstype
|
1106
|
+
@FileInfos = fileinfos
|
1107
|
+
@FileUrls = fileurls
|
1108
|
+
@CoverRect = coverrect
|
1109
|
+
@FileType = filetype
|
1110
|
+
@CustomIds = customids
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
def deserialize(params)
|
1114
|
+
unless params['Caller'].nil?
|
1115
|
+
@Caller = Caller.new
|
1116
|
+
@Caller.deserialize(params['Caller'])
|
1117
|
+
end
|
1118
|
+
@BusinessType = params['BusinessType']
|
1119
|
+
unless params['FileInfos'].nil?
|
1120
|
+
@FileInfos = []
|
1121
|
+
params['FileInfos'].each do |i|
|
1122
|
+
uploadfile_tmp = UploadFile.new
|
1123
|
+
uploadfile_tmp.deserialize(i)
|
1124
|
+
@FileInfos << uploadfile_tmp
|
1125
|
+
end
|
1126
|
+
end
|
1127
|
+
@FileUrls = params['FileUrls']
|
1128
|
+
@CoverRect = params['CoverRect']
|
1129
|
+
@FileType = params['FileType']
|
1130
|
+
@CustomIds = params['CustomIds']
|
1131
|
+
end
|
1132
|
+
end
|
1133
|
+
|
1134
|
+
# UploadFiles返回参数结构体
|
1135
|
+
class UploadFilesResponse < TencentCloud::Common::AbstractModel
|
1136
|
+
# @param FileIds: 文件id数组
|
1137
|
+
# @type FileIds: Array
|
1138
|
+
# @param TotalCount: 上传成功文件数量
|
1139
|
+
# @type TotalCount: Integer
|
1140
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1141
|
+
# @type RequestId: String
|
1142
|
+
|
1143
|
+
attr_accessor :FileIds, :TotalCount, :RequestId
|
1144
|
+
|
1145
|
+
def initialize(fileids=nil, totalcount=nil, requestid=nil)
|
1146
|
+
@FileIds = fileids
|
1147
|
+
@TotalCount = totalcount
|
1148
|
+
@RequestId = requestid
|
1149
|
+
end
|
1150
|
+
|
1151
|
+
def deserialize(params)
|
1152
|
+
@FileIds = params['FileIds']
|
1153
|
+
@TotalCount = params['TotalCount']
|
1154
|
+
@RequestId = params['RequestId']
|
1155
|
+
end
|
1156
|
+
end
|
1157
|
+
|
1015
1158
|
# 用户信息
|
1016
1159
|
class UserInfo < TencentCloud::Common::AbstractModel
|
1017
1160
|
# @param UserId: 用户在平台的编号
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ess
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.305
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|