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
"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# OntologyIdentifier\nontology = \"palantir\"\n# ObjectSet\nobject_set = {\"type\": \"base\", \"objectType\": \"Employee\"}\n# Optional[SdkPackageRid] | The package rid of the generated SDK.\nsdk_package_rid = None\n# Optional[SdkVersion] | The package version of the generated SDK.\nsdk_version = None\n\n\ntry:\n api_response = client.ontologies.OntologyObjectSet.create_temporary(\n ontology, object_set=object_set, sdk_package_rid=sdk_package_rid, sdk_version=sdk_version\n )\n print(\"The create_temporary response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling OntologyObjectSet.create_temporary: %s\\n\" % e)"
1393
+
"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# OntologyIdentifier\nontology = \"palantir\"\n# ObjectSet\nobject_set = {\"type\": \"base\", \"objectType\": \"Employee\"}\n# Optional[FoundryBranch] | The Foundry branch to reference. If not specified, the default branch will be used. Branches are an experimental feature and not all workflows are supported.\nbranch = None\n# Optional[SdkPackageRid] | The package rid of the generated SDK.\nsdk_package_rid = None\n# Optional[SdkVersion] | The package version of the generated SDK.\nsdk_version = None\n\n\ntry:\n api_response = client.ontologies.OntologyObjectSet.create_temporary(\n ontology,\n object_set=object_set,\n branch=branch,\n sdk_package_rid=sdk_package_rid,\n sdk_version=sdk_version,\n )\n print(\"The create_temporary response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling OntologyObjectSet.create_temporary: %s\\n\" % e)"
"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# OntologyIdentifier\nontology = \"palantir\"\n# ObjectSet\nobject_set = {\"type\": \"base\", \"interfaceBase\": \"Person\"}\n# List[SelectedPropertyApiName]\nselect = None\n# List[PropertyIdentifier] | The identifiers of the properties to include in the response. Only selectV2 or select should be populated, but not both.\nselect_v2 = None\n# Optional[FoundryBranch] | The Foundry branch to load the objects or interfaces from. If not specified, the default branch is used. Branches are an experimental feature and not all workflows are supported.\nbranch = None\n# Optional[bool] | A flag to exclude the retrieval of the `$rid` property. Setting this to true may improve performance of this endpoint for object types in OSV2.\nexclude_rid = None\n# Optional[SearchOrderByV2]\norder_by = None\n# Optional[PageSize]\npage_size = 10000\n# Optional[PageToken]\npage_token = \"v1.VGhlcmUgaXMgc28gbXVjaCBsZWZ0IHRvIGJ1aWxkIC0gcGFsYW50aXIuY29tL2NhcmVlcnMv\"\n# Optional[PreviewMode] | A boolean flag that, when set to true, enables the use of beta features in preview mode.\npreview = None\n# Optional[SdkPackageRid] | The package rid of the generated SDK.\nsdk_package_rid = None\n# Optional[SdkVersion] | The package version of the generated SDK.\nsdk_version = None\n# Optional[bool] | A flag to use snapshot consistency when paging. Setting this to true will give you a consistent view from before you start paging through the results, ensuring you do not get duplicate or missing items. Setting this to false will let new results enter as you page, but you may encounter duplicate or missing items. This defaults to false if not specified, which means you will always get the latest results.\nsnapshot = None\n\n\ntry:\n api_response = client.ontologies.OntologyObjectSet.load_objects_or_interfaces(\n ontology,\n object_set=object_set,\n select=select,\n select_v2=select_v2,\n branch=branch,\n exclude_rid=exclude_rid,\n order_by=order_by,\n page_size=page_size,\n page_token=page_token,\n preview=preview,\n sdk_package_rid=sdk_package_rid,\n sdk_version=sdk_version,\n snapshot=snapshot,\n )\n print(\"The load_objects_or_interfaces response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling OntologyObjectSet.load_objects_or_interfaces: %s\\n\" % e)"
1418
+
"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# OntologyIdentifier\nontology = \"palantir\"\n# ObjectSet\nobject_set = {\"type\": \"interfaceBase\", \"interfaceType\": \"Person\"}\n# List[SelectedPropertyApiName]\nselect = None\n# List[PropertyIdentifier] | The identifiers of the properties to include in the response. Only selectV2 or select should be populated, but not both.\nselect_v2 = None\n# Optional[FoundryBranch] | The Foundry branch to load the objects or interfaces from. If not specified, the default branch is used. Branches are an experimental feature and not all workflows are supported.\nbranch = None\n# Optional[bool] | A flag to exclude the retrieval of the `$rid` property. Setting this to true may improve performance of this endpoint for object types in OSV2.\nexclude_rid = None\n# Optional[SearchOrderByV2]\norder_by = None\n# Optional[PageSize]\npage_size = 10000\n# Optional[PageToken]\npage_token = \"v1.VGhlcmUgaXMgc28gbXVjaCBsZWZ0IHRvIGJ1aWxkIC0gcGFsYW50aXIuY29tL2NhcmVlcnMv\"\n# Optional[PreviewMode] | A boolean flag that, when set to true, enables the use of beta features in preview mode.\npreview = None\n# Optional[SdkPackageRid] | The package rid of the generated SDK.\nsdk_package_rid = None\n# Optional[SdkVersion] | The package version of the generated SDK.\nsdk_version = None\n# Optional[bool] | A flag to use snapshot consistency when paging. Setting this to true will give you a consistent view from before you start paging through the results, ensuring you do not get duplicate or missing items. Setting this to false will let new results enter as you page, but you may encounter duplicate or missing items. This defaults to false if not specified, which means you will always get the latest results.\nsnapshot = None\n\n\ntry:\n api_response = client.ontologies.OntologyObjectSet.load_objects_or_interfaces(\n ontology,\n object_set=object_set,\n select=select,\n select_v2=select_v2,\n branch=branch,\n exclude_rid=exclude_rid,\n order_by=order_by,\n page_size=page_size,\n page_token=page_token,\n preview=preview,\n sdk_package_rid=sdk_package_rid,\n sdk_version=sdk_version,\n snapshot=snapshot,\n )\n print(\"The load_objects_or_interfaces response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling OntologyObjectSet.load_objects_or_interfaces: %s\\n\" % e)"
"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# SqlQueryId | The id of a query.\nsql_query_id = None\n# Optional[PreviewMode] | Enables the use of preview functionality.\npreview = None\n\n\ntry:\n api_response = client.sql_queries.SqlQuery.cancel(sql_query_id, preview=preview)\n print(\"The cancel response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling SqlQuery.cancel: %s\\n\" % e)"
1578
+
"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# SqlQueryId | The unique identifier for a query. Note that query IDs are not URL-safe and must be URL-encoded when used in API endpoints.\nsql_query_id = None\n# Optional[PreviewMode] | Enables the use of preview functionality.\npreview = None\n\n\ntry:\n api_response = client.sql_queries.SqlQuery.cancel(sql_query_id, preview=preview)\n print(\"The cancel response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling SqlQuery.cancel: %s\\n\" % e)"
"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# SqlQueryId | The id of a query.\nsql_query_id = None\n# Optional[PreviewMode] | Enables the use of preview functionality.\npreview = None\n\n\ntry:\n api_response = client.sql_queries.SqlQuery.get_results(sql_query_id, preview=preview)\n print(\"The get_results response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling SqlQuery.get_results: %s\\n\" % e)"
1588
+
"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# SqlQueryId | The unique identifier for a query. Note that query IDs are not URL-safe and must be URL-encoded when used in API endpoints.\nsql_query_id = None\n# Optional[PreviewMode] | Enables the use of preview functionality.\npreview = None\n\n\ntry:\n api_response = client.sql_queries.SqlQuery.get_results(sql_query_id, preview=preview)\n print(\"The get_results response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling SqlQuery.get_results: %s\\n\" % e)"
1589
1589
}
1590
1590
],
1591
1591
"v2.getStatusSqlQuery": [
1592
1592
{
1593
-
"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# SqlQueryId | The id of a query.\nsql_query_id = None\n# Optional[PreviewMode] | Enables the use of preview functionality.\npreview = None\n\n\ntry:\n api_response = client.sql_queries.SqlQuery.get_status(sql_query_id, preview=preview)\n print(\"The get_status response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling SqlQuery.get_status: %s\\n\" % e)"
1593
+
"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# SqlQueryId | The unique identifier for a query. Note that query IDs are not URL-safe and must be URL-encoded when used in API endpoints.\nsql_query_id = None\n# Optional[PreviewMode] | Enables the use of preview functionality.\npreview = None\n\n\ntry:\n api_response = client.sql_queries.SqlQuery.get_status(sql_query_id, preview=preview)\n print(\"The get_status response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling SqlQuery.get_status: %s\\n\" % e)"
**object_type** | ObjectTypeApiName | The API name of the object type. To find the API name, use the **List object types** endpoint or check the **Ontology Manager**. | |
380
-
**select** | List[PropertyApiName]| The API names of the object type properties to include in the response. | |
381
-
**select_v2** | Optional[List[PropertyIdentifier]] | The identifiers of the properties to include in the response. Only selectV2 or select should be populated, but not both. | |
382
-
**branch** | Optional[FoundryBranch]| The Foundry branch to search objects from. If not specified, the default branch will be used. Branches are an experimental feature and not all workflows are supported. | [optional] |
383
-
**exclude_rid** | Optional[bool]| A flag to exclude the retrieval of the `__rid` property. Setting this to true may improve performance of this endpoint for object types in OSV2. | [optional] |
**sdk_package_rid** | Optional[SdkPackageRid]| The package rid of the generated SDK. | [optional] |
388
-
**sdk_version** | Optional[SdkVersion]| The version of the generated SDK. | [optional] |
389
-
**snapshot** | Optional[bool]| A flag to use snapshot consistency when paging. Setting this to true will give you a consistent view from before you start paging through the results, ensuring you do not get duplicate or missing items. Setting this to false will let new results enter as you page, but you may encounter duplicate or missing items. This defaults to false if not specified, which means you will always get the latest results. | [optional] |
**object_type** | ObjectTypeApiName | The API name of the object type. To find the API name, use the **List object types** endpoint or check the **Ontology Manager**. | |
380
+
**select** | List[PropertyApiName] | The API names of the object type properties to include in the response. | |
381
+
**select_v2** | List[PropertyIdentifier] | The identifiers of the properties to include in the response. Only selectV2 or select should be populated, but not both. | |
382
+
**branch** | Optional[FoundryBranch] | The Foundry branch to search objects from. If not specified, the default branch will be used. Branches are an experimental feature and not all workflows are supported. | [optional] |
383
+
**exclude_rid** | Optional[bool] | A flag to exclude the retrieval of the `__rid` property. Setting this to true may improve performance of this endpoint for object types in OSV2. | [optional] |
**sdk_package_rid** | Optional[SdkPackageRid] | The package rid of the generated SDK. | [optional] |
388
+
**sdk_version** | Optional[SdkVersion] | The version of the generated SDK. | [optional] |
389
+
**snapshot** | Optional[bool] | A flag to use snapshot consistency when paging. Setting this to true will give you a consistent view from before you start paging through the results, ensuring you do not get duplicate or missing items. Setting this to false will let new results enter as you page, but you may encounter duplicate or missing items. This defaults to false if not specified, which means you will always get the latest results. | [optional] |
0 commit comments