lusid-sdk 2.1.630__py3-none-any.whl → 2.1.632__py3-none-any.whl
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.
- lusid/__init__.py +4 -10
- lusid/api/__init__.py +0 -2
- lusid/api/corporate_action_sources_api.py +6 -6
- lusid/api/timelines_api.py +363 -0
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +4 -8
- lusid/models/{risk_model_factor_set.py → closed_period.py} +47 -22
- lusid/models/create_closed_period_request.py +96 -0
- lusid/models/create_derived_property_definition_request.py +3 -3
- lusid/models/create_derived_transaction_portfolio_request.py +8 -2
- lusid/models/create_property_definition_request.py +3 -3
- lusid/models/future.py +1 -1
- lusid/models/property_definition.py +3 -3
- lusid/models/property_definition_search_result.py +3 -3
- lusid/models/property_domain.py +1 -0
- {lusid_sdk-2.1.630.dist-info → lusid_sdk-2.1.632.dist-info}/METADATA +8 -13
- {lusid_sdk-2.1.630.dist-info → lusid_sdk-2.1.632.dist-info}/RECORD +18 -21
- lusid/api/risk_model_factor_sets_api.py +0 -902
- lusid/models/create_risk_model_factor_set_request.py +0 -75
- lusid/models/paged_resource_list_of_risk_model_factor_set.py +0 -113
- lusid/models/update_risk_model_factor_set_request.py +0 -69
- {lusid_sdk-2.1.630.dist-info → lusid_sdk-2.1.632.dist-info}/WHEEL +0 -0
@@ -1,75 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
LUSID API
|
5
|
-
|
6
|
-
FINBOURNE Technology # noqa: E501
|
7
|
-
|
8
|
-
Contact: info@finbourne.com
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
-
|
11
|
-
Do not edit the class manually.
|
12
|
-
"""
|
13
|
-
|
14
|
-
|
15
|
-
from __future__ import annotations
|
16
|
-
import pprint
|
17
|
-
import re # noqa: F401
|
18
|
-
import json
|
19
|
-
|
20
|
-
|
21
|
-
from typing import Any, Dict, Optional
|
22
|
-
from pydantic.v1 import BaseModel, Field, constr
|
23
|
-
from lusid.models.resource_id import ResourceId
|
24
|
-
|
25
|
-
class CreateRiskModelFactorSetRequest(BaseModel):
|
26
|
-
"""
|
27
|
-
CreateRiskModelFactorSetRequest
|
28
|
-
"""
|
29
|
-
id: Optional[ResourceId] = None
|
30
|
-
display_name: constr(strict=True, max_length=256, min_length=1) = Field(..., alias="displayName", description="Factor Set name.")
|
31
|
-
__properties = ["id", "displayName"]
|
32
|
-
|
33
|
-
class Config:
|
34
|
-
"""Pydantic configuration"""
|
35
|
-
allow_population_by_field_name = True
|
36
|
-
validate_assignment = True
|
37
|
-
|
38
|
-
def to_str(self) -> str:
|
39
|
-
"""Returns the string representation of the model using alias"""
|
40
|
-
return pprint.pformat(self.dict(by_alias=True))
|
41
|
-
|
42
|
-
def to_json(self) -> str:
|
43
|
-
"""Returns the JSON representation of the model using alias"""
|
44
|
-
return json.dumps(self.to_dict())
|
45
|
-
|
46
|
-
@classmethod
|
47
|
-
def from_json(cls, json_str: str) -> CreateRiskModelFactorSetRequest:
|
48
|
-
"""Create an instance of CreateRiskModelFactorSetRequest from a JSON string"""
|
49
|
-
return cls.from_dict(json.loads(json_str))
|
50
|
-
|
51
|
-
def to_dict(self):
|
52
|
-
"""Returns the dictionary representation of the model using alias"""
|
53
|
-
_dict = self.dict(by_alias=True,
|
54
|
-
exclude={
|
55
|
-
},
|
56
|
-
exclude_none=True)
|
57
|
-
# override the default output from pydantic by calling `to_dict()` of id
|
58
|
-
if self.id:
|
59
|
-
_dict['id'] = self.id.to_dict()
|
60
|
-
return _dict
|
61
|
-
|
62
|
-
@classmethod
|
63
|
-
def from_dict(cls, obj: dict) -> CreateRiskModelFactorSetRequest:
|
64
|
-
"""Create an instance of CreateRiskModelFactorSetRequest from a dict"""
|
65
|
-
if obj is None:
|
66
|
-
return None
|
67
|
-
|
68
|
-
if not isinstance(obj, dict):
|
69
|
-
return CreateRiskModelFactorSetRequest.parse_obj(obj)
|
70
|
-
|
71
|
-
_obj = CreateRiskModelFactorSetRequest.parse_obj({
|
72
|
-
"id": ResourceId.from_dict(obj.get("id")) if obj.get("id") is not None else None,
|
73
|
-
"display_name": obj.get("displayName")
|
74
|
-
})
|
75
|
-
return _obj
|
@@ -1,113 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
LUSID API
|
5
|
-
|
6
|
-
FINBOURNE Technology # noqa: E501
|
7
|
-
|
8
|
-
Contact: info@finbourne.com
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
-
|
11
|
-
Do not edit the class manually.
|
12
|
-
"""
|
13
|
-
|
14
|
-
|
15
|
-
from __future__ import annotations
|
16
|
-
import pprint
|
17
|
-
import re # noqa: F401
|
18
|
-
import json
|
19
|
-
|
20
|
-
|
21
|
-
from typing import Any, Dict, List, Optional
|
22
|
-
from pydantic.v1 import BaseModel, Field, StrictStr, conlist
|
23
|
-
from lusid.models.link import Link
|
24
|
-
from lusid.models.risk_model_factor_set import RiskModelFactorSet
|
25
|
-
|
26
|
-
class PagedResourceListOfRiskModelFactorSet(BaseModel):
|
27
|
-
"""
|
28
|
-
PagedResourceListOfRiskModelFactorSet
|
29
|
-
"""
|
30
|
-
next_page: Optional[StrictStr] = Field(None, alias="nextPage")
|
31
|
-
previous_page: Optional[StrictStr] = Field(None, alias="previousPage")
|
32
|
-
values: conlist(RiskModelFactorSet) = Field(...)
|
33
|
-
href: Optional[StrictStr] = None
|
34
|
-
links: Optional[conlist(Link)] = None
|
35
|
-
__properties = ["nextPage", "previousPage", "values", "href", "links"]
|
36
|
-
|
37
|
-
class Config:
|
38
|
-
"""Pydantic configuration"""
|
39
|
-
allow_population_by_field_name = True
|
40
|
-
validate_assignment = True
|
41
|
-
|
42
|
-
def to_str(self) -> str:
|
43
|
-
"""Returns the string representation of the model using alias"""
|
44
|
-
return pprint.pformat(self.dict(by_alias=True))
|
45
|
-
|
46
|
-
def to_json(self) -> str:
|
47
|
-
"""Returns the JSON representation of the model using alias"""
|
48
|
-
return json.dumps(self.to_dict())
|
49
|
-
|
50
|
-
@classmethod
|
51
|
-
def from_json(cls, json_str: str) -> PagedResourceListOfRiskModelFactorSet:
|
52
|
-
"""Create an instance of PagedResourceListOfRiskModelFactorSet from a JSON string"""
|
53
|
-
return cls.from_dict(json.loads(json_str))
|
54
|
-
|
55
|
-
def to_dict(self):
|
56
|
-
"""Returns the dictionary representation of the model using alias"""
|
57
|
-
_dict = self.dict(by_alias=True,
|
58
|
-
exclude={
|
59
|
-
},
|
60
|
-
exclude_none=True)
|
61
|
-
# override the default output from pydantic by calling `to_dict()` of each item in values (list)
|
62
|
-
_items = []
|
63
|
-
if self.values:
|
64
|
-
for _item in self.values:
|
65
|
-
if _item:
|
66
|
-
_items.append(_item.to_dict())
|
67
|
-
_dict['values'] = _items
|
68
|
-
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
69
|
-
_items = []
|
70
|
-
if self.links:
|
71
|
-
for _item in self.links:
|
72
|
-
if _item:
|
73
|
-
_items.append(_item.to_dict())
|
74
|
-
_dict['links'] = _items
|
75
|
-
# set to None if next_page (nullable) is None
|
76
|
-
# and __fields_set__ contains the field
|
77
|
-
if self.next_page is None and "next_page" in self.__fields_set__:
|
78
|
-
_dict['nextPage'] = None
|
79
|
-
|
80
|
-
# set to None if previous_page (nullable) is None
|
81
|
-
# and __fields_set__ contains the field
|
82
|
-
if self.previous_page is None and "previous_page" in self.__fields_set__:
|
83
|
-
_dict['previousPage'] = None
|
84
|
-
|
85
|
-
# set to None if href (nullable) is None
|
86
|
-
# and __fields_set__ contains the field
|
87
|
-
if self.href is None and "href" in self.__fields_set__:
|
88
|
-
_dict['href'] = None
|
89
|
-
|
90
|
-
# set to None if links (nullable) is None
|
91
|
-
# and __fields_set__ contains the field
|
92
|
-
if self.links is None and "links" in self.__fields_set__:
|
93
|
-
_dict['links'] = None
|
94
|
-
|
95
|
-
return _dict
|
96
|
-
|
97
|
-
@classmethod
|
98
|
-
def from_dict(cls, obj: dict) -> PagedResourceListOfRiskModelFactorSet:
|
99
|
-
"""Create an instance of PagedResourceListOfRiskModelFactorSet from a dict"""
|
100
|
-
if obj is None:
|
101
|
-
return None
|
102
|
-
|
103
|
-
if not isinstance(obj, dict):
|
104
|
-
return PagedResourceListOfRiskModelFactorSet.parse_obj(obj)
|
105
|
-
|
106
|
-
_obj = PagedResourceListOfRiskModelFactorSet.parse_obj({
|
107
|
-
"next_page": obj.get("nextPage"),
|
108
|
-
"previous_page": obj.get("previousPage"),
|
109
|
-
"values": [RiskModelFactorSet.from_dict(_item) for _item in obj.get("values")] if obj.get("values") is not None else None,
|
110
|
-
"href": obj.get("href"),
|
111
|
-
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
112
|
-
})
|
113
|
-
return _obj
|
@@ -1,69 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
LUSID API
|
5
|
-
|
6
|
-
FINBOURNE Technology # noqa: E501
|
7
|
-
|
8
|
-
Contact: info@finbourne.com
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
-
|
11
|
-
Do not edit the class manually.
|
12
|
-
"""
|
13
|
-
|
14
|
-
|
15
|
-
from __future__ import annotations
|
16
|
-
import pprint
|
17
|
-
import re # noqa: F401
|
18
|
-
import json
|
19
|
-
|
20
|
-
|
21
|
-
from typing import Any, Dict
|
22
|
-
from pydantic.v1 import BaseModel, Field, constr
|
23
|
-
|
24
|
-
class UpdateRiskModelFactorSetRequest(BaseModel):
|
25
|
-
"""
|
26
|
-
UpdateRiskModelFactorSetRequest
|
27
|
-
"""
|
28
|
-
display_name: constr(strict=True, max_length=256, min_length=1) = Field(..., alias="displayName", description="Factor Set name.")
|
29
|
-
__properties = ["displayName"]
|
30
|
-
|
31
|
-
class Config:
|
32
|
-
"""Pydantic configuration"""
|
33
|
-
allow_population_by_field_name = True
|
34
|
-
validate_assignment = True
|
35
|
-
|
36
|
-
def to_str(self) -> str:
|
37
|
-
"""Returns the string representation of the model using alias"""
|
38
|
-
return pprint.pformat(self.dict(by_alias=True))
|
39
|
-
|
40
|
-
def to_json(self) -> str:
|
41
|
-
"""Returns the JSON representation of the model using alias"""
|
42
|
-
return json.dumps(self.to_dict())
|
43
|
-
|
44
|
-
@classmethod
|
45
|
-
def from_json(cls, json_str: str) -> UpdateRiskModelFactorSetRequest:
|
46
|
-
"""Create an instance of UpdateRiskModelFactorSetRequest from a JSON string"""
|
47
|
-
return cls.from_dict(json.loads(json_str))
|
48
|
-
|
49
|
-
def to_dict(self):
|
50
|
-
"""Returns the dictionary representation of the model using alias"""
|
51
|
-
_dict = self.dict(by_alias=True,
|
52
|
-
exclude={
|
53
|
-
},
|
54
|
-
exclude_none=True)
|
55
|
-
return _dict
|
56
|
-
|
57
|
-
@classmethod
|
58
|
-
def from_dict(cls, obj: dict) -> UpdateRiskModelFactorSetRequest:
|
59
|
-
"""Create an instance of UpdateRiskModelFactorSetRequest from a dict"""
|
60
|
-
if obj is None:
|
61
|
-
return None
|
62
|
-
|
63
|
-
if not isinstance(obj, dict):
|
64
|
-
return UpdateRiskModelFactorSetRequest.parse_obj(obj)
|
65
|
-
|
66
|
-
_obj = UpdateRiskModelFactorSetRequest.parse_obj({
|
67
|
-
"display_name": obj.get("displayName")
|
68
|
-
})
|
69
|
-
return _obj
|
File without changes
|