|
| 1 | +# Record |
| 2 | + |
| 3 | +Method | HTTP request | Release Stage | |
| 4 | +------------- | ------------- | ----- | |
| 5 | +[**get**](#get) | **GET** /v2/checkpoints/records/{recordRid} | Public Beta | |
| 6 | +[**get_batch**](#get_batch) | **POST** /v2/checkpoints/records/getBatch | Public Beta | |
| 7 | +[**search**](#search) | **POST** /v2/checkpoints/records/search | Public Beta | |
| 8 | + |
| 9 | +# **get** |
| 10 | +Retrieve a single checkpoint record by id. |
| 11 | + |
| 12 | +### Parameters |
| 13 | + |
| 14 | +Name | Type | Description | Notes | |
| 15 | +------------- | ------------- | ------------- | ------------- | |
| 16 | +**record_rid** | RecordRid | | | |
| 17 | +**preview** | Optional[PreviewMode] | Enables the use of preview functionality. | [optional] | |
| 18 | + |
| 19 | +### Return type |
| 20 | +**Record** |
| 21 | + |
| 22 | +### Example |
| 23 | + |
| 24 | +```python |
| 25 | +from foundry_sdk import FoundryClient |
| 26 | +import foundry_sdk |
| 27 | +from pprint import pprint |
| 28 | + |
| 29 | +client = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname="example.palantirfoundry.com") |
| 30 | + |
| 31 | +# RecordRid |
| 32 | +record_rid = None |
| 33 | +# Optional[PreviewMode] | Enables the use of preview functionality. |
| 34 | +preview = None |
| 35 | + |
| 36 | + |
| 37 | +try: |
| 38 | + api_response = client.checkpoints.Record.get(record_rid, preview=preview) |
| 39 | + print("The get response:\n") |
| 40 | + pprint(api_response) |
| 41 | +except foundry_sdk.PalantirRPCException as e: |
| 42 | + print("HTTP error when calling Record.get: %s\n" % e) |
| 43 | + |
| 44 | +``` |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | +### Authorization |
| 49 | + |
| 50 | +See [README](../../../README.md#authorization) |
| 51 | + |
| 52 | +### HTTP response details |
| 53 | +| Status Code | Type | Description | Content Type | |
| 54 | +|-------------|-------------|-------------|------------------| |
| 55 | +**200** | Record | | application/json | |
| 56 | + |
| 57 | +[[Back to top]](#) [[Back to API list]](../../../README.md#apis-v2-link) [[Back to Model list]](../../../README.md#models-v2-link) [[Back to README]](../../../README.md) |
| 58 | + |
| 59 | +# **get_batch** |
| 60 | +Fetch multiple checkpoint records in a single request. Records not found |
| 61 | +or inaccessible to the user will be omitted from the response. |
| 62 | + |
| 63 | + |
| 64 | +The maximum batch size for this endpoint is 100. |
| 65 | + |
| 66 | +### Parameters |
| 67 | + |
| 68 | +Name | Type | Description | Notes | |
| 69 | +------------- | ------------- | ------------- | ------------- | |
| 70 | +**body** | List[GetRecordsBatchRequestElement] | Body of the request | | |
| 71 | +**preview** | Optional[PreviewMode] | Enables the use of preview functionality. | [optional] | |
| 72 | + |
| 73 | +### Return type |
| 74 | +**GetRecordsBatchResponse** |
| 75 | + |
| 76 | +### Example |
| 77 | + |
| 78 | +```python |
| 79 | +from foundry_sdk import FoundryClient |
| 80 | +import foundry_sdk |
| 81 | +from pprint import pprint |
| 82 | + |
| 83 | +client = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname="example.palantirfoundry.com") |
| 84 | + |
| 85 | +# List[GetRecordsBatchRequestElement] | Body of the request |
| 86 | +body = [{"recordRid": "ri.checkpoints.main.checkpoint.a1b2c3d4-e5f6-7890-abcd-ef1234567890"}] |
| 87 | +# Optional[PreviewMode] | Enables the use of preview functionality. |
| 88 | +preview = None |
| 89 | + |
| 90 | + |
| 91 | +try: |
| 92 | + api_response = client.checkpoints.Record.get_batch(body, preview=preview) |
| 93 | + print("The get_batch response:\n") |
| 94 | + pprint(api_response) |
| 95 | +except foundry_sdk.PalantirRPCException as e: |
| 96 | + print("HTTP error when calling Record.get_batch: %s\n" % e) |
| 97 | + |
| 98 | +``` |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | +### Authorization |
| 103 | + |
| 104 | +See [README](../../../README.md#authorization) |
| 105 | + |
| 106 | +### HTTP response details |
| 107 | +| Status Code | Type | Description | Content Type | |
| 108 | +|-------------|-------------|-------------|------------------| |
| 109 | +**200** | GetRecordsBatchResponse | | application/json | |
| 110 | + |
| 111 | +[[Back to top]](#) [[Back to API list]](../../../README.md#apis-v2-link) [[Back to Model list]](../../../README.md#models-v2-link) [[Back to README]](../../../README.md) |
| 112 | + |
| 113 | +# **search** |
| 114 | +Search for checkpoint records. |
| 115 | + |
| 116 | +### Parameters |
| 117 | + |
| 118 | +Name | Type | Description | Notes | |
| 119 | +------------- | ------------- | ------------- | ------------- | |
| 120 | +**where** | SearchCheckpointRecordsRequest | | | |
| 121 | +**page_size** | Optional[PageSize] | The page size for the search request. If no value is provided, a default of `100` will be used. | [optional] | |
| 122 | +**page_token** | Optional[PageToken] | | [optional] | |
| 123 | +**preview** | Optional[PreviewMode] | Enables the use of preview functionality. | [optional] | |
| 124 | +**sort_direction** | Optional[SortDirection] | Chronological order of creation time for records to be returned in. Defaults to reverse chronological order (DESC). | [optional] | |
| 125 | + |
| 126 | +### Return type |
| 127 | +**SearchCheckpointRecordsResponse** |
| 128 | + |
| 129 | +### Example |
| 130 | + |
| 131 | +```python |
| 132 | +from foundry_sdk import FoundryClient |
| 133 | +import foundry_sdk |
| 134 | +from pprint import pprint |
| 135 | + |
| 136 | +client = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname="example.palantirfoundry.com") |
| 137 | + |
| 138 | +# SearchCheckpointRecordsRequest |
| 139 | +where = {"filter": {"type": "eq", "field": "checkpointType", "value": "CONTOUR_EXPORT"}} |
| 140 | +# Optional[PageSize] | The page size for the search request. If no value is provided, a default of `100` will be used. |
| 141 | +page_size = 100 |
| 142 | +# Optional[PageToken] |
| 143 | +page_token = "v1.QnVpbGQgdGhlIEZ1dHVyZTogaHR0cHM6Ly93d3cucGFsYW50aXIuY29tL2NhcmVlcnMvP2xldmVyLXNvdXJjZSU1YiU1ZD1BUElEb2NzI29wZW4tcG9zaXRpb25z" |
| 144 | +# Optional[PreviewMode] | Enables the use of preview functionality. |
| 145 | +preview = None |
| 146 | +# Optional[SortDirection] | Chronological order of creation time for records to be returned in. Defaults to reverse chronological order (DESC). |
| 147 | +sort_direction = "DESC" |
| 148 | + |
| 149 | + |
| 150 | +try: |
| 151 | + api_response = client.checkpoints.Record.search( |
| 152 | + where=where, |
| 153 | + page_size=page_size, |
| 154 | + page_token=page_token, |
| 155 | + preview=preview, |
| 156 | + sort_direction=sort_direction, |
| 157 | + ) |
| 158 | + print("The search response:\n") |
| 159 | + pprint(api_response) |
| 160 | +except foundry_sdk.PalantirRPCException as e: |
| 161 | + print("HTTP error when calling Record.search: %s\n" % e) |
| 162 | + |
| 163 | +``` |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | +### Authorization |
| 168 | + |
| 169 | +See [README](../../../README.md#authorization) |
| 170 | + |
| 171 | +### HTTP response details |
| 172 | +| Status Code | Type | Description | Content Type | |
| 173 | +|-------------|-------------|-------------|------------------| |
| 174 | +**200** | SearchCheckpointRecordsResponse | | application/json | |
| 175 | + |
| 176 | +[[Back to top]](#) [[Back to API list]](../../../README.md#apis-v2-link) [[Back to Model list]](../../../README.md#models-v2-link) [[Back to README]](../../../README.md) |
| 177 | + |
0 commit comments