lusid-sdk 2.1.363__py3-none-any.whl → 2.1.374__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 -0
- lusid/api/workspace_api.py +40 -40
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +4 -0
- lusid/models/action_id.py +1 -1
- lusid/models/applicable_instrument_event.py +14 -2
- lusid/models/calendar.py +17 -2
- lusid/models/custom_entity_definition.py +17 -2
- lusid/models/custom_entity_type.py +17 -2
- lusid/models/data_type.py +7 -1
- lusid/models/fee.py +1 -1
- lusid/models/fee_request.py +1 -1
- lusid/models/generated_event_diagnostics.py +75 -0
- lusid/models/instrument_event_instruction.py +19 -4
- lusid/models/person.py +17 -2
- lusid/models/transaction_diagnostics.py +71 -0
- lusid/models/valuation_point_data_response.py +15 -1
- {lusid_sdk-2.1.363.dist-info → lusid_sdk-2.1.374.dist-info}/METADATA +23 -21
- {lusid_sdk-2.1.363.dist-info → lusid_sdk-2.1.374.dist-info}/RECORD +20 -18
- {lusid_sdk-2.1.363.dist-info → lusid_sdk-2.1.374.dist-info}/WHEEL +0 -0
@@ -21,6 +21,7 @@ import json
|
|
21
21
|
from typing import Any, Dict, List, Optional
|
22
22
|
from pydantic.v1 import BaseModel, Field, StrictStr, conlist, constr
|
23
23
|
from lusid.models.custom_entity_field_definition import CustomEntityFieldDefinition
|
24
|
+
from lusid.models.link import Link
|
24
25
|
from lusid.models.version import Version
|
25
26
|
|
26
27
|
class CustomEntityType(BaseModel):
|
@@ -34,7 +35,8 @@ class CustomEntityType(BaseModel):
|
|
34
35
|
entity_type: constr(strict=True, min_length=1) = Field(..., alias="entityType", description="The identifier for the custom entity type, derived from the “entityTypeName” provided on creation.")
|
35
36
|
field_schema: conlist(CustomEntityFieldDefinition) = Field(..., alias="fieldSchema", description="The description of the fields on the custom entity type.")
|
36
37
|
version: Version = Field(...)
|
37
|
-
|
38
|
+
links: Optional[conlist(Link)] = None
|
39
|
+
__properties = ["href", "entityTypeName", "displayName", "description", "entityType", "fieldSchema", "version", "links"]
|
38
40
|
|
39
41
|
class Config:
|
40
42
|
"""Pydantic configuration"""
|
@@ -70,6 +72,13 @@ class CustomEntityType(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 href (nullable) is None
|
74
83
|
# and __fields_set__ contains the field
|
75
84
|
if self.href is None and "href" in self.__fields_set__:
|
@@ -80,6 +89,11 @@ class CustomEntityType(BaseModel):
|
|
80
89
|
if self.description is None and "description" in self.__fields_set__:
|
81
90
|
_dict['description'] = 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 CustomEntityType(BaseModel):
|
|
98
112
|
"description": obj.get("description"),
|
99
113
|
"entity_type": obj.get("entityType"),
|
100
114
|
"field_schema": [CustomEntityFieldDefinition.from_dict(_item) for _item in obj.get("fieldSchema")] if obj.get("fieldSchema") is not None else None,
|
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
|
lusid/models/data_type.py
CHANGED
@@ -24,6 +24,7 @@ from lusid.models.i_unit_definition_dto import IUnitDefinitionDto
|
|
24
24
|
from lusid.models.link import Link
|
25
25
|
from lusid.models.reference_data import ReferenceData
|
26
26
|
from lusid.models.resource_id import ResourceId
|
27
|
+
from lusid.models.staged_modifications_info import StagedModificationsInfo
|
27
28
|
from lusid.models.version import Version
|
28
29
|
|
29
30
|
class DataType(BaseModel):
|
@@ -41,8 +42,9 @@ class DataType(BaseModel):
|
|
41
42
|
reference_data: Optional[ReferenceData] = Field(None, alias="referenceData")
|
42
43
|
version: Optional[Version] = None
|
43
44
|
href: Optional[StrictStr] = Field(None, description="The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.")
|
45
|
+
staged_modifications: Optional[StagedModificationsInfo] = Field(None, alias="stagedModifications")
|
44
46
|
links: Optional[conlist(Link)] = None
|
45
|
-
__properties = ["typeValueRange", "id", "displayName", "description", "valueType", "acceptableValues", "unitSchema", "acceptableUnits", "referenceData", "version", "href", "links"]
|
47
|
+
__properties = ["typeValueRange", "id", "displayName", "description", "valueType", "acceptableValues", "unitSchema", "acceptableUnits", "referenceData", "version", "href", "stagedModifications", "links"]
|
46
48
|
|
47
49
|
@validator('type_value_range')
|
48
50
|
def type_value_range_validate_enum(cls, value):
|
@@ -108,6 +110,9 @@ class DataType(BaseModel):
|
|
108
110
|
# override the default output from pydantic by calling `to_dict()` of version
|
109
111
|
if self.version:
|
110
112
|
_dict['version'] = self.version.to_dict()
|
113
|
+
# override the default output from pydantic by calling `to_dict()` of staged_modifications
|
114
|
+
if self.staged_modifications:
|
115
|
+
_dict['stagedModifications'] = self.staged_modifications.to_dict()
|
111
116
|
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
112
117
|
_items = []
|
113
118
|
if self.links:
|
@@ -158,6 +163,7 @@ class DataType(BaseModel):
|
|
158
163
|
"reference_data": ReferenceData.from_dict(obj.get("referenceData")) if obj.get("referenceData") is not None else None,
|
159
164
|
"version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
|
160
165
|
"href": obj.get("href"),
|
166
|
+
"staged_modifications": StagedModificationsInfo.from_dict(obj.get("stagedModifications")) if obj.get("stagedModifications") is not None else None,
|
161
167
|
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
162
168
|
})
|
163
169
|
return _obj
|
lusid/models/fee.py
CHANGED
@@ -42,7 +42,7 @@ class Fee(BaseModel):
|
|
42
42
|
total_annual_accrual_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="totalAnnualAccrualAmount", description="The total annual accrued amount for the Fee. (TotalAnnualAccrualAmount and CalculationBase cannot both be present)")
|
43
43
|
fee_rate_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="feeRatePercentage", description="The fee rate percentage. (Required when CalculationBase is present and not compatible with TotalAnnualAccrualAmount)")
|
44
44
|
payable_frequency: constr(strict=True, min_length=1) = Field(..., alias="payableFrequency", description="The payable frequency for the Fee; 'Annually', 'Quarterly' or 'Monthly'.")
|
45
|
-
business_day_convention: constr(strict=True, min_length=1) = Field(..., alias="businessDayConvention", description="The business day convention to use for Fee calculations on weekends.")
|
45
|
+
business_day_convention: constr(strict=True, min_length=1) = Field(..., alias="businessDayConvention", description="The business day convention to use for Fee calculations on weekends. Supported string values are: [Previous, P, Following, F].")
|
46
46
|
start_date: datetime = Field(..., alias="startDate", description="The start date of the Fee.")
|
47
47
|
end_date: Optional[datetime] = Field(None, alias="endDate", description="The end date of the Fee.")
|
48
48
|
anchor_date: Optional[DayMonth] = Field(None, alias="anchorDate")
|
lusid/models/fee_request.py
CHANGED
@@ -39,7 +39,7 @@ class FeeRequest(BaseModel):
|
|
39
39
|
total_annual_accrual_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="totalAnnualAccrualAmount", description="The total annual accrued amount for the Fee. (TotalAnnualAccrualAmount and CalculationBase cannot both be present)")
|
40
40
|
fee_rate_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="feeRatePercentage", description="The fee rate percentage. (Required when CalculationBase is present and not compatible with TotalAnnualAccrualAmount)")
|
41
41
|
payable_frequency: constr(strict=True, min_length=1) = Field(..., alias="payableFrequency", description="The payable frequency for the Fee; 'Annually', 'Quarterly' or 'Monthly'.")
|
42
|
-
business_day_convention: constr(strict=True, min_length=1) = Field(..., alias="businessDayConvention", description="The business day convention to use for Fee calculations on weekends.")
|
42
|
+
business_day_convention: constr(strict=True, min_length=1) = Field(..., alias="businessDayConvention", description="The business day convention to use for Fee calculations on weekends. Supported string values are: [Previous, P, Following, F].")
|
43
43
|
start_date: datetime = Field(..., alias="startDate", description="The start date of the Fee.")
|
44
44
|
end_date: Optional[datetime] = Field(None, alias="endDate", description="The end date of the Fee.")
|
45
45
|
anchor_date: Optional[DayMonth] = Field(None, alias="anchorDate")
|
@@ -0,0 +1,75 @@
|
|
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
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictStr, conlist, constr
|
23
|
+
|
24
|
+
class GeneratedEventDiagnostics(BaseModel):
|
25
|
+
"""
|
26
|
+
Represents a set of diagnostics per generatedEvent, where applicable. # noqa: E501
|
27
|
+
"""
|
28
|
+
instrument_event_id: constr(strict=True, min_length=1) = Field(..., alias="instrumentEventId")
|
29
|
+
type: constr(strict=True, min_length=1) = Field(...)
|
30
|
+
detail: constr(strict=True, min_length=1) = Field(...)
|
31
|
+
error_details: conlist(StrictStr) = Field(..., alias="errorDetails")
|
32
|
+
__properties = ["instrumentEventId", "type", "detail", "errorDetails"]
|
33
|
+
|
34
|
+
class Config:
|
35
|
+
"""Pydantic configuration"""
|
36
|
+
allow_population_by_field_name = True
|
37
|
+
validate_assignment = True
|
38
|
+
|
39
|
+
def to_str(self) -> str:
|
40
|
+
"""Returns the string representation of the model using alias"""
|
41
|
+
return pprint.pformat(self.dict(by_alias=True))
|
42
|
+
|
43
|
+
def to_json(self) -> str:
|
44
|
+
"""Returns the JSON representation of the model using alias"""
|
45
|
+
return json.dumps(self.to_dict())
|
46
|
+
|
47
|
+
@classmethod
|
48
|
+
def from_json(cls, json_str: str) -> GeneratedEventDiagnostics:
|
49
|
+
"""Create an instance of GeneratedEventDiagnostics from a JSON string"""
|
50
|
+
return cls.from_dict(json.loads(json_str))
|
51
|
+
|
52
|
+
def to_dict(self):
|
53
|
+
"""Returns the dictionary representation of the model using alias"""
|
54
|
+
_dict = self.dict(by_alias=True,
|
55
|
+
exclude={
|
56
|
+
},
|
57
|
+
exclude_none=True)
|
58
|
+
return _dict
|
59
|
+
|
60
|
+
@classmethod
|
61
|
+
def from_dict(cls, obj: dict) -> GeneratedEventDiagnostics:
|
62
|
+
"""Create an instance of GeneratedEventDiagnostics from a dict"""
|
63
|
+
if obj is None:
|
64
|
+
return None
|
65
|
+
|
66
|
+
if not isinstance(obj, dict):
|
67
|
+
return GeneratedEventDiagnostics.parse_obj(obj)
|
68
|
+
|
69
|
+
_obj = GeneratedEventDiagnostics.parse_obj({
|
70
|
+
"instrument_event_id": obj.get("instrumentEventId"),
|
71
|
+
"type": obj.get("type"),
|
72
|
+
"detail": obj.get("detail"),
|
73
|
+
"error_details": obj.get("errorDetails")
|
74
|
+
})
|
75
|
+
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, StrictInt, StrictStr
|
21
|
+
from typing import Any, Dict, List, Optional
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictInt, StrictStr, conlist
|
23
|
+
from lusid.models.link import Link
|
23
24
|
from lusid.models.resource_id import ResourceId
|
24
25
|
from lusid.models.version import Version
|
25
26
|
|
@@ -35,7 +36,8 @@ class InstrumentEventInstruction(BaseModel):
|
|
35
36
|
holding_id: Optional[StrictInt] = Field(None, alias="holdingId", description="For holding instructions, the id of the holding for which the instruction will apply")
|
36
37
|
version: Optional[Version] = None
|
37
38
|
href: Optional[StrictStr] = Field(None, description="The uri for this version of this instruction")
|
38
|
-
|
39
|
+
links: Optional[conlist(Link)] = None
|
40
|
+
__properties = ["instrumentEventInstructionId", "portfolioId", "instrumentEventId", "instructionType", "electionKey", "holdingId", "version", "href", "links"]
|
39
41
|
|
40
42
|
class Config:
|
41
43
|
"""Pydantic configuration"""
|
@@ -67,6 +69,13 @@ class InstrumentEventInstruction(BaseModel):
|
|
67
69
|
# override the default output from pydantic by calling `to_dict()` of version
|
68
70
|
if self.version:
|
69
71
|
_dict['version'] = self.version.to_dict()
|
72
|
+
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
73
|
+
_items = []
|
74
|
+
if self.links:
|
75
|
+
for _item in self.links:
|
76
|
+
if _item:
|
77
|
+
_items.append(_item.to_dict())
|
78
|
+
_dict['links'] = _items
|
70
79
|
# set to None if instrument_event_instruction_id (nullable) is None
|
71
80
|
# and __fields_set__ contains the field
|
72
81
|
if self.instrument_event_instruction_id is None and "instrument_event_instruction_id" in self.__fields_set__:
|
@@ -97,6 +106,11 @@ class InstrumentEventInstruction(BaseModel):
|
|
97
106
|
if self.href is None and "href" in self.__fields_set__:
|
98
107
|
_dict['href'] = None
|
99
108
|
|
109
|
+
# set to None if links (nullable) is None
|
110
|
+
# and __fields_set__ contains the field
|
111
|
+
if self.links is None and "links" in self.__fields_set__:
|
112
|
+
_dict['links'] = None
|
113
|
+
|
100
114
|
return _dict
|
101
115
|
|
102
116
|
@classmethod
|
@@ -116,6 +130,7 @@ class InstrumentEventInstruction(BaseModel):
|
|
116
130
|
"election_key": obj.get("electionKey"),
|
117
131
|
"holding_id": obj.get("holdingId"),
|
118
132
|
"version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
|
119
|
-
"href": obj.get("href")
|
133
|
+
"href": obj.get("href"),
|
134
|
+
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
120
135
|
})
|
121
136
|
return _obj
|
lusid/models/person.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
|
23
|
+
from lusid.models.link import Link
|
23
24
|
from lusid.models.model_property import ModelProperty
|
24
25
|
from lusid.models.relationship import Relationship
|
25
26
|
from lusid.models.version import Version
|
@@ -36,7 +37,8 @@ class Person(BaseModel):
|
|
36
37
|
properties: Optional[Dict[str, ModelProperty]] = Field(None, description="A set of properties associated to the Person. There can be multiple properties associated with a property key.")
|
37
38
|
relationships: Optional[conlist(Relationship)] = Field(None, description="A set of relationships associated to the Person.")
|
38
39
|
version: Optional[Version] = None
|
39
|
-
|
40
|
+
links: Optional[conlist(Link)] = None
|
41
|
+
__properties = ["displayName", "description", "href", "lusidPersonId", "identifiers", "properties", "relationships", "version", "links"]
|
40
42
|
|
41
43
|
class Config:
|
42
44
|
"""Pydantic configuration"""
|
@@ -86,6 +88,13 @@ class Person(BaseModel):
|
|
86
88
|
# override the default output from pydantic by calling `to_dict()` of version
|
87
89
|
if self.version:
|
88
90
|
_dict['version'] = self.version.to_dict()
|
91
|
+
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
92
|
+
_items = []
|
93
|
+
if self.links:
|
94
|
+
for _item in self.links:
|
95
|
+
if _item:
|
96
|
+
_items.append(_item.to_dict())
|
97
|
+
_dict['links'] = _items
|
89
98
|
# set to None if display_name (nullable) is None
|
90
99
|
# and __fields_set__ contains the field
|
91
100
|
if self.display_name is None and "display_name" in self.__fields_set__:
|
@@ -121,6 +130,11 @@ class Person(BaseModel):
|
|
121
130
|
if self.relationships is None and "relationships" in self.__fields_set__:
|
122
131
|
_dict['relationships'] = None
|
123
132
|
|
133
|
+
# set to None if links (nullable) is None
|
134
|
+
# and __fields_set__ contains the field
|
135
|
+
if self.links is None and "links" in self.__fields_set__:
|
136
|
+
_dict['links'] = None
|
137
|
+
|
124
138
|
return _dict
|
125
139
|
|
126
140
|
@classmethod
|
@@ -150,6 +164,7 @@ class Person(BaseModel):
|
|
150
164
|
if obj.get("properties") is not None
|
151
165
|
else None,
|
152
166
|
"relationships": [Relationship.from_dict(_item) for _item in obj.get("relationships")] if obj.get("relationships") is not None else None,
|
153
|
-
"version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None
|
167
|
+
"version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
|
168
|
+
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
154
169
|
})
|
155
170
|
return _obj
|
@@ -0,0 +1,71 @@
|
|
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
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictStr, conlist, constr
|
23
|
+
|
24
|
+
class TransactionDiagnostics(BaseModel):
|
25
|
+
"""
|
26
|
+
Represents a set of diagnostics per transaction, where applicable. # noqa: E501
|
27
|
+
"""
|
28
|
+
transaction_display_name: constr(strict=True, min_length=1) = Field(..., alias="transactionDisplayName")
|
29
|
+
error_details: conlist(StrictStr) = Field(..., alias="errorDetails")
|
30
|
+
__properties = ["transactionDisplayName", "errorDetails"]
|
31
|
+
|
32
|
+
class Config:
|
33
|
+
"""Pydantic configuration"""
|
34
|
+
allow_population_by_field_name = True
|
35
|
+
validate_assignment = True
|
36
|
+
|
37
|
+
def to_str(self) -> str:
|
38
|
+
"""Returns the string representation of the model using alias"""
|
39
|
+
return pprint.pformat(self.dict(by_alias=True))
|
40
|
+
|
41
|
+
def to_json(self) -> str:
|
42
|
+
"""Returns the JSON representation of the model using alias"""
|
43
|
+
return json.dumps(self.to_dict())
|
44
|
+
|
45
|
+
@classmethod
|
46
|
+
def from_json(cls, json_str: str) -> TransactionDiagnostics:
|
47
|
+
"""Create an instance of TransactionDiagnostics from a JSON string"""
|
48
|
+
return cls.from_dict(json.loads(json_str))
|
49
|
+
|
50
|
+
def to_dict(self):
|
51
|
+
"""Returns the dictionary representation of the model using alias"""
|
52
|
+
_dict = self.dict(by_alias=True,
|
53
|
+
exclude={
|
54
|
+
},
|
55
|
+
exclude_none=True)
|
56
|
+
return _dict
|
57
|
+
|
58
|
+
@classmethod
|
59
|
+
def from_dict(cls, obj: dict) -> TransactionDiagnostics:
|
60
|
+
"""Create an instance of TransactionDiagnostics from a dict"""
|
61
|
+
if obj is None:
|
62
|
+
return None
|
63
|
+
|
64
|
+
if not isinstance(obj, dict):
|
65
|
+
return TransactionDiagnostics.parse_obj(obj)
|
66
|
+
|
67
|
+
_obj = TransactionDiagnostics.parse_obj({
|
68
|
+
"transaction_display_name": obj.get("transactionDisplayName"),
|
69
|
+
"error_details": obj.get("errorDetails")
|
70
|
+
})
|
71
|
+
return _obj
|
@@ -41,8 +41,10 @@ class ValuationPointDataResponse(BaseModel):
|
|
41
41
|
previous_nav: Union[StrictFloat, StrictInt] = Field(..., alias="previousNav", description="DEPRECATED. The Net Asset Value of the Fund at the End of the last Period.")
|
42
42
|
fund_valuation_point_data: FundValuationPointData = Field(..., alias="fundValuationPointData")
|
43
43
|
share_class_data: Dict[str, ShareClassData] = Field(..., alias="shareClassData", description="The data for all share classes in fund. Share classes are identified by their short codes.")
|
44
|
+
valuation_point_code: Optional[StrictStr] = Field(None, alias="valuationPointCode", description="The code of the valuation point.")
|
45
|
+
previous_valuation_point_code: Optional[StrictStr] = Field(None, alias="previousValuationPointCode", description="The code of the previous valuation point.")
|
44
46
|
links: Optional[conlist(Link)] = None
|
45
|
-
__properties = ["href", "type", "status", "backout", "dealing", "pnL", "gav", "fees", "nav", "previousNav", "fundValuationPointData", "shareClassData", "links"]
|
47
|
+
__properties = ["href", "type", "status", "backout", "dealing", "pnL", "gav", "fees", "nav", "previousNav", "fundValuationPointData", "shareClassData", "valuationPointCode", "previousValuationPointCode", "links"]
|
46
48
|
|
47
49
|
class Config:
|
48
50
|
"""Pydantic configuration"""
|
@@ -97,6 +99,16 @@ class ValuationPointDataResponse(BaseModel):
|
|
97
99
|
if self.href is None and "href" in self.__fields_set__:
|
98
100
|
_dict['href'] = None
|
99
101
|
|
102
|
+
# set to None if valuation_point_code (nullable) is None
|
103
|
+
# and __fields_set__ contains the field
|
104
|
+
if self.valuation_point_code is None and "valuation_point_code" in self.__fields_set__:
|
105
|
+
_dict['valuationPointCode'] = None
|
106
|
+
|
107
|
+
# set to None if previous_valuation_point_code (nullable) is None
|
108
|
+
# and __fields_set__ contains the field
|
109
|
+
if self.previous_valuation_point_code is None and "previous_valuation_point_code" in self.__fields_set__:
|
110
|
+
_dict['previousValuationPointCode'] = None
|
111
|
+
|
100
112
|
# set to None if links (nullable) is None
|
101
113
|
# and __fields_set__ contains the field
|
102
114
|
if self.links is None and "links" in self.__fields_set__:
|
@@ -136,6 +148,8 @@ class ValuationPointDataResponse(BaseModel):
|
|
136
148
|
)
|
137
149
|
if obj.get("shareClassData") is not None
|
138
150
|
else None,
|
151
|
+
"valuation_point_code": obj.get("valuationPointCode"),
|
152
|
+
"previous_valuation_point_code": obj.get("previousValuationPointCode"),
|
139
153
|
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
140
154
|
})
|
141
155
|
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.374
|
4
4
|
Summary: LUSID API
|
5
5
|
Home-page: https://github.com/finbourne/lusid-sdk-python
|
6
6
|
License: MIT
|
@@ -573,26 +573,26 @@ Class | Method | HTTP request | Description
|
|
573
573
|
*TransactionPortfoliosApi* | [**upsert_transactions**](docs/TransactionPortfoliosApi.md#upsert_transactions) | **POST** /api/transactionportfolios/{scope}/{code}/transactions | UpsertTransactions: Upsert transactions
|
574
574
|
*TranslationApi* | [**translate_instrument_definitions**](docs/TranslationApi.md#translate_instrument_definitions) | **POST** /api/translation/instrumentdefinitions | [EXPERIMENTAL] TranslateInstrumentDefinitions: Translate instruments
|
575
575
|
*TranslationApi* | [**translate_trade_tickets**](docs/TranslationApi.md#translate_trade_tickets) | **POST** /api/translation/tradetickets | [EXPERIMENTAL] TranslateTradeTickets: Translate trade ticket
|
576
|
-
*WorkspaceApi* | [**create_personal_item**](docs/WorkspaceApi.md#create_personal_item) | **POST** /api/workspaces/personal/{workspaceName}/items | [
|
577
|
-
*WorkspaceApi* | [**create_personal_workspace**](docs/WorkspaceApi.md#create_personal_workspace) | **POST** /api/workspaces/personal | [
|
578
|
-
*WorkspaceApi* | [**create_shared_item**](docs/WorkspaceApi.md#create_shared_item) | **POST** /api/workspaces/shared/{workspaceName}/items | [
|
579
|
-
*WorkspaceApi* | [**create_shared_workspace**](docs/WorkspaceApi.md#create_shared_workspace) | **POST** /api/workspaces/shared | [
|
580
|
-
*WorkspaceApi* | [**delete_personal_item**](docs/WorkspaceApi.md#delete_personal_item) | **DELETE** /api/workspaces/personal/{workspaceName}/items/{itemName} | [
|
581
|
-
*WorkspaceApi* | [**delete_personal_workspace**](docs/WorkspaceApi.md#delete_personal_workspace) | **DELETE** /api/workspaces/personal/{workspaceName} | [
|
582
|
-
*WorkspaceApi* | [**delete_shared_item**](docs/WorkspaceApi.md#delete_shared_item) | **DELETE** /api/workspaces/shared/{workspaceName}/items/{itemName} | [
|
583
|
-
*WorkspaceApi* | [**delete_shared_workspace**](docs/WorkspaceApi.md#delete_shared_workspace) | **DELETE** /api/workspaces/shared/{workspaceName} | [
|
584
|
-
*WorkspaceApi* | [**get_personal_item**](docs/WorkspaceApi.md#get_personal_item) | **GET** /api/workspaces/personal/{workspaceName}/items/{itemName} | [
|
585
|
-
*WorkspaceApi* | [**get_personal_workspace**](docs/WorkspaceApi.md#get_personal_workspace) | **GET** /api/workspaces/personal/{workspaceName} | [
|
586
|
-
*WorkspaceApi* | [**get_shared_item**](docs/WorkspaceApi.md#get_shared_item) | **GET** /api/workspaces/shared/{workspaceName}/items/{itemName} | [
|
587
|
-
*WorkspaceApi* | [**get_shared_workspace**](docs/WorkspaceApi.md#get_shared_workspace) | **GET** /api/workspaces/shared/{workspaceName} | [
|
588
|
-
*WorkspaceApi* | [**list_personal_items**](docs/WorkspaceApi.md#list_personal_items) | **GET** /api/workspaces/personal/{workspaceName}/items | [
|
589
|
-
*WorkspaceApi* | [**list_personal_workspaces**](docs/WorkspaceApi.md#list_personal_workspaces) | **GET** /api/workspaces/personal | [
|
590
|
-
*WorkspaceApi* | [**list_shared_items**](docs/WorkspaceApi.md#list_shared_items) | **GET** /api/workspaces/shared/{workspaceName}/items | [
|
591
|
-
*WorkspaceApi* | [**list_shared_workspaces**](docs/WorkspaceApi.md#list_shared_workspaces) | **GET** /api/workspaces/shared | [
|
592
|
-
*WorkspaceApi* | [**update_personal_item**](docs/WorkspaceApi.md#update_personal_item) | **PUT** /api/workspaces/personal/{workspaceName}/items/{itemName} | [
|
593
|
-
*WorkspaceApi* | [**update_personal_workspace**](docs/WorkspaceApi.md#update_personal_workspace) | **PUT** /api/workspaces/personal/{workspaceName} | [
|
594
|
-
*WorkspaceApi* | [**update_shared_item**](docs/WorkspaceApi.md#update_shared_item) | **PUT** /api/workspaces/shared/{workspaceName}/items/{itemName} | [
|
595
|
-
*WorkspaceApi* | [**update_shared_workspace**](docs/WorkspaceApi.md#update_shared_workspace) | **PUT** /api/workspaces/shared/{workspaceName} | [
|
576
|
+
*WorkspaceApi* | [**create_personal_item**](docs/WorkspaceApi.md#create_personal_item) | **POST** /api/workspaces/personal/{workspaceName}/items | [EXPERIMENTAL] CreatePersonalItem: Create a new item in a personal workspace.
|
577
|
+
*WorkspaceApi* | [**create_personal_workspace**](docs/WorkspaceApi.md#create_personal_workspace) | **POST** /api/workspaces/personal | [EXPERIMENTAL] CreatePersonalWorkspace: Create a new personal workspace.
|
578
|
+
*WorkspaceApi* | [**create_shared_item**](docs/WorkspaceApi.md#create_shared_item) | **POST** /api/workspaces/shared/{workspaceName}/items | [EXPERIMENTAL] CreateSharedItem: Create a new item in a shared workspace.
|
579
|
+
*WorkspaceApi* | [**create_shared_workspace**](docs/WorkspaceApi.md#create_shared_workspace) | **POST** /api/workspaces/shared | [EXPERIMENTAL] CreateSharedWorkspace: Create a new shared workspace.
|
580
|
+
*WorkspaceApi* | [**delete_personal_item**](docs/WorkspaceApi.md#delete_personal_item) | **DELETE** /api/workspaces/personal/{workspaceName}/items/{itemName} | [EXPERIMENTAL] DeletePersonalItem: Delete an item from a personal workspace.
|
581
|
+
*WorkspaceApi* | [**delete_personal_workspace**](docs/WorkspaceApi.md#delete_personal_workspace) | **DELETE** /api/workspaces/personal/{workspaceName} | [EXPERIMENTAL] DeletePersonalWorkspace: Delete a personal workspace.
|
582
|
+
*WorkspaceApi* | [**delete_shared_item**](docs/WorkspaceApi.md#delete_shared_item) | **DELETE** /api/workspaces/shared/{workspaceName}/items/{itemName} | [EXPERIMENTAL] DeleteSharedItem: Delete an item from a shared workspace.
|
583
|
+
*WorkspaceApi* | [**delete_shared_workspace**](docs/WorkspaceApi.md#delete_shared_workspace) | **DELETE** /api/workspaces/shared/{workspaceName} | [EXPERIMENTAL] DeleteSharedWorkspace: Delete a shared workspace.
|
584
|
+
*WorkspaceApi* | [**get_personal_item**](docs/WorkspaceApi.md#get_personal_item) | **GET** /api/workspaces/personal/{workspaceName}/items/{itemName} | [EXPERIMENTAL] GetPersonalItem: Get a single personal workspace item.
|
585
|
+
*WorkspaceApi* | [**get_personal_workspace**](docs/WorkspaceApi.md#get_personal_workspace) | **GET** /api/workspaces/personal/{workspaceName} | [EXPERIMENTAL] GetPersonalWorkspace: Get a personal workspace.
|
586
|
+
*WorkspaceApi* | [**get_shared_item**](docs/WorkspaceApi.md#get_shared_item) | **GET** /api/workspaces/shared/{workspaceName}/items/{itemName} | [EXPERIMENTAL] GetSharedItem: Get a single shared workspace item.
|
587
|
+
*WorkspaceApi* | [**get_shared_workspace**](docs/WorkspaceApi.md#get_shared_workspace) | **GET** /api/workspaces/shared/{workspaceName} | [EXPERIMENTAL] GetSharedWorkspace: Get a shared workspace.
|
588
|
+
*WorkspaceApi* | [**list_personal_items**](docs/WorkspaceApi.md#list_personal_items) | **GET** /api/workspaces/personal/{workspaceName}/items | [EXPERIMENTAL] ListPersonalItems: List the items in a personal workspace.
|
589
|
+
*WorkspaceApi* | [**list_personal_workspaces**](docs/WorkspaceApi.md#list_personal_workspaces) | **GET** /api/workspaces/personal | [EXPERIMENTAL] ListPersonalWorkspaces: List personal workspaces.
|
590
|
+
*WorkspaceApi* | [**list_shared_items**](docs/WorkspaceApi.md#list_shared_items) | **GET** /api/workspaces/shared/{workspaceName}/items | [EXPERIMENTAL] ListSharedItems: List the items in a shared workspace.
|
591
|
+
*WorkspaceApi* | [**list_shared_workspaces**](docs/WorkspaceApi.md#list_shared_workspaces) | **GET** /api/workspaces/shared | [EXPERIMENTAL] ListSharedWorkspaces: List shared workspaces.
|
592
|
+
*WorkspaceApi* | [**update_personal_item**](docs/WorkspaceApi.md#update_personal_item) | **PUT** /api/workspaces/personal/{workspaceName}/items/{itemName} | [EXPERIMENTAL] UpdatePersonalItem: Update an item in a personal workspace.
|
593
|
+
*WorkspaceApi* | [**update_personal_workspace**](docs/WorkspaceApi.md#update_personal_workspace) | **PUT** /api/workspaces/personal/{workspaceName} | [EXPERIMENTAL] UpdatePersonalWorkspace: Update a personal workspace.
|
594
|
+
*WorkspaceApi* | [**update_shared_item**](docs/WorkspaceApi.md#update_shared_item) | **PUT** /api/workspaces/shared/{workspaceName}/items/{itemName} | [EXPERIMENTAL] UpdateSharedItem: Update an item in a shared workspace.
|
595
|
+
*WorkspaceApi* | [**update_shared_workspace**](docs/WorkspaceApi.md#update_shared_workspace) | **PUT** /api/workspaces/shared/{workspaceName} | [EXPERIMENTAL] UpdateSharedWorkspace: Update a shared workspace.
|
596
596
|
|
597
597
|
|
598
598
|
<a id="documentation-for-models"></a>
|
@@ -968,6 +968,7 @@ Class | Method | HTTP request | Description
|
|
968
968
|
- [GeneralLedgerProfileMapping](docs/GeneralLedgerProfileMapping.md)
|
969
969
|
- [GeneralLedgerProfileRequest](docs/GeneralLedgerProfileRequest.md)
|
970
970
|
- [GeneralLedgerProfileResponse](docs/GeneralLedgerProfileResponse.md)
|
971
|
+
- [GeneratedEventDiagnostics](docs/GeneratedEventDiagnostics.md)
|
971
972
|
- [GetCdsFlowConventionsResponse](docs/GetCdsFlowConventionsResponse.md)
|
972
973
|
- [GetComplexMarketDataResponse](docs/GetComplexMarketDataResponse.md)
|
973
974
|
- [GetCounterpartyAgreementResponse](docs/GetCounterpartyAgreementResponse.md)
|
@@ -1495,6 +1496,7 @@ Class | Method | HTTP request | Description
|
|
1495
1496
|
- [TransactionConfigurationMovementDataRequest](docs/TransactionConfigurationMovementDataRequest.md)
|
1496
1497
|
- [TransactionConfigurationTypeAlias](docs/TransactionConfigurationTypeAlias.md)
|
1497
1498
|
- [TransactionCurrencyAndAmount](docs/TransactionCurrencyAndAmount.md)
|
1499
|
+
- [TransactionDiagnostics](docs/TransactionDiagnostics.md)
|
1498
1500
|
- [TransactionFieldMap](docs/TransactionFieldMap.md)
|
1499
1501
|
- [TransactionPrice](docs/TransactionPrice.md)
|
1500
1502
|
- [TransactionPriceAndType](docs/TransactionPriceAndType.md)
|