lib/v20201111/client.rb in tencentcloud-sdk-ess-3.0.885 vs lib/v20201111/client.rb in tencentcloud-sdk-ess-3.0.886
- old
+ new
@@ -215,9 +215,38 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 此接口用于获取企业批量认证链接-单链接包含多条认证流。
+
+ # 前提条件:已调用 [CreateBatchOrganizationRegistrationTasks创建企业批量认证链接任务接口](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks) 和[查询企业批量认证链接DescribeBatchOrganizationRegistrationUrls](https://qian.tencent.com/developers/companyApis/organizations/DescribeBatchOrganizationRegistrationUrls) 确保认证任务已经完成。
+
+ # 异步任务的处理完成时间视当前已提交的任务量、任务的复杂程度等因素决定,正常情况下 3~5 秒即可完成,但也可能需要更长的时间。
+ # 此链接包含多条认证流程,使用该链接可以批量的对企业进行认证。
+
+ # @param request: Request instance for CreateBatchOrganizationAuthorizationUrl.
+ # @type request: :class:`Tencentcloud::ess::V20201111::CreateBatchOrganizationAuthorizationUrlRequest`
+ # @rtype: :class:`Tencentcloud::ess::V20201111::CreateBatchOrganizationAuthorizationUrlResponse`
+ def CreateBatchOrganizationAuthorizationUrl(request)
+ body = send_request('CreateBatchOrganizationAuthorizationUrl', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = CreateBatchOrganizationAuthorizationUrlResponse.new
+ model.deserialize(response['Response'])
+ model
+ else
+ code = response['Response']['Error']['Code']
+ message = response['Response']['Error']['Message']
+ reqid = response['Response']['RequestId']
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
+ end
+ rescue TencentCloud::Common::TencentCloudSDKException => e
+ raise e
+ rescue StandardError => e
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
+ end
+
# 本接口(CreateBatchOrganizationRegistrationTasks)用于批量创建企业认证链接
# 该接口为异步提交任务接口,需要跟查询企业批量认证链接(DescribeBatchOrganizationRegistrationUrls) 配合使用.
# 批量创建链接有以下限制:
\ No newline at end of file