lusid-sdk 2.1.640__py3-none-any.whl → 2.1.641__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 +2 -0
- lusid/api/timelines_api.py +216 -3
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +2 -0
- lusid/models/paged_resource_list_of_closed_period.py +113 -0
- {lusid_sdk-2.1.640.dist-info → lusid_sdk-2.1.641.dist-info}/METADATA +3 -1
- {lusid_sdk-2.1.640.dist-info → lusid_sdk-2.1.641.dist-info}/RECORD +8 -7
- {lusid_sdk-2.1.640.dist-info → lusid_sdk-2.1.641.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
@@ -740,6 +740,7 @@ from lusid.models.paged_resource_list_of_calendar import PagedResourceListOfCale
|
|
740
740
|
from lusid.models.paged_resource_list_of_chart_of_accounts import PagedResourceListOfChartOfAccounts
|
741
741
|
from lusid.models.paged_resource_list_of_cleardown_module_response import PagedResourceListOfCleardownModuleResponse
|
742
742
|
from lusid.models.paged_resource_list_of_cleardown_module_rule import PagedResourceListOfCleardownModuleRule
|
743
|
+
from lusid.models.paged_resource_list_of_closed_period import PagedResourceListOfClosedPeriod
|
743
744
|
from lusid.models.paged_resource_list_of_compliance_rule_response import PagedResourceListOfComplianceRuleResponse
|
744
745
|
from lusid.models.paged_resource_list_of_compliance_run_info_v2 import PagedResourceListOfComplianceRunInfoV2
|
745
746
|
from lusid.models.paged_resource_list_of_compliance_template import PagedResourceListOfComplianceTemplate
|
@@ -1988,6 +1989,7 @@ __all__ = [
|
|
1988
1989
|
"PagedResourceListOfChartOfAccounts",
|
1989
1990
|
"PagedResourceListOfCleardownModuleResponse",
|
1990
1991
|
"PagedResourceListOfCleardownModuleRule",
|
1992
|
+
"PagedResourceListOfClosedPeriod",
|
1991
1993
|
"PagedResourceListOfComplianceRuleResponse",
|
1992
1994
|
"PagedResourceListOfComplianceRunInfoV2",
|
1993
1995
|
"PagedResourceListOfComplianceTemplate",
|
lusid/api/timelines_api.py
CHANGED
@@ -22,7 +22,7 @@ from typing import overload, Optional, Union, Awaitable
|
|
22
22
|
from typing_extensions import Annotated
|
23
23
|
from datetime import datetime
|
24
24
|
|
25
|
-
from pydantic.v1 import Field, StrictStr, conlist, constr, validator
|
25
|
+
from pydantic.v1 import Field, StrictStr, conint, conlist, constr, validator
|
26
26
|
|
27
27
|
from typing import Optional
|
28
28
|
|
@@ -30,6 +30,7 @@ from lusid.models.closed_period import ClosedPeriod
|
|
30
30
|
from lusid.models.create_closed_period_request import CreateClosedPeriodRequest
|
31
31
|
from lusid.models.create_timeline_request import CreateTimelineRequest
|
32
32
|
from lusid.models.deleted_entity_response import DeletedEntityResponse
|
33
|
+
from lusid.models.paged_resource_list_of_closed_period import PagedResourceListOfClosedPeriod
|
33
34
|
from lusid.models.timeline import Timeline
|
34
35
|
from lusid.models.update_timeline_request import UpdateTimelineRequest
|
35
36
|
|
@@ -919,6 +920,218 @@ class TimelinesApi:
|
|
919
920
|
collection_formats=_collection_formats,
|
920
921
|
_request_auth=_params.get('_request_auth'))
|
921
922
|
|
923
|
+
@overload
|
924
|
+
async def list_closed_periods(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Timeline.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Timeline.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the ClosedPeriods. Defaults to returning the latest version of each ClosedPeriod if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing ClosedPeriods; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results. For example, to filter on the effectiveEnd, specify \"effectiveEnd gt 2019-01-15T10:00:00\". For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\"")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'ClosedPeriod' domain to decorate onto each ClosedPeriod. These must take the format {domain}/{scope}/{code}, for example 'ClosedPeriod/Account/id'.")] = None, **kwargs) -> PagedResourceListOfClosedPeriod: # noqa: E501
|
925
|
+
...
|
926
|
+
|
927
|
+
@overload
|
928
|
+
def list_closed_periods(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Timeline.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Timeline.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the ClosedPeriods. Defaults to returning the latest version of each ClosedPeriod if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing ClosedPeriods; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results. For example, to filter on the effectiveEnd, specify \"effectiveEnd gt 2019-01-15T10:00:00\". For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\"")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'ClosedPeriod' domain to decorate onto each ClosedPeriod. These must take the format {domain}/{scope}/{code}, for example 'ClosedPeriod/Account/id'.")] = None, async_req: Optional[bool]=True, **kwargs) -> PagedResourceListOfClosedPeriod: # noqa: E501
|
929
|
+
...
|
930
|
+
|
931
|
+
@validate_arguments
|
932
|
+
def list_closed_periods(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Timeline.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Timeline.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the ClosedPeriods. Defaults to returning the latest version of each ClosedPeriod if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing ClosedPeriods; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results. For example, to filter on the effectiveEnd, specify \"effectiveEnd gt 2019-01-15T10:00:00\". For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\"")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'ClosedPeriod' domain to decorate onto each ClosedPeriod. These must take the format {domain}/{scope}/{code}, for example 'ClosedPeriod/Account/id'.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[PagedResourceListOfClosedPeriod, Awaitable[PagedResourceListOfClosedPeriod]]: # noqa: E501
|
933
|
+
"""[EXPERIMENTAL] ListClosedPeriods: List ClosedPeriods for a specified Timeline. # noqa: E501
|
934
|
+
|
935
|
+
List all the ClosedPeriods matching a particular criteria. # noqa: E501
|
936
|
+
This method makes a synchronous HTTP request by default. To make an
|
937
|
+
asynchronous HTTP request, please pass async_req=True
|
938
|
+
|
939
|
+
>>> thread = api.list_closed_periods(scope, code, as_at, page, limit, filter, sort_by, property_keys, async_req=True)
|
940
|
+
>>> result = thread.get()
|
941
|
+
|
942
|
+
:param scope: The scope of the Timeline. (required)
|
943
|
+
:type scope: str
|
944
|
+
:param code: The code of the Timeline. (required)
|
945
|
+
:type code: str
|
946
|
+
:param as_at: The asAt datetime at which to list the ClosedPeriods. Defaults to returning the latest version of each ClosedPeriod if not specified.
|
947
|
+
:type as_at: datetime
|
948
|
+
:param page: The pagination token to use to continue listing ClosedPeriods; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.
|
949
|
+
:type page: str
|
950
|
+
:param limit: When paginating, limit the results to this number. Defaults to 100 if not specified.
|
951
|
+
:type limit: int
|
952
|
+
:param filter: Expression to filter the results. For example, to filter on the effectiveEnd, specify \"effectiveEnd gt 2019-01-15T10:00:00\". For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.
|
953
|
+
:type filter: str
|
954
|
+
:param sort_by: A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\"
|
955
|
+
:type sort_by: List[str]
|
956
|
+
:param property_keys: A list of property keys from the 'ClosedPeriod' domain to decorate onto each ClosedPeriod. These must take the format {domain}/{scope}/{code}, for example 'ClosedPeriod/Account/id'.
|
957
|
+
:type property_keys: List[str]
|
958
|
+
:param async_req: Whether to execute the request asynchronously.
|
959
|
+
:type async_req: bool, optional
|
960
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
961
|
+
:param opts: Configuration options for this request
|
962
|
+
:type opts: ConfigurationOptions, optional
|
963
|
+
:return: Returns the result object.
|
964
|
+
If the method is called asynchronously,
|
965
|
+
returns the request thread.
|
966
|
+
:rtype: PagedResourceListOfClosedPeriod
|
967
|
+
"""
|
968
|
+
kwargs['_return_http_data_only'] = True
|
969
|
+
if '_preload_content' in kwargs:
|
970
|
+
message = "Error! Please call the list_closed_periods_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
971
|
+
raise ValueError(message)
|
972
|
+
if async_req is not None:
|
973
|
+
kwargs['async_req'] = async_req
|
974
|
+
return self.list_closed_periods_with_http_info(scope, code, as_at, page, limit, filter, sort_by, property_keys, **kwargs) # noqa: E501
|
975
|
+
|
976
|
+
@validate_arguments
|
977
|
+
def list_closed_periods_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Timeline.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Timeline.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the ClosedPeriods. Defaults to returning the latest version of each ClosedPeriod if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing ClosedPeriods; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results. For example, to filter on the effectiveEnd, specify \"effectiveEnd gt 2019-01-15T10:00:00\". For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\"")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'ClosedPeriod' domain to decorate onto each ClosedPeriod. These must take the format {domain}/{scope}/{code}, for example 'ClosedPeriod/Account/id'.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
978
|
+
"""[EXPERIMENTAL] ListClosedPeriods: List ClosedPeriods for a specified Timeline. # noqa: E501
|
979
|
+
|
980
|
+
List all the ClosedPeriods matching a particular criteria. # noqa: E501
|
981
|
+
This method makes a synchronous HTTP request by default. To make an
|
982
|
+
asynchronous HTTP request, please pass async_req=True
|
983
|
+
|
984
|
+
>>> thread = api.list_closed_periods_with_http_info(scope, code, as_at, page, limit, filter, sort_by, property_keys, async_req=True)
|
985
|
+
>>> result = thread.get()
|
986
|
+
|
987
|
+
:param scope: The scope of the Timeline. (required)
|
988
|
+
:type scope: str
|
989
|
+
:param code: The code of the Timeline. (required)
|
990
|
+
:type code: str
|
991
|
+
:param as_at: The asAt datetime at which to list the ClosedPeriods. Defaults to returning the latest version of each ClosedPeriod if not specified.
|
992
|
+
:type as_at: datetime
|
993
|
+
:param page: The pagination token to use to continue listing ClosedPeriods; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.
|
994
|
+
:type page: str
|
995
|
+
:param limit: When paginating, limit the results to this number. Defaults to 100 if not specified.
|
996
|
+
:type limit: int
|
997
|
+
:param filter: Expression to filter the results. For example, to filter on the effectiveEnd, specify \"effectiveEnd gt 2019-01-15T10:00:00\". For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.
|
998
|
+
:type filter: str
|
999
|
+
:param sort_by: A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\"
|
1000
|
+
:type sort_by: List[str]
|
1001
|
+
:param property_keys: A list of property keys from the 'ClosedPeriod' domain to decorate onto each ClosedPeriod. These must take the format {domain}/{scope}/{code}, for example 'ClosedPeriod/Account/id'.
|
1002
|
+
:type property_keys: List[str]
|
1003
|
+
:param async_req: Whether to execute the request asynchronously.
|
1004
|
+
:type async_req: bool, optional
|
1005
|
+
:param _preload_content: if False, the ApiResponse.data will
|
1006
|
+
be set to none and raw_data will store the
|
1007
|
+
HTTP response body without reading/decoding.
|
1008
|
+
Default is True.
|
1009
|
+
:type _preload_content: bool, optional
|
1010
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
1011
|
+
object with status code, headers, etc
|
1012
|
+
:type _return_http_data_only: bool, optional
|
1013
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
1014
|
+
:param opts: Configuration options for this request
|
1015
|
+
:type opts: ConfigurationOptions, optional
|
1016
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1017
|
+
request; this effectively ignores the authentication
|
1018
|
+
in the spec for a single request.
|
1019
|
+
:type _request_auth: dict, optional
|
1020
|
+
:type _content_type: string, optional: force content-type for the request
|
1021
|
+
:return: Returns the result object.
|
1022
|
+
If the method is called asynchronously,
|
1023
|
+
returns the request thread.
|
1024
|
+
:rtype: tuple(PagedResourceListOfClosedPeriod, status_code(int), headers(HTTPHeaderDict))
|
1025
|
+
"""
|
1026
|
+
|
1027
|
+
_params = locals()
|
1028
|
+
|
1029
|
+
_all_params = [
|
1030
|
+
'scope',
|
1031
|
+
'code',
|
1032
|
+
'as_at',
|
1033
|
+
'page',
|
1034
|
+
'limit',
|
1035
|
+
'filter',
|
1036
|
+
'sort_by',
|
1037
|
+
'property_keys'
|
1038
|
+
]
|
1039
|
+
_all_params.extend(
|
1040
|
+
[
|
1041
|
+
'async_req',
|
1042
|
+
'_return_http_data_only',
|
1043
|
+
'_preload_content',
|
1044
|
+
'_request_timeout',
|
1045
|
+
'_request_auth',
|
1046
|
+
'_content_type',
|
1047
|
+
'_headers',
|
1048
|
+
'opts'
|
1049
|
+
]
|
1050
|
+
)
|
1051
|
+
|
1052
|
+
# validate the arguments
|
1053
|
+
for _key, _val in _params['kwargs'].items():
|
1054
|
+
if _key not in _all_params:
|
1055
|
+
raise ApiTypeError(
|
1056
|
+
"Got an unexpected keyword argument '%s'"
|
1057
|
+
" to method list_closed_periods" % _key
|
1058
|
+
)
|
1059
|
+
_params[_key] = _val
|
1060
|
+
del _params['kwargs']
|
1061
|
+
|
1062
|
+
_collection_formats = {}
|
1063
|
+
|
1064
|
+
# process the path parameters
|
1065
|
+
_path_params = {}
|
1066
|
+
if _params['scope']:
|
1067
|
+
_path_params['scope'] = _params['scope']
|
1068
|
+
|
1069
|
+
if _params['code']:
|
1070
|
+
_path_params['code'] = _params['code']
|
1071
|
+
|
1072
|
+
|
1073
|
+
# process the query parameters
|
1074
|
+
_query_params = []
|
1075
|
+
if _params.get('as_at') is not None: # noqa: E501
|
1076
|
+
if isinstance(_params['as_at'], datetime):
|
1077
|
+
_query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
|
1078
|
+
else:
|
1079
|
+
_query_params.append(('asAt', _params['as_at']))
|
1080
|
+
|
1081
|
+
if _params.get('page') is not None: # noqa: E501
|
1082
|
+
_query_params.append(('page', _params['page']))
|
1083
|
+
|
1084
|
+
if _params.get('limit') is not None: # noqa: E501
|
1085
|
+
_query_params.append(('limit', _params['limit']))
|
1086
|
+
|
1087
|
+
if _params.get('filter') is not None: # noqa: E501
|
1088
|
+
_query_params.append(('filter', _params['filter']))
|
1089
|
+
|
1090
|
+
if _params.get('sort_by') is not None: # noqa: E501
|
1091
|
+
_query_params.append(('sortBy', _params['sort_by']))
|
1092
|
+
_collection_formats['sortBy'] = 'multi'
|
1093
|
+
|
1094
|
+
if _params.get('property_keys') is not None: # noqa: E501
|
1095
|
+
_query_params.append(('propertyKeys', _params['property_keys']))
|
1096
|
+
_collection_formats['propertyKeys'] = 'multi'
|
1097
|
+
|
1098
|
+
# process the header parameters
|
1099
|
+
_header_params = dict(_params.get('_headers', {}))
|
1100
|
+
# process the form parameters
|
1101
|
+
_form_params = []
|
1102
|
+
_files = {}
|
1103
|
+
# process the body parameter
|
1104
|
+
_body_params = None
|
1105
|
+
# set the HTTP header `Accept`
|
1106
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1107
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
1108
|
+
|
1109
|
+
# authentication setting
|
1110
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
1111
|
+
|
1112
|
+
_response_types_map = {
|
1113
|
+
'200': "PagedResourceListOfClosedPeriod",
|
1114
|
+
'400': "LusidValidationProblemDetails",
|
1115
|
+
}
|
1116
|
+
|
1117
|
+
return self.api_client.call_api(
|
1118
|
+
'/api/timelines/{scope}/{code}/closedperiods', 'GET',
|
1119
|
+
_path_params,
|
1120
|
+
_query_params,
|
1121
|
+
_header_params,
|
1122
|
+
body=_body_params,
|
1123
|
+
post_params=_form_params,
|
1124
|
+
files=_files,
|
1125
|
+
response_types_map=_response_types_map,
|
1126
|
+
auth_settings=_auth_settings,
|
1127
|
+
async_req=_params.get('async_req'),
|
1128
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1129
|
+
_preload_content=_params.get('_preload_content', True),
|
1130
|
+
_request_timeout=_params.get('_request_timeout'),
|
1131
|
+
opts=_params.get('opts'),
|
1132
|
+
collection_formats=_collection_formats,
|
1133
|
+
_request_auth=_params.get('_request_auth'))
|
1134
|
+
|
922
1135
|
@overload
|
923
1136
|
async def update_timeline(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the specified Timeline.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), 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
|
924
1137
|
...
|
@@ -931,7 +1144,7 @@ class TimelinesApi:
|
|
931
1144
|
def update_timeline(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the specified Timeline.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), 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, async_req: Optional[bool]=None, **kwargs) -> Union[Timeline, Awaitable[Timeline]]: # noqa: E501
|
932
1145
|
"""[EXPERIMENTAL] UpdateTimeline: Update Timeline defined by scope and code # noqa: E501
|
933
1146
|
|
934
|
-
Overwrites an existing Timeline Update request has the same required fields as Create apart from the
|
1147
|
+
Overwrites an existing Timeline Update request has the same required fields as Create apart from the id. Returns the updated Timeline at the current effectiveAt. Note that Timelines are mono-temporal, however they can have Time-Variant Properties. Updated Properties will be returned at the latest AsAt and EffectiveAt # noqa: E501
|
935
1148
|
This method makes a synchronous HTTP request by default. To make an
|
936
1149
|
asynchronous HTTP request, please pass async_req=True
|
937
1150
|
|
@@ -966,7 +1179,7 @@ class TimelinesApi:
|
|
966
1179
|
def update_timeline_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the specified Timeline.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), 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) -> ApiResponse: # noqa: E501
|
967
1180
|
"""[EXPERIMENTAL] UpdateTimeline: Update Timeline defined by scope and code # noqa: E501
|
968
1181
|
|
969
|
-
Overwrites an existing Timeline Update request has the same required fields as Create apart from the
|
1182
|
+
Overwrites an existing Timeline Update request has the same required fields as Create apart from the id. Returns the updated Timeline at the current effectiveAt. Note that Timelines are mono-temporal, however they can have Time-Variant Properties. Updated Properties will be returned at the latest AsAt and EffectiveAt # noqa: E501
|
970
1183
|
This method makes a synchronous HTTP request by default. To make an
|
971
1184
|
asynchronous HTTP request, please pass async_req=True
|
972
1185
|
|
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.7220\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
@@ -658,6 +658,7 @@ from lusid.models.paged_resource_list_of_calendar import PagedResourceListOfCale
|
|
658
658
|
from lusid.models.paged_resource_list_of_chart_of_accounts import PagedResourceListOfChartOfAccounts
|
659
659
|
from lusid.models.paged_resource_list_of_cleardown_module_response import PagedResourceListOfCleardownModuleResponse
|
660
660
|
from lusid.models.paged_resource_list_of_cleardown_module_rule import PagedResourceListOfCleardownModuleRule
|
661
|
+
from lusid.models.paged_resource_list_of_closed_period import PagedResourceListOfClosedPeriod
|
661
662
|
from lusid.models.paged_resource_list_of_compliance_rule_response import PagedResourceListOfComplianceRuleResponse
|
662
663
|
from lusid.models.paged_resource_list_of_compliance_run_info_v2 import PagedResourceListOfComplianceRunInfoV2
|
663
664
|
from lusid.models.paged_resource_list_of_compliance_template import PagedResourceListOfComplianceTemplate
|
@@ -1825,6 +1826,7 @@ __all__ = [
|
|
1825
1826
|
"PagedResourceListOfChartOfAccounts",
|
1826
1827
|
"PagedResourceListOfCleardownModuleResponse",
|
1827
1828
|
"PagedResourceListOfCleardownModuleRule",
|
1829
|
+
"PagedResourceListOfClosedPeriod",
|
1828
1830
|
"PagedResourceListOfComplianceRuleResponse",
|
1829
1831
|
"PagedResourceListOfComplianceRunInfoV2",
|
1830
1832
|
"PagedResourceListOfComplianceTemplate",
|
@@ -0,0 +1,113 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
LUSID API
|
5
|
+
|
6
|
+
FINBOURNE Technology # noqa: E501
|
7
|
+
|
8
|
+
Contact: info@finbourne.com
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
"""
|
13
|
+
|
14
|
+
|
15
|
+
from __future__ import annotations
|
16
|
+
import pprint
|
17
|
+
import re # noqa: F401
|
18
|
+
import json
|
19
|
+
|
20
|
+
|
21
|
+
from typing import Any, Dict, List, Optional
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictStr, conlist
|
23
|
+
from lusid.models.closed_period import ClosedPeriod
|
24
|
+
from lusid.models.link import Link
|
25
|
+
|
26
|
+
class PagedResourceListOfClosedPeriod(BaseModel):
|
27
|
+
"""
|
28
|
+
PagedResourceListOfClosedPeriod
|
29
|
+
"""
|
30
|
+
next_page: Optional[StrictStr] = Field(None, alias="nextPage")
|
31
|
+
previous_page: Optional[StrictStr] = Field(None, alias="previousPage")
|
32
|
+
values: conlist(ClosedPeriod) = Field(...)
|
33
|
+
href: Optional[StrictStr] = None
|
34
|
+
links: Optional[conlist(Link)] = None
|
35
|
+
__properties = ["nextPage", "previousPage", "values", "href", "links"]
|
36
|
+
|
37
|
+
class Config:
|
38
|
+
"""Pydantic configuration"""
|
39
|
+
allow_population_by_field_name = True
|
40
|
+
validate_assignment = True
|
41
|
+
|
42
|
+
def to_str(self) -> str:
|
43
|
+
"""Returns the string representation of the model using alias"""
|
44
|
+
return pprint.pformat(self.dict(by_alias=True))
|
45
|
+
|
46
|
+
def to_json(self) -> str:
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
48
|
+
return json.dumps(self.to_dict())
|
49
|
+
|
50
|
+
@classmethod
|
51
|
+
def from_json(cls, json_str: str) -> PagedResourceListOfClosedPeriod:
|
52
|
+
"""Create an instance of PagedResourceListOfClosedPeriod from a JSON string"""
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
54
|
+
|
55
|
+
def to_dict(self):
|
56
|
+
"""Returns the dictionary representation of the model using alias"""
|
57
|
+
_dict = self.dict(by_alias=True,
|
58
|
+
exclude={
|
59
|
+
},
|
60
|
+
exclude_none=True)
|
61
|
+
# override the default output from pydantic by calling `to_dict()` of each item in values (list)
|
62
|
+
_items = []
|
63
|
+
if self.values:
|
64
|
+
for _item in self.values:
|
65
|
+
if _item:
|
66
|
+
_items.append(_item.to_dict())
|
67
|
+
_dict['values'] = _items
|
68
|
+
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
69
|
+
_items = []
|
70
|
+
if self.links:
|
71
|
+
for _item in self.links:
|
72
|
+
if _item:
|
73
|
+
_items.append(_item.to_dict())
|
74
|
+
_dict['links'] = _items
|
75
|
+
# set to None if next_page (nullable) is None
|
76
|
+
# and __fields_set__ contains the field
|
77
|
+
if self.next_page is None and "next_page" in self.__fields_set__:
|
78
|
+
_dict['nextPage'] = None
|
79
|
+
|
80
|
+
# set to None if previous_page (nullable) is None
|
81
|
+
# and __fields_set__ contains the field
|
82
|
+
if self.previous_page is None and "previous_page" in self.__fields_set__:
|
83
|
+
_dict['previousPage'] = None
|
84
|
+
|
85
|
+
# set to None if href (nullable) is None
|
86
|
+
# and __fields_set__ contains the field
|
87
|
+
if self.href is None and "href" in self.__fields_set__:
|
88
|
+
_dict['href'] = None
|
89
|
+
|
90
|
+
# set to None if links (nullable) is None
|
91
|
+
# and __fields_set__ contains the field
|
92
|
+
if self.links is None and "links" in self.__fields_set__:
|
93
|
+
_dict['links'] = None
|
94
|
+
|
95
|
+
return _dict
|
96
|
+
|
97
|
+
@classmethod
|
98
|
+
def from_dict(cls, obj: dict) -> PagedResourceListOfClosedPeriod:
|
99
|
+
"""Create an instance of PagedResourceListOfClosedPeriod from a dict"""
|
100
|
+
if obj is None:
|
101
|
+
return None
|
102
|
+
|
103
|
+
if not isinstance(obj, dict):
|
104
|
+
return PagedResourceListOfClosedPeriod.parse_obj(obj)
|
105
|
+
|
106
|
+
_obj = PagedResourceListOfClosedPeriod.parse_obj({
|
107
|
+
"next_page": obj.get("nextPage"),
|
108
|
+
"previous_page": obj.get("previousPage"),
|
109
|
+
"values": [ClosedPeriod.from_dict(_item) for _item in obj.get("values")] if obj.get("values") is not None else None,
|
110
|
+
"href": obj.get("href"),
|
111
|
+
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
112
|
+
})
|
113
|
+
return _obj
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lusid-sdk
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.641
|
4
4
|
Summary: LUSID API
|
5
5
|
Home-page: https://github.com/finbourne/lusid-sdk-python
|
6
6
|
License: MIT
|
@@ -556,6 +556,7 @@ Class | Method | HTTP request | Description
|
|
556
556
|
*TimelinesApi* | [**delete_timeline**](docs/TimelinesApi.md#delete_timeline) | **DELETE** /api/timelines/{scope}/{code} | [EXPERIMENTAL] DeleteTimeline: Deletes a particular Timeline
|
557
557
|
*TimelinesApi* | [**get_closed_period**](docs/TimelinesApi.md#get_closed_period) | **GET** /api/timelines/{scope}/{code}/closedperiods/{closedPeriodId} | [EXPERIMENTAL] GetClosedPeriod: Gets a Closed Period entity.
|
558
558
|
*TimelinesApi* | [**get_timeline**](docs/TimelinesApi.md#get_timeline) | **GET** /api/timelines/{scope}/{code} | [EXPERIMENTAL] GetTimeline: Get a single Timeline by scope and code.
|
559
|
+
*TimelinesApi* | [**list_closed_periods**](docs/TimelinesApi.md#list_closed_periods) | **GET** /api/timelines/{scope}/{code}/closedperiods | [EXPERIMENTAL] ListClosedPeriods: List ClosedPeriods for a specified Timeline.
|
559
560
|
*TimelinesApi* | [**update_timeline**](docs/TimelinesApi.md#update_timeline) | **PUT** /api/timelines/{scope}/{code} | [EXPERIMENTAL] UpdateTimeline: Update Timeline defined by scope and code
|
560
561
|
*TransactionConfigurationApi* | [**delete_side_definition**](docs/TransactionConfigurationApi.md#delete_side_definition) | **DELETE** /api/transactionconfiguration/sides/{side}/$delete | DeleteSideDefinition: Delete the given side definition
|
561
562
|
*TransactionConfigurationApi* | [**delete_transaction_type**](docs/TransactionConfigurationApi.md#delete_transaction_type) | **DELETE** /api/transactionconfiguration/types/{source}/{type} | DeleteTransactionType: Delete a transaction type
|
@@ -1284,6 +1285,7 @@ Class | Method | HTTP request | Description
|
|
1284
1285
|
- [PagedResourceListOfChartOfAccounts](docs/PagedResourceListOfChartOfAccounts.md)
|
1285
1286
|
- [PagedResourceListOfCleardownModuleResponse](docs/PagedResourceListOfCleardownModuleResponse.md)
|
1286
1287
|
- [PagedResourceListOfCleardownModuleRule](docs/PagedResourceListOfCleardownModuleRule.md)
|
1288
|
+
- [PagedResourceListOfClosedPeriod](docs/PagedResourceListOfClosedPeriod.md)
|
1287
1289
|
- [PagedResourceListOfComplianceRuleResponse](docs/PagedResourceListOfComplianceRuleResponse.md)
|
1288
1290
|
- [PagedResourceListOfComplianceRunInfoV2](docs/PagedResourceListOfComplianceRunInfoV2.md)
|
1289
1291
|
- [PagedResourceListOfComplianceTemplate](docs/PagedResourceListOfComplianceTemplate.md)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
lusid/__init__.py,sha256=
|
1
|
+
lusid/__init__.py,sha256=0gewDJXAktyP3Du2eLDjQX-vEsWVCxkkmW9W_Bk9_i0,131273
|
2
2
|
lusid/api/__init__.py,sha256=C2enY9PQvOYFXsoj-JouSAKuxOtzYacozH_a9ewlsbc,5890
|
3
3
|
lusid/api/abor_api.py,sha256=eC0xjrZEL_e7JZdwjpmjVG4GMQWAGJEv4w-2UngvYUk,159896
|
4
4
|
lusid/api/abor_configuration_api.py,sha256=TmssMn5ni0mZV1q7LyPXYhBqqUGJqLYZapo8By8DFuI,63875
|
@@ -63,7 +63,7 @@ lusid/api/staging_rule_set_api.py,sha256=05N_yh216XvUaXESe2rKWRMKM0aL6Eq4yUD5ie2
|
|
63
63
|
lusid/api/structured_result_data_api.py,sha256=wZwDAXwJkXjkKl3Bmpu3Eb1OUeYmFv3YNPzABxPHwTQ,112073
|
64
64
|
lusid/api/system_configuration_api.py,sha256=6udGEWQzI2t3NDgUdp8MR5X0zWRrTJpXxlZrCLn5z_k,61804
|
65
65
|
lusid/api/tax_rule_sets_api.py,sha256=Up74buqFZfgM8oxMObgVvMIJrrKY_fBJLwDBemXEr4M,49866
|
66
|
-
lusid/api/timelines_api.py,sha256=
|
66
|
+
lusid/api/timelines_api.py,sha256=zfQgMnP0Zhmav0jhcvhDaP2SiIyDPP2eTL3BEGhkmDw,83319
|
67
67
|
lusid/api/transaction_configuration_api.py,sha256=5wDGhFV3UYG61OPE45Xv0wsDSnNuKkk7F_o7oZzYqN0,107192
|
68
68
|
lusid/api/transaction_fees_api.py,sha256=nJ6Fd_AfguoHdXIm7aXWRL2D_KJa5Vbp6_IpNIitYLc,64354
|
69
69
|
lusid/api/transaction_portfolios_api.py,sha256=4M9g21DLQyxGzDN0fzPaegRYsmCBzDDcd-2pUMZO-BQ,619751
|
@@ -71,7 +71,7 @@ lusid/api/translation_api.py,sha256=nIyuLncCvVC5k2d7Nm32zR8AQ1dkrVm1OThkmELY_OM,
|
|
71
71
|
lusid/api/workspace_api.py,sha256=Yox1q7TDY-_O3HF-N8g5kGuNgp4unWvlSZmRZ6MNZO0,196701
|
72
72
|
lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
|
73
73
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
74
|
-
lusid/configuration.py,sha256
|
74
|
+
lusid/configuration.py,sha256=SHgM-4WX1M1OX_5S1k-SKA94MLG7kkXpH4KGB5if66A,17972
|
75
75
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
76
76
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
77
77
|
lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
|
@@ -86,7 +86,7 @@ lusid/extensions/rest.py,sha256=dp-bD_LMR2zAL1tmC3-urhWKLomXx7r5iGN1VteMBVQ,1601
|
|
86
86
|
lusid/extensions/retry.py,sha256=EhW9OKJmGHipxN3H7eROH5DiMlAnfBVl95NQrttcsdg,14834
|
87
87
|
lusid/extensions/socket_keep_alive.py,sha256=NGlqsv-E25IjJOLGZhXZY6kUdx51nEF8qCQyVdzayRk,1653
|
88
88
|
lusid/extensions/tcp_keep_alive_connector.py,sha256=zaGtUsygRsxB1_4B3x39K3ILwztdhMLDv5bFZV7zmGE,3877
|
89
|
-
lusid/models/__init__.py,sha256=
|
89
|
+
lusid/models/__init__.py,sha256=WZJXkxmv8RcWdp1aBBL6ocV4ja1HQb4rRX4QKT1G6Hc,124351
|
90
90
|
lusid/models/a2_b_breakdown.py,sha256=Txi12EIQw3mH6NM-25QkOnHSQc3BVAWrP7yl9bZswSY,2947
|
91
91
|
lusid/models/a2_b_category.py,sha256=k6NPAACi0CUjKyhdQac4obQSrPmp2PXD6lkAtCnyEFM,2725
|
92
92
|
lusid/models/a2_b_data_record.py,sha256=zKGS2P4fzNpzdcGJiSIpkY4P3d_jAcawYfyuPCDeQgk,9737
|
@@ -731,6 +731,7 @@ lusid/models/paged_resource_list_of_calendar.py,sha256=Nf_z25QusgyIF4pKuEGDFhgPZ
|
|
731
731
|
lusid/models/paged_resource_list_of_chart_of_accounts.py,sha256=GUUfQH-ouQp8nDWAtctsObr9eXp9EIJmQkqArbyIp0g,4156
|
732
732
|
lusid/models/paged_resource_list_of_cleardown_module_response.py,sha256=8G5tHchRnwlXnKQOdjFqXoJjh346JCDGYp6cLJpMfU4,4252
|
733
733
|
lusid/models/paged_resource_list_of_cleardown_module_rule.py,sha256=YWZy7D-hF0o46meTOeqJBU1-fj-anktVMO-Qm0U9Fb0,4204
|
734
|
+
lusid/models/paged_resource_list_of_closed_period.py,sha256=gBzhB_6IaeRzUGIHFOZfbu71LkJnrYt04_KW-WkILUY,4119
|
734
735
|
lusid/models/paged_resource_list_of_compliance_rule_response.py,sha256=BviZgbG6oBq8R1U288y-aVo9pyfMdPzemRM02ZxZTg0,4240
|
735
736
|
lusid/models/paged_resource_list_of_compliance_run_info_v2.py,sha256=eepfg-SWcSjhw8rFwQtP5rDnbwWn2lOuZm20PUnsOX0,4205
|
736
737
|
lusid/models/paged_resource_list_of_compliance_template.py,sha256=81cVZfiZ-lNtLZfxoVfCEqFx_AqZ5XUuApVyp75nSMQ,4191
|
@@ -1253,6 +1254,6 @@ lusid/models/workspace_update_request.py,sha256=uUXEpX-dJ5UiL9w1wMxIFeovSBiTJ-vi
|
|
1253
1254
|
lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
|
1254
1255
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1255
1256
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1256
|
-
lusid_sdk-2.1.
|
1257
|
-
lusid_sdk-2.1.
|
1258
|
-
lusid_sdk-2.1.
|
1257
|
+
lusid_sdk-2.1.641.dist-info/METADATA,sha256=VD_1nf59XWs8kCOemgYcr7IivekPLo4qmx_jBDSBerM,213719
|
1258
|
+
lusid_sdk-2.1.641.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
1259
|
+
lusid_sdk-2.1.641.dist-info/RECORD,,
|
File without changes
|