Skip to content

Commit b0186dc

Browse files
Version 1.5.7, adds additional arguments of V2.0 /metadata/tml/export that have been introduced later
1 parent 39f1f32 commit b0186dc

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-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.5.6
3+
version = 1.5.7
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.5.6'
1+
__version__ = '1.5.7'

src/thoughtspot_rest_api_v1/tsrestapiv2.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,12 +453,19 @@ def metadata_tml_import(self, metadata_tmls: List[str], import_policy: str = 'PA
453453
# Out of convenience, providing a simple List[str] input for getting these by GUID. metadata_request will override
454454
# if you need the deeper functionality with names / types
455455
def metadata_tml_export(self, metadata_ids: List[str], export_associated: bool = False, export_fqn: bool = False,
456+
edoc_format: Optional[str] = None, export_schema_version: Optional[str] = None,
456457
metadata_request: Optional[List[Dict]] = None):
457458
endpoint = 'metadata/tml/export'
459+
458460
request = {
459461
'export_associated': export_associated,
460462
'export_fqn': export_fqn
461463
}
464+
# These are left as optionals / defaults because they may have been added after 9.5
465+
if edoc_format.upper() == 'YAML':
466+
request['edoc_format'] = 'YAML'
467+
if export_schema_version is not None:
468+
request['export_schema_version'] = export_schema_version
462469
if metadata_request is not None:
463470
request['metadata'] = metadata_request
464471
else:

0 commit comments

Comments
 (0)