lusid-sdk 2.1.872__py3-none-any.whl → 2.1.873__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/orders_api.py CHANGED
@@ -596,26 +596,30 @@ class OrdersApi:
596
596
 
597
597
 
598
598
  @overload
599
- async def upsert_orders(self, order_set_request : Annotated[Optional[OrderSetRequest], Field(description="The collection of order requests.")] = None, **kwargs) -> ResourceListOfOrder: # noqa: E501
599
+ async def upsert_orders(self, order_set_request : Annotated[OrderSetRequest, Field(..., description="The collection of order requests.")], data_model_scope : Annotated[Optional[StrictStr], Field( description="The optional scope of a Custom Data Model to use")] = None, data_model_code : Annotated[Optional[StrictStr], Field( description="The optional code of a Custom Data Model to use")] = None, **kwargs) -> ResourceListOfOrder: # noqa: E501
600
600
  ...
601
601
 
602
602
  @overload
603
- def upsert_orders(self, order_set_request : Annotated[Optional[OrderSetRequest], Field(description="The collection of order requests.")] = None, async_req: Optional[bool]=True, **kwargs) -> ResourceListOfOrder: # noqa: E501
603
+ def upsert_orders(self, order_set_request : Annotated[OrderSetRequest, Field(..., description="The collection of order requests.")], data_model_scope : Annotated[Optional[StrictStr], Field( description="The optional scope of a Custom Data Model to use")] = None, data_model_code : Annotated[Optional[StrictStr], Field( description="The optional code of a Custom Data Model to use")] = None, async_req: Optional[bool]=True, **kwargs) -> ResourceListOfOrder: # noqa: E501
604
604
  ...
605
605
 
606
606
  @validate_arguments
607
- def upsert_orders(self, order_set_request : Annotated[Optional[OrderSetRequest], Field(description="The collection of order requests.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ResourceListOfOrder, Awaitable[ResourceListOfOrder]]: # noqa: E501
607
+ def upsert_orders(self, order_set_request : Annotated[OrderSetRequest, Field(..., description="The collection of order requests.")], data_model_scope : Annotated[Optional[StrictStr], Field( description="The optional scope of a Custom Data Model to use")] = None, data_model_code : Annotated[Optional[StrictStr], Field( description="The optional code of a Custom Data Model to use")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ResourceListOfOrder, Awaitable[ResourceListOfOrder]]: # noqa: E501
608
608
  """UpsertOrders: Upsert Order # noqa: E501
609
609
 
610
610
  Upsert; update existing orders with given ids, or create new orders otherwise. # noqa: E501
611
611
  This method makes a synchronous HTTP request by default. To make an
612
612
  asynchronous HTTP request, please pass async_req=True
613
613
 
614
- >>> thread = api.upsert_orders(order_set_request, async_req=True)
614
+ >>> thread = api.upsert_orders(order_set_request, data_model_scope, data_model_code, async_req=True)
615
615
  >>> result = thread.get()
616
616
 
617
- :param order_set_request: The collection of order requests.
617
+ :param order_set_request: The collection of order requests. (required)
618
618
  :type order_set_request: OrderSetRequest
619
+ :param data_model_scope: The optional scope of a Custom Data Model to use
620
+ :type data_model_scope: str
621
+ :param data_model_code: The optional code of a Custom Data Model to use
622
+ :type data_model_code: str
619
623
  :param async_req: Whether to execute the request asynchronously.
620
624
  :type async_req: bool, optional
621
625
  :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
@@ -632,21 +636,25 @@ class OrdersApi:
632
636
  raise ValueError(message)
633
637
  if async_req is not None:
634
638
  kwargs['async_req'] = async_req
635
- return self.upsert_orders_with_http_info(order_set_request, **kwargs) # noqa: E501
639
+ return self.upsert_orders_with_http_info(order_set_request, data_model_scope, data_model_code, **kwargs) # noqa: E501
636
640
 
637
641
  @validate_arguments
638
- def upsert_orders_with_http_info(self, order_set_request : Annotated[Optional[OrderSetRequest], Field(description="The collection of order requests.")] = None, **kwargs) -> ApiResponse: # noqa: E501
642
+ def upsert_orders_with_http_info(self, order_set_request : Annotated[OrderSetRequest, Field(..., description="The collection of order requests.")], data_model_scope : Annotated[Optional[StrictStr], Field( description="The optional scope of a Custom Data Model to use")] = None, data_model_code : Annotated[Optional[StrictStr], Field( description="The optional code of a Custom Data Model to use")] = None, **kwargs) -> ApiResponse: # noqa: E501
639
643
  """UpsertOrders: Upsert Order # noqa: E501
640
644
 
641
645
  Upsert; update existing orders with given ids, or create new orders otherwise. # noqa: E501
642
646
  This method makes a synchronous HTTP request by default. To make an
643
647
  asynchronous HTTP request, please pass async_req=True
644
648
 
645
- >>> thread = api.upsert_orders_with_http_info(order_set_request, async_req=True)
649
+ >>> thread = api.upsert_orders_with_http_info(order_set_request, data_model_scope, data_model_code, async_req=True)
646
650
  >>> result = thread.get()
647
651
 
648
- :param order_set_request: The collection of order requests.
652
+ :param order_set_request: The collection of order requests. (required)
649
653
  :type order_set_request: OrderSetRequest
654
+ :param data_model_scope: The optional scope of a Custom Data Model to use
655
+ :type data_model_scope: str
656
+ :param data_model_code: The optional code of a Custom Data Model to use
657
+ :type data_model_code: str
650
658
  :param async_req: Whether to execute the request asynchronously.
651
659
  :type async_req: bool, optional
652
660
  :param _preload_content: if False, the ApiResponse.data will
@@ -674,7 +682,9 @@ class OrdersApi:
674
682
  _params = locals()
675
683
 
676
684
  _all_params = [
677
- 'order_set_request'
685
+ 'order_set_request',
686
+ 'data_model_scope',
687
+ 'data_model_code'
678
688
  ]
679
689
  _all_params.extend(
680
690
  [
@@ -706,6 +716,12 @@ class OrdersApi:
706
716
 
707
717
  # process the query parameters
708
718
  _query_params = []
719
+ if _params.get('data_model_scope') is not None: # noqa: E501
720
+ _query_params.append(('dataModelScope', _params['data_model_scope']))
721
+
722
+ if _params.get('data_model_code') is not None: # noqa: E501
723
+ _query_params.append(('dataModelCode', _params['data_model_code']))
724
+
709
725
  # process the header parameters
710
726
  _header_params = dict(_params.get('_headers', {}))
711
727
  # process the form parameters
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.8044\n"\
448
+ "Version of the API: 0.11.8049\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.872
3
+ Version: 2.1.873
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -41,7 +41,7 @@ lusid/api/legal_entities_api.py,sha256=LMmm184b6OJLJiWaKwTXiodtOgDMpKbaz1cl_tqWn
41
41
  lusid/api/order_graph_api.py,sha256=-oaauVeAJxJsK6AHscON1nODEDbv8dcXlKNb6ilBOAU,44022
42
42
  lusid/api/order_instructions_api.py,sha256=o6zLGAFzsZsZdj78fXZ0_jIYz7fo4ZHam75Af4eXg4k,45672
43
43
  lusid/api/order_management_api.py,sha256=GKSvyJglWTVDkddD91_c7XS_qvSgfUvWrbdG7h4C1Ks,104078
44
- lusid/api/orders_api.py,sha256=ujZOS8BbUlAOaGAgA7eEiwOiGNxfCAgeKEH94OiNxGE,43228
44
+ lusid/api/orders_api.py,sha256=_1_mEz6O4fzFRb7HQoti7zLlHGK40G5QweZrH129wIQ,45171
45
45
  lusid/api/packages_api.py,sha256=Vis2ktcicNqTF8Bw66vWhmFUyu0jOfiR5FT6iLKGXSM,43686
46
46
  lusid/api/participations_api.py,sha256=UivNIoEmZ2eIxYwHvMnW94Tfy6loXDu5PO5loY0yDJk,44964
47
47
  lusid/api/persons_api.py,sha256=SlNOfUj8ww6vBD-zQoisNNe45scWn1QNkDOZu8ostb4,250280
@@ -78,7 +78,7 @@ lusid/api/translation_api.py,sha256=xpRuTfwQvYBlWe6r_L2EI_uVpXqHFnEOim-i-kVQ85E,
78
78
  lusid/api/workspace_api.py,sha256=0pCNi3ZCRbIo0NXKa85XE7vtq0WV5YOKcQKvFlcLUaY,120708
79
79
  lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
80
80
  lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
81
- lusid/configuration.py,sha256=3esGu53JSJgMi73eEBh2k6DGPBLesGsxmTPKiXSYImo,17972
81
+ lusid/configuration.py,sha256=oMcLYJlWgVjVFF95bw2WXYpcK1wNn7UAQNkzS3IMgso,17972
82
82
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
83
83
  lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
84
84
  lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
@@ -1348,6 +1348,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
1348
1348
  lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
1349
1349
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1350
1350
  lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
1351
- lusid_sdk-2.1.872.dist-info/METADATA,sha256=Sbr_Lz97_r5wPbhc-ISFug0ML8Ei2Uch9-5TCFDPWDY,224274
1352
- lusid_sdk-2.1.872.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1353
- lusid_sdk-2.1.872.dist-info/RECORD,,
1351
+ lusid_sdk-2.1.873.dist-info/METADATA,sha256=EYC724bewE_TC_xOD-yabDuCX_AW2qKEM7cq8mVfWV4,224274
1352
+ lusid_sdk-2.1.873.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1353
+ lusid_sdk-2.1.873.dist-info/RECORD,,