neops_workflow_engine_client 0.26.0__tar.gz → 0.28.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. {neops_workflow_engine_client-0.26.0 → neops_workflow_engine_client-0.28.0}/PKG-INFO +4 -2
  2. {neops_workflow_engine_client-0.26.0 → neops_workflow_engine_client-0.28.0}/README.md +3 -1
  3. {neops_workflow_engine_client-0.26.0 → neops_workflow_engine_client-0.28.0}/neops_workflow_engine_client/__init__.py +3 -1
  4. {neops_workflow_engine_client-0.26.0 → neops_workflow_engine_client-0.28.0}/neops_workflow_engine_client/api/function_block_api.py +16 -16
  5. {neops_workflow_engine_client-0.26.0 → neops_workflow_engine_client-0.28.0}/neops_workflow_engine_client/api/health_api.py +13 -5
  6. {neops_workflow_engine_client-0.26.0 → neops_workflow_engine_client-0.28.0}/neops_workflow_engine_client/api_client.py +1 -1
  7. {neops_workflow_engine_client-0.26.0 → neops_workflow_engine_client-0.28.0}/neops_workflow_engine_client/configuration.py +1 -1
  8. {neops_workflow_engine_client-0.26.0 → neops_workflow_engine_client-0.28.0}/neops_workflow_engine_client/models/__init__.py +2 -0
  9. neops_workflow_engine_client-0.28.0/neops_workflow_engine_client/models/health_response.py +87 -0
  10. neops_workflow_engine_client-0.28.0/neops_workflow_engine_client/models/register_function_block_dto.py +105 -0
  11. {neops_workflow_engine_client-0.26.0 → neops_workflow_engine_client-0.28.0}/pyproject.toml +1 -1
  12. {neops_workflow_engine_client-0.26.0 → neops_workflow_engine_client-0.28.0}/neops_workflow_engine_client/api/__init__.py +0 -0
  13. {neops_workflow_engine_client-0.26.0 → neops_workflow_engine_client-0.28.0}/neops_workflow_engine_client/api/default_api.py +0 -0
  14. {neops_workflow_engine_client-0.26.0 → neops_workflow_engine_client-0.28.0}/neops_workflow_engine_client/api_response.py +0 -0
  15. {neops_workflow_engine_client-0.26.0 → neops_workflow_engine_client-0.28.0}/neops_workflow_engine_client/exceptions.py +0 -0
  16. {neops_workflow_engine_client-0.26.0 → neops_workflow_engine_client-0.28.0}/neops_workflow_engine_client/py.typed +0 -0
  17. {neops_workflow_engine_client-0.26.0 → neops_workflow_engine_client-0.28.0}/neops_workflow_engine_client/rest.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neops_workflow_engine_client
3
- Version: 0.26.0
3
+ Version: 0.28.0
4
4
  Summary: Neops Workflow Engine
5
5
  Home-page: https://github.com/GIT_USER_ID/GIT_REPO_ID
6
6
  License: NoLicense
@@ -29,7 +29,7 @@ Neops workflow engine API documentation
29
29
  This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
30
30
 
31
31
  - API version: 1.0
32
- - Package version: 0.26.0
32
+ - Package version: 0.28.0
33
33
  - Generator version: 7.9.0
34
34
  - Build package: org.openapitools.codegen.languages.PythonClientCodegen
35
35
 
@@ -116,6 +116,8 @@ Class | Method | HTTP request | Description
116
116
 
117
117
  ## Documentation For Models
118
118
 
119
+ - [HealthResponse](docs/HealthResponse.md)
120
+ - [RegisterFunctionBlockDto](docs/RegisterFunctionBlockDto.md)
119
121
 
120
122
 
121
123
  <a id="documentation-for-authorization"></a>
@@ -4,7 +4,7 @@ Neops workflow engine API documentation
4
4
  This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
5
5
 
6
6
  - API version: 1.0
7
- - Package version: 0.26.0
7
+ - Package version: 0.28.0
8
8
  - Generator version: 7.9.0
9
9
  - Build package: org.openapitools.codegen.languages.PythonClientCodegen
10
10
 
@@ -91,6 +91,8 @@ Class | Method | HTTP request | Description
91
91
 
92
92
  ## Documentation For Models
93
93
 
94
+ - [HealthResponse](docs/HealthResponse.md)
95
+ - [RegisterFunctionBlockDto](docs/RegisterFunctionBlockDto.md)
94
96
 
95
97
 
96
98
  <a id="documentation-for-authorization"></a>
@@ -14,7 +14,7 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "0.26.0"
17
+ __version__ = "0.28.0"
18
18
 
19
19
  # import apis into sdk package
20
20
  from neops_workflow_engine_client.api.default_api import DefaultApi
@@ -33,3 +33,5 @@ from neops_workflow_engine_client.exceptions import ApiAttributeError
33
33
  from neops_workflow_engine_client.exceptions import ApiException
34
34
 
35
35
  # import models into sdk package
36
+ from neops_workflow_engine_client.models.health_response import HealthResponse
37
+ from neops_workflow_engine_client.models.register_function_block_dto import RegisterFunctionBlockDto
@@ -17,7 +17,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
19
  from pydantic import StrictStr
20
- from typing import Any, Dict
20
+ from neops_workflow_engine_client.models.register_function_block_dto import RegisterFunctionBlockDto
21
21
 
22
22
  from neops_workflow_engine_client.api_client import ApiClient, RequestSerialized
23
23
  from neops_workflow_engine_client.api_response import ApiResponse
@@ -525,7 +525,7 @@ class FunctionBlockApi:
525
525
  @validate_call
526
526
  def function_blocks_controller_register(
527
527
  self,
528
- body: Dict[str, Any],
528
+ register_function_block_dto: RegisterFunctionBlockDto,
529
529
  _request_timeout: Union[
530
530
  None,
531
531
  Annotated[StrictFloat, Field(gt=0)],
@@ -542,8 +542,8 @@ class FunctionBlockApi:
542
542
  """function_blocks_controller_register
543
543
 
544
544
 
545
- :param body: (required)
546
- :type body: object
545
+ :param register_function_block_dto: (required)
546
+ :type register_function_block_dto: RegisterFunctionBlockDto
547
547
  :param _request_timeout: timeout setting for this request. If one
548
548
  number provided, it will be total request
549
549
  timeout. It can also be a pair (tuple) of
@@ -567,7 +567,7 @@ class FunctionBlockApi:
567
567
  """ # noqa: E501
568
568
 
569
569
  _param = self._function_blocks_controller_register_serialize(
570
- body=body,
570
+ register_function_block_dto=register_function_block_dto,
571
571
  _request_auth=_request_auth,
572
572
  _content_type=_content_type,
573
573
  _headers=_headers,
@@ -591,7 +591,7 @@ class FunctionBlockApi:
591
591
  @validate_call
592
592
  def function_blocks_controller_register_with_http_info(
593
593
  self,
594
- body: Dict[str, Any],
594
+ register_function_block_dto: RegisterFunctionBlockDto,
595
595
  _request_timeout: Union[
596
596
  None,
597
597
  Annotated[StrictFloat, Field(gt=0)],
@@ -608,8 +608,8 @@ class FunctionBlockApi:
608
608
  """function_blocks_controller_register
609
609
 
610
610
 
611
- :param body: (required)
612
- :type body: object
611
+ :param register_function_block_dto: (required)
612
+ :type register_function_block_dto: RegisterFunctionBlockDto
613
613
  :param _request_timeout: timeout setting for this request. If one
614
614
  number provided, it will be total request
615
615
  timeout. It can also be a pair (tuple) of
@@ -633,7 +633,7 @@ class FunctionBlockApi:
633
633
  """ # noqa: E501
634
634
 
635
635
  _param = self._function_blocks_controller_register_serialize(
636
- body=body,
636
+ register_function_block_dto=register_function_block_dto,
637
637
  _request_auth=_request_auth,
638
638
  _content_type=_content_type,
639
639
  _headers=_headers,
@@ -657,7 +657,7 @@ class FunctionBlockApi:
657
657
  @validate_call
658
658
  def function_blocks_controller_register_without_preload_content(
659
659
  self,
660
- body: Dict[str, Any],
660
+ register_function_block_dto: RegisterFunctionBlockDto,
661
661
  _request_timeout: Union[
662
662
  None,
663
663
  Annotated[StrictFloat, Field(gt=0)],
@@ -674,8 +674,8 @@ class FunctionBlockApi:
674
674
  """function_blocks_controller_register
675
675
 
676
676
 
677
- :param body: (required)
678
- :type body: object
677
+ :param register_function_block_dto: (required)
678
+ :type register_function_block_dto: RegisterFunctionBlockDto
679
679
  :param _request_timeout: timeout setting for this request. If one
680
680
  number provided, it will be total request
681
681
  timeout. It can also be a pair (tuple) of
@@ -699,7 +699,7 @@ class FunctionBlockApi:
699
699
  """ # noqa: E501
700
700
 
701
701
  _param = self._function_blocks_controller_register_serialize(
702
- body=body,
702
+ register_function_block_dto=register_function_block_dto,
703
703
  _request_auth=_request_auth,
704
704
  _content_type=_content_type,
705
705
  _headers=_headers,
@@ -718,7 +718,7 @@ class FunctionBlockApi:
718
718
 
719
719
  def _function_blocks_controller_register_serialize(
720
720
  self,
721
- body,
721
+ register_function_block_dto,
722
722
  _request_auth,
723
723
  _content_type,
724
724
  _headers,
@@ -744,8 +744,8 @@ class FunctionBlockApi:
744
744
  # process the header parameters
745
745
  # process the form parameters
746
746
  # process the body parameter
747
- if body is not None:
748
- _body_params = body
747
+ if register_function_block_dto is not None:
748
+ _body_params = register_function_block_dto
749
749
 
750
750
 
751
751
 
@@ -16,6 +16,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
+ from neops_workflow_engine_client.models.health_response import HealthResponse
19
20
 
20
21
  from neops_workflow_engine_client.api_client import ApiClient, RequestSerialized
21
22
  from neops_workflow_engine_client.api_response import ApiResponse
@@ -50,7 +51,7 @@ class HealthApi:
50
51
  _content_type: Optional[StrictStr] = None,
51
52
  _headers: Optional[Dict[StrictStr, Any]] = None,
52
53
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
53
- ) -> None:
54
+ ) -> HealthResponse:
54
55
  """health_controller_healthy
55
56
 
56
57
 
@@ -84,7 +85,7 @@ class HealthApi:
84
85
  )
85
86
 
86
87
  _response_types_map: Dict[str, Optional[str]] = {
87
- '200': None,
88
+ '200': "HealthResponse",
88
89
  }
89
90
  response_data = self.api_client.call_api(
90
91
  *_param,
@@ -112,7 +113,7 @@ class HealthApi:
112
113
  _content_type: Optional[StrictStr] = None,
113
114
  _headers: Optional[Dict[StrictStr, Any]] = None,
114
115
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
115
- ) -> ApiResponse[None]:
116
+ ) -> ApiResponse[HealthResponse]:
116
117
  """health_controller_healthy
117
118
 
118
119
 
@@ -146,7 +147,7 @@ class HealthApi:
146
147
  )
147
148
 
148
149
  _response_types_map: Dict[str, Optional[str]] = {
149
- '200': None,
150
+ '200': "HealthResponse",
150
151
  }
151
152
  response_data = self.api_client.call_api(
152
153
  *_param,
@@ -208,7 +209,7 @@ class HealthApi:
208
209
  )
209
210
 
210
211
  _response_types_map: Dict[str, Optional[str]] = {
211
- '200': None,
212
+ '200': "HealthResponse",
212
213
  }
213
214
  response_data = self.api_client.call_api(
214
215
  *_param,
@@ -246,6 +247,13 @@ class HealthApi:
246
247
  # process the body parameter
247
248
 
248
249
 
250
+ # set the HTTP header `Accept`
251
+ if 'Accept' not in _header_params:
252
+ _header_params['Accept'] = self.api_client.select_header_accept(
253
+ [
254
+ 'application/json'
255
+ ]
256
+ )
249
257
 
250
258
 
251
259
  # authentication setting
@@ -90,7 +90,7 @@ class ApiClient:
90
90
  self.default_headers[header_name] = header_value
91
91
  self.cookie = cookie
92
92
  # Set default User-Agent.
93
- self.user_agent = 'OpenAPI-Generator/0.26.0/python'
93
+ self.user_agent = 'OpenAPI-Generator/0.28.0/python'
94
94
  self.client_side_validation = configuration.client_side_validation
95
95
 
96
96
  def __enter__(self):
@@ -384,7 +384,7 @@ class Configuration:
384
384
  "OS: {env}\n"\
385
385
  "Python Version: {pyversion}\n"\
386
386
  "Version of the API: 1.0\n"\
387
- "SDK Package Version: 0.26.0".\
387
+ "SDK Package Version: 0.28.0".\
388
388
  format(env=sys.platform, pyversion=sys.version)
389
389
 
390
390
  def get_host_settings(self):
@@ -14,3 +14,5 @@
14
14
 
15
15
 
16
16
  # import models into model package
17
+ from neops_workflow_engine_client.models.health_response import HealthResponse
18
+ from neops_workflow_engine_client.models.register_function_block_dto import RegisterFunctionBlockDto
@@ -0,0 +1,87 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Neops Workflow Engine
5
+
6
+ Neops workflow engine API documentation
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, StrictBool
21
+ from typing import Any, ClassVar, Dict, List
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class HealthResponse(BaseModel):
26
+ """
27
+ HealthResponse
28
+ """ # noqa: E501
29
+ healthy: StrictBool
30
+ __properties: ClassVar[List[str]] = ["healthy"]
31
+
32
+ model_config = ConfigDict(
33
+ populate_by_name=True,
34
+ validate_assignment=True,
35
+ protected_namespaces=(),
36
+ )
37
+
38
+
39
+ def to_str(self) -> str:
40
+ """Returns the string representation of the model using alias"""
41
+ return pprint.pformat(self.model_dump(by_alias=True))
42
+
43
+ def to_json(self) -> str:
44
+ """Returns the JSON representation of the model using alias"""
45
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
46
+ return json.dumps(self.to_dict())
47
+
48
+ @classmethod
49
+ def from_json(cls, json_str: str) -> Optional[Self]:
50
+ """Create an instance of HealthResponse from a JSON string"""
51
+ return cls.from_dict(json.loads(json_str))
52
+
53
+ def to_dict(self) -> Dict[str, Any]:
54
+ """Return the dictionary representation of the model using alias.
55
+
56
+ This has the following differences from calling pydantic's
57
+ `self.model_dump(by_alias=True)`:
58
+
59
+ * `None` is only added to the output dict for nullable fields that
60
+ were set at model initialization. Other fields with value `None`
61
+ are ignored.
62
+ """
63
+ excluded_fields: Set[str] = set([
64
+ ])
65
+
66
+ _dict = self.model_dump(
67
+ by_alias=True,
68
+ exclude=excluded_fields,
69
+ exclude_none=True,
70
+ )
71
+ return _dict
72
+
73
+ @classmethod
74
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
75
+ """Create an instance of HealthResponse from a dict"""
76
+ if obj is None:
77
+ return None
78
+
79
+ if not isinstance(obj, dict):
80
+ return cls.model_validate(obj)
81
+
82
+ _obj = cls.model_validate({
83
+ "healthy": obj.get("healthy")
84
+ })
85
+ return _obj
86
+
87
+
@@ -0,0 +1,105 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Neops Workflow Engine
5
+
6
+ Neops workflow engine API documentation
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
21
+ from typing import Any, ClassVar, Dict, List
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class RegisterFunctionBlockDto(BaseModel):
26
+ """
27
+ RegisterFunctionBlockDto
28
+ """ # noqa: E501
29
+ id: StrictStr
30
+ name: StrictStr
31
+ description: StrictStr
32
+ package: StrictStr
33
+ run_on: StrictStr = Field(alias="runOn")
34
+ fb_type: StrictStr = Field(alias="fbType")
35
+ markdown_help_text: StrictStr = Field(alias="markdownHelpText")
36
+ version: StrictStr
37
+ deprecated: StrictBool
38
+ json_schema: Dict[str, Any] = Field(alias="jsonSchema")
39
+ __properties: ClassVar[List[str]] = ["id", "name", "description", "package", "runOn", "fbType", "markdownHelpText", "version", "deprecated", "jsonSchema"]
40
+
41
+ model_config = ConfigDict(
42
+ populate_by_name=True,
43
+ validate_assignment=True,
44
+ protected_namespaces=(),
45
+ )
46
+
47
+
48
+ def to_str(self) -> str:
49
+ """Returns the string representation of the model using alias"""
50
+ return pprint.pformat(self.model_dump(by_alias=True))
51
+
52
+ def to_json(self) -> str:
53
+ """Returns the JSON representation of the model using alias"""
54
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
55
+ return json.dumps(self.to_dict())
56
+
57
+ @classmethod
58
+ def from_json(cls, json_str: str) -> Optional[Self]:
59
+ """Create an instance of RegisterFunctionBlockDto from a JSON string"""
60
+ return cls.from_dict(json.loads(json_str))
61
+
62
+ def to_dict(self) -> Dict[str, Any]:
63
+ """Return the dictionary representation of the model using alias.
64
+
65
+ This has the following differences from calling pydantic's
66
+ `self.model_dump(by_alias=True)`:
67
+
68
+ * `None` is only added to the output dict for nullable fields that
69
+ were set at model initialization. Other fields with value `None`
70
+ are ignored.
71
+ """
72
+ excluded_fields: Set[str] = set([
73
+ ])
74
+
75
+ _dict = self.model_dump(
76
+ by_alias=True,
77
+ exclude=excluded_fields,
78
+ exclude_none=True,
79
+ )
80
+ return _dict
81
+
82
+ @classmethod
83
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
84
+ """Create an instance of RegisterFunctionBlockDto from a dict"""
85
+ if obj is None:
86
+ return None
87
+
88
+ if not isinstance(obj, dict):
89
+ return cls.model_validate(obj)
90
+
91
+ _obj = cls.model_validate({
92
+ "id": obj.get("id"),
93
+ "name": obj.get("name"),
94
+ "description": obj.get("description"),
95
+ "package": obj.get("package"),
96
+ "runOn": obj.get("runOn"),
97
+ "fbType": obj.get("fbType"),
98
+ "markdownHelpText": obj.get("markdownHelpText"),
99
+ "version": obj.get("version"),
100
+ "deprecated": obj.get("deprecated"),
101
+ "jsonSchema": obj.get("jsonSchema")
102
+ })
103
+ return _obj
104
+
105
+
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "neops_workflow_engine_client"
3
- version = "0.26.0"
3
+ version = "0.28.0"
4
4
  description = "Neops Workflow Engine"
5
5
  authors = ["OpenAPI Generator Community <team@openapitools.org>"]
6
6
  license = "NoLicense"