tencentcloud-sdk-ess 3.0.420 → 3.0.422
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 +72 -0
- data/lib/v20201111/models.rb +464 -0
- 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: 9bc11ce42c4ae38dceb2403509e47d749084a236
|
4
|
+
data.tar.gz: 70b9afa208715a7d613d737bca334e5f95458344
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73ff207c03ef782ed7d7482ede62920dafcb8803d315b1ddd6adeadad845d31e328238af96fe66454951e894767b58ac3bf113dcc72e86fd81538a11d900ae55
|
7
|
+
data.tar.gz: 86542c97e3c1f2367eea643b426ab25496107747b705efce1e73fb57e080fa6557317f23a1fd174393b13ab4c2caeb8003e18a58c2779331b24c91165b5113aa
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.422
|
data/lib/v20201111/client.rb
CHANGED
@@ -288,6 +288,30 @@ module TencentCloud
|
|
288
288
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
289
289
|
end
|
290
290
|
|
291
|
+
# 创建员工
|
292
|
+
|
293
|
+
# @param request: Request instance for CreateIntegrationEmployees.
|
294
|
+
# @type request: :class:`Tencentcloud::ess::V20201111::CreateIntegrationEmployeesRequest`
|
295
|
+
# @rtype: :class:`Tencentcloud::ess::V20201111::CreateIntegrationEmployeesResponse`
|
296
|
+
def CreateIntegrationEmployees(request)
|
297
|
+
body = send_request('CreateIntegrationEmployees', request.serialize)
|
298
|
+
response = JSON.parse(body)
|
299
|
+
if response['Response'].key?('Error') == false
|
300
|
+
model = CreateIntegrationEmployeesResponse.new
|
301
|
+
model.deserialize(response['Response'])
|
302
|
+
model
|
303
|
+
else
|
304
|
+
code = response['Response']['Error']['Code']
|
305
|
+
message = response['Response']['Error']['Message']
|
306
|
+
reqid = response['Response']['RequestId']
|
307
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
308
|
+
end
|
309
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
310
|
+
raise e
|
311
|
+
rescue StandardError => e
|
312
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
313
|
+
end
|
314
|
+
|
291
315
|
# 此接口(CreateMultiFlowSignQRCode)用于创建一码多扫流程签署二维码。
|
292
316
|
# 适用场景:无需填写签署人信息,可通过模板id生成签署二维码,签署人可通过扫描二维码补充签署信息进行实名签署。常用于提前不知道签署人的身份信息场景,例如:劳务工招工、大批量员工入职等场景。
|
293
317
|
# 适用的模板仅限于B2C(1、无序签署,2、顺序签署时B静默签署,3、顺序签署时B非首位签署)、单C的模板,且模板中发起方没有填写控件。
|
@@ -348,6 +372,30 @@ module TencentCloud
|
|
348
372
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
349
373
|
end
|
350
374
|
|
375
|
+
# 移除员工
|
376
|
+
|
377
|
+
# @param request: Request instance for DeleteIntegrationEmployees.
|
378
|
+
# @type request: :class:`Tencentcloud::ess::V20201111::DeleteIntegrationEmployeesRequest`
|
379
|
+
# @rtype: :class:`Tencentcloud::ess::V20201111::DeleteIntegrationEmployeesResponse`
|
380
|
+
def DeleteIntegrationEmployees(request)
|
381
|
+
body = send_request('DeleteIntegrationEmployees', request.serialize)
|
382
|
+
response = JSON.parse(body)
|
383
|
+
if response['Response'].key?('Error') == false
|
384
|
+
model = DeleteIntegrationEmployeesResponse.new
|
385
|
+
model.deserialize(response['Response'])
|
386
|
+
model
|
387
|
+
else
|
388
|
+
code = response['Response']['Error']['Code']
|
389
|
+
message = response['Response']['Error']['Message']
|
390
|
+
reqid = response['Response']['RequestId']
|
391
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
392
|
+
end
|
393
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
394
|
+
raise e
|
395
|
+
rescue StandardError => e
|
396
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
397
|
+
end
|
398
|
+
|
351
399
|
# 查询文件下载URL
|
352
400
|
# 适用场景:通过传参合同流程编号,下载对应的合同PDF文件流到本地。
|
353
401
|
|
@@ -449,6 +497,30 @@ module TencentCloud
|
|
449
497
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
450
498
|
end
|
451
499
|
|
500
|
+
# 查询员工信息,每次返回的数据量最大为20
|
501
|
+
|
502
|
+
# @param request: Request instance for DescribeIntegrationEmployees.
|
503
|
+
# @type request: :class:`Tencentcloud::ess::V20201111::DescribeIntegrationEmployeesRequest`
|
504
|
+
# @rtype: :class:`Tencentcloud::ess::V20201111::DescribeIntegrationEmployeesResponse`
|
505
|
+
def DescribeIntegrationEmployees(request)
|
506
|
+
body = send_request('DescribeIntegrationEmployees', request.serialize)
|
507
|
+
response = JSON.parse(body)
|
508
|
+
if response['Response'].key?('Error') == false
|
509
|
+
model = DescribeIntegrationEmployeesResponse.new
|
510
|
+
model.deserialize(response['Response'])
|
511
|
+
model
|
512
|
+
else
|
513
|
+
code = response['Response']['Error']['Code']
|
514
|
+
message = response['Response']['Error']['Message']
|
515
|
+
reqid = response['Response']['RequestId']
|
516
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
517
|
+
end
|
518
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
519
|
+
raise e
|
520
|
+
rescue StandardError => e
|
521
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
522
|
+
end
|
523
|
+
|
452
524
|
# 通过AuthCode查询用户是否实名
|
453
525
|
|
454
526
|
# @param request: Request instance for DescribeThirdPartyAuthCode.
|
data/lib/v20201111/models.rb
CHANGED
@@ -985,6 +985,59 @@ module TencentCloud
|
|
985
985
|
end
|
986
986
|
end
|
987
987
|
|
988
|
+
# CreateIntegrationEmployees请求参数结构体
|
989
|
+
class CreateIntegrationEmployeesRequest < TencentCloud::Common::AbstractModel
|
990
|
+
# @param Operator: 操作人信息,userId必填
|
991
|
+
# @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
|
992
|
+
# @param Employees: 待创建员工的信息,Mobile和DisplayName必填
|
993
|
+
# @type Employees: Array
|
994
|
+
|
995
|
+
attr_accessor :Operator, :Employees
|
996
|
+
|
997
|
+
def initialize(operator=nil, employees=nil)
|
998
|
+
@Operator = operator
|
999
|
+
@Employees = employees
|
1000
|
+
end
|
1001
|
+
|
1002
|
+
def deserialize(params)
|
1003
|
+
unless params['Operator'].nil?
|
1004
|
+
@Operator = UserInfo.new
|
1005
|
+
@Operator.deserialize(params['Operator'])
|
1006
|
+
end
|
1007
|
+
unless params['Employees'].nil?
|
1008
|
+
@Employees = []
|
1009
|
+
params['Employees'].each do |i|
|
1010
|
+
staff_tmp = Staff.new
|
1011
|
+
staff_tmp.deserialize(i)
|
1012
|
+
@Employees << staff_tmp
|
1013
|
+
end
|
1014
|
+
end
|
1015
|
+
end
|
1016
|
+
end
|
1017
|
+
|
1018
|
+
# CreateIntegrationEmployees返回参数结构体
|
1019
|
+
class CreateIntegrationEmployeesResponse < TencentCloud::Common::AbstractModel
|
1020
|
+
# @param CreateEmployeeResult: 创建员工的结果
|
1021
|
+
# @type CreateEmployeeResult: :class:`Tencentcloud::Ess.v20201111.models.CreateStaffResult`
|
1022
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1023
|
+
# @type RequestId: String
|
1024
|
+
|
1025
|
+
attr_accessor :CreateEmployeeResult, :RequestId
|
1026
|
+
|
1027
|
+
def initialize(createemployeeresult=nil, requestid=nil)
|
1028
|
+
@CreateEmployeeResult = createemployeeresult
|
1029
|
+
@RequestId = requestid
|
1030
|
+
end
|
1031
|
+
|
1032
|
+
def deserialize(params)
|
1033
|
+
unless params['CreateEmployeeResult'].nil?
|
1034
|
+
@CreateEmployeeResult = CreateStaffResult.new
|
1035
|
+
@CreateEmployeeResult.deserialize(params['CreateEmployeeResult'])
|
1036
|
+
end
|
1037
|
+
@RequestId = params['RequestId']
|
1038
|
+
end
|
1039
|
+
end
|
1040
|
+
|
988
1041
|
# CreateMultiFlowSignQRCode请求参数结构体
|
989
1042
|
class CreateMultiFlowSignQRCodeRequest < TencentCloud::Common::AbstractModel
|
990
1043
|
# @param TemplateId: 模板ID
|
@@ -1152,6 +1205,151 @@ module TencentCloud
|
|
1152
1205
|
end
|
1153
1206
|
end
|
1154
1207
|
|
1208
|
+
# 创建员工的结果
|
1209
|
+
class CreateStaffResult < TencentCloud::Common::AbstractModel
|
1210
|
+
# @param SuccessEmployeeData: 创建员工的成功列表
|
1211
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1212
|
+
# @type SuccessEmployeeData: Array
|
1213
|
+
# @param FailedEmployeeData: 创建员工的失败列表
|
1214
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1215
|
+
# @type FailedEmployeeData: Array
|
1216
|
+
|
1217
|
+
attr_accessor :SuccessEmployeeData, :FailedEmployeeData
|
1218
|
+
|
1219
|
+
def initialize(successemployeedata=nil, failedemployeedata=nil)
|
1220
|
+
@SuccessEmployeeData = successemployeedata
|
1221
|
+
@FailedEmployeeData = failedemployeedata
|
1222
|
+
end
|
1223
|
+
|
1224
|
+
def deserialize(params)
|
1225
|
+
unless params['SuccessEmployeeData'].nil?
|
1226
|
+
@SuccessEmployeeData = []
|
1227
|
+
params['SuccessEmployeeData'].each do |i|
|
1228
|
+
successcreatestaffdata_tmp = SuccessCreateStaffData.new
|
1229
|
+
successcreatestaffdata_tmp.deserialize(i)
|
1230
|
+
@SuccessEmployeeData << successcreatestaffdata_tmp
|
1231
|
+
end
|
1232
|
+
end
|
1233
|
+
unless params['FailedEmployeeData'].nil?
|
1234
|
+
@FailedEmployeeData = []
|
1235
|
+
params['FailedEmployeeData'].each do |i|
|
1236
|
+
failedcreatestaffdata_tmp = FailedCreateStaffData.new
|
1237
|
+
failedcreatestaffdata_tmp.deserialize(i)
|
1238
|
+
@FailedEmployeeData << failedcreatestaffdata_tmp
|
1239
|
+
end
|
1240
|
+
end
|
1241
|
+
end
|
1242
|
+
end
|
1243
|
+
|
1244
|
+
# DeleteIntegrationEmployees请求参数结构体
|
1245
|
+
class DeleteIntegrationEmployeesRequest < TencentCloud::Common::AbstractModel
|
1246
|
+
# @param Operator: 操作人信息,userId必填
|
1247
|
+
# @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
|
1248
|
+
# @param Employees: 待移除员工的信息,userId和openId二选一,必填一个
|
1249
|
+
# @type Employees: Array
|
1250
|
+
|
1251
|
+
attr_accessor :Operator, :Employees
|
1252
|
+
|
1253
|
+
def initialize(operator=nil, employees=nil)
|
1254
|
+
@Operator = operator
|
1255
|
+
@Employees = employees
|
1256
|
+
end
|
1257
|
+
|
1258
|
+
def deserialize(params)
|
1259
|
+
unless params['Operator'].nil?
|
1260
|
+
@Operator = UserInfo.new
|
1261
|
+
@Operator.deserialize(params['Operator'])
|
1262
|
+
end
|
1263
|
+
unless params['Employees'].nil?
|
1264
|
+
@Employees = []
|
1265
|
+
params['Employees'].each do |i|
|
1266
|
+
staff_tmp = Staff.new
|
1267
|
+
staff_tmp.deserialize(i)
|
1268
|
+
@Employees << staff_tmp
|
1269
|
+
end
|
1270
|
+
end
|
1271
|
+
end
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
# DeleteIntegrationEmployees返回参数结构体
|
1275
|
+
class DeleteIntegrationEmployeesResponse < TencentCloud::Common::AbstractModel
|
1276
|
+
# @param DeleteEmployeeResult: 员工删除数据
|
1277
|
+
# @type DeleteEmployeeResult: :class:`Tencentcloud::Ess.v20201111.models.DeleteStaffsResult`
|
1278
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1279
|
+
# @type RequestId: String
|
1280
|
+
|
1281
|
+
attr_accessor :DeleteEmployeeResult, :RequestId
|
1282
|
+
|
1283
|
+
def initialize(deleteemployeeresult=nil, requestid=nil)
|
1284
|
+
@DeleteEmployeeResult = deleteemployeeresult
|
1285
|
+
@RequestId = requestid
|
1286
|
+
end
|
1287
|
+
|
1288
|
+
def deserialize(params)
|
1289
|
+
unless params['DeleteEmployeeResult'].nil?
|
1290
|
+
@DeleteEmployeeResult = DeleteStaffsResult.new
|
1291
|
+
@DeleteEmployeeResult.deserialize(params['DeleteEmployeeResult'])
|
1292
|
+
end
|
1293
|
+
@RequestId = params['RequestId']
|
1294
|
+
end
|
1295
|
+
end
|
1296
|
+
|
1297
|
+
# 删除员工结果
|
1298
|
+
class DeleteStaffsResult < TencentCloud::Common::AbstractModel
|
1299
|
+
# @param SuccessEmployeeData: 删除员工的成功数据
|
1300
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1301
|
+
# @type SuccessEmployeeData: Array
|
1302
|
+
# @param FailedEmployeeData: 删除员工的失败数据
|
1303
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1304
|
+
# @type FailedEmployeeData: Array
|
1305
|
+
|
1306
|
+
attr_accessor :SuccessEmployeeData, :FailedEmployeeData
|
1307
|
+
|
1308
|
+
def initialize(successemployeedata=nil, failedemployeedata=nil)
|
1309
|
+
@SuccessEmployeeData = successemployeedata
|
1310
|
+
@FailedEmployeeData = failedemployeedata
|
1311
|
+
end
|
1312
|
+
|
1313
|
+
def deserialize(params)
|
1314
|
+
unless params['SuccessEmployeeData'].nil?
|
1315
|
+
@SuccessEmployeeData = []
|
1316
|
+
params['SuccessEmployeeData'].each do |i|
|
1317
|
+
successdeletestaffdata_tmp = SuccessDeleteStaffData.new
|
1318
|
+
successdeletestaffdata_tmp.deserialize(i)
|
1319
|
+
@SuccessEmployeeData << successdeletestaffdata_tmp
|
1320
|
+
end
|
1321
|
+
end
|
1322
|
+
unless params['FailedEmployeeData'].nil?
|
1323
|
+
@FailedEmployeeData = []
|
1324
|
+
params['FailedEmployeeData'].each do |i|
|
1325
|
+
faileddeletestaffdata_tmp = FailedDeleteStaffData.new
|
1326
|
+
faileddeletestaffdata_tmp.deserialize(i)
|
1327
|
+
@FailedEmployeeData << faileddeletestaffdata_tmp
|
1328
|
+
end
|
1329
|
+
end
|
1330
|
+
end
|
1331
|
+
end
|
1332
|
+
|
1333
|
+
# 集成版员工部门信息
|
1334
|
+
class Department < TencentCloud::Common::AbstractModel
|
1335
|
+
# @param DepartmentId: 部门id
|
1336
|
+
# @type DepartmentId: String
|
1337
|
+
# @param DepartmentName: 部门名称
|
1338
|
+
# @type DepartmentName: String
|
1339
|
+
|
1340
|
+
attr_accessor :DepartmentId, :DepartmentName
|
1341
|
+
|
1342
|
+
def initialize(departmentid=nil, departmentname=nil)
|
1343
|
+
@DepartmentId = departmentid
|
1344
|
+
@DepartmentName = departmentname
|
1345
|
+
end
|
1346
|
+
|
1347
|
+
def deserialize(params)
|
1348
|
+
@DepartmentId = params['DepartmentId']
|
1349
|
+
@DepartmentName = params['DepartmentName']
|
1350
|
+
end
|
1351
|
+
end
|
1352
|
+
|
1155
1353
|
# DescribeFileUrls请求参数结构体
|
1156
1354
|
class DescribeFileUrlsRequest < TencentCloud::Common::AbstractModel
|
1157
1355
|
# @param BusinessType: 文件对应的业务类型,目前支持:
|
@@ -1441,6 +1639,85 @@ module TencentCloud
|
|
1441
1639
|
end
|
1442
1640
|
end
|
1443
1641
|
|
1642
|
+
# DescribeIntegrationEmployees请求参数结构体
|
1643
|
+
class DescribeIntegrationEmployeesRequest < TencentCloud::Common::AbstractModel
|
1644
|
+
# @param Operator: 操作人信息,userId必填
|
1645
|
+
# @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
|
1646
|
+
# @param Limit: 返回最大数量,最大为20
|
1647
|
+
# @type Limit: Integer
|
1648
|
+
# @param Filters: 查询过滤实名用户,key为Status,Values为["IsVerified"]
|
1649
|
+
# @type Filters: Array
|
1650
|
+
# @param Offset: 偏移量,默认为0,最大为20000
|
1651
|
+
# @type Offset: Integer
|
1652
|
+
|
1653
|
+
attr_accessor :Operator, :Limit, :Filters, :Offset
|
1654
|
+
|
1655
|
+
def initialize(operator=nil, limit=nil, filters=nil, offset=nil)
|
1656
|
+
@Operator = operator
|
1657
|
+
@Limit = limit
|
1658
|
+
@Filters = filters
|
1659
|
+
@Offset = offset
|
1660
|
+
end
|
1661
|
+
|
1662
|
+
def deserialize(params)
|
1663
|
+
unless params['Operator'].nil?
|
1664
|
+
@Operator = UserInfo.new
|
1665
|
+
@Operator.deserialize(params['Operator'])
|
1666
|
+
end
|
1667
|
+
@Limit = params['Limit']
|
1668
|
+
unless params['Filters'].nil?
|
1669
|
+
@Filters = []
|
1670
|
+
params['Filters'].each do |i|
|
1671
|
+
filter_tmp = Filter.new
|
1672
|
+
filter_tmp.deserialize(i)
|
1673
|
+
@Filters << filter_tmp
|
1674
|
+
end
|
1675
|
+
end
|
1676
|
+
@Offset = params['Offset']
|
1677
|
+
end
|
1678
|
+
end
|
1679
|
+
|
1680
|
+
# DescribeIntegrationEmployees返回参数结构体
|
1681
|
+
class DescribeIntegrationEmployeesResponse < TencentCloud::Common::AbstractModel
|
1682
|
+
# @param Employees: 员工数据列表
|
1683
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1684
|
+
# @type Employees: Array
|
1685
|
+
# @param Offset: 偏移量,默认为0,最大为20000
|
1686
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1687
|
+
# @type Offset: Integer
|
1688
|
+
# @param Limit: 返回最大数量,最大为20
|
1689
|
+
# @type Limit: Integer
|
1690
|
+
# @param TotalCount: 符合条件的员工数量
|
1691
|
+
# @type TotalCount: Integer
|
1692
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1693
|
+
# @type RequestId: String
|
1694
|
+
|
1695
|
+
attr_accessor :Employees, :Offset, :Limit, :TotalCount, :RequestId
|
1696
|
+
|
1697
|
+
def initialize(employees=nil, offset=nil, limit=nil, totalcount=nil, requestid=nil)
|
1698
|
+
@Employees = employees
|
1699
|
+
@Offset = offset
|
1700
|
+
@Limit = limit
|
1701
|
+
@TotalCount = totalcount
|
1702
|
+
@RequestId = requestid
|
1703
|
+
end
|
1704
|
+
|
1705
|
+
def deserialize(params)
|
1706
|
+
unless params['Employees'].nil?
|
1707
|
+
@Employees = []
|
1708
|
+
params['Employees'].each do |i|
|
1709
|
+
staff_tmp = Staff.new
|
1710
|
+
staff_tmp.deserialize(i)
|
1711
|
+
@Employees << staff_tmp
|
1712
|
+
end
|
1713
|
+
end
|
1714
|
+
@Offset = params['Offset']
|
1715
|
+
@Limit = params['Limit']
|
1716
|
+
@TotalCount = params['TotalCount']
|
1717
|
+
@RequestId = params['RequestId']
|
1718
|
+
end
|
1719
|
+
end
|
1720
|
+
|
1444
1721
|
# DescribeThirdPartyAuthCode请求参数结构体
|
1445
1722
|
class DescribeThirdPartyAuthCodeRequest < TencentCloud::Common::AbstractModel
|
1446
1723
|
# @param AuthCode: 电子签小程序跳转客户小程序时携带的授权查看码
|
@@ -1477,6 +1754,56 @@ module TencentCloud
|
|
1477
1754
|
end
|
1478
1755
|
end
|
1479
1756
|
|
1757
|
+
# 创建员工的失败数据
|
1758
|
+
class FailedCreateStaffData < TencentCloud::Common::AbstractModel
|
1759
|
+
# @param DisplayName: 员工名
|
1760
|
+
# @type DisplayName: String
|
1761
|
+
# @param Mobile: 员工手机号
|
1762
|
+
# @type Mobile: String
|
1763
|
+
# @param Reason: 失败原因
|
1764
|
+
# @type Reason: String
|
1765
|
+
|
1766
|
+
attr_accessor :DisplayName, :Mobile, :Reason
|
1767
|
+
|
1768
|
+
def initialize(displayname=nil, mobile=nil, reason=nil)
|
1769
|
+
@DisplayName = displayname
|
1770
|
+
@Mobile = mobile
|
1771
|
+
@Reason = reason
|
1772
|
+
end
|
1773
|
+
|
1774
|
+
def deserialize(params)
|
1775
|
+
@DisplayName = params['DisplayName']
|
1776
|
+
@Mobile = params['Mobile']
|
1777
|
+
@Reason = params['Reason']
|
1778
|
+
end
|
1779
|
+
end
|
1780
|
+
|
1781
|
+
# 删除员工失败数据
|
1782
|
+
class FailedDeleteStaffData < TencentCloud::Common::AbstractModel
|
1783
|
+
# @param UserId: 员工在电子签的userId
|
1784
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1785
|
+
# @type UserId: String
|
1786
|
+
# @param OpenId: 员工在第三方平台的openId
|
1787
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1788
|
+
# @type OpenId: String
|
1789
|
+
# @param Reason: 失败原因
|
1790
|
+
# @type Reason: String
|
1791
|
+
|
1792
|
+
attr_accessor :UserId, :OpenId, :Reason
|
1793
|
+
|
1794
|
+
def initialize(userid=nil, openid=nil, reason=nil)
|
1795
|
+
@UserId = userid
|
1796
|
+
@OpenId = openid
|
1797
|
+
@Reason = reason
|
1798
|
+
end
|
1799
|
+
|
1800
|
+
def deserialize(params)
|
1801
|
+
@UserId = params['UserId']
|
1802
|
+
@OpenId = params['OpenId']
|
1803
|
+
@Reason = params['Reason']
|
1804
|
+
end
|
1805
|
+
end
|
1806
|
+
|
1480
1807
|
# 二期接口返回的模板中文件的信息结构
|
1481
1808
|
class FileInfo < TencentCloud::Common::AbstractModel
|
1482
1809
|
# @param FileId: 文件Id
|
@@ -2192,6 +2519,95 @@ module TencentCloud
|
|
2192
2519
|
end
|
2193
2520
|
end
|
2194
2521
|
|
2522
|
+
# 企业员工信息
|
2523
|
+
class Staff < TencentCloud::Common::AbstractModel
|
2524
|
+
# @param UserId: 用户在电子签平台的id
|
2525
|
+
# @type UserId: String
|
2526
|
+
# @param DisplayName: 显示的用户名/昵称
|
2527
|
+
# @type DisplayName: String
|
2528
|
+
# @param Mobile: 用户手机号
|
2529
|
+
# @type Mobile: String
|
2530
|
+
# @param Email: 用户邮箱
|
2531
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2532
|
+
# @type Email: String
|
2533
|
+
# @param OpenId: 用户在第三方平台id
|
2534
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2535
|
+
# @type OpenId: String
|
2536
|
+
# @param Roles: 员工角色
|
2537
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2538
|
+
# @type Roles: Array
|
2539
|
+
# @param Department: 员工部门
|
2540
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2541
|
+
# @type Department: :class:`Tencentcloud::Ess.v20201111.models.Department`
|
2542
|
+
# @param Verified: 员工是否实名
|
2543
|
+
# @type Verified: Boolean
|
2544
|
+
# @param CreatedOn: 员工创建时间戳
|
2545
|
+
# @type CreatedOn: Integer
|
2546
|
+
# @param VerifiedOn: 员工实名时间戳
|
2547
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2548
|
+
# @type VerifiedOn: Integer
|
2549
|
+
|
2550
|
+
attr_accessor :UserId, :DisplayName, :Mobile, :Email, :OpenId, :Roles, :Department, :Verified, :CreatedOn, :VerifiedOn
|
2551
|
+
|
2552
|
+
def initialize(userid=nil, displayname=nil, mobile=nil, email=nil, openid=nil, roles=nil, department=nil, verified=nil, createdon=nil, verifiedon=nil)
|
2553
|
+
@UserId = userid
|
2554
|
+
@DisplayName = displayname
|
2555
|
+
@Mobile = mobile
|
2556
|
+
@Email = email
|
2557
|
+
@OpenId = openid
|
2558
|
+
@Roles = roles
|
2559
|
+
@Department = department
|
2560
|
+
@Verified = verified
|
2561
|
+
@CreatedOn = createdon
|
2562
|
+
@VerifiedOn = verifiedon
|
2563
|
+
end
|
2564
|
+
|
2565
|
+
def deserialize(params)
|
2566
|
+
@UserId = params['UserId']
|
2567
|
+
@DisplayName = params['DisplayName']
|
2568
|
+
@Mobile = params['Mobile']
|
2569
|
+
@Email = params['Email']
|
2570
|
+
@OpenId = params['OpenId']
|
2571
|
+
unless params['Roles'].nil?
|
2572
|
+
@Roles = []
|
2573
|
+
params['Roles'].each do |i|
|
2574
|
+
staffrole_tmp = StaffRole.new
|
2575
|
+
staffrole_tmp.deserialize(i)
|
2576
|
+
@Roles << staffrole_tmp
|
2577
|
+
end
|
2578
|
+
end
|
2579
|
+
unless params['Department'].nil?
|
2580
|
+
@Department = Department.new
|
2581
|
+
@Department.deserialize(params['Department'])
|
2582
|
+
end
|
2583
|
+
@Verified = params['Verified']
|
2584
|
+
@CreatedOn = params['CreatedOn']
|
2585
|
+
@VerifiedOn = params['VerifiedOn']
|
2586
|
+
end
|
2587
|
+
end
|
2588
|
+
|
2589
|
+
# 集成版企业角色信息
|
2590
|
+
class StaffRole < TencentCloud::Common::AbstractModel
|
2591
|
+
# @param RoleId: 角色id
|
2592
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2593
|
+
# @type RoleId: String
|
2594
|
+
# @param RoleName: 角色名称
|
2595
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2596
|
+
# @type RoleName: String
|
2597
|
+
|
2598
|
+
attr_accessor :RoleId, :RoleName
|
2599
|
+
|
2600
|
+
def initialize(roleid=nil, rolename=nil)
|
2601
|
+
@RoleId = roleid
|
2602
|
+
@RoleName = rolename
|
2603
|
+
end
|
2604
|
+
|
2605
|
+
def deserialize(params)
|
2606
|
+
@RoleId = params['RoleId']
|
2607
|
+
@RoleName = params['RoleName']
|
2608
|
+
end
|
2609
|
+
end
|
2610
|
+
|
2195
2611
|
# StartFlow请求参数结构体
|
2196
2612
|
class StartFlowRequest < TencentCloud::Common::AbstractModel
|
2197
2613
|
# @param Operator: 调用方用户信息,userId 必填
|
@@ -2246,6 +2662,54 @@ module TencentCloud
|
|
2246
2662
|
end
|
2247
2663
|
end
|
2248
2664
|
|
2665
|
+
# 创建员工的成功数据
|
2666
|
+
class SuccessCreateStaffData < TencentCloud::Common::AbstractModel
|
2667
|
+
# @param DisplayName: 员工名
|
2668
|
+
# @type DisplayName: String
|
2669
|
+
# @param Mobile: 员工手机号
|
2670
|
+
# @type Mobile: String
|
2671
|
+
# @param UserId: 员工在电子签平台的id
|
2672
|
+
# @type UserId: String
|
2673
|
+
|
2674
|
+
attr_accessor :DisplayName, :Mobile, :UserId
|
2675
|
+
|
2676
|
+
def initialize(displayname=nil, mobile=nil, userid=nil)
|
2677
|
+
@DisplayName = displayname
|
2678
|
+
@Mobile = mobile
|
2679
|
+
@UserId = userid
|
2680
|
+
end
|
2681
|
+
|
2682
|
+
def deserialize(params)
|
2683
|
+
@DisplayName = params['DisplayName']
|
2684
|
+
@Mobile = params['Mobile']
|
2685
|
+
@UserId = params['UserId']
|
2686
|
+
end
|
2687
|
+
end
|
2688
|
+
|
2689
|
+
# 删除员工的成功数据
|
2690
|
+
class SuccessDeleteStaffData < TencentCloud::Common::AbstractModel
|
2691
|
+
# @param DisplayName: 员工名
|
2692
|
+
# @type DisplayName: String
|
2693
|
+
# @param Mobile: 员工手机号
|
2694
|
+
# @type Mobile: String
|
2695
|
+
# @param UserId: 员工在电子签平台的id
|
2696
|
+
# @type UserId: String
|
2697
|
+
|
2698
|
+
attr_accessor :DisplayName, :Mobile, :UserId
|
2699
|
+
|
2700
|
+
def initialize(displayname=nil, mobile=nil, userid=nil)
|
2701
|
+
@DisplayName = displayname
|
2702
|
+
@Mobile = mobile
|
2703
|
+
@UserId = userid
|
2704
|
+
end
|
2705
|
+
|
2706
|
+
def deserialize(params)
|
2707
|
+
@DisplayName = params['DisplayName']
|
2708
|
+
@Mobile = params['Mobile']
|
2709
|
+
@UserId = params['UserId']
|
2710
|
+
end
|
2711
|
+
end
|
2712
|
+
|
2249
2713
|
# 二期接口返回的模板的信息结构
|
2250
2714
|
class TemplateInfo < TencentCloud::Common::AbstractModel
|
2251
2715
|
# @param TemplateId: 模板ID
|
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: 3.0.
|
4
|
+
version: 3.0.422
|
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-09-
|
11
|
+
date: 2022-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|