lib/v20210331/client.rb in tencentcloud-sdk-organization-3.0.770 vs lib/v20210331/client.rb in tencentcloud-sdk-organization-3.0.771
- old
+ new
@@ -195,9 +195,33 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 成员账号删除检查
+
+ # @param request: Request instance for CheckAccountDelete.
+ # @type request: :class:`Tencentcloud::organization::V20210331::CheckAccountDeleteRequest`
+ # @rtype: :class:`Tencentcloud::organization::V20210331::CheckAccountDeleteResponse`
+ def CheckAccountDelete(request)
+ body = send_request('CheckAccountDelete', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = CheckAccountDeleteResponse.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
+
# 创建企业组织
# @param request: Request instance for CreateOrganization.
# @type request: :class:`Tencentcloud::organization::V20210331::CreateOrganizationRequest`
# @rtype: :class:`Tencentcloud::organization::V20210331::CreateOrganizationResponse`
\ No newline at end of file