You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
V.1.3.0 adds the export_fqn= option to the /metadata/tml/export methods, and an override to turn it off if you are on an older cluster (feature starts in 8.9)
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,6 +123,14 @@ You create a TSRestApiV2 object with the `server_url` argument, then use the `se
123
123
## TML operations
124
124
One primary use case of the REST APIs is to import and export ThoughtSpot Modeling Language (TML) files.
125
125
126
+
### Disabling FQN export
127
+
ThoughtSpot 8.9 adds the 'export_fqn' option to the `/metadata/tml/export` endpoint, which includes the GUID references to all related objects in an exported TML file. Because this is very useful, the library defaults to including the argument set to true in all TML Export methods.
128
+
129
+
Older versions of ThoughtSpot will not support this option, so there is a global `can_export_fqn` flag to disable it. Set it to False if you are encountering errors and are on a version prior to 8.9:
130
+
131
+
ts: TSRestApiV1 = TSRestApiV1(server_url=server)
132
+
ts.can_export_fqn = False
133
+
126
134
### Retrieving the TML as a Python OrderedDict from REST API
127
135
If you want to use the TML classes to programmatically adjust the returned TML, there is a `export_tml(guid)` method which retrieves the TML from the API in JSON format and then returns it as a Python OrderedDict.
0 commit comments