"description":"The API performs a logical deletion of the given records. This operation can be reverted later. Required roles: 'users.datalake.editors' or 'users.datalake.admins'.",
"operationId":"Delete records",
"consumes":["application/json"],
"produces":["application/json"],
"parameters":[{
"name":"data-partition-id",
"in":"header",
"description":"This value should be the desired data partition id.",
The API performs a logical deletion of the given records. This operation can be reverted later. Required roles: 'users.datalake.editors' or 'users.datalake.admins'.
The API returns a list containing all versions for the given record id. Required roles: 'users.datalake.viewers' or 'users.datalake.editors' or 'users.datalake.admins'.
...
...
@@ -158,6 +168,12 @@ class AsyncRecordsApi(_RecordsApi):
The API performs a logical deletion of the given records. This operation can be reverted later. Required roles: 'users.datalake.editors' or 'users.datalake.admins'.
The API returns a list containing all versions for the given record id. Required roles: 'users.datalake.viewers' or 'users.datalake.editors' or 'users.datalake.admins'.
...
...
@@ -206,6 +222,13 @@ class SyncRecordsApi(_RecordsApi):
The API performs a logical deletion of the given records. This operation can be reverted later. Required roles: 'users.datalake.editors' or 'users.datalake.admins'.
The API returns a list containing all versions for the given record id. Required roles: 'users.datalake.viewers' or 'users.datalake.editors' or 'users.datalake.admins'.
[**create_or_update_records**](RecordsApi.md#create_or_update_records) | **PUT** /v2/records | Create or update records
[**delete_record**](RecordsApi.md#delete_record) | **POST** /v2/records/{id}:delete | Delete record
[**delete_records**](RecordsApi.md#delete_records) | **POST** /v2/records/delete | Delete records
[**get_all_record_versions**](RecordsApi.md#get_all_record_versions) | **GET** /v2/records/versions/{id} | Get all record versions
[**get_record**](RecordsApi.md#get_record) | **GET** /v2/records/{id} | Get record
[**get_record_version**](RecordsApi.md#get_record_version) | **GET** /v2/records/{id}/{version} | Get record version
...
...
@@ -143,6 +144,68 @@ void (empty response body)
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
# **delete_records**
> delete_records(data_partition_id, any)
Delete records
The API performs a logical deletion of the given records. This operation can be reverted later. Required roles: 'users.datalake.editors' or 'users.datalake.admins'.
### Example
* OAuth Authentication (google_id_token):
```python
from__future__importprint_function
importtime
importodes_storage
fromodes_storage.restimportApiException
frompprintimportpprint
configuration=odes_storage.Configuration()
# Configure OAuth2 access token for authorization: google_id_token
configuration.access_token='YOUR_ACCESS_TOKEN'
# Defining host is optional and default to https://os-storage-dot-opendes.appspot.com/api/storage
**data_partition_id** | **str**| This value should be the desired data partition id. | [default to 'common']
**any** | [**List[Any]**](Any.md)| |
### Return type
void (empty response body)
### Authorization
[google_id_token](../README.md#google_id_token)
### HTTP request headers
-**Content-Type**: application/json
-**Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**204** | Records deleted successfully. | - |
**404** | Records not found. | - |
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)