lusid-sdk 2.1.988__py3-none-any.whl → 2.1.990__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.

Potentially problematic release.


This version of lusid-sdk might be problematic. Click here for more details.

Files changed (28) hide show
  1. lusid/__init__.py +20 -0
  2. lusid/api/__init__.py +2 -0
  3. lusid/api/relational_datasets_api.py +450 -0
  4. lusid/configuration.py +1 -1
  5. lusid/models/__init__.py +18 -0
  6. lusid/models/applicable_entity.py +105 -0
  7. lusid/models/batch_upsert_relational_datasets_response.py +132 -0
  8. lusid/models/create_derived_property_definition_request.py +3 -3
  9. lusid/models/create_identifier_definition_request.py +3 -3
  10. lusid/models/create_property_definition_request.py +3 -3
  11. lusid/models/flexible_repo.py +5 -3
  12. lusid/models/identifier_definition.py +3 -3
  13. lusid/models/loan_principal_repayment_event.py +5 -3
  14. lusid/models/paged_resource_list_of_relational_data_point_response.py +121 -0
  15. lusid/models/property_definition.py +3 -3
  16. lusid/models/property_definition_search_result.py +3 -3
  17. lusid/models/property_domain.py +1 -0
  18. lusid/models/query_relational_dataset_request.py +91 -0
  19. lusid/models/relational_data_point_field_value_response.py +82 -0
  20. lusid/models/relational_data_point_response.py +120 -0
  21. lusid/models/relational_data_series_response.py +98 -0
  22. lusid/models/settlement_instruction_request.py +18 -4
  23. lusid/models/transaction_settlement_instruction.py +21 -2
  24. lusid/models/upsert_relational_data_point_data_series.py +85 -0
  25. lusid/models/upsert_relational_data_point_request.py +92 -0
  26. {lusid_sdk-2.1.988.dist-info → lusid_sdk-2.1.990.dist-info}/METADATA +12 -1
  27. {lusid_sdk-2.1.988.dist-info → lusid_sdk-2.1.990.dist-info}/RECORD +28 -18
  28. {lusid_sdk-2.1.988.dist-info → lusid_sdk-2.1.990.dist-info}/WHEEL +0 -0
lusid/__init__.py CHANGED
@@ -74,6 +74,7 @@ from lusid.api.reference_lists_api import ReferenceListsApi
74
74
  from lusid.api.reference_portfolio_api import ReferencePortfolioApi
75
75
  from lusid.api.relation_definitions_api import RelationDefinitionsApi
76
76
  from lusid.api.relational_dataset_definition_api import RelationalDatasetDefinitionApi
77
+ from lusid.api.relational_datasets_api import RelationalDatasetsApi
77
78
  from lusid.api.relations_api import RelationsApi
78
79
  from lusid.api.relationship_definitions_api import RelationshipDefinitionsApi
79
80
  from lusid.api.relationships_api import RelationshipsApi
@@ -175,6 +176,7 @@ from lusid.models.append_fx_forward_tenor_curve_data import AppendFxForwardTenor
175
176
  from lusid.models.append_fx_forward_tenor_pips_curve_data import AppendFxForwardTenorPipsCurveData
176
177
  from lusid.models.append_market_data import AppendMarketData
177
178
  from lusid.models.append_market_data_type import AppendMarketDataType
179
+ from lusid.models.applicable_entity import ApplicableEntity
178
180
  from lusid.models.applicable_instrument_event import ApplicableInstrumentEvent
179
181
  from lusid.models.asset_class import AssetClass
180
182
  from lusid.models.asset_leg import AssetLeg
@@ -192,6 +194,7 @@ from lusid.models.batch_upsert_portfolio_access_metadata_response import BatchUp
192
194
  from lusid.models.batch_upsert_portfolio_access_metadata_response_item import BatchUpsertPortfolioAccessMetadataResponseItem
193
195
  from lusid.models.batch_upsert_portfolio_transactions_response import BatchUpsertPortfolioTransactionsResponse
194
196
  from lusid.models.batch_upsert_property_definition_properties_response import BatchUpsertPropertyDefinitionPropertiesResponse
197
+ from lusid.models.batch_upsert_relational_datasets_response import BatchUpsertRelationalDatasetsResponse
195
198
  from lusid.models.batch_upsert_transaction_settlement_instruction_response import BatchUpsertTransactionSettlementInstructionResponse
196
199
  from lusid.models.block import Block
197
200
  from lusid.models.block_and_order_id_request import BlockAndOrderIdRequest
@@ -876,6 +879,7 @@ from lusid.models.paged_resource_list_of_property_definition import PagedResourc
876
879
  from lusid.models.paged_resource_list_of_property_definition_search_result import PagedResourceListOfPropertyDefinitionSearchResult
877
880
  from lusid.models.paged_resource_list_of_reconciliation import PagedResourceListOfReconciliation
878
881
  from lusid.models.paged_resource_list_of_reference_list_response import PagedResourceListOfReferenceListResponse
882
+ from lusid.models.paged_resource_list_of_relational_data_point_response import PagedResourceListOfRelationalDataPointResponse
879
883
  from lusid.models.paged_resource_list_of_relational_dataset_definition import PagedResourceListOfRelationalDatasetDefinition
880
884
  from lusid.models.paged_resource_list_of_relationship_definition import PagedResourceListOfRelationshipDefinition
881
885
  from lusid.models.paged_resource_list_of_sequence_definition import PagedResourceListOfSequenceDefinition
@@ -979,6 +983,7 @@ from lusid.models.query_applicable_instrument_events_request import QueryApplica
979
983
  from lusid.models.query_bucketed_cash_flows_request import QueryBucketedCashFlowsRequest
980
984
  from lusid.models.query_cash_flows_request import QueryCashFlowsRequest
981
985
  from lusid.models.query_instrument_events_request import QueryInstrumentEventsRequest
986
+ from lusid.models.query_relational_dataset_request import QueryRelationalDatasetRequest
982
987
  from lusid.models.query_trade_tickets_request import QueryTradeTicketsRequest
983
988
  from lusid.models.queryable_key import QueryableKey
984
989
  from lusid.models.quote import Quote
@@ -1025,6 +1030,9 @@ from lusid.models.reference_portfolio_weight_type import ReferencePortfolioWeigh
1025
1030
  from lusid.models.related_entity import RelatedEntity
1026
1031
  from lusid.models.relation import Relation
1027
1032
  from lusid.models.relation_definition import RelationDefinition
1033
+ from lusid.models.relational_data_point_field_value_response import RelationalDataPointFieldValueResponse
1034
+ from lusid.models.relational_data_point_response import RelationalDataPointResponse
1035
+ from lusid.models.relational_data_series_response import RelationalDataSeriesResponse
1028
1036
  from lusid.models.relational_dataset_definition import RelationalDatasetDefinition
1029
1037
  from lusid.models.relational_dataset_field_definition import RelationalDatasetFieldDefinition
1030
1038
  from lusid.models.relationship import Relationship
@@ -1356,6 +1364,8 @@ from lusid.models.upsert_reference_portfolio_constituent_properties_request impo
1356
1364
  from lusid.models.upsert_reference_portfolio_constituent_properties_response import UpsertReferencePortfolioConstituentPropertiesResponse
1357
1365
  from lusid.models.upsert_reference_portfolio_constituents_request import UpsertReferencePortfolioConstituentsRequest
1358
1366
  from lusid.models.upsert_reference_portfolio_constituents_response import UpsertReferencePortfolioConstituentsResponse
1367
+ from lusid.models.upsert_relational_data_point_data_series import UpsertRelationalDataPointDataSeries
1368
+ from lusid.models.upsert_relational_data_point_request import UpsertRelationalDataPointRequest
1359
1369
  from lusid.models.upsert_result_values_data_request import UpsertResultValuesDataRequest
1360
1370
  from lusid.models.upsert_returns_response import UpsertReturnsResponse
1361
1371
  from lusid.models.upsert_single_structured_data_response import UpsertSingleStructuredDataResponse
@@ -1481,6 +1491,7 @@ __all__ = [
1481
1491
  "ReferencePortfolioApi",
1482
1492
  "RelationDefinitionsApi",
1483
1493
  "RelationalDatasetDefinitionApi",
1494
+ "RelationalDatasetsApi",
1484
1495
  "RelationsApi",
1485
1496
  "RelationshipDefinitionsApi",
1486
1497
  "RelationshipsApi",
@@ -1572,6 +1583,7 @@ __all__ = [
1572
1583
  "AppendFxForwardTenorPipsCurveData",
1573
1584
  "AppendMarketData",
1574
1585
  "AppendMarketDataType",
1586
+ "ApplicableEntity",
1575
1587
  "ApplicableInstrumentEvent",
1576
1588
  "AssetClass",
1577
1589
  "AssetLeg",
@@ -1589,6 +1601,7 @@ __all__ = [
1589
1601
  "BatchUpsertPortfolioAccessMetadataResponseItem",
1590
1602
  "BatchUpsertPortfolioTransactionsResponse",
1591
1603
  "BatchUpsertPropertyDefinitionPropertiesResponse",
1604
+ "BatchUpsertRelationalDatasetsResponse",
1592
1605
  "BatchUpsertTransactionSettlementInstructionResponse",
1593
1606
  "Block",
1594
1607
  "BlockAndOrderIdRequest",
@@ -2273,6 +2286,7 @@ __all__ = [
2273
2286
  "PagedResourceListOfPropertyDefinitionSearchResult",
2274
2287
  "PagedResourceListOfReconciliation",
2275
2288
  "PagedResourceListOfReferenceListResponse",
2289
+ "PagedResourceListOfRelationalDataPointResponse",
2276
2290
  "PagedResourceListOfRelationalDatasetDefinition",
2277
2291
  "PagedResourceListOfRelationshipDefinition",
2278
2292
  "PagedResourceListOfSequenceDefinition",
@@ -2376,6 +2390,7 @@ __all__ = [
2376
2390
  "QueryBucketedCashFlowsRequest",
2377
2391
  "QueryCashFlowsRequest",
2378
2392
  "QueryInstrumentEventsRequest",
2393
+ "QueryRelationalDatasetRequest",
2379
2394
  "QueryTradeTicketsRequest",
2380
2395
  "QueryableKey",
2381
2396
  "Quote",
@@ -2422,6 +2437,9 @@ __all__ = [
2422
2437
  "RelatedEntity",
2423
2438
  "Relation",
2424
2439
  "RelationDefinition",
2440
+ "RelationalDataPointFieldValueResponse",
2441
+ "RelationalDataPointResponse",
2442
+ "RelationalDataSeriesResponse",
2425
2443
  "RelationalDatasetDefinition",
2426
2444
  "RelationalDatasetFieldDefinition",
2427
2445
  "Relationship",
@@ -2753,6 +2771,8 @@ __all__ = [
2753
2771
  "UpsertReferencePortfolioConstituentPropertiesResponse",
2754
2772
  "UpsertReferencePortfolioConstituentsRequest",
2755
2773
  "UpsertReferencePortfolioConstituentsResponse",
2774
+ "UpsertRelationalDataPointDataSeries",
2775
+ "UpsertRelationalDataPointRequest",
2756
2776
  "UpsertResultValuesDataRequest",
2757
2777
  "UpsertReturnsResponse",
2758
2778
  "UpsertSingleStructuredDataResponse",
lusid/api/__init__.py CHANGED
@@ -58,6 +58,7 @@ from lusid.api.reference_lists_api import ReferenceListsApi
58
58
  from lusid.api.reference_portfolio_api import ReferencePortfolioApi
59
59
  from lusid.api.relation_definitions_api import RelationDefinitionsApi
60
60
  from lusid.api.relational_dataset_definition_api import RelationalDatasetDefinitionApi
61
+ from lusid.api.relational_datasets_api import RelationalDatasetsApi
61
62
  from lusid.api.relations_api import RelationsApi
62
63
  from lusid.api.relationship_definitions_api import RelationshipDefinitionsApi
63
64
  from lusid.api.relationships_api import RelationshipsApi
@@ -139,6 +140,7 @@ __all__ = [
139
140
  "ReferencePortfolioApi",
140
141
  "RelationDefinitionsApi",
141
142
  "RelationalDatasetDefinitionApi",
143
+ "RelationalDatasetsApi",
142
144
  "RelationsApi",
143
145
  "RelationshipDefinitionsApi",
144
146
  "RelationshipsApi",
@@ -0,0 +1,450 @@
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
+ import re # noqa: F401
16
+ import io
17
+ import warnings
18
+
19
+ from pydantic.v1 import validate_arguments, ValidationError
20
+ from typing import overload, Optional, Union, Awaitable
21
+
22
+ from typing_extensions import Annotated
23
+ from datetime import datetime
24
+
25
+ from pydantic.v1 import Field, conint, constr, validator
26
+
27
+ from typing import Dict, Optional
28
+
29
+ from lusid.models.batch_upsert_relational_datasets_response import BatchUpsertRelationalDatasetsResponse
30
+ from lusid.models.paged_resource_list_of_relational_data_point_response import PagedResourceListOfRelationalDataPointResponse
31
+ from lusid.models.query_relational_dataset_request import QueryRelationalDatasetRequest
32
+ from lusid.models.upsert_relational_data_point_request import UpsertRelationalDataPointRequest
33
+
34
+ from lusid.api_client import ApiClient
35
+ from lusid.api_response import ApiResponse
36
+ from lusid.exceptions import ( # noqa: F401
37
+ ApiTypeError,
38
+ ApiValueError
39
+ )
40
+ from lusid.extensions.configuration_options import ConfigurationOptions
41
+
42
+ # ensure templated type usages are imported
43
+ from pydantic.v1 import Field, StrictStr
44
+ from typing import Optional
45
+ from typing_extensions import Annotated
46
+
47
+ class RelationalDatasetsApi:
48
+ """NOTE: This class is auto generated by OpenAPI Generator
49
+ Ref: https://openapi-generator.tech
50
+
51
+ Do not edit the class manually.
52
+ """
53
+
54
+ def __init__(self, api_client=None) -> None:
55
+ if api_client is None:
56
+ api_client = ApiClient.get_default()
57
+ self.api_client = api_client
58
+
59
+
60
+ @overload
61
+ async def batch_upsert_relational_data(self, relational_dataset_definition_scope : Annotated[StrictStr, Field(..., description="The Scope of the relational dataset definition.")], relational_dataset_definition_code : Annotated[StrictStr, Field(..., description="The Code of the relational dataset definition.")], request_body : Annotated[Dict[str, UpsertRelationalDataPointRequest], Field(..., description="The DataPoints to upsert.")], success_mode : Annotated[Optional[StrictStr], Field( description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial. Note: If using partial failure modes, then it is important to check the response body for failures as any failures will still return a 200 status code.")] = None, **kwargs) -> BatchUpsertRelationalDatasetsResponse: # noqa: E501
62
+ ...
63
+
64
+ @overload
65
+ def batch_upsert_relational_data(self, relational_dataset_definition_scope : Annotated[StrictStr, Field(..., description="The Scope of the relational dataset definition.")], relational_dataset_definition_code : Annotated[StrictStr, Field(..., description="The Code of the relational dataset definition.")], request_body : Annotated[Dict[str, UpsertRelationalDataPointRequest], Field(..., description="The DataPoints to upsert.")], success_mode : Annotated[Optional[StrictStr], Field( description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial. Note: If using partial failure modes, then it is important to check the response body for failures as any failures will still return a 200 status code.")] = None, async_req: Optional[bool]=True, **kwargs) -> BatchUpsertRelationalDatasetsResponse: # noqa: E501
66
+ ...
67
+
68
+ @validate_arguments
69
+ def batch_upsert_relational_data(self, relational_dataset_definition_scope : Annotated[StrictStr, Field(..., description="The Scope of the relational dataset definition.")], relational_dataset_definition_code : Annotated[StrictStr, Field(..., description="The Code of the relational dataset definition.")], request_body : Annotated[Dict[str, UpsertRelationalDataPointRequest], Field(..., description="The DataPoints to upsert.")], success_mode : Annotated[Optional[StrictStr], Field( description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial. Note: If using partial failure modes, then it is important to check the response body for failures as any failures will still return a 200 status code.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[BatchUpsertRelationalDatasetsResponse, Awaitable[BatchUpsertRelationalDatasetsResponse]]: # noqa: E501
70
+ """[EXPERIMENTAL] BatchUpsertRelationalData: Batch Upsert Relational Data Points for a given Relational Dataset Definition. # noqa: E501
71
+
72
+ Batch Upsert Relational Data Points for a given Relational Dataset Definition. # noqa: E501
73
+ This method makes a synchronous HTTP request by default. To make an
74
+ asynchronous HTTP request, please pass async_req=True
75
+
76
+ >>> thread = api.batch_upsert_relational_data(relational_dataset_definition_scope, relational_dataset_definition_code, request_body, success_mode, async_req=True)
77
+ >>> result = thread.get()
78
+
79
+ :param relational_dataset_definition_scope: The Scope of the relational dataset definition. (required)
80
+ :type relational_dataset_definition_scope: str
81
+ :param relational_dataset_definition_code: The Code of the relational dataset definition. (required)
82
+ :type relational_dataset_definition_code: str
83
+ :param request_body: The DataPoints to upsert. (required)
84
+ :type request_body: Dict[str, UpsertRelationalDataPointRequest]
85
+ :param success_mode: Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial. Note: If using partial failure modes, then it is important to check the response body for failures as any failures will still return a 200 status code.
86
+ :type success_mode: str
87
+ :param async_req: Whether to execute the request asynchronously.
88
+ :type async_req: bool, optional
89
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
90
+ :param opts: Configuration options for this request
91
+ :type opts: ConfigurationOptions, optional
92
+ :return: Returns the result object.
93
+ If the method is called asynchronously,
94
+ returns the request thread.
95
+ :rtype: BatchUpsertRelationalDatasetsResponse
96
+ """
97
+ kwargs['_return_http_data_only'] = True
98
+ if '_preload_content' in kwargs:
99
+ message = "Error! Please call the batch_upsert_relational_data_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
100
+ raise ValueError(message)
101
+ if async_req is not None:
102
+ kwargs['async_req'] = async_req
103
+ return self.batch_upsert_relational_data_with_http_info(relational_dataset_definition_scope, relational_dataset_definition_code, request_body, success_mode, **kwargs) # noqa: E501
104
+
105
+ @validate_arguments
106
+ def batch_upsert_relational_data_with_http_info(self, relational_dataset_definition_scope : Annotated[StrictStr, Field(..., description="The Scope of the relational dataset definition.")], relational_dataset_definition_code : Annotated[StrictStr, Field(..., description="The Code of the relational dataset definition.")], request_body : Annotated[Dict[str, UpsertRelationalDataPointRequest], Field(..., description="The DataPoints to upsert.")], success_mode : Annotated[Optional[StrictStr], Field( description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial. Note: If using partial failure modes, then it is important to check the response body for failures as any failures will still return a 200 status code.")] = None, **kwargs) -> ApiResponse: # noqa: E501
107
+ """[EXPERIMENTAL] BatchUpsertRelationalData: Batch Upsert Relational Data Points for a given Relational Dataset Definition. # noqa: E501
108
+
109
+ Batch Upsert Relational Data Points for a given Relational Dataset Definition. # noqa: E501
110
+ This method makes a synchronous HTTP request by default. To make an
111
+ asynchronous HTTP request, please pass async_req=True
112
+
113
+ >>> thread = api.batch_upsert_relational_data_with_http_info(relational_dataset_definition_scope, relational_dataset_definition_code, request_body, success_mode, async_req=True)
114
+ >>> result = thread.get()
115
+
116
+ :param relational_dataset_definition_scope: The Scope of the relational dataset definition. (required)
117
+ :type relational_dataset_definition_scope: str
118
+ :param relational_dataset_definition_code: The Code of the relational dataset definition. (required)
119
+ :type relational_dataset_definition_code: str
120
+ :param request_body: The DataPoints to upsert. (required)
121
+ :type request_body: Dict[str, UpsertRelationalDataPointRequest]
122
+ :param success_mode: Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial. Note: If using partial failure modes, then it is important to check the response body for failures as any failures will still return a 200 status code.
123
+ :type success_mode: str
124
+ :param async_req: Whether to execute the request asynchronously.
125
+ :type async_req: bool, optional
126
+ :param _preload_content: if False, the ApiResponse.data will
127
+ be set to none and raw_data will store the
128
+ HTTP response body without reading/decoding.
129
+ Default is True.
130
+ :type _preload_content: bool, optional
131
+ :param _return_http_data_only: response data instead of ApiResponse
132
+ object with status code, headers, etc
133
+ :type _return_http_data_only: bool, optional
134
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
135
+ :param opts: Configuration options for this request
136
+ :type opts: ConfigurationOptions, optional
137
+ :param _request_auth: set to override the auth_settings for an a single
138
+ request; this effectively ignores the authentication
139
+ in the spec for a single request.
140
+ :type _request_auth: dict, optional
141
+ :type _content_type: string, optional: force content-type for the request
142
+ :return: Returns the result object.
143
+ If the method is called asynchronously,
144
+ returns the request thread.
145
+ :rtype: tuple(BatchUpsertRelationalDatasetsResponse, status_code(int), headers(HTTPHeaderDict))
146
+ """
147
+
148
+ _params = locals()
149
+
150
+ _all_params = [
151
+ 'relational_dataset_definition_scope',
152
+ 'relational_dataset_definition_code',
153
+ 'request_body',
154
+ 'success_mode'
155
+ ]
156
+ _all_params.extend(
157
+ [
158
+ 'async_req',
159
+ '_return_http_data_only',
160
+ '_preload_content',
161
+ '_request_timeout',
162
+ '_request_auth',
163
+ '_content_type',
164
+ '_headers',
165
+ 'opts'
166
+ ]
167
+ )
168
+
169
+ # validate the arguments
170
+ for _key, _val in _params['kwargs'].items():
171
+ if _key not in _all_params:
172
+ raise ApiTypeError(
173
+ "Got an unexpected keyword argument '%s'"
174
+ " to method batch_upsert_relational_data" % _key
175
+ )
176
+ _params[_key] = _val
177
+ del _params['kwargs']
178
+
179
+ _collection_formats = {}
180
+
181
+ # process the path parameters
182
+ _path_params = {}
183
+ if _params['relational_dataset_definition_scope']:
184
+ _path_params['relationalDatasetDefinitionScope'] = _params['relational_dataset_definition_scope']
185
+
186
+ if _params['relational_dataset_definition_code']:
187
+ _path_params['relationalDatasetDefinitionCode'] = _params['relational_dataset_definition_code']
188
+
189
+
190
+ # process the query parameters
191
+ _query_params = []
192
+ if _params.get('success_mode') is not None: # noqa: E501
193
+ _query_params.append(('successMode', _params['success_mode']))
194
+
195
+ # process the header parameters
196
+ _header_params = dict(_params.get('_headers', {}))
197
+ # process the form parameters
198
+ _form_params = []
199
+ _files = {}
200
+ # process the body parameter
201
+ _body_params = None
202
+ if _params['request_body'] is not None:
203
+ _body_params = _params['request_body']
204
+
205
+ # set the HTTP header `Accept`
206
+ _header_params['Accept'] = self.api_client.select_header_accept(
207
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
208
+
209
+ # set the HTTP header `Content-Type`
210
+ _content_types_list = _params.get('_content_type',
211
+ self.api_client.select_header_content_type(
212
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
213
+ if _content_types_list:
214
+ _header_params['Content-Type'] = _content_types_list
215
+
216
+ # authentication setting
217
+ _auth_settings = ['oauth2'] # noqa: E501
218
+
219
+ _response_types_map = {
220
+ '200': "BatchUpsertRelationalDatasetsResponse",
221
+ '400': "LusidValidationProblemDetails",
222
+ }
223
+
224
+ return self.api_client.call_api(
225
+ '/api/relationaldatasets/{relationalDatasetDefinitionScope}/{relationalDatasetDefinitionCode}/$batchUpsert', 'POST',
226
+ _path_params,
227
+ _query_params,
228
+ _header_params,
229
+ body=_body_params,
230
+ post_params=_form_params,
231
+ files=_files,
232
+ response_types_map=_response_types_map,
233
+ auth_settings=_auth_settings,
234
+ async_req=_params.get('async_req'),
235
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
236
+ _preload_content=_params.get('_preload_content', True),
237
+ _request_timeout=_params.get('_request_timeout'),
238
+ opts=_params.get('opts'),
239
+ collection_formats=_collection_formats,
240
+ _request_auth=_params.get('_request_auth'))
241
+
242
+
243
+ @overload
244
+ async def query_relational_data(self, relational_dataset_definition_scope : Annotated[StrictStr, Field(..., description="The Scope of the relational dataset definition.")], relational_dataset_definition_code : Annotated[StrictStr, Field(..., description="The Code of the relational dataset definition.")], query_relational_dataset_request : Annotated[QueryRelationalDatasetRequest, Field(..., description="The query request.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the dataset(s). Defaults to returning the latest version of each dataset if not specified.")] = None, effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to query the datasets. Defaults to the current LUSID system datetime if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue query datasets. This value is returned from the previous call. If a pagination token is provided, the filter, customSortBy, 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, **kwargs) -> PagedResourceListOfRelationalDataPointResponse: # noqa: E501
245
+ ...
246
+
247
+ @overload
248
+ def query_relational_data(self, relational_dataset_definition_scope : Annotated[StrictStr, Field(..., description="The Scope of the relational dataset definition.")], relational_dataset_definition_code : Annotated[StrictStr, Field(..., description="The Code of the relational dataset definition.")], query_relational_dataset_request : Annotated[QueryRelationalDatasetRequest, Field(..., description="The query request.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the dataset(s). Defaults to returning the latest version of each dataset if not specified.")] = None, effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to query the datasets. Defaults to the current LUSID system datetime if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue query datasets. This value is returned from the previous call. If a pagination token is provided, the filter, customSortBy, 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, async_req: Optional[bool]=True, **kwargs) -> PagedResourceListOfRelationalDataPointResponse: # noqa: E501
249
+ ...
250
+
251
+ @validate_arguments
252
+ def query_relational_data(self, relational_dataset_definition_scope : Annotated[StrictStr, Field(..., description="The Scope of the relational dataset definition.")], relational_dataset_definition_code : Annotated[StrictStr, Field(..., description="The Code of the relational dataset definition.")], query_relational_dataset_request : Annotated[QueryRelationalDatasetRequest, Field(..., description="The query request.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the dataset(s). Defaults to returning the latest version of each dataset if not specified.")] = None, effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to query the datasets. Defaults to the current LUSID system datetime if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue query datasets. This value is returned from the previous call. If a pagination token is provided, the filter, customSortBy, 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, async_req: Optional[bool]=None, **kwargs) -> Union[PagedResourceListOfRelationalDataPointResponse, Awaitable[PagedResourceListOfRelationalDataPointResponse]]: # noqa: E501
253
+ """[EXPERIMENTAL] QueryRelationalData: Query Relational Data Points for a given Relational Dataset Definition. # noqa: E501
254
+
255
+ Query Relational Data Points for a given Relational Dataset Definition. # noqa: E501
256
+ This method makes a synchronous HTTP request by default. To make an
257
+ asynchronous HTTP request, please pass async_req=True
258
+
259
+ >>> thread = api.query_relational_data(relational_dataset_definition_scope, relational_dataset_definition_code, query_relational_dataset_request, as_at, effective_at, page, limit, async_req=True)
260
+ >>> result = thread.get()
261
+
262
+ :param relational_dataset_definition_scope: The Scope of the relational dataset definition. (required)
263
+ :type relational_dataset_definition_scope: str
264
+ :param relational_dataset_definition_code: The Code of the relational dataset definition. (required)
265
+ :type relational_dataset_definition_code: str
266
+ :param query_relational_dataset_request: The query request. (required)
267
+ :type query_relational_dataset_request: QueryRelationalDatasetRequest
268
+ :param as_at: The asAt datetime at which to retrieve the dataset(s). Defaults to returning the latest version of each dataset if not specified.
269
+ :type as_at: datetime
270
+ :param effective_at: The effective datetime or cut label at which to query the datasets. Defaults to the current LUSID system datetime if not specified.
271
+ :type effective_at: str
272
+ :param page: The pagination token to use to continue query datasets. This value is returned from the previous call. If a pagination token is provided, the filter, customSortBy, effectiveAt and asAt fields must not have changed since the original request.
273
+ :type page: str
274
+ :param limit: When paginating, limit the results to this number. Defaults to 100 if not specified.
275
+ :type limit: int
276
+ :param async_req: Whether to execute the request asynchronously.
277
+ :type async_req: bool, optional
278
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
279
+ :param opts: Configuration options for this request
280
+ :type opts: ConfigurationOptions, optional
281
+ :return: Returns the result object.
282
+ If the method is called asynchronously,
283
+ returns the request thread.
284
+ :rtype: PagedResourceListOfRelationalDataPointResponse
285
+ """
286
+ kwargs['_return_http_data_only'] = True
287
+ if '_preload_content' in kwargs:
288
+ message = "Error! Please call the query_relational_data_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
289
+ raise ValueError(message)
290
+ if async_req is not None:
291
+ kwargs['async_req'] = async_req
292
+ return self.query_relational_data_with_http_info(relational_dataset_definition_scope, relational_dataset_definition_code, query_relational_dataset_request, as_at, effective_at, page, limit, **kwargs) # noqa: E501
293
+
294
+ @validate_arguments
295
+ def query_relational_data_with_http_info(self, relational_dataset_definition_scope : Annotated[StrictStr, Field(..., description="The Scope of the relational dataset definition.")], relational_dataset_definition_code : Annotated[StrictStr, Field(..., description="The Code of the relational dataset definition.")], query_relational_dataset_request : Annotated[QueryRelationalDatasetRequest, Field(..., description="The query request.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the dataset(s). Defaults to returning the latest version of each dataset if not specified.")] = None, effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to query the datasets. Defaults to the current LUSID system datetime if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue query datasets. This value is returned from the previous call. If a pagination token is provided, the filter, customSortBy, 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, **kwargs) -> ApiResponse: # noqa: E501
296
+ """[EXPERIMENTAL] QueryRelationalData: Query Relational Data Points for a given Relational Dataset Definition. # noqa: E501
297
+
298
+ Query Relational Data Points for a given Relational Dataset Definition. # noqa: E501
299
+ This method makes a synchronous HTTP request by default. To make an
300
+ asynchronous HTTP request, please pass async_req=True
301
+
302
+ >>> thread = api.query_relational_data_with_http_info(relational_dataset_definition_scope, relational_dataset_definition_code, query_relational_dataset_request, as_at, effective_at, page, limit, async_req=True)
303
+ >>> result = thread.get()
304
+
305
+ :param relational_dataset_definition_scope: The Scope of the relational dataset definition. (required)
306
+ :type relational_dataset_definition_scope: str
307
+ :param relational_dataset_definition_code: The Code of the relational dataset definition. (required)
308
+ :type relational_dataset_definition_code: str
309
+ :param query_relational_dataset_request: The query request. (required)
310
+ :type query_relational_dataset_request: QueryRelationalDatasetRequest
311
+ :param as_at: The asAt datetime at which to retrieve the dataset(s). Defaults to returning the latest version of each dataset if not specified.
312
+ :type as_at: datetime
313
+ :param effective_at: The effective datetime or cut label at which to query the datasets. Defaults to the current LUSID system datetime if not specified.
314
+ :type effective_at: str
315
+ :param page: The pagination token to use to continue query datasets. This value is returned from the previous call. If a pagination token is provided, the filter, customSortBy, effectiveAt and asAt fields must not have changed since the original request.
316
+ :type page: str
317
+ :param limit: When paginating, limit the results to this number. Defaults to 100 if not specified.
318
+ :type limit: int
319
+ :param async_req: Whether to execute the request asynchronously.
320
+ :type async_req: bool, optional
321
+ :param _preload_content: if False, the ApiResponse.data will
322
+ be set to none and raw_data will store the
323
+ HTTP response body without reading/decoding.
324
+ Default is True.
325
+ :type _preload_content: bool, optional
326
+ :param _return_http_data_only: response data instead of ApiResponse
327
+ object with status code, headers, etc
328
+ :type _return_http_data_only: bool, optional
329
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
330
+ :param opts: Configuration options for this request
331
+ :type opts: ConfigurationOptions, optional
332
+ :param _request_auth: set to override the auth_settings for an a single
333
+ request; this effectively ignores the authentication
334
+ in the spec for a single request.
335
+ :type _request_auth: dict, optional
336
+ :type _content_type: string, optional: force content-type for the request
337
+ :return: Returns the result object.
338
+ If the method is called asynchronously,
339
+ returns the request thread.
340
+ :rtype: tuple(PagedResourceListOfRelationalDataPointResponse, status_code(int), headers(HTTPHeaderDict))
341
+ """
342
+
343
+ _params = locals()
344
+
345
+ _all_params = [
346
+ 'relational_dataset_definition_scope',
347
+ 'relational_dataset_definition_code',
348
+ 'query_relational_dataset_request',
349
+ 'as_at',
350
+ 'effective_at',
351
+ 'page',
352
+ 'limit'
353
+ ]
354
+ _all_params.extend(
355
+ [
356
+ 'async_req',
357
+ '_return_http_data_only',
358
+ '_preload_content',
359
+ '_request_timeout',
360
+ '_request_auth',
361
+ '_content_type',
362
+ '_headers',
363
+ 'opts'
364
+ ]
365
+ )
366
+
367
+ # validate the arguments
368
+ for _key, _val in _params['kwargs'].items():
369
+ if _key not in _all_params:
370
+ raise ApiTypeError(
371
+ "Got an unexpected keyword argument '%s'"
372
+ " to method query_relational_data" % _key
373
+ )
374
+ _params[_key] = _val
375
+ del _params['kwargs']
376
+
377
+ _collection_formats = {}
378
+
379
+ # process the path parameters
380
+ _path_params = {}
381
+ if _params['relational_dataset_definition_scope']:
382
+ _path_params['relationalDatasetDefinitionScope'] = _params['relational_dataset_definition_scope']
383
+
384
+ if _params['relational_dataset_definition_code']:
385
+ _path_params['relationalDatasetDefinitionCode'] = _params['relational_dataset_definition_code']
386
+
387
+
388
+ # process the query parameters
389
+ _query_params = []
390
+ if _params.get('as_at') is not None: # noqa: E501
391
+ if isinstance(_params['as_at'], datetime):
392
+ _query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
393
+ else:
394
+ _query_params.append(('asAt', _params['as_at']))
395
+
396
+ if _params.get('effective_at') is not None: # noqa: E501
397
+ _query_params.append(('effectiveAt', _params['effective_at']))
398
+
399
+ if _params.get('page') is not None: # noqa: E501
400
+ _query_params.append(('page', _params['page']))
401
+
402
+ if _params.get('limit') is not None: # noqa: E501
403
+ _query_params.append(('limit', _params['limit']))
404
+
405
+ # process the header parameters
406
+ _header_params = dict(_params.get('_headers', {}))
407
+ # process the form parameters
408
+ _form_params = []
409
+ _files = {}
410
+ # process the body parameter
411
+ _body_params = None
412
+ if _params['query_relational_dataset_request'] is not None:
413
+ _body_params = _params['query_relational_dataset_request']
414
+
415
+ # set the HTTP header `Accept`
416
+ _header_params['Accept'] = self.api_client.select_header_accept(
417
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
418
+
419
+ # set the HTTP header `Content-Type`
420
+ _content_types_list = _params.get('_content_type',
421
+ self.api_client.select_header_content_type(
422
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
423
+ if _content_types_list:
424
+ _header_params['Content-Type'] = _content_types_list
425
+
426
+ # authentication setting
427
+ _auth_settings = ['oauth2'] # noqa: E501
428
+
429
+ _response_types_map = {
430
+ '200': "PagedResourceListOfRelationalDataPointResponse",
431
+ '400': "LusidValidationProblemDetails",
432
+ }
433
+
434
+ return self.api_client.call_api(
435
+ '/api/relationaldatasets/{relationalDatasetDefinitionScope}/{relationalDatasetDefinitionCode}/$query', 'POST',
436
+ _path_params,
437
+ _query_params,
438
+ _header_params,
439
+ body=_body_params,
440
+ post_params=_form_params,
441
+ files=_files,
442
+ response_types_map=_response_types_map,
443
+ auth_settings=_auth_settings,
444
+ async_req=_params.get('async_req'),
445
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
446
+ _preload_content=_params.get('_preload_content', True),
447
+ _request_timeout=_params.get('_request_timeout'),
448
+ opts=_params.get('opts'),
449
+ collection_formats=_collection_formats,
450
+ _request_auth=_params.get('_request_auth'))
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.8394\n"\
448
+ "Version of the API: 0.11.8406\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451