lusid-sdk 2.1.951__py3-none-any.whl → 2.1.953__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/api/abor_api.py CHANGED
@@ -81,7 +81,7 @@ class AborApi:
81
81
 
82
82
  @validate_arguments
83
83
  def add_diary_entry(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Abor.")], code : Annotated[StrictStr, Field(..., description="The code of the Abor.")], diary_entry_request : Annotated[DiaryEntryRequest, Field(..., description="The diary entry to add.")], async_req: Optional[bool]=None, **kwargs) -> Union[DiaryEntry, Awaitable[DiaryEntry]]: # noqa: E501
84
- """[EXPERIMENTAL] AddDiaryEntry: Add a diary entry to the specified Abor. # noqa: E501
84
+ """[EXPERIMENTAL] AddDiaryEntry: Add a diary entry to the specified Abor. This would be type 'Other'. # noqa: E501
85
85
 
86
86
  Adds a new diary entry to the specified Abor # noqa: E501
87
87
  This method makes a synchronous HTTP request by default. To make an
@@ -116,7 +116,7 @@ class AborApi:
116
116
 
117
117
  @validate_arguments
118
118
  def add_diary_entry_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Abor.")], code : Annotated[StrictStr, Field(..., description="The code of the Abor.")], diary_entry_request : Annotated[DiaryEntryRequest, Field(..., description="The diary entry to add.")], **kwargs) -> ApiResponse: # noqa: E501
119
- """[EXPERIMENTAL] AddDiaryEntry: Add a diary entry to the specified Abor. # noqa: E501
119
+ """[EXPERIMENTAL] AddDiaryEntry: Add a diary entry to the specified Abor. This would be type 'Other'. # noqa: E501
120
120
 
121
121
  Adds a new diary entry to the specified Abor # noqa: E501
122
122
  This method makes a synchronous HTTP request by default. To make an
@@ -748,6 +748,174 @@ class AborApi:
748
748
  _request_auth=_params.get('_request_auth'))
749
749
 
750
750
 
751
+ @overload
752
+ async def delete_diary_entry(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Abor.")], code : Annotated[StrictStr, Field(..., description="The code of the Abor.")], diary_entry_code : Annotated[StrictStr, Field(..., description="The diary entry code to be deleted.")], **kwargs) -> DeletedEntityResponse: # noqa: E501
753
+ ...
754
+
755
+ @overload
756
+ def delete_diary_entry(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Abor.")], code : Annotated[StrictStr, Field(..., description="The code of the Abor.")], diary_entry_code : Annotated[StrictStr, Field(..., description="The diary entry code to be deleted.")], async_req: Optional[bool]=True, **kwargs) -> DeletedEntityResponse: # noqa: E501
757
+ ...
758
+
759
+ @validate_arguments
760
+ def delete_diary_entry(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Abor.")], code : Annotated[StrictStr, Field(..., description="The code of the Abor.")], diary_entry_code : Annotated[StrictStr, Field(..., description="The diary entry code to be deleted.")], async_req: Optional[bool]=None, **kwargs) -> Union[DeletedEntityResponse, Awaitable[DeletedEntityResponse]]: # noqa: E501
761
+ """[EXPERIMENTAL] DeleteDiaryEntry: Delete a diary entry type 'Other' from the specified Abor. # noqa: E501
762
+
763
+ Delete a diary entry type 'Other' from the specified Abor. # noqa: E501
764
+ This method makes a synchronous HTTP request by default. To make an
765
+ asynchronous HTTP request, please pass async_req=True
766
+
767
+ >>> thread = api.delete_diary_entry(scope, code, diary_entry_code, async_req=True)
768
+ >>> result = thread.get()
769
+
770
+ :param scope: The scope of the Abor. (required)
771
+ :type scope: str
772
+ :param code: The code of the Abor. (required)
773
+ :type code: str
774
+ :param diary_entry_code: The diary entry code to be deleted. (required)
775
+ :type diary_entry_code: str
776
+ :param async_req: Whether to execute the request asynchronously.
777
+ :type async_req: bool, optional
778
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
779
+ :param opts: Configuration options for this request
780
+ :type opts: ConfigurationOptions, optional
781
+ :return: Returns the result object.
782
+ If the method is called asynchronously,
783
+ returns the request thread.
784
+ :rtype: DeletedEntityResponse
785
+ """
786
+ kwargs['_return_http_data_only'] = True
787
+ if '_preload_content' in kwargs:
788
+ message = "Error! Please call the delete_diary_entry_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
789
+ raise ValueError(message)
790
+ if async_req is not None:
791
+ kwargs['async_req'] = async_req
792
+ return self.delete_diary_entry_with_http_info(scope, code, diary_entry_code, **kwargs) # noqa: E501
793
+
794
+ @validate_arguments
795
+ def delete_diary_entry_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Abor.")], code : Annotated[StrictStr, Field(..., description="The code of the Abor.")], diary_entry_code : Annotated[StrictStr, Field(..., description="The diary entry code to be deleted.")], **kwargs) -> ApiResponse: # noqa: E501
796
+ """[EXPERIMENTAL] DeleteDiaryEntry: Delete a diary entry type 'Other' from the specified Abor. # noqa: E501
797
+
798
+ Delete a diary entry type 'Other' from the specified Abor. # noqa: E501
799
+ This method makes a synchronous HTTP request by default. To make an
800
+ asynchronous HTTP request, please pass async_req=True
801
+
802
+ >>> thread = api.delete_diary_entry_with_http_info(scope, code, diary_entry_code, async_req=True)
803
+ >>> result = thread.get()
804
+
805
+ :param scope: The scope of the Abor. (required)
806
+ :type scope: str
807
+ :param code: The code of the Abor. (required)
808
+ :type code: str
809
+ :param diary_entry_code: The diary entry code to be deleted. (required)
810
+ :type diary_entry_code: str
811
+ :param async_req: Whether to execute the request asynchronously.
812
+ :type async_req: bool, optional
813
+ :param _preload_content: if False, the ApiResponse.data will
814
+ be set to none and raw_data will store the
815
+ HTTP response body without reading/decoding.
816
+ Default is True.
817
+ :type _preload_content: bool, optional
818
+ :param _return_http_data_only: response data instead of ApiResponse
819
+ object with status code, headers, etc
820
+ :type _return_http_data_only: bool, optional
821
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
822
+ :param opts: Configuration options for this request
823
+ :type opts: ConfigurationOptions, optional
824
+ :param _request_auth: set to override the auth_settings for an a single
825
+ request; this effectively ignores the authentication
826
+ in the spec for a single request.
827
+ :type _request_auth: dict, optional
828
+ :type _content_type: string, optional: force content-type for the request
829
+ :return: Returns the result object.
830
+ If the method is called asynchronously,
831
+ returns the request thread.
832
+ :rtype: tuple(DeletedEntityResponse, status_code(int), headers(HTTPHeaderDict))
833
+ """
834
+
835
+ _params = locals()
836
+
837
+ _all_params = [
838
+ 'scope',
839
+ 'code',
840
+ 'diary_entry_code'
841
+ ]
842
+ _all_params.extend(
843
+ [
844
+ 'async_req',
845
+ '_return_http_data_only',
846
+ '_preload_content',
847
+ '_request_timeout',
848
+ '_request_auth',
849
+ '_content_type',
850
+ '_headers',
851
+ 'opts'
852
+ ]
853
+ )
854
+
855
+ # validate the arguments
856
+ for _key, _val in _params['kwargs'].items():
857
+ if _key not in _all_params:
858
+ raise ApiTypeError(
859
+ "Got an unexpected keyword argument '%s'"
860
+ " to method delete_diary_entry" % _key
861
+ )
862
+ _params[_key] = _val
863
+ del _params['kwargs']
864
+
865
+ _collection_formats = {}
866
+
867
+ # process the path parameters
868
+ _path_params = {}
869
+ if _params['scope']:
870
+ _path_params['scope'] = _params['scope']
871
+
872
+ if _params['code']:
873
+ _path_params['code'] = _params['code']
874
+
875
+ if _params['diary_entry_code']:
876
+ _path_params['diaryEntryCode'] = _params['diary_entry_code']
877
+
878
+
879
+ # process the query parameters
880
+ _query_params = []
881
+ # process the header parameters
882
+ _header_params = dict(_params.get('_headers', {}))
883
+ # process the form parameters
884
+ _form_params = []
885
+ _files = {}
886
+ # process the body parameter
887
+ _body_params = None
888
+ # set the HTTP header `Accept`
889
+ _header_params['Accept'] = self.api_client.select_header_accept(
890
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
891
+
892
+ # authentication setting
893
+ _auth_settings = ['oauth2'] # noqa: E501
894
+
895
+ _response_types_map = {
896
+ '200': "DeletedEntityResponse",
897
+ '400': "LusidValidationProblemDetails",
898
+ }
899
+
900
+ return self.api_client.call_api(
901
+ '/api/abor/{scope}/{code}/accountingdiary/{diaryEntryCode}', 'DELETE',
902
+ _path_params,
903
+ _query_params,
904
+ _header_params,
905
+ body=_body_params,
906
+ post_params=_form_params,
907
+ files=_files,
908
+ response_types_map=_response_types_map,
909
+ auth_settings=_auth_settings,
910
+ async_req=_params.get('async_req'),
911
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
912
+ _preload_content=_params.get('_preload_content', True),
913
+ _request_timeout=_params.get('_request_timeout'),
914
+ opts=_params.get('opts'),
915
+ collection_formats=_collection_formats,
916
+ _request_auth=_params.get('_request_auth'))
917
+
918
+
751
919
  @overload
752
920
  async def get_abor(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Abor.")], code : Annotated[StrictStr, Field(..., description="The code of the Abor. Together with the scope this uniquely identifies the Abor.")], effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to retrieve the Abor properties. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the Abor definition. Defaults to returning the latest version of the Abor definition if not specified.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Abor' domain to decorate onto the Abor. These must take the format {domain}/{scope}/{code}, for example 'Abor/Manager/Id'. If no properties are specified, then no properties will be returned.")] = None, **kwargs) -> Abor: # noqa: E501
753
921
  ...