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
@@ -293,6 +297,8 @@ All RPC exceptions will have the following properties. See the [Foundry API docs
293
297
| name | str | The Palantir error name. See the [Foundry API docs](https://www.palantir.com/docs/foundry/api/general/overview/errors). |
294
298
| error_instance_id | str | The Palantir error instance ID. See the [Foundry API docs](https://www.palantir.com/docs/foundry/api/general/overview/errors). |
295
299
| parameters | Dict[str, Any] | The Palantir error parameters. See the [Foundry API docs](https://www.palantir.com/docs/foundry/api/general/overview/errors). |
300
+
| error_code | str | The Palantir error code. See the [Foundry API docs](https://www.palantir.com/docs/foundry/api/general/overview/errors). |
301
+
| error_description | str | The Palantir error description. See the [Foundry API docs](https://www.palantir.com/docs/foundry/api/general/overview/errors). |
296
302
297
303
### Other exceptions
298
304
There are a handful of other exception classes that could be thrown when instantiating or using a client.
@@ -1017,13 +1023,16 @@ Namespace | Name | Import |
"template": "from foundry_sdk import FoundryClient\nimport foundry_sdk\nfrom pprint import pprint\n\nclient = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname=\"example.palantirfoundry.com\")\n\n# CreateConnectionRequestConnectionConfiguration\nconfiguration = {\n \"type\": \"jdbc\",\n \"url\": \"jdbc:postgresql://localhost:5432/test\",\n \"driverClass\": \"org.postgresql.Driver\",\n}\n# ConnectionDisplayName | The display name of the Connection. The display name must not be blank.\ndisplay_name = \"Connection to my external system\"\n# FolderRid\nparent_folder_rid = \"ri.compass.main.folder.c410f510-2937-420e-8ea3-8c9bcb3c1791\"\n# Optional[PreviewMode] | Enables the use of preview functionality.\npreview = None\n\n\ntry:\n api_response = client.connectivity.Connection.create(\n configuration=configuration,\n display_name=display_name,\n parent_folder_rid=parent_folder_rid,\n preview=preview,\n )\n print(\"The create response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling Connection.create: %s\\n\" % e)"
603
+
"template": "from foundry_sdk import FoundryClient\nimport foundry_sdk\nfrom pprint import pprint\n\nclient = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname=\"example.palantirfoundry.com\")\n\n# CreateConnectionRequestConnectionConfiguration\nconfiguration = {\n \"type\": \"jdbc\",\n \"url\": \"jdbc:postgresql://localhost:5432/test\",\n \"driverClass\": \"org.postgresql.Driver\",\n}\n# ConnectionDisplayName | The display name of the Connection. The display name must not be blank.\ndisplay_name = \"Connection to my external system\"\n# FolderRid\nparent_folder_rid = \"ri.compass.main.folder.c410f510-2937-420e-8ea3-8c9bcb3c1791\"\n# CreateConnectionRequestConnectionWorker\nworker = None\n# Optional[PreviewMode] | Enables the use of preview functionality.\npreview = None\n\n\ntry:\n api_response = client.connectivity.Connection.create(\n configuration=configuration,\n display_name=display_name,\n parent_folder_rid=parent_folder_rid,\n worker=worker,\n preview=preview,\n )\n print(\"The create response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling Connection.create: %s\\n\" % e)"
[The worker of a Connection](https://palantir.com/docs/foundry/data-connection/core-concepts/#workers), which defines where
4
+
compute for capabilities are run.
5
+
6
+
7
+
This is a discriminator type and does not contain any fields. Instead, it is a union
8
+
of of the models listed below.
9
+
10
+
This discriminator class uses the `type` field to differentiate between classes.
11
+
12
+
| Class | Value
13
+
| ------------ | -------------
14
+
UnknownWorker | unknownWorker
15
+
FoundryWorker | foundryWorker
16
+
17
+
18
+
[[Back to Model list]](../../../../README.md#models-v2-link)[[Back to API list]](../../../../README.md#apis-v2-link)[[Back to README]](../../../../README.md)
[[Back to Model list]](../../../../README.md#models-v2-link)[[Back to API list]](../../../../README.md#apis-v2-link)[[Back to README]](../../../../README.md)
[[Back to Model list]](../../../../README.md#models-v2-link)[[Back to API list]](../../../../README.md#apis-v2-link)[[Back to README]](../../../../README.md)
[[Back to Model list]](../../../../README.md#models-v2-link)[[Back to API list]](../../../../README.md#apis-v2-link)[[Back to README]](../../../../README.md)
0 commit comments