Skip to content

Commit 3cb17c6

Browse files
author
ks-release-bot
committed
chore(release): regenerate ksapi v1.155.0 from ks-backend
1 parent b7900b8 commit 3cb17c6

71 files changed

Lines changed: 4742 additions & 13 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.openapi-generator/FILES‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,25 @@ docs/AuthApi.md
3030
docs/BlockChangeType.md
3131
docs/BlockKind.md
3232
docs/BrandingLogoType.md
33+
docs/BulkDeleteApi.md
34+
docs/BulkDeleteRequest.md
3335
docs/BulkDownloadApi.md
3436
docs/BulkDownloadRequest.md
37+
docs/BulkFailureReason.md
38+
docs/BulkGrantItem.md
39+
docs/BulkGrantItemFailure.md
40+
docs/BulkGrantRequest.md
41+
docs/BulkGrantResponse.md
42+
docs/BulkGrantSuccess.md
43+
docs/BulkItemFailure.md
3544
docs/BulkModelTablesRequest.md
3645
docs/BulkModelTablesResponse.md
46+
docs/BulkMoveApi.md
47+
docs/BulkMoveRequest.md
48+
docs/BulkOperationResponse.md
49+
docs/BulkRevokeRequest.md
3750
docs/BulkTagRequest.md
51+
docs/BulkTrashRequest.md
3852
docs/CatalogColumnResponse.md
3953
docs/CatalogTableResponse.md
4054
docs/CellChange.md
@@ -421,7 +435,9 @@ ksapi/api/api_connections_api.py
421435
ksapi/api/api_keys_api.py
422436
ksapi/api/audit_events_api.py
423437
ksapi/api/auth_api.py
438+
ksapi/api/bulk_delete_api.py
424439
ksapi/api/bulk_download_api.py
440+
ksapi/api/bulk_move_api.py
425441
ksapi/api/chunk_lineages_api.py
426442
ksapi/api/chunks_api.py
427443
ksapi/api/data_sources_api.py
@@ -476,10 +492,22 @@ ksapi/models/ask_response.py
476492
ksapi/models/block_change_type.py
477493
ksapi/models/block_kind.py
478494
ksapi/models/branding_logo_type.py
495+
ksapi/models/bulk_delete_request.py
479496
ksapi/models/bulk_download_request.py
497+
ksapi/models/bulk_failure_reason.py
498+
ksapi/models/bulk_grant_item.py
499+
ksapi/models/bulk_grant_item_failure.py
500+
ksapi/models/bulk_grant_request.py
501+
ksapi/models/bulk_grant_response.py
502+
ksapi/models/bulk_grant_success.py
503+
ksapi/models/bulk_item_failure.py
480504
ksapi/models/bulk_model_tables_request.py
481505
ksapi/models/bulk_model_tables_response.py
506+
ksapi/models/bulk_move_request.py
507+
ksapi/models/bulk_operation_response.py
508+
ksapi/models/bulk_revoke_request.py
482509
ksapi/models/bulk_tag_request.py
510+
ksapi/models/bulk_trash_request.py
483511
ksapi/models/catalog_column_response.py
484512
ksapi/models/catalog_table_response.py
485513
ksapi/models/cell_change.py
@@ -860,11 +888,25 @@ test/test_auth_api.py
860888
test/test_block_change_type.py
861889
test/test_block_kind.py
862890
test/test_branding_logo_type.py
891+
test/test_bulk_delete_api.py
892+
test/test_bulk_delete_request.py
863893
test/test_bulk_download_api.py
864894
test/test_bulk_download_request.py
895+
test/test_bulk_failure_reason.py
896+
test/test_bulk_grant_item.py
897+
test/test_bulk_grant_item_failure.py
898+
test/test_bulk_grant_request.py
899+
test/test_bulk_grant_response.py
900+
test/test_bulk_grant_success.py
901+
test/test_bulk_item_failure.py
865902
test/test_bulk_model_tables_request.py
866903
test/test_bulk_model_tables_response.py
904+
test/test_bulk_move_api.py
905+
test/test_bulk_move_request.py
906+
test/test_bulk_operation_response.py
907+
test/test_bulk_revoke_request.py
867908
test/test_bulk_tag_request.py
909+
test/test_bulk_trash_request.py
868910
test/test_catalog_column_response.py
869911
test/test_catalog_table_response.py
870912
test/test_cell_change.py

‎docs/BulkDeleteApi.md‎

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# ksapi.BulkDeleteApi
2+
3+
All URIs are relative to *http://localhost:8000*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**bulk_delete**](BulkDeleteApi.md#bulk_delete) | **POST** /v1/bulk-delete | Bulk Delete Handler
8+
9+
10+
# **bulk_delete**
11+
> BulkOperationResponse bulk_delete(bulk_delete_request)
12+
13+
Bulk Delete Handler
14+
15+
Move the selected folders and documents to Trash, reporting per item.
16+
17+
Each id is soft-deleted in its own transaction: items the caller may not
18+
delete, that are approval-sealed, held by another user, contain an
19+
in-progress run, or sit inside another selected folder land in ``failed``
20+
with a reason while the rest succeed. Over the selection cap returns ``400``.
21+
22+
### Example
23+
24+
* Api Key Authentication (cookieAuth):
25+
* Bearer Authentication (bearerAuth):
26+
27+
```python
28+
import ksapi
29+
from ksapi.models.bulk_delete_request import BulkDeleteRequest
30+
from ksapi.models.bulk_operation_response import BulkOperationResponse
31+
from ksapi.rest import ApiException
32+
from pprint import pprint
33+
34+
# Defining the host is optional and defaults to http://localhost:8000
35+
# See configuration.py for a list of all supported configuration parameters.
36+
configuration = ksapi.Configuration(
37+
host = "http://localhost:8000"
38+
)
39+
40+
# The client must configure the authentication and authorization parameters
41+
# in accordance with the API server security policy.
42+
# Examples for each auth method are provided below, use the example that
43+
# satisfies your auth use case.
44+
45+
# Configure API key authorization: cookieAuth
46+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
47+
48+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
49+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
50+
51+
# Configure Bearer authorization: bearerAuth
52+
configuration = ksapi.Configuration(
53+
access_token = os.environ["BEARER_TOKEN"]
54+
)
55+
56+
# Enter a context with an instance of the API client
57+
with ksapi.ApiClient(configuration) as api_client:
58+
# Create an instance of the API class
59+
api_instance = ksapi.BulkDeleteApi(api_client)
60+
bulk_delete_request = ksapi.BulkDeleteRequest() # BulkDeleteRequest |
61+
62+
try:
63+
# Bulk Delete Handler
64+
api_response = api_instance.bulk_delete(bulk_delete_request)
65+
print("The response of BulkDeleteApi->bulk_delete:\n")
66+
pprint(api_response)
67+
except Exception as e:
68+
print("Exception when calling BulkDeleteApi->bulk_delete: %s\n" % e)
69+
```
70+
71+
72+
73+
### Parameters
74+
75+
76+
Name | Type | Description | Notes
77+
------------- | ------------- | ------------- | -------------
78+
**bulk_delete_request** | [**BulkDeleteRequest**](BulkDeleteRequest.md)| |
79+
80+
### Return type
81+
82+
[**BulkOperationResponse**](BulkOperationResponse.md)
83+
84+
### Authorization
85+
86+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
87+
88+
### HTTP request headers
89+
90+
- **Content-Type**: application/json
91+
- **Accept**: application/json
92+
93+
### HTTP response details
94+
95+
| Status code | Description | Response headers |
96+
|-------------|-------------|------------------|
97+
**200** | Successful Response | - |
98+
**422** | Validation Error | - |
99+
**0** | Error response. | - |
100+
101+
[[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)
102+

‎docs/BulkDeleteRequest.md‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# BulkDeleteRequest
2+
3+
Soft-delete the selected folders and documents to Trash.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**folder_ids** | **List[UUID]** | | [optional]
10+
**document_ids** | **List[UUID]** | | [optional]
11+
12+
## Example
13+
14+
```python
15+
from ksapi.models.bulk_delete_request import BulkDeleteRequest
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of BulkDeleteRequest from a JSON string
20+
bulk_delete_request_instance = BulkDeleteRequest.from_json(json)
21+
# print the JSON string representation of the object
22+
print(BulkDeleteRequest.to_json())
23+
24+
# convert the object into a dict
25+
bulk_delete_request_dict = bulk_delete_request_instance.to_dict()
26+
# create an instance of BulkDeleteRequest from a dict
27+
bulk_delete_request_from_dict = BulkDeleteRequest.from_dict(bulk_delete_request_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

‎docs/BulkFailureReason.md‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# BulkFailureReason
2+
3+
Why a single item in a bulk operation was not applied. Every value is produced by a specific, pre-checked gate — an *unexpected* per-item error is deliberately not caught (it surfaces as a 500) rather than hidden behind a vague catch-all.
4+
5+
## Enum
6+
7+
* `NOT_FOUND` (value: `'not_found'`)
8+
9+
* `FORBIDDEN` (value: `'forbidden'`)
10+
11+
* `SYSTEM_MANAGED` (value: `'system_managed'`)
12+
13+
* `SUBSUMED` (value: `'subsumed'`)
14+
15+
* `CYCLE` (value: `'cycle'`)
16+
17+
* `SEALED` (value: `'sealed'`)
18+
19+
* `CHECKED_OUT` (value: `'checked_out'`)
20+
21+
* `NAME_CONFLICT` (value: `'name_conflict'`)
22+
23+
* `IN_PROGRESS_WORKFLOW` (value: `'in_progress_workflow'`)
24+
25+
* `PERMISSION_LIMIT` (value: `'permission_limit'`)
26+
27+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28+
29+

‎docs/BulkGrantItem.md‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# BulkGrantItem
2+
3+
One requested grant: a capability on an object (PDO id) for a user.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**user_id** | **UUID** | |
10+
**object_id** | **UUID** | |
11+
**capability** | [**PermissionCapability**](PermissionCapability.md) | |
12+
**can_approve** | **bool** | | [optional] [default to False]
13+
14+
## Example
15+
16+
```python
17+
from ksapi.models.bulk_grant_item import BulkGrantItem
18+
19+
# TODO update the JSON string below
20+
json = "{}"
21+
# create an instance of BulkGrantItem from a JSON string
22+
bulk_grant_item_instance = BulkGrantItem.from_json(json)
23+
# print the JSON string representation of the object
24+
print(BulkGrantItem.to_json())
25+
26+
# convert the object into a dict
27+
bulk_grant_item_dict = bulk_grant_item_instance.to_dict()
28+
# create an instance of BulkGrantItem from a dict
29+
bulk_grant_item_from_dict = BulkGrantItem.from_dict(bulk_grant_item_dict)
30+
```
31+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
32+
33+

‎docs/BulkGrantItemFailure.md‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# BulkGrantItemFailure
2+
3+
A grant that could not be created, keyed on its (user, object) pair.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**user_id** | **UUID** | |
10+
**object_id** | **UUID** | |
11+
**reason** | [**BulkFailureReason**](BulkFailureReason.md) | |
12+
13+
## Example
14+
15+
```python
16+
from ksapi.models.bulk_grant_item_failure import BulkGrantItemFailure
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of BulkGrantItemFailure from a JSON string
21+
bulk_grant_item_failure_instance = BulkGrantItemFailure.from_json(json)
22+
# print the JSON string representation of the object
23+
print(BulkGrantItemFailure.to_json())
24+
25+
# convert the object into a dict
26+
bulk_grant_item_failure_dict = bulk_grant_item_failure_instance.to_dict()
27+
# create an instance of BulkGrantItemFailure from a dict
28+
bulk_grant_item_failure_from_dict = BulkGrantItemFailure.from_dict(bulk_grant_item_failure_dict)
29+
```
30+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
31+
32+

‎docs/BulkGrantRequest.md‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# BulkGrantRequest
2+
3+
Grant many (user, object, capability) permissions in one request.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**tenant_id** | **UUID** | |
10+
**grants** | [**List[BulkGrantItem]**](BulkGrantItem.md) | | [optional]
11+
12+
## Example
13+
14+
```python
15+
from ksapi.models.bulk_grant_request import BulkGrantRequest
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of BulkGrantRequest from a JSON string
20+
bulk_grant_request_instance = BulkGrantRequest.from_json(json)
21+
# print the JSON string representation of the object
22+
print(BulkGrantRequest.to_json())
23+
24+
# convert the object into a dict
25+
bulk_grant_request_dict = bulk_grant_request_instance.to_dict()
26+
# create an instance of BulkGrantRequest from a dict
27+
bulk_grant_request_from_dict = BulkGrantRequest.from_dict(bulk_grant_request_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

‎docs/BulkGrantResponse.md‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# BulkGrantResponse
2+
3+
Per-item outcome of a bulk grant (composite-keyed, unlike other bulks).
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**succeeded** | [**List[BulkGrantSuccess]**](BulkGrantSuccess.md) | | [optional]
10+
**failed** | [**List[BulkGrantItemFailure]**](BulkGrantItemFailure.md) | | [optional]
11+
12+
## Example
13+
14+
```python
15+
from ksapi.models.bulk_grant_response import BulkGrantResponse
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of BulkGrantResponse from a JSON string
20+
bulk_grant_response_instance = BulkGrantResponse.from_json(json)
21+
# print the JSON string representation of the object
22+
print(BulkGrantResponse.to_json())
23+
24+
# convert the object into a dict
25+
bulk_grant_response_dict = bulk_grant_response_instance.to_dict()
26+
# create an instance of BulkGrantResponse from a dict
27+
bulk_grant_response_from_dict = BulkGrantResponse.from_dict(bulk_grant_response_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

0 commit comments

Comments
 (0)