lusid-sdk 2.1.401__py3-none-any.whl → 2.1.423__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lusid/__init__.py +44 -12
- lusid/api/__init__.py +2 -2
- lusid/api/abor_api.py +8 -16
- lusid/api/allocations_api.py +2 -2
- lusid/api/chart_of_accounts_api.py +174 -0
- lusid/api/custom_entities_api.py +2 -2
- lusid/api/entities_api.py +180 -0
- lusid/api/{fund_configurations_api.py → fund_configuration_entities_api.py} +1 -1
- lusid/api/group_reconciliations_api.py +1418 -27
- lusid/api/instruments_api.py +6 -6
- lusid/api/legal_entities_api.py +4 -4
- lusid/api/order_graph_api.py +4 -4
- lusid/api/order_management_api.py +25 -12
- lusid/api/persons_api.py +4 -4
- lusid/api/portfolios_api.py +27 -30
- lusid/api/reference_lists_api.py +2 -2
- lusid/api/reference_portfolio_api.py +176 -0
- lusid/api/transaction_portfolios_api.py +2 -2
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +42 -10
- lusid/models/access_metadata_value.py +1 -1
- lusid/models/address_key_list.py +3 -3
- lusid/models/amount.py +69 -0
- lusid/models/batch_upsert_portfolio_access_metadata_request.py +27 -17
- lusid/models/batch_upsert_portfolio_access_metadata_response.py +56 -16
- lusid/models/{metadata_key_value.py → batch_upsert_portfolio_access_metadata_response_item.py} +15 -9
- lusid/models/{component_rule.py → break_code_source.py} +17 -21
- lusid/models/change_interval_with_order_management_detail.py +137 -0
- lusid/models/create_group_reconciliation_definition_request.py +113 -0
- lusid/models/custom_entity_entity.py +146 -0
- lusid/models/decimal_list.py +3 -3
- lusid/models/diary_entry_request.py +10 -1
- lusid/models/fixed_schedule.py +3 -3
- lusid/models/float_schedule.py +4 -4
- lusid/models/flow_conventions.py +7 -1
- lusid/models/fund_configuration.py +44 -17
- lusid/models/fund_configuration_request.py +31 -19
- lusid/models/fund_id_list.py +99 -0
- lusid/models/group_reconciliation_aggregate_attribute_rule.py +2 -2
- lusid/models/group_reconciliation_aggregate_comparison_rule_operand.py +1 -1
- lusid/models/group_reconciliation_core_comparison_rule_operand.py +1 -1
- lusid/models/group_reconciliation_definition.py +136 -0
- lusid/models/group_reconciliation_definition_comparison_ruleset_ids.py +83 -0
- lusid/models/group_reconciliation_definition_currencies.py +71 -0
- lusid/models/group_reconciliation_definition_portfolio_entity_ids.py +86 -0
- lusid/models/group_reconciliation_definition_recipe_ids.py +78 -0
- lusid/models/instrument.py +7 -1
- lusid/models/instrument_definition.py +8 -2
- lusid/models/instrument_list.py +3 -3
- lusid/models/market_data_key_rule.py +5 -3
- lusid/models/market_data_specific_rule.py +5 -3
- lusid/models/merger_event.py +19 -19
- lusid/models/output_transaction.py +9 -2
- lusid/models/paged_resource_list_of_group_reconciliation_comparison_ruleset.py +113 -0
- lusid/models/paged_resource_list_of_group_reconciliation_definition.py +113 -0
- lusid/models/portfolio_group_id_list.py +3 -3
- lusid/models/portfolio_id_list.py +3 -3
- lusid/models/property_list.py +3 -3
- lusid/models/reference_list.py +6 -5
- lusid/models/reference_list_type.py +1 -0
- lusid/models/{resource_list_of_entity_change_item.py → resource_list_of_change_interval_with_order_management_detail.py} +11 -11
- lusid/models/settlement_cycle.py +79 -0
- lusid/models/share_class_dealing_breakdown.py +3 -2
- lusid/models/stock_dividend_event.py +17 -3
- lusid/models/string_list.py +3 -3
- lusid/models/transaction.py +9 -2
- lusid/models/transaction_date_windows.py +85 -0
- lusid/models/transaction_request.py +9 -2
- lusid/models/update_group_reconciliation_comparison_ruleset_request.py +91 -0
- lusid/models/update_group_reconciliation_definition_request.py +107 -0
- lusid/models/upsert_reference_portfolio_constituent_properties_request.py +84 -0
- lusid/models/upsert_reference_portfolio_constituent_properties_response.py +115 -0
- {lusid_sdk-2.1.401.dist-info → lusid_sdk-2.1.423.dist-info}/METADATA +54 -27
- {lusid_sdk-2.1.401.dist-info → lusid_sdk-2.1.423.dist-info}/RECORD +75 -59
- lusid/models/entity_change_item.py +0 -121
- lusid/models/metadata_key_value_response.py +0 -86
- {lusid_sdk-2.1.401.dist-info → lusid_sdk-2.1.423.dist-info}/WHEEL +0 -0
@@ -30,6 +30,8 @@ from lusid.models.create_reference_portfolio_request import CreateReferencePortf
|
|
30
30
|
from lusid.models.get_reference_portfolio_constituents_response import GetReferencePortfolioConstituentsResponse
|
31
31
|
from lusid.models.portfolio import Portfolio
|
32
32
|
from lusid.models.resource_list_of_constituents_adjustment_header import ResourceListOfConstituentsAdjustmentHeader
|
33
|
+
from lusid.models.upsert_reference_portfolio_constituent_properties_request import UpsertReferencePortfolioConstituentPropertiesRequest
|
34
|
+
from lusid.models.upsert_reference_portfolio_constituent_properties_response import UpsertReferencePortfolioConstituentPropertiesResponse
|
33
35
|
from lusid.models.upsert_reference_portfolio_constituents_request import UpsertReferencePortfolioConstituentsRequest
|
34
36
|
from lusid.models.upsert_reference_portfolio_constituents_response import UpsertReferencePortfolioConstituentsResponse
|
35
37
|
|
@@ -592,6 +594,180 @@ class ReferencePortfolioApi:
|
|
592
594
|
collection_formats=_collection_formats,
|
593
595
|
_request_auth=_params.get('_request_auth'))
|
594
596
|
|
597
|
+
@overload
|
598
|
+
async def upsert_reference_portfolio_constituent_properties(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the reference portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the reference portfolio. Together with the scope this uniquely identifies the reference portfolio.")], upsert_reference_portfolio_constituent_properties_request : Annotated[UpsertReferencePortfolioConstituentPropertiesRequest, Field(..., description="The request to modify properties for the constituent.")], **kwargs) -> UpsertReferencePortfolioConstituentPropertiesResponse: # noqa: E501
|
599
|
+
...
|
600
|
+
|
601
|
+
@overload
|
602
|
+
def upsert_reference_portfolio_constituent_properties(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the reference portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the reference portfolio. Together with the scope this uniquely identifies the reference portfolio.")], upsert_reference_portfolio_constituent_properties_request : Annotated[UpsertReferencePortfolioConstituentPropertiesRequest, Field(..., description="The request to modify properties for the constituent.")], async_req: Optional[bool]=True, **kwargs) -> UpsertReferencePortfolioConstituentPropertiesResponse: # noqa: E501
|
603
|
+
...
|
604
|
+
|
605
|
+
@validate_arguments
|
606
|
+
def upsert_reference_portfolio_constituent_properties(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the reference portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the reference portfolio. Together with the scope this uniquely identifies the reference portfolio.")], upsert_reference_portfolio_constituent_properties_request : Annotated[UpsertReferencePortfolioConstituentPropertiesRequest, Field(..., description="The request to modify properties for the constituent.")], async_req: Optional[bool]=None, **kwargs) -> Union[UpsertReferencePortfolioConstituentPropertiesResponse, Awaitable[UpsertReferencePortfolioConstituentPropertiesResponse]]: # noqa: E501
|
607
|
+
"""[EARLY ACCESS] UpsertReferencePortfolioConstituentProperties: Upsert constituent properties # noqa: E501
|
608
|
+
|
609
|
+
Create or update one or more constituent properties for a single constituent in the reference portfolio. Each property will be updated if it already exists, created if it does not and deleted if value is null. Both constituent and portfolio must exist at the time when properties are created or updated. # noqa: E501
|
610
|
+
This method makes a synchronous HTTP request by default. To make an
|
611
|
+
asynchronous HTTP request, please pass async_req=True
|
612
|
+
|
613
|
+
>>> thread = api.upsert_reference_portfolio_constituent_properties(scope, code, upsert_reference_portfolio_constituent_properties_request, async_req=True)
|
614
|
+
>>> result = thread.get()
|
615
|
+
|
616
|
+
:param scope: The scope of the reference portfolio. (required)
|
617
|
+
:type scope: str
|
618
|
+
:param code: The code of the reference portfolio. Together with the scope this uniquely identifies the reference portfolio. (required)
|
619
|
+
:type code: str
|
620
|
+
:param upsert_reference_portfolio_constituent_properties_request: The request to modify properties for the constituent. (required)
|
621
|
+
:type upsert_reference_portfolio_constituent_properties_request: UpsertReferencePortfolioConstituentPropertiesRequest
|
622
|
+
:param async_req: Whether to execute the request asynchronously.
|
623
|
+
:type async_req: bool, optional
|
624
|
+
:param _request_timeout: timeout setting for this request.
|
625
|
+
If one number provided, it will be total request
|
626
|
+
timeout. It can also be a pair (tuple) of
|
627
|
+
(connection, read) timeouts.
|
628
|
+
:return: Returns the result object.
|
629
|
+
If the method is called asynchronously,
|
630
|
+
returns the request thread.
|
631
|
+
:rtype: UpsertReferencePortfolioConstituentPropertiesResponse
|
632
|
+
"""
|
633
|
+
kwargs['_return_http_data_only'] = True
|
634
|
+
if '_preload_content' in kwargs:
|
635
|
+
message = "Error! Please call the upsert_reference_portfolio_constituent_properties_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
636
|
+
raise ValueError(message)
|
637
|
+
if async_req is not None:
|
638
|
+
kwargs['async_req'] = async_req
|
639
|
+
return self.upsert_reference_portfolio_constituent_properties_with_http_info(scope, code, upsert_reference_portfolio_constituent_properties_request, **kwargs) # noqa: E501
|
640
|
+
|
641
|
+
@validate_arguments
|
642
|
+
def upsert_reference_portfolio_constituent_properties_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the reference portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the reference portfolio. Together with the scope this uniquely identifies the reference portfolio.")], upsert_reference_portfolio_constituent_properties_request : Annotated[UpsertReferencePortfolioConstituentPropertiesRequest, Field(..., description="The request to modify properties for the constituent.")], **kwargs) -> ApiResponse: # noqa: E501
|
643
|
+
"""[EARLY ACCESS] UpsertReferencePortfolioConstituentProperties: Upsert constituent properties # noqa: E501
|
644
|
+
|
645
|
+
Create or update one or more constituent properties for a single constituent in the reference portfolio. Each property will be updated if it already exists, created if it does not and deleted if value is null. Both constituent and portfolio must exist at the time when properties are created or updated. # noqa: E501
|
646
|
+
This method makes a synchronous HTTP request by default. To make an
|
647
|
+
asynchronous HTTP request, please pass async_req=True
|
648
|
+
|
649
|
+
>>> thread = api.upsert_reference_portfolio_constituent_properties_with_http_info(scope, code, upsert_reference_portfolio_constituent_properties_request, async_req=True)
|
650
|
+
>>> result = thread.get()
|
651
|
+
|
652
|
+
:param scope: The scope of the reference portfolio. (required)
|
653
|
+
:type scope: str
|
654
|
+
:param code: The code of the reference portfolio. Together with the scope this uniquely identifies the reference portfolio. (required)
|
655
|
+
:type code: str
|
656
|
+
:param upsert_reference_portfolio_constituent_properties_request: The request to modify properties for the constituent. (required)
|
657
|
+
:type upsert_reference_portfolio_constituent_properties_request: UpsertReferencePortfolioConstituentPropertiesRequest
|
658
|
+
:param async_req: Whether to execute the request asynchronously.
|
659
|
+
:type async_req: bool, optional
|
660
|
+
:param _preload_content: if False, the ApiResponse.data will
|
661
|
+
be set to none and raw_data will store the
|
662
|
+
HTTP response body without reading/decoding.
|
663
|
+
Default is True.
|
664
|
+
:type _preload_content: bool, optional
|
665
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
666
|
+
object with status code, headers, etc
|
667
|
+
:type _return_http_data_only: bool, optional
|
668
|
+
:param _request_timeout: timeout setting for this request. If one
|
669
|
+
number provided, it will be total request
|
670
|
+
timeout. It can also be a pair (tuple) of
|
671
|
+
(connection, read) timeouts.
|
672
|
+
:param _request_auth: set to override the auth_settings for an a single
|
673
|
+
request; this effectively ignores the authentication
|
674
|
+
in the spec for a single request.
|
675
|
+
:type _request_auth: dict, optional
|
676
|
+
:type _content_type: string, optional: force content-type for the request
|
677
|
+
:return: Returns the result object.
|
678
|
+
If the method is called asynchronously,
|
679
|
+
returns the request thread.
|
680
|
+
:rtype: tuple(UpsertReferencePortfolioConstituentPropertiesResponse, status_code(int), headers(HTTPHeaderDict))
|
681
|
+
"""
|
682
|
+
|
683
|
+
_params = locals()
|
684
|
+
|
685
|
+
_all_params = [
|
686
|
+
'scope',
|
687
|
+
'code',
|
688
|
+
'upsert_reference_portfolio_constituent_properties_request'
|
689
|
+
]
|
690
|
+
_all_params.extend(
|
691
|
+
[
|
692
|
+
'async_req',
|
693
|
+
'_return_http_data_only',
|
694
|
+
'_preload_content',
|
695
|
+
'_request_timeout',
|
696
|
+
'_request_auth',
|
697
|
+
'_content_type',
|
698
|
+
'_headers'
|
699
|
+
]
|
700
|
+
)
|
701
|
+
|
702
|
+
# validate the arguments
|
703
|
+
for _key, _val in _params['kwargs'].items():
|
704
|
+
if _key not in _all_params:
|
705
|
+
raise ApiTypeError(
|
706
|
+
"Got an unexpected keyword argument '%s'"
|
707
|
+
" to method upsert_reference_portfolio_constituent_properties" % _key
|
708
|
+
)
|
709
|
+
_params[_key] = _val
|
710
|
+
del _params['kwargs']
|
711
|
+
|
712
|
+
_collection_formats = {}
|
713
|
+
|
714
|
+
# process the path parameters
|
715
|
+
_path_params = {}
|
716
|
+
if _params['scope']:
|
717
|
+
_path_params['scope'] = _params['scope']
|
718
|
+
|
719
|
+
if _params['code']:
|
720
|
+
_path_params['code'] = _params['code']
|
721
|
+
|
722
|
+
|
723
|
+
# process the query parameters
|
724
|
+
_query_params = []
|
725
|
+
# process the header parameters
|
726
|
+
_header_params = dict(_params.get('_headers', {}))
|
727
|
+
# process the form parameters
|
728
|
+
_form_params = []
|
729
|
+
_files = {}
|
730
|
+
# process the body parameter
|
731
|
+
_body_params = None
|
732
|
+
if _params['upsert_reference_portfolio_constituent_properties_request'] is not None:
|
733
|
+
_body_params = _params['upsert_reference_portfolio_constituent_properties_request']
|
734
|
+
|
735
|
+
# set the HTTP header `Accept`
|
736
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
737
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
738
|
+
|
739
|
+
# set the HTTP header `Content-Type`
|
740
|
+
_content_types_list = _params.get('_content_type',
|
741
|
+
self.api_client.select_header_content_type(
|
742
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
|
743
|
+
if _content_types_list:
|
744
|
+
_header_params['Content-Type'] = _content_types_list
|
745
|
+
|
746
|
+
# authentication setting
|
747
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
748
|
+
|
749
|
+
_response_types_map = {
|
750
|
+
'200': "UpsertReferencePortfolioConstituentPropertiesResponse",
|
751
|
+
'400': "LusidValidationProblemDetails",
|
752
|
+
}
|
753
|
+
|
754
|
+
return self.api_client.call_api(
|
755
|
+
'/api/referenceportfolios/{scope}/{code}/constituents/properties', 'POST',
|
756
|
+
_path_params,
|
757
|
+
_query_params,
|
758
|
+
_header_params,
|
759
|
+
body=_body_params,
|
760
|
+
post_params=_form_params,
|
761
|
+
files=_files,
|
762
|
+
response_types_map=_response_types_map,
|
763
|
+
auth_settings=_auth_settings,
|
764
|
+
async_req=_params.get('async_req'),
|
765
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
766
|
+
_preload_content=_params.get('_preload_content', True),
|
767
|
+
_request_timeout=_params.get('_request_timeout'),
|
768
|
+
collection_formats=_collection_formats,
|
769
|
+
_request_auth=_params.get('_request_auth'))
|
770
|
+
|
595
771
|
@overload
|
596
772
|
async def upsert_reference_portfolio_constituents(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the reference portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the reference portfolio. Together with the scope this uniquely identifies the reference portfolio.")], upsert_reference_portfolio_constituents_request : Annotated[UpsertReferencePortfolioConstituentsRequest, Field(..., description="The constituents to upload to the reference portfolio.")], **kwargs) -> UpsertReferencePortfolioConstituentsResponse: # noqa: E501
|
597
773
|
...
|
@@ -4610,7 +4610,7 @@ class TransactionPortfoliosApi:
|
|
4610
4610
|
|
4611
4611
|
@validate_arguments
|
4612
4612
|
def get_transaction_history(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the transaction portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], transaction_id : Annotated[StrictStr, Field(..., description="The unique ID of the transaction to create or update.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the history of the transaction. Defaults to return the latest version if not specified.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ResourceListOfChangeHistory, Awaitable[ResourceListOfChangeHistory]]: # noqa: E501
|
4613
|
-
"""
|
4613
|
+
"""GetTransactionHistory: Get the history of a transaction # noqa: E501
|
4614
4614
|
|
4615
4615
|
Get all of the changes that have happened to a transaction. # noqa: E501
|
4616
4616
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -4648,7 +4648,7 @@ class TransactionPortfoliosApi:
|
|
4648
4648
|
|
4649
4649
|
@validate_arguments
|
4650
4650
|
def get_transaction_history_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the transaction portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], transaction_id : Annotated[StrictStr, Field(..., description="The unique ID of the transaction to create or update.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the history of the transaction. Defaults to return the latest version if not specified.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
4651
|
-
"""
|
4651
|
+
"""GetTransactionHistory: Get the history of a transaction # noqa: E501
|
4652
4652
|
|
4653
4653
|
Get all of the changes that have happened to a transaction. # noqa: E501
|
4654
4654
|
This method makes a synchronous HTTP request by default. To make an
|
lusid/configuration.py
CHANGED
@@ -382,7 +382,7 @@ class Configuration:
|
|
382
382
|
return "Python SDK Debug Report:\n"\
|
383
383
|
"OS: {env}\n"\
|
384
384
|
"Python Version: {pyversion}\n"\
|
385
|
-
"Version of the API: 0.11.
|
385
|
+
"Version of the API: 0.11.6853\n"\
|
386
386
|
"SDK Package Version: {package_version}".\
|
387
387
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
388
388
|
|
lusid/models/__init__.py
CHANGED
@@ -67,6 +67,7 @@ from lusid.models.allocation_set_request import AllocationSetRequest
|
|
67
67
|
from lusid.models.amortisation_event import AmortisationEvent
|
68
68
|
from lusid.models.amortisation_rule import AmortisationRule
|
69
69
|
from lusid.models.amortisation_rule_set import AmortisationRuleSet
|
70
|
+
from lusid.models.amount import Amount
|
70
71
|
from lusid.models.annul_quotes_response import AnnulQuotesResponse
|
71
72
|
from lusid.models.annul_single_structured_data_response import AnnulSingleStructuredDataResponse
|
72
73
|
from lusid.models.annul_structured_data_response import AnnulStructuredDataResponse
|
@@ -80,6 +81,7 @@ from lusid.models.batch_adjust_holdings_response import BatchAdjustHoldingsRespo
|
|
80
81
|
from lusid.models.batch_upsert_instrument_properties_response import BatchUpsertInstrumentPropertiesResponse
|
81
82
|
from lusid.models.batch_upsert_portfolio_access_metadata_request import BatchUpsertPortfolioAccessMetadataRequest
|
82
83
|
from lusid.models.batch_upsert_portfolio_access_metadata_response import BatchUpsertPortfolioAccessMetadataResponse
|
84
|
+
from lusid.models.batch_upsert_portfolio_access_metadata_response_item import BatchUpsertPortfolioAccessMetadataResponseItem
|
83
85
|
from lusid.models.batch_upsert_portfolio_transactions_response import BatchUpsertPortfolioTransactionsResponse
|
84
86
|
from lusid.models.batch_upsert_property_definition_properties_response import BatchUpsertPropertyDefinitionPropertiesResponse
|
85
87
|
from lusid.models.block import Block
|
@@ -102,6 +104,7 @@ from lusid.models.bool_compliance_parameter import BoolComplianceParameter
|
|
102
104
|
from lusid.models.bool_list_compliance_parameter import BoolListComplianceParameter
|
103
105
|
from lusid.models.branch_step import BranchStep
|
104
106
|
from lusid.models.branch_step_request import BranchStepRequest
|
107
|
+
from lusid.models.break_code_source import BreakCodeSource
|
105
108
|
from lusid.models.bucketed_cash_flow_request import BucketedCashFlowRequest
|
106
109
|
from lusid.models.bucketed_cash_flow_response import BucketedCashFlowResponse
|
107
110
|
from lusid.models.bucketing_schedule import BucketingSchedule
|
@@ -135,6 +138,7 @@ from lusid.models.cdx_credit_event import CdxCreditEvent
|
|
135
138
|
from lusid.models.change import Change
|
136
139
|
from lusid.models.change_history import ChangeHistory
|
137
140
|
from lusid.models.change_history_action import ChangeHistoryAction
|
141
|
+
from lusid.models.change_interval_with_order_management_detail import ChangeIntervalWithOrderManagementDetail
|
138
142
|
from lusid.models.change_item import ChangeItem
|
139
143
|
from lusid.models.chart_of_accounts import ChartOfAccounts
|
140
144
|
from lusid.models.chart_of_accounts_properties import ChartOfAccountsProperties
|
@@ -184,7 +188,6 @@ from lusid.models.compliance_template_variation import ComplianceTemplateVariati
|
|
184
188
|
from lusid.models.compliance_template_variation_dto import ComplianceTemplateVariationDto
|
185
189
|
from lusid.models.compliance_template_variation_request import ComplianceTemplateVariationRequest
|
186
190
|
from lusid.models.component_filter import ComponentFilter
|
187
|
-
from lusid.models.component_rule import ComponentRule
|
188
191
|
from lusid.models.component_transaction import ComponentTransaction
|
189
192
|
from lusid.models.composite_breakdown import CompositeBreakdown
|
190
193
|
from lusid.models.composite_breakdown_request import CompositeBreakdownRequest
|
@@ -218,6 +221,7 @@ from lusid.models.create_date_request import CreateDateRequest
|
|
218
221
|
from lusid.models.create_derived_property_definition_request import CreateDerivedPropertyDefinitionRequest
|
219
222
|
from lusid.models.create_derived_transaction_portfolio_request import CreateDerivedTransactionPortfolioRequest
|
220
223
|
from lusid.models.create_group_reconciliation_comparison_ruleset_request import CreateGroupReconciliationComparisonRulesetRequest
|
224
|
+
from lusid.models.create_group_reconciliation_definition_request import CreateGroupReconciliationDefinitionRequest
|
221
225
|
from lusid.models.create_portfolio_details import CreatePortfolioDetails
|
222
226
|
from lusid.models.create_portfolio_group_request import CreatePortfolioGroupRequest
|
223
227
|
from lusid.models.create_property_definition_request import CreatePropertyDefinitionRequest
|
@@ -248,6 +252,7 @@ from lusid.models.custodian_account_request import CustodianAccountRequest
|
|
248
252
|
from lusid.models.custodian_accounts_upsert_response import CustodianAccountsUpsertResponse
|
249
253
|
from lusid.models.custom_entity_definition import CustomEntityDefinition
|
250
254
|
from lusid.models.custom_entity_definition_request import CustomEntityDefinitionRequest
|
255
|
+
from lusid.models.custom_entity_entity import CustomEntityEntity
|
251
256
|
from lusid.models.custom_entity_field import CustomEntityField
|
252
257
|
from lusid.models.custom_entity_field_definition import CustomEntityFieldDefinition
|
253
258
|
from lusid.models.custom_entity_id import CustomEntityId
|
@@ -304,7 +309,6 @@ from lusid.models.economic_dependency_with_quote import EconomicDependencyWithQu
|
|
304
309
|
from lusid.models.election_specification import ElectionSpecification
|
305
310
|
from lusid.models.eligibility_calculation import EligibilityCalculation
|
306
311
|
from lusid.models.empty_model_options import EmptyModelOptions
|
307
|
-
from lusid.models.entity_change_item import EntityChangeItem
|
308
312
|
from lusid.models.entity_identifier import EntityIdentifier
|
309
313
|
from lusid.models.equity import Equity
|
310
314
|
from lusid.models.equity_all_of_identifiers import EquityAllOfIdentifiers
|
@@ -360,6 +364,7 @@ from lusid.models.fund_configuration import FundConfiguration
|
|
360
364
|
from lusid.models.fund_configuration_properties import FundConfigurationProperties
|
361
365
|
from lusid.models.fund_configuration_request import FundConfigurationRequest
|
362
366
|
from lusid.models.fund_details import FundDetails
|
367
|
+
from lusid.models.fund_id_list import FundIdList
|
363
368
|
from lusid.models.fund_pnl_breakdown import FundPnlBreakdown
|
364
369
|
from lusid.models.fund_previous_nav import FundPreviousNAV
|
365
370
|
from lusid.models.fund_properties import FundProperties
|
@@ -422,6 +427,11 @@ from lusid.models.group_reconciliation_comparison_rule_tolerance import GroupRec
|
|
422
427
|
from lusid.models.group_reconciliation_comparison_ruleset import GroupReconciliationComparisonRuleset
|
423
428
|
from lusid.models.group_reconciliation_core_attribute_rule import GroupReconciliationCoreAttributeRule
|
424
429
|
from lusid.models.group_reconciliation_core_comparison_rule_operand import GroupReconciliationCoreComparisonRuleOperand
|
430
|
+
from lusid.models.group_reconciliation_definition import GroupReconciliationDefinition
|
431
|
+
from lusid.models.group_reconciliation_definition_comparison_ruleset_ids import GroupReconciliationDefinitionComparisonRulesetIds
|
432
|
+
from lusid.models.group_reconciliation_definition_currencies import GroupReconciliationDefinitionCurrencies
|
433
|
+
from lusid.models.group_reconciliation_definition_portfolio_entity_ids import GroupReconciliationDefinitionPortfolioEntityIds
|
434
|
+
from lusid.models.group_reconciliation_definition_recipe_ids import GroupReconciliationDefinitionRecipeIds
|
425
435
|
from lusid.models.grouped_result_of_address_key import GroupedResultOfAddressKey
|
426
436
|
from lusid.models.holding_adjustment import HoldingAdjustment
|
427
437
|
from lusid.models.holding_adjustment_with_date import HoldingAdjustmentWithDate
|
@@ -519,8 +529,6 @@ from lusid.models.market_quote import MarketQuote
|
|
519
529
|
from lusid.models.match_criterion import MatchCriterion
|
520
530
|
from lusid.models.maturity_event import MaturityEvent
|
521
531
|
from lusid.models.merger_event import MergerEvent
|
522
|
-
from lusid.models.metadata_key_value import MetadataKeyValue
|
523
|
-
from lusid.models.metadata_key_value_response import MetadataKeyValueResponse
|
524
532
|
from lusid.models.metric_value import MetricValue
|
525
533
|
from lusid.models.model_options import ModelOptions
|
526
534
|
from lusid.models.model_options_type import ModelOptionsType
|
@@ -608,6 +616,8 @@ from lusid.models.paged_resource_list_of_fee_type import PagedResourceListOfFeeT
|
|
608
616
|
from lusid.models.paged_resource_list_of_fund import PagedResourceListOfFund
|
609
617
|
from lusid.models.paged_resource_list_of_fund_configuration import PagedResourceListOfFundConfiguration
|
610
618
|
from lusid.models.paged_resource_list_of_general_ledger_profile_response import PagedResourceListOfGeneralLedgerProfileResponse
|
619
|
+
from lusid.models.paged_resource_list_of_group_reconciliation_comparison_ruleset import PagedResourceListOfGroupReconciliationComparisonRuleset
|
620
|
+
from lusid.models.paged_resource_list_of_group_reconciliation_definition import PagedResourceListOfGroupReconciliationDefinition
|
611
621
|
from lusid.models.paged_resource_list_of_instrument import PagedResourceListOfInstrument
|
612
622
|
from lusid.models.paged_resource_list_of_instrument_event_holder import PagedResourceListOfInstrumentEventHolder
|
613
623
|
from lusid.models.paged_resource_list_of_instrument_event_instruction import PagedResourceListOfInstrumentEventInstruction
|
@@ -782,6 +792,7 @@ from lusid.models.resource_list_of_block_and_orders import ResourceListOfBlockAn
|
|
782
792
|
from lusid.models.resource_list_of_calendar_date import ResourceListOfCalendarDate
|
783
793
|
from lusid.models.resource_list_of_change import ResourceListOfChange
|
784
794
|
from lusid.models.resource_list_of_change_history import ResourceListOfChangeHistory
|
795
|
+
from lusid.models.resource_list_of_change_interval_with_order_management_detail import ResourceListOfChangeIntervalWithOrderManagementDetail
|
785
796
|
from lusid.models.resource_list_of_compliance_breached_order_info import ResourceListOfComplianceBreachedOrderInfo
|
786
797
|
from lusid.models.resource_list_of_compliance_rule import ResourceListOfComplianceRule
|
787
798
|
from lusid.models.resource_list_of_compliance_rule_result import ResourceListOfComplianceRuleResult
|
@@ -789,7 +800,6 @@ from lusid.models.resource_list_of_compliance_run_info import ResourceListOfComp
|
|
789
800
|
from lusid.models.resource_list_of_constituents_adjustment_header import ResourceListOfConstituentsAdjustmentHeader
|
790
801
|
from lusid.models.resource_list_of_corporate_action import ResourceListOfCorporateAction
|
791
802
|
from lusid.models.resource_list_of_data_type import ResourceListOfDataType
|
792
|
-
from lusid.models.resource_list_of_entity_change_item import ResourceListOfEntityChangeItem
|
793
803
|
from lusid.models.resource_list_of_execution import ResourceListOfExecution
|
794
804
|
from lusid.models.resource_list_of_fee_rule import ResourceListOfFeeRule
|
795
805
|
from lusid.models.resource_list_of_get_cds_flow_conventions_response import ResourceListOfGetCdsFlowConventionsResponse
|
@@ -873,6 +883,7 @@ from lusid.models.set_person_properties_request import SetPersonPropertiesReques
|
|
873
883
|
from lusid.models.set_share_class_instruments_request import SetShareClassInstrumentsRequest
|
874
884
|
from lusid.models.set_transaction_configuration_alias import SetTransactionConfigurationAlias
|
875
885
|
from lusid.models.set_transaction_configuration_source_request import SetTransactionConfigurationSourceRequest
|
886
|
+
from lusid.models.settlement_cycle import SettlementCycle
|
876
887
|
from lusid.models.settlement_schedule import SettlementSchedule
|
877
888
|
from lusid.models.share_class_amount import ShareClassAmount
|
878
889
|
from lusid.models.share_class_breakdown import ShareClassBreakdown
|
@@ -932,6 +943,7 @@ from lusid.models.transaction_configuration_movement_data import TransactionConf
|
|
932
943
|
from lusid.models.transaction_configuration_movement_data_request import TransactionConfigurationMovementDataRequest
|
933
944
|
from lusid.models.transaction_configuration_type_alias import TransactionConfigurationTypeAlias
|
934
945
|
from lusid.models.transaction_currency_and_amount import TransactionCurrencyAndAmount
|
946
|
+
from lusid.models.transaction_date_windows import TransactionDateWindows
|
935
947
|
from lusid.models.transaction_diagnostics import TransactionDiagnostics
|
936
948
|
from lusid.models.transaction_field_map import TransactionFieldMap
|
937
949
|
from lusid.models.transaction_price import TransactionPrice
|
@@ -989,6 +1001,8 @@ from lusid.models.update_cut_label_definition_request import UpdateCutLabelDefin
|
|
989
1001
|
from lusid.models.update_data_type_request import UpdateDataTypeRequest
|
990
1002
|
from lusid.models.update_derived_property_definition_request import UpdateDerivedPropertyDefinitionRequest
|
991
1003
|
from lusid.models.update_fee_type_request import UpdateFeeTypeRequest
|
1004
|
+
from lusid.models.update_group_reconciliation_comparison_ruleset_request import UpdateGroupReconciliationComparisonRulesetRequest
|
1005
|
+
from lusid.models.update_group_reconciliation_definition_request import UpdateGroupReconciliationDefinitionRequest
|
992
1006
|
from lusid.models.update_instrument_identifier_request import UpdateInstrumentIdentifierRequest
|
993
1007
|
from lusid.models.update_orders_response import UpdateOrdersResponse
|
994
1008
|
from lusid.models.update_placements_response import UpdatePlacementsResponse
|
@@ -1033,6 +1047,8 @@ from lusid.models.upsert_quote_request import UpsertQuoteRequest
|
|
1033
1047
|
from lusid.models.upsert_quotes_response import UpsertQuotesResponse
|
1034
1048
|
from lusid.models.upsert_recipe_composer_request import UpsertRecipeComposerRequest
|
1035
1049
|
from lusid.models.upsert_recipe_request import UpsertRecipeRequest
|
1050
|
+
from lusid.models.upsert_reference_portfolio_constituent_properties_request import UpsertReferencePortfolioConstituentPropertiesRequest
|
1051
|
+
from lusid.models.upsert_reference_portfolio_constituent_properties_response import UpsertReferencePortfolioConstituentPropertiesResponse
|
1036
1052
|
from lusid.models.upsert_reference_portfolio_constituents_request import UpsertReferencePortfolioConstituentsRequest
|
1037
1053
|
from lusid.models.upsert_reference_portfolio_constituents_response import UpsertReferencePortfolioConstituentsResponse
|
1038
1054
|
from lusid.models.upsert_result_values_data_request import UpsertResultValuesDataRequest
|
@@ -1137,6 +1153,7 @@ __all__ = [
|
|
1137
1153
|
"AmortisationEvent",
|
1138
1154
|
"AmortisationRule",
|
1139
1155
|
"AmortisationRuleSet",
|
1156
|
+
"Amount",
|
1140
1157
|
"AnnulQuotesResponse",
|
1141
1158
|
"AnnulSingleStructuredDataResponse",
|
1142
1159
|
"AnnulStructuredDataResponse",
|
@@ -1150,6 +1167,7 @@ __all__ = [
|
|
1150
1167
|
"BatchUpsertInstrumentPropertiesResponse",
|
1151
1168
|
"BatchUpsertPortfolioAccessMetadataRequest",
|
1152
1169
|
"BatchUpsertPortfolioAccessMetadataResponse",
|
1170
|
+
"BatchUpsertPortfolioAccessMetadataResponseItem",
|
1153
1171
|
"BatchUpsertPortfolioTransactionsResponse",
|
1154
1172
|
"BatchUpsertPropertyDefinitionPropertiesResponse",
|
1155
1173
|
"Block",
|
@@ -1172,6 +1190,7 @@ __all__ = [
|
|
1172
1190
|
"BoolListComplianceParameter",
|
1173
1191
|
"BranchStep",
|
1174
1192
|
"BranchStepRequest",
|
1193
|
+
"BreakCodeSource",
|
1175
1194
|
"BucketedCashFlowRequest",
|
1176
1195
|
"BucketedCashFlowResponse",
|
1177
1196
|
"BucketingSchedule",
|
@@ -1205,6 +1224,7 @@ __all__ = [
|
|
1205
1224
|
"Change",
|
1206
1225
|
"ChangeHistory",
|
1207
1226
|
"ChangeHistoryAction",
|
1227
|
+
"ChangeIntervalWithOrderManagementDetail",
|
1208
1228
|
"ChangeItem",
|
1209
1229
|
"ChartOfAccounts",
|
1210
1230
|
"ChartOfAccountsProperties",
|
@@ -1254,7 +1274,6 @@ __all__ = [
|
|
1254
1274
|
"ComplianceTemplateVariationDto",
|
1255
1275
|
"ComplianceTemplateVariationRequest",
|
1256
1276
|
"ComponentFilter",
|
1257
|
-
"ComponentRule",
|
1258
1277
|
"ComponentTransaction",
|
1259
1278
|
"CompositeBreakdown",
|
1260
1279
|
"CompositeBreakdownRequest",
|
@@ -1288,6 +1307,7 @@ __all__ = [
|
|
1288
1307
|
"CreateDerivedPropertyDefinitionRequest",
|
1289
1308
|
"CreateDerivedTransactionPortfolioRequest",
|
1290
1309
|
"CreateGroupReconciliationComparisonRulesetRequest",
|
1310
|
+
"CreateGroupReconciliationDefinitionRequest",
|
1291
1311
|
"CreatePortfolioDetails",
|
1292
1312
|
"CreatePortfolioGroupRequest",
|
1293
1313
|
"CreatePropertyDefinitionRequest",
|
@@ -1318,6 +1338,7 @@ __all__ = [
|
|
1318
1338
|
"CustodianAccountsUpsertResponse",
|
1319
1339
|
"CustomEntityDefinition",
|
1320
1340
|
"CustomEntityDefinitionRequest",
|
1341
|
+
"CustomEntityEntity",
|
1321
1342
|
"CustomEntityField",
|
1322
1343
|
"CustomEntityFieldDefinition",
|
1323
1344
|
"CustomEntityId",
|
@@ -1374,7 +1395,6 @@ __all__ = [
|
|
1374
1395
|
"ElectionSpecification",
|
1375
1396
|
"EligibilityCalculation",
|
1376
1397
|
"EmptyModelOptions",
|
1377
|
-
"EntityChangeItem",
|
1378
1398
|
"EntityIdentifier",
|
1379
1399
|
"Equity",
|
1380
1400
|
"EquityAllOfIdentifiers",
|
@@ -1430,6 +1450,7 @@ __all__ = [
|
|
1430
1450
|
"FundConfigurationProperties",
|
1431
1451
|
"FundConfigurationRequest",
|
1432
1452
|
"FundDetails",
|
1453
|
+
"FundIdList",
|
1433
1454
|
"FundPnlBreakdown",
|
1434
1455
|
"FundPreviousNAV",
|
1435
1456
|
"FundProperties",
|
@@ -1492,6 +1513,11 @@ __all__ = [
|
|
1492
1513
|
"GroupReconciliationComparisonRuleset",
|
1493
1514
|
"GroupReconciliationCoreAttributeRule",
|
1494
1515
|
"GroupReconciliationCoreComparisonRuleOperand",
|
1516
|
+
"GroupReconciliationDefinition",
|
1517
|
+
"GroupReconciliationDefinitionComparisonRulesetIds",
|
1518
|
+
"GroupReconciliationDefinitionCurrencies",
|
1519
|
+
"GroupReconciliationDefinitionPortfolioEntityIds",
|
1520
|
+
"GroupReconciliationDefinitionRecipeIds",
|
1495
1521
|
"GroupedResultOfAddressKey",
|
1496
1522
|
"HoldingAdjustment",
|
1497
1523
|
"HoldingAdjustmentWithDate",
|
@@ -1589,8 +1615,6 @@ __all__ = [
|
|
1589
1615
|
"MatchCriterion",
|
1590
1616
|
"MaturityEvent",
|
1591
1617
|
"MergerEvent",
|
1592
|
-
"MetadataKeyValue",
|
1593
|
-
"MetadataKeyValueResponse",
|
1594
1618
|
"MetricValue",
|
1595
1619
|
"ModelOptions",
|
1596
1620
|
"ModelOptionsType",
|
@@ -1678,6 +1702,8 @@ __all__ = [
|
|
1678
1702
|
"PagedResourceListOfFund",
|
1679
1703
|
"PagedResourceListOfFundConfiguration",
|
1680
1704
|
"PagedResourceListOfGeneralLedgerProfileResponse",
|
1705
|
+
"PagedResourceListOfGroupReconciliationComparisonRuleset",
|
1706
|
+
"PagedResourceListOfGroupReconciliationDefinition",
|
1681
1707
|
"PagedResourceListOfInstrument",
|
1682
1708
|
"PagedResourceListOfInstrumentEventHolder",
|
1683
1709
|
"PagedResourceListOfInstrumentEventInstruction",
|
@@ -1852,6 +1878,7 @@ __all__ = [
|
|
1852
1878
|
"ResourceListOfCalendarDate",
|
1853
1879
|
"ResourceListOfChange",
|
1854
1880
|
"ResourceListOfChangeHistory",
|
1881
|
+
"ResourceListOfChangeIntervalWithOrderManagementDetail",
|
1855
1882
|
"ResourceListOfComplianceBreachedOrderInfo",
|
1856
1883
|
"ResourceListOfComplianceRule",
|
1857
1884
|
"ResourceListOfComplianceRuleResult",
|
@@ -1859,7 +1886,6 @@ __all__ = [
|
|
1859
1886
|
"ResourceListOfConstituentsAdjustmentHeader",
|
1860
1887
|
"ResourceListOfCorporateAction",
|
1861
1888
|
"ResourceListOfDataType",
|
1862
|
-
"ResourceListOfEntityChangeItem",
|
1863
1889
|
"ResourceListOfExecution",
|
1864
1890
|
"ResourceListOfFeeRule",
|
1865
1891
|
"ResourceListOfGetCdsFlowConventionsResponse",
|
@@ -1943,6 +1969,7 @@ __all__ = [
|
|
1943
1969
|
"SetShareClassInstrumentsRequest",
|
1944
1970
|
"SetTransactionConfigurationAlias",
|
1945
1971
|
"SetTransactionConfigurationSourceRequest",
|
1972
|
+
"SettlementCycle",
|
1946
1973
|
"SettlementSchedule",
|
1947
1974
|
"ShareClassAmount",
|
1948
1975
|
"ShareClassBreakdown",
|
@@ -2002,6 +2029,7 @@ __all__ = [
|
|
2002
2029
|
"TransactionConfigurationMovementDataRequest",
|
2003
2030
|
"TransactionConfigurationTypeAlias",
|
2004
2031
|
"TransactionCurrencyAndAmount",
|
2032
|
+
"TransactionDateWindows",
|
2005
2033
|
"TransactionDiagnostics",
|
2006
2034
|
"TransactionFieldMap",
|
2007
2035
|
"TransactionPrice",
|
@@ -2059,6 +2087,8 @@ __all__ = [
|
|
2059
2087
|
"UpdateDataTypeRequest",
|
2060
2088
|
"UpdateDerivedPropertyDefinitionRequest",
|
2061
2089
|
"UpdateFeeTypeRequest",
|
2090
|
+
"UpdateGroupReconciliationComparisonRulesetRequest",
|
2091
|
+
"UpdateGroupReconciliationDefinitionRequest",
|
2062
2092
|
"UpdateInstrumentIdentifierRequest",
|
2063
2093
|
"UpdateOrdersResponse",
|
2064
2094
|
"UpdatePlacementsResponse",
|
@@ -2103,6 +2133,8 @@ __all__ = [
|
|
2103
2133
|
"UpsertQuotesResponse",
|
2104
2134
|
"UpsertRecipeComposerRequest",
|
2105
2135
|
"UpsertRecipeRequest",
|
2136
|
+
"UpsertReferencePortfolioConstituentPropertiesRequest",
|
2137
|
+
"UpsertReferencePortfolioConstituentPropertiesResponse",
|
2106
2138
|
"UpsertReferencePortfolioConstituentsRequest",
|
2107
2139
|
"UpsertReferencePortfolioConstituentsResponse",
|
2108
2140
|
"UpsertResultValuesDataRequest",
|
@@ -23,7 +23,7 @@ from pydantic.v1 import BaseModel, Field, constr
|
|
23
23
|
|
24
24
|
class AccessMetadataValue(BaseModel):
|
25
25
|
"""
|
26
|
-
An access control value. Provider should only be used if you are a service
|
26
|
+
An access control value. Provider should only be used if you are a service provider licensing data. In that case the provider value must match your domain. # noqa: E501
|
27
27
|
"""
|
28
28
|
value: constr(strict=True, max_length=2048, min_length=0) = Field(...)
|
29
29
|
provider: Optional[constr(strict=True, max_length=50, min_length=0)] = None
|
lusid/models/address_key_list.py
CHANGED
@@ -27,15 +27,15 @@ class AddressKeyList(ReferenceList):
|
|
27
27
|
AddressKeyList
|
28
28
|
"""
|
29
29
|
values: conlist(StrictStr, max_items=100, min_items=0) = Field(...)
|
30
|
-
reference_list_type: StrictStr = Field(..., alias="referenceListType", description="The reference list values. The available values are: PortfolioGroupIdList, PortfolioIdList, AddressKeyList, StringList, InstrumentList, DecimalList, PropertyList")
|
30
|
+
reference_list_type: StrictStr = Field(..., alias="referenceListType", description="The reference list values. The available values are: PortfolioGroupIdList, PortfolioIdList, AddressKeyList, StringList, InstrumentList, DecimalList, PropertyList, FundIdList")
|
31
31
|
additional_properties: Dict[str, Any] = {}
|
32
32
|
__properties = ["referenceListType", "values"]
|
33
33
|
|
34
34
|
@validator('reference_list_type')
|
35
35
|
def reference_list_type_validate_enum(cls, value):
|
36
36
|
"""Validates the enum"""
|
37
|
-
if value not in ('PortfolioGroupIdList', 'PortfolioIdList', 'AddressKeyList', 'StringList', 'InstrumentList', 'DecimalList', 'PropertyList'):
|
38
|
-
raise ValueError("must be one of enum values ('PortfolioGroupIdList', 'PortfolioIdList', 'AddressKeyList', 'StringList', 'InstrumentList', 'DecimalList', 'PropertyList')")
|
37
|
+
if value not in ('PortfolioGroupIdList', 'PortfolioIdList', 'AddressKeyList', 'StringList', 'InstrumentList', 'DecimalList', 'PropertyList', 'FundIdList'):
|
38
|
+
raise ValueError("must be one of enum values ('PortfolioGroupIdList', 'PortfolioIdList', 'AddressKeyList', 'StringList', 'InstrumentList', 'DecimalList', 'PropertyList', 'FundIdList')")
|
39
39
|
return value
|
40
40
|
|
41
41
|
class Config:
|
lusid/models/amount.py
ADDED
@@ -0,0 +1,69 @@
|
|
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
|
+
from __future__ import annotations
|
16
|
+
import pprint
|
17
|
+
import re # noqa: F401
|
18
|
+
import json
|
19
|
+
|
20
|
+
|
21
|
+
from typing import Any, Dict, Optional, Union
|
22
|
+
from pydantic.v1 import BaseModel, StrictFloat, StrictInt
|
23
|
+
|
24
|
+
class Amount(BaseModel):
|
25
|
+
"""
|
26
|
+
Amount
|
27
|
+
"""
|
28
|
+
value: Optional[Union[StrictFloat, StrictInt]] = None
|
29
|
+
__properties = ["value"]
|
30
|
+
|
31
|
+
class Config:
|
32
|
+
"""Pydantic configuration"""
|
33
|
+
allow_population_by_field_name = True
|
34
|
+
validate_assignment = True
|
35
|
+
|
36
|
+
def to_str(self) -> str:
|
37
|
+
"""Returns the string representation of the model using alias"""
|
38
|
+
return pprint.pformat(self.dict(by_alias=True))
|
39
|
+
|
40
|
+
def to_json(self) -> str:
|
41
|
+
"""Returns the JSON representation of the model using alias"""
|
42
|
+
return json.dumps(self.to_dict())
|
43
|
+
|
44
|
+
@classmethod
|
45
|
+
def from_json(cls, json_str: str) -> Amount:
|
46
|
+
"""Create an instance of Amount from a JSON string"""
|
47
|
+
return cls.from_dict(json.loads(json_str))
|
48
|
+
|
49
|
+
def to_dict(self):
|
50
|
+
"""Returns the dictionary representation of the model using alias"""
|
51
|
+
_dict = self.dict(by_alias=True,
|
52
|
+
exclude={
|
53
|
+
},
|
54
|
+
exclude_none=True)
|
55
|
+
return _dict
|
56
|
+
|
57
|
+
@classmethod
|
58
|
+
def from_dict(cls, obj: dict) -> Amount:
|
59
|
+
"""Create an instance of Amount from a dict"""
|
60
|
+
if obj is None:
|
61
|
+
return None
|
62
|
+
|
63
|
+
if not isinstance(obj, dict):
|
64
|
+
return Amount.parse_obj(obj)
|
65
|
+
|
66
|
+
_obj = Amount.parse_obj({
|
67
|
+
"value": obj.get("value")
|
68
|
+
})
|
69
|
+
return _obj
|