tencentcloud-sdk-ess 1.0.300 → 1.0.303

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: 6047f1812552b9de2c5a118116021b242f3e7918
4
- data.tar.gz: 3c5cfe7a7cf0fa40332473268e101dcab12615ed
3
+ metadata.gz: 88ce7e4ce40d4b293f236d87c530747770bc1815
4
+ data.tar.gz: 009a188f679f976895dbf6983ddf1e51174418df
5
5
  SHA512:
6
- metadata.gz: c3f46e32c0748a1c2042f6ae4dff43528d82340f082f6d8d1a024f7041260a541228c918ba99a1bdfcdfeec7183e2962017c7b73c1c679c8e5a05f5dfe07d146
7
- data.tar.gz: 1d8fa0987c0ab5827e0996c9ba627d9eebf48db5297300647fb80701f5e170d095f1adc95c573f8cc219f887fa6beaaadebe35e6033a46695c3aeafcd116e751
6
+ metadata.gz: eacfae775d8e4e6268537ab715efb30132f87579a8c93aff7b98544d056aa02b6d1b6c058fa40c07d95cd8b00184972e2c17f6f262796b9bfcbab915b51e233f
7
+ data.tar.gz: 92bd5042012b531fe637c6abca8601b9a3d20793a37cf15aa112ddd43070e244d96299209a2bb8940cb121b49af920c2fe2f73cacc18605567d93dd585975d72
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.300
1
+ 1.0.303
@@ -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
@@ -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
@@ -253,7 +281,7 @@ module TencentCloud
253
281
  class CreateDocumentRequest < TencentCloud::Common::AbstractModel
254
282
  # @param Operator: 无
255
283
  # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
256
- # @param TemplateId: 用户上传的模版ID
284
+ # @param TemplateId: 用户上传的模板ID
257
285
  # @type TemplateId: String
258
286
  # @param FlowId: 流程ID
259
287
  # @type FlowId: String
@@ -265,7 +293,8 @@ module TencentCloud
265
293
  # @type Agent: :class:`Tencentcloud::Ess.v20201111.models.Agent`
266
294
  # @param ClientToken: 客户端Token,保持接口幂等性
267
295
  # @type ClientToken: String
268
- # @param NeedPreview: 是否需要生成预览文件 默认不生成
296
+ # @param NeedPreview: 是否需要生成预览文件 默认不生成;
297
+ # 预览链接有效期300秒;
269
298
  # @type NeedPreview: Boolean
270
299
 
271
300
  attr_accessor :Operator, :TemplateId, :FlowId, :FileNames, :FormFields, :Agent, :ClientToken, :NeedPreview
@@ -1011,6 +1040,109 @@ module TencentCloud
1011
1040
  end
1012
1041
  end
1013
1042
 
1043
+ # 此结构体 (UploadFile) 用于描述多文件上传的文件信息。
1044
+ class UploadFile < TencentCloud::Common::AbstractModel
1045
+ # @param FileBody: Base64编码后的文件内容
1046
+ # @type FileBody: String
1047
+ # @param FileName: 文件名
1048
+ # @type FileName: String
1049
+
1050
+ attr_accessor :FileBody, :FileName
1051
+
1052
+ def initialize(filebody=nil, filename=nil)
1053
+ @FileBody = filebody
1054
+ @FileName = filename
1055
+ end
1056
+
1057
+ def deserialize(params)
1058
+ @FileBody = params['FileBody']
1059
+ @FileName = params['FileName']
1060
+ end
1061
+ end
1062
+
1063
+ # UploadFiles请求参数结构体
1064
+ class UploadFilesRequest < TencentCloud::Common::AbstractModel
1065
+ # @param Caller: 调用方信息
1066
+ # @type Caller: :class:`Tencentcloud::Ess.v20201111.models.Caller`
1067
+ # @param BusinessType: 文件对应业务类型,用于区分文件存储路径:
1068
+ # 1. TEMPLATE - 模版; 文件类型:.pdf/.html
1069
+ # 2. DOCUMENT - 签署过程及签署后的合同文档 文件类型:.pdf/.html
1070
+ # 3. FLOW - 签署过程 文件类型:.pdf/.html
1071
+ # 4. SEAL - 印章; 文件类型:.jpg/.jpeg/.png
1072
+ # 5. BUSINESSLICENSE - 营业执照 文件类型:.jpg/.jpeg/.png
1073
+ # 6. IDCARD - 身份证 文件类型:.jpg/.jpeg/.png
1074
+ # @type BusinessType: String
1075
+ # @param FileInfos: 上传文件内容数组,最多支持20个文件
1076
+ # @type FileInfos: Array
1077
+ # @param FileUrls: 上传文件链接数组,最多支持20个URL
1078
+ # @type FileUrls: String
1079
+ # @param CoverRect: 是否将pdf灰色矩阵置白
1080
+ # true--是,处理置白
1081
+ # false--否,不处理
1082
+ # @type CoverRect: Boolean
1083
+ # @param FileType: 特殊文件类型需要指定文件类型:
1084
+ # HTML-- .html文件
1085
+ # @type FileType: String
1086
+ # @param CustomIds: 用户自定义ID数组,与上传文件一一对应
1087
+ # @type CustomIds: Array
1088
+
1089
+ attr_accessor :Caller, :BusinessType, :FileInfos, :FileUrls, :CoverRect, :FileType, :CustomIds
1090
+
1091
+ def initialize(caller=nil, businesstype=nil, fileinfos=nil, fileurls=nil, coverrect=nil, filetype=nil, customids=nil)
1092
+ @Caller = caller
1093
+ @BusinessType = businesstype
1094
+ @FileInfos = fileinfos
1095
+ @FileUrls = fileurls
1096
+ @CoverRect = coverrect
1097
+ @FileType = filetype
1098
+ @CustomIds = customids
1099
+ end
1100
+
1101
+ def deserialize(params)
1102
+ unless params['Caller'].nil?
1103
+ @Caller = Caller.new
1104
+ @Caller.deserialize(params['Caller'])
1105
+ end
1106
+ @BusinessType = params['BusinessType']
1107
+ unless params['FileInfos'].nil?
1108
+ @FileInfos = []
1109
+ params['FileInfos'].each do |i|
1110
+ uploadfile_tmp = UploadFile.new
1111
+ uploadfile_tmp.deserialize(i)
1112
+ @FileInfos << uploadfile_tmp
1113
+ end
1114
+ end
1115
+ @FileUrls = params['FileUrls']
1116
+ @CoverRect = params['CoverRect']
1117
+ @FileType = params['FileType']
1118
+ @CustomIds = params['CustomIds']
1119
+ end
1120
+ end
1121
+
1122
+ # UploadFiles返回参数结构体
1123
+ class UploadFilesResponse < TencentCloud::Common::AbstractModel
1124
+ # @param FileIds: 文件id数组
1125
+ # @type FileIds: Array
1126
+ # @param TotalCount: 上传成功文件数量
1127
+ # @type TotalCount: Integer
1128
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1129
+ # @type RequestId: String
1130
+
1131
+ attr_accessor :FileIds, :TotalCount, :RequestId
1132
+
1133
+ def initialize(fileids=nil, totalcount=nil, requestid=nil)
1134
+ @FileIds = fileids
1135
+ @TotalCount = totalcount
1136
+ @RequestId = requestid
1137
+ end
1138
+
1139
+ def deserialize(params)
1140
+ @FileIds = params['FileIds']
1141
+ @TotalCount = params['TotalCount']
1142
+ @RequestId = params['RequestId']
1143
+ end
1144
+ end
1145
+
1014
1146
  # 用户信息
1015
1147
  class UserInfo < TencentCloud::Common::AbstractModel
1016
1148
  # @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.300
4
+ version: 1.0.303
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-19 00:00:00.000000000 Z
11
+ date: 2022-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common