lusid-sdk 2.1.816__py3-none-any.whl → 2.1.818__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.
@@ -31,6 +31,7 @@ from lusid.models.abor_configuration_properties import AborConfigurationProperti
31
31
  from lusid.models.abor_configuration_request import AborConfigurationRequest
32
32
  from lusid.models.deleted_entity_response import DeletedEntityResponse
33
33
  from lusid.models.model_property import ModelProperty
34
+ from lusid.models.operation import Operation
34
35
  from lusid.models.paged_resource_list_of_abor_configuration import PagedResourceListOfAborConfiguration
35
36
 
36
37
  from lusid.api_client import ApiClient
@@ -958,6 +959,181 @@ class AborConfigurationApi:
958
959
  _request_auth=_params.get('_request_auth'))
959
960
 
960
961
 
962
+ @overload
963
+ async def patch_abor_configuration(self, scope : Annotated[StrictStr, Field(..., description="The scope of the AborConfiguration.")], code : Annotated[StrictStr, Field(..., description="The code of the AborConfiguration. Together with the scope this uniquely identifies the AborConfiguration.")], operation : Annotated[conlist(Operation), Field(..., description="The json patch document. For more information see: https://datatracker.ietf.org/doc/html/rfc6902.")], **kwargs) -> AborConfiguration: # noqa: E501
964
+ ...
965
+
966
+ @overload
967
+ def patch_abor_configuration(self, scope : Annotated[StrictStr, Field(..., description="The scope of the AborConfiguration.")], code : Annotated[StrictStr, Field(..., description="The code of the AborConfiguration. Together with the scope this uniquely identifies the AborConfiguration.")], operation : Annotated[conlist(Operation), Field(..., description="The json patch document. For more information see: https://datatracker.ietf.org/doc/html/rfc6902.")], async_req: Optional[bool]=True, **kwargs) -> AborConfiguration: # noqa: E501
968
+ ...
969
+
970
+ @validate_arguments
971
+ def patch_abor_configuration(self, scope : Annotated[StrictStr, Field(..., description="The scope of the AborConfiguration.")], code : Annotated[StrictStr, Field(..., description="The code of the AborConfiguration. Together with the scope this uniquely identifies the AborConfiguration.")], operation : Annotated[conlist(Operation), Field(..., description="The json patch document. For more information see: https://datatracker.ietf.org/doc/html/rfc6902.")], async_req: Optional[bool]=None, **kwargs) -> Union[AborConfiguration, Awaitable[AborConfiguration]]: # noqa: E501
972
+ """[EXPERIMENTAL] PatchAborConfiguration: Patch Abor Configuration. # noqa: E501
973
+
974
+ Create or update certain fields for a particular AborConfiguration. The behaviour is defined by the JSON Patch specification. Currently supported fields are: DisplayName, Description, PostingModuleCodes, CleardownModuleCodes. # noqa: E501
975
+ This method makes a synchronous HTTP request by default. To make an
976
+ asynchronous HTTP request, please pass async_req=True
977
+
978
+ >>> thread = api.patch_abor_configuration(scope, code, operation, async_req=True)
979
+ >>> result = thread.get()
980
+
981
+ :param scope: The scope of the AborConfiguration. (required)
982
+ :type scope: str
983
+ :param code: The code of the AborConfiguration. Together with the scope this uniquely identifies the AborConfiguration. (required)
984
+ :type code: str
985
+ :param operation: The json patch document. For more information see: https://datatracker.ietf.org/doc/html/rfc6902. (required)
986
+ :type operation: List[Operation]
987
+ :param async_req: Whether to execute the request asynchronously.
988
+ :type async_req: bool, optional
989
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
990
+ :param opts: Configuration options for this request
991
+ :type opts: ConfigurationOptions, optional
992
+ :return: Returns the result object.
993
+ If the method is called asynchronously,
994
+ returns the request thread.
995
+ :rtype: AborConfiguration
996
+ """
997
+ kwargs['_return_http_data_only'] = True
998
+ if '_preload_content' in kwargs:
999
+ message = "Error! Please call the patch_abor_configuration_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
1000
+ raise ValueError(message)
1001
+ if async_req is not None:
1002
+ kwargs['async_req'] = async_req
1003
+ return self.patch_abor_configuration_with_http_info(scope, code, operation, **kwargs) # noqa: E501
1004
+
1005
+ @validate_arguments
1006
+ def patch_abor_configuration_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the AborConfiguration.")], code : Annotated[StrictStr, Field(..., description="The code of the AborConfiguration. Together with the scope this uniquely identifies the AborConfiguration.")], operation : Annotated[conlist(Operation), Field(..., description="The json patch document. For more information see: https://datatracker.ietf.org/doc/html/rfc6902.")], **kwargs) -> ApiResponse: # noqa: E501
1007
+ """[EXPERIMENTAL] PatchAborConfiguration: Patch Abor Configuration. # noqa: E501
1008
+
1009
+ Create or update certain fields for a particular AborConfiguration. The behaviour is defined by the JSON Patch specification. Currently supported fields are: DisplayName, Description, PostingModuleCodes, CleardownModuleCodes. # noqa: E501
1010
+ This method makes a synchronous HTTP request by default. To make an
1011
+ asynchronous HTTP request, please pass async_req=True
1012
+
1013
+ >>> thread = api.patch_abor_configuration_with_http_info(scope, code, operation, async_req=True)
1014
+ >>> result = thread.get()
1015
+
1016
+ :param scope: The scope of the AborConfiguration. (required)
1017
+ :type scope: str
1018
+ :param code: The code of the AborConfiguration. Together with the scope this uniquely identifies the AborConfiguration. (required)
1019
+ :type code: str
1020
+ :param operation: The json patch document. For more information see: https://datatracker.ietf.org/doc/html/rfc6902. (required)
1021
+ :type operation: List[Operation]
1022
+ :param async_req: Whether to execute the request asynchronously.
1023
+ :type async_req: bool, optional
1024
+ :param _preload_content: if False, the ApiResponse.data will
1025
+ be set to none and raw_data will store the
1026
+ HTTP response body without reading/decoding.
1027
+ Default is True.
1028
+ :type _preload_content: bool, optional
1029
+ :param _return_http_data_only: response data instead of ApiResponse
1030
+ object with status code, headers, etc
1031
+ :type _return_http_data_only: bool, optional
1032
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
1033
+ :param opts: Configuration options for this request
1034
+ :type opts: ConfigurationOptions, optional
1035
+ :param _request_auth: set to override the auth_settings for an a single
1036
+ request; this effectively ignores the authentication
1037
+ in the spec for a single request.
1038
+ :type _request_auth: dict, optional
1039
+ :type _content_type: string, optional: force content-type for the request
1040
+ :return: Returns the result object.
1041
+ If the method is called asynchronously,
1042
+ returns the request thread.
1043
+ :rtype: tuple(AborConfiguration, status_code(int), headers(HTTPHeaderDict))
1044
+ """
1045
+
1046
+ _params = locals()
1047
+
1048
+ _all_params = [
1049
+ 'scope',
1050
+ 'code',
1051
+ 'operation'
1052
+ ]
1053
+ _all_params.extend(
1054
+ [
1055
+ 'async_req',
1056
+ '_return_http_data_only',
1057
+ '_preload_content',
1058
+ '_request_timeout',
1059
+ '_request_auth',
1060
+ '_content_type',
1061
+ '_headers',
1062
+ 'opts'
1063
+ ]
1064
+ )
1065
+
1066
+ # validate the arguments
1067
+ for _key, _val in _params['kwargs'].items():
1068
+ if _key not in _all_params:
1069
+ raise ApiTypeError(
1070
+ "Got an unexpected keyword argument '%s'"
1071
+ " to method patch_abor_configuration" % _key
1072
+ )
1073
+ _params[_key] = _val
1074
+ del _params['kwargs']
1075
+
1076
+ _collection_formats = {}
1077
+
1078
+ # process the path parameters
1079
+ _path_params = {}
1080
+ if _params['scope']:
1081
+ _path_params['scope'] = _params['scope']
1082
+
1083
+ if _params['code']:
1084
+ _path_params['code'] = _params['code']
1085
+
1086
+
1087
+ # process the query parameters
1088
+ _query_params = []
1089
+ # process the header parameters
1090
+ _header_params = dict(_params.get('_headers', {}))
1091
+ # process the form parameters
1092
+ _form_params = []
1093
+ _files = {}
1094
+ # process the body parameter
1095
+ _body_params = None
1096
+ if _params['operation'] is not None:
1097
+ _body_params = _params['operation']
1098
+
1099
+ # set the HTTP header `Accept`
1100
+ _header_params['Accept'] = self.api_client.select_header_accept(
1101
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
1102
+
1103
+ # set the HTTP header `Content-Type`
1104
+ _content_types_list = _params.get('_content_type',
1105
+ self.api_client.select_header_content_type(
1106
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
1107
+ if _content_types_list:
1108
+ _header_params['Content-Type'] = _content_types_list
1109
+
1110
+ # authentication setting
1111
+ _auth_settings = ['oauth2'] # noqa: E501
1112
+
1113
+ _response_types_map = {
1114
+ '200': "AborConfiguration",
1115
+ '400': "LusidValidationProblemDetails",
1116
+ }
1117
+
1118
+ return self.api_client.call_api(
1119
+ '/api/aborconfiguration/{scope}/{code}', 'PATCH',
1120
+ _path_params,
1121
+ _query_params,
1122
+ _header_params,
1123
+ body=_body_params,
1124
+ post_params=_form_params,
1125
+ files=_files,
1126
+ response_types_map=_response_types_map,
1127
+ auth_settings=_auth_settings,
1128
+ async_req=_params.get('async_req'),
1129
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1130
+ _preload_content=_params.get('_preload_content', True),
1131
+ _request_timeout=_params.get('_request_timeout'),
1132
+ opts=_params.get('opts'),
1133
+ collection_formats=_collection_formats,
1134
+ _request_auth=_params.get('_request_auth'))
1135
+
1136
+
961
1137
  @overload
962
1138
  async def upsert_abor_configuration_properties(self, scope : Annotated[StrictStr, Field(..., description="The scope of the AborConfiguration to update or insert the properties onto.")], code : Annotated[StrictStr, Field(..., description="The code of the AborConfiguration to update or insert the properties onto. Together with the scope this uniquely identifies the AborConfiguration.")], request_body : Annotated[Optional[Dict[str, ModelProperty]], Field(description="The properties to be updated or inserted onto the chart of account. Each property in the request must be keyed by its unique property key. This has the format {domain}/{scope}/{code} e.g. \"AborConfiguration/Manager/Id\".")] = None, **kwargs) -> AborConfigurationProperties: # noqa: E501
963
1139
  ...
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.7860\n"\
448
+ "Version of the API: 0.11.7876\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451
 
@@ -160,6 +160,11 @@ class DividendReinvestmentEvent(InstrumentEvent):
160
160
  if self.record_date is None and "record_date" in self.__fields_set__:
161
161
  _dict['recordDate'] = None
162
162
 
163
+ # set to None if security_settlement_date (nullable) is None
164
+ # and __fields_set__ contains the field
165
+ if self.security_settlement_date is None and "security_settlement_date" in self.__fields_set__:
166
+ _dict['securitySettlementDate'] = None
167
+
163
168
  return _dict
164
169
 
165
170
  @classmethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.816
3
+ Version: 2.1.818
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -51,6 +51,7 @@ Class | Method | HTTP request | Description
51
51
  *AborConfigurationApi* | [**get_abor_configuration**](docs/AborConfigurationApi.md#get_abor_configuration) | **GET** /api/aborconfiguration/{scope}/{code} | [EXPERIMENTAL] GetAborConfiguration: Get AborConfiguration.
52
52
  *AborConfigurationApi* | [**get_abor_configuration_properties**](docs/AborConfigurationApi.md#get_abor_configuration_properties) | **GET** /api/aborconfiguration/{scope}/{code}/properties | [EXPERIMENTAL] GetAborConfigurationProperties: Get Abor Configuration properties
53
53
  *AborConfigurationApi* | [**list_abor_configurations**](docs/AborConfigurationApi.md#list_abor_configurations) | **GET** /api/aborconfiguration | [EXPERIMENTAL] ListAborConfigurations: List AborConfiguration.
54
+ *AborConfigurationApi* | [**patch_abor_configuration**](docs/AborConfigurationApi.md#patch_abor_configuration) | **PATCH** /api/aborconfiguration/{scope}/{code} | [EXPERIMENTAL] PatchAborConfiguration: Patch Abor Configuration.
54
55
  *AborConfigurationApi* | [**upsert_abor_configuration_properties**](docs/AborConfigurationApi.md#upsert_abor_configuration_properties) | **POST** /api/aborconfiguration/{scope}/{code}/properties/$upsert | [EXPERIMENTAL] UpsertAborConfigurationProperties: Upsert AborConfiguration properties
55
56
  *AddressKeyDefinitionApi* | [**create_address_key_definition**](docs/AddressKeyDefinitionApi.md#create_address_key_definition) | **POST** /api/addresskeydefinitions | [EARLY ACCESS] CreateAddressKeyDefinition: Create an AddressKeyDefinition.
56
57
  *AddressKeyDefinitionApi* | [**get_address_key_definition**](docs/AddressKeyDefinitionApi.md#get_address_key_definition) | **GET** /api/addresskeydefinitions/{key} | [EARLY ACCESS] GetAddressKeyDefinition: Get an AddressKeyDefinition.
@@ -1,7 +1,7 @@
1
1
  lusid/__init__.py,sha256=1Nin6KaoFdQrc3BhERsfwFNi4eo8f2YxK4ny3eTCkts,138620
2
2
  lusid/api/__init__.py,sha256=rDMCQ5xxj5K43PAE4v9joIu4G8XxM2QNi2Dj0vFQA8A,6471
3
3
  lusid/api/abor_api.py,sha256=oAvtx9mQGWa5ZQRKjhzkJJH110GiIqiPIefIYNoiT14,166017
4
- lusid/api/abor_configuration_api.py,sha256=3Y3KwOOJqPsCsl7rfP-ScCYrKvVsQSP5adbsAsJ9G1s,74238
4
+ lusid/api/abor_configuration_api.py,sha256=txPVFPy1lkvP4iYzFMaq_NhEteAH8Tvc_PCFJwXWTEA,84246
5
5
  lusid/api/address_key_definition_api.py,sha256=m1nlEYBeggP_6XUW-i7ah9G0Vmz8hNuKuYtM6Z9VTzA,31350
6
6
  lusid/api/aggregated_returns_api.py,sha256=baHloWbQnmiO6TbuMNbfE6igvUEMM7HpwCUuBF6JLVY,32553
7
7
  lusid/api/aggregation_api.py,sha256=2rNBwnt3WvOpwqDTBSL--xybTGJ-15Ph-ERFcdtsohc,37886
@@ -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=oxpvxjjdaiOayx3iLwED_GLdnJb5trPm4IkFCGVcAHo,17972
80
+ lusid/configuration.py,sha256=MAX5x_u0Mg_GG9J8STrL3wSC6KfX06GSFkxBPTruTjk,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
@@ -425,7 +425,7 @@ lusid/models/discount_factor_curve_data.py,sha256=27orY3jBbTfuyco3Ss4pOdguKdj0nO
425
425
  lusid/models/discounting_dependency.py,sha256=A9aTJzswDoMQ0W602cWuiX96rDBhuD1J9uAzzL0-O5s,7656
426
426
  lusid/models/discounting_method.py,sha256=MlWtNqjuA9R4G5hosNUyP5NgFDnzlOpVHgnRH44uo-k,734
427
427
  lusid/models/dividend_option_event.py,sha256=fUZmjLoUJIFcOsiJN3bpWHo_g8Yz07vZjkxzEJbdYOE,13667
428
- lusid/models/dividend_reinvestment_event.py,sha256=84klv-srL-iSJu2Ii2b_8r0W95F1KfgO86Kd-fwaxxI,13519
428
+ lusid/models/dividend_reinvestment_event.py,sha256=TkUn_rEDvz40SCGpnw6464X_0iXI654M04AwGS0IKfI,13792
429
429
  lusid/models/drawdown_event.py,sha256=I88kFxJ0vjFZem2WG_QsGnLcr05BKSLXBLKFvn3bZsg,11119
430
430
  lusid/models/early_redemption_election.py,sha256=2e0EoSNJiybg_9RRVhgyuzOhxTN2s2THi0zksdV5LUA,2785
431
431
  lusid/models/early_redemption_event.py,sha256=b81Obu2kdDEASSQkrQ5MsQb1gbIuP2QhtzGuLgNwXR8,13554
@@ -1321,6 +1321,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
1321
1321
  lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
1322
1322
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1323
1323
  lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
1324
- lusid_sdk-2.1.816.dist-info/METADATA,sha256=g7cnIPS1krbfUjcxSjBSy06LDMn2vDOuiCw9D9zSvBw,221199
1325
- lusid_sdk-2.1.816.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1326
- lusid_sdk-2.1.816.dist-info/RECORD,,
1324
+ lusid_sdk-2.1.818.dist-info/METADATA,sha256=tIRSvbUE240TupyfIBa1rFk5NLNPDfZ0VkqM_UWyrqo,221427
1325
+ lusid_sdk-2.1.818.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1326
+ lusid_sdk-2.1.818.dist-info/RECORD,,