tencentcloud-sdk-ess 1.0.302 → 1.0.303

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: c3a32080c7f1ab9ac94c5c86c0a16eecd1c17b09
4
- data.tar.gz: eda39a4395414fe748ab243c9e33359b0caf7c12
3
+ metadata.gz: 88ce7e4ce40d4b293f236d87c530747770bc1815
4
+ data.tar.gz: 009a188f679f976895dbf6983ddf1e51174418df
5
5
  SHA512:
6
- metadata.gz: 9e1f38da0d9bfa0c425ef2c2b871ed9d579609738c88764774960bc84524855453831d08795a85bfbc5ea71b9a36f6d250a8fb66223e6e12ef0063fd6e3716ab
7
- data.tar.gz: 20cf7cb220c98226df992b74a5c01be86de76ac6e9eb34ccb6b27d7706b6078c27546432ff4c72b33465501ecbea2156f2c8c8e4479008b7fa0eedc700b4d1b7
6
+ metadata.gz: eacfae775d8e4e6268537ab715efb30132f87579a8c93aff7b98544d056aa02b6d1b6c058fa40c07d95cd8b00184972e2c17f6f262796b9bfcbab915b51e233f
7
+ data.tar.gz: 92bd5042012b531fe637c6abca8601b9a3d20793a37cf15aa112ddd43070e244d96299209a2bb8940cb121b49af920c2fe2f73cacc18605567d93dd585975d72
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.302
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
@@ -1012,6 +1040,109 @@ module TencentCloud
1012
1040
  end
1013
1041
  end
1014
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
+
1015
1146
  # 用户信息
1016
1147
  class UserInfo < TencentCloud::Common::AbstractModel
1017
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.302
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-20 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