Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions docs/api/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,6 @@ tdclient.job\_api
:undoc-members:
:show-inheritance:

tdclient.partial\_delete\_api
------------------------------------

.. automodule:: tdclient.partial_delete_api
:members:
:undoc-members:
:show-inheritance:

tdclient.result\_api
---------------------------
Expand Down
2 changes: 0 additions & 2 deletions tdclient/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
from tdclient.export_api import ExportAPI
from tdclient.import_api import ImportAPI
from tdclient.job_api import JobAPI
from tdclient.partial_delete_api import PartialDeleteAPI
from tdclient.result_api import ResultAPI
from tdclient.schedule_api import ScheduleAPI
from tdclient.server_status_api import ServerStatusAPI
Expand Down Expand Up @@ -63,7 +62,6 @@ class API(
ExportAPI,
ImportAPI,
JobAPI,
PartialDeleteAPI,
ResultAPI,
ScheduleAPI,
ServerStatusAPI,
Expand Down
30 changes: 0 additions & 30 deletions tdclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,36 +421,6 @@ def export_data(self, db_name, table_name, storage_type, params=None):
job_id = self.api.export_data(db_name, table_name, storage_type, params)
return models.Job(self, job_id, "export", None)

def partial_delete(self, db_name, table_name, to, _from, params=None):
"""Create a job to partially delete the contents of the table with the given
time range.

Args:
db_name (str): Target database name.
table_name (str): Target table name.
to (int): Time in Unix Epoch format indicating the End date and time of the
data to be deleted. Should be set only by the hour. Minutes and seconds
values will not be accepted.
_from (int): Time in Unix Epoch format indicating the Start date and time of
the data to be deleted. Should be set only by the hour. Minutes and
seconds values will not be accepted.
params (dict, optional): Extra parameters.

- pool_name (str, optional):
Indicates the resource pool to execute this
job. If not provided, the account's default resource pool would be
used.
- domain_key (str, optional):
Domain key that will be assigned to the
partial delete job to be created

Returns:
:class:`tdclient.models.Job`
"""
params = {} if params is None else params
job_id = self.api.partial_delete(db_name, table_name, to, _from, params)
return models.Job(self, job_id, "partialdelete", None)

def create_bulk_import(self, name, database, table, params=None):
"""Create new bulk import session

Expand Down
49 changes: 0 additions & 49 deletions tdclient/partial_delete_api.py

This file was deleted.

9 changes: 0 additions & 9 deletions tdclient/test/client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,6 @@ def test_kill():
td.api.kill.assert_called_with("12345")


def test_partial_delete():
td = client.Client("APIKEY")
td._api = mock.MagicMock()
td._api.partial_delete = mock.MagicMock(return_value=("12345"))
job = td.partial_delete("db_name", "table_name", 0, 2)
td.api.partial_delete.assert_called_with("db_name", "table_name", 0, 2, {})
assert job.job_id == "12345"


def test_create_bulk_import():
td = client.Client("APIKEY")
td._api = mock.MagicMock()
Expand Down
35 changes: 0 additions & 35 deletions tdclient/test/partial_delete_api_test.py

This file was deleted.

Loading