generated from finbourne/__template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow python updates for v2.1.122
Signed-off-by: Concourse <[email protected]>
- Loading branch information
Concourse
committed
Nov 28, 2024
1 parent
5b3a81a
commit 9b7e9fa
Showing
13 changed files
with
316 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# GroupReconciliation | ||
|
||
Configuration for a Worker that calls runs a Group Reconciliation in LUSID | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**type** | **str** | The type of worker | | ||
|
||
## Example | ||
|
||
```python | ||
from lusid_workflow.models.group_reconciliation import GroupReconciliation | ||
|
||
# TODO update the JSON string below | ||
json = "{}" | ||
# create an instance of GroupReconciliation from a JSON string | ||
group_reconciliation_instance = GroupReconciliation.from_json(json) | ||
# print the JSON string representation of the object | ||
print GroupReconciliation.to_json() | ||
|
||
# convert the object into a dict | ||
group_reconciliation_dict = group_reconciliation_instance.to_dict() | ||
# create an instance of GroupReconciliation from a dict | ||
group_reconciliation_form_dict = group_reconciliation.from_dict(group_reconciliation_dict) | ||
``` | ||
[Back to Model list](../README.md#documentation-for-models) • [Back to API list](../README.md#documentation-for-api-endpoints) • [Back to README](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# GroupReconciliationResponse | ||
|
||
Readonly configuration for the Group Reconciliation Worker | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**type** | **str** | The type of worker | [optional] | ||
|
||
## Example | ||
|
||
```python | ||
from lusid_workflow.models.group_reconciliation_response import GroupReconciliationResponse | ||
|
||
# TODO update the JSON string below | ||
json = "{}" | ||
# create an instance of GroupReconciliationResponse from a JSON string | ||
group_reconciliation_response_instance = GroupReconciliationResponse.from_json(json) | ||
# print the JSON string representation of the object | ||
print GroupReconciliationResponse.to_json() | ||
|
||
# convert the object into a dict | ||
group_reconciliation_response_dict = group_reconciliation_response_instance.to_dict() | ||
# create an instance of GroupReconciliationResponse from a dict | ||
group_reconciliation_response_form_dict = group_reconciliation_response.from_dict(group_reconciliation_response_dict) | ||
``` | ||
[Back to Model list](../README.md#documentation-for-models) • [Back to API list](../README.md#documentation-for-api-endpoints) • [Back to README](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
FINBOURNE Workflow API | ||
FINBOURNE Technology # noqa: E501 | ||
Contact: [email protected] | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
Do not edit the class manually. | ||
""" | ||
|
||
|
||
from __future__ import annotations | ||
import pprint | ||
import re # noqa: F401 | ||
import json | ||
|
||
|
||
from typing import Any, Dict | ||
from pydantic.v1 import BaseModel, Field, constr, validator | ||
|
||
class GroupReconciliation(BaseModel): | ||
""" | ||
Configuration for a Worker that calls runs a Group Reconciliation in LUSID # noqa: E501 | ||
""" | ||
type: constr(strict=True, min_length=1) = Field(..., description="The type of worker") | ||
__properties = ["type"] | ||
|
||
@validator('type') | ||
def type_validate_enum(cls, value): | ||
"""Validates the enum""" | ||
if value not in ('GroupReconciliation'): | ||
raise ValueError("must be one of enum values ('GroupReconciliation')") | ||
return value | ||
|
||
class Config: | ||
"""Pydantic configuration""" | ||
allow_population_by_field_name = True | ||
validate_assignment = True | ||
|
||
def to_str(self) -> str: | ||
"""Returns the string representation of the model using alias""" | ||
return pprint.pformat(self.dict(by_alias=True)) | ||
|
||
def to_json(self) -> str: | ||
"""Returns the JSON representation of the model using alias""" | ||
return json.dumps(self.to_dict()) | ||
|
||
@classmethod | ||
def from_json(cls, json_str: str) -> GroupReconciliation: | ||
"""Create an instance of GroupReconciliation from a JSON string""" | ||
return cls.from_dict(json.loads(json_str)) | ||
|
||
def to_dict(self): | ||
"""Returns the dictionary representation of the model using alias""" | ||
_dict = self.dict(by_alias=True, | ||
exclude={ | ||
}, | ||
exclude_none=True) | ||
return _dict | ||
|
||
@classmethod | ||
def from_dict(cls, obj: dict) -> GroupReconciliation: | ||
"""Create an instance of GroupReconciliation from a dict""" | ||
if obj is None: | ||
return None | ||
|
||
if not isinstance(obj, dict): | ||
return GroupReconciliation.parse_obj(obj) | ||
|
||
_obj = GroupReconciliation.parse_obj({ | ||
"type": obj.get("type") | ||
}) | ||
return _obj |
84 changes: 84 additions & 0 deletions
84
sdk/lusid_workflow/models/group_reconciliation_response.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
FINBOURNE Workflow API | ||
FINBOURNE Technology # noqa: E501 | ||
Contact: [email protected] | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
Do not edit the class manually. | ||
""" | ||
|
||
|
||
from __future__ import annotations | ||
import pprint | ||
import re # noqa: F401 | ||
import json | ||
|
||
|
||
from typing import Any, Dict, Optional | ||
from pydantic.v1 import BaseModel, Field, StrictStr, validator | ||
|
||
class GroupReconciliationResponse(BaseModel): | ||
""" | ||
Readonly configuration for the Group Reconciliation Worker # noqa: E501 | ||
""" | ||
type: Optional[StrictStr] = Field(None, description="The type of worker") | ||
__properties = ["type"] | ||
|
||
@validator('type') | ||
def type_validate_enum(cls, value): | ||
"""Validates the enum""" | ||
if value is None: | ||
return value | ||
|
||
if value not in ('GroupReconciliation'): | ||
raise ValueError("must be one of enum values ('GroupReconciliation')") | ||
return value | ||
|
||
class Config: | ||
"""Pydantic configuration""" | ||
allow_population_by_field_name = True | ||
validate_assignment = True | ||
|
||
def to_str(self) -> str: | ||
"""Returns the string representation of the model using alias""" | ||
return pprint.pformat(self.dict(by_alias=True)) | ||
|
||
def to_json(self) -> str: | ||
"""Returns the JSON representation of the model using alias""" | ||
return json.dumps(self.to_dict()) | ||
|
||
@classmethod | ||
def from_json(cls, json_str: str) -> GroupReconciliationResponse: | ||
"""Create an instance of GroupReconciliationResponse from a JSON string""" | ||
return cls.from_dict(json.loads(json_str)) | ||
|
||
def to_dict(self): | ||
"""Returns the dictionary representation of the model using alias""" | ||
_dict = self.dict(by_alias=True, | ||
exclude={ | ||
}, | ||
exclude_none=True) | ||
# set to None if type (nullable) is None | ||
# and __fields_set__ contains the field | ||
if self.type is None and "type" in self.__fields_set__: | ||
_dict['type'] = None | ||
|
||
return _dict | ||
|
||
@classmethod | ||
def from_dict(cls, obj: dict) -> GroupReconciliationResponse: | ||
"""Create an instance of GroupReconciliationResponse from a dict""" | ||
if obj is None: | ||
return None | ||
|
||
if not isinstance(obj, dict): | ||
return GroupReconciliationResponse.parse_obj(obj) | ||
|
||
_obj = GroupReconciliationResponse.parse_obj({ | ||
"type": obj.get("type") | ||
}) | ||
return _obj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.