lusid-sdk 2.1.748__py3-none-any.whl → 2.1.750__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/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 +53 -1
- 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 +53 -1
- 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_line.py +4 -4
- 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.748.dist-info → lusid_sdk-2.1.750.dist-info}/METADATA +1 -1
- {lusid_sdk-2.1.748.dist-info → lusid_sdk-2.1.750.dist-info}/RECORD +278 -278
- {lusid_sdk-2.1.748.dist-info → lusid_sdk-2.1.750.dist-info}/WHEEL +0 -0
@@ -42,6 +42,58 @@ class CreateDataTypeRequest(BaseModel):
|
|
42
42
|
@validator('type_value_range')
|
43
43
|
def type_value_range_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 'CreateDataTypeRequest' 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 "type_value_range" != "type":
|
95
|
+
return value
|
96
|
+
|
45
97
|
if value not in ('Open', 'Closed'):
|
46
98
|
raise ValueError("must be one of enum values ('Open', 'Closed')")
|
47
99
|
return value
|
@@ -49,6 +101,58 @@ class CreateDataTypeRequest(BaseModel):
|
|
49
101
|
@validator('value_type')
|
50
102
|
def value_type_validate_enum(cls, value):
|
51
103
|
"""Validates the enum"""
|
104
|
+
|
105
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
106
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
107
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
108
|
+
|
109
|
+
|
110
|
+
# check it's a class that uses the 'type' property as a discriminator
|
111
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
112
|
+
if 'CreateDataTypeRequest' not in [
|
113
|
+
# For notification application classes
|
114
|
+
'AmazonSqsNotificationType',
|
115
|
+
'AmazonSqsNotificationTypeResponse',
|
116
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
117
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
118
|
+
'AzureServiceBusTypeResponse',
|
119
|
+
'AzureServiceBusNotificationType',
|
120
|
+
'EmailNotificationType',
|
121
|
+
'EmailNotificationTypeResponse',
|
122
|
+
'SmsNotificationType',
|
123
|
+
'SmsNotificationTypeResponse',
|
124
|
+
'WebhookNotificationType',
|
125
|
+
'WebhookNotificationTypeResponse',
|
126
|
+
|
127
|
+
# For workflow application classes
|
128
|
+
'CreateChildTasksAction',
|
129
|
+
'RunWorkerAction',
|
130
|
+
'TriggerParentTaskAction',
|
131
|
+
'CreateChildTasksActionResponse',
|
132
|
+
'RunWorkerActionResponse',
|
133
|
+
'TriggerParentTaskActionResponse',
|
134
|
+
'CreateNewTaskActivity',
|
135
|
+
'UpdateMatchingTasksActivity',
|
136
|
+
'CreateNewTaskActivityResponse',
|
137
|
+
'UpdateMatchingTasksActivityResponse',
|
138
|
+
'Fail',
|
139
|
+
'GroupReconciliation',
|
140
|
+
'HealthCheck',
|
141
|
+
'LuminesceView',
|
142
|
+
'SchedulerJob',
|
143
|
+
'Sleep',
|
144
|
+
'FailResponse',
|
145
|
+
'GroupReconciliationResponse',
|
146
|
+
'HealthCheckResponse',
|
147
|
+
'LuminesceViewResponse',
|
148
|
+
'SchedulerJobResponse',
|
149
|
+
'SleepResponse']:
|
150
|
+
return value
|
151
|
+
|
152
|
+
# Only validate the 'type' property of the class
|
153
|
+
if "value_type" != "type":
|
154
|
+
return value
|
155
|
+
|
52
156
|
if value not in ('String', 'Int', 'Decimal', 'DateTime', 'Boolean', 'Map', 'List', 'PropertyArray', 'Percentage', 'Code', 'Id', 'Uri', 'CurrencyAndAmount', 'TradePrice', 'Currency', 'MetricValue', 'ResourceId', 'ResultValue', 'CutLocalTime', 'DateOrCutLabel', 'UnindexedText'):
|
53
157
|
raise ValueError("must be one of enum values ('String', 'Int', 'Decimal', 'DateTime', 'Boolean', 'Map', 'List', 'PropertyArray', 'Percentage', 'Code', 'Id', 'Uri', 'CurrencyAndAmount', 'TradePrice', 'Currency', 'MetricValue', 'ResourceId', 'ResultValue', 'CutLocalTime', 'DateOrCutLabel', 'UnindexedText')")
|
54
158
|
return value
|
@@ -56,6 +160,58 @@ class CreateDataTypeRequest(BaseModel):
|
|
56
160
|
@validator('unit_schema')
|
57
161
|
def unit_schema_validate_enum(cls, value):
|
58
162
|
"""Validates the enum"""
|
163
|
+
|
164
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
165
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
166
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
167
|
+
|
168
|
+
|
169
|
+
# check it's a class that uses the 'type' property as a discriminator
|
170
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
171
|
+
if 'CreateDataTypeRequest' not in [
|
172
|
+
# For notification application classes
|
173
|
+
'AmazonSqsNotificationType',
|
174
|
+
'AmazonSqsNotificationTypeResponse',
|
175
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
176
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
177
|
+
'AzureServiceBusTypeResponse',
|
178
|
+
'AzureServiceBusNotificationType',
|
179
|
+
'EmailNotificationType',
|
180
|
+
'EmailNotificationTypeResponse',
|
181
|
+
'SmsNotificationType',
|
182
|
+
'SmsNotificationTypeResponse',
|
183
|
+
'WebhookNotificationType',
|
184
|
+
'WebhookNotificationTypeResponse',
|
185
|
+
|
186
|
+
# For workflow application classes
|
187
|
+
'CreateChildTasksAction',
|
188
|
+
'RunWorkerAction',
|
189
|
+
'TriggerParentTaskAction',
|
190
|
+
'CreateChildTasksActionResponse',
|
191
|
+
'RunWorkerActionResponse',
|
192
|
+
'TriggerParentTaskActionResponse',
|
193
|
+
'CreateNewTaskActivity',
|
194
|
+
'UpdateMatchingTasksActivity',
|
195
|
+
'CreateNewTaskActivityResponse',
|
196
|
+
'UpdateMatchingTasksActivityResponse',
|
197
|
+
'Fail',
|
198
|
+
'GroupReconciliation',
|
199
|
+
'HealthCheck',
|
200
|
+
'LuminesceView',
|
201
|
+
'SchedulerJob',
|
202
|
+
'Sleep',
|
203
|
+
'FailResponse',
|
204
|
+
'GroupReconciliationResponse',
|
205
|
+
'HealthCheckResponse',
|
206
|
+
'LuminesceViewResponse',
|
207
|
+
'SchedulerJobResponse',
|
208
|
+
'SleepResponse']:
|
209
|
+
return value
|
210
|
+
|
211
|
+
# Only validate the 'type' property of the class
|
212
|
+
if "unit_schema" != "type":
|
213
|
+
return value
|
214
|
+
|
59
215
|
if value is None:
|
60
216
|
return value
|
61
217
|
|
@@ -39,6 +39,58 @@ class CreateDerivedPropertyDefinitionRequest(BaseModel):
|
|
39
39
|
@validator('domain')
|
40
40
|
def domain_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 'CreateDerivedPropertyDefinitionRequest' 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 "domain" != "type":
|
92
|
+
return value
|
93
|
+
|
42
94
|
if value not in ('NotDefined', 'Transaction', 'Portfolio', 'Holding', 'ReferenceHolding', 'TransactionConfiguration', 'Instrument', 'CutLabelDefinition', 'Analytic', 'PortfolioGroup', 'Person', 'AccessMetadata', 'Order', 'UnitResult', 'MarketData', 'ConfigurationRecipe', 'Allocation', 'Calendar', 'LegalEntity', 'Placement', 'Execution', 'Block', 'Participation', 'Package', 'OrderInstruction', 'NextBestAction', 'CustomEntity', 'InstrumentEvent', 'Account', 'ChartOfAccounts', 'CustodianAccount', 'Abor', 'AborConfiguration', 'Fund', 'FundConfiguration', 'Fee', 'Reconciliation', 'PropertyDefinition', 'Compliance', 'DiaryEntry', 'Leg', 'DerivedValuation', 'Timeline', 'ClosedPeriod', 'AddressKeyDefinition', 'AmortisationRuleSet', 'AnalyticsSetInventory', 'AtomUnitResult', 'CleardownModule', 'ComplexMarketData', 'ComplianceRunSummary', 'ComplianceRule', 'ComplianceRunInfo', 'CorporateActionSource', 'CounterpartyAgreement', 'CustomEntityDefinition', 'DataType', 'Dialect', 'EventHandler', 'GeneralLedgerProfile', 'PostingModule', 'Quote', 'RecipeComposer', 'ReconciliationRunBreak', 'ReferenceList', 'RelationDefinition', 'ReturnBlockIndex', 'SRSDocument', 'SRSIndex', 'TransactionTemplate', 'TransactionTemplateScope', 'TransactionType', 'TransactionTypeConfig', 'TranslationScript', 'TaskDefinition', 'TaskInstance', 'Worker', 'StagingRuleSet', 'IdentifierDefinition'):
|
43
95
|
raise ValueError("must be one of enum values ('NotDefined', 'Transaction', 'Portfolio', 'Holding', 'ReferenceHolding', 'TransactionConfiguration', 'Instrument', 'CutLabelDefinition', 'Analytic', 'PortfolioGroup', 'Person', 'AccessMetadata', 'Order', 'UnitResult', 'MarketData', 'ConfigurationRecipe', 'Allocation', 'Calendar', 'LegalEntity', 'Placement', 'Execution', 'Block', 'Participation', 'Package', 'OrderInstruction', 'NextBestAction', 'CustomEntity', 'InstrumentEvent', 'Account', 'ChartOfAccounts', 'CustodianAccount', 'Abor', 'AborConfiguration', 'Fund', 'FundConfiguration', 'Fee', 'Reconciliation', 'PropertyDefinition', 'Compliance', 'DiaryEntry', 'Leg', 'DerivedValuation', 'Timeline', 'ClosedPeriod', 'AddressKeyDefinition', 'AmortisationRuleSet', 'AnalyticsSetInventory', 'AtomUnitResult', 'CleardownModule', 'ComplexMarketData', 'ComplianceRunSummary', 'ComplianceRule', 'ComplianceRunInfo', 'CorporateActionSource', 'CounterpartyAgreement', 'CustomEntityDefinition', 'DataType', 'Dialect', 'EventHandler', 'GeneralLedgerProfile', 'PostingModule', 'Quote', 'RecipeComposer', 'ReconciliationRunBreak', 'ReferenceList', 'RelationDefinition', 'ReturnBlockIndex', 'SRSDocument', 'SRSIndex', 'TransactionTemplate', 'TransactionTemplateScope', 'TransactionType', 'TransactionTypeConfig', 'TranslationScript', 'TaskDefinition', 'TaskInstance', 'Worker', 'StagingRuleSet', 'IdentifierDefinition')")
|
44
96
|
return value
|
@@ -46,6 +46,58 @@ class CreateDerivedTransactionPortfolioRequest(BaseModel):
|
|
46
46
|
@validator('accounting_method')
|
47
47
|
def accounting_method_validate_enum(cls, value):
|
48
48
|
"""Validates the enum"""
|
49
|
+
|
50
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
51
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
52
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
53
|
+
|
54
|
+
|
55
|
+
# check it's a class that uses the 'type' property as a discriminator
|
56
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
57
|
+
if 'CreateDerivedTransactionPortfolioRequest' not in [
|
58
|
+
# For notification application classes
|
59
|
+
'AmazonSqsNotificationType',
|
60
|
+
'AmazonSqsNotificationTypeResponse',
|
61
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
62
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
63
|
+
'AzureServiceBusTypeResponse',
|
64
|
+
'AzureServiceBusNotificationType',
|
65
|
+
'EmailNotificationType',
|
66
|
+
'EmailNotificationTypeResponse',
|
67
|
+
'SmsNotificationType',
|
68
|
+
'SmsNotificationTypeResponse',
|
69
|
+
'WebhookNotificationType',
|
70
|
+
'WebhookNotificationTypeResponse',
|
71
|
+
|
72
|
+
# For workflow application classes
|
73
|
+
'CreateChildTasksAction',
|
74
|
+
'RunWorkerAction',
|
75
|
+
'TriggerParentTaskAction',
|
76
|
+
'CreateChildTasksActionResponse',
|
77
|
+
'RunWorkerActionResponse',
|
78
|
+
'TriggerParentTaskActionResponse',
|
79
|
+
'CreateNewTaskActivity',
|
80
|
+
'UpdateMatchingTasksActivity',
|
81
|
+
'CreateNewTaskActivityResponse',
|
82
|
+
'UpdateMatchingTasksActivityResponse',
|
83
|
+
'Fail',
|
84
|
+
'GroupReconciliation',
|
85
|
+
'HealthCheck',
|
86
|
+
'LuminesceView',
|
87
|
+
'SchedulerJob',
|
88
|
+
'Sleep',
|
89
|
+
'FailResponse',
|
90
|
+
'GroupReconciliationResponse',
|
91
|
+
'HealthCheckResponse',
|
92
|
+
'LuminesceViewResponse',
|
93
|
+
'SchedulerJobResponse',
|
94
|
+
'SleepResponse']:
|
95
|
+
return value
|
96
|
+
|
97
|
+
# Only validate the 'type' property of the class
|
98
|
+
if "accounting_method" != "type":
|
99
|
+
return value
|
100
|
+
|
49
101
|
if value is None:
|
50
102
|
return value
|
51
103
|
|
@@ -40,6 +40,58 @@ class CreateIdentifierDefinitionRequest(BaseModel):
|
|
40
40
|
@validator('domain')
|
41
41
|
def domain_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 'CreateIdentifierDefinitionRequest' 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 "domain" != "type":
|
93
|
+
return value
|
94
|
+
|
43
95
|
if value not in ('NotDefined', 'Transaction', 'Portfolio', 'Holding', 'ReferenceHolding', 'TransactionConfiguration', 'Instrument', 'CutLabelDefinition', 'Analytic', 'PortfolioGroup', 'Person', 'AccessMetadata', 'Order', 'UnitResult', 'MarketData', 'ConfigurationRecipe', 'Allocation', 'Calendar', 'LegalEntity', 'Placement', 'Execution', 'Block', 'Participation', 'Package', 'OrderInstruction', 'NextBestAction', 'CustomEntity', 'InstrumentEvent', 'Account', 'ChartOfAccounts', 'CustodianAccount', 'Abor', 'AborConfiguration', 'Fund', 'FundConfiguration', 'Fee', 'Reconciliation', 'PropertyDefinition', 'Compliance', 'DiaryEntry', 'Leg', 'DerivedValuation', 'Timeline', 'ClosedPeriod', 'AddressKeyDefinition', 'AmortisationRuleSet', 'AnalyticsSetInventory', 'AtomUnitResult', 'CleardownModule', 'ComplexMarketData', 'ComplianceRunSummary', 'ComplianceRule', 'ComplianceRunInfo', 'CorporateActionSource', 'CounterpartyAgreement', 'CustomEntityDefinition', 'DataType', 'Dialect', 'EventHandler', 'GeneralLedgerProfile', 'PostingModule', 'Quote', 'RecipeComposer', 'ReconciliationRunBreak', 'ReferenceList', 'RelationDefinition', 'ReturnBlockIndex', 'SRSDocument', 'SRSIndex', 'TransactionTemplate', 'TransactionTemplateScope', 'TransactionType', 'TransactionTypeConfig', 'TranslationScript', 'TaskDefinition', 'TaskInstance', 'Worker', 'StagingRuleSet', 'IdentifierDefinition'):
|
44
96
|
raise ValueError("must be one of enum values ('NotDefined', 'Transaction', 'Portfolio', 'Holding', 'ReferenceHolding', 'TransactionConfiguration', 'Instrument', 'CutLabelDefinition', 'Analytic', 'PortfolioGroup', 'Person', 'AccessMetadata', 'Order', 'UnitResult', 'MarketData', 'ConfigurationRecipe', 'Allocation', 'Calendar', 'LegalEntity', 'Placement', 'Execution', 'Block', 'Participation', 'Package', 'OrderInstruction', 'NextBestAction', 'CustomEntity', 'InstrumentEvent', 'Account', 'ChartOfAccounts', 'CustodianAccount', 'Abor', 'AborConfiguration', 'Fund', 'FundConfiguration', 'Fee', 'Reconciliation', 'PropertyDefinition', 'Compliance', 'DiaryEntry', 'Leg', 'DerivedValuation', 'Timeline', 'ClosedPeriod', 'AddressKeyDefinition', 'AmortisationRuleSet', 'AnalyticsSetInventory', 'AtomUnitResult', 'CleardownModule', 'ComplexMarketData', 'ComplianceRunSummary', 'ComplianceRule', 'ComplianceRunInfo', 'CorporateActionSource', 'CounterpartyAgreement', 'CustomEntityDefinition', 'DataType', 'Dialect', 'EventHandler', 'GeneralLedgerProfile', 'PostingModule', 'Quote', 'RecipeComposer', 'ReconciliationRunBreak', 'ReferenceList', 'RelationDefinition', 'ReturnBlockIndex', 'SRSDocument', 'SRSIndex', 'TransactionTemplate', 'TransactionTemplateScope', 'TransactionType', 'TransactionTypeConfig', 'TranslationScript', 'TaskDefinition', 'TaskInstance', 'Worker', 'StagingRuleSet', 'IdentifierDefinition')")
|
45
97
|
return value
|
@@ -47,6 +99,58 @@ class CreateIdentifierDefinitionRequest(BaseModel):
|
|
47
99
|
@validator('life_time')
|
48
100
|
def life_time_validate_enum(cls, value):
|
49
101
|
"""Validates the enum"""
|
102
|
+
|
103
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
104
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
105
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
106
|
+
|
107
|
+
|
108
|
+
# check it's a class that uses the 'type' property as a discriminator
|
109
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
110
|
+
if 'CreateIdentifierDefinitionRequest' not in [
|
111
|
+
# For notification application classes
|
112
|
+
'AmazonSqsNotificationType',
|
113
|
+
'AmazonSqsNotificationTypeResponse',
|
114
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
115
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
116
|
+
'AzureServiceBusTypeResponse',
|
117
|
+
'AzureServiceBusNotificationType',
|
118
|
+
'EmailNotificationType',
|
119
|
+
'EmailNotificationTypeResponse',
|
120
|
+
'SmsNotificationType',
|
121
|
+
'SmsNotificationTypeResponse',
|
122
|
+
'WebhookNotificationType',
|
123
|
+
'WebhookNotificationTypeResponse',
|
124
|
+
|
125
|
+
# For workflow application classes
|
126
|
+
'CreateChildTasksAction',
|
127
|
+
'RunWorkerAction',
|
128
|
+
'TriggerParentTaskAction',
|
129
|
+
'CreateChildTasksActionResponse',
|
130
|
+
'RunWorkerActionResponse',
|
131
|
+
'TriggerParentTaskActionResponse',
|
132
|
+
'CreateNewTaskActivity',
|
133
|
+
'UpdateMatchingTasksActivity',
|
134
|
+
'CreateNewTaskActivityResponse',
|
135
|
+
'UpdateMatchingTasksActivityResponse',
|
136
|
+
'Fail',
|
137
|
+
'GroupReconciliation',
|
138
|
+
'HealthCheck',
|
139
|
+
'LuminesceView',
|
140
|
+
'SchedulerJob',
|
141
|
+
'Sleep',
|
142
|
+
'FailResponse',
|
143
|
+
'GroupReconciliationResponse',
|
144
|
+
'HealthCheckResponse',
|
145
|
+
'LuminesceViewResponse',
|
146
|
+
'SchedulerJobResponse',
|
147
|
+
'SleepResponse']:
|
148
|
+
return value
|
149
|
+
|
150
|
+
# Only validate the 'type' property of the class
|
151
|
+
if "life_time" != "type":
|
152
|
+
return value
|
153
|
+
|
50
154
|
if value not in ('Perpetual', 'TimeVariant'):
|
51
155
|
raise ValueError("must be one of enum values ('Perpetual', 'TimeVariant')")
|
52
156
|
return value
|
@@ -41,6 +41,58 @@ class CreatePropertyDefinitionRequest(BaseModel):
|
|
41
41
|
@validator('domain')
|
42
42
|
def domain_validate_enum(cls, value):
|
43
43
|
"""Validates the enum"""
|
44
|
+
|
45
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
46
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
47
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
48
|
+
|
49
|
+
|
50
|
+
# check it's a class that uses the 'type' property as a discriminator
|
51
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
52
|
+
if 'CreatePropertyDefinitionRequest' not in [
|
53
|
+
# For notification application classes
|
54
|
+
'AmazonSqsNotificationType',
|
55
|
+
'AmazonSqsNotificationTypeResponse',
|
56
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
57
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
58
|
+
'AzureServiceBusTypeResponse',
|
59
|
+
'AzureServiceBusNotificationType',
|
60
|
+
'EmailNotificationType',
|
61
|
+
'EmailNotificationTypeResponse',
|
62
|
+
'SmsNotificationType',
|
63
|
+
'SmsNotificationTypeResponse',
|
64
|
+
'WebhookNotificationType',
|
65
|
+
'WebhookNotificationTypeResponse',
|
66
|
+
|
67
|
+
# For workflow application classes
|
68
|
+
'CreateChildTasksAction',
|
69
|
+
'RunWorkerAction',
|
70
|
+
'TriggerParentTaskAction',
|
71
|
+
'CreateChildTasksActionResponse',
|
72
|
+
'RunWorkerActionResponse',
|
73
|
+
'TriggerParentTaskActionResponse',
|
74
|
+
'CreateNewTaskActivity',
|
75
|
+
'UpdateMatchingTasksActivity',
|
76
|
+
'CreateNewTaskActivityResponse',
|
77
|
+
'UpdateMatchingTasksActivityResponse',
|
78
|
+
'Fail',
|
79
|
+
'GroupReconciliation',
|
80
|
+
'HealthCheck',
|
81
|
+
'LuminesceView',
|
82
|
+
'SchedulerJob',
|
83
|
+
'Sleep',
|
84
|
+
'FailResponse',
|
85
|
+
'GroupReconciliationResponse',
|
86
|
+
'HealthCheckResponse',
|
87
|
+
'LuminesceViewResponse',
|
88
|
+
'SchedulerJobResponse',
|
89
|
+
'SleepResponse']:
|
90
|
+
return value
|
91
|
+
|
92
|
+
# Only validate the 'type' property of the class
|
93
|
+
if "domain" != "type":
|
94
|
+
return value
|
95
|
+
|
44
96
|
if value not in ('NotDefined', 'Transaction', 'Portfolio', 'Holding', 'ReferenceHolding', 'TransactionConfiguration', 'Instrument', 'CutLabelDefinition', 'Analytic', 'PortfolioGroup', 'Person', 'AccessMetadata', 'Order', 'UnitResult', 'MarketData', 'ConfigurationRecipe', 'Allocation', 'Calendar', 'LegalEntity', 'Placement', 'Execution', 'Block', 'Participation', 'Package', 'OrderInstruction', 'NextBestAction', 'CustomEntity', 'InstrumentEvent', 'Account', 'ChartOfAccounts', 'CustodianAccount', 'Abor', 'AborConfiguration', 'Fund', 'FundConfiguration', 'Fee', 'Reconciliation', 'PropertyDefinition', 'Compliance', 'DiaryEntry', 'Leg', 'DerivedValuation', 'Timeline', 'ClosedPeriod', 'AddressKeyDefinition', 'AmortisationRuleSet', 'AnalyticsSetInventory', 'AtomUnitResult', 'CleardownModule', 'ComplexMarketData', 'ComplianceRunSummary', 'ComplianceRule', 'ComplianceRunInfo', 'CorporateActionSource', 'CounterpartyAgreement', 'CustomEntityDefinition', 'DataType', 'Dialect', 'EventHandler', 'GeneralLedgerProfile', 'PostingModule', 'Quote', 'RecipeComposer', 'ReconciliationRunBreak', 'ReferenceList', 'RelationDefinition', 'ReturnBlockIndex', 'SRSDocument', 'SRSIndex', 'TransactionTemplate', 'TransactionTemplateScope', 'TransactionType', 'TransactionTypeConfig', 'TranslationScript', 'TaskDefinition', 'TaskInstance', 'Worker', 'StagingRuleSet', 'IdentifierDefinition'):
|
45
97
|
raise ValueError("must be one of enum values ('NotDefined', 'Transaction', 'Portfolio', 'Holding', 'ReferenceHolding', 'TransactionConfiguration', 'Instrument', 'CutLabelDefinition', 'Analytic', 'PortfolioGroup', 'Person', 'AccessMetadata', 'Order', 'UnitResult', 'MarketData', 'ConfigurationRecipe', 'Allocation', 'Calendar', 'LegalEntity', 'Placement', 'Execution', 'Block', 'Participation', 'Package', 'OrderInstruction', 'NextBestAction', 'CustomEntity', 'InstrumentEvent', 'Account', 'ChartOfAccounts', 'CustodianAccount', 'Abor', 'AborConfiguration', 'Fund', 'FundConfiguration', 'Fee', 'Reconciliation', 'PropertyDefinition', 'Compliance', 'DiaryEntry', 'Leg', 'DerivedValuation', 'Timeline', 'ClosedPeriod', 'AddressKeyDefinition', 'AmortisationRuleSet', 'AnalyticsSetInventory', 'AtomUnitResult', 'CleardownModule', 'ComplexMarketData', 'ComplianceRunSummary', 'ComplianceRule', 'ComplianceRunInfo', 'CorporateActionSource', 'CounterpartyAgreement', 'CustomEntityDefinition', 'DataType', 'Dialect', 'EventHandler', 'GeneralLedgerProfile', 'PostingModule', 'Quote', 'RecipeComposer', 'ReconciliationRunBreak', 'ReferenceList', 'RelationDefinition', 'ReturnBlockIndex', 'SRSDocument', 'SRSIndex', 'TransactionTemplate', 'TransactionTemplateScope', 'TransactionType', 'TransactionTypeConfig', 'TranslationScript', 'TaskDefinition', 'TaskInstance', 'Worker', 'StagingRuleSet', 'IdentifierDefinition')")
|
46
98
|
return value
|
@@ -48,6 +100,58 @@ class CreatePropertyDefinitionRequest(BaseModel):
|
|
48
100
|
@validator('life_time')
|
49
101
|
def life_time_validate_enum(cls, value):
|
50
102
|
"""Validates the enum"""
|
103
|
+
|
104
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
105
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
106
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
107
|
+
|
108
|
+
|
109
|
+
# check it's a class that uses the 'type' property as a discriminator
|
110
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
111
|
+
if 'CreatePropertyDefinitionRequest' not in [
|
112
|
+
# For notification application classes
|
113
|
+
'AmazonSqsNotificationType',
|
114
|
+
'AmazonSqsNotificationTypeResponse',
|
115
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
116
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
117
|
+
'AzureServiceBusTypeResponse',
|
118
|
+
'AzureServiceBusNotificationType',
|
119
|
+
'EmailNotificationType',
|
120
|
+
'EmailNotificationTypeResponse',
|
121
|
+
'SmsNotificationType',
|
122
|
+
'SmsNotificationTypeResponse',
|
123
|
+
'WebhookNotificationType',
|
124
|
+
'WebhookNotificationTypeResponse',
|
125
|
+
|
126
|
+
# For workflow application classes
|
127
|
+
'CreateChildTasksAction',
|
128
|
+
'RunWorkerAction',
|
129
|
+
'TriggerParentTaskAction',
|
130
|
+
'CreateChildTasksActionResponse',
|
131
|
+
'RunWorkerActionResponse',
|
132
|
+
'TriggerParentTaskActionResponse',
|
133
|
+
'CreateNewTaskActivity',
|
134
|
+
'UpdateMatchingTasksActivity',
|
135
|
+
'CreateNewTaskActivityResponse',
|
136
|
+
'UpdateMatchingTasksActivityResponse',
|
137
|
+
'Fail',
|
138
|
+
'GroupReconciliation',
|
139
|
+
'HealthCheck',
|
140
|
+
'LuminesceView',
|
141
|
+
'SchedulerJob',
|
142
|
+
'Sleep',
|
143
|
+
'FailResponse',
|
144
|
+
'GroupReconciliationResponse',
|
145
|
+
'HealthCheckResponse',
|
146
|
+
'LuminesceViewResponse',
|
147
|
+
'SchedulerJobResponse',
|
148
|
+
'SleepResponse']:
|
149
|
+
return value
|
150
|
+
|
151
|
+
# Only validate the 'type' property of the class
|
152
|
+
if "life_time" != "type":
|
153
|
+
return value
|
154
|
+
|
51
155
|
if value is None:
|
52
156
|
return value
|
53
157
|
|
@@ -48,6 +48,58 @@ class CreateSimplePositionPortfolioRequest(BaseModel):
|
|
48
48
|
@validator('accounting_method')
|
49
49
|
def accounting_method_validate_enum(cls, value):
|
50
50
|
"""Validates the enum"""
|
51
|
+
|
52
|
+
# Finbourne have removed enum validation on all models, except for this use case:
|
53
|
+
# Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
|
54
|
+
# During instantiation, the value of 'type' is checked against the enum values,
|
55
|
+
|
56
|
+
|
57
|
+
# check it's a class that uses the 'type' property as a discriminator
|
58
|
+
# list of classes can be found by searching for 'actual_instance: Union[' in the generated code
|
59
|
+
if 'CreateSimplePositionPortfolioRequest' not in [
|
60
|
+
# For notification application classes
|
61
|
+
'AmazonSqsNotificationType',
|
62
|
+
'AmazonSqsNotificationTypeResponse',
|
63
|
+
'AmazonSqsPrincipalAuthNotificationType',
|
64
|
+
'AmazonSqsPrincipalAuthNotificationTypeResponse',
|
65
|
+
'AzureServiceBusTypeResponse',
|
66
|
+
'AzureServiceBusNotificationType',
|
67
|
+
'EmailNotificationType',
|
68
|
+
'EmailNotificationTypeResponse',
|
69
|
+
'SmsNotificationType',
|
70
|
+
'SmsNotificationTypeResponse',
|
71
|
+
'WebhookNotificationType',
|
72
|
+
'WebhookNotificationTypeResponse',
|
73
|
+
|
74
|
+
# For workflow application classes
|
75
|
+
'CreateChildTasksAction',
|
76
|
+
'RunWorkerAction',
|
77
|
+
'TriggerParentTaskAction',
|
78
|
+
'CreateChildTasksActionResponse',
|
79
|
+
'RunWorkerActionResponse',
|
80
|
+
'TriggerParentTaskActionResponse',
|
81
|
+
'CreateNewTaskActivity',
|
82
|
+
'UpdateMatchingTasksActivity',
|
83
|
+
'CreateNewTaskActivityResponse',
|
84
|
+
'UpdateMatchingTasksActivityResponse',
|
85
|
+
'Fail',
|
86
|
+
'GroupReconciliation',
|
87
|
+
'HealthCheck',
|
88
|
+
'LuminesceView',
|
89
|
+
'SchedulerJob',
|
90
|
+
'Sleep',
|
91
|
+
'FailResponse',
|
92
|
+
'GroupReconciliationResponse',
|
93
|
+
'HealthCheckResponse',
|
94
|
+
'LuminesceViewResponse',
|
95
|
+
'SchedulerJobResponse',
|
96
|
+
'SleepResponse']:
|
97
|
+
return value
|
98
|
+
|
99
|
+
# Only validate the 'type' property of the class
|
100
|
+
if "accounting_method" != "type":
|
101
|
+
return value
|
102
|
+
|
51
103
|
if value is None:
|
52
104
|
return value
|
53
105
|
|