Skip to content

Commit b49071a

Browse files
author
ks-release-bot
committed
chore(release): regenerate ksapi v1.118.0 from ks-backend
1 parent 74aad4f commit b49071a

22 files changed

Lines changed: 623 additions & 18 deletions

‎.openapi-generator/FILES‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ docs/TrashItemResponse.md
287287
docs/UpdateApiConnectionRequest.md
288288
docs/UpdateChunkContentRequest.md
289289
docs/UpdateChunkMetadataRequest.md
290+
docs/UpdateDataSourceRequest.md
290291
docs/UpdateDocumentRequest.md
291292
docs/UpdateFolderRequest.md
292293
docs/UpdateGroupPermissionRequest.md
@@ -632,6 +633,7 @@ ksapi/models/trash_item_response.py
632633
ksapi/models/update_api_connection_request.py
633634
ksapi/models/update_chunk_content_request.py
634635
ksapi/models/update_chunk_metadata_request.py
636+
ksapi/models/update_data_source_request.py
635637
ksapi/models/update_document_request.py
636638
ksapi/models/update_folder_request.py
637639
ksapi/models/update_group_permission_request.py
@@ -965,6 +967,7 @@ test/test_trash_item_response.py
965967
test/test_update_api_connection_request.py
966968
test/test_update_chunk_content_request.py
967969
test/test_update_chunk_metadata_request.py
970+
test/test_update_data_source_request.py
968971
test/test_update_document_request.py
969972
test/test_update_folder_request.py
970973
test/test_update_group_permission_request.py

‎docs/CloneWorkflowRunRequest.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ POST body for ``/v1/workflow-runs/{id}/clone``. Creates a new NOT_STARTED run u
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9-
**include_inputs** | **bool** | When True, the new run's input_path_part_ids are pinned from the source run's snapshotted inputs (DOCUMENT_VERSION + FOLDER path_parts). When False, the new run is created with an empty input scope. |
9+
**include_inputs** | **bool** | When True, the new run's input_path_part_ids are pinned from the source run's snapshotted inputs (DOCUMENT_VERSION, FOLDER, DATA_SOURCE, API_CONNECTION path_parts). When False, the new run is created with an empty input scope. |
1010

1111
## Example
1212

‎docs/DataSourcesApi.md‎

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Method | HTTP request | Description
1212
[**model_data_source_table**](DataSourcesApi.md#model_data_source_table) | **POST** /v1/data-sources/{data_source_id}/tables | Model Data Source Table Handler
1313
[**query_data_source**](DataSourcesApi.md#query_data_source) | **POST** /v1/data-sources/{data_source_id}/query | Query Data Source Handler
1414
[**test_data_source_connection**](DataSourcesApi.md#test_data_source_connection) | **POST** /v1/data-sources/{data_source_id}/test | Test Data Source Connection Handler
15+
[**update_data_source**](DataSourcesApi.md#update_data_source) | **PATCH** /v1/data-sources/{data_source_id} | Update Data Source Handler
1516
[**update_data_source_table**](DataSourcesApi.md#update_data_source_table) | **PATCH** /v1/data-sources/{data_source_id}/tables/{table_id} | Update Data Source Table Handler
1617

1718

@@ -718,6 +719,99 @@ void (empty response body)
718719

719720
[[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)
720721

722+
# **update_data_source**
723+
> DataSourceResponse update_data_source(data_source_id, update_data_source_request)
724+
725+
Update Data Source Handler
726+
727+
Rename and/or move a connector.
728+
729+
Requires ``can_write`` on the connector (and on the destination folder
730+
for a move).
731+
732+
### Example
733+
734+
* Api Key Authentication (cookieAuth):
735+
* Bearer Authentication (bearerAuth):
736+
737+
```python
738+
import ksapi
739+
from ksapi.models.data_source_response import DataSourceResponse
740+
from ksapi.models.update_data_source_request import UpdateDataSourceRequest
741+
from ksapi.rest import ApiException
742+
from pprint import pprint
743+
744+
# Defining the host is optional and defaults to http://localhost:8000
745+
# See configuration.py for a list of all supported configuration parameters.
746+
configuration = ksapi.Configuration(
747+
host = "http://localhost:8000"
748+
)
749+
750+
# The client must configure the authentication and authorization parameters
751+
# in accordance with the API server security policy.
752+
# Examples for each auth method are provided below, use the example that
753+
# satisfies your auth use case.
754+
755+
# Configure API key authorization: cookieAuth
756+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
757+
758+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
759+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
760+
761+
# Configure Bearer authorization: bearerAuth
762+
configuration = ksapi.Configuration(
763+
access_token = os.environ["BEARER_TOKEN"]
764+
)
765+
766+
# Enter a context with an instance of the API client
767+
with ksapi.ApiClient(configuration) as api_client:
768+
# Create an instance of the API class
769+
api_instance = ksapi.DataSourcesApi(api_client)
770+
data_source_id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID |
771+
update_data_source_request = ksapi.UpdateDataSourceRequest() # UpdateDataSourceRequest |
772+
773+
try:
774+
# Update Data Source Handler
775+
api_response = api_instance.update_data_source(data_source_id, update_data_source_request)
776+
print("The response of DataSourcesApi->update_data_source:\n")
777+
pprint(api_response)
778+
except Exception as e:
779+
print("Exception when calling DataSourcesApi->update_data_source: %s\n" % e)
780+
```
781+
782+
783+
784+
### Parameters
785+
786+
787+
Name | Type | Description | Notes
788+
------------- | ------------- | ------------- | -------------
789+
**data_source_id** | **UUID**| |
790+
**update_data_source_request** | [**UpdateDataSourceRequest**](UpdateDataSourceRequest.md)| |
791+
792+
### Return type
793+
794+
[**DataSourceResponse**](DataSourceResponse.md)
795+
796+
### Authorization
797+
798+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
799+
800+
### HTTP request headers
801+
802+
- **Content-Type**: application/json
803+
- **Accept**: application/json
804+
805+
### HTTP response details
806+
807+
| Status code | Description | Response headers |
808+
|-------------|-------------|------------------|
809+
**200** | Successful Response | - |
810+
**422** | Validation Error | - |
811+
**0** | Error response. | - |
812+
813+
[[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)
814+
721815
# **update_data_source_table**
722816
> DataSourceTableResponse update_data_source_table(data_source_id, table_id, update_table_request)
723817

‎docs/InputSnapshot.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# InputSnapshot
22

3-
One entry of a run's input scope, self-describing its pin semantics. ``part_type`` is the kind discriminator: * ``DOCUMENT_VERSION`` — a pinned document version. The DOCUMENT in the request scope was resolved to its active version at trigger time; ``path_part_id`` is that DOCUMENT_VERSION path_part and the entry does not float. * ``FOLDER`` — a live folder reference. ``path_part_id`` is the FOLDER path_part itself; its contents are NOT captured here and are enumerated live by the runner (see ``materialized_path`` for subtree scoping). The underlying PDO id (DocumentVersion or Folder) is resolved live at run time from ``path_part.metadata_obj_id``, not stored here.
3+
One entry of a run's input scope, self-describing its pin semantics. ``part_type`` is the kind discriminator: * ``DOCUMENT_VERSION`` — a pinned document version. The DOCUMENT in the request scope was resolved to its active version at trigger time; ``path_part_id`` is that DOCUMENT_VERSION path_part and the entry does not float. * ``FOLDER`` — a live folder reference. ``path_part_id`` is the FOLDER path_part itself; its contents are NOT captured here and are enumerated live by the runner (see ``materialized_path`` for subtree scoping). * ``DATA_SOURCE`` / ``API_CONNECTION`` — a live connector reference (DB / API). ``path_part_id`` is the connector path_part itself; the runner queries it live via its connector tools, nothing is captured here. The underlying PDO id (DocumentVersion / Folder / connector) is resolved live at run time from ``path_part.metadata_obj_id``, not stored here.
44

55
## Properties
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9-
**path_part_id** | **UUID** | DOCUMENT_VERSION path_part of the pinned input version, or the FOLDER path_part of a live folder reference — see ``part_type``. |
9+
**path_part_id** | **UUID** | DOCUMENT_VERSION path_part of the pinned input version, or the path_part of a live FOLDER / DATA_SOURCE / API_CONNECTION reference — see ``part_type``. |
1010
**materialized_path** | **str** | |
1111
**part_type** | **str** | |
1212

‎docs/UpdateApiConnectionRequest.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# UpdateApiConnectionRequest
22

3-
Partial update (PATCH). A risk-increasing change re-arms the disclaimer.
3+
Partial update (PATCH). A risk-increasing change re-arms the disclaimer. ``name`` renames the connection and ``parent_path_part_id`` moves it under a new FOLDER; neither is a risk-increasing change, so a rename/move alone leaves the disclaimer intact.
44

55
## Properties
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9+
**name** | **str** | | [optional]
10+
**parent_path_part_id** | **UUID** | New parent FOLDER path_part to move the connection under. | [optional]
911
**base_url** | **str** | | [optional]
1012
**network_class** | [**NetworkClass**](NetworkClass.md) | | [optional]
1113
**verify_tls** | **bool** | | [optional]

‎docs/UpdateDataSourceRequest.md‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# UpdateDataSourceRequest
2+
3+
Rename and/or move a connector (PATCH). Both fields optional. A body with both ``None`` is rejected as a no-op 400. ``name`` renames the connector path_part; ``parent_path_part_id`` moves it under a new FOLDER (the move cascades ``materialized_path`` to the modeled-table children). Connection credentials and engine are not editable here.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**name** | **str** | | [optional]
10+
**parent_path_part_id** | **UUID** | New parent FOLDER path_part to move the connector under. | [optional]
11+
12+
## Example
13+
14+
```python
15+
from ksapi.models.update_data_source_request import UpdateDataSourceRequest
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of UpdateDataSourceRequest from a JSON string
20+
update_data_source_request_instance = UpdateDataSourceRequest.from_json(json)
21+
# print the JSON string representation of the object
22+
print(UpdateDataSourceRequest.to_json())
23+
24+
# convert the object into a dict
25+
update_data_source_request_dict = update_data_source_request_instance.to_dict()
26+
# create an instance of UpdateDataSourceRequest from a dict
27+
update_data_source_request_from_dict = UpdateDataSourceRequest.from_dict(update_data_source_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/UpdateWorkflowRunRequest.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PATCH body for ``/v1/workflow-runs/{id}`` — NOT_STARTED runs only. Both field
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9-
**input_scope** | **List[UUID]** | New KB-reference scope (DOCUMENT + FOLDER pp_ids). Replaces the row's ``input_path_part_ids`` wholesale. Uploaded files live in ``inputs/`` and are walked at Start; they are not part of this list. | [optional]
9+
**input_scope** | **List[UUID]** | New KB-reference scope (DOCUMENT + FOLDER + DATA_SOURCE + API_CONNECTION pp_ids). Replaces the row's ``input_path_part_ids`` wholesale. Uploaded files live in ``inputs/`` and are walked at Start; they are not part of this list. | [optional]
1010
**name** | **str** | New display name for the run (mirrors path_part.name). | [optional]
1111
**auto_start** | **bool** | Arm (or disarm) auto-start on a draft run. When set true, the run dispatches itself once its ``inputs/`` uploads finish ingesting (see ``CreateWorkflowRunRequest.auto_start``). Arm a PENDING run after queuing all uploads to avoid a partial-input start. ``null`` leaves the current setting unchanged. | [optional]
1212
**user_message** | **str** | Set the note applied when this run auto-starts (see ``CreateWorkflowRunRequest.user_message``). ``null`` leaves the stored message unchanged; send an empty string to clear it. | [optional]

‎ksapi/__init__.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "1.117.0"
17+
__version__ = "1.118.0"
1818

1919
# Define package exports
2020
__all__ = [
@@ -316,6 +316,7 @@
316316
"UpdateApiConnectionRequest",
317317
"UpdateChunkContentRequest",
318318
"UpdateChunkMetadataRequest",
319+
"UpdateDataSourceRequest",
319320
"UpdateDocumentRequest",
320321
"UpdateFolderRequest",
321322
"UpdateGroupPermissionRequest",
@@ -663,6 +664,7 @@
663664
from ksapi.models.update_api_connection_request import UpdateApiConnectionRequest as UpdateApiConnectionRequest
664665
from ksapi.models.update_chunk_content_request import UpdateChunkContentRequest as UpdateChunkContentRequest
665666
from ksapi.models.update_chunk_metadata_request import UpdateChunkMetadataRequest as UpdateChunkMetadataRequest
667+
from ksapi.models.update_data_source_request import UpdateDataSourceRequest as UpdateDataSourceRequest
666668
from ksapi.models.update_document_request import UpdateDocumentRequest as UpdateDocumentRequest
667669
from ksapi.models.update_folder_request import UpdateFolderRequest as UpdateFolderRequest
668670
from ksapi.models.update_group_permission_request import UpdateGroupPermissionRequest as UpdateGroupPermissionRequest

0 commit comments

Comments
 (0)