lusid-sdk 2.1.390__py3-none-any.whl → 2.1.462__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 +98 -8
- lusid/api/__init__.py +2 -2
- lusid/api/abor_api.py +126 -133
- lusid/api/abor_configuration_api.py +46 -45
- lusid/api/address_key_definition_api.py +28 -27
- lusid/api/aggregation_api.py +37 -36
- lusid/api/allocations_api.py +39 -38
- lusid/api/amortisation_rule_sets_api.py +55 -54
- lusid/api/application_metadata_api.py +28 -27
- lusid/api/blocks_api.py +37 -36
- lusid/api/calendars_api.py +469 -111
- lusid/api/chart_of_accounts_api.py +454 -279
- lusid/api/complex_market_data_api.py +37 -36
- lusid/api/compliance_api.py +136 -135
- lusid/api/configuration_recipe_api.py +100 -99
- lusid/api/conventions_api.py +109 -108
- lusid/api/corporate_action_sources_api.py +82 -81
- lusid/api/counterparties_api.py +73 -72
- lusid/api/custom_entities_api.py +102 -101
- lusid/api/custom_entity_definitions_api.py +37 -36
- lusid/api/custom_entity_types_api.py +37 -36
- lusid/api/cut_label_definitions_api.py +46 -45
- lusid/api/data_types_api.py +248 -72
- lusid/api/derived_transaction_portfolios_api.py +19 -18
- lusid/api/entities_api.py +431 -46
- lusid/api/executions_api.py +37 -36
- lusid/api/fee_types_api.py +55 -54
- lusid/api/{fund_configurations_api.py → fund_configuration_api.py} +222 -46
- lusid/api/funds_api.py +337 -162
- lusid/api/group_reconciliations_api.py +1437 -45
- lusid/api/instrument_event_types_api.py +64 -63
- lusid/api/instrument_events_api.py +46 -45
- lusid/api/instruments_api.py +187 -186
- lusid/api/legacy_compliance_api.py +73 -72
- lusid/api/legal_entities_api.py +167 -166
- lusid/api/order_graph_api.py +32 -31
- lusid/api/order_instructions_api.py +37 -36
- lusid/api/order_management_api.py +276 -102
- lusid/api/orders_api.py +37 -36
- lusid/api/packages_api.py +37 -36
- lusid/api/participations_api.py +37 -36
- lusid/api/persons_api.py +167 -166
- lusid/api/placements_api.py +37 -36
- lusid/api/portfolio_groups_api.py +235 -234
- lusid/api/portfolios_api.py +449 -272
- lusid/api/property_definitions_api.py +100 -99
- lusid/api/queryable_keys_api.py +10 -9
- lusid/api/quotes_api.py +82 -81
- lusid/api/reconciliations_api.py +136 -135
- lusid/api/reference_lists_api.py +39 -38
- lusid/api/reference_portfolio_api.py +213 -36
- lusid/api/relation_definitions_api.py +28 -27
- lusid/api/relations_api.py +19 -18
- lusid/api/relationship_definitions_api.py +46 -45
- lusid/api/relationships_api.py +19 -18
- lusid/api/schemas_api.py +37 -36
- lusid/api/scopes_api.py +19 -18
- lusid/api/scripted_translation_api.py +73 -72
- lusid/api/search_api.py +37 -36
- lusid/api/sequences_api.py +37 -36
- lusid/api/staged_modifications_api.py +37 -36
- lusid/api/staging_rule_set_api.py +46 -45
- lusid/api/structured_result_data_api.py +82 -81
- lusid/api/system_configuration_api.py +64 -63
- lusid/api/tax_rule_sets_api.py +46 -45
- lusid/api/transaction_configuration_api.py +100 -99
- lusid/api/transaction_fees_api.py +46 -45
- lusid/api/transaction_portfolios_api.py +569 -326
- lusid/api/translation_api.py +19 -18
- lusid/api/workspace_api.py +181 -180
- lusid/api_client.py +26 -17
- lusid/configuration.py +87 -2
- lusid/extensions/api_client.py +25 -17
- lusid/extensions/api_client_factory.py +14 -5
- lusid/extensions/api_configuration.py +50 -1
- lusid/extensions/configuration_loaders.py +39 -11
- lusid/extensions/configuration_options.py +67 -0
- lusid/extensions/rest.py +78 -26
- lusid/extensions/retry.py +109 -37
- lusid/models/__init__.py +96 -6
- lusid/models/access_metadata_value.py +1 -1
- lusid/models/accounting_method.py +7 -0
- lusid/models/accumulation_event.py +3 -3
- lusid/models/address_key_list.py +3 -3
- lusid/models/amortisation_event.py +3 -3
- lusid/models/amount.py +69 -0
- lusid/models/basket.py +3 -3
- lusid/models/batch_upsert_dates_for_calendar_response.py +146 -0
- lusid/models/batch_upsert_portfolio_access_metadata_request.py +92 -0
- lusid/models/batch_upsert_portfolio_access_metadata_response.py +122 -0
- lusid/models/batch_upsert_portfolio_access_metadata_response_item.py +92 -0
- lusid/models/bond.py +3 -3
- lusid/models/bond_coupon_event.py +3 -3
- lusid/models/bond_default_event.py +3 -3
- lusid/models/bond_principal_event.py +3 -3
- lusid/models/bonus_issue_event.py +166 -0
- lusid/models/{component_rule.py → break_code_source.py} +17 -21
- lusid/models/cancel_order_and_move_remaining_result.py +84 -0
- lusid/models/cancel_orders_and_move_remaining_request.py +83 -0
- lusid/models/cancel_orders_and_move_remaining_response.py +153 -0
- lusid/models/cap_floor.py +3 -3
- lusid/models/capital_distribution_event.py +3 -3
- lusid/models/cash.py +3 -3
- lusid/models/cash_dividend_event.py +3 -3
- lusid/models/cash_flow_event.py +3 -3
- lusid/models/cash_perpetual.py +3 -3
- lusid/models/cds_credit_event.py +105 -0
- lusid/models/cds_index.py +3 -3
- lusid/models/cdx_credit_event.py +114 -0
- lusid/models/change_interval.py +123 -0
- lusid/models/change_interval_with_order_management_detail.py +137 -0
- lusid/models/close_event.py +3 -3
- lusid/models/complex_bond.py +3 -3
- lusid/models/contract_for_difference.py +3 -3
- lusid/models/create_derived_transaction_portfolio_request.py +3 -3
- lusid/models/create_group_reconciliation_definition_request.py +113 -0
- lusid/models/create_transaction_portfolio_request.py +3 -3
- lusid/models/credit_default_swap.py +3 -3
- lusid/models/credit_premium_cash_flow_event.py +102 -0
- lusid/models/custom_entity_entity.py +146 -0
- lusid/models/custom_entity_response.py +7 -1
- lusid/models/decimal_list.py +3 -3
- lusid/models/diary_entry_request.py +10 -1
- lusid/models/dividend_option_event.py +3 -3
- lusid/models/dividend_reinvestment_event.py +3 -3
- lusid/models/effective_range.py +71 -0
- 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/exercise_event.py +3 -3
- lusid/models/exotic_instrument.py +3 -3
- lusid/models/expiry_event.py +3 -3
- lusid/models/fee.py +8 -8
- lusid/models/fee_request.py +8 -8
- lusid/models/fee_type.py +4 -4
- lusid/models/fee_type_request.py +3 -3
- lusid/models/fixed_leg.py +3 -3
- lusid/models/fixed_schedule.py +3 -3
- lusid/models/flexible_loan.py +3 -3
- lusid/models/float_schedule.py +4 -4
- lusid/models/floating_leg.py +3 -3
- lusid/models/flow_conventions.py +7 -1
- lusid/models/forward_rate_agreement.py +3 -3
- 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/fund_share_class.py +23 -8
- lusid/models/funding_leg.py +3 -3
- lusid/models/future.py +3 -3
- lusid/models/future_expiry_event.py +3 -3
- lusid/models/fx_forward.py +3 -3
- lusid/models/fx_forward_settlement_event.py +13 -5
- lusid/models/fx_option.py +3 -3
- lusid/models/fx_swap.py +3 -3
- 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/holding_contributor.py +11 -4
- lusid/models/holding_ids_request.py +69 -0
- lusid/models/holding_pricing_info.py +110 -0
- lusid/models/inflation_leg.py +3 -3
- lusid/models/inflation_linked_bond.py +3 -3
- lusid/models/inflation_swap.py +3 -3
- lusid/models/informational_error_event.py +3 -3
- lusid/models/informational_event.py +3 -3
- lusid/models/instrument.py +7 -1
- lusid/models/instrument_definition.py +8 -2
- lusid/models/instrument_event.py +15 -5
- lusid/models/instrument_event_holder.py +9 -1
- lusid/models/instrument_event_type.py +10 -0
- lusid/models/instrument_leg.py +3 -3
- lusid/models/instrument_list.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/lapse_election.py +73 -0
- lusid/models/loan_facility.py +97 -0
- lusid/models/lusid_instrument.py +7 -5
- lusid/models/market_data_key_rule.py +5 -3
- lusid/models/market_data_specific_rule.py +5 -3
- lusid/models/mastered_instrument.py +139 -0
- lusid/models/maturity_event.py +3 -3
- lusid/models/mbs_coupon_event.py +97 -0
- lusid/models/mbs_interest_deferral_event.py +97 -0
- lusid/models/mbs_interest_shortfall_event.py +97 -0
- lusid/models/mbs_principal_event.py +97 -0
- lusid/models/mbs_principal_write_off_event.py +97 -0
- lusid/models/merger_event.py +22 -22
- lusid/models/open_event.py +3 -3
- 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.py +3 -3
- lusid/models/portfolio_details.py +3 -3
- lusid/models/portfolio_group_id_list.py +3 -3
- lusid/models/portfolio_id_list.py +3 -3
- lusid/models/portfolio_without_href.py +3 -3
- lusid/models/pricing_context.py +8 -2
- lusid/models/property_list.py +3 -3
- lusid/models/raw_vendor_event.py +3 -3
- lusid/models/reference_instrument.py +3 -3
- lusid/models/reference_list.py +6 -5
- lusid/models/reference_list_type.py +1 -0
- lusid/models/repo.py +3 -3
- lusid/models/reset_event.py +3 -3
- lusid/models/{resource_list_of_entity_change_item.py → resource_list_of_change_interval.py} +11 -11
- lusid/models/resource_list_of_change_interval_with_order_management_detail.py +113 -0
- lusid/models/reverse_stock_split_event.py +21 -7
- lusid/models/scrip_dividend_event.py +3 -3
- lusid/models/settlement_cycle.py +79 -0
- lusid/models/share_class_dealing_breakdown.py +3 -2
- lusid/models/share_class_details.py +18 -1
- lusid/models/simple_cash_flow_loan.py +3 -3
- lusid/models/simple_instrument.py +3 -3
- lusid/models/simple_rounding_convention.py +76 -0
- lusid/models/specific_holding_pricing_info.py +75 -0
- lusid/models/spin_off_event.py +3 -3
- lusid/models/staged_modification.py +8 -1
- lusid/models/staged_modification_effective_range.py +2 -2
- lusid/models/stock_dividend_event.py +20 -6
- lusid/models/stock_split_event.py +3 -3
- lusid/models/string_list.py +3 -3
- lusid/models/swap_cash_flow_event.py +3 -3
- lusid/models/swap_principal_event.py +3 -3
- lusid/models/tender_event.py +172 -0
- lusid/models/term_deposit.py +3 -3
- lusid/models/total_return_swap.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/transition_event.py +3 -3
- lusid/models/trigger_event.py +3 -3
- lusid/models/update_fee_type_request.py +4 -4
- lusid/models/update_group_reconciliation_comparison_ruleset_request.py +91 -0
- lusid/models/update_group_reconciliation_definition_request.py +107 -0
- lusid/models/update_reference_data_request.py +87 -0
- lusid/models/upsert_custom_entities_response.py +20 -1
- lusid/models/upsert_reference_portfolio_constituent_properties_request.py +84 -0
- lusid/models/upsert_reference_portfolio_constituent_properties_response.py +115 -0
- lusid/models/valuation_point_data_query_parameters.py +3 -3
- lusid/models/valuation_point_data_response.py +8 -13
- lusid/rest.py +70 -20
- {lusid_sdk-2.1.390.dist-info → lusid_sdk-2.1.462.dist-info}/METADATA +90 -25
- {lusid_sdk-2.1.390.dist-info → lusid_sdk-2.1.462.dist-info}/RECORD +251 -205
- lusid/models/entity_change_item.py +0 -121
- {lusid_sdk-2.1.390.dist-info → lusid_sdk-2.1.462.dist-info}/WHEEL +0 -0
@@ -0,0 +1,107 @@
|
|
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
|
22
|
+
from pydantic.v1 import BaseModel, Field, constr
|
23
|
+
from lusid.models.break_code_source import BreakCodeSource
|
24
|
+
from lusid.models.group_reconciliation_definition_comparison_ruleset_ids import GroupReconciliationDefinitionComparisonRulesetIds
|
25
|
+
from lusid.models.group_reconciliation_definition_currencies import GroupReconciliationDefinitionCurrencies
|
26
|
+
from lusid.models.group_reconciliation_definition_portfolio_entity_ids import GroupReconciliationDefinitionPortfolioEntityIds
|
27
|
+
from lusid.models.group_reconciliation_definition_recipe_ids import GroupReconciliationDefinitionRecipeIds
|
28
|
+
from lusid.models.transaction_date_windows import TransactionDateWindows
|
29
|
+
|
30
|
+
class UpdateGroupReconciliationDefinitionRequest(BaseModel):
|
31
|
+
"""
|
32
|
+
UpdateGroupReconciliationDefinitionRequest
|
33
|
+
"""
|
34
|
+
display_name: constr(strict=True, min_length=1) = Field(..., alias="displayName", description="The name of the Group Reconciliation Definition")
|
35
|
+
description: constr(strict=True, min_length=1) = Field(..., description="The description of the Group Reconciliation Definition")
|
36
|
+
portfolio_entity_ids: GroupReconciliationDefinitionPortfolioEntityIds = Field(..., alias="portfolioEntityIds")
|
37
|
+
recipe_ids: Optional[GroupReconciliationDefinitionRecipeIds] = Field(None, alias="recipeIds")
|
38
|
+
currencies: Optional[GroupReconciliationDefinitionCurrencies] = None
|
39
|
+
transaction_date_windows: Optional[TransactionDateWindows] = Field(None, alias="transactionDateWindows")
|
40
|
+
comparison_ruleset_ids: Optional[GroupReconciliationDefinitionComparisonRulesetIds] = Field(None, alias="comparisonRulesetIds")
|
41
|
+
break_code_source: BreakCodeSource = Field(..., alias="breakCodeSource")
|
42
|
+
__properties = ["displayName", "description", "portfolioEntityIds", "recipeIds", "currencies", "transactionDateWindows", "comparisonRulesetIds", "breakCodeSource"]
|
43
|
+
|
44
|
+
class Config:
|
45
|
+
"""Pydantic configuration"""
|
46
|
+
allow_population_by_field_name = True
|
47
|
+
validate_assignment = True
|
48
|
+
|
49
|
+
def to_str(self) -> str:
|
50
|
+
"""Returns the string representation of the model using alias"""
|
51
|
+
return pprint.pformat(self.dict(by_alias=True))
|
52
|
+
|
53
|
+
def to_json(self) -> str:
|
54
|
+
"""Returns the JSON representation of the model using alias"""
|
55
|
+
return json.dumps(self.to_dict())
|
56
|
+
|
57
|
+
@classmethod
|
58
|
+
def from_json(cls, json_str: str) -> UpdateGroupReconciliationDefinitionRequest:
|
59
|
+
"""Create an instance of UpdateGroupReconciliationDefinitionRequest from a JSON string"""
|
60
|
+
return cls.from_dict(json.loads(json_str))
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the dictionary representation of the model using alias"""
|
64
|
+
_dict = self.dict(by_alias=True,
|
65
|
+
exclude={
|
66
|
+
},
|
67
|
+
exclude_none=True)
|
68
|
+
# override the default output from pydantic by calling `to_dict()` of portfolio_entity_ids
|
69
|
+
if self.portfolio_entity_ids:
|
70
|
+
_dict['portfolioEntityIds'] = self.portfolio_entity_ids.to_dict()
|
71
|
+
# override the default output from pydantic by calling `to_dict()` of recipe_ids
|
72
|
+
if self.recipe_ids:
|
73
|
+
_dict['recipeIds'] = self.recipe_ids.to_dict()
|
74
|
+
# override the default output from pydantic by calling `to_dict()` of currencies
|
75
|
+
if self.currencies:
|
76
|
+
_dict['currencies'] = self.currencies.to_dict()
|
77
|
+
# override the default output from pydantic by calling `to_dict()` of transaction_date_windows
|
78
|
+
if self.transaction_date_windows:
|
79
|
+
_dict['transactionDateWindows'] = self.transaction_date_windows.to_dict()
|
80
|
+
# override the default output from pydantic by calling `to_dict()` of comparison_ruleset_ids
|
81
|
+
if self.comparison_ruleset_ids:
|
82
|
+
_dict['comparisonRulesetIds'] = self.comparison_ruleset_ids.to_dict()
|
83
|
+
# override the default output from pydantic by calling `to_dict()` of break_code_source
|
84
|
+
if self.break_code_source:
|
85
|
+
_dict['breakCodeSource'] = self.break_code_source.to_dict()
|
86
|
+
return _dict
|
87
|
+
|
88
|
+
@classmethod
|
89
|
+
def from_dict(cls, obj: dict) -> UpdateGroupReconciliationDefinitionRequest:
|
90
|
+
"""Create an instance of UpdateGroupReconciliationDefinitionRequest from a dict"""
|
91
|
+
if obj is None:
|
92
|
+
return None
|
93
|
+
|
94
|
+
if not isinstance(obj, dict):
|
95
|
+
return UpdateGroupReconciliationDefinitionRequest.parse_obj(obj)
|
96
|
+
|
97
|
+
_obj = UpdateGroupReconciliationDefinitionRequest.parse_obj({
|
98
|
+
"display_name": obj.get("displayName"),
|
99
|
+
"description": obj.get("description"),
|
100
|
+
"portfolio_entity_ids": GroupReconciliationDefinitionPortfolioEntityIds.from_dict(obj.get("portfolioEntityIds")) if obj.get("portfolioEntityIds") is not None else None,
|
101
|
+
"recipe_ids": GroupReconciliationDefinitionRecipeIds.from_dict(obj.get("recipeIds")) if obj.get("recipeIds") is not None else None,
|
102
|
+
"currencies": GroupReconciliationDefinitionCurrencies.from_dict(obj.get("currencies")) if obj.get("currencies") is not None else None,
|
103
|
+
"transaction_date_windows": TransactionDateWindows.from_dict(obj.get("transactionDateWindows")) if obj.get("transactionDateWindows") is not None else None,
|
104
|
+
"comparison_ruleset_ids": GroupReconciliationDefinitionComparisonRulesetIds.from_dict(obj.get("comparisonRulesetIds")) if obj.get("comparisonRulesetIds") is not None else None,
|
105
|
+
"break_code_source": BreakCodeSource.from_dict(obj.get("breakCodeSource")) if obj.get("breakCodeSource") is not None else None
|
106
|
+
})
|
107
|
+
return _obj
|
@@ -0,0 +1,87 @@
|
|
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, List
|
22
|
+
from pydantic.v1 import BaseModel, Field, conlist
|
23
|
+
from lusid.models.field_definition import FieldDefinition
|
24
|
+
from lusid.models.field_value import FieldValue
|
25
|
+
|
26
|
+
class UpdateReferenceDataRequest(BaseModel):
|
27
|
+
"""
|
28
|
+
UpdateReferenceDataRequest
|
29
|
+
"""
|
30
|
+
request_definitions: conlist(FieldDefinition) = Field(..., alias="requestDefinitions", description="Definition of a reference data field.")
|
31
|
+
request_values: conlist(FieldValue) = Field(..., alias="requestValues", description="Reference data.")
|
32
|
+
__properties = ["requestDefinitions", "requestValues"]
|
33
|
+
|
34
|
+
class Config:
|
35
|
+
"""Pydantic configuration"""
|
36
|
+
allow_population_by_field_name = True
|
37
|
+
validate_assignment = True
|
38
|
+
|
39
|
+
def to_str(self) -> str:
|
40
|
+
"""Returns the string representation of the model using alias"""
|
41
|
+
return pprint.pformat(self.dict(by_alias=True))
|
42
|
+
|
43
|
+
def to_json(self) -> str:
|
44
|
+
"""Returns the JSON representation of the model using alias"""
|
45
|
+
return json.dumps(self.to_dict())
|
46
|
+
|
47
|
+
@classmethod
|
48
|
+
def from_json(cls, json_str: str) -> UpdateReferenceDataRequest:
|
49
|
+
"""Create an instance of UpdateReferenceDataRequest from a JSON string"""
|
50
|
+
return cls.from_dict(json.loads(json_str))
|
51
|
+
|
52
|
+
def to_dict(self):
|
53
|
+
"""Returns the dictionary representation of the model using alias"""
|
54
|
+
_dict = self.dict(by_alias=True,
|
55
|
+
exclude={
|
56
|
+
},
|
57
|
+
exclude_none=True)
|
58
|
+
# override the default output from pydantic by calling `to_dict()` of each item in request_definitions (list)
|
59
|
+
_items = []
|
60
|
+
if self.request_definitions:
|
61
|
+
for _item in self.request_definitions:
|
62
|
+
if _item:
|
63
|
+
_items.append(_item.to_dict())
|
64
|
+
_dict['requestDefinitions'] = _items
|
65
|
+
# override the default output from pydantic by calling `to_dict()` of each item in request_values (list)
|
66
|
+
_items = []
|
67
|
+
if self.request_values:
|
68
|
+
for _item in self.request_values:
|
69
|
+
if _item:
|
70
|
+
_items.append(_item.to_dict())
|
71
|
+
_dict['requestValues'] = _items
|
72
|
+
return _dict
|
73
|
+
|
74
|
+
@classmethod
|
75
|
+
def from_dict(cls, obj: dict) -> UpdateReferenceDataRequest:
|
76
|
+
"""Create an instance of UpdateReferenceDataRequest from a dict"""
|
77
|
+
if obj is None:
|
78
|
+
return None
|
79
|
+
|
80
|
+
if not isinstance(obj, dict):
|
81
|
+
return UpdateReferenceDataRequest.parse_obj(obj)
|
82
|
+
|
83
|
+
_obj = UpdateReferenceDataRequest.parse_obj({
|
84
|
+
"request_definitions": [FieldDefinition.from_dict(_item) for _item in obj.get("requestDefinitions")] if obj.get("requestDefinitions") is not None else None,
|
85
|
+
"request_values": [FieldValue.from_dict(_item) for _item in obj.get("requestValues")] if obj.get("requestValues") is not None else None
|
86
|
+
})
|
87
|
+
return _obj
|
@@ -30,9 +30,10 @@ class UpsertCustomEntitiesResponse(BaseModel):
|
|
30
30
|
"""
|
31
31
|
href: Optional[StrictStr] = Field(None, description="The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.")
|
32
32
|
values: Optional[Dict[str, CustomEntityResponse]] = Field(None, description="The custom-entities which have been successfully updated or created.")
|
33
|
+
staged: Optional[Dict[str, CustomEntityResponse]] = Field(None, description="The custom-entities that have been staged for update or creation.")
|
33
34
|
failed: Optional[Dict[str, ErrorDetail]] = Field(None, description="The custom-entities that could not be updated or created or were left unchanged without error along with a reason for their failure.")
|
34
35
|
links: Optional[conlist(Link)] = None
|
35
|
-
__properties = ["href", "values", "failed", "links"]
|
36
|
+
__properties = ["href", "values", "staged", "failed", "links"]
|
36
37
|
|
37
38
|
class Config:
|
38
39
|
"""Pydantic configuration"""
|
@@ -65,6 +66,13 @@ class UpsertCustomEntitiesResponse(BaseModel):
|
|
65
66
|
if self.values[_key]:
|
66
67
|
_field_dict[_key] = self.values[_key].to_dict()
|
67
68
|
_dict['values'] = _field_dict
|
69
|
+
# override the default output from pydantic by calling `to_dict()` of each value in staged (dict)
|
70
|
+
_field_dict = {}
|
71
|
+
if self.staged:
|
72
|
+
for _key in self.staged:
|
73
|
+
if self.staged[_key]:
|
74
|
+
_field_dict[_key] = self.staged[_key].to_dict()
|
75
|
+
_dict['staged'] = _field_dict
|
68
76
|
# override the default output from pydantic by calling `to_dict()` of each value in failed (dict)
|
69
77
|
_field_dict = {}
|
70
78
|
if self.failed:
|
@@ -89,6 +97,11 @@ class UpsertCustomEntitiesResponse(BaseModel):
|
|
89
97
|
if self.values is None and "values" in self.__fields_set__:
|
90
98
|
_dict['values'] = None
|
91
99
|
|
100
|
+
# set to None if staged (nullable) is None
|
101
|
+
# and __fields_set__ contains the field
|
102
|
+
if self.staged is None and "staged" in self.__fields_set__:
|
103
|
+
_dict['staged'] = None
|
104
|
+
|
92
105
|
# set to None if failed (nullable) is None
|
93
106
|
# and __fields_set__ contains the field
|
94
107
|
if self.failed is None and "failed" in self.__fields_set__:
|
@@ -118,6 +131,12 @@ class UpsertCustomEntitiesResponse(BaseModel):
|
|
118
131
|
)
|
119
132
|
if obj.get("values") is not None
|
120
133
|
else None,
|
134
|
+
"staged": dict(
|
135
|
+
(_k, CustomEntityResponse.from_dict(_v))
|
136
|
+
for _k, _v in obj.get("staged").items()
|
137
|
+
)
|
138
|
+
if obj.get("staged") is not None
|
139
|
+
else None,
|
121
140
|
"failed": dict(
|
122
141
|
(_k, ErrorDetail.from_dict(_v))
|
123
142
|
for _k, _v in obj.get("failed").items()
|
@@ -0,0 +1,84 @@
|
|
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
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictStr
|
23
|
+
from lusid.models.perpetual_property import PerpetualProperty
|
24
|
+
|
25
|
+
class UpsertReferencePortfolioConstituentPropertiesRequest(BaseModel):
|
26
|
+
"""
|
27
|
+
UpsertReferencePortfolioConstituentPropertiesRequest
|
28
|
+
"""
|
29
|
+
identifiers: Dict[str, StrictStr] = Field(..., description="A set of instrument identifiers that can resolve the constituent to a unique instrument.")
|
30
|
+
properties: Dict[str, PerpetualProperty] = Field(..., description="The updated collection of properties of the constituent.")
|
31
|
+
__properties = ["identifiers", "properties"]
|
32
|
+
|
33
|
+
class Config:
|
34
|
+
"""Pydantic configuration"""
|
35
|
+
allow_population_by_field_name = True
|
36
|
+
validate_assignment = True
|
37
|
+
|
38
|
+
def to_str(self) -> str:
|
39
|
+
"""Returns the string representation of the model using alias"""
|
40
|
+
return pprint.pformat(self.dict(by_alias=True))
|
41
|
+
|
42
|
+
def to_json(self) -> str:
|
43
|
+
"""Returns the JSON representation of the model using alias"""
|
44
|
+
return json.dumps(self.to_dict())
|
45
|
+
|
46
|
+
@classmethod
|
47
|
+
def from_json(cls, json_str: str) -> UpsertReferencePortfolioConstituentPropertiesRequest:
|
48
|
+
"""Create an instance of UpsertReferencePortfolioConstituentPropertiesRequest from a JSON string"""
|
49
|
+
return cls.from_dict(json.loads(json_str))
|
50
|
+
|
51
|
+
def to_dict(self):
|
52
|
+
"""Returns the dictionary representation of the model using alias"""
|
53
|
+
_dict = self.dict(by_alias=True,
|
54
|
+
exclude={
|
55
|
+
},
|
56
|
+
exclude_none=True)
|
57
|
+
# override the default output from pydantic by calling `to_dict()` of each value in properties (dict)
|
58
|
+
_field_dict = {}
|
59
|
+
if self.properties:
|
60
|
+
for _key in self.properties:
|
61
|
+
if self.properties[_key]:
|
62
|
+
_field_dict[_key] = self.properties[_key].to_dict()
|
63
|
+
_dict['properties'] = _field_dict
|
64
|
+
return _dict
|
65
|
+
|
66
|
+
@classmethod
|
67
|
+
def from_dict(cls, obj: dict) -> UpsertReferencePortfolioConstituentPropertiesRequest:
|
68
|
+
"""Create an instance of UpsertReferencePortfolioConstituentPropertiesRequest from a dict"""
|
69
|
+
if obj is None:
|
70
|
+
return None
|
71
|
+
|
72
|
+
if not isinstance(obj, dict):
|
73
|
+
return UpsertReferencePortfolioConstituentPropertiesRequest.parse_obj(obj)
|
74
|
+
|
75
|
+
_obj = UpsertReferencePortfolioConstituentPropertiesRequest.parse_obj({
|
76
|
+
"identifiers": obj.get("identifiers"),
|
77
|
+
"properties": dict(
|
78
|
+
(_k, PerpetualProperty.from_dict(_v))
|
79
|
+
for _k, _v in obj.get("properties").items()
|
80
|
+
)
|
81
|
+
if obj.get("properties") is not None
|
82
|
+
else None
|
83
|
+
})
|
84
|
+
return _obj
|
@@ -0,0 +1,115 @@
|
|
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, List, Optional
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictStr, conlist
|
23
|
+
from lusid.models.link import Link
|
24
|
+
from lusid.models.perpetual_property import PerpetualProperty
|
25
|
+
from lusid.models.version import Version
|
26
|
+
|
27
|
+
class UpsertReferencePortfolioConstituentPropertiesResponse(BaseModel):
|
28
|
+
"""
|
29
|
+
UpsertReferencePortfolioConstituentPropertiesResponse
|
30
|
+
"""
|
31
|
+
href: Optional[StrictStr] = Field(None, description="The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.")
|
32
|
+
version: Optional[Version] = None
|
33
|
+
properties: Optional[Dict[str, PerpetualProperty]] = Field(None, description="The updated collection of properties of the constituent.")
|
34
|
+
links: Optional[conlist(Link)] = None
|
35
|
+
__properties = ["href", "version", "properties", "links"]
|
36
|
+
|
37
|
+
class Config:
|
38
|
+
"""Pydantic configuration"""
|
39
|
+
allow_population_by_field_name = True
|
40
|
+
validate_assignment = True
|
41
|
+
|
42
|
+
def to_str(self) -> str:
|
43
|
+
"""Returns the string representation of the model using alias"""
|
44
|
+
return pprint.pformat(self.dict(by_alias=True))
|
45
|
+
|
46
|
+
def to_json(self) -> str:
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
48
|
+
return json.dumps(self.to_dict())
|
49
|
+
|
50
|
+
@classmethod
|
51
|
+
def from_json(cls, json_str: str) -> UpsertReferencePortfolioConstituentPropertiesResponse:
|
52
|
+
"""Create an instance of UpsertReferencePortfolioConstituentPropertiesResponse from a JSON string"""
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
54
|
+
|
55
|
+
def to_dict(self):
|
56
|
+
"""Returns the dictionary representation of the model using alias"""
|
57
|
+
_dict = self.dict(by_alias=True,
|
58
|
+
exclude={
|
59
|
+
},
|
60
|
+
exclude_none=True)
|
61
|
+
# override the default output from pydantic by calling `to_dict()` of version
|
62
|
+
if self.version:
|
63
|
+
_dict['version'] = self.version.to_dict()
|
64
|
+
# override the default output from pydantic by calling `to_dict()` of each value in properties (dict)
|
65
|
+
_field_dict = {}
|
66
|
+
if self.properties:
|
67
|
+
for _key in self.properties:
|
68
|
+
if self.properties[_key]:
|
69
|
+
_field_dict[_key] = self.properties[_key].to_dict()
|
70
|
+
_dict['properties'] = _field_dict
|
71
|
+
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
72
|
+
_items = []
|
73
|
+
if self.links:
|
74
|
+
for _item in self.links:
|
75
|
+
if _item:
|
76
|
+
_items.append(_item.to_dict())
|
77
|
+
_dict['links'] = _items
|
78
|
+
# set to None if href (nullable) is None
|
79
|
+
# and __fields_set__ contains the field
|
80
|
+
if self.href is None and "href" in self.__fields_set__:
|
81
|
+
_dict['href'] = None
|
82
|
+
|
83
|
+
# set to None if properties (nullable) is None
|
84
|
+
# and __fields_set__ contains the field
|
85
|
+
if self.properties is None and "properties" in self.__fields_set__:
|
86
|
+
_dict['properties'] = None
|
87
|
+
|
88
|
+
# set to None if links (nullable) is None
|
89
|
+
# and __fields_set__ contains the field
|
90
|
+
if self.links is None and "links" in self.__fields_set__:
|
91
|
+
_dict['links'] = None
|
92
|
+
|
93
|
+
return _dict
|
94
|
+
|
95
|
+
@classmethod
|
96
|
+
def from_dict(cls, obj: dict) -> UpsertReferencePortfolioConstituentPropertiesResponse:
|
97
|
+
"""Create an instance of UpsertReferencePortfolioConstituentPropertiesResponse from a dict"""
|
98
|
+
if obj is None:
|
99
|
+
return None
|
100
|
+
|
101
|
+
if not isinstance(obj, dict):
|
102
|
+
return UpsertReferencePortfolioConstituentPropertiesResponse.parse_obj(obj)
|
103
|
+
|
104
|
+
_obj = UpsertReferencePortfolioConstituentPropertiesResponse.parse_obj({
|
105
|
+
"href": obj.get("href"),
|
106
|
+
"version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
|
107
|
+
"properties": dict(
|
108
|
+
(_k, PerpetualProperty.from_dict(_v))
|
109
|
+
for _k, _v in obj.get("properties").items()
|
110
|
+
)
|
111
|
+
if obj.get("properties") is not None
|
112
|
+
else None,
|
113
|
+
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
114
|
+
})
|
115
|
+
return _obj
|
@@ -18,15 +18,15 @@ import re # noqa: F401
|
|
18
18
|
import json
|
19
19
|
|
20
20
|
|
21
|
-
from typing import Any, Dict
|
22
|
-
from pydantic.v1 import BaseModel
|
21
|
+
from typing import Any, Dict
|
22
|
+
from pydantic.v1 import BaseModel, Field
|
23
23
|
from lusid.models.date_or_diary_entry import DateOrDiaryEntry
|
24
24
|
|
25
25
|
class ValuationPointDataQueryParameters(BaseModel):
|
26
26
|
"""
|
27
27
|
The parameters used in getting the ValuationPointData. # noqa: E501
|
28
28
|
"""
|
29
|
-
end:
|
29
|
+
end: DateOrDiaryEntry = Field(...)
|
30
30
|
__properties = ["end"]
|
31
31
|
|
32
32
|
class Config:
|
@@ -42,7 +42,7 @@ class ValuationPointDataResponse(BaseModel):
|
|
42
42
|
previous_nav: Union[StrictFloat, StrictInt] = Field(..., alias="previousNav", description="DEPRECATED. The Net Asset Value of the Fund at the End of the last Period.")
|
43
43
|
fund_details: FundDetails = Field(..., alias="fundDetails")
|
44
44
|
fund_valuation_point_data: FundValuationPointData = Field(..., alias="fundValuationPointData")
|
45
|
-
share_class_data:
|
45
|
+
share_class_data: conlist(ShareClassData) = Field(..., alias="shareClassData", description="The data for all share classes in fund. Share classes are identified by their short codes.")
|
46
46
|
valuation_point_code: Optional[StrictStr] = Field(None, alias="valuationPointCode", description="The code of the valuation point.")
|
47
47
|
previous_valuation_point_code: Optional[StrictStr] = Field(None, alias="previousValuationPointCode", description="The code of the previous valuation point.")
|
48
48
|
links: Optional[conlist(Link)] = None
|
@@ -85,13 +85,13 @@ class ValuationPointDataResponse(BaseModel):
|
|
85
85
|
# override the default output from pydantic by calling `to_dict()` of fund_valuation_point_data
|
86
86
|
if self.fund_valuation_point_data:
|
87
87
|
_dict['fundValuationPointData'] = self.fund_valuation_point_data.to_dict()
|
88
|
-
# override the default output from pydantic by calling `to_dict()` of each
|
89
|
-
|
88
|
+
# override the default output from pydantic by calling `to_dict()` of each item in share_class_data (list)
|
89
|
+
_items = []
|
90
90
|
if self.share_class_data:
|
91
|
-
for
|
92
|
-
if
|
93
|
-
|
94
|
-
_dict['shareClassData'] =
|
91
|
+
for _item in self.share_class_data:
|
92
|
+
if _item:
|
93
|
+
_items.append(_item.to_dict())
|
94
|
+
_dict['shareClassData'] = _items
|
95
95
|
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
96
96
|
_items = []
|
97
97
|
if self.links:
|
@@ -148,12 +148,7 @@ class ValuationPointDataResponse(BaseModel):
|
|
148
148
|
"previous_nav": obj.get("previousNav"),
|
149
149
|
"fund_details": FundDetails.from_dict(obj.get("fundDetails")) if obj.get("fundDetails") is not None else None,
|
150
150
|
"fund_valuation_point_data": FundValuationPointData.from_dict(obj.get("fundValuationPointData")) if obj.get("fundValuationPointData") is not None else None,
|
151
|
-
"share_class_data":
|
152
|
-
(_k, ShareClassData.from_dict(_v))
|
153
|
-
for _k, _v in obj.get("shareClassData").items()
|
154
|
-
)
|
155
|
-
if obj.get("shareClassData") is not None
|
156
|
-
else None,
|
151
|
+
"share_class_data": [ShareClassData.from_dict(_item) for _item in obj.get("shareClassData")] if obj.get("shareClassData") is not None else None,
|
157
152
|
"valuation_point_code": obj.get("valuationPointCode"),
|
158
153
|
"previous_valuation_point_code": obj.get("previousValuationPointCode"),
|
159
154
|
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|