8000 docs: publish docstring · tableau/server-client-python@db8a9ae · GitHub
[go: up one dir, main page]

Skip to content

Commit db8a9ae

Browse files
committed
docs: publish docstring
1 parent ecf6b01 commit db8a9ae

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tableauserverclient/server/endpoint/virtual_connections_endpoint.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,22 @@ def publish(
110110
mode: str = "CreateNew",
111111
publish_as_draft: bool = False,
112112
) -> VirtualConnectionItem:
113+
"""
114+
Publish a virtual connection to the server.
115+
116+
For the virtual_connection object, name, project_id, and owner_id are
117+
required.
118+
119+
The virtual_connection_content can be a json string or a file path to a
120+
json file.
121+
122+
The mode can be "CreateNew" or "Overwrite". If mode is
123+
"Overwrite" and the virtual connection already exists, it will be
124+
overwritten.
125+
126+
If publish_as_draft is True, the virtual connection will be published
127+
as a draft, and the id of the draft will be on the response object.
128+
"""
113129
try:
114130
json.loads(virtual_connection_content)
115131
except json.JSONDecodeError:

0 commit comments

Comments
 (0)
0