lusid-sdk 2.1.748__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.
Files changed (277) hide show
  1. lusid/configuration.py +1 -1
  2. lusid/models/access_metadata_operation.py +52 -0
  3. lusid/models/account.py +52 -0
  4. lusid/models/accumulation_event.py +52 -0
  5. lusid/models/address_definition.py +52 -0
  6. lusid/models/address_key_compliance_parameter.py +52 -0
  7. lusid/models/address_key_list.py +52 -0
  8. lusid/models/address_key_list_compliance_parameter.py +52 -0
  9. lusid/models/adjust_global_commitment_event.py +52 -0
  10. lusid/models/aggregate_spec.py +52 -0
  11. lusid/models/aggregation_query.py +104 -0
  12. lusid/models/amortisation_event.py +52 -0
  13. lusid/models/append_fx_forward_curve_by_quote_reference.py +52 -0
  14. lusid/models/append_fx_forward_curve_data.py +52 -0
  15. lusid/models/append_fx_forward_pips_curve_data.py +52 -0
  16. lusid/models/append_fx_forward_tenor_curve_data.py +52 -0
  17. lusid/models/append_fx_forward_tenor_pips_curve_data.py +52 -0
  18. lusid/models/append_market_data.py +52 -0
  19. lusid/models/basket.py +52 -0
  20. lusid/models/bond.py +52 -0
  21. lusid/models/bond_conversion_schedule.py +52 -0
  22. lusid/models/bond_coupon_event.py +52 -0
  23. lusid/models/bond_default_event.py +52 -0
  24. lusid/models/bond_principal_event.py +52 -0
  25. lusid/models/bonus_issue_event.py +52 -0
  26. lusid/models/bool_compliance_parameter.py +52 -0
  27. lusid/models/bool_list_compliance_parameter.py +52 -0
  28. lusid/models/branch_step.py +52 -0
  29. lusid/models/branch_step_request.py +52 -0
  30. lusid/models/calendar_dependency.py +52 -0
  31. lusid/models/call_on_intermediate_securities_event.py +52 -0
  32. lusid/models/cap_floor.py +52 -0
  33. lusid/models/capital_distribution_event.py +52 -0
  34. lusid/models/cash.py +52 -0
  35. lusid/models/cash_dependency.py +52 -0
  36. lusid/models/cash_dividend_event.py +52 -0
  37. lusid/models/cash_flow_event.py +52 -0
  38. lusid/models/cash_flow_value.py +52 -0
  39. lusid/models/cash_flow_value_set.py +52 -0
  40. lusid/models/cash_perpetual.py +52 -0
  41. lusid/models/cds_credit_event.py +52 -0
  42. lusid/models/cds_index.py +52 -0
  43. lusid/models/cdx_credit_event.py +52 -0
  44. lusid/models/change_history.py +52 -0
  45. lusid/models/check_step.py +52 -0
  46. lusid/models/check_step_request.py +52 -0
  47. lusid/models/close_event.py +52 -0
  48. lusid/models/complete_portfolio.py +52 -0
  49. lusid/models/complex_bond.py +52 -0
  50. lusid/models/complex_market_data.py +52 -0
  51. lusid/models/compliance_parameter.py +52 -0
  52. lusid/models/compliance_step.py +52 -0
  53. lusid/models/compliance_step_request.py +52 -0
  54. lusid/models/constant_volatility_surface.py +52 -0
  55. lusid/models/contract_for_difference.py +52 -0
  56. lusid/models/contract_initialisation_event.py +52 -0
  57. lusid/models/create_data_type_request.py +156 -0
  58. lusid/models/create_derived_property_definition_request.py +52 -0
  59. lusid/models/create_derived_transaction_portfolio_request.py +52 -0
  60. lusid/models/create_identifier_definition_request.py +104 -0
  61. lusid/models/create_property_definition_request.py +104 -0
  62. lusid/models/create_simple_position_portfolio_request.py +52 -0
  63. lusid/models/create_transaction_portfolio_request.py +52 -0
  64. lusid/models/credit_default_swap.py +52 -0
  65. lusid/models/credit_premium_cash_flow_event.py +52 -0
  66. lusid/models/credit_spread_curve_data.py +52 -0
  67. lusid/models/curve_options.py +52 -0
  68. lusid/models/data_type.py +156 -0
  69. lusid/models/data_type_summary.py +156 -0
  70. lusid/models/date_time_compliance_parameter.py +52 -0
  71. lusid/models/date_time_list_compliance_parameter.py +52 -0
  72. lusid/models/decimal_compliance_parameter.py +52 -0
  73. lusid/models/decimal_list.py +52 -0
  74. lusid/models/decimal_list_compliance_parameter.py +52 -0
  75. lusid/models/deposit_close_event.py +52 -0
  76. lusid/models/deposit_interest_payment_event.py +52 -0
  77. lusid/models/discount_factor_curve_data.py +52 -0
  78. lusid/models/discounting_dependency.py +52 -0
  79. lusid/models/dividend_option_event.py +52 -0
  80. lusid/models/dividend_reinvestment_event.py +52 -0
  81. lusid/models/drawdown_event.py +52 -0
  82. lusid/models/early_redemption_event.py +52 -0
  83. lusid/models/economic_dependency.py +52 -0
  84. lusid/models/empty_model_options.py +52 -0
  85. lusid/models/equity.py +52 -0
  86. lusid/models/equity_curve_by_prices_data.py +52 -0
  87. lusid/models/equity_curve_dependency.py +52 -0
  88. lusid/models/equity_model_options.py +52 -0
  89. lusid/models/equity_option.py +52 -0
  90. lusid/models/equity_swap.py +52 -0
  91. lusid/models/equity_vol_dependency.py +52 -0
  92. lusid/models/equity_vol_surface_data.py +52 -0
  93. lusid/models/exchange_traded_option.py +52 -0
  94. lusid/models/exercise_event.py +52 -0
  95. lusid/models/exotic_instrument.py +52 -0
  96. lusid/models/expiry_event.py +52 -0
  97. lusid/models/field_schema.py +52 -0
  98. lusid/models/filter_predicate_compliance_parameter.py +52 -0
  99. lusid/models/filter_step.py +52 -0
  100. lusid/models/filter_step_request.py +52 -0
  101. lusid/models/fixed_leg.py +52 -0
  102. lusid/models/fixed_schedule.py +52 -0
  103. lusid/models/flexible_deposit.py +52 -0
  104. lusid/models/flexible_loan.py +52 -0
  105. lusid/models/float_schedule.py +52 -0
  106. lusid/models/floating_leg.py +52 -0
  107. lusid/models/forward_rate_agreement.py +52 -0
  108. lusid/models/fund_id_list.py +52 -0
  109. lusid/models/fund_share_class.py +52 -0
  110. lusid/models/funding_leg.py +52 -0
  111. lusid/models/funding_leg_options.py +52 -0
  112. lusid/models/future.py +52 -0
  113. lusid/models/future_expiry_event.py +52 -0
  114. lusid/models/future_mark_to_market_event.py +52 -0
  115. lusid/models/fx_dependency.py +52 -0
  116. lusid/models/fx_forward.py +52 -0
  117. lusid/models/fx_forward_curve_by_quote_reference.py +52 -0
  118. lusid/models/fx_forward_curve_data.py +52 -0
  119. lusid/models/fx_forward_model_options.py +156 -0
  120. lusid/models/fx_forward_pips_curve_data.py +52 -0
  121. lusid/models/fx_forward_settlement_event.py +52 -0
  122. lusid/models/fx_forward_tenor_curve_data.py +52 -0
  123. lusid/models/fx_forward_tenor_pips_curve_data.py +52 -0
  124. lusid/models/fx_forwards_dependency.py +52 -0
  125. lusid/models/fx_linked_notional_schedule.py +52 -0
  126. lusid/models/fx_option.py +52 -0
  127. lusid/models/fx_rate_schedule.py +52 -0
  128. lusid/models/fx_swap.py +52 -0
  129. lusid/models/fx_vol_dependency.py +52 -0
  130. lusid/models/fx_vol_surface_data.py +52 -0
  131. lusid/models/get_reference_portfolio_constituents_response.py +104 -0
  132. lusid/models/group_by_selector_compliance_parameter.py +52 -0
  133. lusid/models/group_by_step.py +52 -0
  134. lusid/models/group_by_step_request.py +52 -0
  135. lusid/models/group_calculation_compliance_parameter.py +52 -0
  136. lusid/models/group_filter_predicate_compliance_parameter.py +52 -0
  137. lusid/models/group_filter_step.py +52 -0
  138. lusid/models/group_filter_step_request.py +52 -0
  139. lusid/models/holdings_adjustment.py +52 -0
  140. lusid/models/holdings_adjustment_header.py +52 -0
  141. lusid/models/i_unit_definition_dto.py +52 -0
  142. lusid/models/identifier_definition.py +104 -0
  143. lusid/models/index_model_options.py +104 -0
  144. lusid/models/index_projection_dependency.py +52 -0
  145. lusid/models/inflation_fixing_dependency.py +52 -0
  146. lusid/models/inflation_leg.py +52 -0
  147. lusid/models/inflation_linked_bond.py +52 -0
  148. lusid/models/inflation_swap.py +52 -0
  149. lusid/models/informational_error_event.py +52 -0
  150. lusid/models/informational_event.py +52 -0
  151. lusid/models/instrument.py +104 -0
  152. lusid/models/instrument_event.py +52 -0
  153. lusid/models/instrument_leg.py +52 -0
  154. lusid/models/instrument_list.py +52 -0
  155. lusid/models/instrument_list_compliance_parameter.py +52 -0
  156. lusid/models/interest_rate_swap.py +52 -0
  157. lusid/models/interest_rate_swaption.py +52 -0
  158. lusid/models/intermediate_compliance_step.py +52 -0
  159. lusid/models/intermediate_compliance_step_request.py +52 -0
  160. lusid/models/intermediate_securities_distribution_event.py +52 -0
  161. lusid/models/ir_vol_cube_data.py +52 -0
  162. lusid/models/ir_vol_dependency.py +52 -0
  163. lusid/models/life_cycle_event_value.py +52 -0
  164. lusid/models/loan_facility.py +52 -0
  165. lusid/models/loan_interest_repayment_event.py +52 -0
  166. lusid/models/loan_principal_repayment_event.py +52 -0
  167. lusid/models/lusid_instrument.py +52 -0
  168. lusid/models/lusid_trade_ticket.py +52 -0
  169. lusid/models/market_data_key_rule.py +52 -0
  170. lusid/models/market_data_options.py +52 -0
  171. lusid/models/market_data_specific_rule.py +52 -0
  172. lusid/models/market_quote.py +52 -0
  173. lusid/models/mastered_instrument.py +52 -0
  174. lusid/models/match_criterion.py +52 -0
  175. lusid/models/maturity_event.py +52 -0
  176. lusid/models/mbs_coupon_event.py +52 -0
  177. lusid/models/mbs_interest_deferral_event.py +52 -0
  178. lusid/models/mbs_interest_shortfall_event.py +52 -0
  179. lusid/models/mbs_principal_event.py +52 -0
  180. lusid/models/mbs_principal_write_off_event.py +52 -0
  181. lusid/models/merger_event.py +52 -0
  182. lusid/models/model_options.py +52 -0
  183. lusid/models/model_selection.py +104 -0
  184. lusid/models/opaque_dependency.py +52 -0
  185. lusid/models/opaque_market_data.py +52 -0
  186. lusid/models/opaque_model_options.py +52 -0
  187. lusid/models/open_event.py +52 -0
  188. lusid/models/option_exercise_cash_event.py +52 -0
  189. lusid/models/option_exercise_physical_event.py +52 -0
  190. lusid/models/optionality_schedule.py +52 -0
  191. lusid/models/order_by_spec.py +52 -0
  192. lusid/models/output_transaction.py +52 -0
  193. lusid/models/percent_check_step.py +52 -0
  194. lusid/models/percent_check_step_request.py +52 -0
  195. lusid/models/portfolio.py +104 -0
  196. lusid/models/portfolio_details.py +52 -0
  197. lusid/models/portfolio_group_id_compliance_parameter.py +52 -0
  198. lusid/models/portfolio_group_id_list.py +52 -0
  199. lusid/models/portfolio_group_id_list_compliance_parameter.py +52 -0
  200. lusid/models/portfolio_id_compliance_parameter.py +52 -0
  201. lusid/models/portfolio_id_list.py +52 -0
  202. lusid/models/portfolio_id_list_compliance_parameter.py +52 -0
  203. lusid/models/portfolio_result_data_key_rule.py +52 -0
  204. lusid/models/portfolio_search_result.py +52 -0
  205. lusid/models/portfolio_without_href.py +104 -0
  206. lusid/models/property_definition.py +312 -0
  207. lusid/models/property_definition_search_result.py +312 -0
  208. lusid/models/property_filter.py +104 -0
  209. lusid/models/property_key_compliance_parameter.py +52 -0
  210. lusid/models/property_key_list_compliance_parameter.py +52 -0
  211. lusid/models/property_list.py +52 -0
  212. lusid/models/property_list_compliance_parameter.py +52 -0
  213. lusid/models/property_value_equals.py +52 -0
  214. lusid/models/property_value_in.py +52 -0
  215. lusid/models/protection_payout_cash_flow_event.py +52 -0
  216. lusid/models/quote_dependency.py +52 -0
  217. lusid/models/quote_series_id.py +104 -0
  218. lusid/models/raw_vendor_event.py +52 -0
  219. lusid/models/recombine_step.py +52 -0
  220. lusid/models/reconcile_date_time_rule.py +104 -0
  221. lusid/models/reconcile_numeric_rule.py +104 -0
  222. lusid/models/reconcile_string_rule.py +104 -0
  223. lusid/models/reconciliation_rule.py +52 -0
  224. lusid/models/reference_instrument.py +52 -0
  225. lusid/models/reference_list.py +52 -0
  226. lusid/models/repo.py +52 -0
  227. lusid/models/reset_event.py +52 -0
  228. lusid/models/resource_list_of_value_type.py +1 -1
  229. lusid/models/result_data_key_rule.py +52 -0
  230. lusid/models/result_key_rule.py +52 -0
  231. lusid/models/result_value.py +52 -0
  232. lusid/models/result_value0_d.py +52 -0
  233. lusid/models/result_value_bool.py +52 -0
  234. lusid/models/result_value_currency.py +52 -0
  235. lusid/models/result_value_date_time_offset.py +52 -0
  236. lusid/models/result_value_decimal.py +52 -0
  237. lusid/models/result_value_dictionary.py +52 -0
  238. lusid/models/result_value_int.py +52 -0
  239. lusid/models/result_value_string.py +52 -0
  240. lusid/models/reverse_stock_split_event.py +52 -0
  241. lusid/models/schedule.py +52 -0
  242. lusid/models/scrip_dividend_event.py +52 -0
  243. lusid/models/simple_cash_flow_loan.py +52 -0
  244. lusid/models/simple_instrument.py +104 -0
  245. lusid/models/spin_off_event.py +52 -0
  246. lusid/models/step_schedule.py +52 -0
  247. lusid/models/stock_dividend_event.py +52 -0
  248. lusid/models/stock_split_event.py +52 -0
  249. lusid/models/string_compliance_parameter.py +52 -0
  250. lusid/models/string_list.py +52 -0
  251. lusid/models/string_list_compliance_parameter.py +52 -0
  252. lusid/models/sub_holding_key_value_equals.py +52 -0
  253. lusid/models/swap_cash_flow_event.py +52 -0
  254. lusid/models/swap_principal_event.py +52 -0
  255. lusid/models/tender_event.py +52 -0
  256. lusid/models/term_deposit.py +52 -0
  257. lusid/models/term_deposit_interest_event.py +52 -0
  258. lusid/models/term_deposit_principal_event.py +52 -0
  259. lusid/models/total_return_swap.py +52 -0
  260. lusid/models/trade_ticket.py +52 -0
  261. lusid/models/transaction.py +52 -0
  262. lusid/models/transaction_configuration_movement_data.py +52 -0
  263. lusid/models/transaction_configuration_movement_data_request.py +52 -0
  264. lusid/models/transaction_configuration_type_alias.py +52 -0
  265. lusid/models/transaction_price.py +52 -0
  266. lusid/models/transaction_query_parameters.py +52 -0
  267. lusid/models/transition_event.py +52 -0
  268. lusid/models/trigger_event.py +52 -0
  269. lusid/models/update_deposit_amount_event.py +52 -0
  270. lusid/models/upsert_reference_portfolio_constituents_request.py +104 -0
  271. lusid/models/vendor_dependency.py +52 -0
  272. lusid/models/vendor_model_rule.py +52 -0
  273. lusid/models/weekend_mask.py +1 -1
  274. lusid/models/yield_curve_data.py +52 -0
  275. {lusid_sdk-2.1.748.dist-info → lusid_sdk-2.1.749.dist-info}/METADATA +1 -1
  276. {lusid_sdk-2.1.748.dist-info → lusid_sdk-2.1.749.dist-info}/RECORD +277 -277
  277. {lusid_sdk-2.1.748.dist-info → lusid_sdk-2.1.749.dist-info}/WHEEL +0 -0
@@ -50,6 +50,58 @@ class PropertyDefinitionSearchResult(BaseModel):
50
50
  @validator('value_type')
51
51
  def value_type_validate_enum(cls, value):
52
52
  """Validates the enum"""
53
+
54
+ # Finbourne have removed enum validation on all models, except for this use case:
55
+ # Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
56
+ # During instantiation, the value of 'type' is checked against the enum values,
57
+
58
+
59
+ # check it's a class that uses the 'type' property as a discriminator
60
+ # list of classes can be found by searching for 'actual_instance: Union[' in the generated code
61
+ if 'PropertyDefinitionSearchResult' not in [
62
+ # For notification application classes
63
+ 'AmazonSqsNotificationType',
64
+ 'AmazonSqsNotificationTypeResponse',
65
+ 'AmazonSqsPrincipalAuthNotificationType',
66
+ 'AmazonSqsPrincipalAuthNotificationTypeResponse',
67
+ 'AzureServiceBusTypeResponse',
68
+ 'AzureServiceBusNotificationType',
69
+ 'EmailNotificationType',
70
+ 'EmailNotificationTypeResponse',
71
+ 'SmsNotificationType',
72
+ 'SmsNotificationTypeResponse',
73
+ 'WebhookNotificationType',
74
+ 'WebhookNotificationTypeResponse',
75
+
76
+ # For workflow application classes
77
+ 'CreateChildTasksAction',
78
+ 'RunWorkerAction',
79
+ 'TriggerParentTaskAction',
80
+ 'CreateChildTasksActionResponse',
81
+ 'RunWorkerActionResponse',
82
+ 'TriggerParentTaskActionResponse',
83
+ 'CreateNewTaskActivity',
84
+ 'UpdateMatchingTasksActivity',
85
+ 'CreateNewTaskActivityResponse',
86
+ 'UpdateMatchingTasksActivityResponse',
87
+ 'Fail',
88
+ 'GroupReconciliation',
89
+ 'HealthCheck',
90
+ 'LuminesceView',
91
+ 'SchedulerJob',
92
+ 'Sleep',
93
+ 'FailResponse',
94
+ 'GroupReconciliationResponse',
95
+ 'HealthCheckResponse',
96
+ 'LuminesceViewResponse',
97
+ 'SchedulerJobResponse',
98
+ 'SleepResponse']:
99
+ return value
100
+
101
+ # Only validate the 'type' property of the class
102
+ if "value_type" != "type":
103
+ return value
104
+
53
105
  if value is None:
54
106
  return value
55
107
 
@@ -60,6 +112,58 @@ class PropertyDefinitionSearchResult(BaseModel):
60
112
  @validator('type')
61
113
  def type_validate_enum(cls, value):
62
114
  """Validates the enum"""
115
+
116
+ # Finbourne have removed enum validation on all models, except for this use case:
117
+ # Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
118
+ # During instantiation, the value of 'type' is checked against the enum values,
119
+
120
+
121
+ # check it's a class that uses the 'type' property as a discriminator
122
+ # list of classes can be found by searching for 'actual_instance: Union[' in the generated code
123
+ if 'PropertyDefinitionSearchResult' not in [
124
+ # For notification application classes
125
+ 'AmazonSqsNotificationType',
126
+ 'AmazonSqsNotificationTypeResponse',
127
+ 'AmazonSqsPrincipalAuthNotificationType',
128
+ 'AmazonSqsPrincipalAuthNotificationTypeResponse',
129
+ 'AzureServiceBusTypeResponse',
130
+ 'AzureServiceBusNotificationType',
131
+ 'EmailNotificationType',
132
+ 'EmailNotificationTypeResponse',
133
+ 'SmsNotificationType',
134
+ 'SmsNotificationTypeResponse',
135
+ 'WebhookNotificationType',
136
+ 'WebhookNotificationTypeResponse',
137
+
138
+ # For workflow application classes
139
+ 'CreateChildTasksAction',
140
+ 'RunWorkerAction',
141
+ 'TriggerParentTaskAction',
142
+ 'CreateChildTasksActionResponse',
143
+ 'RunWorkerActionResponse',
144
+ 'TriggerParentTaskActionResponse',
145
+ 'CreateNewTaskActivity',
146
+ 'UpdateMatchingTasksActivity',
147
+ 'CreateNewTaskActivityResponse',
148
+ 'UpdateMatchingTasksActivityResponse',
149
+ 'Fail',
150
+ 'GroupReconciliation',
151
+ 'HealthCheck',
152
+ 'LuminesceView',
153
+ 'SchedulerJob',
154
+ 'Sleep',
155
+ 'FailResponse',
156
+ 'GroupReconciliationResponse',
157
+ 'HealthCheckResponse',
158
+ 'LuminesceViewResponse',
159
+ 'SchedulerJobResponse',
160
+ 'SleepResponse']:
161
+ return value
162
+
163
+ # Only validate the 'type' property of the class
164
+ if "type" != "type":
165
+ return value
166
+
63
167
  if value is None:
64
168
  return value
65
169
 
@@ -70,6 +174,58 @@ class PropertyDefinitionSearchResult(BaseModel):
70
174
  @validator('unit_schema')
71
175
  def unit_schema_validate_enum(cls, value):
72
176
  """Validates the enum"""
177
+
178
+ # Finbourne have removed enum validation on all models, except for this use case:
179
+ # Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
180
+ # During instantiation, the value of 'type' is checked against the enum values,
181
+
182
+
183
+ # check it's a class that uses the 'type' property as a discriminator
184
+ # list of classes can be found by searching for 'actual_instance: Union[' in the generated code
185
+ if 'PropertyDefinitionSearchResult' not in [
186
+ # For notification application classes
187
+ 'AmazonSqsNotificationType',
188
+ 'AmazonSqsNotificationTypeResponse',
189
+ 'AmazonSqsPrincipalAuthNotificationType',
190
+ 'AmazonSqsPrincipalAuthNotificationTypeResponse',
191
+ 'AzureServiceBusTypeResponse',
192
+ 'AzureServiceBusNotificationType',
193
+ 'EmailNotificationType',
194
+ 'EmailNotificationTypeResponse',
195
+ 'SmsNotificationType',
196
+ 'SmsNotificationTypeResponse',
197
+ 'WebhookNotificationType',
198
+ 'WebhookNotificationTypeResponse',
199
+
200
+ # For workflow application classes
201
+ 'CreateChildTasksAction',
202
+ 'RunWorkerAction',
203
+ 'TriggerParentTaskAction',
204
+ 'CreateChildTasksActionResponse',
205
+ 'RunWorkerActionResponse',
206
+ 'TriggerParentTaskActionResponse',
207
+ 'CreateNewTaskActivity',
208
+ 'UpdateMatchingTasksActivity',
209
+ 'CreateNewTaskActivityResponse',
210
+ 'UpdateMatchingTasksActivityResponse',
211
+ 'Fail',
212
+ 'GroupReconciliation',
213
+ 'HealthCheck',
214
+ 'LuminesceView',
215
+ 'SchedulerJob',
216
+ 'Sleep',
217
+ 'FailResponse',
218
+ 'GroupReconciliationResponse',
219
+ 'HealthCheckResponse',
220
+ 'LuminesceViewResponse',
221
+ 'SchedulerJobResponse',
222
+ 'SleepResponse']:
223
+ return value
224
+
225
+ # Only validate the 'type' property of the class
226
+ if "unit_schema" != "type":
227
+ return value
228
+
73
229
  if value is None:
74
230
  return value
75
231
 
@@ -80,6 +236,58 @@ class PropertyDefinitionSearchResult(BaseModel):
80
236
  @validator('domain')
81
237
  def domain_validate_enum(cls, value):
82
238
  """Validates the enum"""
239
+
240
+ # Finbourne have removed enum validation on all models, except for this use case:
241
+ # Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
242
+ # During instantiation, the value of 'type' is checked against the enum values,
243
+
244
+
245
+ # check it's a class that uses the 'type' property as a discriminator
246
+ # list of classes can be found by searching for 'actual_instance: Union[' in the generated code
247
+ if 'PropertyDefinitionSearchResult' not in [
248
+ # For notification application classes
249
+ 'AmazonSqsNotificationType',
250
+ 'AmazonSqsNotificationTypeResponse',
251
+ 'AmazonSqsPrincipalAuthNotificationType',
252
+ 'AmazonSqsPrincipalAuthNotificationTypeResponse',
253
+ 'AzureServiceBusTypeResponse',
254
+ 'AzureServiceBusNotificationType',
255
+ 'EmailNotificationType',
256
+ 'EmailNotificationTypeResponse',
257
+ 'SmsNotificationType',
258
+ 'SmsNotificationTypeResponse',
259
+ 'WebhookNotificationType',
260
+ 'WebhookNotificationTypeResponse',
261
+
262
+ # For workflow application classes
263
+ 'CreateChildTasksAction',
264
+ 'RunWorkerAction',
265
+ 'TriggerParentTaskAction',
266
+ 'CreateChildTasksActionResponse',
267
+ 'RunWorkerActionResponse',
268
+ 'TriggerParentTaskActionResponse',
269
+ 'CreateNewTaskActivity',
270
+ 'UpdateMatchingTasksActivity',
271
+ 'CreateNewTaskActivityResponse',
272
+ 'UpdateMatchingTasksActivityResponse',
273
+ 'Fail',
274
+ 'GroupReconciliation',
275
+ 'HealthCheck',
276
+ 'LuminesceView',
277
+ 'SchedulerJob',
278
+ 'Sleep',
279
+ 'FailResponse',
280
+ 'GroupReconciliationResponse',
281
+ 'HealthCheckResponse',
282
+ 'LuminesceViewResponse',
283
+ 'SchedulerJobResponse',
284
+ 'SleepResponse']:
285
+ return value
286
+
287
+ # Only validate the 'type' property of the class
288
+ if "domain" != "type":
289
+ return value
290
+
83
291
  if value is None:
84
292
  return value
85
293
 
@@ -90,6 +298,58 @@ class PropertyDefinitionSearchResult(BaseModel):
90
298
  @validator('life_time')
91
299
  def life_time_validate_enum(cls, value):
92
300
  """Validates the enum"""
301
+
302
+ # Finbourne have removed enum validation on all models, except for this use case:
303
+ # Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
304
+ # During instantiation, the value of 'type' is checked against the enum values,
305
+
306
+
307
+ # check it's a class that uses the 'type' property as a discriminator
308
+ # list of classes can be found by searching for 'actual_instance: Union[' in the generated code
309
+ if 'PropertyDefinitionSearchResult' not in [
310
+ # For notification application classes
311
+ 'AmazonSqsNotificationType',
312
+ 'AmazonSqsNotificationTypeResponse',
313
+ 'AmazonSqsPrincipalAuthNotificationType',
314
+ 'AmazonSqsPrincipalAuthNotificationTypeResponse',
315
+ 'AzureServiceBusTypeResponse',
316
+ 'AzureServiceBusNotificationType',
317
+ 'EmailNotificationType',
318
+ 'EmailNotificationTypeResponse',
319
+ 'SmsNotificationType',
320
+ 'SmsNotificationTypeResponse',
321
+ 'WebhookNotificationType',
322
+ 'WebhookNotificationTypeResponse',
323
+
324
+ # For workflow application classes
325
+ 'CreateChildTasksAction',
326
+ 'RunWorkerAction',
327
+ 'TriggerParentTaskAction',
328
+ 'CreateChildTasksActionResponse',
329
+ 'RunWorkerActionResponse',
330
+ 'TriggerParentTaskActionResponse',
331
+ 'CreateNewTaskActivity',
332
+ 'UpdateMatchingTasksActivity',
333
+ 'CreateNewTaskActivityResponse',
334
+ 'UpdateMatchingTasksActivityResponse',
335
+ 'Fail',
336
+ 'GroupReconciliation',
337
+ 'HealthCheck',
338
+ 'LuminesceView',
339
+ 'SchedulerJob',
340
+ 'Sleep',
341
+ 'FailResponse',
342
+ 'GroupReconciliationResponse',
343
+ 'HealthCheckResponse',
344
+ 'LuminesceViewResponse',
345
+ 'SchedulerJobResponse',
346
+ 'SleepResponse']:
347
+ return value
348
+
349
+ # Only validate the 'type' property of the class
350
+ if "life_time" != "type":
351
+ return value
352
+
93
353
  if value is None:
94
354
  return value
95
355
 
@@ -100,6 +360,58 @@ class PropertyDefinitionSearchResult(BaseModel):
100
360
  @validator('property_definition_type')
101
361
  def property_definition_type_validate_enum(cls, value):
102
362
  """Validates the enum"""
363
+
364
+ # Finbourne have removed enum validation on all models, except for this use case:
365
+ # Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
366
+ # During instantiation, the value of 'type' is checked against the enum values,
367
+
368
+
369
+ # check it's a class that uses the 'type' property as a discriminator
370
+ # list of classes can be found by searching for 'actual_instance: Union[' in the generated code
371
+ if 'PropertyDefinitionSearchResult' not in [
372
+ # For notification application classes
373
+ 'AmazonSqsNotificationType',
374
+ 'AmazonSqsNotificationTypeResponse',
375
+ 'AmazonSqsPrincipalAuthNotificationType',
376
+ 'AmazonSqsPrincipalAuthNotificationTypeResponse',
377
+ 'AzureServiceBusTypeResponse',
378
+ 'AzureServiceBusNotificationType',
379
+ 'EmailNotificationType',
380
+ 'EmailNotificationTypeResponse',
381
+ 'SmsNotificationType',
382
+ 'SmsNotificationTypeResponse',
383
+ 'WebhookNotificationType',
384
+ 'WebhookNotificationTypeResponse',
385
+
386
+ # For workflow application classes
387
+ 'CreateChildTasksAction',
388
+ 'RunWorkerAction',
389
+ 'TriggerParentTaskAction',
390
+ 'CreateChildTasksActionResponse',
391
+ 'RunWorkerActionResponse',
392
+ 'TriggerParentTaskActionResponse',
393
+ 'CreateNewTaskActivity',
394
+ 'UpdateMatchingTasksActivity',
395
+ 'CreateNewTaskActivityResponse',
396
+ 'UpdateMatchingTasksActivityResponse',
397
+ 'Fail',
398
+ 'GroupReconciliation',
399
+ 'HealthCheck',
400
+ 'LuminesceView',
401
+ 'SchedulerJob',
402
+ 'Sleep',
403
+ 'FailResponse',
404
+ 'GroupReconciliationResponse',
405
+ 'HealthCheckResponse',
406
+ 'LuminesceViewResponse',
407
+ 'SchedulerJobResponse',
408
+ 'SleepResponse']:
409
+ return value
410
+
411
+ # Only validate the 'type' property of the class
412
+ if "property_definition_type" != "type":
413
+ return value
414
+
103
415
  if value is None:
104
416
  return value
105
417
 
@@ -34,6 +34,58 @@ class PropertyFilter(BaseModel):
34
34
  @validator('operator')
35
35
  def operator_validate_enum(cls, value):
36
36
  """Validates the enum"""
37
+
38
+ # Finbourne have removed enum validation on all models, except for this use case:
39
+ # Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
40
+ # During instantiation, the value of 'type' is checked against the enum values,
41
+
42
+
43
+ # check it's a class that uses the 'type' property as a discriminator
44
+ # list of classes can be found by searching for 'actual_instance: Union[' in the generated code
45
+ if 'PropertyFilter' not in [
46
+ # For notification application classes
47
+ 'AmazonSqsNotificationType',
48
+ 'AmazonSqsNotificationTypeResponse',
49
+ 'AmazonSqsPrincipalAuthNotificationType',
50
+ 'AmazonSqsPrincipalAuthNotificationTypeResponse',
51
+ 'AzureServiceBusTypeResponse',
52
+ 'AzureServiceBusNotificationType',
53
+ 'EmailNotificationType',
54
+ 'EmailNotificationTypeResponse',
55
+ 'SmsNotificationType',
56
+ 'SmsNotificationTypeResponse',
57
+ 'WebhookNotificationType',
58
+ 'WebhookNotificationTypeResponse',
59
+
60
+ # For workflow application classes
61
+ 'CreateChildTasksAction',
62
+ 'RunWorkerAction',
63
+ 'TriggerParentTaskAction',
64
+ 'CreateChildTasksActionResponse',
65
+ 'RunWorkerActionResponse',
66
+ 'TriggerParentTaskActionResponse',
67
+ 'CreateNewTaskActivity',
68
+ 'UpdateMatchingTasksActivity',
69
+ 'CreateNewTaskActivityResponse',
70
+ 'UpdateMatchingTasksActivityResponse',
71
+ 'Fail',
72
+ 'GroupReconciliation',
73
+ 'HealthCheck',
74
+ 'LuminesceView',
75
+ 'SchedulerJob',
76
+ 'Sleep',
77
+ 'FailResponse',
78
+ 'GroupReconciliationResponse',
79
+ 'HealthCheckResponse',
80
+ 'LuminesceViewResponse',
81
+ 'SchedulerJobResponse',
82
+ 'SleepResponse']:
83
+ return value
84
+
85
+ # Only validate the 'type' property of the class
86
+ if "operator" != "type":
87
+ return value
88
+
37
89
  if value is None:
38
90
  return value
39
91
 
@@ -44,6 +96,58 @@ class PropertyFilter(BaseModel):
44
96
  @validator('right_operand_type')
45
97
  def right_operand_type_validate_enum(cls, value):
46
98
  """Validates the enum"""
99
+
100
+ # Finbourne have removed enum validation on all models, except for this use case:
101
+ # Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
102
+ # During instantiation, the value of 'type' is checked against the enum values,
103
+
104
+
105
+ # check it's a class that uses the 'type' property as a discriminator
106
+ # list of classes can be found by searching for 'actual_instance: Union[' in the generated code
107
+ if 'PropertyFilter' not in [
108
+ # For notification application classes
109
+ 'AmazonSqsNotificationType',
110
+ 'AmazonSqsNotificationTypeResponse',
111
+ 'AmazonSqsPrincipalAuthNotificationType',
112
+ 'AmazonSqsPrincipalAuthNotificationTypeResponse',
113
+ 'AzureServiceBusTypeResponse',
114
+ 'AzureServiceBusNotificationType',
115
+ 'EmailNotificationType',
116
+ 'EmailNotificationTypeResponse',
117
+ 'SmsNotificationType',
118
+ 'SmsNotificationTypeResponse',
119
+ 'WebhookNotificationType',
120
+ 'WebhookNotificationTypeResponse',
121
+
122
+ # For workflow application classes
123
+ 'CreateChildTasksAction',
124
+ 'RunWorkerAction',
125
+ 'TriggerParentTaskAction',
126
+ 'CreateChildTasksActionResponse',
127
+ 'RunWorkerActionResponse',
128
+ 'TriggerParentTaskActionResponse',
129
+ 'CreateNewTaskActivity',
130
+ 'UpdateMatchingTasksActivity',
131
+ 'CreateNewTaskActivityResponse',
132
+ 'UpdateMatchingTasksActivityResponse',
133
+ 'Fail',
134
+ 'GroupReconciliation',
135
+ 'HealthCheck',
136
+ 'LuminesceView',
137
+ 'SchedulerJob',
138
+ 'Sleep',
139
+ 'FailResponse',
140
+ 'GroupReconciliationResponse',
141
+ 'HealthCheckResponse',
142
+ 'LuminesceViewResponse',
143
+ 'SchedulerJobResponse',
144
+ 'SleepResponse']:
145
+ return value
146
+
147
+ # Only validate the 'type' property of the class
148
+ if "right_operand_type" != "type":
149
+ return value
150
+
47
151
  if value is None:
48
152
  return value
49
153
 
@@ -34,6 +34,58 @@ class PropertyKeyComplianceParameter(ComplianceParameter):
34
34
  @validator('compliance_parameter_type')
35
35
  def compliance_parameter_type_validate_enum(cls, value):
36
36
  """Validates the enum"""
37
+
38
+ # Finbourne have removed enum validation on all models, except for this use case:
39
+ # Workflow and notification application SDK use the property name 'type' as the discriminator on a number of classes.
40
+ # During instantiation, the value of 'type' is checked against the enum values,
41
+
42
+
43
+ # check it's a class that uses the 'type' property as a discriminator
44
+ # list of classes can be found by searching for 'actual_instance: Union[' in the generated code
45
+ if 'PropertyKeyComplianceParameter' not in [
46
+ # For notification application classes
47
+ 'AmazonSqsNotificationType',
48
+ 'AmazonSqsNotificationTypeResponse',
49
+ 'AmazonSqsPrincipalAuthNotificationType',
50
+ 'AmazonSqsPrincipalAuthNotificationTypeResponse',
51
+ 'AzureServiceBusTypeResponse',
52
+ 'AzureServiceBusNotificationType',
53
+ 'EmailNotificationType',
54
+ 'EmailNotificationTypeResponse',
55
+ 'SmsNotificationType',
56
+ 'SmsNotificationTypeResponse',
57
+ 'WebhookNotificationType',
58
+ 'WebhookNotificationTypeResponse',
59
+
60
+ # For workflow application classes
61
+ 'CreateChildTasksAction',
62
+ 'RunWorkerAction',
63
+ 'TriggerParentTaskAction',
64
+ 'CreateChildTasksActionResponse',
65
+ 'RunWorkerActionResponse',
66
+ 'TriggerParentTaskActionResponse',
67
+ 'CreateNewTaskActivity',
68
+ 'UpdateMatchingTasksActivity',
69
+ 'CreateNewTaskActivityResponse',
70
+ 'UpdateMatchingTasksActivityResponse',
71
+ 'Fail',
72
+ 'GroupReconciliation',
73
+ 'HealthCheck',
74
+ 'LuminesceView',
75
+ 'SchedulerJob',
76
+ 'Sleep',
77
+ 'FailResponse',
78
+ 'GroupReconciliationResponse',
79
+ 'HealthCheckResponse',
80
+ 'LuminesceViewResponse',
81
+ 'SchedulerJobResponse',
82
+ 'SleepResponse']:
83
+ return value
84
+
85
+ # Only validate the 'type' property of the class
86
+ if "compliance_parameter_type" != "type":
87
+ return value
88
+
37
89
  if value not in ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter', 'GroupCalculationComplianceParameter'):
38
90
  raise ValueError("must be one of enum values ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter', 'GroupCalculationComplianceParameter')")
39
91
  return value
@@ -35,6 +35,58 @@ class PropertyKeyListComplianceParameter(ComplianceParameter):
35
35
  @validator('compliance_parameter_type')
36
36
  def compliance_parameter_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 'PropertyKeyListComplianceParameter' 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 "compliance_parameter_type" != "type":
88
+ return value
89
+
38
90
  if value not in ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter', 'GroupCalculationComplianceParameter'):
39
91
  raise ValueError("must be one of enum values ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter', 'GroupCalculationComplianceParameter')")
40
92
  return value
@@ -35,6 +35,58 @@ class PropertyList(ReferenceList):
35
35
  @validator('reference_list_type')
36
36
  def reference_list_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 'PropertyList' 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 "reference_list_type" != "type":
88
+ return value
89
+
38
90
  if value not in ('PortfolioGroupIdList', 'PortfolioIdList', 'AddressKeyList', 'StringList', 'InstrumentList', 'DecimalList', 'PropertyList', 'FundIdList'):
39
91
  raise ValueError("must be one of enum values ('PortfolioGroupIdList', 'PortfolioIdList', 'AddressKeyList', 'StringList', 'InstrumentList', 'DecimalList', 'PropertyList', 'FundIdList')")
40
92
  return value