|
2 | 2 | import time |
3 | 3 | from pathlib import Path |
4 | 4 | from typing import Callable, Optional, Tuple, Union |
5 | | -from warnings import warn |
6 | 5 |
|
7 | 6 | from gooddata_api_client.exceptions import NotFoundException |
8 | 7 | from gooddata_api_client.model.pdf_export_request import PdfExportRequest |
@@ -284,15 +283,6 @@ def _get_visualization_exec_table(self, workspace_id: str, visualization_id: str |
284 | 283 | f"or visualization visualization_id='{visualization_id}' does not exist." |
285 | 284 | ) |
286 | 285 |
|
287 | | - def _get_insight_exec_table(self, workspace_id: str, insight_id: str) -> Tuple[ExecutionTable, str]: |
288 | | - warn( |
289 | | - "This method is deprecated and it will be removed in v1.20.0 release. " |
290 | | - "Please use '_get_visualization_exec_table' method instead.", |
291 | | - DeprecationWarning, |
292 | | - stacklevel=2, |
293 | | - ) |
294 | | - return self._get_visualization_exec_table(workspace_id, insight_id) |
295 | | - |
296 | 286 | def export_tabular_by_visualization_id( |
297 | 287 | self, |
298 | 288 | workspace_id: str, |
@@ -341,33 +331,3 @@ def export_tabular_by_visualization_id( |
341 | 331 | retry=retry, |
342 | 332 | max_retry=max_retry, |
343 | 333 | ) |
344 | | - |
345 | | - def export_tabular_by_insight_id( |
346 | | - self, |
347 | | - workspace_id: str, |
348 | | - insight_id: str, |
349 | | - file_format: str, |
350 | | - file_name: Optional[str] = None, |
351 | | - settings: Optional[ExportSettings] = None, |
352 | | - store_path: Union[str, Path] = Path.cwd(), |
353 | | - timeout: float = 60.0, |
354 | | - retry: float = 0.2, |
355 | | - max_retry: float = 5.0, |
356 | | - ) -> None: |
357 | | - warn( |
358 | | - "This method is deprecated and it will be removed in v1.20.0 release. " |
359 | | - "Please use 'export_tabular_by_visualization_id' method instead.", |
360 | | - DeprecationWarning, |
361 | | - stacklevel=2, |
362 | | - ) |
363 | | - self.export_tabular_by_visualization_id( |
364 | | - workspace_id, |
365 | | - insight_id, |
366 | | - file_format, |
367 | | - file_name, |
368 | | - settings, |
369 | | - store_path, |
370 | | - timeout, |
371 | | - retry, |
372 | | - max_retry, |
373 | | - ) |
0 commit comments