Skip to content

Commit a0b9273

Browse files
Updating to version 1.8.0 to reflect new capabilities in the upcoming 10.4 release. Newest endpoints will not work until your instances are upgraded to 10.4
1 parent 87e80f1 commit a0b9273

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = thoughtspot_rest_api_v1
3-
version = 1.7.2
3+
version = 1.8.0
44
description = Library implementing the ThoughtSpot V1 REST API
55
long_description = file: README.md
66
long_description_content_type = text/markdown
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.7.2'
1+
__version__ = '1.8.0'

src/thoughtspot_rest_api_v1/tsrestapiv2.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,21 @@ def metadata_tml_import(self, metadata_tmls: List[str], import_policy: str = 'PA
460460
}
461461
return self.post_request(endpoint=endpoint, request=request)
462462

463+
def metadata_tml_async_import(self, metadata_tmls: List[str], import_policy: str = 'PARTIAL',
464+
create_new: bool = False, all_orgs_context: bool = False,
465+
skip_cdw_validation_for_tables: bool = False):
466+
endpoint = 'metadata/tml/async/import'
467+
request = {
468+
'metadata_tmls': metadata_tmls,
469+
'import_policy': import_policy,
470+
'create_new': create_new
471+
}
472+
return self.post_request(endpoint=endpoint, request=request)
473+
474+
def metadata_tml_async_status(self, request: Dict):
475+
endpoint = 'metadata/tml/async/status'
476+
return self.post_request(endpoint=endpoint, request=request)
477+
463478
# Out of convenience, providing a simple List[str] input for getting these by GUID. metadata_request will override
464479
# if you need the deeper functionality with names / types
465480
def metadata_tml_export(self, metadata_ids: List[str], export_associated: bool = False, export_fqn: bool = False,
@@ -486,6 +501,10 @@ def metadata_tml_export(self, metadata_ids: List[str], export_associated: bool =
486501
request['metadata'] = metadata_list
487502
return self.post_request(endpoint=endpoint, request=request)
488503

504+
def metadata_tml_export_batch(self, request: Dict):
505+
endpoint = 'metadata/tml/export/batch'
506+
return self.post_request(endpoint=endpoint, request=request)
507+
489508
# Out of convenience, providing a simple List[str] input for getting these by GUID. metadata_request will override
490509
# if you need the deeper functionality with names / types
491510
def metadata_delete(self, metadata_ids: List[str], delete_disabled_objects: bool = False,

0 commit comments

Comments
 (0)