lusid-sdk 2.1.737__py3-none-any.whl → 2.1.739__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/entities_api.py +2 -2
- lusid/api/timelines_api.py +206 -0
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +2 -0
- lusid/models/paged_resource_list_of_timeline.py +121 -0
- {lusid_sdk-2.1.737.dist-info → lusid_sdk-2.1.739.dist-info}/METADATA +4 -2
- {lusid_sdk-2.1.737.dist-info → lusid_sdk-2.1.739.dist-info}/RECORD +9 -8
- {lusid_sdk-2.1.737.dist-info → lusid_sdk-2.1.739.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
@@ -812,6 +812,7 @@ from lusid.models.paged_resource_list_of_sequence_definition import PagedResourc
|
|
812
812
|
from lusid.models.paged_resource_list_of_staged_modification import PagedResourceListOfStagedModification
|
813
813
|
from lusid.models.paged_resource_list_of_staged_modifications_requested_change_interval import PagedResourceListOfStagedModificationsRequestedChangeInterval
|
814
814
|
from lusid.models.paged_resource_list_of_staging_rule_set import PagedResourceListOfStagingRuleSet
|
815
|
+
from lusid.models.paged_resource_list_of_timeline import PagedResourceListOfTimeline
|
815
816
|
from lusid.models.paged_resource_list_of_transaction_template import PagedResourceListOfTransactionTemplate
|
816
817
|
from lusid.models.paged_resource_list_of_transaction_template_specification import PagedResourceListOfTransactionTemplateSpecification
|
817
818
|
from lusid.models.paged_resource_list_of_translation_script_id import PagedResourceListOfTranslationScriptId
|
@@ -2090,6 +2091,7 @@ __all__ = [
|
|
2090
2091
|
"PagedResourceListOfStagedModification",
|
2091
2092
|
"PagedResourceListOfStagedModificationsRequestedChangeInterval",
|
2092
2093
|
"PagedResourceListOfStagingRuleSet",
|
2094
|
+
"PagedResourceListOfTimeline",
|
2093
2095
|
"PagedResourceListOfTransactionTemplate",
|
2094
2096
|
"PagedResourceListOfTransactionTemplateSpecification",
|
2095
2097
|
"PagedResourceListOfTranslationScriptId",
|
lusid/api/entities_api.py
CHANGED
@@ -422,7 +422,7 @@ class EntitiesApi:
|
|
422
422
|
|
423
423
|
@validate_arguments
|
424
424
|
def get_entity_history(self, entity_type : Annotated[StrictStr, Field(..., description="The type of the entity to list the change history for.")], entity_unique_id : Annotated[StrictStr, Field(..., description="The universally unique identifier of the entity.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list change history information. Defaults to return the change history at the latest datetime if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing change history information from a previous call to list change history information. This value is returned from the previous call. If a pagination token is provided the filter, sortBy and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names suffixed by \" ASC\" or \" DESC\"")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ResourceListOfChangeInterval, Awaitable[ResourceListOfChangeInterval]]: # noqa: E501
|
425
|
-
"""[
|
425
|
+
"""[EARLY ACCESS] GetEntityHistory: List an entity's history information # noqa: E501
|
426
426
|
|
427
427
|
Retrieve a page of an entity's change history up to a particular point in AsAt time. # noqa: E501
|
428
428
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -465,7 +465,7 @@ class EntitiesApi:
|
|
465
465
|
|
466
466
|
@validate_arguments
|
467
467
|
def get_entity_history_with_http_info(self, entity_type : Annotated[StrictStr, Field(..., description="The type of the entity to list the change history for.")], entity_unique_id : Annotated[StrictStr, Field(..., description="The universally unique identifier of the entity.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list change history information. Defaults to return the change history at the latest datetime if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing change history information from a previous call to list change history information. This value is returned from the previous call. If a pagination token is provided the filter, sortBy and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names suffixed by \" ASC\" or \" DESC\"")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
468
|
-
"""[
|
468
|
+
"""[EARLY ACCESS] GetEntityHistory: List an entity's history information # noqa: E501
|
469
469
|
|
470
470
|
Retrieve a page of an entity's change history up to a particular point in AsAt time. # noqa: E501
|
471
471
|
This method makes a synchronous HTTP request by default. To make an
|
lusid/api/timelines_api.py
CHANGED
@@ -31,6 +31,7 @@ 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
33
|
from lusid.models.paged_resource_list_of_closed_period import PagedResourceListOfClosedPeriod
|
34
|
+
from lusid.models.paged_resource_list_of_timeline import PagedResourceListOfTimeline
|
34
35
|
from lusid.models.timeline import Timeline
|
35
36
|
from lusid.models.update_timeline_request import UpdateTimelineRequest
|
36
37
|
|
@@ -1143,6 +1144,211 @@ class TimelinesApi:
|
|
1143
1144
|
_request_auth=_params.get('_request_auth'))
|
1144
1145
|
|
1145
1146
|
|
1147
|
+
@overload
|
1148
|
+
async def list_timelines(self, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the Timelines. Defaults to returning the latest version of each Timeline if not specified.")] = None, effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to list the Timelines. Note that Timelines are monotemporal, the effectiveAt is for Timevariant Properties on the Timeline only. Defaults to the current LUSID system datetime if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing Timelines; 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)], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the results. For example, to filter on the displayName, specify \"displayName eq 'AccountingTimeline'\". 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 'Timeline' domain to decorate onto each Timeline. These must take the format {domain}/{scope}/{code}, for example 'Timeline/Account/id'.")] = None, **kwargs) -> PagedResourceListOfTimeline: # noqa: E501
|
1149
|
+
...
|
1150
|
+
|
1151
|
+
@overload
|
1152
|
+
def list_timelines(self, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the Timelines. Defaults to returning the latest version of each Timeline if not specified.")] = None, effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to list the Timelines. Note that Timelines are monotemporal, the effectiveAt is for Timevariant Properties on the Timeline only. Defaults to the current LUSID system datetime if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing Timelines; 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)], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the results. For example, to filter on the displayName, specify \"displayName eq 'AccountingTimeline'\". 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 'Timeline' domain to decorate onto each Timeline. These must take the format {domain}/{scope}/{code}, for example 'Timeline/Account/id'.")] = None, async_req: Optional[bool]=True, **kwargs) -> PagedResourceListOfTimeline: # noqa: E501
|
1153
|
+
...
|
1154
|
+
|
1155
|
+
@validate_arguments
|
1156
|
+
def list_timelines(self, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the Timelines. Defaults to returning the latest version of each Timeline if not specified.")] = None, effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to list the Timelines. Note that Timelines are monotemporal, the effectiveAt is for Timevariant Properties on the Timeline only. Defaults to the current LUSID system datetime if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing Timelines; 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)], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the results. For example, to filter on the displayName, specify \"displayName eq 'AccountingTimeline'\". 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 'Timeline' domain to decorate onto each Timeline. These must take the format {domain}/{scope}/{code}, for example 'Timeline/Account/id'.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[PagedResourceListOfTimeline, Awaitable[PagedResourceListOfTimeline]]: # noqa: E501
|
1157
|
+
"""[EXPERIMENTAL] ListTimelines: List Timelines # noqa: E501
|
1158
|
+
|
1159
|
+
List all the Timelines matching a particular criteria. # noqa: E501
|
1160
|
+
This method makes a synchronous HTTP request by default. To make an
|
1161
|
+
asynchronous HTTP request, please pass async_req=True
|
1162
|
+
|
1163
|
+
>>> thread = api.list_timelines(as_at, effective_at, page, limit, filter, sort_by, property_keys, async_req=True)
|
1164
|
+
>>> result = thread.get()
|
1165
|
+
|
1166
|
+
:param as_at: The asAt datetime at which to list the Timelines. Defaults to returning the latest version of each Timeline if not specified.
|
1167
|
+
:type as_at: datetime
|
1168
|
+
:param effective_at: The effective datetime or cut label at which to list the Timelines. Note that Timelines are monotemporal, the effectiveAt is for Timevariant Properties on the Timeline only. Defaults to the current LUSID system datetime if not specified.
|
1169
|
+
:type effective_at: str
|
1170
|
+
:param page: The pagination token to use to continue listing Timelines; 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.
|
1171
|
+
:type page: str
|
1172
|
+
:param limit: When paginating, limit the results to this number. Defaults to 100 if not specified.
|
1173
|
+
:type limit: int
|
1174
|
+
:param filter: Expression to filter the results. For example, to filter on the displayName, specify \"displayName eq 'AccountingTimeline'\". For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.
|
1175
|
+
:type filter: str
|
1176
|
+
:param sort_by: A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\"
|
1177
|
+
:type sort_by: List[str]
|
1178
|
+
:param property_keys: A list of property keys from the 'Timeline' domain to decorate onto each Timeline. These must take the format {domain}/{scope}/{code}, for example 'Timeline/Account/id'.
|
1179
|
+
:type property_keys: List[str]
|
1180
|
+
:param async_req: Whether to execute the request asynchronously.
|
1181
|
+
:type async_req: bool, optional
|
1182
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
1183
|
+
:param opts: Configuration options for this request
|
1184
|
+
:type opts: ConfigurationOptions, optional
|
1185
|
+
:return: Returns the result object.
|
1186
|
+
If the method is called asynchronously,
|
1187
|
+
returns the request thread.
|
1188
|
+
:rtype: PagedResourceListOfTimeline
|
1189
|
+
"""
|
1190
|
+
kwargs['_return_http_data_only'] = True
|
1191
|
+
if '_preload_content' in kwargs:
|
1192
|
+
message = "Error! Please call the list_timelines_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
1193
|
+
raise ValueError(message)
|
1194
|
+
if async_req is not None:
|
1195
|
+
kwargs['async_req'] = async_req
|
1196
|
+
return self.list_timelines_with_http_info(as_at, effective_at, page, limit, filter, sort_by, property_keys, **kwargs) # noqa: E501
|
1197
|
+
|
1198
|
+
@validate_arguments
|
1199
|
+
def list_timelines_with_http_info(self, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the Timelines. Defaults to returning the latest version of each Timeline if not specified.")] = None, effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to list the Timelines. Note that Timelines are monotemporal, the effectiveAt is for Timevariant Properties on the Timeline only. Defaults to the current LUSID system datetime if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing Timelines; 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)], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the results. For example, to filter on the displayName, specify \"displayName eq 'AccountingTimeline'\". 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 'Timeline' domain to decorate onto each Timeline. These must take the format {domain}/{scope}/{code}, for example 'Timeline/Account/id'.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
1200
|
+
"""[EXPERIMENTAL] ListTimelines: List Timelines # noqa: E501
|
1201
|
+
|
1202
|
+
List all the Timelines matching a particular criteria. # noqa: E501
|
1203
|
+
This method makes a synchronous HTTP request by default. To make an
|
1204
|
+
asynchronous HTTP request, please pass async_req=True
|
1205
|
+
|
1206
|
+
>>> thread = api.list_timelines_with_http_info(as_at, effective_at, page, limit, filter, sort_by, property_keys, async_req=True)
|
1207
|
+
>>> result = thread.get()
|
1208
|
+
|
1209
|
+
:param as_at: The asAt datetime at which to list the Timelines. Defaults to returning the latest version of each Timeline if not specified.
|
1210
|
+
:type as_at: datetime
|
1211
|
+
:param effective_at: The effective datetime or cut label at which to list the Timelines. Note that Timelines are monotemporal, the effectiveAt is for Timevariant Properties on the Timeline only. Defaults to the current LUSID system datetime if not specified.
|
1212
|
+
:type effective_at: str
|
1213
|
+
:param page: The pagination token to use to continue listing Timelines; 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.
|
1214
|
+
:type page: str
|
1215
|
+
:param limit: When paginating, limit the results to this number. Defaults to 100 if not specified.
|
1216
|
+
:type limit: int
|
1217
|
+
:param filter: Expression to filter the results. For example, to filter on the displayName, specify \"displayName eq 'AccountingTimeline'\". For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.
|
1218
|
+
:type filter: str
|
1219
|
+
:param sort_by: A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\"
|
1220
|
+
:type sort_by: List[str]
|
1221
|
+
:param property_keys: A list of property keys from the 'Timeline' domain to decorate onto each Timeline. These must take the format {domain}/{scope}/{code}, for example 'Timeline/Account/id'.
|
1222
|
+
:type property_keys: List[str]
|
1223
|
+
:param async_req: Whether to execute the request asynchronously.
|
1224
|
+
:type async_req: bool, optional
|
1225
|
+
:param _preload_content: if False, the ApiResponse.data will
|
1226
|
+
be set to none and raw_data will store the
|
1227
|
+
HTTP response body without reading/decoding.
|
1228
|
+
Default is True.
|
1229
|
+
:type _preload_content: bool, optional
|
1230
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
1231
|
+
object with status code, headers, etc
|
1232
|
+
:type _return_http_data_only: bool, optional
|
1233
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
1234
|
+
:param opts: Configuration options for this request
|
1235
|
+
:type opts: ConfigurationOptions, optional
|
1236
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1237
|
+
request; this effectively ignores the authentication
|
1238
|
+
in the spec for a single request.
|
1239
|
+
:type _request_auth: dict, optional
|
1240
|
+
:type _content_type: string, optional: force content-type for the request
|
1241
|
+
:return: Returns the result object.
|
1242
|
+
If the method is called asynchronously,
|
1243
|
+
returns the request thread.
|
1244
|
+
:rtype: tuple(PagedResourceListOfTimeline, status_code(int), headers(HTTPHeaderDict))
|
1245
|
+
"""
|
1246
|
+
|
1247
|
+
_params = locals()
|
1248
|
+
|
1249
|
+
_all_params = [
|
1250
|
+
'as_at',
|
1251
|
+
'effective_at',
|
1252
|
+
'page',
|
1253
|
+
'limit',
|
1254
|
+
'filter',
|
1255
|
+
'sort_by',
|
1256
|
+
'property_keys'
|
1257
|
+
]
|
1258
|
+
_all_params.extend(
|
1259
|
+
[
|
1260
|
+
'async_req',
|
1261
|
+
'_return_http_data_only',
|
1262
|
+
'_preload_content',
|
1263
|
+
'_request_timeout',
|
1264
|
+
'_request_auth',
|
1265
|
+
'_content_type',
|
1266
|
+
'_headers',
|
1267
|
+
'opts'
|
1268
|
+
]
|
1269
|
+
)
|
1270
|
+
|
1271
|
+
# validate the arguments
|
1272
|
+
for _key, _val in _params['kwargs'].items():
|
1273
|
+
if _key not in _all_params:
|
1274
|
+
raise ApiTypeError(
|
1275
|
+
"Got an unexpected keyword argument '%s'"
|
1276
|
+
" to method list_timelines" % _key
|
1277
|
+
)
|
1278
|
+
_params[_key] = _val
|
1279
|
+
del _params['kwargs']
|
1280
|
+
|
1281
|
+
_collection_formats = {}
|
1282
|
+
|
1283
|
+
# process the path parameters
|
1284
|
+
_path_params = {}
|
1285
|
+
|
1286
|
+
# process the query parameters
|
1287
|
+
_query_params = []
|
1288
|
+
if _params.get('as_at') is not None: # noqa: E501
|
1289
|
+
if isinstance(_params['as_at'], datetime):
|
1290
|
+
_query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
|
1291
|
+
else:
|
1292
|
+
_query_params.append(('asAt', _params['as_at']))
|
1293
|
+
|
1294
|
+
if _params.get('effective_at') is not None: # noqa: E501
|
1295
|
+
_query_params.append(('effectiveAt', _params['effective_at']))
|
1296
|
+
|
1297
|
+
if _params.get('page') is not None: # noqa: E501
|
1298
|
+
_query_params.append(('page', _params['page']))
|
1299
|
+
|
1300
|
+
if _params.get('limit') is not None: # noqa: E501
|
1301
|
+
_query_params.append(('limit', _params['limit']))
|
1302
|
+
|
1303
|
+
if _params.get('filter') is not None: # noqa: E501
|
1304
|
+
_query_params.append(('filter', _params['filter']))
|
1305
|
+
|
1306
|
+
if _params.get('sort_by') is not None: # noqa: E501
|
1307
|
+
_query_params.append(('sortBy', _params['sort_by']))
|
1308
|
+
_collection_formats['sortBy'] = 'multi'
|
1309
|
+
|
1310
|
+
if _params.get('property_keys') is not None: # noqa: E501
|
1311
|
+
_query_params.append(('propertyKeys', _params['property_keys']))
|
1312
|
+
_collection_formats['propertyKeys'] = 'multi'
|
1313
|
+
|
1314
|
+
# process the header parameters
|
1315
|
+
_header_params = dict(_params.get('_headers', {}))
|
1316
|
+
# process the form parameters
|
1317
|
+
_form_params = []
|
1318
|
+
_files = {}
|
1319
|
+
# process the body parameter
|
1320
|
+
_body_params = None
|
1321
|
+
# set the HTTP header `Accept`
|
1322
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1323
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
1324
|
+
|
1325
|
+
# authentication setting
|
1326
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
1327
|
+
|
1328
|
+
_response_types_map = {
|
1329
|
+
'200': "PagedResourceListOfTimeline",
|
1330
|
+
'400': "LusidValidationProblemDetails",
|
1331
|
+
}
|
1332
|
+
|
1333
|
+
return self.api_client.call_api(
|
1334
|
+
'/api/timelines', 'GET',
|
1335
|
+
_path_params,
|
1336
|
+
_query_params,
|
1337
|
+
_header_params,
|
1338
|
+
body=_body_params,
|
1339
|
+
post_params=_form_params,
|
1340
|
+
files=_files,
|
1341
|
+
response_types_map=_response_types_map,
|
1342
|
+
auth_settings=_auth_settings,
|
1343
|
+
async_req=_params.get('async_req'),
|
1344
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1345
|
+
_preload_content=_params.get('_preload_content', True),
|
1346
|
+
_request_timeout=_params.get('_request_timeout'),
|
1347
|
+
opts=_params.get('opts'),
|
1348
|
+
collection_formats=_collection_formats,
|
1349
|
+
_request_auth=_params.get('_request_auth'))
|
1350
|
+
|
1351
|
+
|
1146
1352
|
@overload
|
1147
1353
|
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
|
1148
1354
|
...
|
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.7533\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
@@ -727,6 +727,7 @@ from lusid.models.paged_resource_list_of_sequence_definition import PagedResourc
|
|
727
727
|
from lusid.models.paged_resource_list_of_staged_modification import PagedResourceListOfStagedModification
|
728
728
|
from lusid.models.paged_resource_list_of_staged_modifications_requested_change_interval import PagedResourceListOfStagedModificationsRequestedChangeInterval
|
729
729
|
from lusid.models.paged_resource_list_of_staging_rule_set import PagedResourceListOfStagingRuleSet
|
730
|
+
from lusid.models.paged_resource_list_of_timeline import PagedResourceListOfTimeline
|
730
731
|
from lusid.models.paged_resource_list_of_transaction_template import PagedResourceListOfTransactionTemplate
|
731
732
|
from lusid.models.paged_resource_list_of_transaction_template_specification import PagedResourceListOfTransactionTemplateSpecification
|
732
733
|
from lusid.models.paged_resource_list_of_translation_script_id import PagedResourceListOfTranslationScriptId
|
@@ -1921,6 +1922,7 @@ __all__ = [
|
|
1921
1922
|
"PagedResourceListOfStagedModification",
|
1922
1923
|
"PagedResourceListOfStagedModificationsRequestedChangeInterval",
|
1923
1924
|
"PagedResourceListOfStagingRuleSet",
|
1925
|
+
"PagedResourceListOfTimeline",
|
1924
1926
|
"PagedResourceListOfTransactionTemplate",
|
1925
1927
|
"PagedResourceListOfTransactionTemplateSpecification",
|
1926
1928
|
"PagedResourceListOfTranslationScriptId",
|
@@ -0,0 +1,121 @@
|
|
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 StrictStr, Field, BaseModel, Field, StrictStr, conlist
|
23
|
+
from lusid.models.link import Link
|
24
|
+
from lusid.models.timeline import Timeline
|
25
|
+
|
26
|
+
class PagedResourceListOfTimeline(BaseModel):
|
27
|
+
"""
|
28
|
+
PagedResourceListOfTimeline
|
29
|
+
"""
|
30
|
+
next_page: Optional[StrictStr] = Field(None,alias="nextPage")
|
31
|
+
previous_page: Optional[StrictStr] = Field(None,alias="previousPage")
|
32
|
+
values: conlist(Timeline) = Field(...)
|
33
|
+
href: Optional[StrictStr] = Field(None,alias="href")
|
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 __str__(self):
|
43
|
+
"""For `print` and `pprint`"""
|
44
|
+
return pprint.pformat(self.dict(by_alias=False))
|
45
|
+
|
46
|
+
def __repr__(self):
|
47
|
+
"""For `print` and `pprint`"""
|
48
|
+
return self.to_str()
|
49
|
+
|
50
|
+
def to_str(self) -> str:
|
51
|
+
"""Returns the string representation of the model using alias"""
|
52
|
+
return pprint.pformat(self.dict(by_alias=True))
|
53
|
+
|
54
|
+
def to_json(self) -> str:
|
55
|
+
"""Returns the JSON representation of the model using alias"""
|
56
|
+
return json.dumps(self.to_dict())
|
57
|
+
|
58
|
+
@classmethod
|
59
|
+
def from_json(cls, json_str: str) -> PagedResourceListOfTimeline:
|
60
|
+
"""Create an instance of PagedResourceListOfTimeline from a JSON string"""
|
61
|
+
return cls.from_dict(json.loads(json_str))
|
62
|
+
|
63
|
+
def to_dict(self):
|
64
|
+
"""Returns the dictionary representation of the model using alias"""
|
65
|
+
_dict = self.dict(by_alias=True,
|
66
|
+
exclude={
|
67
|
+
},
|
68
|
+
exclude_none=True)
|
69
|
+
# override the default output from pydantic by calling `to_dict()` of each item in values (list)
|
70
|
+
_items = []
|
71
|
+
if self.values:
|
72
|
+
for _item in self.values:
|
73
|
+
if _item:
|
74
|
+
_items.append(_item.to_dict())
|
75
|
+
_dict['values'] = _items
|
76
|
+
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
77
|
+
_items = []
|
78
|
+
if self.links:
|
79
|
+
for _item in self.links:
|
80
|
+
if _item:
|
81
|
+
_items.append(_item.to_dict())
|
82
|
+
_dict['links'] = _items
|
83
|
+
# set to None if next_page (nullable) is None
|
84
|
+
# and __fields_set__ contains the field
|
85
|
+
if self.next_page is None and "next_page" in self.__fields_set__:
|
86
|
+
_dict['nextPage'] = None
|
87
|
+
|
88
|
+
# set to None if previous_page (nullable) is None
|
89
|
+
# and __fields_set__ contains the field
|
90
|
+
if self.previous_page is None and "previous_page" in self.__fields_set__:
|
91
|
+
_dict['previousPage'] = None
|
92
|
+
|
93
|
+
# set to None if href (nullable) is None
|
94
|
+
# and __fields_set__ contains the field
|
95
|
+
if self.href is None and "href" in self.__fields_set__:
|
96
|
+
_dict['href'] = None
|
97
|
+
|
98
|
+
# set to None if links (nullable) is None
|
99
|
+
# and __fields_set__ contains the field
|
100
|
+
if self.links is None and "links" in self.__fields_set__:
|
101
|
+
_dict['links'] = None
|
102
|
+
|
103
|
+
return _dict
|
104
|
+
|
105
|
+
@classmethod
|
106
|
+
def from_dict(cls, obj: dict) -> PagedResourceListOfTimeline:
|
107
|
+
"""Create an instance of PagedResourceListOfTimeline from a dict"""
|
108
|
+
if obj is None:
|
109
|
+
return None
|
110
|
+
|
111
|
+
if not isinstance(obj, dict):
|
112
|
+
return PagedResourceListOfTimeline.parse_obj(obj)
|
113
|
+
|
114
|
+
_obj = PagedResourceListOfTimeline.parse_obj({
|
115
|
+
"next_page": obj.get("nextPage"),
|
116
|
+
"previous_page": obj.get("previousPage"),
|
117
|
+
"values": [Timeline.from_dict(_item) for _item in obj.get("values")] if obj.get("values") is not None else None,
|
118
|
+
"href": obj.get("href"),
|
119
|
+
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
120
|
+
})
|
121
|
+
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.739
|
4
4
|
Summary: LUSID API
|
5
5
|
Home-page: https://github.com/finbourne/lusid-sdk-python
|
6
6
|
License: MIT
|
@@ -226,7 +226,7 @@ Class | Method | HTTP request | Description
|
|
226
226
|
*DerivedTransactionPortfoliosApi* | [**delete_derived_portfolio_details**](docs/DerivedTransactionPortfoliosApi.md#delete_derived_portfolio_details) | **DELETE** /api/derivedtransactionportfolios/{scope}/{code}/details | [EARLY ACCESS] DeleteDerivedPortfolioDetails: Delete derived portfolio details
|
227
227
|
*EntitiesApi* | [**get_custom_entity_by_entity_unique_id**](docs/EntitiesApi.md#get_custom_entity_by_entity_unique_id) | **GET** /api/entities/customentities/{entityUniqueId} | [EXPERIMENTAL] GetCustomEntityByEntityUniqueId: Get a Custom Entity instance by its EntityUniqueId
|
228
228
|
*EntitiesApi* | [**get_data_type_by_entity_unique_id**](docs/EntitiesApi.md#get_data_type_by_entity_unique_id) | **GET** /api/entities/datatypes/{entityUniqueId} | [EXPERIMENTAL] GetDataTypeByEntityUniqueId: Get DataType by EntityUniqueId
|
229
|
-
*EntitiesApi* | [**get_entity_history**](docs/EntitiesApi.md#get_entity_history) | **GET** /api/entities/{entityType}/{entityUniqueId}/history | [
|
229
|
+
*EntitiesApi* | [**get_entity_history**](docs/EntitiesApi.md#get_entity_history) | **GET** /api/entities/{entityType}/{entityUniqueId}/history | [EARLY ACCESS] GetEntityHistory: List an entity's history information
|
230
230
|
*EntitiesApi* | [**get_instrument_by_entity_unique_id**](docs/EntitiesApi.md#get_instrument_by_entity_unique_id) | **GET** /api/entities/instruments/{entityUniqueId} | [EXPERIMENTAL] GetInstrumentByEntityUniqueId: Get instrument by EntityUniqueId
|
231
231
|
*EntitiesApi* | [**get_portfolio_by_entity_unique_id**](docs/EntitiesApi.md#get_portfolio_by_entity_unique_id) | **GET** /api/entities/portfolios/{entityUniqueId} | [EXPERIMENTAL] GetPortfolioByEntityUniqueId: Get portfolio by EntityUniqueId
|
232
232
|
*EntitiesApi* | [**get_portfolio_changes**](docs/EntitiesApi.md#get_portfolio_changes) | **GET** /api/entities/changes/portfolios | GetPortfolioChanges: Get the next change to each portfolio in a scope.
|
@@ -575,6 +575,7 @@ Class | Method | HTTP request | Description
|
|
575
575
|
*TimelinesApi* | [**get_closed_period**](docs/TimelinesApi.md#get_closed_period) | **GET** /api/timelines/{scope}/{code}/closedperiods/{closedPeriodId} | [EXPERIMENTAL] GetClosedPeriod: Gets a Closed Period entity.
|
576
576
|
*TimelinesApi* | [**get_timeline**](docs/TimelinesApi.md#get_timeline) | **GET** /api/timelines/{scope}/{code} | [EXPERIMENTAL] GetTimeline: Get a single Timeline by scope and code.
|
577
577
|
*TimelinesApi* | [**list_closed_periods**](docs/TimelinesApi.md#list_closed_periods) | **GET** /api/timelines/{scope}/{code}/closedperiods | [EXPERIMENTAL] ListClosedPeriods: List ClosedPeriods for a specified Timeline.
|
578
|
+
*TimelinesApi* | [**list_timelines**](docs/TimelinesApi.md#list_timelines) | **GET** /api/timelines | [EXPERIMENTAL] ListTimelines: List Timelines
|
578
579
|
*TimelinesApi* | [**update_timeline**](docs/TimelinesApi.md#update_timeline) | **PUT** /api/timelines/{scope}/{code} | [EXPERIMENTAL] UpdateTimeline: Update Timeline defined by scope and code
|
579
580
|
*TransactionConfigurationApi* | [**delete_side_definition**](docs/TransactionConfigurationApi.md#delete_side_definition) | **DELETE** /api/transactionconfiguration/sides/{side}/$delete | DeleteSideDefinition: Delete the given side definition
|
580
581
|
*TransactionConfigurationApi* | [**delete_transaction_type**](docs/TransactionConfigurationApi.md#delete_transaction_type) | **DELETE** /api/transactionconfiguration/types/{source}/{type} | DeleteTransactionType: Delete a transaction type
|
@@ -1372,6 +1373,7 @@ Class | Method | HTTP request | Description
|
|
1372
1373
|
- [PagedResourceListOfStagedModification](docs/PagedResourceListOfStagedModification.md)
|
1373
1374
|
- [PagedResourceListOfStagedModificationsRequestedChangeInterval](docs/PagedResourceListOfStagedModificationsRequestedChangeInterval.md)
|
1374
1375
|
- [PagedResourceListOfStagingRuleSet](docs/PagedResourceListOfStagingRuleSet.md)
|
1376
|
+
- [PagedResourceListOfTimeline](docs/PagedResourceListOfTimeline.md)
|
1375
1377
|
- [PagedResourceListOfTransactionTemplate](docs/PagedResourceListOfTransactionTemplate.md)
|
1376
1378
|
- [PagedResourceListOfTransactionTemplateSpecification](docs/PagedResourceListOfTransactionTemplateSpecification.md)
|
1377
1379
|
- [PagedResourceListOfTranslationScriptId](docs/PagedResourceListOfTranslationScriptId.md)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
lusid/__init__.py,sha256=
|
1
|
+
lusid/__init__.py,sha256=3y453yr3Q3hML_faf4yXIDa5cWCczQqwcxBZgb7-rhw,134873
|
2
2
|
lusid/api/__init__.py,sha256=b9BsX0qfl4jZSlEid6ihux1dyYgNwjtKQZk23veBuc0,6204
|
3
3
|
lusid/api/abor_api.py,sha256=oAvtx9mQGWa5ZQRKjhzkJJH110GiIqiPIefIYNoiT14,166017
|
4
4
|
lusid/api/abor_configuration_api.py,sha256=3Y3KwOOJqPsCsl7rfP-ScCYrKvVsQSP5adbsAsJ9G1s,74238
|
@@ -23,7 +23,7 @@ lusid/api/custom_entity_types_api.py,sha256=Ldk2f5BDjzmnFUDR-Rw71tCpNoEnNeHZ5bpt
|
|
23
23
|
lusid/api/cut_label_definitions_api.py,sha256=aBnmIqapySIsW4JiWtbGrFVLC1mMZBZqSSCeccO3moQ,46261
|
24
24
|
lusid/api/data_types_api.py,sha256=Ey0Op4GXzDry5Gsa-tX19WfYbpw_TbKaeF8Js0_cTnk,92320
|
25
25
|
lusid/api/derived_transaction_portfolios_api.py,sha256=0Krc4vfLm73UqzKQ4nae7Zcto2e_q-CAAk949uVg4pE,19738
|
26
|
-
lusid/api/entities_api.py,sha256=
|
26
|
+
lusid/api/entities_api.py,sha256=AnSavtobxysNwmfIwpOOm3DJmiRARoC3obqbXhEHqDo,83865
|
27
27
|
lusid/api/executions_api.py,sha256=ZL8xmOxGpjIJtdU7lCdwcapILElWx7FGBDr8cjskCZs,44076
|
28
28
|
lusid/api/fee_types_api.py,sha256=qRVfNS91XHBlD_CrewsPMsetIHB6M0mn3RWbD4LTuro,54620
|
29
29
|
lusid/api/fund_configuration_api.py,sha256=S4x4AZbacsLqvnHM2YJPppeWWdmXe4Nj-UGFbwU08EU,72655
|
@@ -66,7 +66,7 @@ lusid/api/staging_rule_set_api.py,sha256=IKUHVDkPySFuC7ZV2N4AQJaos4lm9LKwQ8TNPQt
|
|
66
66
|
lusid/api/structured_result_data_api.py,sha256=NtFQYrHtTCUepCIIeOE0tSYvfFUwyO7-9OnKmGDSoto,109811
|
67
67
|
lusid/api/system_configuration_api.py,sha256=3PuuDkrHZ9qK1gtT8G_zqGZUWeHVGSkxksmuaSHqEO0,61496
|
68
68
|
lusid/api/tax_rule_sets_api.py,sha256=ia8zjTdwlgLGC8KDWFBT21agOrfWgn1zC_ik75mNDJM,48920
|
69
|
-
lusid/api/timelines_api.py,sha256=
|
69
|
+
lusid/api/timelines_api.py,sha256=1Gsn61jN6WZ_OaggLKjfvkX8f1gjgazQaAnEd8z2B-g,99279
|
70
70
|
lusid/api/transaction_configuration_api.py,sha256=OHs853-U1RWs2oApEO3raiMxixxiMQMcXu566qsm5v4,103968
|
71
71
|
lusid/api/transaction_fees_api.py,sha256=T9gFVglx23QrFlg-q6jsx8tMW78JzlPo8-5JTL3OoYk,62848
|
72
72
|
lusid/api/transaction_portfolios_api.py,sha256=FA2f01bBGMK4J0LMnqDprHttjmjuTJiUVo2lCMJw04M,602712
|
@@ -74,7 +74,7 @@ lusid/api/translation_api.py,sha256=xpRuTfwQvYBlWe6r_L2EI_uVpXqHFnEOim-i-kVQ85E,
|
|
74
74
|
lusid/api/workspace_api.py,sha256=RplAKcky_SrK0V3nhh2K0UmWGeXggr6RQ4-g9Hqy7hw,190986
|
75
75
|
lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
|
76
76
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
77
|
-
lusid/configuration.py,sha256=
|
77
|
+
lusid/configuration.py,sha256=BcY8wn7Te5gjUOcokKcpGvwgjtCBqE4fEYulwkYJMLU,17972
|
78
78
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
79
79
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
80
80
|
lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
|
@@ -89,7 +89,7 @@ lusid/extensions/rest.py,sha256=dp-bD_LMR2zAL1tmC3-urhWKLomXx7r5iGN1VteMBVQ,1601
|
|
89
89
|
lusid/extensions/retry.py,sha256=EhW9OKJmGHipxN3H7eROH5DiMlAnfBVl95NQrttcsdg,14834
|
90
90
|
lusid/extensions/socket_keep_alive.py,sha256=NGlqsv-E25IjJOLGZhXZY6kUdx51nEF8qCQyVdzayRk,1653
|
91
91
|
lusid/extensions/tcp_keep_alive_connector.py,sha256=zaGtUsygRsxB1_4B3x39K3ILwztdhMLDv5bFZV7zmGE,3877
|
92
|
-
lusid/models/__init__.py,sha256=
|
92
|
+
lusid/models/__init__.py,sha256=xJd_6c7ffMHwVIxgb0k39tJEQuivLhjt1SsHCQmHwXA,127637
|
93
93
|
lusid/models/a2_b_breakdown.py,sha256=-FXgILrvtZXQDmvS0ARaJVGBq5LJ4AH-o3HjujFVmS4,3198
|
94
94
|
lusid/models/a2_b_category.py,sha256=WunXUgx-dCnApPeLC8Qo5tVCX8Ywxkehib1vmNqNgNs,2957
|
95
95
|
lusid/models/a2_b_data_record.py,sha256=qANTmV1_HUEo4l72-F8qzZjlQxOe0Onc9WPz7h-WWuY,9993
|
@@ -803,6 +803,7 @@ lusid/models/paged_resource_list_of_sequence_definition.py,sha256=LMGolmIHHYo7B-
|
|
803
803
|
lusid/models/paged_resource_list_of_staged_modification.py,sha256=zyiqCwpWGt0eT7qTPH2QgNwnCDoTBJDW64w1VRlrWZw,4447
|
804
804
|
lusid/models/paged_resource_list_of_staged_modifications_requested_change_interval.py,sha256=o9ytmHMMeU6RaeO28hrqWSdJ6G41H9bkOMAZZ_ihj7c,4738
|
805
805
|
lusid/models/paged_resource_list_of_staging_rule_set.py,sha256=NQO2wmkfoOyxF3QO-dIxTxWTBsCQMnqasVvUotCLqkM,4400
|
806
|
+
lusid/models/paged_resource_list_of_timeline.py,sha256=1iHi6U_nCuBo1zRqj1g989cJP6QmBD95Io-jjWLXqlQ,4326
|
806
807
|
lusid/models/paged_resource_list_of_transaction_template.py,sha256=1sSdNSi-ygIVJ5Rh-cy0CURpnNBjtux-n7xTDS61tbU,4459
|
807
808
|
lusid/models/paged_resource_list_of_transaction_template_specification.py,sha256=BKoGRJYX7eiHb7lEItGtcZM8eYRMi5WNEU9hrNPlHec,4616
|
808
809
|
lusid/models/paged_resource_list_of_translation_script_id.py,sha256=4-gkz-9gZcpYUZqS6OSlAfqzb8gm_1g-gQfCfTGBy-8,4460
|
@@ -1283,6 +1284,6 @@ lusid/models/workspace_update_request.py,sha256=ihKnBY685hfgs9uoyAXQNt1w7iOF-6Jc
|
|
1283
1284
|
lusid/models/yield_curve_data.py,sha256=eDxj1qjChju3anFaQzywjFOuchX5i0pOTh5N-zcvJzg,6540
|
1284
1285
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1285
1286
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1286
|
-
lusid_sdk-2.1.
|
1287
|
-
lusid_sdk-2.1.
|
1288
|
-
lusid_sdk-2.1.
|
1287
|
+
lusid_sdk-2.1.739.dist-info/METADATA,sha256=a92qx2ryEF2kKLTBJQo2umlC0JyEzDSPjcnQPsGZc9s,220164
|
1288
|
+
lusid_sdk-2.1.739.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
1289
|
+
lusid_sdk-2.1.739.dist-info/RECORD,,
|
File without changes
|