Skip to content

Commit cad01d4

Browse files
author
ks-release-bot
committed
chore(release): regenerate ksapi v1.100.1 from ks-backend
1 parent 5f5a11d commit cad01d4

10 files changed

Lines changed: 24 additions & 6 deletions

‎docs/UpdateWorkflowDefinitionRequest.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**description** | **str** | | [optional]
1111
**max_run_duration_seconds** | **int** | | [optional] [default to 1800]
1212
**instruction_path_part_id** | **UUID** | DOCUMENT path_part of the instruction document. Pass null (or omit) to retain the existing pinned instruction; pass a UUID to replace it. Never nulled out — the column is NOT NULL. | [optional]
13+
**parent_path_part_id** | **UUID** | FOLDER path_part to move the definition under. Pass null (or omit) to leave it where it is. The move is rejected with 409 while any run of this definition is IN_PROGRESS. | [optional]
1314
**is_active** | **bool** | |
1415
**approval_required** | **bool** | |
1516

‎docs/WorkflowDefinitionsApi.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,12 @@ Name | Type | Description | Notes
546546
547547
Update Workflow Definition Handler
548548

549+
Update a workflow definition (PUT semantics).
550+
551+
To move: provide ``parent_path_part_id``. Rejected with 409 while a
552+
run is IN_PROGRESS. The FOR UPDATE load serializes the move against
553+
run start, which takes the same definition-row lock.
554+
549555
### Example
550556

551557
* Api Key Authentication (cookieAuth):

‎ksapi/__init__.py‎

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

1616

17-
__version__ = "1.100.0"
17+
__version__ = "1.100.1"
1818

1919
# Define package exports
2020
__all__ = [

‎ksapi/api/workflow_definitions_api.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,6 +1764,7 @@ def update_workflow_definition(
17641764
) -> WorkflowDefinitionResponse:
17651765
"""Update Workflow Definition Handler
17661766
1767+
Update a workflow definition (PUT semantics). To move: provide ``parent_path_part_id``. Rejected with 409 while a run is IN_PROGRESS. The FOR UPDATE load serializes the move against run start, which takes the same definition-row lock.
17671768
17681769
:param definition_id: (required)
17691770
:type definition_id: UUID
@@ -1835,6 +1836,7 @@ def update_workflow_definition_with_http_info(
18351836
) -> ApiResponse[WorkflowDefinitionResponse]:
18361837
"""Update Workflow Definition Handler
18371838
1839+
Update a workflow definition (PUT semantics). To move: provide ``parent_path_part_id``. Rejected with 409 while a run is IN_PROGRESS. The FOR UPDATE load serializes the move against run start, which takes the same definition-row lock.
18381840
18391841
:param definition_id: (required)
18401842
:type definition_id: UUID
@@ -1906,6 +1908,7 @@ def update_workflow_definition_without_preload_content(
19061908
) -> RESTResponseType:
19071909
"""Update Workflow Definition Handler
19081910
1911+
Update a workflow definition (PUT semantics). To move: provide ``parent_path_part_id``. Rejected with 409 while a run is IN_PROGRESS. The FOR UPDATE load serializes the move against run start, which takes the same definition-row lock.
19091912
19101913
:param definition_id: (required)
19111914
:type definition_id: UUID

‎ksapi/api_client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(
9191
self.default_headers[header_name] = header_value
9292
self.cookie = cookie
9393
# Set default User-Agent.
94-
self.user_agent = 'OpenAPI-Generator/1.100.0/python'
94+
self.user_agent = 'OpenAPI-Generator/1.100.1/python'
9595
self.client_side_validation = configuration.client_side_validation
9696

9797
def __enter__(self):

‎ksapi/configuration.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ def to_debug_report(self) -> str:
562562
"OS: {env}\n"\
563563
"Python Version: {pyversion}\n"\
564564
"Version of the API: 0.1.0\n"\
565-
"SDK Package Version: 1.100.0".\
565+
"SDK Package Version: 1.100.1".\
566566
format(env=sys.platform, pyversion=sys.version)
567567

568568
def get_host_settings(self) -> List[HostSetting]:

‎ksapi/models/update_workflow_definition_request.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ class UpdateWorkflowDefinitionRequest(BaseModel):
3333
description: Optional[StrictStr] = None
3434
max_run_duration_seconds: Optional[Annotated[int, Field(le=7200, strict=True, ge=60)]] = 1800
3535
instruction_path_part_id: Optional[UUID] = Field(default=None, description="DOCUMENT path_part of the instruction document. Pass null (or omit) to retain the existing pinned instruction; pass a UUID to replace it. Never nulled out — the column is NOT NULL.")
36+
parent_path_part_id: Optional[UUID] = Field(default=None, description="FOLDER path_part to move the definition under. Pass null (or omit) to leave it where it is. The move is rejected with 409 while any run of this definition is IN_PROGRESS.")
3637
is_active: StrictBool
3738
approval_required: StrictBool
38-
__properties: ClassVar[List[str]] = ["name", "description", "max_run_duration_seconds", "instruction_path_part_id", "is_active", "approval_required"]
39+
__properties: ClassVar[List[str]] = ["name", "description", "max_run_duration_seconds", "instruction_path_part_id", "parent_path_part_id", "is_active", "approval_required"]
3940

4041
model_config = ConfigDict(
4142
validate_by_name=True,
@@ -86,6 +87,11 @@ def to_dict(self) -> Dict[str, Any]:
8687
if self.instruction_path_part_id is None and "instruction_path_part_id" in self.model_fields_set:
8788
_dict['instruction_path_part_id'] = None
8889

90+
# set to None if parent_path_part_id (nullable) is None
91+
# and model_fields_set contains the field
92+
if self.parent_path_part_id is None and "parent_path_part_id" in self.model_fields_set:
93+
_dict['parent_path_part_id'] = None
94+
8995
return _dict
9096

9197
@classmethod
@@ -102,6 +108,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
102108
"description": obj.get("description"),
103109
"max_run_duration_seconds": obj.get("max_run_duration_seconds") if obj.get("max_run_duration_seconds") is not None else 1800,
104110
"instruction_path_part_id": obj.get("instruction_path_part_id"),
111+
"parent_path_part_id": obj.get("parent_path_part_id"),
105112
"is_active": obj.get("is_active"),
106113
"approval_required": obj.get("approval_required")
107114
})

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ksapi"
3-
version = "1.100.0"
3+
version = "1.100.1"
44
description = "Knowledge Stack API"
55
authors = [
66
{name = "OpenAPI Generator Community",email = "team@openapitools.org"},

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# prerequisite: setuptools
2020
# http://pypi.python.org/pypi/setuptools
2121
NAME = "ksapi"
22-
VERSION = "1.100.0"
22+
VERSION = "1.100.1"
2323
PYTHON_REQUIRES = ">= 3.9"
2424
REQUIRES = [
2525
"urllib3 >= 2.1.0, < 3.0.0",

‎test/test_update_workflow_definition_request.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> UpdateWorkflowDefinitionRequest:
3939
description = '',
4040
max_run_duration_seconds = 60.0,
4141
instruction_path_part_id = '',
42+
parent_path_part_id = '',
4243
is_active = True,
4344
approval_required = True
4445
)

0 commit comments

Comments
 (0)