lusid-sdk 2.1.198__py3-none-any.whl → 2.1.242__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.
- lusid/__init__.py +8 -0
- lusid/api/funds_api.py +8 -16
- lusid/api/persons_api.py +167 -0
- lusid/api/portfolios_api.py +2 -2
- lusid/configuration.py +1 -1
- lusid/extensions/__init__.py +1 -1
- lusid/models/__init__.py +8 -0
- lusid/models/address_key_compliance_parameter.py +3 -3
- lusid/models/address_key_list_compliance_parameter.py +3 -3
- lusid/models/basket.py +3 -3
- lusid/models/bond.py +3 -3
- lusid/models/bool_compliance_parameter.py +3 -3
- lusid/models/bool_list_compliance_parameter.py +3 -3
- lusid/models/branch_step.py +3 -3
- lusid/models/branch_step_request.py +10 -3
- lusid/models/cap_floor.py +3 -3
- lusid/models/cash_perpetual.py +3 -3
- lusid/models/cds_index.py +3 -3
- lusid/models/check_step.py +3 -3
- lusid/models/check_step_request.py +10 -3
- lusid/models/complex_bond.py +3 -3
- lusid/models/compliance_parameter.py +6 -5
- lusid/models/compliance_parameter_type.py +1 -0
- lusid/models/compliance_step.py +6 -5
- lusid/models/compliance_step_request.py +7 -6
- lusid/models/compliance_step_type.py +1 -0
- lusid/models/compliance_step_type_request.py +1 -0
- lusid/models/contract_for_difference.py +3 -3
- lusid/models/create_derived_property_definition_request.py +3 -3
- lusid/models/create_property_definition_request.py +3 -3
- lusid/models/credit_default_swap.py +3 -3
- lusid/models/currency_and_amount.py +2 -7
- lusid/models/date_time_compliance_parameter.py +3 -3
- lusid/models/date_time_list_compliance_parameter.py +3 -3
- lusid/models/decimal_compliance_parameter.py +3 -3
- lusid/models/decimal_list_compliance_parameter.py +3 -3
- lusid/models/equity.py +3 -3
- lusid/models/equity_option.py +3 -3
- lusid/models/equity_swap.py +3 -3
- lusid/models/exchange_traded_option.py +3 -3
- lusid/models/exotic_instrument.py +3 -3
- lusid/models/fee.py +1 -15
- lusid/models/fee_accrual.py +32 -14
- lusid/models/fee_request.py +10 -1
- lusid/models/filter_predicate_compliance_parameter.py +3 -3
- lusid/models/filter_step.py +3 -3
- lusid/models/filter_step_request.py +10 -3
- lusid/models/fixed_leg.py +3 -3
- lusid/models/flexible_loan.py +3 -3
- lusid/models/floating_leg.py +3 -3
- lusid/models/forward_rate_agreement.py +3 -3
- lusid/models/fund_share_class.py +3 -3
- lusid/models/funding_leg.py +3 -3
- lusid/models/future.py +3 -3
- lusid/models/fx_forward.py +3 -3
- lusid/models/fx_option.py +3 -3
- lusid/models/fx_swap.py +3 -3
- lusid/models/group_by_selector_compliance_parameter.py +3 -3
- lusid/models/group_by_step.py +3 -3
- lusid/models/group_by_step_request.py +10 -3
- lusid/models/group_calculation_compliance_parameter.py +91 -0
- lusid/models/group_filter_predicate_compliance_parameter.py +3 -3
- lusid/models/group_filter_step.py +3 -3
- lusid/models/group_filter_step_request.py +10 -3
- lusid/models/inflation_leg.py +3 -3
- lusid/models/inflation_linked_bond.py +3 -3
- lusid/models/inflation_swap.py +3 -3
- lusid/models/instrument.py +7 -1
- lusid/models/instrument_leg.py +3 -3
- lusid/models/instrument_list_compliance_parameter.py +3 -3
- lusid/models/instrument_type.py +2 -0
- lusid/models/interest_rate_swap.py +3 -3
- lusid/models/interest_rate_swaption.py +3 -3
- lusid/models/intermediate_compliance_step.py +3 -3
- lusid/models/intermediate_compliance_step_request.py +10 -3
- lusid/models/lusid_instrument.py +3 -3
- lusid/models/order_flow_configuration.py +1 -1
- lusid/models/percent_check_step.py +110 -0
- lusid/models/percent_check_step_request.py +98 -0
- lusid/models/portfolio_group_id_compliance_parameter.py +3 -3
- lusid/models/portfolio_group_id_list_compliance_parameter.py +3 -3
- lusid/models/portfolio_id_compliance_parameter.py +3 -3
- lusid/models/portfolio_id_list_compliance_parameter.py +3 -3
- lusid/models/property_definition.py +3 -3
- lusid/models/property_definition_search_result.py +3 -3
- lusid/models/property_domain.py +34 -0
- lusid/models/property_key_compliance_parameter.py +3 -3
- lusid/models/property_key_list_compliance_parameter.py +3 -3
- lusid/models/property_list_compliance_parameter.py +3 -3
- lusid/models/quote_access_metadata_rule_id.py +2 -2
- lusid/models/quote_series_id.py +2 -2
- lusid/models/realised_gain_loss.py +2 -2
- lusid/models/recombine_step.py +3 -3
- lusid/models/reference_instrument.py +3 -3
- lusid/models/repo.py +3 -3
- lusid/models/simple_cash_flow_loan.py +3 -3
- lusid/models/simple_instrument.py +3 -3
- lusid/models/staging_rule_approval_criteria.py +10 -3
- lusid/models/string_compliance_parameter.py +3 -3
- lusid/models/string_list_compliance_parameter.py +3 -3
- lusid/models/term_deposit.py +3 -3
- lusid/models/total_return_swap.py +3 -3
- lusid/models/transaction_configuration_movement_data.py +1 -1
- lusid/models/transaction_configuration_movement_data_request.py +1 -1
- lusid/models/transaction_type_calculation.py +11 -14
- lusid/models/transaction_type_movement.py +20 -3
- lusid/models/upsert_instruments_response.py +20 -1
- lusid/models/upsert_persons_response.py +114 -0
- {lusid_sdk-2.1.198.dist-info → lusid_sdk-2.1.242.dist-info}/METADATA +9 -4
- {lusid_sdk-2.1.198.dist-info → lusid_sdk-2.1.242.dist-info}/RECORD +111 -107
- {lusid_sdk-2.1.198.dist-info → lusid_sdk-2.1.242.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
|
@@ -460,6 +460,7 @@ from lusid.models.get_virtual_document_response import GetVirtualDocumentRespons
|
|
|
460
460
|
from lusid.models.group_by_selector_compliance_parameter import GroupBySelectorComplianceParameter
|
|
461
461
|
from lusid.models.group_by_step import GroupByStep
|
|
462
462
|
from lusid.models.group_by_step_request import GroupByStepRequest
|
|
463
|
+
from lusid.models.group_calculation_compliance_parameter import GroupCalculationComplianceParameter
|
|
463
464
|
from lusid.models.group_filter_predicate_compliance_parameter import GroupFilterPredicateComplianceParameter
|
|
464
465
|
from lusid.models.group_filter_step import GroupFilterStep
|
|
465
466
|
from lusid.models.group_filter_step_request import GroupFilterStepRequest
|
|
@@ -677,6 +678,8 @@ from lusid.models.paged_resource_list_of_virtual_row import PagedResourceListOfV
|
|
|
677
678
|
from lusid.models.participation import Participation
|
|
678
679
|
from lusid.models.participation_request import ParticipationRequest
|
|
679
680
|
from lusid.models.participation_set_request import ParticipationSetRequest
|
|
681
|
+
from lusid.models.percent_check_step import PercentCheckStep
|
|
682
|
+
from lusid.models.percent_check_step_request import PercentCheckStepRequest
|
|
680
683
|
from lusid.models.performance_return import PerformanceReturn
|
|
681
684
|
from lusid.models.performance_returns_metric import PerformanceReturnsMetric
|
|
682
685
|
from lusid.models.period_diary_entries_reopened_response import PeriodDiaryEntriesReopenedResponse
|
|
@@ -1035,6 +1038,7 @@ from lusid.models.upsert_legal_entity_access_metadata_request import UpsertLegal
|
|
|
1035
1038
|
from lusid.models.upsert_legal_entity_request import UpsertLegalEntityRequest
|
|
1036
1039
|
from lusid.models.upsert_person_access_metadata_request import UpsertPersonAccessMetadataRequest
|
|
1037
1040
|
from lusid.models.upsert_person_request import UpsertPersonRequest
|
|
1041
|
+
from lusid.models.upsert_persons_response import UpsertPersonsResponse
|
|
1038
1042
|
from lusid.models.upsert_portfolio_access_metadata_request import UpsertPortfolioAccessMetadataRequest
|
|
1039
1043
|
from lusid.models.upsert_portfolio_group_access_metadata_request import UpsertPortfolioGroupAccessMetadataRequest
|
|
1040
1044
|
from lusid.models.upsert_portfolio_transactions_response import UpsertPortfolioTransactionsResponse
|
|
@@ -1532,6 +1536,7 @@ __all__ = [
|
|
|
1532
1536
|
"GroupBySelectorComplianceParameter",
|
|
1533
1537
|
"GroupByStep",
|
|
1534
1538
|
"GroupByStepRequest",
|
|
1539
|
+
"GroupCalculationComplianceParameter",
|
|
1535
1540
|
"GroupFilterPredicateComplianceParameter",
|
|
1536
1541
|
"GroupFilterStep",
|
|
1537
1542
|
"GroupFilterStepRequest",
|
|
@@ -1749,6 +1754,8 @@ __all__ = [
|
|
|
1749
1754
|
"Participation",
|
|
1750
1755
|
"ParticipationRequest",
|
|
1751
1756
|
"ParticipationSetRequest",
|
|
1757
|
+
"PercentCheckStep",
|
|
1758
|
+
"PercentCheckStepRequest",
|
|
1752
1759
|
"PerformanceReturn",
|
|
1753
1760
|
"PerformanceReturnsMetric",
|
|
1754
1761
|
"PeriodDiaryEntriesReopenedResponse",
|
|
@@ -2107,6 +2114,7 @@ __all__ = [
|
|
|
2107
2114
|
"UpsertLegalEntityRequest",
|
|
2108
2115
|
"UpsertPersonAccessMetadataRequest",
|
|
2109
2116
|
"UpsertPersonRequest",
|
|
2117
|
+
"UpsertPersonsResponse",
|
|
2110
2118
|
"UpsertPortfolioAccessMetadataRequest",
|
|
2111
2119
|
"UpsertPortfolioGroupAccessMetadataRequest",
|
|
2112
2120
|
"UpsertPortfolioTransactionsResponse",
|
lusid/api/funds_api.py
CHANGED
|
@@ -239,30 +239,28 @@ class FundsApi:
|
|
|
239
239
|
_request_auth=_params.get('_request_auth'))
|
|
240
240
|
|
|
241
241
|
@overload
|
|
242
|
-
async def create_fee(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")],
|
|
242
|
+
async def create_fee(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")], fee_request : Annotated[FeeRequest, Field(..., description="The Fee to create.")], **kwargs) -> Fee: # noqa: E501
|
|
243
243
|
...
|
|
244
244
|
|
|
245
245
|
@overload
|
|
246
|
-
def create_fee(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")],
|
|
246
|
+
def create_fee(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")], fee_request : Annotated[FeeRequest, Field(..., description="The Fee to create.")], async_req: Optional[bool]=True, **kwargs) -> Fee: # noqa: E501
|
|
247
247
|
...
|
|
248
248
|
|
|
249
249
|
@validate_arguments
|
|
250
|
-
def create_fee(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")],
|
|
250
|
+
def create_fee(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")], fee_request : Annotated[FeeRequest, Field(..., description="The Fee to create.")], async_req: Optional[bool]=None, **kwargs) -> Union[Fee, Awaitable[Fee]]: # noqa: E501
|
|
251
251
|
"""[EXPERIMENTAL] CreateFee: Create a Fee. # noqa: E501
|
|
252
252
|
|
|
253
253
|
Create the given Fee. # noqa: E501
|
|
254
254
|
This method makes a synchronous HTTP request by default. To make an
|
|
255
255
|
asynchronous HTTP request, please pass async_req=True
|
|
256
256
|
|
|
257
|
-
>>> thread = api.create_fee(scope, code,
|
|
257
|
+
>>> thread = api.create_fee(scope, code, fee_request, async_req=True)
|
|
258
258
|
>>> result = thread.get()
|
|
259
259
|
|
|
260
260
|
:param scope: The scope of the Fund. (required)
|
|
261
261
|
:type scope: str
|
|
262
262
|
:param code: The code of the Fund. Together with the scope this uniquely identifies the Fund. (required)
|
|
263
263
|
:type code: str
|
|
264
|
-
:param fee_code: The code of the Fee. (required)
|
|
265
|
-
:type fee_code: str
|
|
266
264
|
:param fee_request: The Fee to create. (required)
|
|
267
265
|
:type fee_request: FeeRequest
|
|
268
266
|
:param async_req: Whether to execute the request asynchronously.
|
|
@@ -282,25 +280,23 @@ class FundsApi:
|
|
|
282
280
|
raise ValueError(message)
|
|
283
281
|
if async_req is not None:
|
|
284
282
|
kwargs['async_req'] = async_req
|
|
285
|
-
return self.create_fee_with_http_info(scope, code,
|
|
283
|
+
return self.create_fee_with_http_info(scope, code, fee_request, **kwargs) # noqa: E501
|
|
286
284
|
|
|
287
285
|
@validate_arguments
|
|
288
|
-
def create_fee_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")],
|
|
286
|
+
def create_fee_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")], fee_request : Annotated[FeeRequest, Field(..., description="The Fee to create.")], **kwargs) -> ApiResponse: # noqa: E501
|
|
289
287
|
"""[EXPERIMENTAL] CreateFee: Create a Fee. # noqa: E501
|
|
290
288
|
|
|
291
289
|
Create the given Fee. # noqa: E501
|
|
292
290
|
This method makes a synchronous HTTP request by default. To make an
|
|
293
291
|
asynchronous HTTP request, please pass async_req=True
|
|
294
292
|
|
|
295
|
-
>>> thread = api.create_fee_with_http_info(scope, code,
|
|
293
|
+
>>> thread = api.create_fee_with_http_info(scope, code, fee_request, async_req=True)
|
|
296
294
|
>>> result = thread.get()
|
|
297
295
|
|
|
298
296
|
:param scope: The scope of the Fund. (required)
|
|
299
297
|
:type scope: str
|
|
300
298
|
:param code: The code of the Fund. Together with the scope this uniquely identifies the Fund. (required)
|
|
301
299
|
:type code: str
|
|
302
|
-
:param fee_code: The code of the Fee. (required)
|
|
303
|
-
:type fee_code: str
|
|
304
300
|
:param fee_request: The Fee to create. (required)
|
|
305
301
|
:type fee_request: FeeRequest
|
|
306
302
|
:param async_req: Whether to execute the request asynchronously.
|
|
@@ -333,7 +329,6 @@ class FundsApi:
|
|
|
333
329
|
_all_params = [
|
|
334
330
|
'scope',
|
|
335
331
|
'code',
|
|
336
|
-
'fee_code',
|
|
337
332
|
'fee_request'
|
|
338
333
|
]
|
|
339
334
|
_all_params.extend(
|
|
@@ -368,9 +363,6 @@ class FundsApi:
|
|
|
368
363
|
if _params['code']:
|
|
369
364
|
_path_params['code'] = _params['code']
|
|
370
365
|
|
|
371
|
-
if _params['fee_code']:
|
|
372
|
-
_path_params['feeCode'] = _params['fee_code']
|
|
373
|
-
|
|
374
366
|
|
|
375
367
|
# process the query parameters
|
|
376
368
|
_query_params = []
|
|
@@ -404,7 +396,7 @@ class FundsApi:
|
|
|
404
396
|
}
|
|
405
397
|
|
|
406
398
|
return self.api_client.call_api(
|
|
407
|
-
'/api/funds/{scope}/{code}/fees
|
|
399
|
+
'/api/funds/{scope}/{code}/fees', 'POST',
|
|
408
400
|
_path_params,
|
|
409
401
|
_query_params,
|
|
410
402
|
_header_params,
|
lusid/api/persons_api.py
CHANGED
|
@@ -40,6 +40,7 @@ from lusid.models.set_person_identifiers_request import SetPersonIdentifiersRequ
|
|
|
40
40
|
from lusid.models.set_person_properties_request import SetPersonPropertiesRequest
|
|
41
41
|
from lusid.models.upsert_person_access_metadata_request import UpsertPersonAccessMetadataRequest
|
|
42
42
|
from lusid.models.upsert_person_request import UpsertPersonRequest
|
|
43
|
+
from lusid.models.upsert_persons_response import UpsertPersonsResponse
|
|
43
44
|
|
|
44
45
|
from lusid.api_client import ApiClient
|
|
45
46
|
from lusid.api_response import ApiResponse
|
|
@@ -3345,3 +3346,169 @@ class PersonsApi:
|
|
|
3345
3346
|
_request_timeout=_params.get('_request_timeout'),
|
|
3346
3347
|
collection_formats=_collection_formats,
|
|
3347
3348
|
_request_auth=_params.get('_request_auth'))
|
|
3349
|
+
|
|
3350
|
+
@overload
|
|
3351
|
+
async def upsert_persons(self, success_mode : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial")], request_body : Annotated[Dict[str, UpsertPersonRequest], Field(..., description="A collection of requests to create or update Person(s).")], **kwargs) -> UpsertPersonsResponse: # noqa: E501
|
|
3352
|
+
...
|
|
3353
|
+
|
|
3354
|
+
@overload
|
|
3355
|
+
def upsert_persons(self, success_mode : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial")], request_body : Annotated[Dict[str, UpsertPersonRequest], Field(..., description="A collection of requests to create or update Person(s).")], async_req: Optional[bool]=True, **kwargs) -> UpsertPersonsResponse: # noqa: E501
|
|
3356
|
+
...
|
|
3357
|
+
|
|
3358
|
+
@validate_arguments
|
|
3359
|
+
def upsert_persons(self, success_mode : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial")], request_body : Annotated[Dict[str, UpsertPersonRequest], Field(..., description="A collection of requests to create or update Person(s).")], async_req: Optional[bool]=None, **kwargs) -> Union[UpsertPersonsResponse, Awaitable[UpsertPersonsResponse]]: # noqa: E501
|
|
3360
|
+
"""[EARLY ACCESS] UpsertPersons: Pluralised Upsert of Persons # noqa: E501
|
|
3361
|
+
|
|
3362
|
+
Create or updates a collection of person(s). # noqa: E501
|
|
3363
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3364
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3365
|
+
|
|
3366
|
+
>>> thread = api.upsert_persons(success_mode, request_body, async_req=True)
|
|
3367
|
+
>>> result = thread.get()
|
|
3368
|
+
|
|
3369
|
+
:param success_mode: Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial (required)
|
|
3370
|
+
:type success_mode: str
|
|
3371
|
+
:param request_body: A collection of requests to create or update Person(s). (required)
|
|
3372
|
+
:type request_body: Dict[str, UpsertPersonRequest]
|
|
3373
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
3374
|
+
:type async_req: bool, optional
|
|
3375
|
+
:param _request_timeout: timeout setting for this request.
|
|
3376
|
+
If one number provided, it will be total request
|
|
3377
|
+
timeout. It can also be a pair (tuple) of
|
|
3378
|
+
(connection, read) timeouts.
|
|
3379
|
+
:return: Returns the result object.
|
|
3380
|
+
If the method is called asynchronously,
|
|
3381
|
+
returns the request thread.
|
|
3382
|
+
:rtype: UpsertPersonsResponse
|
|
3383
|
+
"""
|
|
3384
|
+
kwargs['_return_http_data_only'] = True
|
|
3385
|
+
if '_preload_content' in kwargs:
|
|
3386
|
+
message = "Error! Please call the upsert_persons_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
|
3387
|
+
raise ValueError(message)
|
|
3388
|
+
if async_req is not None:
|
|
3389
|
+
kwargs['async_req'] = async_req
|
|
3390
|
+
return self.upsert_persons_with_http_info(success_mode, request_body, **kwargs) # noqa: E501
|
|
3391
|
+
|
|
3392
|
+
@validate_arguments
|
|
3393
|
+
def upsert_persons_with_http_info(self, success_mode : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial")], request_body : Annotated[Dict[str, UpsertPersonRequest], Field(..., description="A collection of requests to create or update Person(s).")], **kwargs) -> ApiResponse: # noqa: E501
|
|
3394
|
+
"""[EARLY ACCESS] UpsertPersons: Pluralised Upsert of Persons # noqa: E501
|
|
3395
|
+
|
|
3396
|
+
Create or updates a collection of person(s). # noqa: E501
|
|
3397
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3398
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3399
|
+
|
|
3400
|
+
>>> thread = api.upsert_persons_with_http_info(success_mode, request_body, async_req=True)
|
|
3401
|
+
>>> result = thread.get()
|
|
3402
|
+
|
|
3403
|
+
:param success_mode: Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial (required)
|
|
3404
|
+
:type success_mode: str
|
|
3405
|
+
:param request_body: A collection of requests to create or update Person(s). (required)
|
|
3406
|
+
:type request_body: Dict[str, UpsertPersonRequest]
|
|
3407
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
3408
|
+
:type async_req: bool, optional
|
|
3409
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
3410
|
+
be set to none and raw_data will store the
|
|
3411
|
+
HTTP response body without reading/decoding.
|
|
3412
|
+
Default is True.
|
|
3413
|
+
:type _preload_content: bool, optional
|
|
3414
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
3415
|
+
object with status code, headers, etc
|
|
3416
|
+
:type _return_http_data_only: bool, optional
|
|
3417
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3418
|
+
number provided, it will be total request
|
|
3419
|
+
timeout. It can also be a pair (tuple) of
|
|
3420
|
+
(connection, read) timeouts.
|
|
3421
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3422
|
+
request; this effectively ignores the authentication
|
|
3423
|
+
in the spec for a single request.
|
|
3424
|
+
:type _request_auth: dict, optional
|
|
3425
|
+
:type _content_type: string, optional: force content-type for the request
|
|
3426
|
+
:return: Returns the result object.
|
|
3427
|
+
If the method is called asynchronously,
|
|
3428
|
+
returns the request thread.
|
|
3429
|
+
:rtype: tuple(UpsertPersonsResponse, status_code(int), headers(HTTPHeaderDict))
|
|
3430
|
+
"""
|
|
3431
|
+
|
|
3432
|
+
_params = locals()
|
|
3433
|
+
|
|
3434
|
+
_all_params = [
|
|
3435
|
+
'success_mode',
|
|
3436
|
+
'request_body'
|
|
3437
|
+
]
|
|
3438
|
+
_all_params.extend(
|
|
3439
|
+
[
|
|
3440
|
+
'async_req',
|
|
3441
|
+
'_return_http_data_only',
|
|
3442
|
+
'_preload_content',
|
|
3443
|
+
'_request_timeout',
|
|
3444
|
+
'_request_auth',
|
|
3445
|
+
'_content_type',
|
|
3446
|
+
'_headers'
|
|
3447
|
+
]
|
|
3448
|
+
)
|
|
3449
|
+
|
|
3450
|
+
# validate the arguments
|
|
3451
|
+
for _key, _val in _params['kwargs'].items():
|
|
3452
|
+
if _key not in _all_params:
|
|
3453
|
+
raise ApiTypeError(
|
|
3454
|
+
"Got an unexpected keyword argument '%s'"
|
|
3455
|
+
" to method upsert_persons" % _key
|
|
3456
|
+
)
|
|
3457
|
+
_params[_key] = _val
|
|
3458
|
+
del _params['kwargs']
|
|
3459
|
+
|
|
3460
|
+
_collection_formats = {}
|
|
3461
|
+
|
|
3462
|
+
# process the path parameters
|
|
3463
|
+
_path_params = {}
|
|
3464
|
+
|
|
3465
|
+
# process the query parameters
|
|
3466
|
+
_query_params = []
|
|
3467
|
+
if _params.get('success_mode') is not None: # noqa: E501
|
|
3468
|
+
_query_params.append(('successMode', _params['success_mode']))
|
|
3469
|
+
|
|
3470
|
+
# process the header parameters
|
|
3471
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
3472
|
+
# process the form parameters
|
|
3473
|
+
_form_params = []
|
|
3474
|
+
_files = {}
|
|
3475
|
+
# process the body parameter
|
|
3476
|
+
_body_params = None
|
|
3477
|
+
if _params['request_body'] is not None:
|
|
3478
|
+
_body_params = _params['request_body']
|
|
3479
|
+
|
|
3480
|
+
# set the HTTP header `Accept`
|
|
3481
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3482
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
3483
|
+
|
|
3484
|
+
# set the HTTP header `Content-Type`
|
|
3485
|
+
_content_types_list = _params.get('_content_type',
|
|
3486
|
+
self.api_client.select_header_content_type(
|
|
3487
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
|
|
3488
|
+
if _content_types_list:
|
|
3489
|
+
_header_params['Content-Type'] = _content_types_list
|
|
3490
|
+
|
|
3491
|
+
# authentication setting
|
|
3492
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
|
3493
|
+
|
|
3494
|
+
_response_types_map = {
|
|
3495
|
+
'201': "UpsertPersonsResponse",
|
|
3496
|
+
'400': "LusidValidationProblemDetails",
|
|
3497
|
+
}
|
|
3498
|
+
|
|
3499
|
+
return self.api_client.call_api(
|
|
3500
|
+
'/api/persons/$batchUpsert', 'POST',
|
|
3501
|
+
_path_params,
|
|
3502
|
+
_query_params,
|
|
3503
|
+
_header_params,
|
|
3504
|
+
body=_body_params,
|
|
3505
|
+
post_params=_form_params,
|
|
3506
|
+
files=_files,
|
|
3507
|
+
response_types_map=_response_types_map,
|
|
3508
|
+
auth_settings=_auth_settings,
|
|
3509
|
+
async_req=_params.get('async_req'),
|
|
3510
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
3511
|
+
_preload_content=_params.get('_preload_content', True),
|
|
3512
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
3513
|
+
collection_formats=_collection_formats,
|
|
3514
|
+
_request_auth=_params.get('_request_auth'))
|
lusid/api/portfolios_api.py
CHANGED
|
@@ -4616,7 +4616,7 @@ class PortfoliosApi:
|
|
|
4616
4616
|
def patch_portfolio(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], operation : Annotated[conlist(Operation), Field(..., description="The json patch document. For more check: https://datatracker.ietf.org/doc/html/rfc6902.")], async_req: Optional[bool]=None, **kwargs) -> Union[Portfolio, Awaitable[Portfolio]]: # noqa: E501
|
|
4617
4617
|
"""PatchPortfolio: Patch portfolio. # noqa: E501
|
|
4618
4618
|
|
|
4619
|
-
Create or update certain fields for a particular portfolio. The behaviour is defined by the JSON Patch specification. Currently supported are:
|
|
4619
|
+
Create or update certain fields for a particular portfolio. The behaviour is defined by the JSON Patch specification. Currently supported are: Created, InstrumentScopes. # noqa: E501
|
|
4620
4620
|
This method makes a synchronous HTTP request by default. To make an
|
|
4621
4621
|
asynchronous HTTP request, please pass async_req=True
|
|
4622
4622
|
|
|
@@ -4652,7 +4652,7 @@ class PortfoliosApi:
|
|
|
4652
4652
|
def patch_portfolio_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], operation : Annotated[conlist(Operation), Field(..., description="The json patch document. For more check: https://datatracker.ietf.org/doc/html/rfc6902.")], **kwargs) -> ApiResponse: # noqa: E501
|
|
4653
4653
|
"""PatchPortfolio: Patch portfolio. # noqa: E501
|
|
4654
4654
|
|
|
4655
|
-
Create or update certain fields for a particular portfolio. The behaviour is defined by the JSON Patch specification. Currently supported are:
|
|
4655
|
+
Create or update certain fields for a particular portfolio. The behaviour is defined by the JSON Patch specification. Currently supported are: Created, InstrumentScopes. # noqa: E501
|
|
4656
4656
|
This method makes a synchronous HTTP request by default. To make an
|
|
4657
4657
|
asynchronous HTTP request, please pass async_req=True
|
|
4658
4658
|
|
lusid/configuration.py
CHANGED
|
@@ -373,7 +373,7 @@ class Configuration:
|
|
|
373
373
|
return "Python SDK Debug Report:\n"\
|
|
374
374
|
"OS: {env}\n"\
|
|
375
375
|
"Python Version: {pyversion}\n"\
|
|
376
|
-
"Version of the API: 0.11.
|
|
376
|
+
"Version of the API: 0.11.6675\n"\
|
|
377
377
|
"SDK Package Version: {package_version}".\
|
|
378
378
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
|
379
379
|
|
lusid/extensions/__init__.py
CHANGED
lusid/models/__init__.py
CHANGED
|
@@ -382,6 +382,7 @@ from lusid.models.get_virtual_document_response import GetVirtualDocumentRespons
|
|
|
382
382
|
from lusid.models.group_by_selector_compliance_parameter import GroupBySelectorComplianceParameter
|
|
383
383
|
from lusid.models.group_by_step import GroupByStep
|
|
384
384
|
from lusid.models.group_by_step_request import GroupByStepRequest
|
|
385
|
+
from lusid.models.group_calculation_compliance_parameter import GroupCalculationComplianceParameter
|
|
385
386
|
from lusid.models.group_filter_predicate_compliance_parameter import GroupFilterPredicateComplianceParameter
|
|
386
387
|
from lusid.models.group_filter_step import GroupFilterStep
|
|
387
388
|
from lusid.models.group_filter_step_request import GroupFilterStepRequest
|
|
@@ -599,6 +600,8 @@ from lusid.models.paged_resource_list_of_virtual_row import PagedResourceListOfV
|
|
|
599
600
|
from lusid.models.participation import Participation
|
|
600
601
|
from lusid.models.participation_request import ParticipationRequest
|
|
601
602
|
from lusid.models.participation_set_request import ParticipationSetRequest
|
|
603
|
+
from lusid.models.percent_check_step import PercentCheckStep
|
|
604
|
+
from lusid.models.percent_check_step_request import PercentCheckStepRequest
|
|
602
605
|
from lusid.models.performance_return import PerformanceReturn
|
|
603
606
|
from lusid.models.performance_returns_metric import PerformanceReturnsMetric
|
|
604
607
|
from lusid.models.period_diary_entries_reopened_response import PeriodDiaryEntriesReopenedResponse
|
|
@@ -957,6 +960,7 @@ from lusid.models.upsert_legal_entity_access_metadata_request import UpsertLegal
|
|
|
957
960
|
from lusid.models.upsert_legal_entity_request import UpsertLegalEntityRequest
|
|
958
961
|
from lusid.models.upsert_person_access_metadata_request import UpsertPersonAccessMetadataRequest
|
|
959
962
|
from lusid.models.upsert_person_request import UpsertPersonRequest
|
|
963
|
+
from lusid.models.upsert_persons_response import UpsertPersonsResponse
|
|
960
964
|
from lusid.models.upsert_portfolio_access_metadata_request import UpsertPortfolioAccessMetadataRequest
|
|
961
965
|
from lusid.models.upsert_portfolio_group_access_metadata_request import UpsertPortfolioGroupAccessMetadataRequest
|
|
962
966
|
from lusid.models.upsert_portfolio_transactions_response import UpsertPortfolioTransactionsResponse
|
|
@@ -1377,6 +1381,7 @@ __all__ = [
|
|
|
1377
1381
|
"GroupBySelectorComplianceParameter",
|
|
1378
1382
|
"GroupByStep",
|
|
1379
1383
|
"GroupByStepRequest",
|
|
1384
|
+
"GroupCalculationComplianceParameter",
|
|
1380
1385
|
"GroupFilterPredicateComplianceParameter",
|
|
1381
1386
|
"GroupFilterStep",
|
|
1382
1387
|
"GroupFilterStepRequest",
|
|
@@ -1594,6 +1599,8 @@ __all__ = [
|
|
|
1594
1599
|
"Participation",
|
|
1595
1600
|
"ParticipationRequest",
|
|
1596
1601
|
"ParticipationSetRequest",
|
|
1602
|
+
"PercentCheckStep",
|
|
1603
|
+
"PercentCheckStepRequest",
|
|
1597
1604
|
"PerformanceReturn",
|
|
1598
1605
|
"PerformanceReturnsMetric",
|
|
1599
1606
|
"PeriodDiaryEntriesReopenedResponse",
|
|
@@ -1952,6 +1959,7 @@ __all__ = [
|
|
|
1952
1959
|
"UpsertLegalEntityRequest",
|
|
1953
1960
|
"UpsertPersonAccessMetadataRequest",
|
|
1954
1961
|
"UpsertPersonRequest",
|
|
1962
|
+
"UpsertPersonsResponse",
|
|
1955
1963
|
"UpsertPortfolioAccessMetadataRequest",
|
|
1956
1964
|
"UpsertPortfolioGroupAccessMetadataRequest",
|
|
1957
1965
|
"UpsertPortfolioTransactionsResponse",
|
|
@@ -27,15 +27,15 @@ class AddressKeyComplianceParameter(ComplianceParameter):
|
|
|
27
27
|
AddressKeyComplianceParameter
|
|
28
28
|
"""
|
|
29
29
|
value: StrictStr = Field(..., description="The key that uniquely identifies a queryable address in Lusid.")
|
|
30
|
-
compliance_parameter_type: StrictStr = Field(..., alias="complianceParameterType", description="The parameter type. The available values are: BoolComplianceParameter, StringComplianceParameter, DecimalComplianceParameter, DateTimeComplianceParameter, PropertyKeyComplianceParameter, AddressKeyComplianceParameter, PortfolioIdComplianceParameter, PortfolioGroupIdComplianceParameter, StringListComplianceParameter, BoolListComplianceParameter, DateTimeListComplianceParameter, DecimalListComplianceParameter, PropertyKeyListComplianceParameter, AddressKeyListComplianceParameter, PortfolioIdListComplianceParameter, PortfolioGroupIdListComplianceParameter, InstrumentListComplianceParameter, FilterPredicateComplianceParameter, GroupFilterPredicateComplianceParameter, GroupBySelectorComplianceParameter, PropertyListComplianceParameter")
|
|
30
|
+
compliance_parameter_type: StrictStr = Field(..., alias="complianceParameterType", description="The parameter type. The available values are: BoolComplianceParameter, StringComplianceParameter, DecimalComplianceParameter, DateTimeComplianceParameter, PropertyKeyComplianceParameter, AddressKeyComplianceParameter, PortfolioIdComplianceParameter, PortfolioGroupIdComplianceParameter, StringListComplianceParameter, BoolListComplianceParameter, DateTimeListComplianceParameter, DecimalListComplianceParameter, PropertyKeyListComplianceParameter, AddressKeyListComplianceParameter, PortfolioIdListComplianceParameter, PortfolioGroupIdListComplianceParameter, InstrumentListComplianceParameter, FilterPredicateComplianceParameter, GroupFilterPredicateComplianceParameter, GroupBySelectorComplianceParameter, PropertyListComplianceParameter, GroupCalculationComplianceParameter")
|
|
31
31
|
additional_properties: Dict[str, Any] = {}
|
|
32
32
|
__properties = ["complianceParameterType", "value"]
|
|
33
33
|
|
|
34
34
|
@validator('compliance_parameter_type')
|
|
35
35
|
def compliance_parameter_type_validate_enum(cls, value):
|
|
36
36
|
"""Validates the enum"""
|
|
37
|
-
if value not in ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter'):
|
|
38
|
-
raise ValueError("must be one of enum values ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter')")
|
|
37
|
+
if value not in ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter', 'GroupCalculationComplianceParameter'):
|
|
38
|
+
raise ValueError("must be one of enum values ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter', 'GroupCalculationComplianceParameter')")
|
|
39
39
|
return value
|
|
40
40
|
|
|
41
41
|
class Config:
|
|
@@ -28,15 +28,15 @@ class AddressKeyListComplianceParameter(ComplianceParameter):
|
|
|
28
28
|
AddressKeyListComplianceParameter
|
|
29
29
|
"""
|
|
30
30
|
value: ResourceId = Field(...)
|
|
31
|
-
compliance_parameter_type: StrictStr = Field(..., alias="complianceParameterType", description="The parameter type. The available values are: BoolComplianceParameter, StringComplianceParameter, DecimalComplianceParameter, DateTimeComplianceParameter, PropertyKeyComplianceParameter, AddressKeyComplianceParameter, PortfolioIdComplianceParameter, PortfolioGroupIdComplianceParameter, StringListComplianceParameter, BoolListComplianceParameter, DateTimeListComplianceParameter, DecimalListComplianceParameter, PropertyKeyListComplianceParameter, AddressKeyListComplianceParameter, PortfolioIdListComplianceParameter, PortfolioGroupIdListComplianceParameter, InstrumentListComplianceParameter, FilterPredicateComplianceParameter, GroupFilterPredicateComplianceParameter, GroupBySelectorComplianceParameter, PropertyListComplianceParameter")
|
|
31
|
+
compliance_parameter_type: StrictStr = Field(..., alias="complianceParameterType", description="The parameter type. The available values are: BoolComplianceParameter, StringComplianceParameter, DecimalComplianceParameter, DateTimeComplianceParameter, PropertyKeyComplianceParameter, AddressKeyComplianceParameter, PortfolioIdComplianceParameter, PortfolioGroupIdComplianceParameter, StringListComplianceParameter, BoolListComplianceParameter, DateTimeListComplianceParameter, DecimalListComplianceParameter, PropertyKeyListComplianceParameter, AddressKeyListComplianceParameter, PortfolioIdListComplianceParameter, PortfolioGroupIdListComplianceParameter, InstrumentListComplianceParameter, FilterPredicateComplianceParameter, GroupFilterPredicateComplianceParameter, GroupBySelectorComplianceParameter, PropertyListComplianceParameter, GroupCalculationComplianceParameter")
|
|
32
32
|
additional_properties: Dict[str, Any] = {}
|
|
33
33
|
__properties = ["complianceParameterType", "value"]
|
|
34
34
|
|
|
35
35
|
@validator('compliance_parameter_type')
|
|
36
36
|
def compliance_parameter_type_validate_enum(cls, value):
|
|
37
37
|
"""Validates the enum"""
|
|
38
|
-
if value not in ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter'):
|
|
39
|
-
raise ValueError("must be one of enum values ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter')")
|
|
38
|
+
if value not in ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter', 'GroupCalculationComplianceParameter'):
|
|
39
|
+
raise ValueError("must be one of enum values ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter', 'GroupCalculationComplianceParameter')")
|
|
40
40
|
return value
|
|
41
41
|
|
|
42
42
|
class Config:
|
lusid/models/basket.py
CHANGED
|
@@ -31,15 +31,15 @@ class Basket(LusidInstrument):
|
|
|
31
31
|
basket_name: BasketIdentifier = Field(..., alias="basketName")
|
|
32
32
|
basket_type: constr(strict=True, min_length=1) = Field(..., alias="basketType", description="What contents does the basket have. The validation will check that the instrument types contained match those expected. Supported string (enumeration) values are: [Bonds, Credits, Equities, EquitySwap].")
|
|
33
33
|
weighted_instruments: WeightedInstruments = Field(..., alias="weightedInstruments")
|
|
34
|
-
instrument_type: StrictStr = Field(..., alias="instrumentType", description="The available values are: QuotedSecurity, InterestRateSwap, FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap, InterestRateSwaption, Bond, EquityOption, FixedLeg, FloatingLeg, BespokeCashFlowsLeg, Unknown, TermDeposit, ContractForDifference, EquitySwap, CashPerpetual, CapFloor, CashSettled, CdsIndex, Basket, FundingLeg, FxSwap, ForwardRateAgreement, SimpleInstrument, Repo, Equity, ExchangeTradedOption, ReferenceInstrument, ComplexBond, InflationLinkedBond, InflationSwap, SimpleCashFlowLoan, TotalReturnSwap, InflationLeg, FundShareClass, FlexibleLoan")
|
|
34
|
+
instrument_type: StrictStr = Field(..., alias="instrumentType", description="The available values are: QuotedSecurity, InterestRateSwap, FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap, InterestRateSwaption, Bond, EquityOption, FixedLeg, FloatingLeg, BespokeCashFlowsLeg, Unknown, TermDeposit, ContractForDifference, EquitySwap, CashPerpetual, CapFloor, CashSettled, CdsIndex, Basket, FundingLeg, FxSwap, ForwardRateAgreement, SimpleInstrument, Repo, Equity, ExchangeTradedOption, ReferenceInstrument, ComplexBond, InflationLinkedBond, InflationSwap, SimpleCashFlowLoan, TotalReturnSwap, InflationLeg, FundShareClass, FlexibleLoan, UnsettledCash, Cash")
|
|
35
35
|
additional_properties: Dict[str, Any] = {}
|
|
36
36
|
__properties = ["instrumentType", "basketName", "basketType", "weightedInstruments"]
|
|
37
37
|
|
|
38
38
|
@validator('instrument_type')
|
|
39
39
|
def instrument_type_validate_enum(cls, value):
|
|
40
40
|
"""Validates the enum"""
|
|
41
|
-
if value not in ('QuotedSecurity', 'InterestRateSwap', 'FxForward', 'Future', 'ExoticInstrument', 'FxOption', 'CreditDefaultSwap', 'InterestRateSwaption', 'Bond', 'EquityOption', 'FixedLeg', 'FloatingLeg', 'BespokeCashFlowsLeg', 'Unknown', 'TermDeposit', 'ContractForDifference', 'EquitySwap', 'CashPerpetual', 'CapFloor', 'CashSettled', 'CdsIndex', 'Basket', 'FundingLeg', 'FxSwap', 'ForwardRateAgreement', 'SimpleInstrument', 'Repo', 'Equity', 'ExchangeTradedOption', 'ReferenceInstrument', 'ComplexBond', 'InflationLinkedBond', 'InflationSwap', 'SimpleCashFlowLoan', 'TotalReturnSwap', 'InflationLeg', 'FundShareClass', 'FlexibleLoan'):
|
|
42
|
-
raise ValueError("must be one of enum values ('QuotedSecurity', 'InterestRateSwap', 'FxForward', 'Future', 'ExoticInstrument', 'FxOption', 'CreditDefaultSwap', 'InterestRateSwaption', 'Bond', 'EquityOption', 'FixedLeg', 'FloatingLeg', 'BespokeCashFlowsLeg', 'Unknown', 'TermDeposit', 'ContractForDifference', 'EquitySwap', 'CashPerpetual', 'CapFloor', 'CashSettled', 'CdsIndex', 'Basket', 'FundingLeg', 'FxSwap', 'ForwardRateAgreement', 'SimpleInstrument', 'Repo', 'Equity', 'ExchangeTradedOption', 'ReferenceInstrument', 'ComplexBond', 'InflationLinkedBond', 'InflationSwap', 'SimpleCashFlowLoan', 'TotalReturnSwap', 'InflationLeg', 'FundShareClass', 'FlexibleLoan')")
|
|
41
|
+
if value not in ('QuotedSecurity', 'InterestRateSwap', 'FxForward', 'Future', 'ExoticInstrument', 'FxOption', 'CreditDefaultSwap', 'InterestRateSwaption', 'Bond', 'EquityOption', 'FixedLeg', 'FloatingLeg', 'BespokeCashFlowsLeg', 'Unknown', 'TermDeposit', 'ContractForDifference', 'EquitySwap', 'CashPerpetual', 'CapFloor', 'CashSettled', 'CdsIndex', 'Basket', 'FundingLeg', 'FxSwap', 'ForwardRateAgreement', 'SimpleInstrument', 'Repo', 'Equity', 'ExchangeTradedOption', 'ReferenceInstrument', 'ComplexBond', 'InflationLinkedBond', 'InflationSwap', 'SimpleCashFlowLoan', 'TotalReturnSwap', 'InflationLeg', 'FundShareClass', 'FlexibleLoan', 'UnsettledCash', 'Cash'):
|
|
42
|
+
raise ValueError("must be one of enum values ('QuotedSecurity', 'InterestRateSwap', 'FxForward', 'Future', 'ExoticInstrument', 'FxOption', 'CreditDefaultSwap', 'InterestRateSwaption', 'Bond', 'EquityOption', 'FixedLeg', 'FloatingLeg', 'BespokeCashFlowsLeg', 'Unknown', 'TermDeposit', 'ContractForDifference', 'EquitySwap', 'CashPerpetual', 'CapFloor', 'CashSettled', 'CdsIndex', 'Basket', 'FundingLeg', 'FxSwap', 'ForwardRateAgreement', 'SimpleInstrument', 'Repo', 'Equity', 'ExchangeTradedOption', 'ReferenceInstrument', 'ComplexBond', 'InflationLinkedBond', 'InflationSwap', 'SimpleCashFlowLoan', 'TotalReturnSwap', 'InflationLeg', 'FundShareClass', 'FlexibleLoan', 'UnsettledCash', 'Cash')")
|
|
43
43
|
return value
|
|
44
44
|
|
|
45
45
|
class Config:
|
lusid/models/bond.py
CHANGED
|
@@ -43,15 +43,15 @@ class Bond(LusidInstrument):
|
|
|
43
43
|
rounding_conventions: Optional[conlist(RoundingConvention)] = Field(None, alias="roundingConventions", description="Rounding conventions for analytics, if any.")
|
|
44
44
|
ex_dividend_configuration: Optional[ExDividendConfiguration] = Field(None, alias="exDividendConfiguration")
|
|
45
45
|
original_issue_price: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="originalIssuePrice", description="The price the bond was issued at. This is to be entered as a percentage of par, for example a value of 98.5 would represent 98.5%.")
|
|
46
|
-
instrument_type: StrictStr = Field(..., alias="instrumentType", description="The available values are: QuotedSecurity, InterestRateSwap, FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap, InterestRateSwaption, Bond, EquityOption, FixedLeg, FloatingLeg, BespokeCashFlowsLeg, Unknown, TermDeposit, ContractForDifference, EquitySwap, CashPerpetual, CapFloor, CashSettled, CdsIndex, Basket, FundingLeg, FxSwap, ForwardRateAgreement, SimpleInstrument, Repo, Equity, ExchangeTradedOption, ReferenceInstrument, ComplexBond, InflationLinkedBond, InflationSwap, SimpleCashFlowLoan, TotalReturnSwap, InflationLeg, FundShareClass, FlexibleLoan")
|
|
46
|
+
instrument_type: StrictStr = Field(..., alias="instrumentType", description="The available values are: QuotedSecurity, InterestRateSwap, FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap, InterestRateSwaption, Bond, EquityOption, FixedLeg, FloatingLeg, BespokeCashFlowsLeg, Unknown, TermDeposit, ContractForDifference, EquitySwap, CashPerpetual, CapFloor, CashSettled, CdsIndex, Basket, FundingLeg, FxSwap, ForwardRateAgreement, SimpleInstrument, Repo, Equity, ExchangeTradedOption, ReferenceInstrument, ComplexBond, InflationLinkedBond, InflationSwap, SimpleCashFlowLoan, TotalReturnSwap, InflationLeg, FundShareClass, FlexibleLoan, UnsettledCash, Cash")
|
|
47
47
|
additional_properties: Dict[str, Any] = {}
|
|
48
48
|
__properties = ["instrumentType", "startDate", "maturityDate", "domCcy", "flowConventions", "principal", "couponRate", "identifiers", "exDividendDays", "initialCouponDate", "firstCouponPayDate", "calculationType", "roundingConventions", "exDividendConfiguration", "originalIssuePrice"]
|
|
49
49
|
|
|
50
50
|
@validator('instrument_type')
|
|
51
51
|
def instrument_type_validate_enum(cls, value):
|
|
52
52
|
"""Validates the enum"""
|
|
53
|
-
if value not in ('QuotedSecurity', 'InterestRateSwap', 'FxForward', 'Future', 'ExoticInstrument', 'FxOption', 'CreditDefaultSwap', 'InterestRateSwaption', 'Bond', 'EquityOption', 'FixedLeg', 'FloatingLeg', 'BespokeCashFlowsLeg', 'Unknown', 'TermDeposit', 'ContractForDifference', 'EquitySwap', 'CashPerpetual', 'CapFloor', 'CashSettled', 'CdsIndex', 'Basket', 'FundingLeg', 'FxSwap', 'ForwardRateAgreement', 'SimpleInstrument', 'Repo', 'Equity', 'ExchangeTradedOption', 'ReferenceInstrument', 'ComplexBond', 'InflationLinkedBond', 'InflationSwap', 'SimpleCashFlowLoan', 'TotalReturnSwap', 'InflationLeg', 'FundShareClass', 'FlexibleLoan'):
|
|
54
|
-
raise ValueError("must be one of enum values ('QuotedSecurity', 'InterestRateSwap', 'FxForward', 'Future', 'ExoticInstrument', 'FxOption', 'CreditDefaultSwap', 'InterestRateSwaption', 'Bond', 'EquityOption', 'FixedLeg', 'FloatingLeg', 'BespokeCashFlowsLeg', 'Unknown', 'TermDeposit', 'ContractForDifference', 'EquitySwap', 'CashPerpetual', 'CapFloor', 'CashSettled', 'CdsIndex', 'Basket', 'FundingLeg', 'FxSwap', 'ForwardRateAgreement', 'SimpleInstrument', 'Repo', 'Equity', 'ExchangeTradedOption', 'ReferenceInstrument', 'ComplexBond', 'InflationLinkedBond', 'InflationSwap', 'SimpleCashFlowLoan', 'TotalReturnSwap', 'InflationLeg', 'FundShareClass', 'FlexibleLoan')")
|
|
53
|
+
if value not in ('QuotedSecurity', 'InterestRateSwap', 'FxForward', 'Future', 'ExoticInstrument', 'FxOption', 'CreditDefaultSwap', 'InterestRateSwaption', 'Bond', 'EquityOption', 'FixedLeg', 'FloatingLeg', 'BespokeCashFlowsLeg', 'Unknown', 'TermDeposit', 'ContractForDifference', 'EquitySwap', 'CashPerpetual', 'CapFloor', 'CashSettled', 'CdsIndex', 'Basket', 'FundingLeg', 'FxSwap', 'ForwardRateAgreement', 'SimpleInstrument', 'Repo', 'Equity', 'ExchangeTradedOption', 'ReferenceInstrument', 'ComplexBond', 'InflationLinkedBond', 'InflationSwap', 'SimpleCashFlowLoan', 'TotalReturnSwap', 'InflationLeg', 'FundShareClass', 'FlexibleLoan', 'UnsettledCash', 'Cash'):
|
|
54
|
+
raise ValueError("must be one of enum values ('QuotedSecurity', 'InterestRateSwap', 'FxForward', 'Future', 'ExoticInstrument', 'FxOption', 'CreditDefaultSwap', 'InterestRateSwaption', 'Bond', 'EquityOption', 'FixedLeg', 'FloatingLeg', 'BespokeCashFlowsLeg', 'Unknown', 'TermDeposit', 'ContractForDifference', 'EquitySwap', 'CashPerpetual', 'CapFloor', 'CashSettled', 'CdsIndex', 'Basket', 'FundingLeg', 'FxSwap', 'ForwardRateAgreement', 'SimpleInstrument', 'Repo', 'Equity', 'ExchangeTradedOption', 'ReferenceInstrument', 'ComplexBond', 'InflationLinkedBond', 'InflationSwap', 'SimpleCashFlowLoan', 'TotalReturnSwap', 'InflationLeg', 'FundShareClass', 'FlexibleLoan', 'UnsettledCash', 'Cash')")
|
|
55
55
|
return value
|
|
56
56
|
|
|
57
57
|
class Config:
|
|
@@ -27,15 +27,15 @@ class BoolComplianceParameter(ComplianceParameter):
|
|
|
27
27
|
BoolComplianceParameter
|
|
28
28
|
"""
|
|
29
29
|
value: StrictBool = Field(...)
|
|
30
|
-
compliance_parameter_type: StrictStr = Field(..., alias="complianceParameterType", description="The parameter type. The available values are: BoolComplianceParameter, StringComplianceParameter, DecimalComplianceParameter, DateTimeComplianceParameter, PropertyKeyComplianceParameter, AddressKeyComplianceParameter, PortfolioIdComplianceParameter, PortfolioGroupIdComplianceParameter, StringListComplianceParameter, BoolListComplianceParameter, DateTimeListComplianceParameter, DecimalListComplianceParameter, PropertyKeyListComplianceParameter, AddressKeyListComplianceParameter, PortfolioIdListComplianceParameter, PortfolioGroupIdListComplianceParameter, InstrumentListComplianceParameter, FilterPredicateComplianceParameter, GroupFilterPredicateComplianceParameter, GroupBySelectorComplianceParameter, PropertyListComplianceParameter")
|
|
30
|
+
compliance_parameter_type: StrictStr = Field(..., alias="complianceParameterType", description="The parameter type. The available values are: BoolComplianceParameter, StringComplianceParameter, DecimalComplianceParameter, DateTimeComplianceParameter, PropertyKeyComplianceParameter, AddressKeyComplianceParameter, PortfolioIdComplianceParameter, PortfolioGroupIdComplianceParameter, StringListComplianceParameter, BoolListComplianceParameter, DateTimeListComplianceParameter, DecimalListComplianceParameter, PropertyKeyListComplianceParameter, AddressKeyListComplianceParameter, PortfolioIdListComplianceParameter, PortfolioGroupIdListComplianceParameter, InstrumentListComplianceParameter, FilterPredicateComplianceParameter, GroupFilterPredicateComplianceParameter, GroupBySelectorComplianceParameter, PropertyListComplianceParameter, GroupCalculationComplianceParameter")
|
|
31
31
|
additional_properties: Dict[str, Any] = {}
|
|
32
32
|
__properties = ["complianceParameterType", "value"]
|
|
33
33
|
|
|
34
34
|
@validator('compliance_parameter_type')
|
|
35
35
|
def compliance_parameter_type_validate_enum(cls, value):
|
|
36
36
|
"""Validates the enum"""
|
|
37
|
-
if value not in ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter'):
|
|
38
|
-
raise ValueError("must be one of enum values ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter')")
|
|
37
|
+
if value not in ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter', 'GroupCalculationComplianceParameter'):
|
|
38
|
+
raise ValueError("must be one of enum values ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter', 'GroupCalculationComplianceParameter')")
|
|
39
39
|
return value
|
|
40
40
|
|
|
41
41
|
class Config:
|
|
@@ -28,15 +28,15 @@ class BoolListComplianceParameter(ComplianceParameter):
|
|
|
28
28
|
BoolListComplianceParameter
|
|
29
29
|
"""
|
|
30
30
|
value: ResourceId = Field(...)
|
|
31
|
-
compliance_parameter_type: StrictStr = Field(..., alias="complianceParameterType", description="The parameter type. The available values are: BoolComplianceParameter, StringComplianceParameter, DecimalComplianceParameter, DateTimeComplianceParameter, PropertyKeyComplianceParameter, AddressKeyComplianceParameter, PortfolioIdComplianceParameter, PortfolioGroupIdComplianceParameter, StringListComplianceParameter, BoolListComplianceParameter, DateTimeListComplianceParameter, DecimalListComplianceParameter, PropertyKeyListComplianceParameter, AddressKeyListComplianceParameter, PortfolioIdListComplianceParameter, PortfolioGroupIdListComplianceParameter, InstrumentListComplianceParameter, FilterPredicateComplianceParameter, GroupFilterPredicateComplianceParameter, GroupBySelectorComplianceParameter, PropertyListComplianceParameter")
|
|
31
|
+
compliance_parameter_type: StrictStr = Field(..., alias="complianceParameterType", description="The parameter type. The available values are: BoolComplianceParameter, StringComplianceParameter, DecimalComplianceParameter, DateTimeComplianceParameter, PropertyKeyComplianceParameter, AddressKeyComplianceParameter, PortfolioIdComplianceParameter, PortfolioGroupIdComplianceParameter, StringListComplianceParameter, BoolListComplianceParameter, DateTimeListComplianceParameter, DecimalListComplianceParameter, PropertyKeyListComplianceParameter, AddressKeyListComplianceParameter, PortfolioIdListComplianceParameter, PortfolioGroupIdListComplianceParameter, InstrumentListComplianceParameter, FilterPredicateComplianceParameter, GroupFilterPredicateComplianceParameter, GroupBySelectorComplianceParameter, PropertyListComplianceParameter, GroupCalculationComplianceParameter")
|
|
32
32
|
additional_properties: Dict[str, Any] = {}
|
|
33
33
|
__properties = ["complianceParameterType", "value"]
|
|
34
34
|
|
|
35
35
|
@validator('compliance_parameter_type')
|
|
36
36
|
def compliance_parameter_type_validate_enum(cls, value):
|
|
37
37
|
"""Validates the enum"""
|
|
38
|
-
if value not in ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter'):
|
|
39
|
-
raise ValueError("must be one of enum values ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter')")
|
|
38
|
+
if value not in ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter', 'GroupCalculationComplianceParameter'):
|
|
39
|
+
raise ValueError("must be one of enum values ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter', 'GroupCalculationComplianceParameter')")
|
|
40
40
|
return value
|
|
41
41
|
|
|
42
42
|
class Config:
|
lusid/models/branch_step.py
CHANGED
|
@@ -29,15 +29,15 @@ class BranchStep(ComplianceStep):
|
|
|
29
29
|
"""
|
|
30
30
|
label: constr(strict=True, min_length=1) = Field(..., description="The label of the compliance step")
|
|
31
31
|
parameters: conlist(ComplianceTemplateParameter) = Field(..., description="Parameters required for the step")
|
|
32
|
-
compliance_step_type: StrictStr = Field(..., alias="complianceStepType", description=". The available values are: FilterStep, GroupByStep, GroupFilterStep, BranchStep, RecombineStep, CheckStep")
|
|
32
|
+
compliance_step_type: StrictStr = Field(..., alias="complianceStepType", description=". The available values are: FilterStep, GroupByStep, GroupFilterStep, BranchStep, RecombineStep, CheckStep, PercentCheckStep")
|
|
33
33
|
additional_properties: Dict[str, Any] = {}
|
|
34
34
|
__properties = ["complianceStepType", "label", "parameters"]
|
|
35
35
|
|
|
36
36
|
@validator('compliance_step_type')
|
|
37
37
|
def compliance_step_type_validate_enum(cls, value):
|
|
38
38
|
"""Validates the enum"""
|
|
39
|
-
if value not in ('FilterStep', 'GroupByStep', 'GroupFilterStep', 'BranchStep', 'RecombineStep', 'CheckStep'):
|
|
40
|
-
raise ValueError("must be one of enum values ('FilterStep', 'GroupByStep', 'GroupFilterStep', 'BranchStep', 'RecombineStep', 'CheckStep')")
|
|
39
|
+
if value not in ('FilterStep', 'GroupByStep', 'GroupFilterStep', 'BranchStep', 'RecombineStep', 'CheckStep', 'PercentCheckStep'):
|
|
40
|
+
raise ValueError("must be one of enum values ('FilterStep', 'GroupByStep', 'GroupFilterStep', 'BranchStep', 'RecombineStep', 'CheckStep', 'PercentCheckStep')")
|
|
41
41
|
return value
|
|
42
42
|
|
|
43
43
|
class Config:
|