tencentcloud-sdk-essbasic 3.0.986 → 3.0.988
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/v20210526/client.rb +29 -0
- data/lib/v20210526/models.rb +75 -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: 368b29fc820156c5568cc61475a9215c16264e2f
|
4
|
+
data.tar.gz: d3da02233b8e619b8a57334cfb714a0125151964
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 635791c248222ed3bcc8af685f4ac93924f02d52c351aa465fef1c3612feebecc504b4541f59d88cea2f57882c5e91ffe3620dee874334c5b53a8d60ac2f3456
|
7
|
+
data.tar.gz: 263188b381de0b3f5698710dfc96e1156382d16d931e6d38ecf6ab309cf51f99b35721c729678779ed4941692ad18af255a7b0be9ec98d5e89923603caac3d55
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.988
|
data/lib/v20210526/client.rb
CHANGED
@@ -1707,6 +1707,35 @@ module TencentCloud
|
|
1707
1707
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1708
1708
|
end
|
1709
1709
|
|
1710
|
+
# 此接口用于获取企业批量认证链接-单链接包含多条认证流。
|
1711
|
+
|
1712
|
+
# 前提条件:已调用 [CreateBatchOrganizationRegistrationTasks创建子企业批量认证链接任务接口](https://qian.tencent.com/developers/partnerApis/accounts/CreateBatchOrganizationRegistrationTasks) 和[查询子企业批量认证链接DescribeBatchOrganizationRegistrationUrls](https://qian.tencent.com/developers/partnerApis/accounts/DescribeBatchOrganizationRegistrationUrls) 确保认证任务已经完成。
|
1713
|
+
|
1714
|
+
# 异步任务的处理完成时间视当前已提交的任务量、任务的复杂程度等因素决定,正常情况下 3~5 秒即可完成,但也可能需要更长的时间。
|
1715
|
+
# 此链接包含多条认证流程,使用该链接可以批量的对企业进行认证。
|
1716
|
+
|
1717
|
+
# @param request: Request instance for CreateBatchOrganizationAuthorizationUrl.
|
1718
|
+
# @type request: :class:`Tencentcloud::essbasic::V20210526::CreateBatchOrganizationAuthorizationUrlRequest`
|
1719
|
+
# @rtype: :class:`Tencentcloud::essbasic::V20210526::CreateBatchOrganizationAuthorizationUrlResponse`
|
1720
|
+
def CreateBatchOrganizationAuthorizationUrl(request)
|
1721
|
+
body = send_request('CreateBatchOrganizationAuthorizationUrl', request.serialize)
|
1722
|
+
response = JSON.parse(body)
|
1723
|
+
if response['Response'].key?('Error') == false
|
1724
|
+
model = CreateBatchOrganizationAuthorizationUrlResponse.new
|
1725
|
+
model.deserialize(response['Response'])
|
1726
|
+
model
|
1727
|
+
else
|
1728
|
+
code = response['Response']['Error']['Code']
|
1729
|
+
message = response['Response']['Error']['Message']
|
1730
|
+
reqid = response['Response']['RequestId']
|
1731
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1732
|
+
end
|
1733
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1734
|
+
raise e
|
1735
|
+
rescue StandardError => e
|
1736
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1737
|
+
end
|
1738
|
+
|
1710
1739
|
# 该接口用于批量创建企业认证链接, 可以支持PC浏览器,H5和小程序三种途径。
|
1711
1740
|
# 此接口为异步提交任务接口,需要与[查询子企业批量认证链接](https://qcloudimg.tencent-cloud.cn/raw/1d3737991b2a3be78002bd78a47d6917.png)配合使用,整体流程如下图。
|
1712
1741
|
# ![image](https://qcloudimg.tencent-cloud.cn/raw/654aa2a72ab7d42f06464ea33c50c3bb.png)
|
data/lib/v20210526/models.rb
CHANGED
@@ -5515,6 +5515,81 @@ module TencentCloud
|
|
5515
5515
|
end
|
5516
5516
|
end
|
5517
5517
|
|
5518
|
+
# CreateBatchOrganizationAuthorizationUrl请求参数结构体
|
5519
|
+
class CreateBatchOrganizationAuthorizationUrlRequest < TencentCloud::Common::AbstractModel
|
5520
|
+
# @param Agent: 应用相关信息。 此接口Agent.AppId 必填。
|
5521
|
+
# @type Agent: :class:`Tencentcloud::Essbasic.v20210526.models.Agent`
|
5522
|
+
# @param AdminName: 组织机构超管姓名。 在注册流程中,必须是超管本人进行操作。此参数需要跟[创建子企业批量认证链接](https://qian.tencent.com/developers/partnerApis/accounts/CreateBatchOrganizationRegistrationTasks)中 AdminName 保持一致。
|
5523
|
+
# @type AdminName: String
|
5524
|
+
# @param AdminMobile: 组织机构超管手机号。 在注册流程中,必须是超管本人进行操作。此参数需要跟[创建子企业批量认证链接](https://qian.tencent.com/developers/partnerApis/accounts/CreateBatchOrganizationRegistrationTasks)中 Admin Mobile保持一致。
|
5525
|
+
# @type AdminMobile: String
|
5526
|
+
# @param SubTaskIds: 企业批量认证链接的子任务 SubTaskId,该 SubTaskId 是通过接口 查询企业批量认证链接 DescribeBatchOrganizationRegistrationUrls 获得。此参数需与超管个人三要素(AdminName,AdminMobile,AdminIdCardNumber)配合使用。若 SubTaskId 不属于传入的超级管理员,将进行筛选。
|
5527
|
+
# @type SubTaskIds: Array
|
5528
|
+
# @param AdminIdCardType: 组织机构超管证件类型支持以下类型
|
5529
|
+
# - ID_CARD : 居民身份证 (默认值)
|
5530
|
+
# - HONGKONG_AND_MACAO : 港澳居民来往内地通行证
|
5531
|
+
# - HONGKONG_MACAO_AND_TAIWAN : 港澳台居民居住证(格式同居民身份证)
|
5532
|
+
# 此参数需要跟[创建子企业批量认证链接](https://qian.tencent.com/developers/partnerApis/accounts/CreateBatchOrganizationRegistrationTasks)中 AdminIdCardType保持一致。
|
5533
|
+
# @type AdminIdCardType: String
|
5534
|
+
# @param AdminIdCardNumber: 组织机构超管证件号。 在注册流程中,必须是超管本人进行操作。此参数需要跟[创建子企业批量认证链接](https://qian.tencent.com/developers/partnerApis/accounts/CreateBatchOrganizationRegistrationTasks)中 AdminIdCardNumber保持一致。
|
5535
|
+
# @type AdminIdCardNumber: String
|
5536
|
+
# @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>
|
5537
|
+
# @type Endpoint: String
|
5538
|
+
|
5539
|
+
attr_accessor :Agent, :AdminName, :AdminMobile, :SubTaskIds, :AdminIdCardType, :AdminIdCardNumber, :Endpoint
|
5540
|
+
|
5541
|
+
def initialize(agent=nil, adminname=nil, adminmobile=nil, subtaskids=nil, adminidcardtype=nil, adminidcardnumber=nil, endpoint=nil)
|
5542
|
+
@Agent = agent
|
5543
|
+
@AdminName = adminname
|
5544
|
+
@AdminMobile = adminmobile
|
5545
|
+
@SubTaskIds = subtaskids
|
5546
|
+
@AdminIdCardType = adminidcardtype
|
5547
|
+
@AdminIdCardNumber = adminidcardnumber
|
5548
|
+
@Endpoint = endpoint
|
5549
|
+
end
|
5550
|
+
|
5551
|
+
def deserialize(params)
|
5552
|
+
unless params['Agent'].nil?
|
5553
|
+
@Agent = Agent.new
|
5554
|
+
@Agent.deserialize(params['Agent'])
|
5555
|
+
end
|
5556
|
+
@AdminName = params['AdminName']
|
5557
|
+
@AdminMobile = params['AdminMobile']
|
5558
|
+
@SubTaskIds = params['SubTaskIds']
|
5559
|
+
@AdminIdCardType = params['AdminIdCardType']
|
5560
|
+
@AdminIdCardNumber = params['AdminIdCardNumber']
|
5561
|
+
@Endpoint = params['Endpoint']
|
5562
|
+
end
|
5563
|
+
end
|
5564
|
+
|
5565
|
+
# CreateBatchOrganizationAuthorizationUrl返回参数结构体
|
5566
|
+
class CreateBatchOrganizationAuthorizationUrlResponse < TencentCloud::Common::AbstractModel
|
5567
|
+
# @param AuthUrl: 批量企业注册链接-单链接包含多条认证流,根据Endpoint的不同设置,返回不同的链接地址。失效时间:7天跳转链接, 链接的有效期根据企业,员工状态和终端等有区别, 可以参考下表<table> <thead> <tr> <th>Endpoint</th> <th>示例</th> <th>链接有效期限</th> </tr> </thead> <tbody> <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> <tr> <td>HTTP_SHORT_URL</td> <td>https://test.essurl.cn/8gDKUBAWK8</td> <td>7天</td> </tr> <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>注: `1.创建的链接应避免被转义,如:&被转义为\u0026;如使用Postman请求后,请选择响应类型为 JSON,否则链接将被转义`
|
5568
|
+
# @type AuthUrl: String
|
5569
|
+
# @param ErrorMessages: 认证流认证失败信息
|
5570
|
+
# @type ErrorMessages: Array
|
5571
|
+
# @param ExpireTime: 链接过期时间,为 7 天后,创建时间,格式为Unix标准时间戳(秒)。
|
5572
|
+
# @type ExpireTime: Integer
|
5573
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5574
|
+
# @type RequestId: String
|
5575
|
+
|
5576
|
+
attr_accessor :AuthUrl, :ErrorMessages, :ExpireTime, :RequestId
|
5577
|
+
|
5578
|
+
def initialize(authurl=nil, errormessages=nil, expiretime=nil, requestid=nil)
|
5579
|
+
@AuthUrl = authurl
|
5580
|
+
@ErrorMessages = errormessages
|
5581
|
+
@ExpireTime = expiretime
|
5582
|
+
@RequestId = requestid
|
5583
|
+
end
|
5584
|
+
|
5585
|
+
def deserialize(params)
|
5586
|
+
@AuthUrl = params['AuthUrl']
|
5587
|
+
@ErrorMessages = params['ErrorMessages']
|
5588
|
+
@ExpireTime = params['ExpireTime']
|
5589
|
+
@RequestId = params['RequestId']
|
5590
|
+
end
|
5591
|
+
end
|
5592
|
+
|
5518
5593
|
# CreateBatchOrganizationRegistrationTasks请求参数结构体
|
5519
5594
|
class CreateBatchOrganizationRegistrationTasksRequest < TencentCloud::Common::AbstractModel
|
5520
5595
|
# @param Agent: 关于渠道应用的相关信息,包括渠道应用标识、第三方平台子客企业标识及第三方平台子客企业中的员工标识等内容,您可以参阅开发者中心所提供的 Agent 结构体以获取详细定义。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-essbasic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.988
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|