lib/v20210820/client.rb in tencentcloud-sdk-wedata-3.0.753 vs lib/v20210820/client.rb in tencentcloud-sdk-wedata-3.0.754

- old
+ new

@@ -1596,9 +1596,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 删除项目用户 + + # @param request: Request instance for DeleteProjectUsers. + # @type request: :class:`Tencentcloud::wedata::V20210820::DeleteProjectUsersRequest` + # @rtype: :class:`Tencentcloud::wedata::V20210820::DeleteProjectUsersResponse` + def DeleteProjectUsers(request) + body = send_request('DeleteProjectUsers', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DeleteProjectUsersResponse.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 DeleteResource. # @type request: :class:`Tencentcloud::wedata::V20210820::DeleteResourceRequest` # @rtype: :class:`Tencentcloud::wedata::V20210820::DeleteResourceResponse` \ No newline at end of file