lusid-sdk 2.1.832__py3-none-any.whl → 2.1.834__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/timelines_api.py +184 -0
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +4 -0
- lusid/models/closed_period.py +16 -1
- lusid/models/post_close_activities_request.py +85 -0
- lusid/models/post_close_activity.py +81 -0
- {lusid_sdk-2.1.832.dist-info → lusid_sdk-2.1.834.dist-info}/METADATA +4 -1
- {lusid_sdk-2.1.832.dist-info → lusid_sdk-2.1.834.dist-info}/RECORD +10 -8
- {lusid_sdk-2.1.832.dist-info → lusid_sdk-2.1.834.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
@@ -888,6 +888,8 @@ from lusid.models.portfolio_trade_ticket import PortfolioTradeTicket
|
|
888
888
|
from lusid.models.portfolio_type import PortfolioType
|
889
889
|
from lusid.models.portfolio_without_href import PortfolioWithoutHref
|
890
890
|
from lusid.models.portfolios_reconciliation_request import PortfoliosReconciliationRequest
|
891
|
+
from lusid.models.post_close_activities_request import PostCloseActivitiesRequest
|
892
|
+
from lusid.models.post_close_activity import PostCloseActivity
|
891
893
|
from lusid.models.posting_module_details import PostingModuleDetails
|
892
894
|
from lusid.models.posting_module_request import PostingModuleRequest
|
893
895
|
from lusid.models.posting_module_response import PostingModuleResponse
|
@@ -2209,6 +2211,8 @@ __all__ = [
|
|
2209
2211
|
"PortfolioType",
|
2210
2212
|
"PortfolioWithoutHref",
|
2211
2213
|
"PortfoliosReconciliationRequest",
|
2214
|
+
"PostCloseActivitiesRequest",
|
2215
|
+
"PostCloseActivity",
|
2212
2216
|
"PostingModuleDetails",
|
2213
2217
|
"PostingModuleRequest",
|
2214
2218
|
"PostingModuleResponse",
|
lusid/api/timelines_api.py
CHANGED
@@ -32,6 +32,7 @@ from lusid.models.create_timeline_request import CreateTimelineRequest
|
|
32
32
|
from lusid.models.deleted_entity_response import DeletedEntityResponse
|
33
33
|
from lusid.models.paged_resource_list_of_closed_period import PagedResourceListOfClosedPeriod
|
34
34
|
from lusid.models.paged_resource_list_of_timeline import PagedResourceListOfTimeline
|
35
|
+
from lusid.models.post_close_activities_request import PostCloseActivitiesRequest
|
35
36
|
from lusid.models.timeline import Timeline
|
36
37
|
from lusid.models.update_timeline_request import UpdateTimelineRequest
|
37
38
|
|
@@ -1349,6 +1350,189 @@ class TimelinesApi:
|
|
1349
1350
|
_request_auth=_params.get('_request_auth'))
|
1350
1351
|
|
1351
1352
|
|
1353
|
+
@overload
|
1354
|
+
async def set_post_close_activity(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Timeline.")], code : Annotated[StrictStr, Field(..., description="The code of the Timeline.")], closed_period_id : Annotated[StrictStr, Field(..., description="The id of the Closed Period. Together with the scope and code of the Timeline, this uniquely identifies the ClosedPeriod")], post_close_activities_request : Annotated[Optional[PostCloseActivitiesRequest], Field(description="Specifies collection of post close activities")] = None, **kwargs) -> ClosedPeriod: # noqa: E501
|
1355
|
+
...
|
1356
|
+
|
1357
|
+
@overload
|
1358
|
+
def set_post_close_activity(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Timeline.")], code : Annotated[StrictStr, Field(..., description="The code of the Timeline.")], closed_period_id : Annotated[StrictStr, Field(..., description="The id of the Closed Period. Together with the scope and code of the Timeline, this uniquely identifies the ClosedPeriod")], post_close_activities_request : Annotated[Optional[PostCloseActivitiesRequest], Field(description="Specifies collection of post close activities")] = None, async_req: Optional[bool]=True, **kwargs) -> ClosedPeriod: # noqa: E501
|
1359
|
+
...
|
1360
|
+
|
1361
|
+
@validate_arguments
|
1362
|
+
def set_post_close_activity(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Timeline.")], code : Annotated[StrictStr, Field(..., description="The code of the Timeline.")], closed_period_id : Annotated[StrictStr, Field(..., description="The id of the Closed Period. Together with the scope and code of the Timeline, this uniquely identifies the ClosedPeriod")], post_close_activities_request : Annotated[Optional[PostCloseActivitiesRequest], Field(description="Specifies collection of post close activities")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ClosedPeriod, Awaitable[ClosedPeriod]]: # noqa: E501
|
1363
|
+
"""[EXPERIMENTAL] SetPostCloseActivity: Sets post close activities to a closed period. # noqa: E501
|
1364
|
+
|
1365
|
+
Sets empty or more post close activities to the specific closed period. # noqa: E501
|
1366
|
+
This method makes a synchronous HTTP request by default. To make an
|
1367
|
+
asynchronous HTTP request, please pass async_req=True
|
1368
|
+
|
1369
|
+
>>> thread = api.set_post_close_activity(scope, code, closed_period_id, post_close_activities_request, async_req=True)
|
1370
|
+
>>> result = thread.get()
|
1371
|
+
|
1372
|
+
:param scope: The scope of the Timeline. (required)
|
1373
|
+
:type scope: str
|
1374
|
+
:param code: The code of the Timeline. (required)
|
1375
|
+
:type code: str
|
1376
|
+
:param closed_period_id: The id of the Closed Period. Together with the scope and code of the Timeline, this uniquely identifies the ClosedPeriod (required)
|
1377
|
+
:type closed_period_id: str
|
1378
|
+
:param post_close_activities_request: Specifies collection of post close activities
|
1379
|
+
:type post_close_activities_request: PostCloseActivitiesRequest
|
1380
|
+
:param async_req: Whether to execute the request asynchronously.
|
1381
|
+
:type async_req: bool, optional
|
1382
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
1383
|
+
:param opts: Configuration options for this request
|
1384
|
+
:type opts: ConfigurationOptions, optional
|
1385
|
+
:return: Returns the result object.
|
1386
|
+
If the method is called asynchronously,
|
1387
|
+
returns the request thread.
|
1388
|
+
:rtype: ClosedPeriod
|
1389
|
+
"""
|
1390
|
+
kwargs['_return_http_data_only'] = True
|
1391
|
+
if '_preload_content' in kwargs:
|
1392
|
+
message = "Error! Please call the set_post_close_activity_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
1393
|
+
raise ValueError(message)
|
1394
|
+
if async_req is not None:
|
1395
|
+
kwargs['async_req'] = async_req
|
1396
|
+
return self.set_post_close_activity_with_http_info(scope, code, closed_period_id, post_close_activities_request, **kwargs) # noqa: E501
|
1397
|
+
|
1398
|
+
@validate_arguments
|
1399
|
+
def set_post_close_activity_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Timeline.")], code : Annotated[StrictStr, Field(..., description="The code of the Timeline.")], closed_period_id : Annotated[StrictStr, Field(..., description="The id of the Closed Period. Together with the scope and code of the Timeline, this uniquely identifies the ClosedPeriod")], post_close_activities_request : Annotated[Optional[PostCloseActivitiesRequest], Field(description="Specifies collection of post close activities")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
1400
|
+
"""[EXPERIMENTAL] SetPostCloseActivity: Sets post close activities to a closed period. # noqa: E501
|
1401
|
+
|
1402
|
+
Sets empty or more post close activities to the specific closed period. # noqa: E501
|
1403
|
+
This method makes a synchronous HTTP request by default. To make an
|
1404
|
+
asynchronous HTTP request, please pass async_req=True
|
1405
|
+
|
1406
|
+
>>> thread = api.set_post_close_activity_with_http_info(scope, code, closed_period_id, post_close_activities_request, async_req=True)
|
1407
|
+
>>> result = thread.get()
|
1408
|
+
|
1409
|
+
:param scope: The scope of the Timeline. (required)
|
1410
|
+
:type scope: str
|
1411
|
+
:param code: The code of the Timeline. (required)
|
1412
|
+
:type code: str
|
1413
|
+
:param closed_period_id: The id of the Closed Period. Together with the scope and code of the Timeline, this uniquely identifies the ClosedPeriod (required)
|
1414
|
+
:type closed_period_id: str
|
1415
|
+
:param post_close_activities_request: Specifies collection of post close activities
|
1416
|
+
:type post_close_activities_request: PostCloseActivitiesRequest
|
1417
|
+
:param async_req: Whether to execute the request asynchronously.
|
1418
|
+
:type async_req: bool, optional
|
1419
|
+
:param _preload_content: if False, the ApiResponse.data will
|
1420
|
+
be set to none and raw_data will store the
|
1421
|
+
HTTP response body without reading/decoding.
|
1422
|
+
Default is True.
|
1423
|
+
:type _preload_content: bool, optional
|
1424
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
1425
|
+
object with status code, headers, etc
|
1426
|
+
:type _return_http_data_only: bool, optional
|
1427
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
1428
|
+
:param opts: Configuration options for this request
|
1429
|
+
:type opts: ConfigurationOptions, optional
|
1430
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1431
|
+
request; this effectively ignores the authentication
|
1432
|
+
in the spec for a single request.
|
1433
|
+
:type _request_auth: dict, optional
|
1434
|
+
:type _content_type: string, optional: force content-type for the request
|
1435
|
+
:return: Returns the result object.
|
1436
|
+
If the method is called asynchronously,
|
1437
|
+
returns the request thread.
|
1438
|
+
:rtype: tuple(ClosedPeriod, status_code(int), headers(HTTPHeaderDict))
|
1439
|
+
"""
|
1440
|
+
|
1441
|
+
_params = locals()
|
1442
|
+
|
1443
|
+
_all_params = [
|
1444
|
+
'scope',
|
1445
|
+
'code',
|
1446
|
+
'closed_period_id',
|
1447
|
+
'post_close_activities_request'
|
1448
|
+
]
|
1449
|
+
_all_params.extend(
|
1450
|
+
[
|
1451
|
+
'async_req',
|
1452
|
+
'_return_http_data_only',
|
1453
|
+
'_preload_content',
|
1454
|
+
'_request_timeout',
|
1455
|
+
'_request_auth',
|
1456
|
+
'_content_type',
|
1457
|
+
'_headers',
|
1458
|
+
'opts'
|
1459
|
+
]
|
1460
|
+
)
|
1461
|
+
|
1462
|
+
# validate the arguments
|
1463
|
+
for _key, _val in _params['kwargs'].items():
|
1464
|
+
if _key not in _all_params:
|
1465
|
+
raise ApiTypeError(
|
1466
|
+
"Got an unexpected keyword argument '%s'"
|
1467
|
+
" to method set_post_close_activity" % _key
|
1468
|
+
)
|
1469
|
+
_params[_key] = _val
|
1470
|
+
del _params['kwargs']
|
1471
|
+
|
1472
|
+
_collection_formats = {}
|
1473
|
+
|
1474
|
+
# process the path parameters
|
1475
|
+
_path_params = {}
|
1476
|
+
if _params['scope']:
|
1477
|
+
_path_params['scope'] = _params['scope']
|
1478
|
+
|
1479
|
+
if _params['code']:
|
1480
|
+
_path_params['code'] = _params['code']
|
1481
|
+
|
1482
|
+
if _params['closed_period_id']:
|
1483
|
+
_path_params['closedPeriodId'] = _params['closed_period_id']
|
1484
|
+
|
1485
|
+
|
1486
|
+
# process the query parameters
|
1487
|
+
_query_params = []
|
1488
|
+
# process the header parameters
|
1489
|
+
_header_params = dict(_params.get('_headers', {}))
|
1490
|
+
# process the form parameters
|
1491
|
+
_form_params = []
|
1492
|
+
_files = {}
|
1493
|
+
# process the body parameter
|
1494
|
+
_body_params = None
|
1495
|
+
if _params['post_close_activities_request'] is not None:
|
1496
|
+
_body_params = _params['post_close_activities_request']
|
1497
|
+
|
1498
|
+
# set the HTTP header `Accept`
|
1499
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1500
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
1501
|
+
|
1502
|
+
# set the HTTP header `Content-Type`
|
1503
|
+
_content_types_list = _params.get('_content_type',
|
1504
|
+
self.api_client.select_header_content_type(
|
1505
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
|
1506
|
+
if _content_types_list:
|
1507
|
+
_header_params['Content-Type'] = _content_types_list
|
1508
|
+
|
1509
|
+
# authentication setting
|
1510
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
1511
|
+
|
1512
|
+
_response_types_map = {
|
1513
|
+
'200': "ClosedPeriod",
|
1514
|
+
'400': "LusidValidationProblemDetails",
|
1515
|
+
}
|
1516
|
+
|
1517
|
+
return self.api_client.call_api(
|
1518
|
+
'/api/timelines/{scope}/{code}/closedperiods/{closedPeriodId}/postcloseactivity', 'POST',
|
1519
|
+
_path_params,
|
1520
|
+
_query_params,
|
1521
|
+
_header_params,
|
1522
|
+
body=_body_params,
|
1523
|
+
post_params=_form_params,
|
1524
|
+
files=_files,
|
1525
|
+
response_types_map=_response_types_map,
|
1526
|
+
auth_settings=_auth_settings,
|
1527
|
+
async_req=_params.get('async_req'),
|
1528
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1529
|
+
_preload_content=_params.get('_preload_content', True),
|
1530
|
+
_request_timeout=_params.get('_request_timeout'),
|
1531
|
+
opts=_params.get('opts'),
|
1532
|
+
collection_formats=_collection_formats,
|
1533
|
+
_request_auth=_params.get('_request_auth'))
|
1534
|
+
|
1535
|
+
|
1352
1536
|
@overload
|
1353
1537
|
async def update_timeline(self, scope : Annotated[StrictStr, Field(..., description="The scope of the specified Timeline.")], code : Annotated[StrictStr, Field(..., description="The code of the specified Timeline. Together with the domain and scope this uniquely identifies the Timeline.")], update_timeline_request : Annotated[Optional[UpdateTimelineRequest], Field(description="The request containing the updated details of the Timeline")] = None, **kwargs) -> Timeline: # noqa: E501
|
1354
1538
|
...
|
lusid/configuration.py
CHANGED
@@ -445,7 +445,7 @@ class Configuration:
|
|
445
445
|
return "Python SDK Debug Report:\n"\
|
446
446
|
"OS: {env}\n"\
|
447
447
|
"Python Version: {pyversion}\n"\
|
448
|
-
"Version of the API: 0.11.
|
448
|
+
"Version of the API: 0.11.7914\n"\
|
449
449
|
"SDK Package Version: {package_version}".\
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
451
451
|
|
lusid/models/__init__.py
CHANGED
@@ -800,6 +800,8 @@ from lusid.models.portfolio_trade_ticket import PortfolioTradeTicket
|
|
800
800
|
from lusid.models.portfolio_type import PortfolioType
|
801
801
|
from lusid.models.portfolio_without_href import PortfolioWithoutHref
|
802
802
|
from lusid.models.portfolios_reconciliation_request import PortfoliosReconciliationRequest
|
803
|
+
from lusid.models.post_close_activities_request import PostCloseActivitiesRequest
|
804
|
+
from lusid.models.post_close_activity import PostCloseActivity
|
803
805
|
from lusid.models.posting_module_details import PostingModuleDetails
|
804
806
|
from lusid.models.posting_module_request import PostingModuleRequest
|
805
807
|
from lusid.models.posting_module_response import PostingModuleResponse
|
@@ -2034,6 +2036,8 @@ __all__ = [
|
|
2034
2036
|
"PortfolioType",
|
2035
2037
|
"PortfolioWithoutHref",
|
2036
2038
|
"PortfoliosReconciliationRequest",
|
2039
|
+
"PostCloseActivitiesRequest",
|
2040
|
+
"PostCloseActivity",
|
2037
2041
|
"PostingModuleDetails",
|
2038
2042
|
"PostingModuleRequest",
|
2039
2043
|
"PostingModuleResponse",
|
lusid/models/closed_period.py
CHANGED
@@ -22,6 +22,7 @@ from typing import Any, Dict, List, Optional
|
|
22
22
|
from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictStr, conlist
|
23
23
|
from lusid.models.link import Link
|
24
24
|
from lusid.models.model_property import ModelProperty
|
25
|
+
from lusid.models.post_close_activity import PostCloseActivity
|
25
26
|
from lusid.models.version import Version
|
26
27
|
|
27
28
|
class ClosedPeriod(BaseModel):
|
@@ -34,9 +35,10 @@ class ClosedPeriod(BaseModel):
|
|
34
35
|
as_at_closed: Optional[datetime] = Field(None, alias="asAtClosed", description="The asAt closed datetime for the Closed Period")
|
35
36
|
properties: Optional[Dict[str, ModelProperty]] = Field(None, description="The Closed Periods properties. These will be from the 'ClosedPeriod' domain.")
|
36
37
|
version: Optional[Version] = None
|
38
|
+
post_close_activities: Optional[conlist(PostCloseActivity)] = Field(None, alias="postCloseActivities", description="All the post close activities for the closed period.")
|
37
39
|
href: Optional[StrictStr] = Field(None,alias="href", description="The specific Uniform Resource Identifier (URI) for this resource at the requested asAt datetime.")
|
38
40
|
links: Optional[conlist(Link)] = None
|
39
|
-
__properties = ["closedPeriodId", "effectiveStart", "effectiveEnd", "asAtClosed", "properties", "version", "href", "links"]
|
41
|
+
__properties = ["closedPeriodId", "effectiveStart", "effectiveEnd", "asAtClosed", "properties", "version", "postCloseActivities", "href", "links"]
|
40
42
|
|
41
43
|
class Config:
|
42
44
|
"""Pydantic configuration"""
|
@@ -80,6 +82,13 @@ class ClosedPeriod(BaseModel):
|
|
80
82
|
# override the default output from pydantic by calling `to_dict()` of version
|
81
83
|
if self.version:
|
82
84
|
_dict['version'] = self.version.to_dict()
|
85
|
+
# override the default output from pydantic by calling `to_dict()` of each item in post_close_activities (list)
|
86
|
+
_items = []
|
87
|
+
if self.post_close_activities:
|
88
|
+
for _item in self.post_close_activities:
|
89
|
+
if _item:
|
90
|
+
_items.append(_item.to_dict())
|
91
|
+
_dict['postCloseActivities'] = _items
|
83
92
|
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
84
93
|
_items = []
|
85
94
|
if self.links:
|
@@ -97,6 +106,11 @@ class ClosedPeriod(BaseModel):
|
|
97
106
|
if self.properties is None and "properties" in self.__fields_set__:
|
98
107
|
_dict['properties'] = None
|
99
108
|
|
109
|
+
# set to None if post_close_activities (nullable) is None
|
110
|
+
# and __fields_set__ contains the field
|
111
|
+
if self.post_close_activities is None and "post_close_activities" in self.__fields_set__:
|
112
|
+
_dict['postCloseActivities'] = None
|
113
|
+
|
100
114
|
# set to None if href (nullable) is None
|
101
115
|
# and __fields_set__ contains the field
|
102
116
|
if self.href is None and "href" in self.__fields_set__:
|
@@ -130,6 +144,7 @@ class ClosedPeriod(BaseModel):
|
|
130
144
|
if obj.get("properties") is not None
|
131
145
|
else None,
|
132
146
|
"version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
|
147
|
+
"post_close_activities": [PostCloseActivity.from_dict(_item) for _item in obj.get("postCloseActivities")] if obj.get("postCloseActivities") is not None else None,
|
133
148
|
"href": obj.get("href"),
|
134
149
|
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
135
150
|
})
|
@@ -0,0 +1,85 @@
|
|
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 StrictStr, Field, BaseModel, Field, conlist
|
23
|
+
from lusid.models.post_close_activity import PostCloseActivity
|
24
|
+
|
25
|
+
class PostCloseActivitiesRequest(BaseModel):
|
26
|
+
"""
|
27
|
+
PostCloseActivitiesRequest
|
28
|
+
"""
|
29
|
+
post_close_activities: conlist(PostCloseActivity) = Field(..., alias="postCloseActivities", description="Collection of post close activites.")
|
30
|
+
__properties = ["postCloseActivities"]
|
31
|
+
|
32
|
+
class Config:
|
33
|
+
"""Pydantic configuration"""
|
34
|
+
allow_population_by_field_name = True
|
35
|
+
validate_assignment = True
|
36
|
+
|
37
|
+
def __str__(self):
|
38
|
+
"""For `print` and `pprint`"""
|
39
|
+
return pprint.pformat(self.dict(by_alias=False))
|
40
|
+
|
41
|
+
def __repr__(self):
|
42
|
+
"""For `print` and `pprint`"""
|
43
|
+
return self.to_str()
|
44
|
+
|
45
|
+
def to_str(self) -> str:
|
46
|
+
"""Returns the string representation of the model using alias"""
|
47
|
+
return pprint.pformat(self.dict(by_alias=True))
|
48
|
+
|
49
|
+
def to_json(self) -> str:
|
50
|
+
"""Returns the JSON representation of the model using alias"""
|
51
|
+
return json.dumps(self.to_dict())
|
52
|
+
|
53
|
+
@classmethod
|
54
|
+
def from_json(cls, json_str: str) -> PostCloseActivitiesRequest:
|
55
|
+
"""Create an instance of PostCloseActivitiesRequest from a JSON string"""
|
56
|
+
return cls.from_dict(json.loads(json_str))
|
57
|
+
|
58
|
+
def to_dict(self):
|
59
|
+
"""Returns the dictionary representation of the model using alias"""
|
60
|
+
_dict = self.dict(by_alias=True,
|
61
|
+
exclude={
|
62
|
+
},
|
63
|
+
exclude_none=True)
|
64
|
+
# override the default output from pydantic by calling `to_dict()` of each item in post_close_activities (list)
|
65
|
+
_items = []
|
66
|
+
if self.post_close_activities:
|
67
|
+
for _item in self.post_close_activities:
|
68
|
+
if _item:
|
69
|
+
_items.append(_item.to_dict())
|
70
|
+
_dict['postCloseActivities'] = _items
|
71
|
+
return _dict
|
72
|
+
|
73
|
+
@classmethod
|
74
|
+
def from_dict(cls, obj: dict) -> PostCloseActivitiesRequest:
|
75
|
+
"""Create an instance of PostCloseActivitiesRequest from a dict"""
|
76
|
+
if obj is None:
|
77
|
+
return None
|
78
|
+
|
79
|
+
if not isinstance(obj, dict):
|
80
|
+
return PostCloseActivitiesRequest.parse_obj(obj)
|
81
|
+
|
82
|
+
_obj = PostCloseActivitiesRequest.parse_obj({
|
83
|
+
"post_close_activities": [PostCloseActivity.from_dict(_item) for _item in obj.get("postCloseActivities")] if obj.get("postCloseActivities") is not None else None
|
84
|
+
})
|
85
|
+
return _obj
|
@@ -0,0 +1,81 @@
|
|
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
|
+
from datetime import datetime
|
21
|
+
from typing import Any, Dict
|
22
|
+
from pydantic.v1 import StrictStr, Field, BaseModel, Field, constr, validator
|
23
|
+
|
24
|
+
class PostCloseActivity(BaseModel):
|
25
|
+
"""
|
26
|
+
PostCloseActivity
|
27
|
+
"""
|
28
|
+
entity_type: StrictStr = Field(...,alias="entityType")
|
29
|
+
entity_unique_id: StrictStr = Field(...,alias="entityUniqueId")
|
30
|
+
as_at: datetime = Field(..., alias="asAt")
|
31
|
+
__properties = ["entityType", "entityUniqueId", "asAt"]
|
32
|
+
|
33
|
+
class Config:
|
34
|
+
"""Pydantic configuration"""
|
35
|
+
allow_population_by_field_name = True
|
36
|
+
validate_assignment = True
|
37
|
+
|
38
|
+
def __str__(self):
|
39
|
+
"""For `print` and `pprint`"""
|
40
|
+
return pprint.pformat(self.dict(by_alias=False))
|
41
|
+
|
42
|
+
def __repr__(self):
|
43
|
+
"""For `print` and `pprint`"""
|
44
|
+
return self.to_str()
|
45
|
+
|
46
|
+
def to_str(self) -> str:
|
47
|
+
"""Returns the string representation of the model using alias"""
|
48
|
+
return pprint.pformat(self.dict(by_alias=True))
|
49
|
+
|
50
|
+
def to_json(self) -> str:
|
51
|
+
"""Returns the JSON representation of the model using alias"""
|
52
|
+
return json.dumps(self.to_dict())
|
53
|
+
|
54
|
+
@classmethod
|
55
|
+
def from_json(cls, json_str: str) -> PostCloseActivity:
|
56
|
+
"""Create an instance of PostCloseActivity from a JSON string"""
|
57
|
+
return cls.from_dict(json.loads(json_str))
|
58
|
+
|
59
|
+
def to_dict(self):
|
60
|
+
"""Returns the dictionary representation of the model using alias"""
|
61
|
+
_dict = self.dict(by_alias=True,
|
62
|
+
exclude={
|
63
|
+
},
|
64
|
+
exclude_none=True)
|
65
|
+
return _dict
|
66
|
+
|
67
|
+
@classmethod
|
68
|
+
def from_dict(cls, obj: dict) -> PostCloseActivity:
|
69
|
+
"""Create an instance of PostCloseActivity from a dict"""
|
70
|
+
if obj is None:
|
71
|
+
return None
|
72
|
+
|
73
|
+
if not isinstance(obj, dict):
|
74
|
+
return PostCloseActivity.parse_obj(obj)
|
75
|
+
|
76
|
+
_obj = PostCloseActivity.parse_obj({
|
77
|
+
"entity_type": obj.get("entityType"),
|
78
|
+
"entity_unique_id": obj.get("entityUniqueId"),
|
79
|
+
"as_at": obj.get("asAt")
|
80
|
+
})
|
81
|
+
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.834
|
4
4
|
Summary: LUSID API
|
5
5
|
Home-page: https://github.com/finbourne/lusid-sdk-python
|
6
6
|
License: MIT
|
@@ -588,6 +588,7 @@ Class | Method | HTTP request | Description
|
|
588
588
|
*TimelinesApi* | [**get_timeline**](docs/TimelinesApi.md#get_timeline) | **GET** /api/timelines/{scope}/{code} | [EXPERIMENTAL] GetTimeline: Get a single Timeline by scope and code.
|
589
589
|
*TimelinesApi* | [**list_closed_periods**](docs/TimelinesApi.md#list_closed_periods) | **GET** /api/timelines/{scope}/{code}/closedperiods | [EXPERIMENTAL] ListClosedPeriods: List ClosedPeriods for a specified Timeline.
|
590
590
|
*TimelinesApi* | [**list_timelines**](docs/TimelinesApi.md#list_timelines) | **GET** /api/timelines | [EXPERIMENTAL] ListTimelines: List Timelines
|
591
|
+
*TimelinesApi* | [**set_post_close_activity**](docs/TimelinesApi.md#set_post_close_activity) | **POST** /api/timelines/{scope}/{code}/closedperiods/{closedPeriodId}/postcloseactivity | [EXPERIMENTAL] SetPostCloseActivity: Sets post close activities to a closed period.
|
591
592
|
*TimelinesApi* | [**update_timeline**](docs/TimelinesApi.md#update_timeline) | **PUT** /api/timelines/{scope}/{code} | [EXPERIMENTAL] UpdateTimeline: Update Timeline defined by scope and code
|
592
593
|
*TransactionConfigurationApi* | [**delete_side_definition**](docs/TransactionConfigurationApi.md#delete_side_definition) | **DELETE** /api/transactionconfiguration/sides/{side}/$delete | DeleteSideDefinition: Delete the given side definition
|
593
594
|
*TransactionConfigurationApi* | [**delete_transaction_type**](docs/TransactionConfigurationApi.md#delete_transaction_type) | **DELETE** /api/transactionconfiguration/types/{source}/{type} | DeleteTransactionType: Delete a transaction type
|
@@ -1450,6 +1451,8 @@ Class | Method | HTTP request | Description
|
|
1450
1451
|
- [PortfolioType](docs/PortfolioType.md)
|
1451
1452
|
- [PortfolioWithoutHref](docs/PortfolioWithoutHref.md)
|
1452
1453
|
- [PortfoliosReconciliationRequest](docs/PortfoliosReconciliationRequest.md)
|
1454
|
+
- [PostCloseActivitiesRequest](docs/PostCloseActivitiesRequest.md)
|
1455
|
+
- [PostCloseActivity](docs/PostCloseActivity.md)
|
1453
1456
|
- [PostingModuleDetails](docs/PostingModuleDetails.md)
|
1454
1457
|
- [PostingModuleRequest](docs/PostingModuleRequest.md)
|
1455
1458
|
- [PostingModuleResponse](docs/PostingModuleResponse.md)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
lusid/__init__.py,sha256=
|
1
|
+
lusid/__init__.py,sha256=FVnh-lnd0w2XHDW5bwyMh1L-KOdt8tzElkfTMcFPuzw,139345
|
2
2
|
lusid/api/__init__.py,sha256=rDMCQ5xxj5K43PAE4v9joIu4G8XxM2QNi2Dj0vFQA8A,6471
|
3
3
|
lusid/api/abor_api.py,sha256=N7Wsh0395mXOvpJI8z0Nrx5OY4nCP5FN9RkbtdHaZbM,165987
|
4
4
|
lusid/api/abor_configuration_api.py,sha256=xQ9HcXm02eDFhCdWUHjqFRWl1oQMxm2LNObJ9kcLauU,84216
|
@@ -68,7 +68,7 @@ lusid/api/staging_rule_set_api.py,sha256=o8yWhEq7HE8bymtpFD7WLxpBqLO_dTVGBcAotXM
|
|
68
68
|
lusid/api/structured_result_data_api.py,sha256=BgLu6f0yTUHWjQOh5ltfo5ljkkpZNaJEurt1jLDsQTk,109631
|
69
69
|
lusid/api/system_configuration_api.py,sha256=3PuuDkrHZ9qK1gtT8G_zqGZUWeHVGSkxksmuaSHqEO0,61496
|
70
70
|
lusid/api/tax_rule_sets_api.py,sha256=ia8zjTdwlgLGC8KDWFBT21agOrfWgn1zC_ik75mNDJM,48920
|
71
|
-
lusid/api/timelines_api.py,sha256=
|
71
|
+
lusid/api/timelines_api.py,sha256=uxSMdLi9dI6y8LSaezsLXEVedy9I7A-k22RAKY0Rw4k,109878
|
72
72
|
lusid/api/transaction_configuration_api.py,sha256=OHs853-U1RWs2oApEO3raiMxixxiMQMcXu566qsm5v4,103968
|
73
73
|
lusid/api/transaction_fees_api.py,sha256=r8Gl44-WYZebyJ_Uw2stLsf3-hPi1bK6Ij64Kx0L6A8,62698
|
74
74
|
lusid/api/transaction_portfolios_api.py,sha256=qh9xEM59bCZRP_u-f-yo3SYnsVBs6YgiF_-iLHJsn2Y,608793
|
@@ -77,7 +77,7 @@ lusid/api/translation_api.py,sha256=xpRuTfwQvYBlWe6r_L2EI_uVpXqHFnEOim-i-kVQ85E,
|
|
77
77
|
lusid/api/workspace_api.py,sha256=0pCNi3ZCRbIo0NXKa85XE7vtq0WV5YOKcQKvFlcLUaY,120708
|
78
78
|
lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
|
79
79
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
80
|
-
lusid/configuration.py,sha256=
|
80
|
+
lusid/configuration.py,sha256=Mi_E6qZDd2DxDx9pgTJEacE2r4Wm34RHarJp0K3QjfQ,17972
|
81
81
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
82
82
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
83
83
|
lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
|
@@ -92,7 +92,7 @@ lusid/extensions/rest.py,sha256=dp-bD_LMR2zAL1tmC3-urhWKLomXx7r5iGN1VteMBVQ,1601
|
|
92
92
|
lusid/extensions/retry.py,sha256=EhW9OKJmGHipxN3H7eROH5DiMlAnfBVl95NQrttcsdg,14834
|
93
93
|
lusid/extensions/socket_keep_alive.py,sha256=eX5ICvGfVzUCGIm80Q2RknfFZrBQAdnrcpY61M29V_k,1997
|
94
94
|
lusid/extensions/tcp_keep_alive_connector.py,sha256=zaGtUsygRsxB1_4B3x39K3ILwztdhMLDv5bFZV7zmGE,3877
|
95
|
-
lusid/models/__init__.py,sha256=
|
95
|
+
lusid/models/__init__.py,sha256=CBmQ1nFbAgRLEVPG966OJIdelz9b9KlR1DAlGk-16K0,131842
|
96
96
|
lusid/models/a2_b_breakdown.py,sha256=-FXgILrvtZXQDmvS0ARaJVGBq5LJ4AH-o3HjujFVmS4,3198
|
97
97
|
lusid/models/a2_b_category.py,sha256=WunXUgx-dCnApPeLC8Qo5tVCX8Ywxkehib1vmNqNgNs,2957
|
98
98
|
lusid/models/a2_b_data_record.py,sha256=qANTmV1_HUEo4l72-F8qzZjlQxOe0Onc9WPz7h-WWuY,9993
|
@@ -257,7 +257,7 @@ lusid/models/cleardown_module_rules_updated_response.py,sha256=--6ZDHxzxo-0EIsYR
|
|
257
257
|
lusid/models/client.py,sha256=t7yVbuXaC_wJ257hukCcLW87GvteZnW4tlRHl_KPO-o,2234
|
258
258
|
lusid/models/close_event.py,sha256=reoMKKJsnvRv_xnMFiaHe3NeZe9Nhj34Ecm1iBnuMFE,10850
|
259
259
|
lusid/models/close_period_diary_entry_request.py,sha256=HnYoDoTcRLIKYIfNYruNC9yj0zrVYna-zXrDPHOS1U0,5984
|
260
|
-
lusid/models/closed_period.py,sha256=
|
260
|
+
lusid/models/closed_period.py,sha256=gH8zC3mhfMOU3Yhz7ioJ2FSaqLHh_Z76UFFBCDEDNdo,6717
|
261
261
|
lusid/models/comparison_attribute_value_pair.py,sha256=wPo-IwyJpBLsUqLw-hKKDrJNDdaJrGyuBBq0wNEzHR8,2650
|
262
262
|
lusid/models/complete_portfolio.py,sha256=k7O7fogxDbgSRDQtp5YyUOcMA21uikrnHmndwPSG22A,11177
|
263
263
|
lusid/models/complete_relation.py,sha256=HAUtMpB_mltP6w9QUO-i65QRp5cVrderHdwH5AD0Rq4,4116
|
@@ -879,6 +879,8 @@ lusid/models/portfolio_trade_ticket.py,sha256=pgw99iUdLSvgodVQls2GOWsuEVeGaeuCaL
|
|
879
879
|
lusid/models/portfolio_type.py,sha256=XHcZsPtustyCONxmAatGhGD2BYfIWeqIA1JDzuByzvo,750
|
880
880
|
lusid/models/portfolio_without_href.py,sha256=G9VZgQpvZ2rO3nCZ6f5NWjRDWRs16c5Dq-0wBlmhZ8o,19656
|
881
881
|
lusid/models/portfolios_reconciliation_request.py,sha256=D9HtzrQergD8WUrBHF99seCQIUlm57Yb4ARaeE0W3LA,3233
|
882
|
+
lusid/models/post_close_activities_request.py,sha256=qnJWJqVKnMPUFjdxvHvOMOHoOJwpzzqbO9jd9lXAIXs,2827
|
883
|
+
lusid/models/post_close_activity.py,sha256=IUlcfMN8hhElDservqvQ7-njCxVDa3VZy4IXvWR2pxQ,2386
|
882
884
|
lusid/models/posting_module_details.py,sha256=rJCJbqpPVuUQq6LqqYRCBqjjyRz4UlDPA6QhdBg8nFw,2839
|
883
885
|
lusid/models/posting_module_request.py,sha256=qIxAFl-cfphe0wrr_aALyBs4xoVBEE6b7ZKQulw1p5o,3695
|
884
886
|
lusid/models/posting_module_response.py,sha256=3MOpBPlcKLMlDRSTtue5BTw3WrEwmTisU134Ao28Svs,5963
|
@@ -1326,6 +1328,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
|
|
1326
1328
|
lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
|
1327
1329
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1328
1330
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1329
|
-
lusid_sdk-2.1.
|
1330
|
-
lusid_sdk-2.1.
|
1331
|
-
lusid_sdk-2.1.
|
1331
|
+
lusid_sdk-2.1.834.dist-info/METADATA,sha256=SgLE6_YcDqpoPd1OR0YA7C6Utukv44hkoThu-XDY7fk,222326
|
1332
|
+
lusid_sdk-2.1.834.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
1333
|
+
lusid_sdk-2.1.834.dist-info/RECORD,,
|
File without changes
|