tencentcloud-sdk-ess 1.0.301 → 1.0.304

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: a4294bd584161894a07945f3cbb30634814a8bcc
4
- data.tar.gz: 51cabfaeee6dc1632c6cc77bde33dc43608decee
3
+ metadata.gz: 89379c254e5de36f1e5a506d247bc2be092712b9
4
+ data.tar.gz: 3f0bb5da0649ccc861d99dfbe5bdf785a4ceb45e
5
5
  SHA512:
6
- metadata.gz: 5d15ad640055828b717e17c87cc4a9351ea459d2e61b0d82d6b14b977fec15a3d0bb23c0c4dd9c6e18bf7d20d8226f43a5f4da19091418e7cf808f29ecb1b79c
7
- data.tar.gz: 5231a982e61d3d50cef497039cf7d2f649d6a447b6fdb93c00fbc80050d8de0b43b2ca4f8428fb259920a6aa3c355fd3e2e3ac2dc1f284126f55d27c2db855a4
6
+ metadata.gz: 11a380d5e3939be24805831e0bed19640cdf3a0486a77498b2392ff7930ede846a62e38832a03b7e199cecd09ca8891ed802efd373fc8174613a45d537e454c3
7
+ data.tar.gz: 83005f74df68c5da9ea8ae74f360842ddd15631168aca8c28b280e2363b470e94cdf9e475e80f588be9a80bbaff1e2a3ba9bda8602014c770971dd584e68bead
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.301
1
+ 1.0.304
@@ -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.301
4
+ version: 1.0.304
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-20 00:00:00.000000000 Z
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