lib/v20201111/client.rb in tencentcloud-sdk-ess-3.0.811 vs lib/v20201111/client.rb in tencentcloud-sdk-ess-3.0.812

- old
+ new

@@ -1572,9 +1572,37 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 此接口用于获取企业批量认证异步任务的状态及结果。 + + # 前提条件:已调用 CreateBatchOrganizationRegistrationTasks创建企业批量认证链接任务接口,并得到了任务Id。 + + # 异步任务的处理完成时间视当前已提交的任务量、任务的复杂程度等因素决定,正常情况下 3~5 秒即可完成,但也可能需要更长的时间 + + # @param request: Request instance for DescribeBatchOrganizationRegistrationUrls. + # @type request: :class:`Tencentcloud::ess::V20201111::DescribeBatchOrganizationRegistrationUrlsRequest` + # @rtype: :class:`Tencentcloud::ess::V20201111::DescribeBatchOrganizationRegistrationUrlsResponse` + def DescribeBatchOrganizationRegistrationUrls(request) + body = send_request('DescribeBatchOrganizationRegistrationUrls', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeBatchOrganizationRegistrationUrlsResponse.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 + # 通过此接口(DescribeBillUsage)查询该企业的套餐套餐使用情况。 # @param request: Request instance for DescribeBillUsage. # @type request: :class:`Tencentcloud::ess::V20201111::DescribeBillUsageRequest` # @rtype: :class:`Tencentcloud::ess::V20201111::DescribeBillUsageResponse` \ No newline at end of file