lusid-sdk 2.1.81__py3-none-any.whl → 2.1.86__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/api/entities_api.py +4 -4
- lusid/api_response.py +1 -1
- lusid/configuration.py +1 -1
- lusid/models/portfolio_entity.py +33 -5
- lusid/models/version.py +10 -2
- {lusid_sdk-2.1.81.dist-info → lusid_sdk-2.1.86.dist-info}/METADATA +3 -3
- {lusid_sdk-2.1.81.dist-info → lusid_sdk-2.1.86.dist-info}/RECORD +8 -8
- {lusid_sdk-2.1.81.dist-info → lusid_sdk-2.1.86.dist-info}/WHEEL +0 -0
lusid/api/entities_api.py
CHANGED
|
@@ -50,15 +50,15 @@ class EntitiesApi:
|
|
|
50
50
|
self.api_client = api_client
|
|
51
51
|
|
|
52
52
|
@overload
|
|
53
|
-
async def get_portfolio_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
|
53
|
+
async def get_portfolio_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=40, min_length=30), Field(..., description="The universally unique identifier of the portfolio definition.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to retrieve the portfolio definition. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the portfolio definition. Defaults to returning the latest version of the portfolio definition if not specified.")] = None, **kwargs) -> PortfolioEntity: # noqa: E501
|
|
54
54
|
...
|
|
55
55
|
|
|
56
56
|
@overload
|
|
57
|
-
def get_portfolio_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
|
57
|
+
def get_portfolio_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=40, min_length=30), Field(..., description="The universally unique identifier of the portfolio definition.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to retrieve the portfolio definition. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the portfolio definition. Defaults to returning the latest version of the portfolio definition if not specified.")] = None, async_req: Optional[bool]=True, **kwargs) -> PortfolioEntity: # noqa: E501
|
|
58
58
|
...
|
|
59
59
|
|
|
60
60
|
@validate_arguments
|
|
61
|
-
def get_portfolio_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
|
61
|
+
def get_portfolio_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=40, min_length=30), Field(..., description="The universally unique identifier of the portfolio definition.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to retrieve the portfolio definition. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the portfolio definition. Defaults to returning the latest version of the portfolio definition if not specified.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[PortfolioEntity, Awaitable[PortfolioEntity]]: # noqa: E501
|
|
62
62
|
"""[EXPERIMENTAL] GetPortfolioByEntityUniqueId: Get portfolio by EntityUniqueId # noqa: E501
|
|
63
63
|
|
|
64
64
|
Retrieve the definition of a particular portfolio. If the portfolio is deleted, this will return the state of the portfolio immediately prior to deletion. # noqa: E501
|
|
@@ -94,7 +94,7 @@ class EntitiesApi:
|
|
|
94
94
|
return self.get_portfolio_by_entity_unique_id_with_http_info(entity_unique_id, effective_at, as_at, **kwargs) # noqa: E501
|
|
95
95
|
|
|
96
96
|
@validate_arguments
|
|
97
|
-
def get_portfolio_by_entity_unique_id_with_http_info(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
|
97
|
+
def get_portfolio_by_entity_unique_id_with_http_info(self, entity_unique_id : Annotated[constr(strict=True, max_length=40, min_length=30), Field(..., description="The universally unique identifier of the portfolio definition.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to retrieve the portfolio definition. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the portfolio definition. Defaults to returning the latest version of the portfolio definition if not specified.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
98
98
|
"""[EXPERIMENTAL] GetPortfolioByEntityUniqueId: Get portfolio by EntityUniqueId # noqa: E501
|
|
99
99
|
|
|
100
100
|
Retrieve the definition of a particular portfolio. If the portfolio is deleted, this will return the state of the portfolio immediately prior to deletion. # noqa: E501
|
lusid/api_response.py
CHANGED
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.6521\n"\
|
|
377
377
|
"SDK Package Version: {package_version}".\
|
|
378
378
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
|
379
379
|
|
lusid/models/portfolio_entity.py
CHANGED
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from typing import Any, Dict, List, Optional
|
|
22
|
-
from pydantic.v1 import BaseModel, Field, StrictStr, conlist, constr
|
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictInt, StrictStr, conlist, constr
|
|
23
23
|
from lusid.models.link import Link
|
|
24
24
|
from lusid.models.portfolio_without_href import PortfolioWithoutHref
|
|
25
25
|
|
|
@@ -28,13 +28,17 @@ class PortfolioEntity(BaseModel):
|
|
|
28
28
|
A list of portfolios. # noqa: E501
|
|
29
29
|
"""
|
|
30
30
|
href: StrictStr = Field(..., description="The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.")
|
|
31
|
-
entity_unique_id: constr(strict=True, min_length=1) = Field(..., alias="entityUniqueId", description="The unique id of the entity")
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
entity_unique_id: constr(strict=True, min_length=1) = Field(..., alias="entityUniqueId", description="The unique id of the entity.")
|
|
32
|
+
as_at_version_number: Optional[StrictInt] = Field(None, alias="asAtVersionNumber", description="The integer version number for the entity (the entity was created at version 1)")
|
|
33
|
+
status: constr(strict=True, min_length=1) = Field(..., description="The status of the entity at the current time.")
|
|
34
|
+
as_at_deleted: Optional[datetime] = Field(None, alias="asAtDeleted", description="The asAt datetime at which the entity was deleted.")
|
|
35
|
+
user_id_deleted: Optional[StrictStr] = Field(None, alias="userIdDeleted", description="The unique id of the user who deleted the entity.")
|
|
36
|
+
request_id_deleted: Optional[StrictStr] = Field(None, alias="requestIdDeleted", description="The unique request id of the command that deleted the entity.")
|
|
37
|
+
effective_at_created: Optional[datetime] = Field(None, alias="effectiveAtCreated", description="The EffectiveAt this Entity is created, if entity does not currently exist in EffectiveAt.")
|
|
34
38
|
prevailing_portfolio: Optional[PortfolioWithoutHref] = Field(None, alias="prevailingPortfolio")
|
|
35
39
|
deleted_portfolio: Optional[PortfolioWithoutHref] = Field(None, alias="deletedPortfolio")
|
|
36
40
|
links: Optional[conlist(Link)] = None
|
|
37
|
-
__properties = ["href", "entityUniqueId", "status", "effectiveAtCreated", "prevailingPortfolio", "deletedPortfolio", "links"]
|
|
41
|
+
__properties = ["href", "entityUniqueId", "asAtVersionNumber", "status", "asAtDeleted", "userIdDeleted", "requestIdDeleted", "effectiveAtCreated", "prevailingPortfolio", "deletedPortfolio", "links"]
|
|
38
42
|
|
|
39
43
|
class Config:
|
|
40
44
|
"""Pydantic configuration"""
|
|
@@ -73,6 +77,26 @@ class PortfolioEntity(BaseModel):
|
|
|
73
77
|
if _item:
|
|
74
78
|
_items.append(_item.to_dict())
|
|
75
79
|
_dict['links'] = _items
|
|
80
|
+
# set to None if as_at_version_number (nullable) is None
|
|
81
|
+
# and __fields_set__ contains the field
|
|
82
|
+
if self.as_at_version_number is None and "as_at_version_number" in self.__fields_set__:
|
|
83
|
+
_dict['asAtVersionNumber'] = None
|
|
84
|
+
|
|
85
|
+
# set to None if as_at_deleted (nullable) is None
|
|
86
|
+
# and __fields_set__ contains the field
|
|
87
|
+
if self.as_at_deleted is None and "as_at_deleted" in self.__fields_set__:
|
|
88
|
+
_dict['asAtDeleted'] = None
|
|
89
|
+
|
|
90
|
+
# set to None if user_id_deleted (nullable) is None
|
|
91
|
+
# and __fields_set__ contains the field
|
|
92
|
+
if self.user_id_deleted is None and "user_id_deleted" in self.__fields_set__:
|
|
93
|
+
_dict['userIdDeleted'] = None
|
|
94
|
+
|
|
95
|
+
# set to None if request_id_deleted (nullable) is None
|
|
96
|
+
# and __fields_set__ contains the field
|
|
97
|
+
if self.request_id_deleted is None and "request_id_deleted" in self.__fields_set__:
|
|
98
|
+
_dict['requestIdDeleted'] = None
|
|
99
|
+
|
|
76
100
|
# set to None if effective_at_created (nullable) is None
|
|
77
101
|
# and __fields_set__ contains the field
|
|
78
102
|
if self.effective_at_created is None and "effective_at_created" in self.__fields_set__:
|
|
@@ -97,7 +121,11 @@ class PortfolioEntity(BaseModel):
|
|
|
97
121
|
_obj = PortfolioEntity.parse_obj({
|
|
98
122
|
"href": obj.get("href"),
|
|
99
123
|
"entity_unique_id": obj.get("entityUniqueId"),
|
|
124
|
+
"as_at_version_number": obj.get("asAtVersionNumber"),
|
|
100
125
|
"status": obj.get("status"),
|
|
126
|
+
"as_at_deleted": obj.get("asAtDeleted"),
|
|
127
|
+
"user_id_deleted": obj.get("userIdDeleted"),
|
|
128
|
+
"request_id_deleted": obj.get("requestIdDeleted"),
|
|
101
129
|
"effective_at_created": obj.get("effectiveAtCreated"),
|
|
102
130
|
"prevailing_portfolio": PortfolioWithoutHref.from_dict(obj.get("prevailingPortfolio")) if obj.get("prevailingPortfolio") is not None else None,
|
|
103
131
|
"deleted_portfolio": PortfolioWithoutHref.from_dict(obj.get("deletedPortfolio")) if obj.get("deletedPortfolio") is not None else None,
|
lusid/models/version.py
CHANGED
|
@@ -35,7 +35,8 @@ class Version(BaseModel):
|
|
|
35
35
|
request_id_modified: Optional[StrictStr] = Field(None, alias="requestIdModified", description="The unique request id of the command that last updated the entity (including its properties) in LUSID.")
|
|
36
36
|
as_at_version_number: Optional[StrictInt] = Field(None, alias="asAtVersionNumber", description="The integer version number for the entity (the entity was created at version 1)")
|
|
37
37
|
entity_unique_id: Optional[StrictStr] = Field(None, alias="entityUniqueId", description="The unique id of the entity")
|
|
38
|
-
|
|
38
|
+
staged_modification_id_modified: Optional[StrictStr] = Field(None, alias="stagedModificationIdModified", description="The ID of the staged change that resulted in the most recent modification.")
|
|
39
|
+
__properties = ["effectiveFrom", "asAtDate", "asAtCreated", "userIdCreated", "requestIdCreated", "asAtModified", "userIdModified", "requestIdModified", "asAtVersionNumber", "entityUniqueId", "stagedModificationIdModified"]
|
|
39
40
|
|
|
40
41
|
class Config:
|
|
41
42
|
"""Pydantic configuration"""
|
|
@@ -59,6 +60,7 @@ class Version(BaseModel):
|
|
|
59
60
|
"""Returns the dictionary representation of the model using alias"""
|
|
60
61
|
_dict = self.dict(by_alias=True,
|
|
61
62
|
exclude={
|
|
63
|
+
"staged_modification_id_modified",
|
|
62
64
|
},
|
|
63
65
|
exclude_none=True)
|
|
64
66
|
# set to None if as_at_created (nullable) is None
|
|
@@ -101,6 +103,11 @@ class Version(BaseModel):
|
|
|
101
103
|
if self.entity_unique_id is None and "entity_unique_id" in self.__fields_set__:
|
|
102
104
|
_dict['entityUniqueId'] = None
|
|
103
105
|
|
|
106
|
+
# set to None if staged_modification_id_modified (nullable) is None
|
|
107
|
+
# and __fields_set__ contains the field
|
|
108
|
+
if self.staged_modification_id_modified is None and "staged_modification_id_modified" in self.__fields_set__:
|
|
109
|
+
_dict['stagedModificationIdModified'] = None
|
|
110
|
+
|
|
104
111
|
return _dict
|
|
105
112
|
|
|
106
113
|
@classmethod
|
|
@@ -122,6 +129,7 @@ class Version(BaseModel):
|
|
|
122
129
|
"user_id_modified": obj.get("userIdModified"),
|
|
123
130
|
"request_id_modified": obj.get("requestIdModified"),
|
|
124
131
|
"as_at_version_number": obj.get("asAtVersionNumber"),
|
|
125
|
-
"entity_unique_id": obj.get("entityUniqueId")
|
|
132
|
+
"entity_unique_id": obj.get("entityUniqueId"),
|
|
133
|
+
"staged_modification_id_modified": obj.get("stagedModificationIdModified")
|
|
126
134
|
})
|
|
127
135
|
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.86
|
|
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.6521
|
|
33
|
+
- Package version: 2.1.86
|
|
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
|
|
|
@@ -22,7 +22,7 @@ lusid/api/custom_entity_types_api.py,sha256=fLeAZaJ9Gdkfkr_UVDuqueiIxuN_5ri80dvq
|
|
|
22
22
|
lusid/api/cut_label_definitions_api.py,sha256=7sroMqRhrOXdJlHQJ6f4NbqDRwOh7ewfY2yHGopZ7KM,47049
|
|
23
23
|
lusid/api/data_types_api.py,sha256=OiQL4CRxwWd06DovdcLZbOqPx4AfbwYQ9yXYtaRqWWc,77801
|
|
24
24
|
lusid/api/derived_transaction_portfolios_api.py,sha256=cKv5mKNmTiuHzWGwupwcSBibj3Ncwv88GiEJSqmAbCY,20227
|
|
25
|
-
lusid/api/entities_api.py,sha256=
|
|
25
|
+
lusid/api/entities_api.py,sha256=kPVPA2CR-mXWhSHLga-l3R4fyhx69S7vfU47te42wng,21372
|
|
26
26
|
lusid/api/executions_api.py,sha256=84zjdPPCPB-aBjM5ntqTcEJa_kSqBSqdtqh47b0a_UY,44435
|
|
27
27
|
lusid/api/funds_api.py,sha256=s2xo4yrQeNs06nvCeDCedD7T2aB-XW8nO-ftAPG4kEk,122388
|
|
28
28
|
lusid/api/instrument_event_types_api.py,sha256=shwiW-AatQw-mEwD-TS1d8M2AtV62gqvfF3utyIqe0Y,81546
|
|
@@ -64,8 +64,8 @@ lusid/api/transaction_fees_api.py,sha256=xVH3EPyc0clDSNivBO57PsKxaVNT3evVvPdfYWo
|
|
|
64
64
|
lusid/api/transaction_portfolios_api.py,sha256=q6AoYasxV3LQDossmM2BdJSo3arh526yUW34VPbxGmE,555070
|
|
65
65
|
lusid/api/translation_api.py,sha256=xTAaKEW96JTDIZBXCjxSguCa7Gz4oVd5jdObUE2egwo,20092
|
|
66
66
|
lusid/api_client.py,sha256=dF6l9RAsdxdQjf6Qn4ny6LB-QXlJmsscWiozCvyyBFA,30709
|
|
67
|
-
lusid/api_response.py,sha256=
|
|
68
|
-
lusid/configuration.py,sha256=
|
|
67
|
+
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
|
68
|
+
lusid/configuration.py,sha256=SB3eUjzjiCoQ9p040VkxUWP78FZNbHVXO4MlRYJbbvg,14404
|
|
69
69
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
|
70
70
|
lusid/extensions/__init__.py,sha256=DeUuQP7yTcklJH7LT-bw9wQhKEggcs1KwQbPbFcOlhw,560
|
|
71
71
|
lusid/extensions/api_client.py,sha256=Ob06urm4Em3MLzgP_geyeeGsPCkU225msW_1kpIeABM,30567
|
|
@@ -645,7 +645,7 @@ lusid/models/portfolio.py,sha256=LqGIRKBYS8kQbmmhiz8gzwPLRuRfnQIZjFtuQ-CV-gY,121
|
|
|
645
645
|
lusid/models/portfolio_cash_flow.py,sha256=Apnb2tfP3bJrBjhH69OLwiAOvn7lApH791owxr1wC8A,8997
|
|
646
646
|
lusid/models/portfolio_cash_ladder.py,sha256=cZHdUI-PZuLYXlQDxcA9zCTRPX_cHZy0-qHng9bRggU,5462
|
|
647
647
|
lusid/models/portfolio_details.py,sha256=NABbe06Xp0cl54_HwYeUsko51op7oFVlMqCENEaQVWs,9198
|
|
648
|
-
lusid/models/portfolio_entity.py,sha256=
|
|
648
|
+
lusid/models/portfolio_entity.py,sha256=9MGRDnwA5yuEhUXgOqtIoES2QYACvaIwXJSWBk4VnfI,6594
|
|
649
649
|
lusid/models/portfolio_entity_id.py,sha256=Q6Y2BocHtfoMiSWaJJqoidwPeQeaDtM_A2Qi9ufesXk,3941
|
|
650
650
|
lusid/models/portfolio_group.py,sha256=pt4ZLAFaXINyx9d8BQ9zZAlj9lIWAzVVWsQpty2PgZA,7106
|
|
651
651
|
lusid/models/portfolio_group_id_compliance_parameter.py,sha256=EKTEIf0siRNSh4j7CHdl_QOgsDPBMKff3KJ6DP8rX7I,5521
|
|
@@ -999,7 +999,7 @@ lusid/models/value_type.py,sha256=jHK4tNBGG6VZsoUobxgcuY59JiMYF7YVSqu_tyYyL8U,12
|
|
|
999
999
|
lusid/models/vendor_dependency.py,sha256=aoSaZxqR2Sa-oE9DAggXJMoXqnPsej_v1lcmOuwqmsM,4307
|
|
1000
1000
|
lusid/models/vendor_library.py,sha256=Fx8zktN5UuefXUGb27Pgw-N3grsyVMvjOs_3Lw_S4Ow,812
|
|
1001
1001
|
lusid/models/vendor_model_rule.py,sha256=lsuNCUYeK86M2S2iJdkTkFzqFBqFOpIutIuV40X9Nlo,6263
|
|
1002
|
-
lusid/models/version.py,sha256=
|
|
1002
|
+
lusid/models/version.py,sha256=_IlO_C6dsWF0rU4duap_dszj2wqPYGm5QvAWP_ZBw5o,6791
|
|
1003
1003
|
lusid/models/version_summary_dto.py,sha256=EjzyYugLxgsO8_myJU-egpQhRKdYD8AIljKRE2hZh14,3584
|
|
1004
1004
|
lusid/models/versioned_resource_list_of_a2_b_data_record.py,sha256=3X4yY5NWFUONWvWDFU4y6xne9BTmYIzI4Mh31_Cb0QY,4522
|
|
1005
1005
|
lusid/models/versioned_resource_list_of_a2_b_movement_record.py,sha256=rTddKkdkTeYGLNi00LwFiyva2i_ayLiNQ3-flIhdj8I,4570
|
|
@@ -1021,6 +1021,6 @@ lusid/models/weighted_instruments.py,sha256=1y_y_vw4-LPsbkQx4FOzWdZc5fJnzhVkf1D3
|
|
|
1021
1021
|
lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
|
|
1022
1022
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1023
1023
|
lusid/rest.py,sha256=TNUzQ3yLNT2L053EdR7R0vNzQh2J3TlYD1T56Dye0W0,10138
|
|
1024
|
-
lusid_sdk-2.1.
|
|
1025
|
-
lusid_sdk-2.1.
|
|
1026
|
-
lusid_sdk-2.1.
|
|
1024
|
+
lusid_sdk-2.1.86.dist-info/METADATA,sha256=2QIVwRHeFi2I-cGAG1aWgIHgZoc8w4pER6IFFJcafr4,180503
|
|
1025
|
+
lusid_sdk-2.1.86.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
1026
|
+
lusid_sdk-2.1.86.dist-info/RECORD,,
|
|
File without changes
|