lusid-sdk 2.1.747__py3-none-any.whl → 2.1.749__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lusid/api/entities_api.py +12 -12
- lusid/api/transaction_portfolios_api.py +17 -8
- lusid/configuration.py +1 -1
- lusid/models/access_metadata_operation.py +52 -0
- lusid/models/account.py +52 -0
- lusid/models/accumulation_event.py +52 -0
- lusid/models/address_definition.py +52 -0
- lusid/models/address_key_compliance_parameter.py +52 -0
- lusid/models/address_key_list.py +52 -0
- lusid/models/address_key_list_compliance_parameter.py +52 -0
- lusid/models/adjust_global_commitment_event.py +52 -0
- lusid/models/aggregate_spec.py +52 -0
- lusid/models/aggregation_query.py +104 -0
- lusid/models/amortisation_event.py +52 -0
- lusid/models/append_fx_forward_curve_by_quote_reference.py +52 -0
- lusid/models/append_fx_forward_curve_data.py +52 -0
- lusid/models/append_fx_forward_pips_curve_data.py +52 -0
- lusid/models/append_fx_forward_tenor_curve_data.py +52 -0
- lusid/models/append_fx_forward_tenor_pips_curve_data.py +52 -0
- lusid/models/append_market_data.py +52 -0
- lusid/models/basket.py +52 -0
- lusid/models/bond.py +52 -0
- lusid/models/bond_conversion_schedule.py +52 -0
- lusid/models/bond_coupon_event.py +52 -0
- lusid/models/bond_default_event.py +52 -0
- lusid/models/bond_principal_event.py +52 -0
- lusid/models/bonus_issue_event.py +52 -0
- lusid/models/bool_compliance_parameter.py +52 -0
- lusid/models/bool_list_compliance_parameter.py +52 -0
- lusid/models/branch_step.py +52 -0
- lusid/models/branch_step_request.py +52 -0
- lusid/models/calendar_dependency.py +52 -0
- lusid/models/call_on_intermediate_securities_event.py +52 -0
- lusid/models/cap_floor.py +52 -0
- lusid/models/capital_distribution_event.py +52 -0
- lusid/models/cash.py +52 -0
- lusid/models/cash_dependency.py +52 -0
- lusid/models/cash_dividend_event.py +52 -0
- lusid/models/cash_flow_event.py +52 -0
- lusid/models/cash_flow_value.py +52 -0
- lusid/models/cash_flow_value_set.py +52 -0
- lusid/models/cash_perpetual.py +52 -0
- lusid/models/cds_credit_event.py +52 -0
- lusid/models/cds_index.py +52 -0
- lusid/models/cdx_credit_event.py +52 -0
- lusid/models/change_history.py +52 -0
- lusid/models/check_step.py +52 -0
- lusid/models/check_step_request.py +52 -0
- lusid/models/close_event.py +52 -0
- lusid/models/complete_portfolio.py +52 -0
- lusid/models/complex_bond.py +52 -0
- lusid/models/complex_market_data.py +52 -0
- lusid/models/compliance_parameter.py +52 -0
- lusid/models/compliance_step.py +52 -0
- lusid/models/compliance_step_request.py +52 -0
- lusid/models/constant_volatility_surface.py +52 -0
- lusid/models/contract_for_difference.py +52 -0
- lusid/models/contract_initialisation_event.py +52 -0
- lusid/models/create_data_type_request.py +156 -0
- lusid/models/create_derived_property_definition_request.py +52 -0
- lusid/models/create_derived_transaction_portfolio_request.py +52 -0
- lusid/models/create_identifier_definition_request.py +104 -0
- lusid/models/create_property_definition_request.py +104 -0
- lusid/models/create_simple_position_portfolio_request.py +52 -0
- lusid/models/create_transaction_portfolio_request.py +52 -0
- lusid/models/credit_default_swap.py +52 -0
- lusid/models/credit_premium_cash_flow_event.py +52 -0
- lusid/models/credit_spread_curve_data.py +52 -0
- lusid/models/curve_options.py +52 -0
- lusid/models/data_type.py +156 -0
- lusid/models/data_type_summary.py +156 -0
- lusid/models/date_time_compliance_parameter.py +52 -0
- lusid/models/date_time_list_compliance_parameter.py +52 -0
- lusid/models/decimal_compliance_parameter.py +52 -0
- lusid/models/decimal_list.py +52 -0
- lusid/models/decimal_list_compliance_parameter.py +52 -0
- lusid/models/deposit_close_event.py +52 -0
- lusid/models/deposit_interest_payment_event.py +52 -0
- lusid/models/discount_factor_curve_data.py +52 -0
- lusid/models/discounting_dependency.py +52 -0
- lusid/models/dividend_option_event.py +52 -0
- lusid/models/dividend_reinvestment_event.py +52 -0
- lusid/models/drawdown_event.py +52 -0
- lusid/models/early_redemption_event.py +52 -0
- lusid/models/economic_dependency.py +52 -0
- lusid/models/empty_model_options.py +52 -0
- lusid/models/equity.py +52 -0
- lusid/models/equity_curve_by_prices_data.py +52 -0
- lusid/models/equity_curve_dependency.py +52 -0
- lusid/models/equity_model_options.py +52 -0
- lusid/models/equity_option.py +52 -0
- lusid/models/equity_swap.py +52 -0
- lusid/models/equity_vol_dependency.py +52 -0
- lusid/models/equity_vol_surface_data.py +52 -0
- lusid/models/exchange_traded_option.py +52 -0
- lusid/models/exercise_event.py +52 -0
- lusid/models/exotic_instrument.py +52 -0
- lusid/models/expiry_event.py +52 -0
- lusid/models/field_schema.py +52 -0
- lusid/models/filter_predicate_compliance_parameter.py +52 -0
- lusid/models/filter_step.py +52 -0
- lusid/models/filter_step_request.py +52 -0
- lusid/models/fixed_leg.py +52 -0
- lusid/models/fixed_schedule.py +52 -0
- lusid/models/flexible_deposit.py +52 -0
- lusid/models/flexible_loan.py +52 -0
- lusid/models/float_schedule.py +52 -0
- lusid/models/floating_leg.py +52 -0
- lusid/models/forward_rate_agreement.py +52 -0
- lusid/models/fund_id_list.py +52 -0
- lusid/models/fund_share_class.py +52 -0
- lusid/models/funding_leg.py +52 -0
- lusid/models/funding_leg_options.py +52 -0
- lusid/models/future.py +52 -0
- lusid/models/future_expiry_event.py +52 -0
- lusid/models/future_mark_to_market_event.py +52 -0
- lusid/models/fx_dependency.py +52 -0
- lusid/models/fx_forward.py +52 -0
- lusid/models/fx_forward_curve_by_quote_reference.py +52 -0
- lusid/models/fx_forward_curve_data.py +52 -0
- lusid/models/fx_forward_model_options.py +156 -0
- lusid/models/fx_forward_pips_curve_data.py +52 -0
- lusid/models/fx_forward_settlement_event.py +52 -0
- lusid/models/fx_forward_tenor_curve_data.py +52 -0
- lusid/models/fx_forward_tenor_pips_curve_data.py +52 -0
- lusid/models/fx_forwards_dependency.py +52 -0
- lusid/models/fx_linked_notional_schedule.py +52 -0
- lusid/models/fx_option.py +52 -0
- lusid/models/fx_rate_schedule.py +52 -0
- lusid/models/fx_swap.py +52 -0
- lusid/models/fx_vol_dependency.py +52 -0
- lusid/models/fx_vol_surface_data.py +52 -0
- lusid/models/get_reference_portfolio_constituents_response.py +104 -0
- lusid/models/group_by_selector_compliance_parameter.py +52 -0
- lusid/models/group_by_step.py +52 -0
- lusid/models/group_by_step_request.py +52 -0
- lusid/models/group_calculation_compliance_parameter.py +52 -0
- lusid/models/group_filter_predicate_compliance_parameter.py +52 -0
- lusid/models/group_filter_step.py +52 -0
- lusid/models/group_filter_step_request.py +52 -0
- lusid/models/holdings_adjustment.py +52 -0
- lusid/models/holdings_adjustment_header.py +52 -0
- lusid/models/i_unit_definition_dto.py +52 -0
- lusid/models/identifier_definition.py +104 -0
- lusid/models/index_model_options.py +104 -0
- lusid/models/index_projection_dependency.py +52 -0
- lusid/models/inflation_fixing_dependency.py +52 -0
- lusid/models/inflation_leg.py +52 -0
- lusid/models/inflation_linked_bond.py +52 -0
- lusid/models/inflation_swap.py +52 -0
- lusid/models/informational_error_event.py +52 -0
- lusid/models/informational_event.py +52 -0
- lusid/models/instrument.py +104 -0
- lusid/models/instrument_event.py +52 -0
- lusid/models/instrument_leg.py +52 -0
- lusid/models/instrument_list.py +52 -0
- lusid/models/instrument_list_compliance_parameter.py +52 -0
- lusid/models/interest_rate_swap.py +52 -0
- lusid/models/interest_rate_swaption.py +52 -0
- lusid/models/intermediate_compliance_step.py +52 -0
- lusid/models/intermediate_compliance_step_request.py +52 -0
- lusid/models/intermediate_securities_distribution_event.py +52 -0
- lusid/models/ir_vol_cube_data.py +52 -0
- lusid/models/ir_vol_dependency.py +52 -0
- lusid/models/life_cycle_event_value.py +52 -0
- lusid/models/loan_facility.py +52 -0
- lusid/models/loan_interest_repayment_event.py +52 -0
- lusid/models/loan_principal_repayment_event.py +52 -0
- lusid/models/lusid_instrument.py +52 -0
- lusid/models/lusid_trade_ticket.py +52 -0
- lusid/models/market_data_key_rule.py +52 -0
- lusid/models/market_data_options.py +52 -0
- lusid/models/market_data_specific_rule.py +52 -0
- lusid/models/market_quote.py +52 -0
- lusid/models/mastered_instrument.py +52 -0
- lusid/models/match_criterion.py +52 -0
- lusid/models/maturity_event.py +52 -0
- lusid/models/mbs_coupon_event.py +52 -0
- lusid/models/mbs_interest_deferral_event.py +52 -0
- lusid/models/mbs_interest_shortfall_event.py +52 -0
- lusid/models/mbs_principal_event.py +52 -0
- lusid/models/mbs_principal_write_off_event.py +52 -0
- lusid/models/merger_event.py +52 -0
- lusid/models/model_options.py +52 -0
- lusid/models/model_selection.py +104 -0
- lusid/models/opaque_dependency.py +52 -0
- lusid/models/opaque_market_data.py +52 -0
- lusid/models/opaque_model_options.py +52 -0
- lusid/models/open_event.py +52 -0
- lusid/models/option_exercise_cash_event.py +52 -0
- lusid/models/option_exercise_physical_event.py +52 -0
- lusid/models/optionality_schedule.py +52 -0
- lusid/models/order_by_spec.py +52 -0
- lusid/models/output_transaction.py +52 -0
- lusid/models/percent_check_step.py +52 -0
- lusid/models/percent_check_step_request.py +52 -0
- lusid/models/portfolio.py +104 -0
- lusid/models/portfolio_details.py +52 -0
- lusid/models/portfolio_group_id_compliance_parameter.py +52 -0
- lusid/models/portfolio_group_id_list.py +52 -0
- lusid/models/portfolio_group_id_list_compliance_parameter.py +52 -0
- lusid/models/portfolio_id_compliance_parameter.py +52 -0
- lusid/models/portfolio_id_list.py +52 -0
- lusid/models/portfolio_id_list_compliance_parameter.py +52 -0
- lusid/models/portfolio_result_data_key_rule.py +52 -0
- lusid/models/portfolio_search_result.py +52 -0
- lusid/models/portfolio_without_href.py +104 -0
- lusid/models/property_definition.py +312 -0
- lusid/models/property_definition_search_result.py +312 -0
- lusid/models/property_filter.py +104 -0
- lusid/models/property_key_compliance_parameter.py +52 -0
- lusid/models/property_key_list_compliance_parameter.py +52 -0
- lusid/models/property_list.py +52 -0
- lusid/models/property_list_compliance_parameter.py +52 -0
- lusid/models/property_value_equals.py +52 -0
- lusid/models/property_value_in.py +52 -0
- lusid/models/protection_payout_cash_flow_event.py +52 -0
- lusid/models/quote_dependency.py +52 -0
- lusid/models/quote_series_id.py +104 -0
- lusid/models/raw_vendor_event.py +52 -0
- lusid/models/recombine_step.py +52 -0
- lusid/models/reconcile_date_time_rule.py +104 -0
- lusid/models/reconcile_numeric_rule.py +104 -0
- lusid/models/reconcile_string_rule.py +104 -0
- lusid/models/reconciliation_rule.py +52 -0
- lusid/models/reference_instrument.py +52 -0
- lusid/models/reference_list.py +52 -0
- lusid/models/repo.py +52 -0
- lusid/models/reset_event.py +52 -0
- lusid/models/resource_list_of_value_type.py +1 -1
- lusid/models/result_data_key_rule.py +52 -0
- lusid/models/result_key_rule.py +52 -0
- lusid/models/result_value.py +52 -0
- lusid/models/result_value0_d.py +52 -0
- lusid/models/result_value_bool.py +52 -0
- lusid/models/result_value_currency.py +52 -0
- lusid/models/result_value_date_time_offset.py +52 -0
- lusid/models/result_value_decimal.py +52 -0
- lusid/models/result_value_dictionary.py +52 -0
- lusid/models/result_value_int.py +52 -0
- lusid/models/result_value_string.py +52 -0
- lusid/models/reverse_stock_split_event.py +52 -0
- lusid/models/schedule.py +52 -0
- lusid/models/scrip_dividend_event.py +52 -0
- lusid/models/simple_cash_flow_loan.py +52 -0
- lusid/models/simple_instrument.py +104 -0
- lusid/models/spin_off_event.py +52 -0
- lusid/models/step_schedule.py +52 -0
- lusid/models/stock_dividend_event.py +52 -0
- lusid/models/stock_split_event.py +52 -0
- lusid/models/string_compliance_parameter.py +52 -0
- lusid/models/string_list.py +52 -0
- lusid/models/string_list_compliance_parameter.py +52 -0
- lusid/models/sub_holding_key_value_equals.py +52 -0
- lusid/models/swap_cash_flow_event.py +52 -0
- lusid/models/swap_principal_event.py +52 -0
- lusid/models/tender_event.py +52 -0
- lusid/models/term_deposit.py +52 -0
- lusid/models/term_deposit_interest_event.py +52 -0
- lusid/models/term_deposit_principal_event.py +52 -0
- lusid/models/total_return_swap.py +52 -0
- lusid/models/trade_ticket.py +52 -0
- lusid/models/transaction.py +52 -0
- lusid/models/transaction_configuration_movement_data.py +52 -0
- lusid/models/transaction_configuration_movement_data_request.py +52 -0
- lusid/models/transaction_configuration_type_alias.py +52 -0
- lusid/models/transaction_price.py +52 -0
- lusid/models/transaction_query_parameters.py +52 -0
- lusid/models/transition_event.py +52 -0
- lusid/models/trigger_event.py +52 -0
- lusid/models/update_deposit_amount_event.py +52 -0
- lusid/models/upsert_reference_portfolio_constituents_request.py +104 -0
- lusid/models/vendor_dependency.py +52 -0
- lusid/models/vendor_model_rule.py +52 -0
- lusid/models/weekend_mask.py +1 -1
- lusid/models/yield_curve_data.py +52 -0
- {lusid_sdk-2.1.747.dist-info → lusid_sdk-2.1.749.dist-info}/METADATA +7 -7
- {lusid_sdk-2.1.747.dist-info → lusid_sdk-2.1.749.dist-info}/RECORD +279 -279
- {lusid_sdk-2.1.747.dist-info → lusid_sdk-2.1.749.dist-info}/WHEEL +0 -0
@@ -39,6 +39,58 @@ class DiscountFactorCurveData(ComplexMarketData):
|
|
39
39
|
@validator('market_data_type')
|
40
40
|
def market_data_type_validate_enum(cls, value):
|
41
41
|
"""Validates the enum"""
|
42
|
+
|
43
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
44
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
45
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
46
|
+
|
47
|
+
|
48
|
+
# check it's a class that uses the 'type' property as a discriminator
|
49
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
50
|
+
if 'DiscountFactorCurveData' not in [
|
51
|
+
# For notification application classes
|
52
|
+
'AmazonSqsNotificationType',
|
53
|
+
'AmazonSqsNotificationTypeResponse',
|
54
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
55
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
56
|
+
'AzureServiceBusTypeResponse',
|
57
|
+
'AzureServiceBusNotificationType',
|
58
|
+
'EmailNotificationType',
|
59
|
+
'EmailNotificationTypeResponse',
|
60
|
+
'SmsNotificationType',
|
61
|
+
'SmsNotificationTypeResponse',
|
62
|
+
'WebhookNotificationType',
|
63
|
+
'WebhookNotificationTypeResponse',
|
64
|
+
|
65
|
+
# For workflow application classes
|
66
|
+
'CreateChildTasksAction',
|
67
|
+
'RunWorkerAction',
|
68
|
+
'TriggerParentTaskAction',
|
69
|
+
'CreateChildTasksActionResponse',
|
70
|
+
'RunWorkerActionResponse',
|
71
|
+
'TriggerParentTaskActionResponse',
|
72
|
+
'CreateNewTaskActivity',
|
73
|
+
'UpdateMatchingTasksActivity',
|
74
|
+
'CreateNewTaskActivityResponse',
|
75
|
+
'UpdateMatchingTasksActivityResponse',
|
76
|
+
'Fail',
|
77
|
+
'GroupReconciliation',
|
78
|
+
'HealthCheck',
|
79
|
+
'LuminesceView',
|
80
|
+
'SchedulerJob',
|
81
|
+
'Sleep',
|
82
|
+
'FailResponse',
|
83
|
+
'GroupReconciliationResponse',
|
84
|
+
'HealthCheckResponse',
|
85
|
+
'LuminesceViewResponse',
|
86
|
+
'SchedulerJobResponse',
|
87
|
+
'SleepResponse']:
|
88
|
+
return value
|
89
|
+
|
90
|
+
# Only validate the 'type' property of the class
|
91
|
+
if "market_data_type" != "type":
|
92
|
+
return value
|
93
|
+
|
42
94
|
if value not in ('DiscountFactorCurveData', 'EquityVolSurfaceData', 'FxVolSurfaceData', 'IrVolCubeData', 'OpaqueMarketData', 'YieldCurveData', 'FxForwardCurveData', 'FxForwardPipsCurveData', 'FxForwardTenorCurveData', 'FxForwardTenorPipsCurveData', 'FxForwardCurveByQuoteReference', 'CreditSpreadCurveData', 'EquityCurveByPricesData', 'ConstantVolatilitySurface'):
|
43
95
|
raise ValueError("must be one of enum values ('DiscountFactorCurveData', 'EquityVolSurfaceData', 'FxVolSurfaceData', 'IrVolCubeData', 'OpaqueMarketData', 'YieldCurveData', 'FxForwardCurveData', 'FxForwardPipsCurveData', 'FxForwardTenorCurveData', 'FxForwardTenorPipsCurveData', 'FxForwardCurveByQuoteReference', 'CreditSpreadCurveData', 'EquityCurveByPricesData', 'ConstantVolatilitySurface')")
|
44
96
|
return value
|
@@ -35,6 +35,58 @@ class DiscountingDependency(EconomicDependency):
|
|
35
35
|
@validator('dependency_type')
|
36
36
|
def dependency_type_validate_enum(cls, value):
|
37
37
|
"""Validates the enum"""
|
38
|
+
|
39
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
40
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
41
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
42
|
+
|
43
|
+
|
44
|
+
# check it's a class that uses the 'type' property as a discriminator
|
45
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
46
|
+
if 'DiscountingDependency' not in [
|
47
|
+
# For notification application classes
|
48
|
+
'AmazonSqsNotificationType',
|
49
|
+
'AmazonSqsNotificationTypeResponse',
|
50
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
51
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
52
|
+
'AzureServiceBusTypeResponse',
|
53
|
+
'AzureServiceBusNotificationType',
|
54
|
+
'EmailNotificationType',
|
55
|
+
'EmailNotificationTypeResponse',
|
56
|
+
'SmsNotificationType',
|
57
|
+
'SmsNotificationTypeResponse',
|
58
|
+
'WebhookNotificationType',
|
59
|
+
'WebhookNotificationTypeResponse',
|
60
|
+
|
61
|
+
# For workflow application classes
|
62
|
+
'CreateChildTasksAction',
|
63
|
+
'RunWorkerAction',
|
64
|
+
'TriggerParentTaskAction',
|
65
|
+
'CreateChildTasksActionResponse',
|
66
|
+
'RunWorkerActionResponse',
|
67
|
+
'TriggerParentTaskActionResponse',
|
68
|
+
'CreateNewTaskActivity',
|
69
|
+
'UpdateMatchingTasksActivity',
|
70
|
+
'CreateNewTaskActivityResponse',
|
71
|
+
'UpdateMatchingTasksActivityResponse',
|
72
|
+
'Fail',
|
73
|
+
'GroupReconciliation',
|
74
|
+
'HealthCheck',
|
75
|
+
'LuminesceView',
|
76
|
+
'SchedulerJob',
|
77
|
+
'Sleep',
|
78
|
+
'FailResponse',
|
79
|
+
'GroupReconciliationResponse',
|
80
|
+
'HealthCheckResponse',
|
81
|
+
'LuminesceViewResponse',
|
82
|
+
'SchedulerJobResponse',
|
83
|
+
'SleepResponse']:
|
84
|
+
return value
|
85
|
+
|
86
|
+
# Only validate the 'type' property of the class
|
87
|
+
if "dependency_type" != "type":
|
88
|
+
return value
|
89
|
+
|
38
90
|
if value not in ('OpaqueDependency', 'CashDependency', 'DiscountingDependency', 'EquityCurveDependency', 'EquityVolDependency', 'FxDependency', 'FxForwardsDependency', 'FxVolDependency', 'IndexProjectionDependency', 'IrVolDependency', 'QuoteDependency', 'Vendor', 'CalendarDependency', 'InflationFixingDependency'):
|
39
91
|
raise ValueError("must be one of enum values ('OpaqueDependency', 'CashDependency', 'DiscountingDependency', 'EquityCurveDependency', 'EquityVolDependency', 'FxDependency', 'FxForwardsDependency', 'FxVolDependency', 'IndexProjectionDependency', 'IrVolDependency', 'QuoteDependency', 'Vendor', 'CalendarDependency', 'InflationFixingDependency')")
|
40
92
|
return value
|
@@ -42,6 +42,58 @@ class DividendOptionEvent(InstrumentEvent):
|
|
42
42
|
@validator('instrument_event_type')
|
43
43
|
def instrument_event_type_validate_enum(cls, value):
|
44
44
|
"""Validates the enum"""
|
45
|
+
|
46
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
47
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
48
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
49
|
+
|
50
|
+
|
51
|
+
# check it's a class that uses the 'type' property as a discriminator
|
52
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
53
|
+
if 'DividendOptionEvent' not in [
|
54
|
+
# For notification application classes
|
55
|
+
'AmazonSqsNotificationType',
|
56
|
+
'AmazonSqsNotificationTypeResponse',
|
57
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
58
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
59
|
+
'AzureServiceBusTypeResponse',
|
60
|
+
'AzureServiceBusNotificationType',
|
61
|
+
'EmailNotificationType',
|
62
|
+
'EmailNotificationTypeResponse',
|
63
|
+
'SmsNotificationType',
|
64
|
+
'SmsNotificationTypeResponse',
|
65
|
+
'WebhookNotificationType',
|
66
|
+
'WebhookNotificationTypeResponse',
|
67
|
+
|
68
|
+
# For workflow application classes
|
69
|
+
'CreateChildTasksAction',
|
70
|
+
'RunWorkerAction',
|
71
|
+
'TriggerParentTaskAction',
|
72
|
+
'CreateChildTasksActionResponse',
|
73
|
+
'RunWorkerActionResponse',
|
74
|
+
'TriggerParentTaskActionResponse',
|
75
|
+
'CreateNewTaskActivity',
|
76
|
+
'UpdateMatchingTasksActivity',
|
77
|
+
'CreateNewTaskActivityResponse',
|
78
|
+
'UpdateMatchingTasksActivityResponse',
|
79
|
+
'Fail',
|
80
|
+
'GroupReconciliation',
|
81
|
+
'HealthCheck',
|
82
|
+
'LuminesceView',
|
83
|
+
'SchedulerJob',
|
84
|
+
'Sleep',
|
85
|
+
'FailResponse',
|
86
|
+
'GroupReconciliationResponse',
|
87
|
+
'HealthCheckResponse',
|
88
|
+
'LuminesceViewResponse',
|
89
|
+
'SchedulerJobResponse',
|
90
|
+
'SleepResponse']:
|
91
|
+
return value
|
92
|
+
|
93
|
+
# Only validate the 'type' property of the class
|
94
|
+
if "instrument_event_type" != "type":
|
95
|
+
return value
|
96
|
+
|
45
97
|
if value not in ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent', 'UpdateDepositAmountEvent', 'LoanPrincipalRepaymentEvent', 'DepositInterestPaymentEvent', 'DepositCloseEvent'):
|
46
98
|
raise ValueError("must be one of enum values ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent', 'UpdateDepositAmountEvent', 'LoanPrincipalRepaymentEvent', 'DepositInterestPaymentEvent', 'DepositCloseEvent')")
|
47
99
|
return value
|
@@ -42,6 +42,58 @@ class DividendReinvestmentEvent(InstrumentEvent):
|
|
42
42
|
@validator('instrument_event_type')
|
43
43
|
def instrument_event_type_validate_enum(cls, value):
|
44
44
|
"""Validates the enum"""
|
45
|
+
|
46
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
47
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
48
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
49
|
+
|
50
|
+
|
51
|
+
# check it's a class that uses the 'type' property as a discriminator
|
52
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
53
|
+
if 'DividendReinvestmentEvent' not in [
|
54
|
+
# For notification application classes
|
55
|
+
'AmazonSqsNotificationType',
|
56
|
+
'AmazonSqsNotificationTypeResponse',
|
57
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
58
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
59
|
+
'AzureServiceBusTypeResponse',
|
60
|
+
'AzureServiceBusNotificationType',
|
61
|
+
'EmailNotificationType',
|
62
|
+
'EmailNotificationTypeResponse',
|
63
|
+
'SmsNotificationType',
|
64
|
+
'SmsNotificationTypeResponse',
|
65
|
+
'WebhookNotificationType',
|
66
|
+
'WebhookNotificationTypeResponse',
|
67
|
+
|
68
|
+
# For workflow application classes
|
69
|
+
'CreateChildTasksAction',
|
70
|
+
'RunWorkerAction',
|
71
|
+
'TriggerParentTaskAction',
|
72
|
+
'CreateChildTasksActionResponse',
|
73
|
+
'RunWorkerActionResponse',
|
74
|
+
'TriggerParentTaskActionResponse',
|
75
|
+
'CreateNewTaskActivity',
|
76
|
+
'UpdateMatchingTasksActivity',
|
77
|
+
'CreateNewTaskActivityResponse',
|
78
|
+
'UpdateMatchingTasksActivityResponse',
|
79
|
+
'Fail',
|
80
|
+
'GroupReconciliation',
|
81
|
+
'HealthCheck',
|
82
|
+
'LuminesceView',
|
83
|
+
'SchedulerJob',
|
84
|
+
'Sleep',
|
85
|
+
'FailResponse',
|
86
|
+
'GroupReconciliationResponse',
|
87
|
+
'HealthCheckResponse',
|
88
|
+
'LuminesceViewResponse',
|
89
|
+
'SchedulerJobResponse',
|
90
|
+
'SleepResponse']:
|
91
|
+
return value
|
92
|
+
|
93
|
+
# Only validate the 'type' property of the class
|
94
|
+
if "instrument_event_type" != "type":
|
95
|
+
return value
|
96
|
+
|
45
97
|
if value not in ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent', 'UpdateDepositAmountEvent', 'LoanPrincipalRepaymentEvent', 'DepositInterestPaymentEvent', 'DepositCloseEvent'):
|
46
98
|
raise ValueError("must be one of enum values ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent', 'UpdateDepositAmountEvent', 'LoanPrincipalRepaymentEvent', 'DepositInterestPaymentEvent', 'DepositCloseEvent')")
|
47
99
|
return value
|
lusid/models/drawdown_event.py
CHANGED
@@ -37,6 +37,58 @@ class DrawdownEvent(InstrumentEvent):
|
|
37
37
|
@validator('instrument_event_type')
|
38
38
|
def instrument_event_type_validate_enum(cls, value):
|
39
39
|
"""Validates the enum"""
|
40
|
+
|
41
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
42
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
43
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
44
|
+
|
45
|
+
|
46
|
+
# check it's a class that uses the 'type' property as a discriminator
|
47
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
48
|
+
if 'DrawdownEvent' not in [
|
49
|
+
# For notification application classes
|
50
|
+
'AmazonSqsNotificationType',
|
51
|
+
'AmazonSqsNotificationTypeResponse',
|
52
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
53
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
54
|
+
'AzureServiceBusTypeResponse',
|
55
|
+
'AzureServiceBusNotificationType',
|
56
|
+
'EmailNotificationType',
|
57
|
+
'EmailNotificationTypeResponse',
|
58
|
+
'SmsNotificationType',
|
59
|
+
'SmsNotificationTypeResponse',
|
60
|
+
'WebhookNotificationType',
|
61
|
+
'WebhookNotificationTypeResponse',
|
62
|
+
|
63
|
+
# For workflow application classes
|
64
|
+
'CreateChildTasksAction',
|
65
|
+
'RunWorkerAction',
|
66
|
+
'TriggerParentTaskAction',
|
67
|
+
'CreateChildTasksActionResponse',
|
68
|
+
'RunWorkerActionResponse',
|
69
|
+
'TriggerParentTaskActionResponse',
|
70
|
+
'CreateNewTaskActivity',
|
71
|
+
'UpdateMatchingTasksActivity',
|
72
|
+
'CreateNewTaskActivityResponse',
|
73
|
+
'UpdateMatchingTasksActivityResponse',
|
74
|
+
'Fail',
|
75
|
+
'GroupReconciliation',
|
76
|
+
'HealthCheck',
|
77
|
+
'LuminesceView',
|
78
|
+
'SchedulerJob',
|
79
|
+
'Sleep',
|
80
|
+
'FailResponse',
|
81
|
+
'GroupReconciliationResponse',
|
82
|
+
'HealthCheckResponse',
|
83
|
+
'LuminesceViewResponse',
|
84
|
+
'SchedulerJobResponse',
|
85
|
+
'SleepResponse']:
|
86
|
+
return value
|
87
|
+
|
88
|
+
# Only validate the 'type' property of the class
|
89
|
+
if "instrument_event_type" != "type":
|
90
|
+
return value
|
91
|
+
|
40
92
|
if value not in ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent', 'UpdateDepositAmountEvent', 'LoanPrincipalRepaymentEvent', 'DepositInterestPaymentEvent', 'DepositCloseEvent'):
|
41
93
|
raise ValueError("must be one of enum values ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent', 'UpdateDepositAmountEvent', 'LoanPrincipalRepaymentEvent', 'DepositInterestPaymentEvent', 'DepositCloseEvent')")
|
42
94
|
return value
|
@@ -40,6 +40,58 @@ class EarlyRedemptionEvent(InstrumentEvent):
|
|
40
40
|
@validator('instrument_event_type')
|
41
41
|
def instrument_event_type_validate_enum(cls, value):
|
42
42
|
"""Validates the enum"""
|
43
|
+
|
44
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
45
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
46
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
47
|
+
|
48
|
+
|
49
|
+
# check it's a class that uses the 'type' property as a discriminator
|
50
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
51
|
+
if 'EarlyRedemptionEvent' not in [
|
52
|
+
# For notification application classes
|
53
|
+
'AmazonSqsNotificationType',
|
54
|
+
'AmazonSqsNotificationTypeResponse',
|
55
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
56
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
57
|
+
'AzureServiceBusTypeResponse',
|
58
|
+
'AzureServiceBusNotificationType',
|
59
|
+
'EmailNotificationType',
|
60
|
+
'EmailNotificationTypeResponse',
|
61
|
+
'SmsNotificationType',
|
62
|
+
'SmsNotificationTypeResponse',
|
63
|
+
'WebhookNotificationType',
|
64
|
+
'WebhookNotificationTypeResponse',
|
65
|
+
|
66
|
+
# For workflow application classes
|
67
|
+
'CreateChildTasksAction',
|
68
|
+
'RunWorkerAction',
|
69
|
+
'TriggerParentTaskAction',
|
70
|
+
'CreateChildTasksActionResponse',
|
71
|
+
'RunWorkerActionResponse',
|
72
|
+
'TriggerParentTaskActionResponse',
|
73
|
+
'CreateNewTaskActivity',
|
74
|
+
'UpdateMatchingTasksActivity',
|
75
|
+
'CreateNewTaskActivityResponse',
|
76
|
+
'UpdateMatchingTasksActivityResponse',
|
77
|
+
'Fail',
|
78
|
+
'GroupReconciliation',
|
79
|
+
'HealthCheck',
|
80
|
+
'LuminesceView',
|
81
|
+
'SchedulerJob',
|
82
|
+
'Sleep',
|
83
|
+
'FailResponse',
|
84
|
+
'GroupReconciliationResponse',
|
85
|
+
'HealthCheckResponse',
|
86
|
+
'LuminesceViewResponse',
|
87
|
+
'SchedulerJobResponse',
|
88
|
+
'SleepResponse']:
|
89
|
+
return value
|
90
|
+
|
91
|
+
# Only validate the 'type' property of the class
|
92
|
+
if "instrument_event_type" != "type":
|
93
|
+
return value
|
94
|
+
|
43
95
|
if value not in ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent', 'UpdateDepositAmountEvent', 'LoanPrincipalRepaymentEvent', 'DepositInterestPaymentEvent', 'DepositCloseEvent'):
|
44
96
|
raise ValueError("must be one of enum values ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent', 'UpdateDepositAmountEvent', 'LoanPrincipalRepaymentEvent', 'DepositInterestPaymentEvent', 'DepositCloseEvent')")
|
45
97
|
return value
|
@@ -32,6 +32,58 @@ class EconomicDependency(BaseModel):
|
|
32
32
|
@validator('dependency_type')
|
33
33
|
def dependency_type_validate_enum(cls, value):
|
34
34
|
"""Validates the enum"""
|
35
|
+
|
36
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
37
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
38
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
39
|
+
|
40
|
+
|
41
|
+
# check it's a class that uses the 'type' property as a discriminator
|
42
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
43
|
+
if 'EconomicDependency' not in [
|
44
|
+
# For notification application classes
|
45
|
+
'AmazonSqsNotificationType',
|
46
|
+
'AmazonSqsNotificationTypeResponse',
|
47
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
48
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
49
|
+
'AzureServiceBusTypeResponse',
|
50
|
+
'AzureServiceBusNotificationType',
|
51
|
+
'EmailNotificationType',
|
52
|
+
'EmailNotificationTypeResponse',
|
53
|
+
'SmsNotificationType',
|
54
|
+
'SmsNotificationTypeResponse',
|
55
|
+
'WebhookNotificationType',
|
56
|
+
'WebhookNotificationTypeResponse',
|
57
|
+
|
58
|
+
# For workflow application classes
|
59
|
+
'CreateChildTasksAction',
|
60
|
+
'RunWorkerAction',
|
61
|
+
'TriggerParentTaskAction',
|
62
|
+
'CreateChildTasksActionResponse',
|
63
|
+
'RunWorkerActionResponse',
|
64
|
+
'TriggerParentTaskActionResponse',
|
65
|
+
'CreateNewTaskActivity',
|
66
|
+
'UpdateMatchingTasksActivity',
|
67
|
+
'CreateNewTaskActivityResponse',
|
68
|
+
'UpdateMatchingTasksActivityResponse',
|
69
|
+
'Fail',
|
70
|
+
'GroupReconciliation',
|
71
|
+
'HealthCheck',
|
72
|
+
'LuminesceView',
|
73
|
+
'SchedulerJob',
|
74
|
+
'Sleep',
|
75
|
+
'FailResponse',
|
76
|
+
'GroupReconciliationResponse',
|
77
|
+
'HealthCheckResponse',
|
78
|
+
'LuminesceViewResponse',
|
79
|
+
'SchedulerJobResponse',
|
80
|
+
'SleepResponse']:
|
81
|
+
return value
|
82
|
+
|
83
|
+
# Only validate the 'type' property of the class
|
84
|
+
if "dependency_type" != "type":
|
85
|
+
return value
|
86
|
+
|
35
87
|
if value not in ('OpaqueDependency', 'CashDependency', 'DiscountingDependency', 'EquityCurveDependency', 'EquityVolDependency', 'FxDependency', 'FxForwardsDependency', 'FxVolDependency', 'IndexProjectionDependency', 'IrVolDependency', 'QuoteDependency', 'Vendor', 'CalendarDependency', 'InflationFixingDependency'):
|
36
88
|
raise ValueError("must be one of enum values ('OpaqueDependency', 'CashDependency', 'DiscountingDependency', 'EquityCurveDependency', 'EquityVolDependency', 'FxDependency', 'FxForwardsDependency', 'FxVolDependency', 'IndexProjectionDependency', 'IrVolDependency', 'QuoteDependency', 'Vendor', 'CalendarDependency', 'InflationFixingDependency')")
|
37
89
|
return value
|
@@ -33,6 +33,58 @@ class EmptyModelOptions(ModelOptions):
|
|
33
33
|
@validator('model_options_type')
|
34
34
|
def model_options_type_validate_enum(cls, value):
|
35
35
|
"""Validates the enum"""
|
36
|
+
|
37
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
38
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
39
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
40
|
+
|
41
|
+
|
42
|
+
# check it's a class that uses the 'type' property as a discriminator
|
43
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
44
|
+
if 'EmptyModelOptions' not in [
|
45
|
+
# For notification application classes
|
46
|
+
'AmazonSqsNotificationType',
|
47
|
+
'AmazonSqsNotificationTypeResponse',
|
48
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
49
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
50
|
+
'AzureServiceBusTypeResponse',
|
51
|
+
'AzureServiceBusNotificationType',
|
52
|
+
'EmailNotificationType',
|
53
|
+
'EmailNotificationTypeResponse',
|
54
|
+
'SmsNotificationType',
|
55
|
+
'SmsNotificationTypeResponse',
|
56
|
+
'WebhookNotificationType',
|
57
|
+
'WebhookNotificationTypeResponse',
|
58
|
+
|
59
|
+
# For workflow application classes
|
60
|
+
'CreateChildTasksAction',
|
61
|
+
'RunWorkerAction',
|
62
|
+
'TriggerParentTaskAction',
|
63
|
+
'CreateChildTasksActionResponse',
|
64
|
+
'RunWorkerActionResponse',
|
65
|
+
'TriggerParentTaskActionResponse',
|
66
|
+
'CreateNewTaskActivity',
|
67
|
+
'UpdateMatchingTasksActivity',
|
68
|
+
'CreateNewTaskActivityResponse',
|
69
|
+
'UpdateMatchingTasksActivityResponse',
|
70
|
+
'Fail',
|
71
|
+
'GroupReconciliation',
|
72
|
+
'HealthCheck',
|
73
|
+
'LuminesceView',
|
74
|
+
'SchedulerJob',
|
75
|
+
'Sleep',
|
76
|
+
'FailResponse',
|
77
|
+
'GroupReconciliationResponse',
|
78
|
+
'HealthCheckResponse',
|
79
|
+
'LuminesceViewResponse',
|
80
|
+
'SchedulerJobResponse',
|
81
|
+
'SleepResponse']:
|
82
|
+
return value
|
83
|
+
|
84
|
+
# Only validate the 'type' property of the class
|
85
|
+
if "model_options_type" != "type":
|
86
|
+
return value
|
87
|
+
|
36
88
|
if value not in ('Invalid', 'OpaqueModelOptions', 'EmptyModelOptions', 'IndexModelOptions', 'FxForwardModelOptions', 'FundingLegModelOptions', 'EquityModelOptions'):
|
37
89
|
raise ValueError("must be one of enum values ('Invalid', 'OpaqueModelOptions', 'EmptyModelOptions', 'IndexModelOptions', 'FxForwardModelOptions', 'FundingLegModelOptions', 'EquityModelOptions')")
|
38
90
|
return value
|
lusid/models/equity.py
CHANGED
@@ -39,6 +39,58 @@ class Equity(LusidInstrument):
|
|
39
39
|
@validator('instrument_type')
|
40
40
|
def instrument_type_validate_enum(cls, value):
|
41
41
|
"""Validates the enum"""
|
42
|
+
|
43
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
44
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
45
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
46
|
+
|
47
|
+
|
48
|
+
# check it's a class that uses the 'type' property as a discriminator
|
49
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
50
|
+
if 'Equity' not in [
|
51
|
+
# For notification application classes
|
52
|
+
'AmazonSqsNotificationType',
|
53
|
+
'AmazonSqsNotificationTypeResponse',
|
54
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
55
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
56
|
+
'AzureServiceBusTypeResponse',
|
57
|
+
'AzureServiceBusNotificationType',
|
58
|
+
'EmailNotificationType',
|
59
|
+
'EmailNotificationTypeResponse',
|
60
|
+
'SmsNotificationType',
|
61
|
+
'SmsNotificationTypeResponse',
|
62
|
+
'WebhookNotificationType',
|
63
|
+
'WebhookNotificationTypeResponse',
|
64
|
+
|
65
|
+
# For workflow application classes
|
66
|
+
'CreateChildTasksAction',
|
67
|
+
'RunWorkerAction',
|
68
|
+
'TriggerParentTaskAction',
|
69
|
+
'CreateChildTasksActionResponse',
|
70
|
+
'RunWorkerActionResponse',
|
71
|
+
'TriggerParentTaskActionResponse',
|
72
|
+
'CreateNewTaskActivity',
|
73
|
+
'UpdateMatchingTasksActivity',
|
74
|
+
'CreateNewTaskActivityResponse',
|
75
|
+
'UpdateMatchingTasksActivityResponse',
|
76
|
+
'Fail',
|
77
|
+
'GroupReconciliation',
|
78
|
+
'HealthCheck',
|
79
|
+
'LuminesceView',
|
80
|
+
'SchedulerJob',
|
81
|
+
'Sleep',
|
82
|
+
'FailResponse',
|
83
|
+
'GroupReconciliationResponse',
|
84
|
+
'HealthCheckResponse',
|
85
|
+
'LuminesceViewResponse',
|
86
|
+
'SchedulerJobResponse',
|
87
|
+
'SleepResponse']:
|
88
|
+
return value
|
89
|
+
|
90
|
+
# Only validate the 'type' property of the class
|
91
|
+
if "instrument_type" != "type":
|
92
|
+
return value
|
93
|
+
|
42
94
|
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', 'MasteredInstrument', 'LoanFacility', 'FlexibleDeposit'):
|
43
95
|
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', 'MasteredInstrument', 'LoanFacility', 'FlexibleDeposit')")
|
44
96
|
return value
|
@@ -39,6 +39,58 @@ class EquityCurveByPricesData(ComplexMarketData):
|
|
39
39
|
@validator('market_data_type')
|
40
40
|
def market_data_type_validate_enum(cls, value):
|
41
41
|
"""Validates the enum"""
|
42
|
+
|
43
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
44
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
45
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
46
|
+
|
47
|
+
|
48
|
+
# check it's a class that uses the 'type' property as a discriminator
|
49
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
50
|
+
if 'EquityCurveByPricesData' not in [
|
51
|
+
# For notification application classes
|
52
|
+
'AmazonSqsNotificationType',
|
53
|
+
'AmazonSqsNotificationTypeResponse',
|
54
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
55
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
56
|
+
'AzureServiceBusTypeResponse',
|
57
|
+
'AzureServiceBusNotificationType',
|
58
|
+
'EmailNotificationType',
|
59
|
+
'EmailNotificationTypeResponse',
|
60
|
+
'SmsNotificationType',
|
61
|
+
'SmsNotificationTypeResponse',
|
62
|
+
'WebhookNotificationType',
|
63
|
+
'WebhookNotificationTypeResponse',
|
64
|
+
|
65
|
+
# For workflow application classes
|
66
|
+
'CreateChildTasksAction',
|
67
|
+
'RunWorkerAction',
|
68
|
+
'TriggerParentTaskAction',
|
69
|
+
'CreateChildTasksActionResponse',
|
70
|
+
'RunWorkerActionResponse',
|
71
|
+
'TriggerParentTaskActionResponse',
|
72
|
+
'CreateNewTaskActivity',
|
73
|
+
'UpdateMatchingTasksActivity',
|
74
|
+
'CreateNewTaskActivityResponse',
|
75
|
+
'UpdateMatchingTasksActivityResponse',
|
76
|
+
'Fail',
|
77
|
+
'GroupReconciliation',
|
78
|
+
'HealthCheck',
|
79
|
+
'LuminesceView',
|
80
|
+
'SchedulerJob',
|
81
|
+
'Sleep',
|
82
|
+
'FailResponse',
|
83
|
+
'GroupReconciliationResponse',
|
84
|
+
'HealthCheckResponse',
|
85
|
+
'LuminesceViewResponse',
|
86
|
+
'SchedulerJobResponse',
|
87
|
+
'SleepResponse']:
|
88
|
+
return value
|
89
|
+
|
90
|
+
# Only validate the 'type' property of the class
|
91
|
+
if "market_data_type" != "type":
|
92
|
+
return value
|
93
|
+
|
42
94
|
if value not in ('DiscountFactorCurveData', 'EquityVolSurfaceData', 'FxVolSurfaceData', 'IrVolCubeData', 'OpaqueMarketData', 'YieldCurveData', 'FxForwardCurveData', 'FxForwardPipsCurveData', 'FxForwardTenorCurveData', 'FxForwardTenorPipsCurveData', 'FxForwardCurveByQuoteReference', 'CreditSpreadCurveData', 'EquityCurveByPricesData', 'ConstantVolatilitySurface'):
|
43
95
|
raise ValueError("must be one of enum values ('DiscountFactorCurveData', 'EquityVolSurfaceData', 'FxVolSurfaceData', 'IrVolCubeData', 'OpaqueMarketData', 'YieldCurveData', 'FxForwardCurveData', 'FxForwardPipsCurveData', 'FxForwardTenorCurveData', 'FxForwardTenorPipsCurveData', 'FxForwardCurveByQuoteReference', 'CreditSpreadCurveData', 'EquityCurveByPricesData', 'ConstantVolatilitySurface')")
|
44
96
|
return value
|