tencentcloud-sdk-ess 3.0.884 → 3.0.886
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20201111/client.rb +60 -0
- data/lib/v20201111/models.rb +170 -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: 913329bc44ceadcc0dfd63083bde106228a5a782
|
4
|
+
data.tar.gz: f69af4d020aef88bb8ef40c82c5e800a5713452c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 804cdfaecaf96fa862a03c753a05adb370614a28ec5c941bae8178a1ddfa32a7c2e0dbc8395490e9cf1086df45f6c9aeea4c4e0dcb77e543a5f076f0eed409df
|
7
|
+
data.tar.gz: 8ee8895e5a283c315a0b6c752e56aaf7418d74094402b2a8289a5f5ad0fd94d5f9c64c63465d8a8bd5215b3a162491a2e64ddda8fb716b1ef990604022191c91
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.886
|
data/lib/v20201111/client.rb
CHANGED
@@ -186,6 +186,66 @@ module TencentCloud
|
|
186
186
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
187
187
|
end
|
188
188
|
|
189
|
+
# 支持企业进行批量初始化操作:
|
190
|
+
|
191
|
+
# 此接口存在以下限制:
|
192
|
+
# 1. 若批量操作中包含<font color="red">加入集团企业</font>操作,则调用此接口的员工须有<font color="red">集团企业管理权限</font>。
|
193
|
+
# 2. 批量操作的企业需要已经完成电子签的认证流程。
|
194
|
+
# 3. 通过此接口生成的链接在小程序端进行操作时,操作人需要是<font color="red">所有企业的超管或法人</font>。
|
195
|
+
# 4. 批量操作的企业,需要是<a href="https://qian.tencent.com/developers/companyApis/organizations/CreateOrganizationAuthUrl" target="_blank">通过平台方引导认证</a>的企业。
|
196
|
+
# 5. <font color="red">操作链接过期时间默认为生成链接后7天。</font>
|
197
|
+
|
198
|
+
# @param request: Request instance for CreateBatchInitOrganizationUrl.
|
199
|
+
# @type request: :class:`Tencentcloud::ess::V20201111::CreateBatchInitOrganizationUrlRequest`
|
200
|
+
# @rtype: :class:`Tencentcloud::ess::V20201111::CreateBatchInitOrganizationUrlResponse`
|
201
|
+
def CreateBatchInitOrganizationUrl(request)
|
202
|
+
body = send_request('CreateBatchInitOrganizationUrl', request.serialize)
|
203
|
+
response = JSON.parse(body)
|
204
|
+
if response['Response'].key?('Error') == false
|
205
|
+
model = CreateBatchInitOrganizationUrlResponse.new
|
206
|
+
model.deserialize(response['Response'])
|
207
|
+
model
|
208
|
+
else
|
209
|
+
code = response['Response']['Error']['Code']
|
210
|
+
message = response['Response']['Error']['Message']
|
211
|
+
reqid = response['Response']['RequestId']
|
212
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
213
|
+
end
|
214
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
215
|
+
raise e
|
216
|
+
rescue StandardError => e
|
217
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
218
|
+
end
|
219
|
+
|
220
|
+
# 此接口用于获取企业批量认证链接-单链接包含多条认证流。
|
221
|
+
|
222
|
+
# 前提条件:已调用 [CreateBatchOrganizationRegistrationTasks创建企业批量认证链接任务接口](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks) 和[查询企业批量认证链接DescribeBatchOrganizationRegistrationUrls](https://qian.tencent.com/developers/companyApis/organizations/DescribeBatchOrganizationRegistrationUrls) 确保认证任务已经完成。
|
223
|
+
|
224
|
+
# 异步任务的处理完成时间视当前已提交的任务量、任务的复杂程度等因素决定,正常情况下 3~5 秒即可完成,但也可能需要更长的时间。
|
225
|
+
# 此链接包含多条认证流程,使用该链接可以批量的对企业进行认证。
|
226
|
+
|
227
|
+
# @param request: Request instance for CreateBatchOrganizationAuthorizationUrl.
|
228
|
+
# @type request: :class:`Tencentcloud::ess::V20201111::CreateBatchOrganizationAuthorizationUrlRequest`
|
229
|
+
# @rtype: :class:`Tencentcloud::ess::V20201111::CreateBatchOrganizationAuthorizationUrlResponse`
|
230
|
+
def CreateBatchOrganizationAuthorizationUrl(request)
|
231
|
+
body = send_request('CreateBatchOrganizationAuthorizationUrl', request.serialize)
|
232
|
+
response = JSON.parse(body)
|
233
|
+
if response['Response'].key?('Error') == false
|
234
|
+
model = CreateBatchOrganizationAuthorizationUrlResponse.new
|
235
|
+
model.deserialize(response['Response'])
|
236
|
+
model
|
237
|
+
else
|
238
|
+
code = response['Response']['Error']['Code']
|
239
|
+
message = response['Response']['Error']['Message']
|
240
|
+
reqid = response['Response']['RequestId']
|
241
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
242
|
+
end
|
243
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
244
|
+
raise e
|
245
|
+
rescue StandardError => e
|
246
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
247
|
+
end
|
248
|
+
|
189
249
|
# 本接口(CreateBatchOrganizationRegistrationTasks)用于批量创建企业认证链接
|
190
250
|
# 该接口为异步提交任务接口,需要跟查询企业批量认证链接(DescribeBatchOrganizationRegistrationUrls) 配合使用.
|
191
251
|
|
data/lib/v20201111/models.rb
CHANGED
@@ -1403,6 +1403,167 @@ module TencentCloud
|
|
1403
1403
|
end
|
1404
1404
|
end
|
1405
1405
|
|
1406
|
+
# CreateBatchInitOrganizationUrl请求参数结构体
|
1407
|
+
class CreateBatchInitOrganizationUrlRequest < TencentCloud::Common::AbstractModel
|
1408
|
+
# @param Operator: 执行本接口操作的员工信息。
|
1409
|
+
# 注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`
|
1410
|
+
# @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
|
1411
|
+
# @param OperateTypes: 初始化操作类型
|
1412
|
+
# <ul><li>CREATE_SEAL : 创建印章</li>
|
1413
|
+
# <li>AUTH_JOIN_ORGANIZATION_GROUP : 加入集团企业</li>
|
1414
|
+
# <li>OPEN_AUTO_SIGN :开通企业自动签署</li></ul>
|
1415
|
+
# @type OperateTypes: Array
|
1416
|
+
# @param OrganizationIds: 批量操作的企业Id列表,最大支持50个
|
1417
|
+
# @type OrganizationIds: Array
|
1418
|
+
# @param Agent: 代理相关应用信息,如集团主企业代子企业操作的场景中ProxyOrganizationId必填
|
1419
|
+
# @type Agent: :class:`Tencentcloud::Ess.v20201111.models.Agent`
|
1420
|
+
|
1421
|
+
attr_accessor :Operator, :OperateTypes, :OrganizationIds, :Agent
|
1422
|
+
|
1423
|
+
def initialize(operator=nil, operatetypes=nil, organizationids=nil, agent=nil)
|
1424
|
+
@Operator = operator
|
1425
|
+
@OperateTypes = operatetypes
|
1426
|
+
@OrganizationIds = organizationids
|
1427
|
+
@Agent = agent
|
1428
|
+
end
|
1429
|
+
|
1430
|
+
def deserialize(params)
|
1431
|
+
unless params['Operator'].nil?
|
1432
|
+
@Operator = UserInfo.new
|
1433
|
+
@Operator.deserialize(params['Operator'])
|
1434
|
+
end
|
1435
|
+
@OperateTypes = params['OperateTypes']
|
1436
|
+
@OrganizationIds = params['OrganizationIds']
|
1437
|
+
unless params['Agent'].nil?
|
1438
|
+
@Agent = Agent.new
|
1439
|
+
@Agent.deserialize(params['Agent'])
|
1440
|
+
end
|
1441
|
+
end
|
1442
|
+
end
|
1443
|
+
|
1444
|
+
# CreateBatchInitOrganizationUrl返回参数结构体
|
1445
|
+
class CreateBatchInitOrganizationUrlResponse < TencentCloud::Common::AbstractModel
|
1446
|
+
# @param MiniAppPath: 小程序路径
|
1447
|
+
# @type MiniAppPath: String
|
1448
|
+
# @param OperateLongUrl: 操作长链
|
1449
|
+
# @type OperateLongUrl: String
|
1450
|
+
# @param OperateShortUrl: 操作短链
|
1451
|
+
# @type OperateShortUrl: String
|
1452
|
+
# @param QRCodeUrl: 操作二维码
|
1453
|
+
# @type QRCodeUrl: String
|
1454
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1455
|
+
# @type RequestId: String
|
1456
|
+
|
1457
|
+
attr_accessor :MiniAppPath, :OperateLongUrl, :OperateShortUrl, :QRCodeUrl, :RequestId
|
1458
|
+
|
1459
|
+
def initialize(miniapppath=nil, operatelongurl=nil, operateshorturl=nil, qrcodeurl=nil, requestid=nil)
|
1460
|
+
@MiniAppPath = miniapppath
|
1461
|
+
@OperateLongUrl = operatelongurl
|
1462
|
+
@OperateShortUrl = operateshorturl
|
1463
|
+
@QRCodeUrl = qrcodeurl
|
1464
|
+
@RequestId = requestid
|
1465
|
+
end
|
1466
|
+
|
1467
|
+
def deserialize(params)
|
1468
|
+
@MiniAppPath = params['MiniAppPath']
|
1469
|
+
@OperateLongUrl = params['OperateLongUrl']
|
1470
|
+
@OperateShortUrl = params['OperateShortUrl']
|
1471
|
+
@QRCodeUrl = params['QRCodeUrl']
|
1472
|
+
@RequestId = params['RequestId']
|
1473
|
+
end
|
1474
|
+
end
|
1475
|
+
|
1476
|
+
# CreateBatchOrganizationAuthorizationUrl请求参数结构体
|
1477
|
+
class CreateBatchOrganizationAuthorizationUrlRequest < TencentCloud::Common::AbstractModel
|
1478
|
+
# @param Operator: 执行本接口操作的员工信息。
|
1479
|
+
# 注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`
|
1480
|
+
# @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
|
1481
|
+
# @param AdminName: 组织机构超管姓名。 在注册流程中,必须是超管本人进行操作。
|
1482
|
+
# 此参数需要跟[创建企业批量认证链接](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks)中 AdminName 保持一致。
|
1483
|
+
# @type AdminName: String
|
1484
|
+
# @param AdminMobile: 组织机构超管手机号。 在注册流程中,必须是超管本人进行操作。此参数需要跟[创建企业批量认证链接](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks)中 Admin Mobile保持一致。
|
1485
|
+
# @type AdminMobile: String
|
1486
|
+
# @param Agent: 代理相关应用信息,如集团主企业代子企业操作的场景中ProxyOrganizationId必填
|
1487
|
+
# @type Agent: :class:`Tencentcloud::Ess.v20201111.models.Agent`
|
1488
|
+
# @param SubTaskIds: 企业批量认证链接的子任务 SubTaskId,该 SubTaskId 是通过接口 查询企业批量认证链接 DescribeBatchOrganizationRegistrationUrls 获得。此参数需与超管个人三要素(AdminName,AdminMobile,AdminIdCardNumber)配合使用。若 SubTaskId 不属于传入的超级管理员,将进行筛选。
|
1489
|
+
# @type SubTaskIds: Array
|
1490
|
+
# @param AdminIdCardType: 组织机构超管证件类型支持以下类型
|
1491
|
+
# - ID_CARD : 居民身份证 (默认值)
|
1492
|
+
# - HONGKONG_AND_MACAO : 港澳居民来往内地通行证
|
1493
|
+
# - HONGKONG_MACAO_AND_TAIWAN : 港澳台居民居住证(格式同居民身份证)
|
1494
|
+
# 此参数需要跟[创建企业批量认证链接](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks)中 AdminIdCardType保持一致。
|
1495
|
+
# @type AdminIdCardType: String
|
1496
|
+
# @param AdminIdCardNumber: 组织机构超管证件号。 在注册流程中,必须是超管本人进行操作。此参数需要跟[创建企业批量认证链接](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks)中 AdminIdCardNumber保持一致。
|
1497
|
+
# @type AdminIdCardNumber: String
|
1498
|
+
# @param Endpoint: 要跳转的链接类型<ul><li> **HTTP**:跳转电子签小程序的http_url, 短信通知或者H5跳转适合此类型 ,此时返回长链 (默认类型)</li><li>**HTTP_SHORT_URL**:跳转电子签小程序的http_url, 短信通知或者H5跳转适合此类型,此时返回短链</li><li>**APP**: 第三方APP或小程序跳转电子签小程序的path, APP或者小程序跳转适合此类型</li><li>**QR_CODE**: 跳转电子签小程序的http_url的二维码形式, 可以在页面展示适合此类型</li></ul>
|
1499
|
+
# @type Endpoint: String
|
1500
|
+
|
1501
|
+
attr_accessor :Operator, :AdminName, :AdminMobile, :Agent, :SubTaskIds, :AdminIdCardType, :AdminIdCardNumber, :Endpoint
|
1502
|
+
|
1503
|
+
def initialize(operator=nil, adminname=nil, adminmobile=nil, agent=nil, subtaskids=nil, adminidcardtype=nil, adminidcardnumber=nil, endpoint=nil)
|
1504
|
+
@Operator = operator
|
1505
|
+
@AdminName = adminname
|
1506
|
+
@AdminMobile = adminmobile
|
1507
|
+
@Agent = agent
|
1508
|
+
@SubTaskIds = subtaskids
|
1509
|
+
@AdminIdCardType = adminidcardtype
|
1510
|
+
@AdminIdCardNumber = adminidcardnumber
|
1511
|
+
@Endpoint = endpoint
|
1512
|
+
end
|
1513
|
+
|
1514
|
+
def deserialize(params)
|
1515
|
+
unless params['Operator'].nil?
|
1516
|
+
@Operator = UserInfo.new
|
1517
|
+
@Operator.deserialize(params['Operator'])
|
1518
|
+
end
|
1519
|
+
@AdminName = params['AdminName']
|
1520
|
+
@AdminMobile = params['AdminMobile']
|
1521
|
+
unless params['Agent'].nil?
|
1522
|
+
@Agent = Agent.new
|
1523
|
+
@Agent.deserialize(params['Agent'])
|
1524
|
+
end
|
1525
|
+
@SubTaskIds = params['SubTaskIds']
|
1526
|
+
@AdminIdCardType = params['AdminIdCardType']
|
1527
|
+
@AdminIdCardNumber = params['AdminIdCardNumber']
|
1528
|
+
@Endpoint = params['Endpoint']
|
1529
|
+
end
|
1530
|
+
end
|
1531
|
+
|
1532
|
+
# CreateBatchOrganizationAuthorizationUrl返回参数结构体
|
1533
|
+
class CreateBatchOrganizationAuthorizationUrlResponse < TencentCloud::Common::AbstractModel
|
1534
|
+
# @param AuthUrl: 批量企业注册链接-单链接包含多条认证流,根据Endpoint的不同设置,返回不同的链接地址。失效时间:7天
|
1535
|
+
# 跳转链接, 链接的有效期根据企业,员工状态和终端等有区别, 可以参考下表
|
1536
|
+
# <table> <thead> <tr> <th>Endpoint</th> <th>示例</th> <th>链接有效期限</th> </tr> </thead> <tbody>
|
1537
|
+
# <tr> <td>HTTP</td> <td>https://res.ess.tencent.cn/cdn/h5-activity-dev/jump-mp.html?to=AUTHORIZATION_ENTERPRISE_FOR_BATCH_SUBMIT&shortKey=yDCHHURDfBxSB2rj2Bfa</td> <td>7天</td> </tr>
|
1538
|
+
# <tr> <td>HTTP_SHORT_URL</td> <td>https://test.essurl.cn/8gDKUBAWK8</td> <td>7天</td> </tr>
|
1539
|
+
# <tr> <td>APP</td> <td>pages/guide/index?to=AUTHORIZATION_ENTERPRISE_FOR_BATCH_SUBMIT&shortKey=yDCHpURDfR6iEkdpsDde</td> <td>7天</td> </tr><tr> <td>QR_CODE</td> <td>https://dyn.test.ess.tencent.cn/imgs/qrcode_urls/authorization_enterprise_for_batch_submit/yDCHHUUckpbdauq9UEjnoFDCCumAMmv1.png</td> <td>7天</td> </tr> </tbody> </table>
|
1540
|
+
# 注:
|
1541
|
+
# `1.创建的链接应避免被转义,如:&被转义为\u0026;如使用Postman请求后,请选择响应类型为 JSON,否则链接将被转义`
|
1542
|
+
# @type AuthUrl: String
|
1543
|
+
# @param ErrorMessages: 认证流认证失败信息
|
1544
|
+
# @type ErrorMessages: Array
|
1545
|
+
# @param ExpireTime: 链接过期时间,为 7 天后,创建时间,格式为Unix标准时间戳(秒)。
|
1546
|
+
# @type ExpireTime: Integer
|
1547
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1548
|
+
# @type RequestId: String
|
1549
|
+
|
1550
|
+
attr_accessor :AuthUrl, :ErrorMessages, :ExpireTime, :RequestId
|
1551
|
+
|
1552
|
+
def initialize(authurl=nil, errormessages=nil, expiretime=nil, requestid=nil)
|
1553
|
+
@AuthUrl = authurl
|
1554
|
+
@ErrorMessages = errormessages
|
1555
|
+
@ExpireTime = expiretime
|
1556
|
+
@RequestId = requestid
|
1557
|
+
end
|
1558
|
+
|
1559
|
+
def deserialize(params)
|
1560
|
+
@AuthUrl = params['AuthUrl']
|
1561
|
+
@ErrorMessages = params['ErrorMessages']
|
1562
|
+
@ExpireTime = params['ExpireTime']
|
1563
|
+
@RequestId = params['RequestId']
|
1564
|
+
end
|
1565
|
+
end
|
1566
|
+
|
1406
1567
|
# CreateBatchOrganizationRegistrationTasks请求参数结构体
|
1407
1568
|
class CreateBatchOrganizationRegistrationTasksRequest < TencentCloud::Common::AbstractModel
|
1408
1569
|
# @param Operator: 执行本接口操作的员工信息。
|
@@ -10745,10 +10906,15 @@ module TencentCloud
|
|
10745
10906
|
# <li> 5 :设备指纹识别</li>
|
10746
10907
|
# <li> 6 :设备面容识别</li></ul>
|
10747
10908
|
# @type ApproverSignTypes: Array
|
10909
|
+
# @param NoTransfer: 签署方是否可以转他人处理
|
10748
10910
|
|
10749
|
-
|
10911
|
+
# <ul><li> **false** : ( 默认)可以转他人处理</li>
|
10912
|
+
# <li> **true** :不可以转他人处理</li></ul>
|
10913
|
+
# @type NoTransfer: Boolean
|
10750
10914
|
|
10751
|
-
|
10915
|
+
attr_accessor :RecipientId, :RecipientType, :Description, :RoleName, :RequireValidation, :RequireSign, :RoutingOrder, :RequireDelivery, :Email, :Mobile, :UserId, :DeliveryMethod, :RecipientExtra, :ApproverVerifyTypes, :ApproverSignTypes, :NoTransfer
|
10916
|
+
|
10917
|
+
def initialize(recipientid=nil, recipienttype=nil, description=nil, rolename=nil, requirevalidation=nil, requiresign=nil, routingorder=nil, requiredelivery=nil, email=nil, mobile=nil, userid=nil, deliverymethod=nil, recipientextra=nil, approververifytypes=nil, approversigntypes=nil, notransfer=nil)
|
10752
10918
|
@RecipientId = recipientid
|
10753
10919
|
@RecipientType = recipienttype
|
10754
10920
|
@Description = description
|
@@ -10764,6 +10930,7 @@ module TencentCloud
|
|
10764
10930
|
@RecipientExtra = recipientextra
|
10765
10931
|
@ApproverVerifyTypes = approververifytypes
|
10766
10932
|
@ApproverSignTypes = approversigntypes
|
10933
|
+
@NoTransfer = notransfer
|
10767
10934
|
end
|
10768
10935
|
|
10769
10936
|
def deserialize(params)
|
@@ -10782,6 +10949,7 @@ module TencentCloud
|
|
10782
10949
|
@RecipientExtra = params['RecipientExtra']
|
10783
10950
|
@ApproverVerifyTypes = params['ApproverVerifyTypes']
|
10784
10951
|
@ApproverSignTypes = params['ApproverSignTypes']
|
10952
|
+
@NoTransfer = params['NoTransfer']
|
10785
10953
|
end
|
10786
10954
|
end
|
10787
10955
|
|
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.886
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|