lusid-sdk 2.1.97__py3-none-any.whl → 2.1.99__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.
Potentially problematic release.
This version of lusid-sdk might be problematic. Click here for more details.
- lusid/configuration.py +1 -1
- lusid/models/staged_modification.py +17 -2
- lusid/models/staged_modifications_entity_hrefs.py +19 -4
- lusid/models/staged_modifications_requested_change_interval.py +19 -4
- lusid/models/staging_rule_set.py +17 -2
- {lusid_sdk-2.1.97.dist-info → lusid_sdk-2.1.99.dist-info}/METADATA +3 -3
- {lusid_sdk-2.1.97.dist-info → lusid_sdk-2.1.99.dist-info}/RECORD +8 -8
- {lusid_sdk-2.1.97.dist-info → lusid_sdk-2.1.99.dist-info}/WHEEL +0 -0
lusid/configuration.py
CHANGED
|
@@ -373,7 +373,7 @@ class Configuration:
|
|
|
373
373
|
return "Python SDK Debug Report:\n"\
|
|
374
374
|
"OS: {env}\n"\
|
|
375
375
|
"Python Version: {pyversion}\n"\
|
|
376
|
-
"Version of the API: 0.11.
|
|
376
|
+
"Version of the API: 0.11.6533\n"\
|
|
377
377
|
"SDK Package Version: {package_version}".\
|
|
378
378
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
|
379
379
|
|
|
@@ -20,6 +20,7 @@ import json
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from typing import Any, Dict, List, Optional
|
|
22
22
|
from pydantic.v1 import BaseModel, Field, StrictInt, StrictStr, conlist
|
|
23
|
+
from lusid.models.link import Link
|
|
23
24
|
from lusid.models.requested_changes import RequestedChanges
|
|
24
25
|
from lusid.models.staged_modification_decision import StagedModificationDecision
|
|
25
26
|
from lusid.models.staged_modification_staging_rule import StagedModificationStagingRule
|
|
@@ -43,7 +44,8 @@ class StagedModification(BaseModel):
|
|
|
43
44
|
entity_unique_id: Optional[StrictStr] = Field(None, alias="entityUniqueId", description="The unique Id of the entity the staged modification applies to.")
|
|
44
45
|
requested_changes: Optional[RequestedChanges] = Field(None, alias="requestedChanges")
|
|
45
46
|
entity_hrefs: Optional[StagedModificationsEntityHrefs] = Field(None, alias="entityHrefs")
|
|
46
|
-
|
|
47
|
+
links: Optional[conlist(Link)] = None
|
|
48
|
+
__properties = ["id", "asAtStaged", "userIdStaged", "requestedIdStaged", "action", "stagingRule", "decisions", "decisionsCount", "status", "entityType", "scope", "entityUniqueId", "requestedChanges", "entityHrefs", "links"]
|
|
47
49
|
|
|
48
50
|
class Config:
|
|
49
51
|
"""Pydantic configuration"""
|
|
@@ -85,6 +87,13 @@ class StagedModification(BaseModel):
|
|
|
85
87
|
# override the default output from pydantic by calling `to_dict()` of entity_hrefs
|
|
86
88
|
if self.entity_hrefs:
|
|
87
89
|
_dict['entityHrefs'] = self.entity_hrefs.to_dict()
|
|
90
|
+
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
|
91
|
+
_items = []
|
|
92
|
+
if self.links:
|
|
93
|
+
for _item in self.links:
|
|
94
|
+
if _item:
|
|
95
|
+
_items.append(_item.to_dict())
|
|
96
|
+
_dict['links'] = _items
|
|
88
97
|
# set to None if id (nullable) is None
|
|
89
98
|
# and __fields_set__ contains the field
|
|
90
99
|
if self.id is None and "id" in self.__fields_set__:
|
|
@@ -130,6 +139,11 @@ class StagedModification(BaseModel):
|
|
|
130
139
|
if self.entity_unique_id is None and "entity_unique_id" in self.__fields_set__:
|
|
131
140
|
_dict['entityUniqueId'] = None
|
|
132
141
|
|
|
142
|
+
# set to None if links (nullable) is None
|
|
143
|
+
# and __fields_set__ contains the field
|
|
144
|
+
if self.links is None and "links" in self.__fields_set__:
|
|
145
|
+
_dict['links'] = None
|
|
146
|
+
|
|
133
147
|
return _dict
|
|
134
148
|
|
|
135
149
|
@classmethod
|
|
@@ -155,6 +169,7 @@ class StagedModification(BaseModel):
|
|
|
155
169
|
"scope": obj.get("scope"),
|
|
156
170
|
"entity_unique_id": obj.get("entityUniqueId"),
|
|
157
171
|
"requested_changes": RequestedChanges.from_dict(obj.get("requestedChanges")) if obj.get("requestedChanges") is not None else None,
|
|
158
|
-
"entity_hrefs": StagedModificationsEntityHrefs.from_dict(obj.get("entityHrefs")) if obj.get("entityHrefs") is not None else None
|
|
172
|
+
"entity_hrefs": StagedModificationsEntityHrefs.from_dict(obj.get("entityHrefs")) if obj.get("entityHrefs") is not None else None,
|
|
173
|
+
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
|
159
174
|
})
|
|
160
175
|
return _obj
|
|
@@ -18,8 +18,9 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import Any, Dict, Optional
|
|
22
|
-
from pydantic.v1 import BaseModel, Field, StrictStr
|
|
21
|
+
from typing import Any, Dict, List, Optional
|
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictStr, conlist
|
|
23
|
+
from lusid.models.link import Link
|
|
23
24
|
|
|
24
25
|
class StagedModificationsEntityHrefs(BaseModel):
|
|
25
26
|
"""
|
|
@@ -28,7 +29,8 @@ class StagedModificationsEntityHrefs(BaseModel):
|
|
|
28
29
|
when_staged: Optional[StrictStr] = Field(None, alias="whenStaged", description="The specific Uniform Resource Identifier (URI) for the staged modification change at the time when the change was requested.")
|
|
29
30
|
preview: Optional[StrictStr] = Field(None, description="The specific Uniform Resource Identifier (URI) for the preview of staged modification change once applied.")
|
|
30
31
|
latest: Optional[StrictStr] = Field(None, description="The specific Uniform Resource Identifier (URI) for the staged modification at latest time.")
|
|
31
|
-
|
|
32
|
+
links: Optional[conlist(Link)] = None
|
|
33
|
+
__properties = ["whenStaged", "preview", "latest", "links"]
|
|
32
34
|
|
|
33
35
|
class Config:
|
|
34
36
|
"""Pydantic configuration"""
|
|
@@ -54,6 +56,13 @@ class StagedModificationsEntityHrefs(BaseModel):
|
|
|
54
56
|
exclude={
|
|
55
57
|
},
|
|
56
58
|
exclude_none=True)
|
|
59
|
+
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
|
60
|
+
_items = []
|
|
61
|
+
if self.links:
|
|
62
|
+
for _item in self.links:
|
|
63
|
+
if _item:
|
|
64
|
+
_items.append(_item.to_dict())
|
|
65
|
+
_dict['links'] = _items
|
|
57
66
|
# set to None if when_staged (nullable) is None
|
|
58
67
|
# and __fields_set__ contains the field
|
|
59
68
|
if self.when_staged is None and "when_staged" in self.__fields_set__:
|
|
@@ -69,6 +78,11 @@ class StagedModificationsEntityHrefs(BaseModel):
|
|
|
69
78
|
if self.latest is None and "latest" in self.__fields_set__:
|
|
70
79
|
_dict['latest'] = None
|
|
71
80
|
|
|
81
|
+
# set to None if links (nullable) is None
|
|
82
|
+
# and __fields_set__ contains the field
|
|
83
|
+
if self.links is None and "links" in self.__fields_set__:
|
|
84
|
+
_dict['links'] = None
|
|
85
|
+
|
|
72
86
|
return _dict
|
|
73
87
|
|
|
74
88
|
@classmethod
|
|
@@ -83,6 +97,7 @@ class StagedModificationsEntityHrefs(BaseModel):
|
|
|
83
97
|
_obj = StagedModificationsEntityHrefs.parse_obj({
|
|
84
98
|
"when_staged": obj.get("whenStaged"),
|
|
85
99
|
"preview": obj.get("preview"),
|
|
86
|
-
"latest": obj.get("latest")
|
|
100
|
+
"latest": obj.get("latest"),
|
|
101
|
+
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
|
87
102
|
})
|
|
88
103
|
return _obj
|
|
@@ -18,8 +18,9 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import Any, Dict, Optional
|
|
22
|
-
from pydantic.v1 import BaseModel, Field, StrictStr
|
|
21
|
+
from typing import Any, Dict, List, Optional
|
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictStr, conlist
|
|
23
|
+
from lusid.models.link import Link
|
|
23
24
|
from lusid.models.staged_modification_effective_range import StagedModificationEffectiveRange
|
|
24
25
|
|
|
25
26
|
class StagedModificationsRequestedChangeInterval(BaseModel):
|
|
@@ -31,7 +32,8 @@ class StagedModificationsRequestedChangeInterval(BaseModel):
|
|
|
31
32
|
previous_value: Optional[Any] = Field(None, alias="previousValue", description="The previous value of the attribute before the requested change is applied.")
|
|
32
33
|
new_value: Optional[Any] = Field(None, alias="newValue", description="The value of the attribute once the requested change is applied.")
|
|
33
34
|
as_at_basis: Optional[StrictStr] = Field(None, alias="asAtBasis", description="Whether the change represents the modification when the request was made or the modification as it would be at the latest time.")
|
|
34
|
-
|
|
35
|
+
links: Optional[conlist(Link)] = None
|
|
36
|
+
__properties = ["attributeName", "effectiveRange", "previousValue", "newValue", "asAtBasis", "links"]
|
|
35
37
|
|
|
36
38
|
class Config:
|
|
37
39
|
"""Pydantic configuration"""
|
|
@@ -60,6 +62,13 @@ class StagedModificationsRequestedChangeInterval(BaseModel):
|
|
|
60
62
|
# override the default output from pydantic by calling `to_dict()` of effective_range
|
|
61
63
|
if self.effective_range:
|
|
62
64
|
_dict['effectiveRange'] = self.effective_range.to_dict()
|
|
65
|
+
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
|
66
|
+
_items = []
|
|
67
|
+
if self.links:
|
|
68
|
+
for _item in self.links:
|
|
69
|
+
if _item:
|
|
70
|
+
_items.append(_item.to_dict())
|
|
71
|
+
_dict['links'] = _items
|
|
63
72
|
# set to None if attribute_name (nullable) is None
|
|
64
73
|
# and __fields_set__ contains the field
|
|
65
74
|
if self.attribute_name is None and "attribute_name" in self.__fields_set__:
|
|
@@ -80,6 +89,11 @@ class StagedModificationsRequestedChangeInterval(BaseModel):
|
|
|
80
89
|
if self.as_at_basis is None and "as_at_basis" in self.__fields_set__:
|
|
81
90
|
_dict['asAtBasis'] = None
|
|
82
91
|
|
|
92
|
+
# set to None if links (nullable) is None
|
|
93
|
+
# and __fields_set__ contains the field
|
|
94
|
+
if self.links is None and "links" in self.__fields_set__:
|
|
95
|
+
_dict['links'] = None
|
|
96
|
+
|
|
83
97
|
return _dict
|
|
84
98
|
|
|
85
99
|
@classmethod
|
|
@@ -96,6 +110,7 @@ class StagedModificationsRequestedChangeInterval(BaseModel):
|
|
|
96
110
|
"effective_range": StagedModificationEffectiveRange.from_dict(obj.get("effectiveRange")) if obj.get("effectiveRange") is not None else None,
|
|
97
111
|
"previous_value": obj.get("previousValue"),
|
|
98
112
|
"new_value": obj.get("newValue"),
|
|
99
|
-
"as_at_basis": obj.get("asAtBasis")
|
|
113
|
+
"as_at_basis": obj.get("asAtBasis"),
|
|
114
|
+
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
|
100
115
|
})
|
|
101
116
|
return _obj
|
lusid/models/staging_rule_set.py
CHANGED
|
@@ -20,6 +20,7 @@ import json
|
|
|
20
20
|
|
|
21
21
|
from typing import Any, Dict, List, Optional
|
|
22
22
|
from pydantic.v1 import BaseModel, Field, StrictStr, conlist, constr
|
|
23
|
+
from lusid.models.link import Link
|
|
23
24
|
from lusid.models.staging_rule import StagingRule
|
|
24
25
|
from lusid.models.version import Version
|
|
25
26
|
|
|
@@ -34,7 +35,8 @@ class StagingRuleSet(BaseModel):
|
|
|
34
35
|
rules: conlist(StagingRule) = Field(..., description="The list of staging rules that apply to a specific entity type.")
|
|
35
36
|
href: Optional[StrictStr] = Field(None, description="The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.")
|
|
36
37
|
version: Optional[Version] = None
|
|
37
|
-
|
|
38
|
+
links: Optional[conlist(Link)] = None
|
|
39
|
+
__properties = ["entityType", "stagingRuleSetId", "displayName", "description", "rules", "href", "version", "links"]
|
|
38
40
|
|
|
39
41
|
class Config:
|
|
40
42
|
"""Pydantic configuration"""
|
|
@@ -70,6 +72,13 @@ class StagingRuleSet(BaseModel):
|
|
|
70
72
|
# override the default output from pydantic by calling `to_dict()` of version
|
|
71
73
|
if self.version:
|
|
72
74
|
_dict['version'] = self.version.to_dict()
|
|
75
|
+
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
|
76
|
+
_items = []
|
|
77
|
+
if self.links:
|
|
78
|
+
for _item in self.links:
|
|
79
|
+
if _item:
|
|
80
|
+
_items.append(_item.to_dict())
|
|
81
|
+
_dict['links'] = _items
|
|
73
82
|
# set to None if description (nullable) is None
|
|
74
83
|
# and __fields_set__ contains the field
|
|
75
84
|
if self.description is None and "description" in self.__fields_set__:
|
|
@@ -80,6 +89,11 @@ class StagingRuleSet(BaseModel):
|
|
|
80
89
|
if self.href is None and "href" in self.__fields_set__:
|
|
81
90
|
_dict['href'] = None
|
|
82
91
|
|
|
92
|
+
# set to None if links (nullable) is None
|
|
93
|
+
# and __fields_set__ contains the field
|
|
94
|
+
if self.links is None and "links" in self.__fields_set__:
|
|
95
|
+
_dict['links'] = None
|
|
96
|
+
|
|
83
97
|
return _dict
|
|
84
98
|
|
|
85
99
|
@classmethod
|
|
@@ -98,6 +112,7 @@ class StagingRuleSet(BaseModel):
|
|
|
98
112
|
"description": obj.get("description"),
|
|
99
113
|
"rules": [StagingRule.from_dict(_item) for _item in obj.get("rules")] if obj.get("rules") is not None else None,
|
|
100
114
|
"href": obj.get("href"),
|
|
101
|
-
"version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None
|
|
115
|
+
"version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
|
|
116
|
+
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
|
102
117
|
})
|
|
103
118
|
return _obj
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: lusid-sdk
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.99
|
|
4
4
|
Summary: LUSID API
|
|
5
5
|
Home-page: https://github.com/finbourne/lusid-sdk-python
|
|
6
6
|
License: MIT
|
|
@@ -29,8 +29,8 @@ FINBOURNE Technology
|
|
|
29
29
|
|
|
30
30
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
31
31
|
|
|
32
|
-
- API version: 0.11.
|
|
33
|
-
- Package version: 2.1.
|
|
32
|
+
- API version: 0.11.6533
|
|
33
|
+
- Package version: 2.1.99
|
|
34
34
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
35
35
|
For more information, please visit [https://www.finbourne.com](https://www.finbourne.com)
|
|
36
36
|
|
|
@@ -66,7 +66,7 @@ lusid/api/transaction_portfolios_api.py,sha256=q6AoYasxV3LQDossmM2BdJSo3arh526yU
|
|
|
66
66
|
lusid/api/translation_api.py,sha256=xTAaKEW96JTDIZBXCjxSguCa7Gz4oVd5jdObUE2egwo,20092
|
|
67
67
|
lusid/api_client.py,sha256=dF6l9RAsdxdQjf6Qn4ny6LB-QXlJmsscWiozCvyyBFA,30709
|
|
68
68
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
|
69
|
-
lusid/configuration.py,sha256=
|
|
69
|
+
lusid/configuration.py,sha256=voxDnJc2LSNaD_JNHZAWksc_dSNAIq-IYhlrUDgl3nY,14404
|
|
70
70
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
|
71
71
|
lusid/extensions/__init__.py,sha256=DeUuQP7yTcklJH7LT-bw9wQhKEggcs1KwQbPbFcOlhw,560
|
|
72
72
|
lusid/extensions/api_client.py,sha256=Ob06urm4Em3MLzgP_geyeeGsPCkU225msW_1kpIeABM,30567
|
|
@@ -859,18 +859,18 @@ lusid/models/sides_definition_request.py,sha256=dIwC8QWSo13i2TUv4KrpyAbo_fq-GxT7
|
|
|
859
859
|
lusid/models/simple_cash_flow_loan.py,sha256=NLVc19iiQEWnM-nUvT-hOz7vca8cG0mTXH9RIuK3iWo,6272
|
|
860
860
|
lusid/models/simple_instrument.py,sha256=gquWeXQKknx7JwuqPQNVHidMggVVXkIDTL_QSaByDSw,6778
|
|
861
861
|
lusid/models/sort_order.py,sha256=tx9hNHkrcdw2gQkSLTGQ-JED7cqZoFJ60abVdqkD-GM,644
|
|
862
|
-
lusid/models/staged_modification.py,sha256=
|
|
862
|
+
lusid/models/staged_modification.py,sha256=rwguOPa8tgKaObYiZ_fC8QogvxzV35PL3Jn7efFsBhg,8731
|
|
863
863
|
lusid/models/staged_modification_decision.py,sha256=IUIpOwYjk41vLP_nMWDzZgI354cCtM9L6Yrf-K_DP4s,3544
|
|
864
864
|
lusid/models/staged_modification_decision_request.py,sha256=6PlH7coUQUIJe1-2GcwpatO3tpcqHIBelpgrd_BZ8qQ,2257
|
|
865
865
|
lusid/models/staged_modification_effective_range.py,sha256=G9oChBwQ_358d41tVDab-j1dGqOwiaRj_wDSDJYcsIU,2256
|
|
866
866
|
lusid/models/staged_modification_staging_rule.py,sha256=lFw1OutPCR70LzJIhjiL-a6dcPGXV2e8aVAbhPsh0Qw,3295
|
|
867
|
-
lusid/models/staged_modifications_entity_hrefs.py,sha256=
|
|
867
|
+
lusid/models/staged_modifications_entity_hrefs.py,sha256=f0mhz_WUwZmSHhF4xxou76TEXXSlkHYp9BpRfDacL_8,3914
|
|
868
868
|
lusid/models/staged_modifications_info.py,sha256=z2GkecAm0BLbrCmyBf5n_WzlWP-LPZW-s0io15Z5Spk,2827
|
|
869
|
-
lusid/models/staged_modifications_requested_change_interval.py,sha256=
|
|
869
|
+
lusid/models/staged_modifications_requested_change_interval.py,sha256=ndNGD9mspoIFnjoGbwxaatBUjgPvRoKCh4yyoAv-w7g,5061
|
|
870
870
|
lusid/models/staging_rule.py,sha256=RxvQoGTR8tShrGw4MLFhaR5L4kxdjeXK8hCGp0kagsk,3560
|
|
871
871
|
lusid/models/staging_rule_approval_criteria.py,sha256=qmAPg2CfdCQvgSiSLte1n9PAz0fYipc8oDVb2QaMIxk,2687
|
|
872
872
|
lusid/models/staging_rule_match_criteria.py,sha256=_RxCyvulK3necsQz6LI7YacbSZAktEN5cITthxm9F-w,3561
|
|
873
|
-
lusid/models/staging_rule_set.py,sha256=
|
|
873
|
+
lusid/models/staging_rule_set.py,sha256=05h5vV_9s3V2MYoH7o1K8pmjlUq15jJSsmyJ5ObRyKs,4896
|
|
874
874
|
lusid/models/step_schedule.py,sha256=uNakrJcB9X3e31PekjEBbu_MLbKr77P-57Qf1Ot3uPg,4504
|
|
875
875
|
lusid/models/stock_dividend_event.py,sha256=l0c9oRxfczMuQZMY6MhtEV9PFFlAMXuZA8uzLEnMojE,6183
|
|
876
876
|
lusid/models/stock_split_event.py,sha256=hFenpVA9st5Mu7UUBPFEXeY9hsTWXlHusZuIEhQaJ3A,6127
|
|
@@ -1036,6 +1036,6 @@ lusid/models/weighted_instruments.py,sha256=1y_y_vw4-LPsbkQx4FOzWdZc5fJnzhVkf1D3
|
|
|
1036
1036
|
lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
|
|
1037
1037
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1038
1038
|
lusid/rest.py,sha256=TNUzQ3yLNT2L053EdR7R0vNzQh2J3TlYD1T56Dye0W0,10138
|
|
1039
|
-
lusid_sdk-2.1.
|
|
1040
|
-
lusid_sdk-2.1.
|
|
1041
|
-
lusid_sdk-2.1.
|
|
1039
|
+
lusid_sdk-2.1.99.dist-info/METADATA,sha256=EU30OaGqKkCvFurNod4LDw3bkBGoSxmMLaf3XsRp6oc,183336
|
|
1040
|
+
lusid_sdk-2.1.99.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
1041
|
+
lusid_sdk-2.1.99.dist-info/RECORD,,
|
|
File without changes
|