lusid-sdk 1.1.257__py3-none-any.whl → 2.0.438__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.

Potentially problematic release.


This version of lusid-sdk might be problematic. Click here for more details.

Files changed (1256) hide show
  1. lusid/__init__.py +1259 -252
  2. lusid/api/__init__.py +78 -3
  3. lusid/api/abor_api.py +2297 -0
  4. lusid/api/abor_configuration_api.py +944 -0
  5. lusid/api/address_key_definition_api.py +296 -269
  6. lusid/api/aggregation_api.py +470 -261
  7. lusid/api/allocations_api.py +409 -402
  8. lusid/api/application_metadata_api.py +266 -244
  9. lusid/api/blocks_api.py +407 -400
  10. lusid/api/calendars_api.py +1179 -1634
  11. lusid/api/chart_of_accounts_api.py +5391 -0
  12. lusid/api/complex_market_data_api.py +471 -310
  13. lusid/api/compliance_api.py +1042 -1866
  14. lusid/api/configuration_recipe_api.py +1507 -359
  15. lusid/api/conventions_api.py +1982 -0
  16. lusid/api/corporate_action_sources_api.py +957 -881
  17. lusid/api/counterparties_api.py +729 -711
  18. lusid/api/custom_entities_api.py +1190 -1469
  19. lusid/api/custom_entity_definitions_api.py +387 -364
  20. lusid/api/custom_entity_types_api.py +393 -369
  21. lusid/api/cut_label_definitions_api.py +482 -451
  22. lusid/api/data_types_api.py +708 -1090
  23. lusid/api/derived_transaction_portfolios_api.py +204 -213
  24. lusid/api/entities_api.py +114 -114
  25. lusid/api/executions_api.py +409 -402
  26. lusid/api/funds_api.py +944 -0
  27. lusid/api/instrument_event_types_api.py +1287 -0
  28. lusid/api/instrument_events_api.py +631 -82
  29. lusid/api/instruments_api.py +2388 -1911
  30. lusid/api/legacy_compliance_api.py +1449 -0
  31. lusid/api/legal_entities_api.py +1898 -2242
  32. lusid/api/order_graph_api.py +355 -362
  33. lusid/api/order_instructions_api.py +745 -0
  34. lusid/api/order_management_api.py +508 -873
  35. lusid/api/orders_api.py +409 -402
  36. lusid/api/packages_api.py +745 -0
  37. lusid/api/participations_api.py +407 -400
  38. lusid/api/persons_api.py +1775 -2102
  39. lusid/api/placements_api.py +407 -400
  40. lusid/api/portfolio_groups_api.py +2811 -2983
  41. lusid/api/portfolios_api.py +2861 -4068
  42. lusid/api/property_definitions_api.py +1102 -1183
  43. lusid/api/quotes_api.py +1293 -512
  44. lusid/api/reconciliations_api.py +1858 -733
  45. lusid/api/reference_lists_api.py +389 -389
  46. lusid/api/reference_portfolio_api.py +409 -619
  47. lusid/api/relation_definitions_api.py +538 -0
  48. lusid/api/relations_api.py +414 -0
  49. lusid/api/relationship_definitions_api.py +484 -494
  50. lusid/api/relationships_api.py +206 -224
  51. lusid/api/schemas_api.py +366 -322
  52. lusid/api/scopes_api.py +184 -207
  53. lusid/api/scripted_translation_api.py +766 -775
  54. lusid/api/search_api.py +408 -423
  55. lusid/api/sequences_api.py +376 -404
  56. lusid/api/structured_result_data_api.py +1205 -575
  57. lusid/api/system_configuration_api.py +979 -143
  58. lusid/api/tax_rule_sets_api.py +900 -0
  59. lusid/api/transaction_configuration_api.py +1055 -1093
  60. lusid/api/transaction_fees_api.py +935 -0
  61. lusid/api/transaction_portfolios_api.py +4373 -3879
  62. lusid/api/translation_api.py +364 -0
  63. lusid/api_client.py +197 -124
  64. lusid/api_response.py +25 -0
  65. lusid/configuration.py +58 -81
  66. lusid/exceptions.py +17 -15
  67. lusid/extensions/__init__.py +18 -0
  68. lusid/extensions/api_client.py +766 -0
  69. lusid/extensions/api_client_factory.py +248 -0
  70. lusid/extensions/api_configuration.py +234 -0
  71. lusid/extensions/configuration_loaders.py +201 -0
  72. lusid/{utilities → extensions}/proxy_config.py +24 -6
  73. lusid/{utilities → extensions}/refreshing_token.py +82 -35
  74. lusid/extensions/rest.py +300 -0
  75. lusid/extensions/retry.py +357 -0
  76. lusid/extensions/socket_keep_alive.py +52 -0
  77. lusid/extensions/tcp_keep_alive_connector.py +113 -0
  78. lusid/models/__init__.py +1162 -244
  79. lusid/models/a2_b_breakdown.py +65 -187
  80. lusid/models/a2_b_category.py +60 -154
  81. lusid/models/a2_b_data_record.py +178 -540
  82. lusid/models/a2_b_movement_record.py +192 -635
  83. lusid/models/abor.py +157 -0
  84. lusid/models/abor_configuration.py +159 -0
  85. lusid/models/abor_configuration_properties.py +115 -0
  86. lusid/models/abor_configuration_request.py +145 -0
  87. lusid/models/abor_properties.py +115 -0
  88. lusid/models/abor_request.py +131 -0
  89. lusid/models/access_controlled_action.py +87 -215
  90. lusid/models/access_controlled_resource.py +105 -271
  91. lusid/models/access_metadata_operation.py +84 -234
  92. lusid/models/access_metadata_value.py +58 -166
  93. lusid/models/account.py +131 -0
  94. lusid/models/account_properties.py +115 -0
  95. lusid/models/accounting_method.py +42 -0
  96. lusid/models/accounts_upsert_response.py +110 -0
  97. lusid/models/accumulation_event.py +87 -293
  98. lusid/models/action_id.py +55 -204
  99. lusid/models/action_result_of_portfolio.py +57 -154
  100. lusid/models/add_business_days_to_date_request.py +63 -214
  101. lusid/models/add_business_days_to_date_response.py +52 -127
  102. lusid/models/additional_payment.py +58 -228
  103. lusid/models/address_definition.py +97 -284
  104. lusid/models/address_key_compliance_parameter.py +73 -166
  105. lusid/models/address_key_definition.py +74 -220
  106. lusid/models/address_key_filter.py +69 -191
  107. lusid/models/address_key_list.py +73 -170
  108. lusid/models/address_key_list_compliance_parameter.py +77 -164
  109. lusid/models/address_key_option_definition.py +71 -293
  110. lusid/models/adjust_holding.py +101 -214
  111. lusid/models/adjust_holding_for_date_request.py +109 -285
  112. lusid/models/adjust_holding_request.py +107 -250
  113. lusid/models/aggregate_spec.py +67 -196
  114. lusid/models/aggregated_return.py +106 -373
  115. lusid/models/aggregated_returns_dispersion_request.py +102 -291
  116. lusid/models/aggregated_returns_request.py +128 -403
  117. lusid/models/aggregated_returns_response.py +95 -184
  118. lusid/models/aggregated_transactions_request.py +131 -0
  119. lusid/models/aggregation_context.py +55 -125
  120. lusid/models/aggregation_measure_failure_detail.py +80 -238
  121. lusid/models/aggregation_op.py +49 -0
  122. lusid/models/aggregation_options.py +55 -189
  123. lusid/models/aggregation_query.py +106 -439
  124. lusid/models/aggregation_type.py +44 -0
  125. lusid/models/allocation.py +207 -735
  126. lusid/models/allocation_request.py +175 -611
  127. lusid/models/allocation_service_run_response.py +102 -0
  128. lusid/models/allocation_set_request.py +64 -126
  129. lusid/models/amortisation_event.py +80 -266
  130. lusid/models/annul_quotes_response.py +99 -215
  131. lusid/models/annul_single_structured_data_response.py +74 -186
  132. lusid/models/annul_structured_data_response.py +99 -215
  133. lusid/models/asset_class.py +44 -0
  134. lusid/models/asset_leg.py +57 -161
  135. lusid/models/barrier.py +62 -228
  136. lusid/models/basket.py +85 -229
  137. lusid/models/basket_identifier.py +57 -224
  138. lusid/models/batch_adjust_holdings_response.py +128 -214
  139. lusid/models/batch_upsert_instrument_properties_response.py +101 -221
  140. lusid/models/batch_upsert_portfolio_transactions_response.py +128 -214
  141. lusid/models/batch_upsert_property_definition_properties_response.py +97 -221
  142. lusid/models/block.py +133 -542
  143. lusid/models/block_and_order_id_request.py +60 -156
  144. lusid/models/block_and_orders.py +65 -156
  145. lusid/models/block_and_orders_create_request.py +59 -134
  146. lusid/models/block_and_orders_request.py +117 -405
  147. lusid/models/block_request.py +108 -448
  148. lusid/models/block_set_request.py +64 -126
  149. lusid/models/blocked_order_request.py +113 -395
  150. lusid/models/bond.py +151 -570
  151. lusid/models/bond_coupon_event.py +80 -261
  152. lusid/models/bond_default_event.py +74 -167
  153. lusid/models/bond_principal_event.py +80 -261
  154. lusid/models/book_transactions_request.py +97 -0
  155. lusid/models/book_transactions_response.py +107 -0
  156. lusid/models/bool_compliance_parameter.py +73 -164
  157. lusid/models/bool_list_compliance_parameter.py +77 -164
  158. lusid/models/branch_step.py +83 -201
  159. lusid/models/bucketed_cash_flow_request.py +172 -0
  160. lusid/models/bucketed_cash_flow_response.py +111 -271
  161. lusid/models/bucketing_schedule.py +56 -126
  162. lusid/models/calculation_info.py +73 -0
  163. lusid/models/calendar.py +88 -337
  164. lusid/models/calendar_date.py +84 -407
  165. lusid/models/calendar_dependency.py +73 -166
  166. lusid/models/cap_floor.py +85 -295
  167. lusid/models/cash_dependency.py +76 -199
  168. lusid/models/cash_dividend_event.py +100 -291
  169. lusid/models/cash_election.py +73 -316
  170. lusid/models/cash_flow_event.py +80 -199
  171. lusid/models/cash_flow_lineage.py +91 -276
  172. lusid/models/cash_flow_value.py +90 -289
  173. lusid/models/cash_flow_value_set.py +86 -164
  174. lusid/models/cash_ladder_record.py +58 -216
  175. lusid/models/cash_perpetual.py +78 -231
  176. lusid/models/cds_flow_conventions.py +113 -514
  177. lusid/models/cds_index.py +100 -382
  178. lusid/models/cds_protection_detail_specification.py +57 -230
  179. lusid/models/change.py +110 -355
  180. lusid/models/change_history.py +90 -297
  181. lusid/models/change_history_action.py +39 -0
  182. lusid/models/change_item.py +80 -252
  183. lusid/models/chart_of_accounts.py +135 -0
  184. lusid/models/chart_of_accounts_properties.py +115 -0
  185. lusid/models/chart_of_accounts_request.py +120 -0
  186. lusid/models/check_step.py +92 -233
  187. lusid/models/cleardown_module_details.py +95 -0
  188. lusid/models/cleardown_module_request.py +117 -0
  189. lusid/models/cleardown_module_response.py +139 -0
  190. lusid/models/cleardown_module_rule.py +94 -0
  191. lusid/models/cleardown_module_rules_updated_response.py +110 -0
  192. lusid/models/client.py +75 -0
  193. lusid/models/close_event.py +76 -197
  194. lusid/models/close_period_diary_entry_request.py +149 -0
  195. lusid/models/complete_portfolio.py +149 -493
  196. lusid/models/complete_relation.py +96 -0
  197. lusid/models/complete_relationship.py +88 -378
  198. lusid/models/complex_bond.py +129 -326
  199. lusid/models/complex_market_data.py +82 -151
  200. lusid/models/complex_market_data_id.py +74 -274
  201. lusid/models/compliance_breached_order_info.py +83 -0
  202. lusid/models/compliance_parameter.py +85 -156
  203. lusid/models/compliance_parameter_type.py +56 -0
  204. lusid/models/compliance_rule.py +137 -0
  205. lusid/models/compliance_rule_breakdown.py +84 -257
  206. lusid/models/compliance_rule_breakdown_request.py +84 -252
  207. lusid/models/compliance_rule_response.py +149 -409
  208. lusid/models/compliance_rule_result.py +91 -0
  209. lusid/models/compliance_rule_result_detail.py +91 -414
  210. lusid/models/compliance_rule_result_portfolio_detail.py +57 -159
  211. lusid/models/compliance_rule_result_v2.py +68 -250
  212. lusid/models/compliance_rule_upsert_request.py +178 -0
  213. lusid/models/compliance_rule_upsert_response.py +82 -0
  214. lusid/models/compliance_run_info.py +81 -0
  215. lusid/models/compliance_run_info_v2.py +64 -253
  216. lusid/models/compliance_step.py +77 -146
  217. lusid/models/compliance_step_type.py +42 -0
  218. lusid/models/compliance_summary_rule_result.py +94 -342
  219. lusid/models/compliance_summary_rule_result_request.py +94 -348
  220. lusid/models/compliance_template.py +89 -251
  221. lusid/models/compliance_template_parameter.py +55 -201
  222. lusid/models/compliance_template_variation.py +94 -292
  223. lusid/models/component_transaction.py +92 -0
  224. lusid/models/composite_breakdown.py +72 -188
  225. lusid/models/composite_breakdown_request.py +97 -281
  226. lusid/models/composite_breakdown_response.py +90 -186
  227. lusid/models/composite_dispersion.py +116 -339
  228. lusid/models/composite_dispersion_response.py +95 -184
  229. lusid/models/compounding.py +76 -299
  230. lusid/models/configuration_recipe.py +114 -362
  231. lusid/models/constant_volatility_surface.py +85 -268
  232. lusid/models/constituents_adjustment_header.py +73 -185
  233. lusid/models/contract_for_difference.py +90 -461
  234. lusid/models/corporate_action.py +82 -313
  235. lusid/models/corporate_action_source.py +104 -302
  236. lusid/models/corporate_action_transition.py +69 -155
  237. lusid/models/corporate_action_transition_component.py +59 -262
  238. lusid/models/corporate_action_transition_component_request.py +55 -192
  239. lusid/models/corporate_action_transition_request.py +69 -153
  240. lusid/models/counterparty_agreement.py +73 -292
  241. lusid/models/counterparty_risk_information.py +78 -197
  242. lusid/models/counterparty_signatory.py +57 -161
  243. lusid/models/create_address_key_definition_request.py +53 -163
  244. lusid/models/create_calendar_request.py +94 -262
  245. lusid/models/create_corporate_action_source_request.py +100 -291
  246. lusid/models/create_custom_entity_type_request.py +79 -242
  247. lusid/models/create_cut_label_definition_request.py +85 -256
  248. lusid/models/create_data_map_request.py +61 -155
  249. lusid/models/create_data_type_request.py +143 -462
  250. lusid/models/create_date_request.py +111 -368
  251. lusid/models/create_derived_property_definition_request.py +79 -331
  252. lusid/models/create_derived_transaction_portfolio_request.py +160 -535
  253. lusid/models/create_portfolio_details.py +55 -125
  254. lusid/models/create_portfolio_group_request.py +117 -314
  255. lusid/models/create_property_definition_request.py +105 -424
  256. lusid/models/create_recipe_request.py +90 -0
  257. lusid/models/create_reconciliation_request.py +140 -0
  258. lusid/models/create_reference_portfolio_request.py +102 -317
  259. lusid/models/create_relation_definition_request.py +95 -0
  260. lusid/models/create_relation_request.py +71 -0
  261. lusid/models/create_relationship_definition_request.py +112 -437
  262. lusid/models/create_relationship_request.py +87 -238
  263. lusid/models/create_sequence_request.py +105 -327
  264. lusid/models/create_tax_rule_set_request.py +103 -0
  265. lusid/models/create_trade_tickets_response.py +69 -156
  266. lusid/models/create_transaction_portfolio_request.py +158 -574
  267. lusid/models/create_unit_definition.py +83 -241
  268. lusid/models/credit_default_swap.py +105 -384
  269. lusid/models/credit_rating.py +67 -178
  270. lusid/models/credit_spread_curve_data.py +109 -420
  271. lusid/models/credit_support_annex.py +73 -432
  272. lusid/models/criterion_type.py +39 -0
  273. lusid/models/currency_and_amount.py +58 -155
  274. lusid/models/curve_options.py +110 -0
  275. lusid/models/custodian_account.py +93 -396
  276. lusid/models/custodian_account_properties.py +115 -0
  277. lusid/models/custodian_account_request.py +148 -0
  278. lusid/models/custodian_accounts_upsert_response.py +110 -0
  279. lusid/models/custom_entity_definition.py +85 -351
  280. lusid/models/custom_entity_definition_request.py +79 -242
  281. lusid/models/custom_entity_field.py +73 -222
  282. lusid/models/custom_entity_field_definition.py +71 -296
  283. lusid/models/custom_entity_id.py +91 -280
  284. lusid/models/custom_entity_request.py +78 -228
  285. lusid/models/custom_entity_response.py +118 -409
  286. lusid/models/custom_entity_type.py +85 -351
  287. lusid/models/cut_label_definition.py +111 -322
  288. lusid/models/cut_local_time.py +53 -154
  289. lusid/models/data_definition.py +86 -301
  290. lusid/models/data_map_key.py +83 -174
  291. lusid/models/data_mapping.py +64 -126
  292. lusid/models/data_scope.py +80 -0
  293. lusid/models/data_type.py +145 -506
  294. lusid/models/data_type_summary.py +117 -398
  295. lusid/models/data_type_value_range.py +38 -0
  296. lusid/models/date_attributes.py +140 -371
  297. lusid/models/date_or_diary_entry.py +91 -0
  298. lusid/models/date_range.py +59 -155
  299. lusid/models/date_time_comparison_type.py +38 -0
  300. lusid/models/date_time_compliance_parameter.py +74 -165
  301. lusid/models/date_time_list_compliance_parameter.py +77 -164
  302. lusid/models/day_month.py +71 -0
  303. lusid/models/day_of_week.py +20 -102
  304. lusid/models/decimal_compliance_parameter.py +73 -164
  305. lusid/models/decimal_list.py +73 -170
  306. lusid/models/decimal_list_compliance_parameter.py +77 -164
  307. lusid/models/decorated_compliance_run_summary.py +65 -156
  308. lusid/models/delete_accounts_response.py +95 -0
  309. lusid/models/delete_custodian_accounts_response.py +103 -0
  310. lusid/models/delete_instrument_properties_response.py +67 -186
  311. lusid/models/delete_instrument_response.py +74 -216
  312. lusid/models/delete_instruments_response.py +74 -217
  313. lusid/models/delete_modes.py +38 -0
  314. lusid/models/delete_relation_request.py +71 -0
  315. lusid/models/delete_relationship_request.py +87 -238
  316. lusid/models/deleted_entity_response.py +81 -306
  317. lusid/models/dependency_source_filter.py +70 -228
  318. lusid/models/described_address_key.py +81 -0
  319. lusid/models/dialect.py +67 -185
  320. lusid/models/dialect_id.py +89 -330
  321. lusid/models/dialect_schema.py +58 -167
  322. lusid/models/diary_entry.py +155 -0
  323. lusid/models/diary_entry_request.py +120 -0
  324. lusid/models/discount_factor_curve_data.py +91 -296
  325. lusid/models/discounting_dependency.py +76 -199
  326. lusid/models/discounting_method.py +39 -0
  327. lusid/models/dividend_option_event.py +112 -354
  328. lusid/models/dividend_reinvestment_event.py +107 -354
  329. lusid/models/economic_dependency.py +82 -150
  330. lusid/models/economic_dependency_type.py +50 -0
  331. lusid/models/economic_dependency_with_complex_market_data.py +61 -156
  332. lusid/models/economic_dependency_with_quote.py +68 -186
  333. lusid/models/election_specification.py +73 -0
  334. lusid/models/eligibility_calculation.py +71 -0
  335. lusid/models/empty_model_options.py +71 -134
  336. lusid/models/entity_identifier.py +60 -190
  337. lusid/models/equity.py +86 -225
  338. lusid/models/equity_all_of_identifiers.py +83 -415
  339. lusid/models/equity_curve_by_prices_data.py +91 -296
  340. lusid/models/equity_curve_dependency.py +80 -281
  341. lusid/models/equity_model_options.py +73 -169
  342. lusid/models/equity_option.py +117 -573
  343. lusid/models/equity_swap.py +107 -487
  344. lusid/models/equity_vol_dependency.py +80 -275
  345. lusid/models/equity_vol_surface_data.py +101 -267
  346. lusid/models/error_detail.py +77 -216
  347. lusid/models/event_date_range.py +54 -155
  348. lusid/models/ex_dividend_configuration.py +57 -221
  349. lusid/models/exchange_traded_option.py +84 -261
  350. lusid/models/exchange_traded_option_contract_details.py +80 -535
  351. lusid/models/execution.py +144 -671
  352. lusid/models/execution_request.py +119 -577
  353. lusid/models/execution_set_request.py +64 -126
  354. lusid/models/exercise_event.py +83 -228
  355. lusid/models/exotic_instrument.py +79 -199
  356. lusid/models/expanded_group.py +121 -338
  357. lusid/models/fee_rule.py +138 -0
  358. lusid/models/fee_rule_upsert_request.py +142 -0
  359. lusid/models/fee_rule_upsert_response.py +97 -0
  360. lusid/models/field_definition.py +62 -195
  361. lusid/models/field_schema.py +83 -247
  362. lusid/models/field_value.py +60 -165
  363. lusid/models/file_response.py +69 -181
  364. lusid/models/filter_predicate_compliance_parameter.py +73 -167
  365. lusid/models/filter_step.py +83 -201
  366. lusid/models/fixed_leg.py +95 -287
  367. lusid/models/fixed_leg_all_of_overrides.py +65 -154
  368. lusid/models/fixed_schedule.py +131 -0
  369. lusid/models/flexible_loan.py +88 -263
  370. lusid/models/float_schedule.py +155 -0
  371. lusid/models/floating_leg.py +109 -349
  372. lusid/models/flow_convention_name.py +60 -193
  373. lusid/models/flow_conventions.py +120 -607
  374. lusid/models/forward_rate_agreement.py +90 -356
  375. lusid/models/from_recipe.py +81 -0
  376. lusid/models/fund.py +182 -0
  377. lusid/models/fund_properties.py +115 -0
  378. lusid/models/fund_request.py +165 -0
  379. lusid/models/fund_share_class.py +81 -336
  380. lusid/models/funding_leg.py +89 -259
  381. lusid/models/funding_leg_options.py +91 -0
  382. lusid/models/future.py +100 -388
  383. lusid/models/futures_contract_details.py +112 -562
  384. lusid/models/fx_conventions.py +55 -198
  385. lusid/models/fx_dependency.py +78 -231
  386. lusid/models/fx_forward.py +99 -481
  387. lusid/models/fx_forward_curve_by_quote_reference.py +114 -387
  388. lusid/models/fx_forward_curve_data.py +95 -360
  389. lusid/models/fx_forward_model_options.py +91 -242
  390. lusid/models/fx_forward_pips_curve_data.py +95 -360
  391. lusid/models/fx_forward_settlement_event.py +119 -507
  392. lusid/models/fx_forward_tenor_curve_data.py +117 -420
  393. lusid/models/fx_forward_tenor_pips_curve_data.py +117 -420
  394. lusid/models/fx_forwards_dependency.py +80 -269
  395. lusid/models/fx_linked_notional_schedule.py +90 -255
  396. lusid/models/fx_option.py +159 -629
  397. lusid/models/fx_rate_schedule.py +111 -0
  398. lusid/models/fx_swap.py +89 -224
  399. lusid/models/fx_tenor_convention.py +53 -166
  400. lusid/models/fx_vol_dependency.py +80 -269
  401. lusid/models/fx_vol_surface_data.py +101 -267
  402. lusid/models/general_ledger_profile_mapping.py +78 -0
  403. lusid/models/general_ledger_profile_request.py +112 -0
  404. lusid/models/general_ledger_profile_response.py +146 -0
  405. lusid/models/get_cds_flow_conventions_response.py +115 -0
  406. lusid/models/get_complex_market_data_response.py +111 -214
  407. lusid/models/get_counterparty_agreement_response.py +97 -213
  408. lusid/models/get_credit_support_annex_response.py +97 -213
  409. lusid/models/get_data_map_response.py +129 -0
  410. lusid/models/get_flow_conventions_response.py +115 -0
  411. lusid/models/get_index_convention_response.py +115 -0
  412. lusid/models/get_instruments_response.py +111 -214
  413. lusid/models/get_quotes_response.py +130 -244
  414. lusid/models/get_recipe_composer_response.py +95 -0
  415. lusid/models/get_recipe_response.py +77 -183
  416. lusid/models/get_reference_portfolio_constituents_response.py +117 -319
  417. lusid/models/get_structured_result_data_response.py +111 -214
  418. lusid/models/get_virtual_document_response.py +129 -0
  419. lusid/models/group_by_selector_compliance_parameter.py +73 -167
  420. lusid/models/group_by_step.py +83 -201
  421. lusid/models/group_filter_predicate_compliance_parameter.py +73 -167
  422. lusid/models/group_filter_step.py +92 -201
  423. lusid/models/group_of_market_data_key_rules.py +61 -163
  424. lusid/models/grouped_result_of_address_key.py +89 -0
  425. lusid/models/holding_adjustment.py +121 -313
  426. lusid/models/holding_adjustment_with_date.py +124 -345
  427. lusid/models/holding_context.py +51 -127
  428. lusid/models/holding_contributor.py +55 -156
  429. lusid/models/holdings_adjustment.py +92 -257
  430. lusid/models/holdings_adjustment_header.py +82 -225
  431. lusid/models/i_unit_definition_dto.py +85 -217
  432. lusid/models/id_selector_definition.py +75 -227
  433. lusid/models/identifier_part_schema.py +74 -283
  434. lusid/models/index_convention.py +100 -388
  435. lusid/models/index_model_options.py +80 -172
  436. lusid/models/index_projection_dependency.py +80 -275
  437. lusid/models/industry_classifier.py +60 -172
  438. lusid/models/inflation_fixing_dependency.py +78 -237
  439. lusid/models/inflation_index_conventions.py +71 -307
  440. lusid/models/inflation_leg.py +120 -455
  441. lusid/models/inflation_linked_bond.py +153 -601
  442. lusid/models/inflation_swap.py +88 -259
  443. lusid/models/informational_error_event.py +78 -237
  444. lusid/models/informational_event.py +86 -262
  445. lusid/models/inline_valuation_request.py +150 -497
  446. lusid/models/inline_valuations_reconciliation_request.py +82 -216
  447. lusid/models/input_transition.py +53 -160
  448. lusid/models/instrument.py +160 -597
  449. lusid/models/instrument_capabilities.py +133 -0
  450. lusid/models/instrument_cash_flow.py +90 -386
  451. lusid/models/instrument_definition.py +93 -280
  452. lusid/models/instrument_definition_format.py +55 -201
  453. lusid/models/instrument_delete_modes.py +38 -0
  454. lusid/models/instrument_event.py +86 -182
  455. lusid/models/instrument_event_configuration.py +56 -156
  456. lusid/models/instrument_event_holder.py +115 -490
  457. lusid/models/instrument_event_type.py +57 -0
  458. lusid/models/instrument_id_type_descriptor.py +55 -195
  459. lusid/models/instrument_id_value.py +54 -163
  460. lusid/models/instrument_leg.py +82 -143
  461. lusid/models/instrument_list.py +73 -170
  462. lusid/models/instrument_list_compliance_parameter.py +77 -164
  463. lusid/models/instrument_match.py +78 -156
  464. lusid/models/instrument_models.py +78 -184
  465. lusid/models/instrument_payment_diary.py +131 -0
  466. lusid/models/instrument_payment_diary_leg.py +91 -0
  467. lusid/models/instrument_payment_diary_row.py +132 -0
  468. lusid/models/instrument_properties.py +97 -213
  469. lusid/models/instrument_resolution_detail.py +105 -0
  470. lusid/models/instrument_search_property.py +53 -163
  471. lusid/models/instrument_type.py +74 -0
  472. lusid/models/interest_rate_swap.py +110 -322
  473. lusid/models/interest_rate_swaption.py +90 -296
  474. lusid/models/intermediate_compliance_step.py +110 -0
  475. lusid/models/ir_vol_cube_data.py +101 -267
  476. lusid/models/ir_vol_dependency.py +78 -237
  477. lusid/models/is_business_day_response.py +54 -157
  478. lusid/models/journal_entry_line.py +224 -0
  479. lusid/models/journal_entry_lines_query_parameters.py +109 -0
  480. lusid/models/label_value_set.py +51 -129
  481. lusid/models/leg_definition.py +143 -619
  482. lusid/models/legal_entity.py +158 -392
  483. lusid/models/level_step.py +54 -161
  484. lusid/models/life_cycle_event_lineage.py +84 -246
  485. lusid/models/life_cycle_event_value.py +86 -224
  486. lusid/models/lineage_member.py +69 -276
  487. lusid/models/link.py +62 -214
  488. lusid/models/list_aggregation_reconciliation.py +73 -211
  489. lusid/models/list_aggregation_response.py +111 -324
  490. lusid/models/list_complex_market_data_with_meta_data_response.py +86 -0
  491. lusid/models/loan_period.py +56 -187
  492. lusid/models/lock_period_diary_entry_request.py +91 -0
  493. lusid/models/lusid_instrument.py +99 -168
  494. lusid/models/lusid_problem_details.py +95 -327
  495. lusid/models/lusid_trade_ticket.py +155 -639
  496. lusid/models/lusid_unique_id.py +53 -166
  497. lusid/models/lusid_validation_problem_details.py +106 -356
  498. lusid/models/mapped_string.py +72 -209
  499. lusid/models/mapping.py +93 -281
  500. lusid/models/mapping_rule.py +96 -308
  501. lusid/models/market_context.py +111 -243
  502. lusid/models/market_context_suppliers.py +59 -241
  503. lusid/models/market_data_key_rule.py +114 -493
  504. lusid/models/market_data_options.py +73 -141
  505. lusid/models/market_data_options_type.py +37 -0
  506. lusid/models/market_data_overrides.py +79 -156
  507. lusid/models/market_data_specific_rule.py +115 -525
  508. lusid/models/market_data_type.py +50 -0
  509. lusid/models/market_observable_type.py +41 -0
  510. lusid/models/market_options.py +108 -318
  511. lusid/models/market_quote.py +60 -166
  512. lusid/models/match_criterion.py +95 -0
  513. lusid/models/maturity_event.py +74 -167
  514. lusid/models/metric_value.py +58 -155
  515. lusid/models/model_options.py +76 -144
  516. lusid/models/model_options_type.py +43 -0
  517. lusid/models/model_property.py +72 -218
  518. lusid/models/model_schema.py +116 -0
  519. lusid/models/model_selection.py +67 -172
  520. lusid/models/move_orders_to_different_blocks_request.py +59 -134
  521. lusid/models/moved_order_to_different_block_response.py +67 -183
  522. lusid/models/movement_type.py +56 -0
  523. lusid/models/multi_currency_amounts.py +71 -0
  524. lusid/models/next_value_in_sequence_response.py +66 -156
  525. lusid/models/numeric_comparison_type.py +39 -0
  526. lusid/models/opaque_dependency.py +71 -134
  527. lusid/models/opaque_market_data.py +84 -275
  528. lusid/models/opaque_model_options.py +73 -164
  529. lusid/models/open_event.py +74 -166
  530. lusid/models/operand_type.py +38 -0
  531. lusid/models/operation.py +67 -221
  532. lusid/models/operation_type.py +37 -0
  533. lusid/models/operator.py +43 -0
  534. lusid/models/option_entry.py +71 -0
  535. lusid/models/optionality_schedule.py +118 -0
  536. lusid/models/order.py +173 -704
  537. lusid/models/order_by_spec.py +60 -166
  538. lusid/models/order_flow_configuration.py +51 -131
  539. lusid/models/order_graph_block.py +85 -381
  540. lusid/models/order_graph_block_allocation_detail.py +55 -126
  541. lusid/models/order_graph_block_allocation_synopsis.py +61 -160
  542. lusid/models/order_graph_block_execution_detail.py +55 -126
  543. lusid/models/order_graph_block_execution_synopsis.py +61 -160
  544. lusid/models/order_graph_block_order_detail.py +83 -314
  545. lusid/models/order_graph_block_order_synopsis.py +61 -190
  546. lusid/models/order_graph_block_placement_detail.py +55 -126
  547. lusid/models/order_graph_block_placement_synopsis.py +61 -190
  548. lusid/models/order_graph_placement.py +94 -341
  549. lusid/models/order_graph_placement_allocation_detail.py +55 -126
  550. lusid/models/order_graph_placement_allocation_synopsis.py +61 -160
  551. lusid/models/order_graph_placement_child_placement_detail.py +55 -126
  552. lusid/models/order_graph_placement_execution_detail.py +55 -126
  553. lusid/models/order_graph_placement_execution_synopsis.py +61 -160
  554. lusid/models/order_graph_placement_order_detail.py +55 -126
  555. lusid/models/order_graph_placement_order_synopsis.py +59 -128
  556. lusid/models/order_graph_placement_placement_synopsis.py +61 -160
  557. lusid/models/order_instruction.py +157 -0
  558. lusid/models/order_instruction_request.py +127 -0
  559. lusid/models/order_instruction_set_request.py +82 -0
  560. lusid/models/order_request.py +141 -580
  561. lusid/models/order_set_request.py +64 -126
  562. lusid/models/otc_confirmation.py +55 -125
  563. lusid/models/output_transaction.py +196 -905
  564. lusid/models/output_transition.py +77 -281
  565. lusid/models/package.py +132 -0
  566. lusid/models/package_request.py +111 -0
  567. lusid/models/package_set_request.py +82 -0
  568. lusid/models/paged_resource_list_of_abor.py +113 -0
  569. lusid/models/paged_resource_list_of_abor_configuration.py +113 -0
  570. lusid/models/paged_resource_list_of_account.py +113 -0
  571. lusid/models/paged_resource_list_of_address_key_definition.py +95 -238
  572. lusid/models/paged_resource_list_of_allocation.py +95 -238
  573. lusid/models/paged_resource_list_of_block.py +95 -238
  574. lusid/models/paged_resource_list_of_calendar.py +95 -238
  575. lusid/models/paged_resource_list_of_chart_of_accounts.py +113 -0
  576. lusid/models/paged_resource_list_of_cleardown_module_response.py +113 -0
  577. lusid/models/paged_resource_list_of_cleardown_module_rule.py +113 -0
  578. lusid/models/paged_resource_list_of_compliance_rule_response.py +95 -238
  579. lusid/models/paged_resource_list_of_compliance_run_info_v2.py +95 -238
  580. lusid/models/paged_resource_list_of_compliance_template.py +95 -238
  581. lusid/models/paged_resource_list_of_corporate_action_source.py +95 -238
  582. lusid/models/paged_resource_list_of_custodian_account.py +113 -0
  583. lusid/models/paged_resource_list_of_custom_entity_definition.py +95 -238
  584. lusid/models/paged_resource_list_of_custom_entity_response.py +95 -238
  585. lusid/models/paged_resource_list_of_custom_entity_type.py +95 -238
  586. lusid/models/paged_resource_list_of_cut_label_definition.py +95 -238
  587. lusid/models/paged_resource_list_of_data_type_summary.py +95 -238
  588. lusid/models/paged_resource_list_of_dialect_id.py +95 -238
  589. lusid/models/paged_resource_list_of_diary_entry.py +113 -0
  590. lusid/models/paged_resource_list_of_execution.py +95 -238
  591. lusid/models/paged_resource_list_of_fund.py +113 -0
  592. lusid/models/paged_resource_list_of_general_ledger_profile_response.py +113 -0
  593. lusid/models/paged_resource_list_of_instrument.py +95 -238
  594. lusid/models/paged_resource_list_of_instrument_event_holder.py +95 -238
  595. lusid/models/paged_resource_list_of_legal_entity.py +95 -238
  596. lusid/models/paged_resource_list_of_order.py +95 -238
  597. lusid/models/paged_resource_list_of_order_graph_block.py +95 -238
  598. lusid/models/paged_resource_list_of_order_graph_placement.py +95 -238
  599. lusid/models/paged_resource_list_of_order_instruction.py +113 -0
  600. lusid/models/paged_resource_list_of_package.py +113 -0
  601. lusid/models/paged_resource_list_of_participation.py +95 -238
  602. lusid/models/paged_resource_list_of_person.py +95 -238
  603. lusid/models/paged_resource_list_of_placement.py +95 -238
  604. lusid/models/paged_resource_list_of_portfolio_group.py +95 -238
  605. lusid/models/paged_resource_list_of_portfolio_group_search_result.py +95 -238
  606. lusid/models/paged_resource_list_of_portfolio_search_result.py +95 -238
  607. lusid/models/paged_resource_list_of_posting_module_response.py +113 -0
  608. lusid/models/paged_resource_list_of_posting_module_rule.py +113 -0
  609. lusid/models/paged_resource_list_of_property_definition.py +95 -238
  610. lusid/models/paged_resource_list_of_property_definition_search_result.py +95 -238
  611. lusid/models/paged_resource_list_of_reconciliation.py +113 -0
  612. lusid/models/paged_resource_list_of_reference_list_response.py +95 -238
  613. lusid/models/paged_resource_list_of_relationship_definition.py +95 -238
  614. lusid/models/paged_resource_list_of_sequence_definition.py +95 -238
  615. lusid/models/paged_resource_list_of_transaction_template.py +113 -0
  616. lusid/models/paged_resource_list_of_transaction_template_specification.py +113 -0
  617. lusid/models/paged_resource_list_of_translation_script_id.py +95 -238
  618. lusid/models/paged_resource_list_of_virtual_row.py +95 -238
  619. lusid/models/participation.py +86 -243
  620. lusid/models/participation_request.py +65 -186
  621. lusid/models/participation_set_request.py +64 -126
  622. lusid/models/performance_return.py +75 -251
  623. lusid/models/performance_returns_metric.py +83 -309
  624. lusid/models/period_diary_entries_reopened_response.py +104 -0
  625. lusid/models/period_type.py +41 -0
  626. lusid/models/perpetual_entity_state.py +39 -0
  627. lusid/models/perpetual_property.py +57 -157
  628. lusid/models/person.py +137 -363
  629. lusid/models/place_blocks_request.py +59 -134
  630. lusid/models/placement.py +161 -696
  631. lusid/models/placement_request.py +136 -614
  632. lusid/models/placement_set_request.py +64 -126
  633. lusid/models/portfolio.py +200 -744
  634. lusid/models/portfolio_cash_flow.py +139 -591
  635. lusid/models/portfolio_cash_ladder.py +116 -248
  636. lusid/models/portfolio_details.py +143 -547
  637. lusid/models/portfolio_entity_id.py +90 -214
  638. lusid/models/portfolio_group.py +138 -400
  639. lusid/models/portfolio_group_id_compliance_parameter.py +77 -164
  640. lusid/models/portfolio_group_id_list.py +81 -167
  641. lusid/models/portfolio_group_id_list_compliance_parameter.py +77 -164
  642. lusid/models/portfolio_group_properties.py +97 -213
  643. lusid/models/portfolio_group_search_result.py +123 -370
  644. lusid/models/portfolio_holding.py +167 -674
  645. lusid/models/portfolio_id_compliance_parameter.py +77 -164
  646. lusid/models/portfolio_id_list.py +81 -167
  647. lusid/models/portfolio_id_list_compliance_parameter.py +77 -164
  648. lusid/models/portfolio_properties.py +97 -242
  649. lusid/models/portfolio_reconciliation_request.py +65 -192
  650. lusid/models/portfolio_result_data_key_rule.py +133 -392
  651. lusid/models/portfolio_return_breakdown.py +109 -492
  652. lusid/models/portfolio_search_result.py +128 -440
  653. lusid/models/portfolio_trade_ticket.py +79 -0
  654. lusid/models/portfolio_type.py +39 -0
  655. lusid/models/portfolios_reconciliation_request.py +62 -188
  656. lusid/models/posting_module_details.py +95 -0
  657. lusid/models/posting_module_request.py +117 -0
  658. lusid/models/posting_module_response.py +139 -0
  659. lusid/models/posting_module_rule.py +119 -0
  660. lusid/models/posting_module_rules_updated_response.py +110 -0
  661. lusid/models/premium.py +56 -193
  662. lusid/models/pricing_context.py +105 -244
  663. lusid/models/pricing_model.py +55 -0
  664. lusid/models/pricing_options.py +80 -463
  665. lusid/models/processed_command.py +67 -224
  666. lusid/models/property_definition.py +234 -763
  667. lusid/models/property_definition_search_result.py +202 -646
  668. lusid/models/property_definition_type.py +38 -0
  669. lusid/models/property_domain.py +75 -0
  670. lusid/models/property_filter.py +87 -228
  671. lusid/models/property_interval.py +68 -221
  672. lusid/models/property_key_compliance_parameter.py +73 -166
  673. lusid/models/property_key_list_compliance_parameter.py +77 -164
  674. lusid/models/property_life_time.py +38 -0
  675. lusid/models/property_schema.py +91 -180
  676. lusid/models/property_type.py +39 -0
  677. lusid/models/property_value.py +68 -184
  678. lusid/models/property_value_equals.py +93 -0
  679. lusid/models/property_value_in.py +93 -0
  680. lusid/models/query_bucketed_cash_flows_request.py +145 -636
  681. lusid/models/query_cash_flows_request.py +96 -0
  682. lusid/models/query_instrument_events_request.py +113 -0
  683. lusid/models/query_trade_tickets_request.py +96 -0
  684. lusid/models/quote.py +87 -313
  685. lusid/models/quote_access_metadata_rule.py +92 -0
  686. lusid/models/quote_access_metadata_rule_id.py +129 -0
  687. lusid/models/quote_dependency.py +78 -240
  688. lusid/models/quote_id.py +57 -161
  689. lusid/models/quote_instrument_id_type.py +45 -0
  690. lusid/models/quote_series_id.py +96 -307
  691. lusid/models/quote_type.py +50 -0
  692. lusid/models/raw_vendor_event.py +82 -232
  693. lusid/models/re_open_period_diary_entry_request.py +84 -0
  694. lusid/models/realised_gain_loss.py +115 -462
  695. lusid/models/recipe_block.py +87 -0
  696. lusid/models/recipe_composer.py +100 -0
  697. lusid/models/recipe_value.py +87 -0
  698. lusid/models/recombine_step.py +83 -201
  699. lusid/models/reconcile_date_time_rule.py +88 -233
  700. lusid/models/reconcile_numeric_rule.py +88 -233
  701. lusid/models/reconcile_string_rule.py +102 -232
  702. lusid/models/reconciled_transaction.py +69 -215
  703. lusid/models/reconciliation.py +165 -0
  704. lusid/models/reconciliation_break.py +105 -411
  705. lusid/models/reconciliation_configuration.py +84 -0
  706. lusid/models/reconciliation_id.py +80 -0
  707. lusid/models/reconciliation_left_right_address_key_pair.py +53 -160
  708. lusid/models/reconciliation_line.py +77 -216
  709. lusid/models/reconciliation_request.py +97 -246
  710. lusid/models/reconciliation_response.py +70 -155
  711. lusid/models/reconciliation_rule.py +74 -143
  712. lusid/models/reconciliation_rule_type.py +40 -0
  713. lusid/models/reconciliation_side_configuration.py +94 -0
  714. lusid/models/reconciliation_transactions.py +79 -0
  715. lusid/models/reference_data.py +69 -156
  716. lusid/models/reference_instrument.py +77 -239
  717. lusid/models/reference_list.py +77 -148
  718. lusid/models/reference_list_request.py +77 -251
  719. lusid/models/reference_list_response.py +98 -309
  720. lusid/models/reference_list_type.py +42 -0
  721. lusid/models/reference_portfolio_constituent.py +96 -307
  722. lusid/models/reference_portfolio_constituent_request.py +80 -214
  723. lusid/models/reference_portfolio_weight_type.py +39 -0
  724. lusid/models/related_entity.py +105 -349
  725. lusid/models/relation.py +70 -281
  726. lusid/models/relation_definition.py +143 -0
  727. lusid/models/relationship.py +76 -318
  728. lusid/models/relationship_definition.py +111 -446
  729. lusid/models/relative_date_offset.py +53 -193
  730. lusid/models/repo.py +136 -476
  731. lusid/models/reset_event.py +90 -262
  732. lusid/models/resource_id.py +53 -172
  733. lusid/models/resource_list_of_access_controlled_resource.py +95 -238
  734. lusid/models/resource_list_of_access_metadata_value_of.py +100 -238
  735. lusid/models/resource_list_of_address_key_definition.py +95 -238
  736. lusid/models/resource_list_of_aggregated_return.py +95 -238
  737. lusid/models/resource_list_of_aggregation_query.py +95 -238
  738. lusid/models/resource_list_of_allocation.py +95 -238
  739. lusid/models/resource_list_of_block.py +95 -238
  740. lusid/models/resource_list_of_block_and_orders.py +95 -238
  741. lusid/models/resource_list_of_calendar_date.py +95 -238
  742. lusid/models/resource_list_of_change.py +95 -238
  743. lusid/models/resource_list_of_change_history.py +95 -238
  744. lusid/models/resource_list_of_compliance_breached_order_info.py +113 -0
  745. lusid/models/resource_list_of_compliance_rule.py +113 -0
  746. lusid/models/resource_list_of_compliance_rule_result.py +113 -0
  747. lusid/models/resource_list_of_compliance_run_info.py +113 -0
  748. lusid/models/resource_list_of_constituents_adjustment_header.py +95 -238
  749. lusid/models/resource_list_of_corporate_action.py +95 -238
  750. lusid/models/resource_list_of_data_type.py +95 -238
  751. lusid/models/resource_list_of_execution.py +95 -238
  752. lusid/models/resource_list_of_fee_rule.py +113 -0
  753. lusid/models/resource_list_of_get_cds_flow_conventions_response.py +113 -0
  754. lusid/models/resource_list_of_get_counterparty_agreement_response.py +95 -238
  755. lusid/models/resource_list_of_get_credit_support_annex_response.py +95 -238
  756. lusid/models/resource_list_of_get_flow_conventions_response.py +113 -0
  757. lusid/models/resource_list_of_get_index_convention_response.py +113 -0
  758. lusid/models/resource_list_of_get_recipe_composer_response.py +113 -0
  759. lusid/models/resource_list_of_get_recipe_response.py +95 -238
  760. lusid/models/resource_list_of_holdings_adjustment_header.py +95 -238
  761. lusid/models/resource_list_of_i_unit_definition_dto.py +95 -238
  762. lusid/models/resource_list_of_instrument_cash_flow.py +95 -238
  763. lusid/models/resource_list_of_instrument_event_holder.py +113 -0
  764. lusid/models/resource_list_of_instrument_id_type_descriptor.py +95 -238
  765. lusid/models/resource_list_of_legal_entity.py +95 -238
  766. lusid/models/resource_list_of_list_complex_market_data_with_meta_data_response.py +113 -0
  767. lusid/models/resource_list_of_mapping.py +95 -238
  768. lusid/models/resource_list_of_moved_order_to_different_block_response.py +95 -238
  769. lusid/models/resource_list_of_order.py +95 -238
  770. lusid/models/resource_list_of_order_instruction.py +113 -0
  771. lusid/models/resource_list_of_package.py +113 -0
  772. lusid/models/resource_list_of_participation.py +95 -238
  773. lusid/models/resource_list_of_performance_return.py +95 -238
  774. lusid/models/resource_list_of_person.py +95 -238
  775. lusid/models/resource_list_of_placement.py +95 -238
  776. lusid/models/resource_list_of_portfolio.py +95 -238
  777. lusid/models/resource_list_of_portfolio_cash_flow.py +95 -238
  778. lusid/models/resource_list_of_portfolio_cash_ladder.py +95 -238
  779. lusid/models/resource_list_of_portfolio_trade_ticket.py +113 -0
  780. lusid/models/resource_list_of_processed_command.py +95 -238
  781. lusid/models/resource_list_of_property.py +95 -238
  782. lusid/models/resource_list_of_property_definition.py +95 -238
  783. lusid/models/resource_list_of_property_interval.py +95 -238
  784. lusid/models/resource_list_of_quote.py +95 -238
  785. lusid/models/resource_list_of_quote_access_metadata_rule.py +113 -0
  786. lusid/models/resource_list_of_reconciliation_break.py +95 -238
  787. lusid/models/resource_list_of_relation.py +95 -238
  788. lusid/models/resource_list_of_relationship.py +95 -238
  789. lusid/models/resource_list_of_scope_definition.py +95 -238
  790. lusid/models/resource_list_of_side_definition.py +95 -238
  791. lusid/models/resource_list_of_string.py +87 -238
  792. lusid/models/resource_list_of_tax_rule_set.py +113 -0
  793. lusid/models/resource_list_of_transaction.py +95 -238
  794. lusid/models/resource_list_of_transaction_type.py +95 -238
  795. lusid/models/resource_list_of_value_type.py +88 -238
  796. lusid/models/response_meta_data.py +77 -216
  797. lusid/models/result_data_key_rule.py +103 -389
  798. lusid/models/result_data_schema.py +108 -184
  799. lusid/models/result_key_rule.py +74 -143
  800. lusid/models/result_key_rule_type.py +39 -0
  801. lusid/models/result_value.py +80 -149
  802. lusid/models/result_value0_d.py +87 -225
  803. lusid/models/result_value_bool.py +73 -165
  804. lusid/models/result_value_currency.py +78 -164
  805. lusid/models/result_value_date_time_offset.py +81 -196
  806. lusid/models/result_value_decimal.py +80 -195
  807. lusid/models/result_value_dictionary.py +89 -163
  808. lusid/models/result_value_int.py +80 -195
  809. lusid/models/result_value_string.py +78 -164
  810. lusid/models/result_value_type.py +48 -0
  811. lusid/models/rounding_configuration.py +55 -125
  812. lusid/models/rounding_configuration_component.py +51 -131
  813. lusid/models/rounding_convention.py +67 -218
  814. lusid/models/scaling_methodology.py +39 -0
  815. lusid/models/schedule.py +78 -143
  816. lusid/models/schedule_type.py +44 -0
  817. lusid/models/scope_definition.py +51 -131
  818. lusid/models/script_map_reference.py +76 -219
  819. lusid/models/security_election.py +68 -252
  820. lusid/models/sequence_definition.py +94 -374
  821. lusid/models/set_legal_entity_identifiers_request.py +69 -126
  822. lusid/models/set_legal_entity_properties_request.py +69 -126
  823. lusid/models/set_person_identifiers_request.py +69 -126
  824. lusid/models/set_person_properties_request.py +64 -128
  825. lusid/models/set_transaction_configuration_alias.py +84 -0
  826. lusid/models/set_transaction_configuration_source_request.py +107 -0
  827. lusid/models/side_configuration_data.py +76 -334
  828. lusid/models/side_configuration_data_request.py +79 -0
  829. lusid/models/side_definition.py +83 -388
  830. lusid/models/side_definition_request.py +66 -322
  831. lusid/models/sides_definition_request.py +57 -164
  832. lusid/models/simple_cash_flow_loan.py +88 -263
  833. lusid/models/simple_instrument.py +94 -301
  834. lusid/models/sort_order.py +38 -0
  835. lusid/models/step_schedule.py +85 -236
  836. lusid/models/stock_split_event.py +78 -349
  837. lusid/models/stream.py +70 -328
  838. lusid/models/string_comparison_type.py +41 -0
  839. lusid/models/string_compliance_parameter.py +73 -167
  840. lusid/models/string_list.py +73 -170
  841. lusid/models/string_list_compliance_parameter.py +77 -164
  842. lusid/models/structured_result_data.py +73 -267
  843. lusid/models/structured_result_data_id.py +89 -236
  844. lusid/models/sub_holding_key_value_equals.py +93 -0
  845. lusid/models/target_tax_lot.py +86 -368
  846. lusid/models/target_tax_lot_request.py +86 -368
  847. lusid/models/tax_rule.py +97 -0
  848. lusid/models/tax_rule_set.py +124 -0
  849. lusid/models/template_field.py +77 -0
  850. lusid/models/term_deposit.py +93 -323
  851. lusid/models/total_return_swap.py +88 -259
  852. lusid/models/touch.py +62 -228
  853. lusid/models/trade_ticket.py +76 -0
  854. lusid/models/trade_ticket_type.py +38 -0
  855. lusid/models/transaction.py +181 -812
  856. lusid/models/transaction_configuration_data.py +89 -190
  857. lusid/models/transaction_configuration_data_request.py +89 -190
  858. lusid/models/transaction_configuration_movement_data.py +110 -320
  859. lusid/models/transaction_configuration_movement_data_request.py +110 -320
  860. lusid/models/transaction_configuration_type_alias.py +90 -339
  861. lusid/models/transaction_currency_and_amount.py +81 -0
  862. lusid/models/transaction_field_map.py +97 -0
  863. lusid/models/transaction_price.py +63 -162
  864. lusid/models/transaction_price_and_type.py +81 -0
  865. lusid/models/transaction_price_type.py +40 -0
  866. lusid/models/transaction_property_map.py +80 -0
  867. lusid/models/transaction_property_mapping.py +65 -188
  868. lusid/models/transaction_property_mapping_request.py +65 -188
  869. lusid/models/transaction_query_mode.py +38 -0
  870. lusid/models/transaction_query_parameters.py +67 -234
  871. lusid/models/transaction_reconciliation_request.py +84 -302
  872. lusid/models/transaction_reconciliation_request_v2.py +115 -0
  873. lusid/models/transaction_request.py +143 -661
  874. lusid/models/transaction_roles.py +44 -0
  875. lusid/models/transaction_set_configuration_data.py +89 -186
  876. lusid/models/transaction_set_configuration_data_request.py +92 -0
  877. lusid/models/transaction_status.py +39 -0
  878. lusid/models/transaction_template.py +100 -0
  879. lusid/models/transaction_template_request.py +79 -0
  880. lusid/models/transaction_template_specification.py +99 -0
  881. lusid/models/transaction_type.py +119 -248
  882. lusid/models/transaction_type_alias.py +73 -282
  883. lusid/models/transaction_type_calculation.py +60 -206
  884. lusid/models/transaction_type_movement.py +128 -405
  885. lusid/models/transaction_type_property_mapping.py +75 -197
  886. lusid/models/transaction_type_request.py +104 -220
  887. lusid/models/transactions_reconciliations_response.py +70 -155
  888. lusid/models/transition_event.py +101 -318
  889. lusid/models/translate_entities_inlined_request.py +72 -195
  890. lusid/models/translate_entities_request.py +76 -187
  891. lusid/models/translate_entities_response.py +104 -184
  892. lusid/models/translate_instrument_definitions_request.py +91 -0
  893. lusid/models/translate_instrument_definitions_response.py +129 -0
  894. lusid/models/translate_trade_ticket_request.py +91 -0
  895. lusid/models/translate_trade_tickets_response.py +129 -0
  896. lusid/models/translation_context.py +57 -154
  897. lusid/models/translation_input.py +51 -134
  898. lusid/models/translation_result.py +66 -163
  899. lusid/models/translation_script.py +63 -193
  900. lusid/models/translation_script_id.py +76 -219
  901. lusid/models/trial_balance.py +138 -0
  902. lusid/models/trial_balance_query_parameters.py +111 -0
  903. lusid/models/trigger_event.py +82 -301
  904. lusid/models/typed_resource_id.py +76 -219
  905. lusid/models/unit_schema.py +39 -0
  906. lusid/models/units_ratio.py +53 -160
  907. lusid/models/unmatched_holding_method.py +38 -0
  908. lusid/models/update_calendar_request.py +74 -195
  909. lusid/models/update_custom_entity_definition_request.py +77 -204
  910. lusid/models/update_custom_entity_type_request.py +77 -204
  911. lusid/models/update_cut_label_definition_request.py +83 -226
  912. lusid/models/update_data_type_request.py +105 -234
  913. lusid/models/update_derived_property_definition_request.py +66 -229
  914. lusid/models/update_instrument_identifier_request.py +65 -191
  915. lusid/models/update_portfolio_group_request.py +58 -161
  916. lusid/models/update_portfolio_request.py +58 -161
  917. lusid/models/update_property_definition_request.py +58 -164
  918. lusid/models/update_reconciliation_request.py +131 -0
  919. lusid/models/update_relationship_definition_request.py +76 -219
  920. lusid/models/update_tax_rule_set_request.py +95 -0
  921. lusid/models/update_unit_request.py +100 -207
  922. lusid/models/upsert_cds_flow_conventions_request.py +73 -0
  923. lusid/models/upsert_complex_market_data_request.py +61 -156
  924. lusid/models/upsert_compliance_rule_request.py +113 -380
  925. lusid/models/upsert_compliance_run_summary_request.py +72 -250
  926. lusid/models/upsert_compliance_run_summary_result.py +72 -250
  927. lusid/models/upsert_corporate_action_request.py +94 -337
  928. lusid/models/upsert_corporate_actions_response.py +111 -214
  929. lusid/models/upsert_counterparty_agreement_request.py +55 -126
  930. lusid/models/upsert_credit_support_annex_request.py +55 -125
  931. lusid/models/upsert_custom_entities_response.py +111 -244
  932. lusid/models/upsert_custom_entity_access_metadata_request.py +64 -126
  933. lusid/models/upsert_dialect_request.py +61 -156
  934. lusid/models/upsert_flow_conventions_request.py +73 -0
  935. lusid/models/upsert_index_convention_request.py +73 -0
  936. lusid/models/upsert_instrument_event_request.py +107 -329
  937. lusid/models/upsert_instrument_events_response.py +111 -214
  938. lusid/models/upsert_instrument_properties_response.py +67 -157
  939. lusid/models/upsert_instrument_property_request.py +68 -196
  940. lusid/models/upsert_instruments_response.py +135 -274
  941. lusid/models/upsert_legal_entities_response.py +111 -214
  942. lusid/models/upsert_legal_entity_access_metadata_request.py +64 -126
  943. lusid/models/upsert_legal_entity_request.py +115 -267
  944. lusid/models/upsert_person_access_metadata_request.py +64 -126
  945. lusid/models/upsert_person_request.py +92 -232
  946. lusid/models/upsert_portfolio_access_metadata_request.py +59 -128
  947. lusid/models/upsert_portfolio_group_access_metadata_request.py +59 -128
  948. lusid/models/upsert_portfolio_transactions_response.py +101 -214
  949. lusid/models/upsert_quote_access_metadata_rule_request.py +92 -0
  950. lusid/models/upsert_quote_request.py +75 -215
  951. lusid/models/upsert_quotes_response.py +111 -214
  952. lusid/models/upsert_recipe_composer_request.py +73 -0
  953. lusid/models/upsert_recipe_request.py +55 -125
  954. lusid/models/upsert_reference_portfolio_constituents_request.py +94 -265
  955. lusid/models/upsert_reference_portfolio_constituents_response.py +77 -181
  956. lusid/models/upsert_result_values_data_request.py +93 -0
  957. lusid/models/upsert_returns_response.py +100 -245
  958. lusid/models/upsert_single_structured_data_response.py +74 -186
  959. lusid/models/upsert_structured_data_response.py +99 -215
  960. lusid/models/upsert_structured_result_data_request.py +61 -155
  961. lusid/models/upsert_transaction_properties_response.py +97 -211
  962. lusid/models/upsert_translation_script_request.py +57 -164
  963. lusid/models/user.py +56 -126
  964. lusid/models/valuation_request.py +156 -528
  965. lusid/models/valuation_schedule.py +93 -329
  966. lusid/models/valuations_reconciliation_request.py +82 -216
  967. lusid/models/value_type.py +34 -116
  968. lusid/models/vendor_dependency.py +95 -0
  969. lusid/models/vendor_library.py +43 -0
  970. lusid/models/vendor_model_rule.py +97 -335
  971. lusid/models/version.py +110 -431
  972. lusid/models/version_summary_dto.py +85 -208
  973. lusid/models/versioned_resource_list_of_a2_b_data_record.py +101 -268
  974. lusid/models/versioned_resource_list_of_a2_b_movement_record.py +101 -268
  975. lusid/models/versioned_resource_list_of_holding_contributor.py +101 -268
  976. lusid/models/versioned_resource_list_of_journal_entry_line.py +119 -0
  977. lusid/models/versioned_resource_list_of_output_transaction.py +101 -268
  978. lusid/models/versioned_resource_list_of_portfolio_holding.py +101 -268
  979. lusid/models/versioned_resource_list_of_transaction.py +101 -268
  980. lusid/models/versioned_resource_list_of_trial_balance.py +119 -0
  981. lusid/models/versioned_resource_list_with_warnings_of_portfolio_holding.py +134 -0
  982. lusid/models/virtual_document.py +88 -0
  983. lusid/models/virtual_document_row.py +80 -0
  984. lusid/models/virtual_row.py +76 -156
  985. lusid/models/warning.py +71 -0
  986. lusid/models/weekend_mask.py +61 -165
  987. lusid/models/weighted_instrument.py +75 -256
  988. lusid/models/weighted_instrument_in_line_lookup_identifiers.py +71 -415
  989. lusid/models/weighted_instruments.py +59 -128
  990. lusid/models/yield_curve_data.py +107 -296
  991. lusid/py.typed +0 -0
  992. lusid/rest.py +171 -237
  993. lusid_sdk-2.0.438.dist-info/METADATA +1639 -0
  994. lusid_sdk-2.0.438.dist-info/RECORD +995 -0
  995. {lusid_sdk-1.1.257.dist-info → lusid_sdk-2.0.438.dist-info}/WHEEL +1 -2
  996. lusid/__version__.py +0 -1
  997. lusid/api/queryable_keys_api.py +0 -196
  998. lusid/models/accumulation_event_all_of.py +0 -310
  999. lusid/models/address_key_compliance_parameter_all_of.py +0 -184
  1000. lusid/models/address_key_list_all_of.py +0 -188
  1001. lusid/models/address_key_list_compliance_parameter_all_of.py +0 -182
  1002. lusid/models/amortisation_event_all_of.py +0 -283
  1003. lusid/models/basket_all_of.py +0 -247
  1004. lusid/models/batch_upsert_dates_for_calendar_response.py +0 -232
  1005. lusid/models/batch_upsert_portfolio_access_metadata_request.py +0 -174
  1006. lusid/models/batch_upsert_portfolio_access_metadata_response.py +0 -202
  1007. lusid/models/batch_upsert_portfolio_access_metadata_response_item.py +0 -174
  1008. lusid/models/bond_all_of.py +0 -587
  1009. lusid/models/bond_coupon_event_all_of.py +0 -278
  1010. lusid/models/bond_default_event_all_of.py +0 -184
  1011. lusid/models/bond_principal_event_all_of.py +0 -278
  1012. lusid/models/bonus_issue_event.py +0 -426
  1013. lusid/models/bonus_issue_event_all_of.py +0 -426
  1014. lusid/models/bool_compliance_parameter_all_of.py +0 -182
  1015. lusid/models/branch_step_all_of.py +0 -219
  1016. lusid/models/branch_step_request.py +0 -193
  1017. lusid/models/branch_step_request_all_of.py +0 -193
  1018. lusid/models/calendar_dependency_all_of.py +0 -184
  1019. lusid/models/call_on_intermediate_securities_event.py +0 -400
  1020. lusid/models/call_on_intermediate_securities_event_all_of.py +0 -400
  1021. lusid/models/cancel_order_and_move_remaining_result.py +0 -201
  1022. lusid/models/cancel_orders_and_move_remaining_request.py +0 -204
  1023. lusid/models/cancel_orders_and_move_remaining_response.py +0 -262
  1024. lusid/models/cancel_orders_response.py +0 -262
  1025. lusid/models/cancel_placements_response.py +0 -262
  1026. lusid/models/cancelled_order_result.py +0 -143
  1027. lusid/models/cancelled_placement_result.py +0 -175
  1028. lusid/models/cap_floor_all_of.py +0 -313
  1029. lusid/models/capital_distribution_event.py +0 -308
  1030. lusid/models/capital_distribution_event_all_of.py +0 -308
  1031. lusid/models/cash.py +0 -216
  1032. lusid/models/cash_all_of.py +0 -216
  1033. lusid/models/cash_and_security_offer_election.py +0 -335
  1034. lusid/models/cash_dependency_all_of.py +0 -216
  1035. lusid/models/cash_dividend_event_all_of.py +0 -308
  1036. lusid/models/cash_flow_event_all_of.py +0 -217
  1037. lusid/models/cash_flow_value_all_of.py +0 -306
  1038. lusid/models/cash_flow_value_set_all_of.py +0 -182
  1039. lusid/models/cash_offer_election.py +0 -275
  1040. lusid/models/cash_perpetual_all_of.py +0 -248
  1041. lusid/models/cds_credit_event.py +0 -244
  1042. lusid/models/cds_credit_event_all_of.py +0 -244
  1043. lusid/models/cds_index_all_of.py +0 -399
  1044. lusid/models/cdx_credit_event.py +0 -306
  1045. lusid/models/cdx_credit_event_all_of.py +0 -306
  1046. lusid/models/check_step_all_of.py +0 -251
  1047. lusid/models/check_step_request.py +0 -193
  1048. lusid/models/close_event_all_of.py +0 -214
  1049. lusid/models/complex_bond_all_of.py +0 -344
  1050. lusid/models/compliance_rule_template.py +0 -329
  1051. lusid/models/compliance_run_configuration.py +0 -144
  1052. lusid/models/compliance_run_summary.py +0 -267
  1053. lusid/models/compliance_step_request.py +0 -167
  1054. lusid/models/compliance_template_variation_dto.py +0 -290
  1055. lusid/models/compliance_template_variation_request.py +0 -290
  1056. lusid/models/configuration_recipe_snippet.py +0 -372
  1057. lusid/models/constant_volatility_surface_all_of.py +0 -285
  1058. lusid/models/contract_for_difference_all_of.py +0 -478
  1059. lusid/models/create_compliance_template_request.py +0 -228
  1060. lusid/models/credit_default_swap_all_of.py +0 -401
  1061. lusid/models/credit_premium_cash_flow_event.py +0 -278
  1062. lusid/models/credit_premium_cash_flow_event_all_of.py +0 -278
  1063. lusid/models/credit_spread_curve_data_all_of.py +0 -437
  1064. lusid/models/date_time_compliance_parameter_all_of.py +0 -182
  1065. lusid/models/decimal_compliance_parameter_all_of.py +0 -182
  1066. lusid/models/decimal_list_all_of.py +0 -188
  1067. lusid/models/discount_factor_curve_data_all_of.py +0 -313
  1068. lusid/models/discounting_dependency_all_of.py +0 -216
  1069. lusid/models/dividend_option_event_all_of.py +0 -371
  1070. lusid/models/empty_model_options_all_of.py +0 -152
  1071. lusid/models/equity_all_of.py +0 -243
  1072. lusid/models/equity_curve_by_prices_data_all_of.py +0 -313
  1073. lusid/models/equity_curve_dependency_all_of.py +0 -298
  1074. lusid/models/equity_model_options_all_of.py +0 -187
  1075. lusid/models/equity_option_all_of.py +0 -590
  1076. lusid/models/equity_swap_all_of.py +0 -504
  1077. lusid/models/equity_vol_dependency_all_of.py +0 -292
  1078. lusid/models/equity_vol_surface_data_all_of.py +0 -284
  1079. lusid/models/exchange_traded_option_all_of.py +0 -278
  1080. lusid/models/exercise_event_all_of.py +0 -245
  1081. lusid/models/exotic_instrument_all_of.py +0 -217
  1082. lusid/models/expiry_event.py +0 -184
  1083. lusid/models/expiry_event_all_of.py +0 -184
  1084. lusid/models/filter_predicate_compliance_parameter_all_of.py +0 -185
  1085. lusid/models/filter_step_request.py +0 -193
  1086. lusid/models/fixed_leg_all_of.py +0 -304
  1087. lusid/models/flexible_loan_all_of.py +0 -280
  1088. lusid/models/floating_leg_all_of.py +0 -366
  1089. lusid/models/forward_rate_agreement_all_of.py +0 -373
  1090. lusid/models/fund_id_list.py +0 -185
  1091. lusid/models/fund_id_list_all_of.py +0 -185
  1092. lusid/models/fund_share_class_all_of.py +0 -354
  1093. lusid/models/funding_leg_all_of.py +0 -276
  1094. lusid/models/future_all_of.py +0 -405
  1095. lusid/models/future_expiry_event.py +0 -246
  1096. lusid/models/future_expiry_event_all_of.py +0 -246
  1097. lusid/models/fx_dependency_all_of.py +0 -248
  1098. lusid/models/fx_forward_all_of.py +0 -498
  1099. lusid/models/fx_forward_curve_by_quote_reference_all_of.py +0 -405
  1100. lusid/models/fx_forward_curve_data_all_of.py +0 -377
  1101. lusid/models/fx_forward_model_options_all_of.py +0 -260
  1102. lusid/models/fx_forward_pips_curve_data_all_of.py +0 -377
  1103. lusid/models/fx_forward_settlement_event_all_of.py +0 -524
  1104. lusid/models/fx_forward_tenor_curve_data_all_of.py +0 -437
  1105. lusid/models/fx_forward_tenor_pips_curve_data_all_of.py +0 -437
  1106. lusid/models/fx_forwards_dependency_all_of.py +0 -286
  1107. lusid/models/fx_linked_notional_schedule_all_of.py +0 -273
  1108. lusid/models/fx_option_all_of.py +0 -646
  1109. lusid/models/fx_swap_all_of.py +0 -242
  1110. lusid/models/fx_vol_dependency_all_of.py +0 -286
  1111. lusid/models/group_by_step_request.py +0 -193
  1112. lusid/models/group_calculation_compliance_parameter.py +0 -185
  1113. lusid/models/group_filter_step_all_of.py +0 -219
  1114. lusid/models/group_filter_step_request.py +0 -193
  1115. lusid/models/holding_ids_request.py +0 -149
  1116. lusid/models/holding_pricing_info.py +0 -234
  1117. lusid/models/index_model_options_all_of.py +0 -190
  1118. lusid/models/index_projection_dependency_all_of.py +0 -292
  1119. lusid/models/inflation_fixing_dependency_all_of.py +0 -254
  1120. lusid/models/inflation_leg_all_of.py +0 -472
  1121. lusid/models/inflation_linked_bond_all_of.py +0 -618
  1122. lusid/models/inflation_swap_all_of.py +0 -276
  1123. lusid/models/informational_error_event_all_of.py +0 -254
  1124. lusid/models/informational_event_all_of.py +0 -279
  1125. lusid/models/instrument_event_instruction.py +0 -380
  1126. lusid/models/instrument_event_instruction_request.py +0 -279
  1127. lusid/models/instrument_event_instructions_response.py +0 -174
  1128. lusid/models/instrument_leg_all_of.py +0 -152
  1129. lusid/models/instrument_list_all_of.py +0 -188
  1130. lusid/models/interest_rate_swap_all_of.py +0 -339
  1131. lusid/models/interest_rate_swaption_all_of.py +0 -313
  1132. lusid/models/intermediate_securities_distribution_event.py +0 -426
  1133. lusid/models/intermediate_securities_distribution_event_all_of.py +0 -426
  1134. lusid/models/ir_vol_cube_data_all_of.py +0 -284
  1135. lusid/models/ir_vol_dependency_all_of.py +0 -254
  1136. lusid/models/lapse_election.py +0 -211
  1137. lusid/models/life_cycle_event_value_all_of.py +0 -241
  1138. lusid/models/loan_facility.py +0 -292
  1139. lusid/models/loan_facility_all_of.py +0 -292
  1140. lusid/models/look_up_pricing_model_options.py +0 -216
  1141. lusid/models/look_up_pricing_model_options_all_of.py +0 -216
  1142. lusid/models/mastered_instrument.py +0 -364
  1143. lusid/models/mastered_instrument_all_of.py +0 -364
  1144. lusid/models/maturity_event_all_of.py +0 -184
  1145. lusid/models/mbs_coupon_event.py +0 -278
  1146. lusid/models/mbs_coupon_event_all_of.py +0 -278
  1147. lusid/models/mbs_interest_deferral_event.py +0 -278
  1148. lusid/models/mbs_interest_deferral_event_all_of.py +0 -278
  1149. lusid/models/mbs_interest_shortfall_event.py +0 -278
  1150. lusid/models/mbs_interest_shortfall_event_all_of.py +0 -278
  1151. lusid/models/mbs_principal_event.py +0 -278
  1152. lusid/models/mbs_principal_event_all_of.py +0 -278
  1153. lusid/models/mbs_principal_write_off_event.py +0 -278
  1154. lusid/models/mbs_principal_write_off_event_all_of.py +0 -278
  1155. lusid/models/merger_event.py +0 -456
  1156. lusid/models/merger_event_all_of.py +0 -456
  1157. lusid/models/new_instrument.py +0 -236
  1158. lusid/models/opaque_dependency_all_of.py +0 -152
  1159. lusid/models/opaque_market_data_all_of.py +0 -293
  1160. lusid/models/opaque_model_options_all_of.py +0 -182
  1161. lusid/models/open_event_all_of.py +0 -183
  1162. lusid/models/option_exercise_cash_event.py +0 -500
  1163. lusid/models/option_exercise_cash_event_all_of.py +0 -500
  1164. lusid/models/option_exercise_election.py +0 -211
  1165. lusid/models/option_exercise_physical_event.py +0 -530
  1166. lusid/models/option_exercise_physical_event_all_of.py +0 -530
  1167. lusid/models/order_graph_block_transaction_detail.py +0 -149
  1168. lusid/models/order_graph_block_transaction_synopsis.py +0 -178
  1169. lusid/models/order_update_request.py +0 -320
  1170. lusid/models/paged_resource_list_of_instrument_event_instruction.py +0 -256
  1171. lusid/models/percent_check_step.py +0 -251
  1172. lusid/models/percent_check_step_request.py +0 -193
  1173. lusid/models/placement_update_request.py +0 -306
  1174. lusid/models/portfolio_group_id_list_all_of.py +0 -185
  1175. lusid/models/portfolio_result_data_key_rule_all_of.py +0 -409
  1176. lusid/models/pre_trade_configuration.py +0 -149
  1177. lusid/models/property_key_compliance_parameter_all_of.py +0 -184
  1178. lusid/models/property_list.py +0 -188
  1179. lusid/models/property_list_all_of.py +0 -188
  1180. lusid/models/property_list_compliance_parameter.py +0 -182
  1181. lusid/models/protection_payout_cash_flow_event.py +0 -278
  1182. lusid/models/queryable_key.py +0 -508
  1183. lusid/models/quote_dependency_all_of.py +0 -257
  1184. lusid/models/raw_vendor_event_all_of.py +0 -249
  1185. lusid/models/reconcile_date_time_rule_all_of.py +0 -251
  1186. lusid/models/reconcile_numeric_rule_all_of.py +0 -251
  1187. lusid/models/reconcile_string_rule_all_of.py +0 -250
  1188. lusid/models/reference_instrument_all_of.py +0 -257
  1189. lusid/models/repo_all_of.py +0 -493
  1190. lusid/models/reset_event_all_of.py +0 -279
  1191. lusid/models/resource_list_of_output_transaction.py +0 -256
  1192. lusid/models/resource_list_of_queryable_key.py +0 -256
  1193. lusid/models/result_data_key_rule_all_of.py +0 -406
  1194. lusid/models/result_value0_d_all_of.py +0 -243
  1195. lusid/models/result_value_bool_all_of.py +0 -183
  1196. lusid/models/result_value_currency_all_of.py +0 -182
  1197. lusid/models/result_value_date_time_offset_all_of.py +0 -213
  1198. lusid/models/result_value_decimal_all_of.py +0 -213
  1199. lusid/models/result_value_dictionary_all_of.py +0 -182
  1200. lusid/models/result_value_int_all_of.py +0 -213
  1201. lusid/models/result_value_string_all_of.py +0 -182
  1202. lusid/models/return_zero_pv_options.py +0 -145
  1203. lusid/models/reverse_stock_split_event.py +0 -366
  1204. lusid/models/reverse_stock_split_event_all_of.py +0 -366
  1205. lusid/models/schema.py +0 -226
  1206. lusid/models/scrip_dividend_event.py +0 -366
  1207. lusid/models/scrip_dividend_event_all_of.py +0 -366
  1208. lusid/models/security_offer_election.py +0 -241
  1209. lusid/models/settlement_cycle.py +0 -180
  1210. lusid/models/settlement_schedule.py +0 -200
  1211. lusid/models/simple_cash_flow_loan_all_of.py +0 -280
  1212. lusid/models/simple_instrument_all_of.py +0 -318
  1213. lusid/models/simple_rounding_convention.py +0 -175
  1214. lusid/models/specific_holding_pricing_info.py +0 -179
  1215. lusid/models/spin_off_event.py +0 -426
  1216. lusid/models/staged_modifications_info.py +0 -208
  1217. lusid/models/step_schedule_all_of.py +0 -254
  1218. lusid/models/stock_dividend_event.py +0 -366
  1219. lusid/models/stock_dividend_event_all_of.py +0 -366
  1220. lusid/models/stock_split_event_all_of.py +0 -366
  1221. lusid/models/string_compliance_parameter_all_of.py +0 -185
  1222. lusid/models/swap_cash_flow_event.py +0 -279
  1223. lusid/models/swap_cash_flow_event_all_of.py +0 -279
  1224. lusid/models/swap_principal_event.py +0 -279
  1225. lusid/models/swap_principal_event_all_of.py +0 -279
  1226. lusid/models/tender_event.py +0 -456
  1227. lusid/models/tender_event_all_of.py +0 -456
  1228. lusid/models/term_deposit_all_of.py +0 -340
  1229. lusid/models/term_deposit_interest_event.py +0 -246
  1230. lusid/models/term_deposit_interest_event_all_of.py +0 -246
  1231. lusid/models/term_deposit_principal_event.py +0 -246
  1232. lusid/models/term_deposit_principal_event_all_of.py +0 -246
  1233. lusid/models/total_return_swap_all_of.py +0 -276
  1234. lusid/models/transition_event_all_of.py +0 -335
  1235. lusid/models/trigger_event_all_of.py +0 -318
  1236. lusid/models/update_compliance_template_request.py +0 -228
  1237. lusid/models/update_orders_response.py +0 -262
  1238. lusid/models/update_placements_response.py +0 -262
  1239. lusid/models/update_reference_data_request.py +0 -178
  1240. lusid/models/upsert_persons_response.py +0 -238
  1241. lusid/models/upsert_reference_portfolio_constituent_properties_request.py +0 -178
  1242. lusid/models/upsert_reference_portfolio_constituent_properties_response.py +0 -231
  1243. lusid/models/yield_curve_data_all_of.py +0 -313
  1244. lusid/tcp/__init__.py +0 -1
  1245. lusid/tcp/tcp_keep_alive_probes.py +0 -110
  1246. lusid/utilities/__init__.py +0 -8
  1247. lusid/utilities/api_client_builder.py +0 -145
  1248. lusid/utilities/api_client_factory.py +0 -132
  1249. lusid/utilities/api_configuration.py +0 -126
  1250. lusid/utilities/api_configuration_loader.py +0 -87
  1251. lusid/utilities/config_keys.json +0 -50
  1252. lusid/utilities/config_keys.py +0 -13
  1253. lusid/utilities/lusid_retry.py +0 -47
  1254. lusid_sdk-1.1.257.dist-info/METADATA +0 -21
  1255. lusid_sdk-1.1.257.dist-info/RECORD +0 -987
  1256. lusid_sdk-1.1.257.dist-info/top_level.txt +0 -1
@@ -5,223 +5,70 @@
5
5
 
6
6
  FINBOURNE Technology # noqa: E501
7
7
 
8
- The version of the OpenAPI document: 1.1.257
9
8
  Contact: info@finbourne.com
10
- Generated by: https://openapi-generator.tech
11
- """
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
10
 
11
+ Do not edit the class manually.
12
+ """
13
13
 
14
- from __future__ import absolute_import
15
14
 
16
15
  import re # noqa: F401
16
+ import io
17
+ import warnings
17
18
 
18
- # python 2 and python 3 compatibility library
19
- import six
19
+ from pydantic import validate_arguments, ValidationError
20
+ from typing import overload, Optional, Union, Awaitable
21
+
22
+ from typing_extensions import Annotated
23
+ from datetime import datetime
24
+
25
+ from pydantic import Field, StrictBool, StrictStr, conint, conlist, constr, validator
26
+
27
+ from typing import Optional
20
28
 
21
- from lusid.api_client import ApiClient
22
- from lusid.exceptions import ( # noqa: F401
23
- ApiTypeError,
24
- ApiValueError
25
- )
26
29
  from lusid.models.compliance_rule_response import ComplianceRuleResponse
27
30
  from lusid.models.compliance_rule_result_v2 import ComplianceRuleResultV2
28
- from lusid.models.compliance_rule_template import ComplianceRuleTemplate
29
- from lusid.models.compliance_run_configuration import ComplianceRunConfiguration
30
31
  from lusid.models.compliance_run_info_v2 import ComplianceRunInfoV2
31
32
  from lusid.models.compliance_template import ComplianceTemplate
32
- from lusid.models.create_compliance_template_request import CreateComplianceTemplateRequest
33
33
  from lusid.models.decorated_compliance_run_summary import DecoratedComplianceRunSummary
34
34
  from lusid.models.deleted_entity_response import DeletedEntityResponse
35
- from lusid.models.lusid_problem_details import LusidProblemDetails
36
- from lusid.models.lusid_validation_problem_details import LusidValidationProblemDetails
37
35
  from lusid.models.paged_resource_list_of_compliance_rule_response import PagedResourceListOfComplianceRuleResponse
38
36
  from lusid.models.paged_resource_list_of_compliance_run_info_v2 import PagedResourceListOfComplianceRunInfoV2
39
37
  from lusid.models.paged_resource_list_of_compliance_template import PagedResourceListOfComplianceTemplate
40
- from lusid.models.update_compliance_template_request import UpdateComplianceTemplateRequest
41
38
  from lusid.models.upsert_compliance_rule_request import UpsertComplianceRuleRequest
42
39
  from lusid.models.upsert_compliance_run_summary_request import UpsertComplianceRunSummaryRequest
43
40
  from lusid.models.upsert_compliance_run_summary_result import UpsertComplianceRunSummaryResult
44
41
 
42
+ from lusid.api_client import ApiClient
43
+ from lusid.api_response import ApiResponse
44
+ from lusid.exceptions import ( # noqa: F401
45
+ ApiTypeError,
46
+ ApiValueError
47
+ )
48
+
45
49
 
46
- class ComplianceApi(object):
50
+ class ComplianceApi:
47
51
  """NOTE: This class is auto generated by OpenAPI Generator
48
52
  Ref: https://openapi-generator.tech
49
53
 
50
54
  Do not edit the class manually.
51
55
  """
52
56
 
53
- def __init__(self, api_client=None):
57
+ def __init__(self, api_client=None) -> None:
54
58
  if api_client is None:
55
- api_client = ApiClient()
59
+ api_client = ApiClient.get_default()
56
60
  self.api_client = api_client
57
61
 
58
- def create_compliance_template(self, scope, create_compliance_template_request, **kwargs): # noqa: E501
59
- """[EARLY ACCESS] CreateComplianceTemplate: Create a Compliance Rule Template # noqa: E501
60
-
61
- Use this endpoint to create a compliance template. # noqa: E501
62
- This method makes a synchronous HTTP request by default. To make an
63
- asynchronous HTTP request, please pass async_req=True
64
-
65
- >>> thread = api.create_compliance_template(scope, create_compliance_template_request, async_req=True)
66
- >>> result = thread.get()
67
-
68
- :param scope: The scope of the Compliance Rule Template. (required)
69
- :type scope: str
70
- :param create_compliance_template_request: Request to create a compliance rule template. (required)
71
- :type create_compliance_template_request: CreateComplianceTemplateRequest
72
- :param async_req: Whether to execute the request asynchronously.
73
- :type async_req: bool, optional
74
- :param _preload_content: if False, the urllib3.HTTPResponse object will
75
- be returned without reading/decoding response
76
- data. Default is True.
77
- :type _preload_content: bool, optional
78
- :param _request_timeout: timeout setting for this request. If one
79
- number provided, it will be total request
80
- timeout. It can also be a pair (tuple) of
81
- (connection, read) timeouts.
82
- :return: Returns the result object.
83
- If the method is called asynchronously,
84
- returns the request thread.
85
- :rtype: ComplianceRuleTemplate
86
- """
87
- kwargs['_return_http_data_only'] = True
88
- return self.create_compliance_template_with_http_info(scope, create_compliance_template_request, **kwargs) # noqa: E501
89
-
90
- def create_compliance_template_with_http_info(self, scope, create_compliance_template_request, **kwargs): # noqa: E501
91
- """[EARLY ACCESS] CreateComplianceTemplate: Create a Compliance Rule Template # noqa: E501
92
-
93
- Use this endpoint to create a compliance template. # noqa: E501
94
- This method makes a synchronous HTTP request by default. To make an
95
- asynchronous HTTP request, please pass async_req=True
96
-
97
- >>> thread = api.create_compliance_template_with_http_info(scope, create_compliance_template_request, async_req=True)
98
- >>> result = thread.get()
99
-
100
- :param scope: The scope of the Compliance Rule Template. (required)
101
- :type scope: str
102
- :param create_compliance_template_request: Request to create a compliance rule template. (required)
103
- :type create_compliance_template_request: CreateComplianceTemplateRequest
104
- :param async_req: Whether to execute the request asynchronously.
105
- :type async_req: bool, optional
106
- :param _return_http_data_only: response data without head status code
107
- and headers
108
- :type _return_http_data_only: bool, optional
109
- :param _preload_content: if False, the urllib3.HTTPResponse object will
110
- be returned without reading/decoding response
111
- data. Default is True.
112
- :type _preload_content: bool, optional
113
- :param _request_timeout: timeout setting for this request. If one
114
- number provided, it will be total request
115
- timeout. It can also be a pair (tuple) of
116
- (connection, read) timeouts.
117
- :param _request_auth: set to override the auth_settings for an a single
118
- request; this effectively ignores the authentication
119
- in the spec for a single request.
120
- :type _request_auth: dict, optional
121
- :return: Returns the result object, the HTTP status code, and the headers.
122
- If the method is called asynchronously,
123
- returns the request thread.
124
- :rtype: (ComplianceRuleTemplate, int, HTTPHeaderDict)
125
- """
126
-
127
- local_var_params = locals()
128
-
129
- all_params = [
130
- 'scope',
131
- 'create_compliance_template_request'
132
- ]
133
- all_params.extend(
134
- [
135
- 'async_req',
136
- '_return_http_data_only',
137
- '_preload_content',
138
- '_request_timeout',
139
- '_request_auth',
140
- '_headers'
141
- ]
142
- )
143
-
144
- for key, val in six.iteritems(local_var_params['kwargs']):
145
- if key not in all_params:
146
- raise ApiTypeError(
147
- "Got an unexpected keyword argument '%s'"
148
- " to method create_compliance_template" % key
149
- )
150
- local_var_params[key] = val
151
- del local_var_params['kwargs']
152
- # verify the required parameter 'scope' is set
153
- if self.api_client.client_side_validation and ('scope' not in local_var_params or # noqa: E501
154
- local_var_params['scope'] is None): # noqa: E501
155
- raise ApiValueError("Missing the required parameter `scope` when calling `create_compliance_template`") # noqa: E501
156
- # verify the required parameter 'create_compliance_template_request' is set
157
- if self.api_client.client_side_validation and ('create_compliance_template_request' not in local_var_params or # noqa: E501
158
- local_var_params['create_compliance_template_request'] is None): # noqa: E501
159
- raise ApiValueError("Missing the required parameter `create_compliance_template_request` when calling `create_compliance_template`") # noqa: E501
160
-
161
- if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
162
- len(local_var_params['scope']) > 64): # noqa: E501
163
- raise ApiValueError("Invalid value for parameter `scope` when calling `create_compliance_template`, length must be less than or equal to `64`") # noqa: E501
164
- if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
165
- len(local_var_params['scope']) < 1): # noqa: E501
166
- raise ApiValueError("Invalid value for parameter `scope` when calling `create_compliance_template`, length must be greater than or equal to `1`") # noqa: E501
167
- if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['scope']): # noqa: E501
168
- raise ApiValueError("Invalid value for parameter `scope` when calling `create_compliance_template`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
169
- collection_formats = {}
170
-
171
- path_params = {}
172
- if 'scope' in local_var_params:
173
- path_params['scope'] = local_var_params['scope'] # noqa: E501
174
-
175
- query_params = []
176
-
177
- header_params = dict(local_var_params.get('_headers', {}))
178
-
179
- form_params = []
180
- local_var_files = {}
181
-
182
- body_params = None
183
- if 'create_compliance_template_request' in local_var_params:
184
- body_params = local_var_params['create_compliance_template_request']
185
- # HTTP header `Accept`
186
- header_params['Accept'] = self.api_client.select_header_accept(
187
- ['text/plain', 'application/json', 'text/json']) # noqa: E501
188
-
189
- header_params['Accept-Encoding'] = "gzip, deflate, br"
190
-
191
- # HTTP header `Content-Type`
192
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
193
- ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
62
+ @overload
63
+ async def delete_compliance_rule(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The compliance rule's scope.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The compliance rule's code.")], **kwargs) -> DeletedEntityResponse: # noqa: E501
64
+ ...
194
65
 
195
- # set the LUSID header
196
- header_params['X-LUSID-SDK-Language'] = 'Python'
197
- header_params['X-LUSID-SDK-Version'] = '1.1.257'
66
+ @overload
67
+ def delete_compliance_rule(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The compliance rule's scope.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The compliance rule's code.")], async_req: Optional[bool]=True, **kwargs) -> DeletedEntityResponse: # noqa: E501
68
+ ...
198
69
 
199
- # Authentication setting
200
- auth_settings = ['oauth2'] # noqa: E501
201
-
202
- response_types_map = {
203
- 201: "ComplianceRuleTemplate",
204
- 400: "LusidValidationProblemDetails",
205
- }
206
-
207
- return self.api_client.call_api(
208
- '/api/compliance/templates/{scope}', 'POST',
209
- path_params,
210
- query_params,
211
- header_params,
212
- body=body_params,
213
- post_params=form_params,
214
- files=local_var_files,
215
- response_types_map=response_types_map,
216
- auth_settings=auth_settings,
217
- async_req=local_var_params.get('async_req'),
218
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
219
- _preload_content=local_var_params.get('_preload_content', True),
220
- _request_timeout=local_var_params.get('_request_timeout'),
221
- collection_formats=collection_formats,
222
- _request_auth=local_var_params.get('_request_auth'))
223
-
224
- def delete_compliance_rule(self, scope, code, **kwargs): # noqa: E501
70
+ @validate_arguments
71
+ def delete_compliance_rule(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The compliance rule's scope.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The compliance rule's code.")], async_req: Optional[bool]=None, **kwargs) -> Union[DeletedEntityResponse, Awaitable[DeletedEntityResponse]]: # noqa: E501
225
72
  """[EARLY ACCESS] DeleteComplianceRule: Delete compliance rule. # noqa: E501
226
73
 
227
74
  Use this endpoint to delete a compliance rule. The rule will be recoverable for asat times earlier than the delete time, but will otherwise appear to have never existed. # noqa: E501
@@ -237,23 +84,25 @@ class ComplianceApi(object):
237
84
  :type code: str
238
85
  :param async_req: Whether to execute the request asynchronously.
239
86
  :type async_req: bool, optional
240
- :param _preload_content: if False, the urllib3.HTTPResponse object will
241
- be returned without reading/decoding response
242
- data. Default is True.
243
- :type _preload_content: bool, optional
244
- :param _request_timeout: timeout setting for this request. If one
245
- number provided, it will be total request
246
- timeout. It can also be a pair (tuple) of
247
- (connection, read) timeouts.
87
+ :param _request_timeout: timeout setting for this request.
88
+ If one number provided, it will be total request
89
+ timeout. It can also be a pair (tuple) of
90
+ (connection, read) timeouts.
248
91
  :return: Returns the result object.
249
92
  If the method is called asynchronously,
250
93
  returns the request thread.
251
94
  :rtype: DeletedEntityResponse
252
95
  """
253
96
  kwargs['_return_http_data_only'] = True
97
+ if '_preload_content' in kwargs:
98
+ message = "Error! Please call the delete_compliance_rule_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
99
+ raise ValueError(message)
100
+ if async_req is not None:
101
+ kwargs['async_req'] = async_req
254
102
  return self.delete_compliance_rule_with_http_info(scope, code, **kwargs) # noqa: E501
255
103
 
256
- def delete_compliance_rule_with_http_info(self, scope, code, **kwargs): # noqa: E501
104
+ @validate_arguments
105
+ def delete_compliance_rule_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The compliance rule's scope.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The compliance rule's code.")], **kwargs) -> ApiResponse: # noqa: E501
257
106
  """[EARLY ACCESS] DeleteComplianceRule: Delete compliance rule. # noqa: E501
258
107
 
259
108
  Use this endpoint to delete a compliance rule. The rule will be recoverable for asat times earlier than the delete time, but will otherwise appear to have never existed. # noqa: E501
@@ -269,184 +118,14 @@ class ComplianceApi(object):
269
118
  :type code: str
270
119
  :param async_req: Whether to execute the request asynchronously.
271
120
  :type async_req: bool, optional
272
- :param _return_http_data_only: response data without head status code
273
- and headers
274
- :type _return_http_data_only: bool, optional
275
- :param _preload_content: if False, the urllib3.HTTPResponse object will
276
- be returned without reading/decoding response
277
- data. Default is True.
121
+ :param _preload_content: if False, the ApiResponse.data will
122
+ be set to none and raw_data will store the
123
+ HTTP response body without reading/decoding.
124
+ Default is True.
278
125
  :type _preload_content: bool, optional
279
- :param _request_timeout: timeout setting for this request. If one
280
- number provided, it will be total request
281
- timeout. It can also be a pair (tuple) of
282
- (connection, read) timeouts.
283
- :param _request_auth: set to override the auth_settings for an a single
284
- request; this effectively ignores the authentication
285
- in the spec for a single request.
286
- :type _request_auth: dict, optional
287
- :return: Returns the result object, the HTTP status code, and the headers.
288
- If the method is called asynchronously,
289
- returns the request thread.
290
- :rtype: (DeletedEntityResponse, int, HTTPHeaderDict)
291
- """
292
-
293
- local_var_params = locals()
294
-
295
- all_params = [
296
- 'scope',
297
- 'code'
298
- ]
299
- all_params.extend(
300
- [
301
- 'async_req',
302
- '_return_http_data_only',
303
- '_preload_content',
304
- '_request_timeout',
305
- '_request_auth',
306
- '_headers'
307
- ]
308
- )
309
-
310
- for key, val in six.iteritems(local_var_params['kwargs']):
311
- if key not in all_params:
312
- raise ApiTypeError(
313
- "Got an unexpected keyword argument '%s'"
314
- " to method delete_compliance_rule" % key
315
- )
316
- local_var_params[key] = val
317
- del local_var_params['kwargs']
318
- # verify the required parameter 'scope' is set
319
- if self.api_client.client_side_validation and ('scope' not in local_var_params or # noqa: E501
320
- local_var_params['scope'] is None): # noqa: E501
321
- raise ApiValueError("Missing the required parameter `scope` when calling `delete_compliance_rule`") # noqa: E501
322
- # verify the required parameter 'code' is set
323
- if self.api_client.client_side_validation and ('code' not in local_var_params or # noqa: E501
324
- local_var_params['code'] is None): # noqa: E501
325
- raise ApiValueError("Missing the required parameter `code` when calling `delete_compliance_rule`") # noqa: E501
326
-
327
- if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
328
- len(local_var_params['scope']) > 64): # noqa: E501
329
- raise ApiValueError("Invalid value for parameter `scope` when calling `delete_compliance_rule`, length must be less than or equal to `64`") # noqa: E501
330
- if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
331
- len(local_var_params['scope']) < 1): # noqa: E501
332
- raise ApiValueError("Invalid value for parameter `scope` when calling `delete_compliance_rule`, length must be greater than or equal to `1`") # noqa: E501
333
- if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['scope']): # noqa: E501
334
- raise ApiValueError("Invalid value for parameter `scope` when calling `delete_compliance_rule`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
335
- if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
336
- len(local_var_params['code']) > 64): # noqa: E501
337
- raise ApiValueError("Invalid value for parameter `code` when calling `delete_compliance_rule`, length must be less than or equal to `64`") # noqa: E501
338
- if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
339
- len(local_var_params['code']) < 1): # noqa: E501
340
- raise ApiValueError("Invalid value for parameter `code` when calling `delete_compliance_rule`, length must be greater than or equal to `1`") # noqa: E501
341
- if self.api_client.client_side_validation and 'code' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['code']): # noqa: E501
342
- raise ApiValueError("Invalid value for parameter `code` when calling `delete_compliance_rule`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
343
- collection_formats = {}
344
-
345
- path_params = {}
346
- if 'scope' in local_var_params:
347
- path_params['scope'] = local_var_params['scope'] # noqa: E501
348
- if 'code' in local_var_params:
349
- path_params['code'] = local_var_params['code'] # noqa: E501
350
-
351
- query_params = []
352
-
353
- header_params = dict(local_var_params.get('_headers', {}))
354
-
355
- form_params = []
356
- local_var_files = {}
357
-
358
- body_params = None
359
- # HTTP header `Accept`
360
- header_params['Accept'] = self.api_client.select_header_accept(
361
- ['text/plain', 'application/json', 'text/json']) # noqa: E501
362
-
363
- header_params['Accept-Encoding'] = "gzip, deflate, br"
364
-
365
-
366
- # set the LUSID header
367
- header_params['X-LUSID-SDK-Language'] = 'Python'
368
- header_params['X-LUSID-SDK-Version'] = '1.1.257'
369
-
370
- # Authentication setting
371
- auth_settings = ['oauth2'] # noqa: E501
372
-
373
- response_types_map = {
374
- 200: "DeletedEntityResponse",
375
- 400: "LusidValidationProblemDetails",
376
- }
377
-
378
- return self.api_client.call_api(
379
- '/api/compliance/rules/{scope}/{code}', 'DELETE',
380
- path_params,
381
- query_params,
382
- header_params,
383
- body=body_params,
384
- post_params=form_params,
385
- files=local_var_files,
386
- response_types_map=response_types_map,
387
- auth_settings=auth_settings,
388
- async_req=local_var_params.get('async_req'),
389
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
390
- _preload_content=local_var_params.get('_preload_content', True),
391
- _request_timeout=local_var_params.get('_request_timeout'),
392
- collection_formats=collection_formats,
393
- _request_auth=local_var_params.get('_request_auth'))
394
-
395
- def delete_compliance_template(self, scope, code, **kwargs): # noqa: E501
396
- """[EARLY ACCESS] DeleteComplianceTemplate: Delete a ComplianceRuleTemplate # noqa: E501
397
-
398
- Delete the compliance rule template uniquely defined by the scope and code. # noqa: E501
399
- This method makes a synchronous HTTP request by default. To make an
400
- asynchronous HTTP request, please pass async_req=True
401
-
402
- >>> thread = api.delete_compliance_template(scope, code, async_req=True)
403
- >>> result = thread.get()
404
-
405
- :param scope: The scope of the template to be deleted. (required)
406
- :type scope: str
407
- :param code: The code of the template to be deleted. (required)
408
- :type code: str
409
- :param async_req: Whether to execute the request asynchronously.
410
- :type async_req: bool, optional
411
- :param _preload_content: if False, the urllib3.HTTPResponse object will
412
- be returned without reading/decoding response
413
- data. Default is True.
414
- :type _preload_content: bool, optional
415
- :param _request_timeout: timeout setting for this request. If one
416
- number provided, it will be total request
417
- timeout. It can also be a pair (tuple) of
418
- (connection, read) timeouts.
419
- :return: Returns the result object.
420
- If the method is called asynchronously,
421
- returns the request thread.
422
- :rtype: DeletedEntityResponse
423
- """
424
- kwargs['_return_http_data_only'] = True
425
- return self.delete_compliance_template_with_http_info(scope, code, **kwargs) # noqa: E501
426
-
427
- def delete_compliance_template_with_http_info(self, scope, code, **kwargs): # noqa: E501
428
- """[EARLY ACCESS] DeleteComplianceTemplate: Delete a ComplianceRuleTemplate # noqa: E501
429
-
430
- Delete the compliance rule template uniquely defined by the scope and code. # noqa: E501
431
- This method makes a synchronous HTTP request by default. To make an
432
- asynchronous HTTP request, please pass async_req=True
433
-
434
- >>> thread = api.delete_compliance_template_with_http_info(scope, code, async_req=True)
435
- >>> result = thread.get()
436
-
437
- :param scope: The scope of the template to be deleted. (required)
438
- :type scope: str
439
- :param code: The code of the template to be deleted. (required)
440
- :type code: str
441
- :param async_req: Whether to execute the request asynchronously.
442
- :type async_req: bool, optional
443
- :param _return_http_data_only: response data without head status code
444
- and headers
126
+ :param _return_http_data_only: response data instead of ApiResponse
127
+ object with status code, headers, etc
445
128
  :type _return_http_data_only: bool, optional
446
- :param _preload_content: if False, the urllib3.HTTPResponse object will
447
- be returned without reading/decoding response
448
- data. Default is True.
449
- :type _preload_content: bool, optional
450
129
  :param _request_timeout: timeout setting for this request. If one
451
130
  number provided, it will be total request
452
131
  timeout. It can also be a pair (tuple) of
@@ -455,122 +134,107 @@ class ComplianceApi(object):
455
134
  request; this effectively ignores the authentication
456
135
  in the spec for a single request.
457
136
  :type _request_auth: dict, optional
458
- :return: Returns the result object, the HTTP status code, and the headers.
137
+ :type _content_type: string, optional: force content-type for the request
138
+ :return: Returns the result object.
459
139
  If the method is called asynchronously,
460
140
  returns the request thread.
461
- :rtype: (DeletedEntityResponse, int, HTTPHeaderDict)
141
+ :rtype: tuple(DeletedEntityResponse, status_code(int), headers(HTTPHeaderDict))
462
142
  """
463
143
 
464
- local_var_params = locals()
144
+ _params = locals()
465
145
 
466
- all_params = [
146
+ _all_params = [
467
147
  'scope',
468
148
  'code'
469
149
  ]
470
- all_params.extend(
150
+ _all_params.extend(
471
151
  [
472
152
  'async_req',
473
153
  '_return_http_data_only',
474
154
  '_preload_content',
475
155
  '_request_timeout',
476
156
  '_request_auth',
157
+ '_content_type',
477
158
  '_headers'
478
159
  ]
479
160
  )
480
161
 
481
- for key, val in six.iteritems(local_var_params['kwargs']):
482
- if key not in all_params:
162
+ # validate the arguments
163
+ for _key, _val in _params['kwargs'].items():
164
+ if _key not in _all_params:
483
165
  raise ApiTypeError(
484
166
  "Got an unexpected keyword argument '%s'"
485
- " to method delete_compliance_template" % key
167
+ " to method delete_compliance_rule" % _key
486
168
  )
487
- local_var_params[key] = val
488
- del local_var_params['kwargs']
489
- # verify the required parameter 'scope' is set
490
- if self.api_client.client_side_validation and ('scope' not in local_var_params or # noqa: E501
491
- local_var_params['scope'] is None): # noqa: E501
492
- raise ApiValueError("Missing the required parameter `scope` when calling `delete_compliance_template`") # noqa: E501
493
- # verify the required parameter 'code' is set
494
- if self.api_client.client_side_validation and ('code' not in local_var_params or # noqa: E501
495
- local_var_params['code'] is None): # noqa: E501
496
- raise ApiValueError("Missing the required parameter `code` when calling `delete_compliance_template`") # noqa: E501
497
-
498
- if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
499
- len(local_var_params['scope']) > 64): # noqa: E501
500
- raise ApiValueError("Invalid value for parameter `scope` when calling `delete_compliance_template`, length must be less than or equal to `64`") # noqa: E501
501
- if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
502
- len(local_var_params['scope']) < 1): # noqa: E501
503
- raise ApiValueError("Invalid value for parameter `scope` when calling `delete_compliance_template`, length must be greater than or equal to `1`") # noqa: E501
504
- if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['scope']): # noqa: E501
505
- raise ApiValueError("Invalid value for parameter `scope` when calling `delete_compliance_template`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
506
- if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
507
- len(local_var_params['code']) > 64): # noqa: E501
508
- raise ApiValueError("Invalid value for parameter `code` when calling `delete_compliance_template`, length must be less than or equal to `64`") # noqa: E501
509
- if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
510
- len(local_var_params['code']) < 1): # noqa: E501
511
- raise ApiValueError("Invalid value for parameter `code` when calling `delete_compliance_template`, length must be greater than or equal to `1`") # noqa: E501
512
- if self.api_client.client_side_validation and 'code' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['code']): # noqa: E501
513
- raise ApiValueError("Invalid value for parameter `code` when calling `delete_compliance_template`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
514
- collection_formats = {}
515
-
516
- path_params = {}
517
- if 'scope' in local_var_params:
518
- path_params['scope'] = local_var_params['scope'] # noqa: E501
519
- if 'code' in local_var_params:
520
- path_params['code'] = local_var_params['code'] # noqa: E501
521
-
522
- query_params = []
523
-
524
- header_params = dict(local_var_params.get('_headers', {}))
525
-
526
- form_params = []
527
- local_var_files = {}
528
-
529
- body_params = None
530
- # HTTP header `Accept`
531
- header_params['Accept'] = self.api_client.select_header_accept(
169
+ _params[_key] = _val
170
+ del _params['kwargs']
171
+
172
+ _collection_formats = {}
173
+
174
+ # process the path parameters
175
+ _path_params = {}
176
+ if _params['scope']:
177
+ _path_params['scope'] = _params['scope']
178
+
179
+ if _params['code']:
180
+ _path_params['code'] = _params['code']
181
+
182
+
183
+ # process the query parameters
184
+ _query_params = []
185
+ # process the header parameters
186
+ _header_params = dict(_params.get('_headers', {}))
187
+ # process the form parameters
188
+ _form_params = []
189
+ _files = {}
190
+ # process the body parameter
191
+ _body_params = None
192
+ # set the HTTP header `Accept`
193
+ _header_params['Accept'] = self.api_client.select_header_accept(
532
194
  ['text/plain', 'application/json', 'text/json']) # noqa: E501
533
195
 
534
- header_params['Accept-Encoding'] = "gzip, deflate, br"
196
+ # authentication setting
197
+ _auth_settings = ['oauth2'] # noqa: E501
535
198
 
536
-
537
- # set the LUSID header
538
- header_params['X-LUSID-SDK-Language'] = 'Python'
539
- header_params['X-LUSID-SDK-Version'] = '1.1.257'
540
-
541
- # Authentication setting
542
- auth_settings = ['oauth2'] # noqa: E501
543
-
544
- response_types_map = {
545
- 200: "DeletedEntityResponse",
546
- 400: "LusidValidationProblemDetails",
199
+ _response_types_map = {
200
+ '200': "DeletedEntityResponse",
201
+ '400': "LusidValidationProblemDetails",
547
202
  }
548
203
 
549
204
  return self.api_client.call_api(
550
- '/api/compliance/templates/{scope}/{code}', 'DELETE',
551
- path_params,
552
- query_params,
553
- header_params,
554
- body=body_params,
555
- post_params=form_params,
556
- files=local_var_files,
557
- response_types_map=response_types_map,
558
- auth_settings=auth_settings,
559
- async_req=local_var_params.get('async_req'),
560
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
561
- _preload_content=local_var_params.get('_preload_content', True),
562
- _request_timeout=local_var_params.get('_request_timeout'),
563
- collection_formats=collection_formats,
564
- _request_auth=local_var_params.get('_request_auth'))
565
-
566
- def get_compliance_rule(self, scope, code, **kwargs): # noqa: E501
205
+ '/api/compliance/rules/{scope}/{code}', 'DELETE',
206
+ _path_params,
207
+ _query_params,
208
+ _header_params,
209
+ body=_body_params,
210
+ post_params=_form_params,
211
+ files=_files,
212
+ response_types_map=_response_types_map,
213
+ auth_settings=_auth_settings,
214
+ async_req=_params.get('async_req'),
215
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
216
+ _preload_content=_params.get('_preload_content', True),
217
+ _request_timeout=_params.get('_request_timeout'),
218
+ collection_formats=_collection_formats,
219
+ _request_auth=_params.get('_request_auth'))
220
+
221
+ @overload
222
+ async def get_compliance_rule(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The compliance rule's scope.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The compliance rule's code.")], as_at : Annotated[Optional[datetime], Field(description="Optional. Asat time for query.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Compliance' domain to decorate onto the rule. These must take the format {domain}/{scope}/{code}, for example 'Compliance/live/UCITS'.")] = None, **kwargs) -> ComplianceRuleResponse: # noqa: E501
223
+ ...
224
+
225
+ @overload
226
+ def get_compliance_rule(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The compliance rule's scope.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The compliance rule's code.")], as_at : Annotated[Optional[datetime], Field(description="Optional. Asat time for query.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Compliance' domain to decorate onto the rule. These must take the format {domain}/{scope}/{code}, for example 'Compliance/live/UCITS'.")] = None, async_req: Optional[bool]=True, **kwargs) -> ComplianceRuleResponse: # noqa: E501
227
+ ...
228
+
229
+ @validate_arguments
230
+ def get_compliance_rule(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The compliance rule's scope.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The compliance rule's code.")], as_at : Annotated[Optional[datetime], Field(description="Optional. Asat time for query.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Compliance' domain to decorate onto the rule. These must take the format {domain}/{scope}/{code}, for example 'Compliance/live/UCITS'.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ComplianceRuleResponse, Awaitable[ComplianceRuleResponse]]: # noqa: E501
567
231
  """[EARLY ACCESS] GetComplianceRule: Get compliance rule. # noqa: E501
568
232
 
569
233
  Use this endpoint to retrieve a single compliance rule. # noqa: E501
570
234
  This method makes a synchronous HTTP request by default. To make an
571
235
  asynchronous HTTP request, please pass async_req=True
572
236
 
573
- >>> thread = api.get_compliance_rule(scope, code, async_req=True)
237
+ >>> thread = api.get_compliance_rule(scope, code, as_at, property_keys, async_req=True)
574
238
  >>> result = thread.get()
575
239
 
576
240
  :param scope: The compliance rule's scope. (required)
@@ -580,33 +244,35 @@ class ComplianceApi(object):
580
244
  :param as_at: Optional. Asat time for query.
581
245
  :type as_at: datetime
582
246
  :param property_keys: A list of property keys from the 'Compliance' domain to decorate onto the rule. These must take the format {domain}/{scope}/{code}, for example 'Compliance/live/UCITS'.
583
- :type property_keys: list[str]
247
+ :type property_keys: List[str]
584
248
  :param async_req: Whether to execute the request asynchronously.
585
249
  :type async_req: bool, optional
586
- :param _preload_content: if False, the urllib3.HTTPResponse object will
587
- be returned without reading/decoding response
588
- data. Default is True.
589
- :type _preload_content: bool, optional
590
- :param _request_timeout: timeout setting for this request. If one
591
- number provided, it will be total request
592
- timeout. It can also be a pair (tuple) of
593
- (connection, read) timeouts.
250
+ :param _request_timeout: timeout setting for this request.
251
+ If one number provided, it will be total request
252
+ timeout. It can also be a pair (tuple) of
253
+ (connection, read) timeouts.
594
254
  :return: Returns the result object.
595
255
  If the method is called asynchronously,
596
256
  returns the request thread.
597
257
  :rtype: ComplianceRuleResponse
598
258
  """
599
259
  kwargs['_return_http_data_only'] = True
600
- return self.get_compliance_rule_with_http_info(scope, code, **kwargs) # noqa: E501
601
-
602
- def get_compliance_rule_with_http_info(self, scope, code, **kwargs): # noqa: E501
260
+ if '_preload_content' in kwargs:
261
+ message = "Error! Please call the get_compliance_rule_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
262
+ raise ValueError(message)
263
+ if async_req is not None:
264
+ kwargs['async_req'] = async_req
265
+ return self.get_compliance_rule_with_http_info(scope, code, as_at, property_keys, **kwargs) # noqa: E501
266
+
267
+ @validate_arguments
268
+ def get_compliance_rule_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The compliance rule's scope.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The compliance rule's code.")], as_at : Annotated[Optional[datetime], Field(description="Optional. Asat time for query.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Compliance' domain to decorate onto the rule. These must take the format {domain}/{scope}/{code}, for example 'Compliance/live/UCITS'.")] = None, **kwargs) -> ApiResponse: # noqa: E501
603
269
  """[EARLY ACCESS] GetComplianceRule: Get compliance rule. # noqa: E501
604
270
 
605
271
  Use this endpoint to retrieve a single compliance rule. # noqa: E501
606
272
  This method makes a synchronous HTTP request by default. To make an
607
273
  asynchronous HTTP request, please pass async_req=True
608
274
 
609
- >>> thread = api.get_compliance_rule_with_http_info(scope, code, async_req=True)
275
+ >>> thread = api.get_compliance_rule_with_http_info(scope, code, as_at, property_keys, async_req=True)
610
276
  >>> result = thread.get()
611
277
 
612
278
  :param scope: The compliance rule's scope. (required)
@@ -616,16 +282,17 @@ class ComplianceApi(object):
616
282
  :param as_at: Optional. Asat time for query.
617
283
  :type as_at: datetime
618
284
  :param property_keys: A list of property keys from the 'Compliance' domain to decorate onto the rule. These must take the format {domain}/{scope}/{code}, for example 'Compliance/live/UCITS'.
619
- :type property_keys: list[str]
285
+ :type property_keys: List[str]
620
286
  :param async_req: Whether to execute the request asynchronously.
621
287
  :type async_req: bool, optional
622
- :param _return_http_data_only: response data without head status code
623
- and headers
624
- :type _return_http_data_only: bool, optional
625
- :param _preload_content: if False, the urllib3.HTTPResponse object will
626
- be returned without reading/decoding response
627
- data. Default is True.
288
+ :param _preload_content: if False, the ApiResponse.data will
289
+ be set to none and raw_data will store the
290
+ HTTP response body without reading/decoding.
291
+ Default is True.
628
292
  :type _preload_content: bool, optional
293
+ :param _return_http_data_only: response data instead of ApiResponse
294
+ object with status code, headers, etc
295
+ :type _return_http_data_only: bool, optional
629
296
  :param _request_timeout: timeout setting for this request. If one
630
297
  number provided, it will be total request
631
298
  timeout. It can also be a pair (tuple) of
@@ -634,122 +301,112 @@ class ComplianceApi(object):
634
301
  request; this effectively ignores the authentication
635
302
  in the spec for a single request.
636
303
  :type _request_auth: dict, optional
637
- :return: Returns the result object, the HTTP status code, and the headers.
304
+ :type _content_type: string, optional: force content-type for the request
305
+ :return: Returns the result object.
638
306
  If the method is called asynchronously,
639
307
  returns the request thread.
640
- :rtype: (ComplianceRuleResponse, int, HTTPHeaderDict)
308
+ :rtype: tuple(ComplianceRuleResponse, status_code(int), headers(HTTPHeaderDict))
641
309
  """
642
310
 
643
- local_var_params = locals()
311
+ _params = locals()
644
312
 
645
- all_params = [
313
+ _all_params = [
646
314
  'scope',
647
315
  'code',
648
316
  'as_at',
649
317
  'property_keys'
650
318
  ]
651
- all_params.extend(
319
+ _all_params.extend(
652
320
  [
653
321
  'async_req',
654
322
  '_return_http_data_only',
655
323
  '_preload_content',
656
324
  '_request_timeout',
657
325
  '_request_auth',
326
+ '_content_type',
658
327
  '_headers'
659
328
  ]
660
329
  )
661
330
 
662
- for key, val in six.iteritems(local_var_params['kwargs']):
663
- if key not in all_params:
331
+ # validate the arguments
332
+ for _key, _val in _params['kwargs'].items():
333
+ if _key not in _all_params:
664
334
  raise ApiTypeError(
665
335
  "Got an unexpected keyword argument '%s'"
666
- " to method get_compliance_rule" % key
336
+ " to method get_compliance_rule" % _key
667
337
  )
668
- local_var_params[key] = val
669
- del local_var_params['kwargs']
670
- # verify the required parameter 'scope' is set
671
- if self.api_client.client_side_validation and ('scope' not in local_var_params or # noqa: E501
672
- local_var_params['scope'] is None): # noqa: E501
673
- raise ApiValueError("Missing the required parameter `scope` when calling `get_compliance_rule`") # noqa: E501
674
- # verify the required parameter 'code' is set
675
- if self.api_client.client_side_validation and ('code' not in local_var_params or # noqa: E501
676
- local_var_params['code'] is None): # noqa: E501
677
- raise ApiValueError("Missing the required parameter `code` when calling `get_compliance_rule`") # noqa: E501
678
-
679
- if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
680
- len(local_var_params['scope']) > 64): # noqa: E501
681
- raise ApiValueError("Invalid value for parameter `scope` when calling `get_compliance_rule`, length must be less than or equal to `64`") # noqa: E501
682
- if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
683
- len(local_var_params['scope']) < 1): # noqa: E501
684
- raise ApiValueError("Invalid value for parameter `scope` when calling `get_compliance_rule`, length must be greater than or equal to `1`") # noqa: E501
685
- if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['scope']): # noqa: E501
686
- raise ApiValueError("Invalid value for parameter `scope` when calling `get_compliance_rule`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
687
- if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
688
- len(local_var_params['code']) > 64): # noqa: E501
689
- raise ApiValueError("Invalid value for parameter `code` when calling `get_compliance_rule`, length must be less than or equal to `64`") # noqa: E501
690
- if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
691
- len(local_var_params['code']) < 1): # noqa: E501
692
- raise ApiValueError("Invalid value for parameter `code` when calling `get_compliance_rule`, length must be greater than or equal to `1`") # noqa: E501
693
- if self.api_client.client_side_validation and 'code' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['code']): # noqa: E501
694
- raise ApiValueError("Invalid value for parameter `code` when calling `get_compliance_rule`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
695
- collection_formats = {}
696
-
697
- path_params = {}
698
- if 'scope' in local_var_params:
699
- path_params['scope'] = local_var_params['scope'] # noqa: E501
700
- if 'code' in local_var_params:
701
- path_params['code'] = local_var_params['code'] # noqa: E501
702
-
703
- query_params = []
704
- if 'as_at' in local_var_params and local_var_params['as_at'] is not None: # noqa: E501
705
- query_params.append(('asAt', local_var_params['as_at'])) # noqa: E501
706
- if 'property_keys' in local_var_params and local_var_params['property_keys'] is not None: # noqa: E501
707
- query_params.append(('propertyKeys', local_var_params['property_keys'])) # noqa: E501
708
- collection_formats['propertyKeys'] = 'multi' # noqa: E501
709
-
710
- header_params = dict(local_var_params.get('_headers', {}))
711
-
712
- form_params = []
713
- local_var_files = {}
714
-
715
- body_params = None
716
- # HTTP header `Accept`
717
- header_params['Accept'] = self.api_client.select_header_accept(
338
+ _params[_key] = _val
339
+ del _params['kwargs']
340
+
341
+ _collection_formats = {}
342
+
343
+ # process the path parameters
344
+ _path_params = {}
345
+ if _params['scope']:
346
+ _path_params['scope'] = _params['scope']
347
+
348
+ if _params['code']:
349
+ _path_params['code'] = _params['code']
350
+
351
+
352
+ # process the query parameters
353
+ _query_params = []
354
+ if _params.get('as_at') is not None: # noqa: E501
355
+ if isinstance(_params['as_at'], datetime):
356
+ _query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
357
+ else:
358
+ _query_params.append(('asAt', _params['as_at']))
359
+
360
+ if _params.get('property_keys') is not None: # noqa: E501
361
+ _query_params.append(('propertyKeys', _params['property_keys']))
362
+ _collection_formats['propertyKeys'] = 'multi'
363
+
364
+ # process the header parameters
365
+ _header_params = dict(_params.get('_headers', {}))
366
+ # process the form parameters
367
+ _form_params = []
368
+ _files = {}
369
+ # process the body parameter
370
+ _body_params = None
371
+ # set the HTTP header `Accept`
372
+ _header_params['Accept'] = self.api_client.select_header_accept(
718
373
  ['text/plain', 'application/json', 'text/json']) # noqa: E501
719
374
 
720
- header_params['Accept-Encoding'] = "gzip, deflate, br"
721
-
375
+ # authentication setting
376
+ _auth_settings = ['oauth2'] # noqa: E501
722
377
 
723
- # set the LUSID header
724
- header_params['X-LUSID-SDK-Language'] = 'Python'
725
- header_params['X-LUSID-SDK-Version'] = '1.1.257'
726
-
727
- # Authentication setting
728
- auth_settings = ['oauth2'] # noqa: E501
729
-
730
- response_types_map = {
731
- 200: "ComplianceRuleResponse",
732
- 400: "LusidValidationProblemDetails",
378
+ _response_types_map = {
379
+ '200': "ComplianceRuleResponse",
380
+ '400': "LusidValidationProblemDetails",
733
381
  }
734
382
 
735
383
  return self.api_client.call_api(
736
384
  '/api/compliance/rules/{scope}/{code}', 'GET',
737
- path_params,
738
- query_params,
739
- header_params,
740
- body=body_params,
741
- post_params=form_params,
742
- files=local_var_files,
743
- response_types_map=response_types_map,
744
- auth_settings=auth_settings,
745
- async_req=local_var_params.get('async_req'),
746
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
747
- _preload_content=local_var_params.get('_preload_content', True),
748
- _request_timeout=local_var_params.get('_request_timeout'),
749
- collection_formats=collection_formats,
750
- _request_auth=local_var_params.get('_request_auth'))
751
-
752
- def get_compliance_rule_result(self, run_scope, run_code, rule_scope, rule_code, **kwargs): # noqa: E501
385
+ _path_params,
386
+ _query_params,
387
+ _header_params,
388
+ body=_body_params,
389
+ post_params=_form_params,
390
+ files=_files,
391
+ response_types_map=_response_types_map,
392
+ auth_settings=_auth_settings,
393
+ async_req=_params.get('async_req'),
394
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
395
+ _preload_content=_params.get('_preload_content', True),
396
+ _request_timeout=_params.get('_request_timeout'),
397
+ collection_formats=_collection_formats,
398
+ _request_auth=_params.get('_request_auth'))
399
+
400
+ @overload
401
+ async def get_compliance_rule_result(self, run_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Run Scope.")], run_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Run Code.")], rule_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Rule Scope.")], rule_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Rule Code.")], **kwargs) -> ComplianceRuleResultV2: # noqa: E501
402
+ ...
403
+
404
+ @overload
405
+ def get_compliance_rule_result(self, run_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Run Scope.")], run_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Run Code.")], rule_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Rule Scope.")], rule_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Rule Code.")], async_req: Optional[bool]=True, **kwargs) -> ComplianceRuleResultV2: # noqa: E501
406
+ ...
407
+
408
+ @validate_arguments
409
+ def get_compliance_rule_result(self, run_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Run Scope.")], run_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Run Code.")], rule_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Rule Scope.")], rule_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Rule Code.")], async_req: Optional[bool]=None, **kwargs) -> Union[ComplianceRuleResultV2, Awaitable[ComplianceRuleResultV2]]: # noqa: E501
753
410
  """[EARLY ACCESS] GetComplianceRuleResult: Get detailed results for a specific rule within a compliance run. # noqa: E501
754
411
 
755
412
  Specify a run scope and code from a previously run compliance check, and the scope and code of a rule within that run, to get detailed results for that rule. # noqa: E501
@@ -769,23 +426,25 @@ class ComplianceApi(object):
769
426
  :type rule_code: str
770
427
  :param async_req: Whether to execute the request asynchronously.
771
428
  :type async_req: bool, optional
772
- :param _preload_content: if False, the urllib3.HTTPResponse object will
773
- be returned without reading/decoding response
774
- data. Default is True.
775
- :type _preload_content: bool, optional
776
- :param _request_timeout: timeout setting for this request. If one
777
- number provided, it will be total request
778
- timeout. It can also be a pair (tuple) of
779
- (connection, read) timeouts.
429
+ :param _request_timeout: timeout setting for this request.
430
+ If one number provided, it will be total request
431
+ timeout. It can also be a pair (tuple) of
432
+ (connection, read) timeouts.
780
433
  :return: Returns the result object.
781
434
  If the method is called asynchronously,
782
435
  returns the request thread.
783
436
  :rtype: ComplianceRuleResultV2
784
437
  """
785
438
  kwargs['_return_http_data_only'] = True
439
+ if '_preload_content' in kwargs:
440
+ message = "Error! Please call the get_compliance_rule_result_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
441
+ raise ValueError(message)
442
+ if async_req is not None:
443
+ kwargs['async_req'] = async_req
786
444
  return self.get_compliance_rule_result_with_http_info(run_scope, run_code, rule_scope, rule_code, **kwargs) # noqa: E501
787
445
 
788
- def get_compliance_rule_result_with_http_info(self, run_scope, run_code, rule_scope, rule_code, **kwargs): # noqa: E501
446
+ @validate_arguments
447
+ def get_compliance_rule_result_with_http_info(self, run_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Run Scope.")], run_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Run Code.")], rule_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Rule Scope.")], rule_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Rule Code.")], **kwargs) -> ApiResponse: # noqa: E501
789
448
  """[EARLY ACCESS] GetComplianceRuleResult: Get detailed results for a specific rule within a compliance run. # noqa: E501
790
449
 
791
450
  Specify a run scope and code from a previously run compliance check, and the scope and code of a rule within that run, to get detailed results for that rule. # noqa: E501
@@ -805,13 +464,14 @@ class ComplianceApi(object):
805
464
  :type rule_code: str
806
465
  :param async_req: Whether to execute the request asynchronously.
807
466
  :type async_req: bool, optional
808
- :param _return_http_data_only: response data without head status code
809
- and headers
810
- :type _return_http_data_only: bool, optional
811
- :param _preload_content: if False, the urllib3.HTTPResponse object will
812
- be returned without reading/decoding response
813
- data. Default is True.
467
+ :param _preload_content: if False, the ApiResponse.data will
468
+ be set to none and raw_data will store the
469
+ HTTP response body without reading/decoding.
470
+ Default is True.
814
471
  :type _preload_content: bool, optional
472
+ :param _return_http_data_only: response data instead of ApiResponse
473
+ object with status code, headers, etc
474
+ :type _return_http_data_only: bool, optional
815
475
  :param _request_timeout: timeout setting for this request. If one
816
476
  number provided, it will be total request
817
477
  timeout. It can also be a pair (tuple) of
@@ -820,152 +480,115 @@ class ComplianceApi(object):
820
480
  request; this effectively ignores the authentication
821
481
  in the spec for a single request.
822
482
  :type _request_auth: dict, optional
823
- :return: Returns the result object, the HTTP status code, and the headers.
483
+ :type _content_type: string, optional: force content-type for the request
484
+ :return: Returns the result object.
824
485
  If the method is called asynchronously,
825
486
  returns the request thread.
826
- :rtype: (ComplianceRuleResultV2, int, HTTPHeaderDict)
487
+ :rtype: tuple(ComplianceRuleResultV2, status_code(int), headers(HTTPHeaderDict))
827
488
  """
828
489
 
829
- local_var_params = locals()
490
+ _params = locals()
830
491
 
831
- all_params = [
492
+ _all_params = [
832
493
  'run_scope',
833
494
  'run_code',
834
495
  'rule_scope',
835
496
  'rule_code'
836
497
  ]
837
- all_params.extend(
498
+ _all_params.extend(
838
499
  [
839
500
  'async_req',
840
501
  '_return_http_data_only',
841
502
  '_preload_content',
842
503
  '_request_timeout',
843
504
  '_request_auth',
505
+ '_content_type',
844
506
  '_headers'
845
507
  ]
846
508
  )
847
509
 
848
- for key, val in six.iteritems(local_var_params['kwargs']):
849
- if key not in all_params:
510
+ # validate the arguments
511
+ for _key, _val in _params['kwargs'].items():
512
+ if _key not in _all_params:
850
513
  raise ApiTypeError(
851
514
  "Got an unexpected keyword argument '%s'"
852
- " to method get_compliance_rule_result" % key
515
+ " to method get_compliance_rule_result" % _key
853
516
  )
854
- local_var_params[key] = val
855
- del local_var_params['kwargs']
856
- # verify the required parameter 'run_scope' is set
857
- if self.api_client.client_side_validation and ('run_scope' not in local_var_params or # noqa: E501
858
- local_var_params['run_scope'] is None): # noqa: E501
859
- raise ApiValueError("Missing the required parameter `run_scope` when calling `get_compliance_rule_result`") # noqa: E501
860
- # verify the required parameter 'run_code' is set
861
- if self.api_client.client_side_validation and ('run_code' not in local_var_params or # noqa: E501
862
- local_var_params['run_code'] is None): # noqa: E501
863
- raise ApiValueError("Missing the required parameter `run_code` when calling `get_compliance_rule_result`") # noqa: E501
864
- # verify the required parameter 'rule_scope' is set
865
- if self.api_client.client_side_validation and ('rule_scope' not in local_var_params or # noqa: E501
866
- local_var_params['rule_scope'] is None): # noqa: E501
867
- raise ApiValueError("Missing the required parameter `rule_scope` when calling `get_compliance_rule_result`") # noqa: E501
868
- # verify the required parameter 'rule_code' is set
869
- if self.api_client.client_side_validation and ('rule_code' not in local_var_params or # noqa: E501
870
- local_var_params['rule_code'] is None): # noqa: E501
871
- raise ApiValueError("Missing the required parameter `rule_code` when calling `get_compliance_rule_result`") # noqa: E501
872
-
873
- if self.api_client.client_side_validation and ('run_scope' in local_var_params and # noqa: E501
874
- len(local_var_params['run_scope']) > 64): # noqa: E501
875
- raise ApiValueError("Invalid value for parameter `run_scope` when calling `get_compliance_rule_result`, length must be less than or equal to `64`") # noqa: E501
876
- if self.api_client.client_side_validation and ('run_scope' in local_var_params and # noqa: E501
877
- len(local_var_params['run_scope']) < 1): # noqa: E501
878
- raise ApiValueError("Invalid value for parameter `run_scope` when calling `get_compliance_rule_result`, length must be greater than or equal to `1`") # noqa: E501
879
- if self.api_client.client_side_validation and 'run_scope' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['run_scope']): # noqa: E501
880
- raise ApiValueError("Invalid value for parameter `run_scope` when calling `get_compliance_rule_result`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
881
- if self.api_client.client_side_validation and ('run_code' in local_var_params and # noqa: E501
882
- len(local_var_params['run_code']) > 64): # noqa: E501
883
- raise ApiValueError("Invalid value for parameter `run_code` when calling `get_compliance_rule_result`, length must be less than or equal to `64`") # noqa: E501
884
- if self.api_client.client_side_validation and ('run_code' in local_var_params and # noqa: E501
885
- len(local_var_params['run_code']) < 1): # noqa: E501
886
- raise ApiValueError("Invalid value for parameter `run_code` when calling `get_compliance_rule_result`, length must be greater than or equal to `1`") # noqa: E501
887
- if self.api_client.client_side_validation and 'run_code' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['run_code']): # noqa: E501
888
- raise ApiValueError("Invalid value for parameter `run_code` when calling `get_compliance_rule_result`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
889
- if self.api_client.client_side_validation and ('rule_scope' in local_var_params and # noqa: E501
890
- len(local_var_params['rule_scope']) > 64): # noqa: E501
891
- raise ApiValueError("Invalid value for parameter `rule_scope` when calling `get_compliance_rule_result`, length must be less than or equal to `64`") # noqa: E501
892
- if self.api_client.client_side_validation and ('rule_scope' in local_var_params and # noqa: E501
893
- len(local_var_params['rule_scope']) < 1): # noqa: E501
894
- raise ApiValueError("Invalid value for parameter `rule_scope` when calling `get_compliance_rule_result`, length must be greater than or equal to `1`") # noqa: E501
895
- if self.api_client.client_side_validation and 'rule_scope' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['rule_scope']): # noqa: E501
896
- raise ApiValueError("Invalid value for parameter `rule_scope` when calling `get_compliance_rule_result`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
897
- if self.api_client.client_side_validation and ('rule_code' in local_var_params and # noqa: E501
898
- len(local_var_params['rule_code']) > 64): # noqa: E501
899
- raise ApiValueError("Invalid value for parameter `rule_code` when calling `get_compliance_rule_result`, length must be less than or equal to `64`") # noqa: E501
900
- if self.api_client.client_side_validation and ('rule_code' in local_var_params and # noqa: E501
901
- len(local_var_params['rule_code']) < 1): # noqa: E501
902
- raise ApiValueError("Invalid value for parameter `rule_code` when calling `get_compliance_rule_result`, length must be greater than or equal to `1`") # noqa: E501
903
- if self.api_client.client_side_validation and 'rule_code' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['rule_code']): # noqa: E501
904
- raise ApiValueError("Invalid value for parameter `rule_code` when calling `get_compliance_rule_result`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
905
- collection_formats = {}
906
-
907
- path_params = {}
908
- if 'run_scope' in local_var_params:
909
- path_params['runScope'] = local_var_params['run_scope'] # noqa: E501
910
- if 'run_code' in local_var_params:
911
- path_params['runCode'] = local_var_params['run_code'] # noqa: E501
912
- if 'rule_scope' in local_var_params:
913
- path_params['ruleScope'] = local_var_params['rule_scope'] # noqa: E501
914
- if 'rule_code' in local_var_params:
915
- path_params['ruleCode'] = local_var_params['rule_code'] # noqa: E501
916
-
917
- query_params = []
918
-
919
- header_params = dict(local_var_params.get('_headers', {}))
920
-
921
- form_params = []
922
- local_var_files = {}
923
-
924
- body_params = None
925
- # HTTP header `Accept`
926
- header_params['Accept'] = self.api_client.select_header_accept(
927
- ['text/plain', 'application/json', 'text/json']) # noqa: E501
517
+ _params[_key] = _val
518
+ del _params['kwargs']
519
+
520
+ _collection_formats = {}
521
+
522
+ # process the path parameters
523
+ _path_params = {}
524
+ if _params['run_scope']:
525
+ _path_params['runScope'] = _params['run_scope']
526
+
527
+ if _params['run_code']:
528
+ _path_params['runCode'] = _params['run_code']
928
529
 
929
- header_params['Accept-Encoding'] = "gzip, deflate, br"
530
+ if _params['rule_scope']:
531
+ _path_params['ruleScope'] = _params['rule_scope']
930
532
 
533
+ if _params['rule_code']:
534
+ _path_params['ruleCode'] = _params['rule_code']
931
535
 
932
- # set the LUSID header
933
- header_params['X-LUSID-SDK-Language'] = 'Python'
934
- header_params['X-LUSID-SDK-Version'] = '1.1.257'
935
536
 
936
- # Authentication setting
937
- auth_settings = ['oauth2'] # noqa: E501
537
+ # process the query parameters
538
+ _query_params = []
539
+ # process the header parameters
540
+ _header_params = dict(_params.get('_headers', {}))
541
+ # process the form parameters
542
+ _form_params = []
543
+ _files = {}
544
+ # process the body parameter
545
+ _body_params = None
546
+ # set the HTTP header `Accept`
547
+ _header_params['Accept'] = self.api_client.select_header_accept(
548
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
549
+
550
+ # authentication setting
551
+ _auth_settings = ['oauth2'] # noqa: E501
938
552
 
939
- response_types_map = {
940
- 200: "ComplianceRuleResultV2",
941
- 400: "LusidValidationProblemDetails",
553
+ _response_types_map = {
554
+ '200': "ComplianceRuleResultV2",
555
+ '400': "LusidValidationProblemDetails",
942
556
  }
943
557
 
944
558
  return self.api_client.call_api(
945
559
  '/api/compliance/runs/summary/{runScope}/{runCode}/{ruleScope}/{ruleCode}', 'GET',
946
- path_params,
947
- query_params,
948
- header_params,
949
- body=body_params,
950
- post_params=form_params,
951
- files=local_var_files,
952
- response_types_map=response_types_map,
953
- auth_settings=auth_settings,
954
- async_req=local_var_params.get('async_req'),
955
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
956
- _preload_content=local_var_params.get('_preload_content', True),
957
- _request_timeout=local_var_params.get('_request_timeout'),
958
- collection_formats=collection_formats,
959
- _request_auth=local_var_params.get('_request_auth'))
960
-
961
- def get_compliance_template(self, scope, code, **kwargs): # noqa: E501
560
+ _path_params,
561
+ _query_params,
562
+ _header_params,
563
+ body=_body_params,
564
+ post_params=_form_params,
565
+ files=_files,
566
+ response_types_map=_response_types_map,
567
+ auth_settings=_auth_settings,
568
+ async_req=_params.get('async_req'),
569
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
570
+ _preload_content=_params.get('_preload_content', True),
571
+ _request_timeout=_params.get('_request_timeout'),
572
+ collection_formats=_collection_formats,
573
+ _request_auth=_params.get('_request_auth'))
574
+
575
+ @overload
576
+ async def get_compliance_template(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Scope of TemplateID")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Code of TemplateID")], as_at : Annotated[Optional[datetime], Field(description="Optional. The time at which to get results from. Default : latest")] = None, **kwargs) -> ComplianceTemplate: # noqa: E501
577
+ ...
578
+
579
+ @overload
580
+ def get_compliance_template(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Scope of TemplateID")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Code of TemplateID")], as_at : Annotated[Optional[datetime], Field(description="Optional. The time at which to get results from. Default : latest")] = None, async_req: Optional[bool]=True, **kwargs) -> ComplianceTemplate: # noqa: E501
581
+ ...
582
+
583
+ @validate_arguments
584
+ def get_compliance_template(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Scope of TemplateID")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Code of TemplateID")], as_at : Annotated[Optional[datetime], Field(description="Optional. The time at which to get results from. Default : latest")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ComplianceTemplate, Awaitable[ComplianceTemplate]]: # noqa: E501
962
585
  """[EARLY ACCESS] GetComplianceTemplate: Get the requested compliance template. # noqa: E501
963
586
 
964
587
  Use this endpoint to fetch a specific compliance template. # noqa: E501
965
588
  This method makes a synchronous HTTP request by default. To make an
966
589
  asynchronous HTTP request, please pass async_req=True
967
590
 
968
- >>> thread = api.get_compliance_template(scope, code, async_req=True)
591
+ >>> thread = api.get_compliance_template(scope, code, as_at, async_req=True)
969
592
  >>> result = thread.get()
970
593
 
971
594
  :param scope: Scope of TemplateID (required)
@@ -976,30 +599,32 @@ class ComplianceApi(object):
976
599
  :type as_at: datetime
977
600
  :param async_req: Whether to execute the request asynchronously.
978
601
  :type async_req: bool, optional
979
- :param _preload_content: if False, the urllib3.HTTPResponse object will
980
- be returned without reading/decoding response
981
- data. Default is True.
982
- :type _preload_content: bool, optional
983
- :param _request_timeout: timeout setting for this request. If one
984
- number provided, it will be total request
985
- timeout. It can also be a pair (tuple) of
986
- (connection, read) timeouts.
602
+ :param _request_timeout: timeout setting for this request.
603
+ If one number provided, it will be total request
604
+ timeout. It can also be a pair (tuple) of
605
+ (connection, read) timeouts.
987
606
  :return: Returns the result object.
988
607
  If the method is called asynchronously,
989
608
  returns the request thread.
990
609
  :rtype: ComplianceTemplate
991
610
  """
992
611
  kwargs['_return_http_data_only'] = True
993
- return self.get_compliance_template_with_http_info(scope, code, **kwargs) # noqa: E501
994
-
995
- def get_compliance_template_with_http_info(self, scope, code, **kwargs): # noqa: E501
612
+ if '_preload_content' in kwargs:
613
+ message = "Error! Please call the get_compliance_template_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
614
+ raise ValueError(message)
615
+ if async_req is not None:
616
+ kwargs['async_req'] = async_req
617
+ return self.get_compliance_template_with_http_info(scope, code, as_at, **kwargs) # noqa: E501
618
+
619
+ @validate_arguments
620
+ def get_compliance_template_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Scope of TemplateID")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Code of TemplateID")], as_at : Annotated[Optional[datetime], Field(description="Optional. The time at which to get results from. Default : latest")] = None, **kwargs) -> ApiResponse: # noqa: E501
996
621
  """[EARLY ACCESS] GetComplianceTemplate: Get the requested compliance template. # noqa: E501
997
622
 
998
623
  Use this endpoint to fetch a specific compliance template. # noqa: E501
999
624
  This method makes a synchronous HTTP request by default. To make an
1000
625
  asynchronous HTTP request, please pass async_req=True
1001
626
 
1002
- >>> thread = api.get_compliance_template_with_http_info(scope, code, async_req=True)
627
+ >>> thread = api.get_compliance_template_with_http_info(scope, code, as_at, async_req=True)
1003
628
  >>> result = thread.get()
1004
629
 
1005
630
  :param scope: Scope of TemplateID (required)
@@ -1010,13 +635,14 @@ class ComplianceApi(object):
1010
635
  :type as_at: datetime
1011
636
  :param async_req: Whether to execute the request asynchronously.
1012
637
  :type async_req: bool, optional
1013
- :param _return_http_data_only: response data without head status code
1014
- and headers
1015
- :type _return_http_data_only: bool, optional
1016
- :param _preload_content: if False, the urllib3.HTTPResponse object will
1017
- be returned without reading/decoding response
1018
- data. Default is True.
638
+ :param _preload_content: if False, the ApiResponse.data will
639
+ be set to none and raw_data will store the
640
+ HTTP response body without reading/decoding.
641
+ Default is True.
1019
642
  :type _preload_content: bool, optional
643
+ :param _return_http_data_only: response data instead of ApiResponse
644
+ object with status code, headers, etc
645
+ :type _return_http_data_only: bool, optional
1020
646
  :param _request_timeout: timeout setting for this request. If one
1021
647
  number provided, it will be total request
1022
648
  timeout. It can also be a pair (tuple) of
@@ -1025,118 +651,107 @@ class ComplianceApi(object):
1025
651
  request; this effectively ignores the authentication
1026
652
  in the spec for a single request.
1027
653
  :type _request_auth: dict, optional
1028
- :return: Returns the result object, the HTTP status code, and the headers.
654
+ :type _content_type: string, optional: force content-type for the request
655
+ :return: Returns the result object.
1029
656
  If the method is called asynchronously,
1030
657
  returns the request thread.
1031
- :rtype: (ComplianceTemplate, int, HTTPHeaderDict)
658
+ :rtype: tuple(ComplianceTemplate, status_code(int), headers(HTTPHeaderDict))
1032
659
  """
1033
660
 
1034
- local_var_params = locals()
661
+ _params = locals()
1035
662
 
1036
- all_params = [
663
+ _all_params = [
1037
664
  'scope',
1038
665
  'code',
1039
666
  'as_at'
1040
667
  ]
1041
- all_params.extend(
668
+ _all_params.extend(
1042
669
  [
1043
670
  'async_req',
1044
671
  '_return_http_data_only',
1045
672
  '_preload_content',
1046
673
  '_request_timeout',
1047
674
  '_request_auth',
675
+ '_content_type',
1048
676
  '_headers'
1049
677
  ]
1050
678
  )
1051
679
 
1052
- for key, val in six.iteritems(local_var_params['kwargs']):
1053
- if key not in all_params:
680
+ # validate the arguments
681
+ for _key, _val in _params['kwargs'].items():
682
+ if _key not in _all_params:
1054
683
  raise ApiTypeError(
1055
684
  "Got an unexpected keyword argument '%s'"
1056
- " to method get_compliance_template" % key
685
+ " to method get_compliance_template" % _key
1057
686
  )
1058
- local_var_params[key] = val
1059
- del local_var_params['kwargs']
1060
- # verify the required parameter 'scope' is set
1061
- if self.api_client.client_side_validation and ('scope' not in local_var_params or # noqa: E501
1062
- local_var_params['scope'] is None): # noqa: E501
1063
- raise ApiValueError("Missing the required parameter `scope` when calling `get_compliance_template`") # noqa: E501
1064
- # verify the required parameter 'code' is set
1065
- if self.api_client.client_side_validation and ('code' not in local_var_params or # noqa: E501
1066
- local_var_params['code'] is None): # noqa: E501
1067
- raise ApiValueError("Missing the required parameter `code` when calling `get_compliance_template`") # noqa: E501
1068
-
1069
- if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
1070
- len(local_var_params['scope']) > 64): # noqa: E501
1071
- raise ApiValueError("Invalid value for parameter `scope` when calling `get_compliance_template`, length must be less than or equal to `64`") # noqa: E501
1072
- if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
1073
- len(local_var_params['scope']) < 1): # noqa: E501
1074
- raise ApiValueError("Invalid value for parameter `scope` when calling `get_compliance_template`, length must be greater than or equal to `1`") # noqa: E501
1075
- if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['scope']): # noqa: E501
1076
- raise ApiValueError("Invalid value for parameter `scope` when calling `get_compliance_template`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
1077
- if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
1078
- len(local_var_params['code']) > 64): # noqa: E501
1079
- raise ApiValueError("Invalid value for parameter `code` when calling `get_compliance_template`, length must be less than or equal to `64`") # noqa: E501
1080
- if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
1081
- len(local_var_params['code']) < 1): # noqa: E501
1082
- raise ApiValueError("Invalid value for parameter `code` when calling `get_compliance_template`, length must be greater than or equal to `1`") # noqa: E501
1083
- if self.api_client.client_side_validation and 'code' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['code']): # noqa: E501
1084
- raise ApiValueError("Invalid value for parameter `code` when calling `get_compliance_template`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
1085
- collection_formats = {}
1086
-
1087
- path_params = {}
1088
- if 'scope' in local_var_params:
1089
- path_params['scope'] = local_var_params['scope'] # noqa: E501
1090
- if 'code' in local_var_params:
1091
- path_params['code'] = local_var_params['code'] # noqa: E501
1092
-
1093
- query_params = []
1094
- if 'as_at' in local_var_params and local_var_params['as_at'] is not None: # noqa: E501
1095
- query_params.append(('asAt', local_var_params['as_at'])) # noqa: E501
1096
-
1097
- header_params = dict(local_var_params.get('_headers', {}))
1098
-
1099
- form_params = []
1100
- local_var_files = {}
1101
-
1102
- body_params = None
1103
- # HTTP header `Accept`
1104
- header_params['Accept'] = self.api_client.select_header_accept(
687
+ _params[_key] = _val
688
+ del _params['kwargs']
689
+
690
+ _collection_formats = {}
691
+
692
+ # process the path parameters
693
+ _path_params = {}
694
+ if _params['scope']:
695
+ _path_params['scope'] = _params['scope']
696
+
697
+ if _params['code']:
698
+ _path_params['code'] = _params['code']
699
+
700
+
701
+ # process the query parameters
702
+ _query_params = []
703
+ if _params.get('as_at') is not None: # noqa: E501
704
+ if isinstance(_params['as_at'], datetime):
705
+ _query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
706
+ else:
707
+ _query_params.append(('asAt', _params['as_at']))
708
+
709
+ # process the header parameters
710
+ _header_params = dict(_params.get('_headers', {}))
711
+ # process the form parameters
712
+ _form_params = []
713
+ _files = {}
714
+ # process the body parameter
715
+ _body_params = None
716
+ # set the HTTP header `Accept`
717
+ _header_params['Accept'] = self.api_client.select_header_accept(
1105
718
  ['text/plain', 'application/json', 'text/json']) # noqa: E501
1106
719
 
1107
- header_params['Accept-Encoding'] = "gzip, deflate, br"
1108
-
1109
-
1110
- # set the LUSID header
1111
- header_params['X-LUSID-SDK-Language'] = 'Python'
1112
- header_params['X-LUSID-SDK-Version'] = '1.1.257'
1113
-
1114
- # Authentication setting
1115
- auth_settings = ['oauth2'] # noqa: E501
720
+ # authentication setting
721
+ _auth_settings = ['oauth2'] # noqa: E501
1116
722
 
1117
- response_types_map = {
1118
- 200: "ComplianceTemplate",
1119
- 400: "LusidValidationProblemDetails",
723
+ _response_types_map = {
724
+ '200': "ComplianceTemplate",
725
+ '400': "LusidValidationProblemDetails",
1120
726
  }
1121
727
 
1122
728
  return self.api_client.call_api(
1123
729
  '/api/compliance/templates/{scope}/{code}', 'GET',
1124
- path_params,
1125
- query_params,
1126
- header_params,
1127
- body=body_params,
1128
- post_params=form_params,
1129
- files=local_var_files,
1130
- response_types_map=response_types_map,
1131
- auth_settings=auth_settings,
1132
- async_req=local_var_params.get('async_req'),
1133
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1134
- _preload_content=local_var_params.get('_preload_content', True),
1135
- _request_timeout=local_var_params.get('_request_timeout'),
1136
- collection_formats=collection_formats,
1137
- _request_auth=local_var_params.get('_request_auth'))
1138
-
1139
- def get_decorated_compliance_run_summary(self, scope, code, **kwargs): # noqa: E501
730
+ _path_params,
731
+ _query_params,
732
+ _header_params,
733
+ body=_body_params,
734
+ post_params=_form_params,
735
+ files=_files,
736
+ response_types_map=_response_types_map,
737
+ auth_settings=_auth_settings,
738
+ async_req=_params.get('async_req'),
739
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
740
+ _preload_content=_params.get('_preload_content', True),
741
+ _request_timeout=_params.get('_request_timeout'),
742
+ collection_formats=_collection_formats,
743
+ _request_auth=_params.get('_request_auth'))
744
+
745
+ @overload
746
+ async def get_decorated_compliance_run_summary(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Run Scope.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Run Code.")], **kwargs) -> DecoratedComplianceRunSummary: # noqa: E501
747
+ ...
748
+
749
+ @overload
750
+ def get_decorated_compliance_run_summary(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Run Scope.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Run Code.")], async_req: Optional[bool]=True, **kwargs) -> DecoratedComplianceRunSummary: # noqa: E501
751
+ ...
752
+
753
+ @validate_arguments
754
+ def get_decorated_compliance_run_summary(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Run Scope.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Run Code.")], async_req: Optional[bool]=None, **kwargs) -> Union[DecoratedComplianceRunSummary, Awaitable[DecoratedComplianceRunSummary]]: # noqa: E501
1140
755
  """[EARLY ACCESS] GetDecoratedComplianceRunSummary: Get decorated summary results for a specific compliance run. # noqa: E501
1141
756
 
1142
757
  Specify a run scope and code from a previously run compliance check to get an overview of result details. # noqa: E501
@@ -1152,23 +767,25 @@ class ComplianceApi(object):
1152
767
  :type code: str
1153
768
  :param async_req: Whether to execute the request asynchronously.
1154
769
  :type async_req: bool, optional
1155
- :param _preload_content: if False, the urllib3.HTTPResponse object will
1156
- be returned without reading/decoding response
1157
- data. Default is True.
1158
- :type _preload_content: bool, optional
1159
- :param _request_timeout: timeout setting for this request. If one
1160
- number provided, it will be total request
1161
- timeout. It can also be a pair (tuple) of
1162
- (connection, read) timeouts.
770
+ :param _request_timeout: timeout setting for this request.
771
+ If one number provided, it will be total request
772
+ timeout. It can also be a pair (tuple) of
773
+ (connection, read) timeouts.
1163
774
  :return: Returns the result object.
1164
775
  If the method is called asynchronously,
1165
776
  returns the request thread.
1166
777
  :rtype: DecoratedComplianceRunSummary
1167
778
  """
1168
779
  kwargs['_return_http_data_only'] = True
780
+ if '_preload_content' in kwargs:
781
+ message = "Error! Please call the get_decorated_compliance_run_summary_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
782
+ raise ValueError(message)
783
+ if async_req is not None:
784
+ kwargs['async_req'] = async_req
1169
785
  return self.get_decorated_compliance_run_summary_with_http_info(scope, code, **kwargs) # noqa: E501
1170
786
 
1171
- def get_decorated_compliance_run_summary_with_http_info(self, scope, code, **kwargs): # noqa: E501
787
+ @validate_arguments
788
+ def get_decorated_compliance_run_summary_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Run Scope.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Run Code.")], **kwargs) -> ApiResponse: # noqa: E501
1172
789
  """[EARLY ACCESS] GetDecoratedComplianceRunSummary: Get decorated summary results for a specific compliance run. # noqa: E501
1173
790
 
1174
791
  Specify a run scope and code from a previously run compliance check to get an overview of result details. # noqa: E501
@@ -1184,13 +801,14 @@ class ComplianceApi(object):
1184
801
  :type code: str
1185
802
  :param async_req: Whether to execute the request asynchronously.
1186
803
  :type async_req: bool, optional
1187
- :param _return_http_data_only: response data without head status code
1188
- and headers
1189
- :type _return_http_data_only: bool, optional
1190
- :param _preload_content: if False, the urllib3.HTTPResponse object will
1191
- be returned without reading/decoding response
1192
- data. Default is True.
804
+ :param _preload_content: if False, the ApiResponse.data will
805
+ be set to none and raw_data will store the
806
+ HTTP response body without reading/decoding.
807
+ Default is True.
1193
808
  :type _preload_content: bool, optional
809
+ :param _return_http_data_only: response data instead of ApiResponse
810
+ object with status code, headers, etc
811
+ :type _return_http_data_only: bool, optional
1194
812
  :param _request_timeout: timeout setting for this request. If one
1195
813
  number provided, it will be total request
1196
814
  timeout. It can also be a pair (tuple) of
@@ -1199,122 +817,107 @@ class ComplianceApi(object):
1199
817
  request; this effectively ignores the authentication
1200
818
  in the spec for a single request.
1201
819
  :type _request_auth: dict, optional
1202
- :return: Returns the result object, the HTTP status code, and the headers.
820
+ :type _content_type: string, optional: force content-type for the request
821
+ :return: Returns the result object.
1203
822
  If the method is called asynchronously,
1204
823
  returns the request thread.
1205
- :rtype: (DecoratedComplianceRunSummary, int, HTTPHeaderDict)
824
+ :rtype: tuple(DecoratedComplianceRunSummary, status_code(int), headers(HTTPHeaderDict))
1206
825
  """
1207
826
 
1208
- local_var_params = locals()
827
+ _params = locals()
1209
828
 
1210
- all_params = [
829
+ _all_params = [
1211
830
  'scope',
1212
831
  'code'
1213
832
  ]
1214
- all_params.extend(
833
+ _all_params.extend(
1215
834
  [
1216
835
  'async_req',
1217
836
  '_return_http_data_only',
1218
837
  '_preload_content',
1219
838
  '_request_timeout',
1220
839
  '_request_auth',
840
+ '_content_type',
1221
841
  '_headers'
1222
842
  ]
1223
843
  )
1224
844
 
1225
- for key, val in six.iteritems(local_var_params['kwargs']):
1226
- if key not in all_params:
845
+ # validate the arguments
846
+ for _key, _val in _params['kwargs'].items():
847
+ if _key not in _all_params:
1227
848
  raise ApiTypeError(
1228
849
  "Got an unexpected keyword argument '%s'"
1229
- " to method get_decorated_compliance_run_summary" % key
850
+ " to method get_decorated_compliance_run_summary" % _key
1230
851
  )
1231
- local_var_params[key] = val
1232
- del local_var_params['kwargs']
1233
- # verify the required parameter 'scope' is set
1234
- if self.api_client.client_side_validation and ('scope' not in local_var_params or # noqa: E501
1235
- local_var_params['scope'] is None): # noqa: E501
1236
- raise ApiValueError("Missing the required parameter `scope` when calling `get_decorated_compliance_run_summary`") # noqa: E501
1237
- # verify the required parameter 'code' is set
1238
- if self.api_client.client_side_validation and ('code' not in local_var_params or # noqa: E501
1239
- local_var_params['code'] is None): # noqa: E501
1240
- raise ApiValueError("Missing the required parameter `code` when calling `get_decorated_compliance_run_summary`") # noqa: E501
1241
-
1242
- if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
1243
- len(local_var_params['scope']) > 64): # noqa: E501
1244
- raise ApiValueError("Invalid value for parameter `scope` when calling `get_decorated_compliance_run_summary`, length must be less than or equal to `64`") # noqa: E501
1245
- if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
1246
- len(local_var_params['scope']) < 1): # noqa: E501
1247
- raise ApiValueError("Invalid value for parameter `scope` when calling `get_decorated_compliance_run_summary`, length must be greater than or equal to `1`") # noqa: E501
1248
- if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['scope']): # noqa: E501
1249
- raise ApiValueError("Invalid value for parameter `scope` when calling `get_decorated_compliance_run_summary`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
1250
- if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
1251
- len(local_var_params['code']) > 64): # noqa: E501
1252
- raise ApiValueError("Invalid value for parameter `code` when calling `get_decorated_compliance_run_summary`, length must be less than or equal to `64`") # noqa: E501
1253
- if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
1254
- len(local_var_params['code']) < 1): # noqa: E501
1255
- raise ApiValueError("Invalid value for parameter `code` when calling `get_decorated_compliance_run_summary`, length must be greater than or equal to `1`") # noqa: E501
1256
- if self.api_client.client_side_validation and 'code' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['code']): # noqa: E501
1257
- raise ApiValueError("Invalid value for parameter `code` when calling `get_decorated_compliance_run_summary`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
1258
- collection_formats = {}
1259
-
1260
- path_params = {}
1261
- if 'scope' in local_var_params:
1262
- path_params['scope'] = local_var_params['scope'] # noqa: E501
1263
- if 'code' in local_var_params:
1264
- path_params['code'] = local_var_params['code'] # noqa: E501
1265
-
1266
- query_params = []
1267
-
1268
- header_params = dict(local_var_params.get('_headers', {}))
1269
-
1270
- form_params = []
1271
- local_var_files = {}
1272
-
1273
- body_params = None
1274
- # HTTP header `Accept`
1275
- header_params['Accept'] = self.api_client.select_header_accept(
852
+ _params[_key] = _val
853
+ del _params['kwargs']
854
+
855
+ _collection_formats = {}
856
+
857
+ # process the path parameters
858
+ _path_params = {}
859
+ if _params['scope']:
860
+ _path_params['scope'] = _params['scope']
861
+
862
+ if _params['code']:
863
+ _path_params['code'] = _params['code']
864
+
865
+
866
+ # process the query parameters
867
+ _query_params = []
868
+ # process the header parameters
869
+ _header_params = dict(_params.get('_headers', {}))
870
+ # process the form parameters
871
+ _form_params = []
872
+ _files = {}
873
+ # process the body parameter
874
+ _body_params = None
875
+ # set the HTTP header `Accept`
876
+ _header_params['Accept'] = self.api_client.select_header_accept(
1276
877
  ['text/plain', 'application/json', 'text/json']) # noqa: E501
1277
878
 
1278
- header_params['Accept-Encoding'] = "gzip, deflate, br"
1279
-
1280
-
1281
- # set the LUSID header
1282
- header_params['X-LUSID-SDK-Language'] = 'Python'
1283
- header_params['X-LUSID-SDK-Version'] = '1.1.257'
1284
-
1285
- # Authentication setting
1286
- auth_settings = ['oauth2'] # noqa: E501
879
+ # authentication setting
880
+ _auth_settings = ['oauth2'] # noqa: E501
1287
881
 
1288
- response_types_map = {
1289
- 200: "DecoratedComplianceRunSummary",
1290
- 400: "LusidValidationProblemDetails",
882
+ _response_types_map = {
883
+ '200': "DecoratedComplianceRunSummary",
884
+ '400': "LusidValidationProblemDetails",
1291
885
  }
1292
886
 
1293
887
  return self.api_client.call_api(
1294
888
  '/api/compliance/runs/summary/{scope}/{code}/$decorate', 'GET',
1295
- path_params,
1296
- query_params,
1297
- header_params,
1298
- body=body_params,
1299
- post_params=form_params,
1300
- files=local_var_files,
1301
- response_types_map=response_types_map,
1302
- auth_settings=auth_settings,
1303
- async_req=local_var_params.get('async_req'),
1304
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1305
- _preload_content=local_var_params.get('_preload_content', True),
1306
- _request_timeout=local_var_params.get('_request_timeout'),
1307
- collection_formats=collection_formats,
1308
- _request_auth=local_var_params.get('_request_auth'))
1309
-
1310
- def list_compliance_rules(self, **kwargs): # noqa: E501
889
+ _path_params,
890
+ _query_params,
891
+ _header_params,
892
+ body=_body_params,
893
+ post_params=_form_params,
894
+ files=_files,
895
+ response_types_map=_response_types_map,
896
+ auth_settings=_auth_settings,
897
+ async_req=_params.get('async_req'),
898
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
899
+ _preload_content=_params.get('_preload_content', True),
900
+ _request_timeout=_params.get('_request_timeout'),
901
+ collection_formats=_collection_formats,
902
+ _request_auth=_params.get('_request_auth'))
903
+
904
+ @overload
905
+ async def list_compliance_rules(self, as_at : Annotated[Optional[datetime], Field(description="Optional. Asat time.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="Optional. Pagination token.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="Optional. Entries per page.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Optional. Filter.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Compliance' domain to decorate onto each rule. These must take the format {domain}/{scope}/{code}, for example 'Compliance/live/UCITS'. If not provided will return all the entitled properties for each rule.")] = None, **kwargs) -> PagedResourceListOfComplianceRuleResponse: # noqa: E501
906
+ ...
907
+
908
+ @overload
909
+ def list_compliance_rules(self, as_at : Annotated[Optional[datetime], Field(description="Optional. Asat time.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="Optional. Pagination token.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="Optional. Entries per page.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Optional. Filter.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Compliance' domain to decorate onto each rule. These must take the format {domain}/{scope}/{code}, for example 'Compliance/live/UCITS'. If not provided will return all the entitled properties for each rule.")] = None, async_req: Optional[bool]=True, **kwargs) -> PagedResourceListOfComplianceRuleResponse: # noqa: E501
910
+ ...
911
+
912
+ @validate_arguments
913
+ def list_compliance_rules(self, as_at : Annotated[Optional[datetime], Field(description="Optional. Asat time.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="Optional. Pagination token.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="Optional. Entries per page.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Optional. Filter.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Compliance' domain to decorate onto each rule. These must take the format {domain}/{scope}/{code}, for example 'Compliance/live/UCITS'. If not provided will return all the entitled properties for each rule.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[PagedResourceListOfComplianceRuleResponse, Awaitable[PagedResourceListOfComplianceRuleResponse]]: # noqa: E501
1311
914
  """[EARLY ACCESS] ListComplianceRules: List compliance rules. # noqa: E501
1312
915
 
1313
916
  Use this endpoint to retrieve all compliance rules, or a subset defined by an optional filter. # noqa: E501
1314
917
  This method makes a synchronous HTTP request by default. To make an
1315
918
  asynchronous HTTP request, please pass async_req=True
1316
919
 
1317
- >>> thread = api.list_compliance_rules(async_req=True)
920
+ >>> thread = api.list_compliance_rules(as_at, page, limit, filter, property_keys, async_req=True)
1318
921
  >>> result = thread.get()
1319
922
 
1320
923
  :param as_at: Optional. Asat time.
@@ -1326,33 +929,35 @@ class ComplianceApi(object):
1326
929
  :param filter: Optional. Filter.
1327
930
  :type filter: str
1328
931
  :param property_keys: A list of property keys from the 'Compliance' domain to decorate onto each rule. These must take the format {domain}/{scope}/{code}, for example 'Compliance/live/UCITS'. If not provided will return all the entitled properties for each rule.
1329
- :type property_keys: list[str]
932
+ :type property_keys: List[str]
1330
933
  :param async_req: Whether to execute the request asynchronously.
1331
934
  :type async_req: bool, optional
1332
- :param _preload_content: if False, the urllib3.HTTPResponse object will
1333
- be returned without reading/decoding response
1334
- data. Default is True.
1335
- :type _preload_content: bool, optional
1336
- :param _request_timeout: timeout setting for this request. If one
1337
- number provided, it will be total request
1338
- timeout. It can also be a pair (tuple) of
1339
- (connection, read) timeouts.
935
+ :param _request_timeout: timeout setting for this request.
936
+ If one number provided, it will be total request
937
+ timeout. It can also be a pair (tuple) of
938
+ (connection, read) timeouts.
1340
939
  :return: Returns the result object.
1341
940
  If the method is called asynchronously,
1342
941
  returns the request thread.
1343
942
  :rtype: PagedResourceListOfComplianceRuleResponse
1344
943
  """
1345
944
  kwargs['_return_http_data_only'] = True
1346
- return self.list_compliance_rules_with_http_info(**kwargs) # noqa: E501
1347
-
1348
- def list_compliance_rules_with_http_info(self, **kwargs): # noqa: E501
945
+ if '_preload_content' in kwargs:
946
+ message = "Error! Please call the list_compliance_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
947
+ raise ValueError(message)
948
+ if async_req is not None:
949
+ kwargs['async_req'] = async_req
950
+ return self.list_compliance_rules_with_http_info(as_at, page, limit, filter, property_keys, **kwargs) # noqa: E501
951
+
952
+ @validate_arguments
953
+ def list_compliance_rules_with_http_info(self, as_at : Annotated[Optional[datetime], Field(description="Optional. Asat time.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="Optional. Pagination token.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="Optional. Entries per page.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Optional. Filter.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Compliance' domain to decorate onto each rule. These must take the format {domain}/{scope}/{code}, for example 'Compliance/live/UCITS'. If not provided will return all the entitled properties for each rule.")] = None, **kwargs) -> ApiResponse: # noqa: E501
1349
954
  """[EARLY ACCESS] ListComplianceRules: List compliance rules. # noqa: E501
1350
955
 
1351
956
  Use this endpoint to retrieve all compliance rules, or a subset defined by an optional filter. # noqa: E501
1352
957
  This method makes a synchronous HTTP request by default. To make an
1353
958
  asynchronous HTTP request, please pass async_req=True
1354
959
 
1355
- >>> thread = api.list_compliance_rules_with_http_info(async_req=True)
960
+ >>> thread = api.list_compliance_rules_with_http_info(as_at, page, limit, filter, property_keys, async_req=True)
1356
961
  >>> result = thread.get()
1357
962
 
1358
963
  :param as_at: Optional. Asat time.
@@ -1364,16 +969,17 @@ class ComplianceApi(object):
1364
969
  :param filter: Optional. Filter.
1365
970
  :type filter: str
1366
971
  :param property_keys: A list of property keys from the 'Compliance' domain to decorate onto each rule. These must take the format {domain}/{scope}/{code}, for example 'Compliance/live/UCITS'. If not provided will return all the entitled properties for each rule.
1367
- :type property_keys: list[str]
972
+ :type property_keys: List[str]
1368
973
  :param async_req: Whether to execute the request asynchronously.
1369
974
  :type async_req: bool, optional
1370
- :param _return_http_data_only: response data without head status code
1371
- and headers
1372
- :type _return_http_data_only: bool, optional
1373
- :param _preload_content: if False, the urllib3.HTTPResponse object will
1374
- be returned without reading/decoding response
1375
- data. Default is True.
975
+ :param _preload_content: if False, the ApiResponse.data will
976
+ be set to none and raw_data will store the
977
+ HTTP response body without reading/decoding.
978
+ Default is True.
1376
979
  :type _preload_content: bool, optional
980
+ :param _return_http_data_only: response data instead of ApiResponse
981
+ object with status code, headers, etc
982
+ :type _return_http_data_only: bool, optional
1377
983
  :param _request_timeout: timeout setting for this request. If one
1378
984
  number provided, it will be total request
1379
985
  timeout. It can also be a pair (tuple) of
@@ -1382,128 +988,123 @@ class ComplianceApi(object):
1382
988
  request; this effectively ignores the authentication
1383
989
  in the spec for a single request.
1384
990
  :type _request_auth: dict, optional
1385
- :return: Returns the result object, the HTTP status code, and the headers.
991
+ :type _content_type: string, optional: force content-type for the request
992
+ :return: Returns the result object.
1386
993
  If the method is called asynchronously,
1387
994
  returns the request thread.
1388
- :rtype: (PagedResourceListOfComplianceRuleResponse, int, HTTPHeaderDict)
995
+ :rtype: tuple(PagedResourceListOfComplianceRuleResponse, status_code(int), headers(HTTPHeaderDict))
1389
996
  """
1390
997
 
1391
- local_var_params = locals()
998
+ _params = locals()
1392
999
 
1393
- all_params = [
1000
+ _all_params = [
1394
1001
  'as_at',
1395
1002
  'page',
1396
1003
  'limit',
1397
1004
  'filter',
1398
1005
  'property_keys'
1399
1006
  ]
1400
- all_params.extend(
1007
+ _all_params.extend(
1401
1008
  [
1402
1009
  'async_req',
1403
1010
  '_return_http_data_only',
1404
1011
  '_preload_content',
1405
1012
  '_request_timeout',
1406
1013
  '_request_auth',
1014
+ '_content_type',
1407
1015
  '_headers'
1408
1016
  ]
1409
1017
  )
1410
1018
 
1411
- for key, val in six.iteritems(local_var_params['kwargs']):
1412
- if key not in all_params:
1019
+ # validate the arguments
1020
+ for _key, _val in _params['kwargs'].items():
1021
+ if _key not in _all_params:
1413
1022
  raise ApiTypeError(
1414
1023
  "Got an unexpected keyword argument '%s'"
1415
- " to method list_compliance_rules" % key
1024
+ " to method list_compliance_rules" % _key
1416
1025
  )
1417
- local_var_params[key] = val
1418
- del local_var_params['kwargs']
1419
-
1420
- if self.api_client.client_side_validation and ('page' in local_var_params and # noqa: E501
1421
- len(local_var_params['page']) > 500): # noqa: E501
1422
- raise ApiValueError("Invalid value for parameter `page` when calling `list_compliance_rules`, length must be less than or equal to `500`") # noqa: E501
1423
- if self.api_client.client_side_validation and ('page' in local_var_params and # noqa: E501
1424
- len(local_var_params['page']) < 1): # noqa: E501
1425
- raise ApiValueError("Invalid value for parameter `page` when calling `list_compliance_rules`, length must be greater than or equal to `1`") # noqa: E501
1426
- if self.api_client.client_side_validation and 'page' in local_var_params and not re.search(r'^[a-zA-Z0-9\+\/]*={0,3}$', local_var_params['page']): # noqa: E501
1427
- raise ApiValueError("Invalid value for parameter `page` when calling `list_compliance_rules`, must conform to the pattern `/^[a-zA-Z0-9\+\/]*={0,3}$/`") # noqa: E501
1428
- if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 5000: # noqa: E501
1429
- raise ApiValueError("Invalid value for parameter `limit` when calling `list_compliance_rules`, must be a value less than or equal to `5000`") # noqa: E501
1430
- if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1: # noqa: E501
1431
- raise ApiValueError("Invalid value for parameter `limit` when calling `list_compliance_rules`, must be a value greater than or equal to `1`") # noqa: E501
1432
- if self.api_client.client_side_validation and ('filter' in local_var_params and # noqa: E501
1433
- len(local_var_params['filter']) > 16384): # noqa: E501
1434
- raise ApiValueError("Invalid value for parameter `filter` when calling `list_compliance_rules`, length must be less than or equal to `16384`") # noqa: E501
1435
- if self.api_client.client_side_validation and ('filter' in local_var_params and # noqa: E501
1436
- len(local_var_params['filter']) < 0): # noqa: E501
1437
- raise ApiValueError("Invalid value for parameter `filter` when calling `list_compliance_rules`, length must be greater than or equal to `0`") # noqa: E501
1438
- if self.api_client.client_side_validation and 'filter' in local_var_params and not re.search(r'^[\s\S]*$', local_var_params['filter']): # noqa: E501
1439
- raise ApiValueError("Invalid value for parameter `filter` when calling `list_compliance_rules`, must conform to the pattern `/^[\s\S]*$/`") # noqa: E501
1440
- collection_formats = {}
1441
-
1442
- path_params = {}
1443
-
1444
- query_params = []
1445
- if 'as_at' in local_var_params and local_var_params['as_at'] is not None: # noqa: E501
1446
- query_params.append(('asAt', local_var_params['as_at'])) # noqa: E501
1447
- if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501
1448
- query_params.append(('page', local_var_params['page'])) # noqa: E501
1449
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
1450
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
1451
- if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501
1452
- query_params.append(('filter', local_var_params['filter'])) # noqa: E501
1453
- if 'property_keys' in local_var_params and local_var_params['property_keys'] is not None: # noqa: E501
1454
- query_params.append(('propertyKeys', local_var_params['property_keys'])) # noqa: E501
1455
- collection_formats['propertyKeys'] = 'multi' # noqa: E501
1456
-
1457
- header_params = dict(local_var_params.get('_headers', {}))
1458
-
1459
- form_params = []
1460
- local_var_files = {}
1461
-
1462
- body_params = None
1463
- # HTTP header `Accept`
1464
- header_params['Accept'] = self.api_client.select_header_accept(
1026
+ _params[_key] = _val
1027
+ del _params['kwargs']
1028
+
1029
+ _collection_formats = {}
1030
+
1031
+ # process the path parameters
1032
+ _path_params = {}
1033
+
1034
+ # process the query parameters
1035
+ _query_params = []
1036
+ if _params.get('as_at') is not None: # noqa: E501
1037
+ if isinstance(_params['as_at'], datetime):
1038
+ _query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
1039
+ else:
1040
+ _query_params.append(('asAt', _params['as_at']))
1041
+
1042
+ if _params.get('page') is not None: # noqa: E501
1043
+ _query_params.append(('page', _params['page']))
1044
+
1045
+ if _params.get('limit') is not None: # noqa: E501
1046
+ _query_params.append(('limit', _params['limit']))
1047
+
1048
+ if _params.get('filter') is not None: # noqa: E501
1049
+ _query_params.append(('filter', _params['filter']))
1050
+
1051
+ if _params.get('property_keys') is not None: # noqa: E501
1052
+ _query_params.append(('propertyKeys', _params['property_keys']))
1053
+ _collection_formats['propertyKeys'] = 'multi'
1054
+
1055
+ # process the header parameters
1056
+ _header_params = dict(_params.get('_headers', {}))
1057
+ # process the form parameters
1058
+ _form_params = []
1059
+ _files = {}
1060
+ # process the body parameter
1061
+ _body_params = None
1062
+ # set the HTTP header `Accept`
1063
+ _header_params['Accept'] = self.api_client.select_header_accept(
1465
1064
  ['text/plain', 'application/json', 'text/json']) # noqa: E501
1466
1065
 
1467
- header_params['Accept-Encoding'] = "gzip, deflate, br"
1066
+ # authentication setting
1067
+ _auth_settings = ['oauth2'] # noqa: E501
1468
1068
 
1469
-
1470
- # set the LUSID header
1471
- header_params['X-LUSID-SDK-Language'] = 'Python'
1472
- header_params['X-LUSID-SDK-Version'] = '1.1.257'
1473
-
1474
- # Authentication setting
1475
- auth_settings = ['oauth2'] # noqa: E501
1476
-
1477
- response_types_map = {
1478
- 200: "PagedResourceListOfComplianceRuleResponse",
1479
- 400: "LusidValidationProblemDetails",
1069
+ _response_types_map = {
1070
+ '200': "PagedResourceListOfComplianceRuleResponse",
1071
+ '400': "LusidValidationProblemDetails",
1480
1072
  }
1481
1073
 
1482
1074
  return self.api_client.call_api(
1483
1075
  '/api/compliance/rules', 'GET',
1484
- path_params,
1485
- query_params,
1486
- header_params,
1487
- body=body_params,
1488
- post_params=form_params,
1489
- files=local_var_files,
1490
- response_types_map=response_types_map,
1491
- auth_settings=auth_settings,
1492
- async_req=local_var_params.get('async_req'),
1493
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1494
- _preload_content=local_var_params.get('_preload_content', True),
1495
- _request_timeout=local_var_params.get('_request_timeout'),
1496
- collection_formats=collection_formats,
1497
- _request_auth=local_var_params.get('_request_auth'))
1498
-
1499
- def list_compliance_runs(self, **kwargs): # noqa: E501
1076
+ _path_params,
1077
+ _query_params,
1078
+ _header_params,
1079
+ body=_body_params,
1080
+ post_params=_form_params,
1081
+ files=_files,
1082
+ response_types_map=_response_types_map,
1083
+ auth_settings=_auth_settings,
1084
+ async_req=_params.get('async_req'),
1085
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1086
+ _preload_content=_params.get('_preload_content', True),
1087
+ _request_timeout=_params.get('_request_timeout'),
1088
+ collection_formats=_collection_formats,
1089
+ _request_auth=_params.get('_request_auth'))
1090
+
1091
+ @overload
1092
+ async def list_compliance_runs(self, as_at : Annotated[Optional[datetime], Field(description="Optional. The time at which to get results from. Default : latest")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="Optional. The pagination token to use to continue listing compliance runs from a previous call to list compliance runs. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="Optional. When paginating, limit the number of returned results to this many.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Optional. Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="Optional. A list of field names to sort by, each suffixed by \"ASC\" or \"DESC\"")] = None, **kwargs) -> PagedResourceListOfComplianceRunInfoV2: # noqa: E501
1093
+ ...
1094
+
1095
+ @overload
1096
+ def list_compliance_runs(self, as_at : Annotated[Optional[datetime], Field(description="Optional. The time at which to get results from. Default : latest")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="Optional. The pagination token to use to continue listing compliance runs from a previous call to list compliance runs. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="Optional. When paginating, limit the number of returned results to this many.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Optional. Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="Optional. A list of field names to sort by, each suffixed by \"ASC\" or \"DESC\"")] = None, async_req: Optional[bool]=True, **kwargs) -> PagedResourceListOfComplianceRunInfoV2: # noqa: E501
1097
+ ...
1098
+
1099
+ @validate_arguments
1100
+ def list_compliance_runs(self, as_at : Annotated[Optional[datetime], Field(description="Optional. The time at which to get results from. Default : latest")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="Optional. The pagination token to use to continue listing compliance runs from a previous call to list compliance runs. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="Optional. When paginating, limit the number of returned results to this many.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Optional. Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="Optional. A list of field names to sort by, each suffixed by \"ASC\" or \"DESC\"")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[PagedResourceListOfComplianceRunInfoV2, Awaitable[PagedResourceListOfComplianceRunInfoV2]]: # noqa: E501
1500
1101
  """[EARLY ACCESS] ListComplianceRuns: List historical compliance run identifiers. # noqa: E501
1501
1102
 
1502
1103
  Lists RunIds of prior compliance runs, or a subset with a filter. # noqa: E501
1503
1104
  This method makes a synchronous HTTP request by default. To make an
1504
1105
  asynchronous HTTP request, please pass async_req=True
1505
1106
 
1506
- >>> thread = api.list_compliance_runs(async_req=True)
1107
+ >>> thread = api.list_compliance_runs(as_at, page, limit, filter, sort_by, async_req=True)
1507
1108
  >>> result = thread.get()
1508
1109
 
1509
1110
  :param as_at: Optional. The time at which to get results from. Default : latest
@@ -1515,33 +1116,35 @@ class ComplianceApi(object):
1515
1116
  :param filter: Optional. Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.
1516
1117
  :type filter: str
1517
1118
  :param sort_by: Optional. A list of field names to sort by, each suffixed by \"ASC\" or \"DESC\"
1518
- :type sort_by: list[str]
1119
+ :type sort_by: List[str]
1519
1120
  :param async_req: Whether to execute the request asynchronously.
1520
1121
  :type async_req: bool, optional
1521
- :param _preload_content: if False, the urllib3.HTTPResponse object will
1522
- be returned without reading/decoding response
1523
- data. Default is True.
1524
- :type _preload_content: bool, optional
1525
- :param _request_timeout: timeout setting for this request. If one
1526
- number provided, it will be total request
1527
- timeout. It can also be a pair (tuple) of
1528
- (connection, read) timeouts.
1122
+ :param _request_timeout: timeout setting for this request.
1123
+ If one number provided, it will be total request
1124
+ timeout. It can also be a pair (tuple) of
1125
+ (connection, read) timeouts.
1529
1126
  :return: Returns the result object.
1530
1127
  If the method is called asynchronously,
1531
1128
  returns the request thread.
1532
1129
  :rtype: PagedResourceListOfComplianceRunInfoV2
1533
1130
  """
1534
1131
  kwargs['_return_http_data_only'] = True
1535
- return self.list_compliance_runs_with_http_info(**kwargs) # noqa: E501
1536
-
1537
- def list_compliance_runs_with_http_info(self, **kwargs): # noqa: E501
1132
+ if '_preload_content' in kwargs:
1133
+ message = "Error! Please call the list_compliance_runs_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
1134
+ raise ValueError(message)
1135
+ if async_req is not None:
1136
+ kwargs['async_req'] = async_req
1137
+ return self.list_compliance_runs_with_http_info(as_at, page, limit, filter, sort_by, **kwargs) # noqa: E501
1138
+
1139
+ @validate_arguments
1140
+ def list_compliance_runs_with_http_info(self, as_at : Annotated[Optional[datetime], Field(description="Optional. The time at which to get results from. Default : latest")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="Optional. The pagination token to use to continue listing compliance runs from a previous call to list compliance runs. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="Optional. When paginating, limit the number of returned results to this many.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Optional. Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="Optional. A list of field names to sort by, each suffixed by \"ASC\" or \"DESC\"")] = None, **kwargs) -> ApiResponse: # noqa: E501
1538
1141
  """[EARLY ACCESS] ListComplianceRuns: List historical compliance run identifiers. # noqa: E501
1539
1142
 
1540
1143
  Lists RunIds of prior compliance runs, or a subset with a filter. # noqa: E501
1541
1144
  This method makes a synchronous HTTP request by default. To make an
1542
1145
  asynchronous HTTP request, please pass async_req=True
1543
1146
 
1544
- >>> thread = api.list_compliance_runs_with_http_info(async_req=True)
1147
+ >>> thread = api.list_compliance_runs_with_http_info(as_at, page, limit, filter, sort_by, async_req=True)
1545
1148
  >>> result = thread.get()
1546
1149
 
1547
1150
  :param as_at: Optional. The time at which to get results from. Default : latest
@@ -1553,16 +1156,17 @@ class ComplianceApi(object):
1553
1156
  :param filter: Optional. Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.
1554
1157
  :type filter: str
1555
1158
  :param sort_by: Optional. A list of field names to sort by, each suffixed by \"ASC\" or \"DESC\"
1556
- :type sort_by: list[str]
1159
+ :type sort_by: List[str]
1557
1160
  :param async_req: Whether to execute the request asynchronously.
1558
1161
  :type async_req: bool, optional
1559
- :param _return_http_data_only: response data without head status code
1560
- and headers
1561
- :type _return_http_data_only: bool, optional
1562
- :param _preload_content: if False, the urllib3.HTTPResponse object will
1563
- be returned without reading/decoding response
1564
- data. Default is True.
1162
+ :param _preload_content: if False, the ApiResponse.data will
1163
+ be set to none and raw_data will store the
1164
+ HTTP response body without reading/decoding.
1165
+ Default is True.
1565
1166
  :type _preload_content: bool, optional
1167
+ :param _return_http_data_only: response data instead of ApiResponse
1168
+ object with status code, headers, etc
1169
+ :type _return_http_data_only: bool, optional
1566
1170
  :param _request_timeout: timeout setting for this request. If one
1567
1171
  number provided, it will be total request
1568
1172
  timeout. It can also be a pair (tuple) of
@@ -1571,128 +1175,123 @@ class ComplianceApi(object):
1571
1175
  request; this effectively ignores the authentication
1572
1176
  in the spec for a single request.
1573
1177
  :type _request_auth: dict, optional
1574
- :return: Returns the result object, the HTTP status code, and the headers.
1178
+ :type _content_type: string, optional: force content-type for the request
1179
+ :return: Returns the result object.
1575
1180
  If the method is called asynchronously,
1576
1181
  returns the request thread.
1577
- :rtype: (PagedResourceListOfComplianceRunInfoV2, int, HTTPHeaderDict)
1182
+ :rtype: tuple(PagedResourceListOfComplianceRunInfoV2, status_code(int), headers(HTTPHeaderDict))
1578
1183
  """
1579
1184
 
1580
- local_var_params = locals()
1185
+ _params = locals()
1581
1186
 
1582
- all_params = [
1187
+ _all_params = [
1583
1188
  'as_at',
1584
1189
  'page',
1585
1190
  'limit',
1586
1191
  'filter',
1587
1192
  'sort_by'
1588
1193
  ]
1589
- all_params.extend(
1194
+ _all_params.extend(
1590
1195
  [
1591
1196
  'async_req',
1592
1197
  '_return_http_data_only',
1593
1198
  '_preload_content',
1594
1199
  '_request_timeout',
1595
1200
  '_request_auth',
1201
+ '_content_type',
1596
1202
  '_headers'
1597
1203
  ]
1598
1204
  )
1599
1205
 
1600
- for key, val in six.iteritems(local_var_params['kwargs']):
1601
- if key not in all_params:
1206
+ # validate the arguments
1207
+ for _key, _val in _params['kwargs'].items():
1208
+ if _key not in _all_params:
1602
1209
  raise ApiTypeError(
1603
1210
  "Got an unexpected keyword argument '%s'"
1604
- " to method list_compliance_runs" % key
1211
+ " to method list_compliance_runs" % _key
1605
1212
  )
1606
- local_var_params[key] = val
1607
- del local_var_params['kwargs']
1608
-
1609
- if self.api_client.client_side_validation and ('page' in local_var_params and # noqa: E501
1610
- len(local_var_params['page']) > 500): # noqa: E501
1611
- raise ApiValueError("Invalid value for parameter `page` when calling `list_compliance_runs`, length must be less than or equal to `500`") # noqa: E501
1612
- if self.api_client.client_side_validation and ('page' in local_var_params and # noqa: E501
1613
- len(local_var_params['page']) < 1): # noqa: E501
1614
- raise ApiValueError("Invalid value for parameter `page` when calling `list_compliance_runs`, length must be greater than or equal to `1`") # noqa: E501
1615
- if self.api_client.client_side_validation and 'page' in local_var_params and not re.search(r'^[a-zA-Z0-9\+\/]*={0,3}$', local_var_params['page']): # noqa: E501
1616
- raise ApiValueError("Invalid value for parameter `page` when calling `list_compliance_runs`, must conform to the pattern `/^[a-zA-Z0-9\+\/]*={0,3}$/`") # noqa: E501
1617
- if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 5000: # noqa: E501
1618
- raise ApiValueError("Invalid value for parameter `limit` when calling `list_compliance_runs`, must be a value less than or equal to `5000`") # noqa: E501
1619
- if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1: # noqa: E501
1620
- raise ApiValueError("Invalid value for parameter `limit` when calling `list_compliance_runs`, must be a value greater than or equal to `1`") # noqa: E501
1621
- if self.api_client.client_side_validation and ('filter' in local_var_params and # noqa: E501
1622
- len(local_var_params['filter']) > 16384): # noqa: E501
1623
- raise ApiValueError("Invalid value for parameter `filter` when calling `list_compliance_runs`, length must be less than or equal to `16384`") # noqa: E501
1624
- if self.api_client.client_side_validation and ('filter' in local_var_params and # noqa: E501
1625
- len(local_var_params['filter']) < 0): # noqa: E501
1626
- raise ApiValueError("Invalid value for parameter `filter` when calling `list_compliance_runs`, length must be greater than or equal to `0`") # noqa: E501
1627
- if self.api_client.client_side_validation and 'filter' in local_var_params and not re.search(r'^[\s\S]*$', local_var_params['filter']): # noqa: E501
1628
- raise ApiValueError("Invalid value for parameter `filter` when calling `list_compliance_runs`, must conform to the pattern `/^[\s\S]*$/`") # noqa: E501
1629
- collection_formats = {}
1630
-
1631
- path_params = {}
1632
-
1633
- query_params = []
1634
- if 'as_at' in local_var_params and local_var_params['as_at'] is not None: # noqa: E501
1635
- query_params.append(('asAt', local_var_params['as_at'])) # noqa: E501
1636
- if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501
1637
- query_params.append(('page', local_var_params['page'])) # noqa: E501
1638
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
1639
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
1640
- if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501
1641
- query_params.append(('filter', local_var_params['filter'])) # noqa: E501
1642
- if 'sort_by' in local_var_params and local_var_params['sort_by'] is not None: # noqa: E501
1643
- query_params.append(('sortBy', local_var_params['sort_by'])) # noqa: E501
1644
- collection_formats['sortBy'] = 'multi' # noqa: E501
1645
-
1646
- header_params = dict(local_var_params.get('_headers', {}))
1647
-
1648
- form_params = []
1649
- local_var_files = {}
1650
-
1651
- body_params = None
1652
- # HTTP header `Accept`
1653
- header_params['Accept'] = self.api_client.select_header_accept(
1213
+ _params[_key] = _val
1214
+ del _params['kwargs']
1215
+
1216
+ _collection_formats = {}
1217
+
1218
+ # process the path parameters
1219
+ _path_params = {}
1220
+
1221
+ # process the query parameters
1222
+ _query_params = []
1223
+ if _params.get('as_at') is not None: # noqa: E501
1224
+ if isinstance(_params['as_at'], datetime):
1225
+ _query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
1226
+ else:
1227
+ _query_params.append(('asAt', _params['as_at']))
1228
+
1229
+ if _params.get('page') is not None: # noqa: E501
1230
+ _query_params.append(('page', _params['page']))
1231
+
1232
+ if _params.get('limit') is not None: # noqa: E501
1233
+ _query_params.append(('limit', _params['limit']))
1234
+
1235
+ if _params.get('filter') is not None: # noqa: E501
1236
+ _query_params.append(('filter', _params['filter']))
1237
+
1238
+ if _params.get('sort_by') is not None: # noqa: E501
1239
+ _query_params.append(('sortBy', _params['sort_by']))
1240
+ _collection_formats['sortBy'] = 'multi'
1241
+
1242
+ # process the header parameters
1243
+ _header_params = dict(_params.get('_headers', {}))
1244
+ # process the form parameters
1245
+ _form_params = []
1246
+ _files = {}
1247
+ # process the body parameter
1248
+ _body_params = None
1249
+ # set the HTTP header `Accept`
1250
+ _header_params['Accept'] = self.api_client.select_header_accept(
1654
1251
  ['text/plain', 'application/json', 'text/json']) # noqa: E501
1655
1252
 
1656
- header_params['Accept-Encoding'] = "gzip, deflate, br"
1657
-
1658
-
1659
- # set the LUSID header
1660
- header_params['X-LUSID-SDK-Language'] = 'Python'
1661
- header_params['X-LUSID-SDK-Version'] = '1.1.257'
1253
+ # authentication setting
1254
+ _auth_settings = ['oauth2'] # noqa: E501
1662
1255
 
1663
- # Authentication setting
1664
- auth_settings = ['oauth2'] # noqa: E501
1665
-
1666
- response_types_map = {
1667
- 200: "PagedResourceListOfComplianceRunInfoV2",
1668
- 400: "LusidValidationProblemDetails",
1256
+ _response_types_map = {
1257
+ '200': "PagedResourceListOfComplianceRunInfoV2",
1258
+ '400': "LusidValidationProblemDetails",
1669
1259
  }
1670
1260
 
1671
1261
  return self.api_client.call_api(
1672
1262
  '/api/compliance/runs', 'GET',
1673
- path_params,
1674
- query_params,
1675
- header_params,
1676
- body=body_params,
1677
- post_params=form_params,
1678
- files=local_var_files,
1679
- response_types_map=response_types_map,
1680
- auth_settings=auth_settings,
1681
- async_req=local_var_params.get('async_req'),
1682
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1683
- _preload_content=local_var_params.get('_preload_content', True),
1684
- _request_timeout=local_var_params.get('_request_timeout'),
1685
- collection_formats=collection_formats,
1686
- _request_auth=local_var_params.get('_request_auth'))
1687
-
1688
- def list_compliance_templates(self, **kwargs): # noqa: E501
1263
+ _path_params,
1264
+ _query_params,
1265
+ _header_params,
1266
+ body=_body_params,
1267
+ post_params=_form_params,
1268
+ files=_files,
1269
+ response_types_map=_response_types_map,
1270
+ auth_settings=_auth_settings,
1271
+ async_req=_params.get('async_req'),
1272
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1273
+ _preload_content=_params.get('_preload_content', True),
1274
+ _request_timeout=_params.get('_request_timeout'),
1275
+ collection_formats=_collection_formats,
1276
+ _request_auth=_params.get('_request_auth'))
1277
+
1278
+ @overload
1279
+ async def list_compliance_templates(self, as_at : Annotated[Optional[datetime], Field(description="Optional. The time at which to get results from. Default : latest")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="Optional. The pagination token to use to continue listing compliance runs from a previous call to list compliance runs. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="Optional. When paginating, limit the number of returned results to this many.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Optional. Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, **kwargs) -> PagedResourceListOfComplianceTemplate: # noqa: E501
1280
+ ...
1281
+
1282
+ @overload
1283
+ def list_compliance_templates(self, as_at : Annotated[Optional[datetime], Field(description="Optional. The time at which to get results from. Default : latest")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="Optional. The pagination token to use to continue listing compliance runs from a previous call to list compliance runs. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="Optional. When paginating, limit the number of returned results to this many.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Optional. Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, async_req: Optional[bool]=True, **kwargs) -> PagedResourceListOfComplianceTemplate: # noqa: E501
1284
+ ...
1285
+
1286
+ @validate_arguments
1287
+ def list_compliance_templates(self, as_at : Annotated[Optional[datetime], Field(description="Optional. The time at which to get results from. Default : latest")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="Optional. The pagination token to use to continue listing compliance runs from a previous call to list compliance runs. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="Optional. When paginating, limit the number of returned results to this many.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Optional. Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[PagedResourceListOfComplianceTemplate, Awaitable[PagedResourceListOfComplianceTemplate]]: # noqa: E501
1689
1288
  """[EARLY ACCESS] ListComplianceTemplates: List compliance templates. # noqa: E501
1690
1289
 
1691
1290
  Use this endpoint to fetch a list of all available compliance template ids, or a subset using a filter. # noqa: E501
1692
1291
  This method makes a synchronous HTTP request by default. To make an
1693
1292
  asynchronous HTTP request, please pass async_req=True
1694
1293
 
1695
- >>> thread = api.list_compliance_templates(async_req=True)
1294
+ >>> thread = api.list_compliance_templates(as_at, page, limit, filter, async_req=True)
1696
1295
  >>> result = thread.get()
1697
1296
 
1698
1297
  :param as_at: Optional. The time at which to get results from. Default : latest
@@ -1705,30 +1304,32 @@ class ComplianceApi(object):
1705
1304
  :type filter: str
1706
1305
  :param async_req: Whether to execute the request asynchronously.
1707
1306
  :type async_req: bool, optional
1708
- :param _preload_content: if False, the urllib3.HTTPResponse object will
1709
- be returned without reading/decoding response
1710
- data. Default is True.
1711
- :type _preload_content: bool, optional
1712
- :param _request_timeout: timeout setting for this request. If one
1713
- number provided, it will be total request
1714
- timeout. It can also be a pair (tuple) of
1715
- (connection, read) timeouts.
1307
+ :param _request_timeout: timeout setting for this request.
1308
+ If one number provided, it will be total request
1309
+ timeout. It can also be a pair (tuple) of
1310
+ (connection, read) timeouts.
1716
1311
  :return: Returns the result object.
1717
1312
  If the method is called asynchronously,
1718
1313
  returns the request thread.
1719
1314
  :rtype: PagedResourceListOfComplianceTemplate
1720
1315
  """
1721
1316
  kwargs['_return_http_data_only'] = True
1722
- return self.list_compliance_templates_with_http_info(**kwargs) # noqa: E501
1723
-
1724
- def list_compliance_templates_with_http_info(self, **kwargs): # noqa: E501
1317
+ if '_preload_content' in kwargs:
1318
+ message = "Error! Please call the list_compliance_templates_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
1319
+ raise ValueError(message)
1320
+ if async_req is not None:
1321
+ kwargs['async_req'] = async_req
1322
+ return self.list_compliance_templates_with_http_info(as_at, page, limit, filter, **kwargs) # noqa: E501
1323
+
1324
+ @validate_arguments
1325
+ def list_compliance_templates_with_http_info(self, as_at : Annotated[Optional[datetime], Field(description="Optional. The time at which to get results from. Default : latest")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="Optional. The pagination token to use to continue listing compliance runs from a previous call to list compliance runs. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="Optional. When paginating, limit the number of returned results to this many.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Optional. Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, **kwargs) -> ApiResponse: # noqa: E501
1725
1326
  """[EARLY ACCESS] ListComplianceTemplates: List compliance templates. # noqa: E501
1726
1327
 
1727
1328
  Use this endpoint to fetch a list of all available compliance template ids, or a subset using a filter. # noqa: E501
1728
1329
  This method makes a synchronous HTTP request by default. To make an
1729
1330
  asynchronous HTTP request, please pass async_req=True
1730
1331
 
1731
- >>> thread = api.list_compliance_templates_with_http_info(async_req=True)
1332
+ >>> thread = api.list_compliance_templates_with_http_info(as_at, page, limit, filter, async_req=True)
1732
1333
  >>> result = thread.get()
1733
1334
 
1734
1335
  :param as_at: Optional. The time at which to get results from. Default : latest
@@ -1741,13 +1342,14 @@ class ComplianceApi(object):
1741
1342
  :type filter: str
1742
1343
  :param async_req: Whether to execute the request asynchronously.
1743
1344
  :type async_req: bool, optional
1744
- :param _return_http_data_only: response data without head status code
1745
- and headers
1746
- :type _return_http_data_only: bool, optional
1747
- :param _preload_content: if False, the urllib3.HTTPResponse object will
1748
- be returned without reading/decoding response
1749
- data. Default is True.
1345
+ :param _preload_content: if False, the ApiResponse.data will
1346
+ be set to none and raw_data will store the
1347
+ HTTP response body without reading/decoding.
1348
+ Default is True.
1750
1349
  :type _preload_content: bool, optional
1350
+ :param _return_http_data_only: response data instead of ApiResponse
1351
+ object with status code, headers, etc
1352
+ :type _return_http_data_only: bool, optional
1751
1353
  :param _request_timeout: timeout setting for this request. If one
1752
1354
  number provided, it will be total request
1753
1355
  timeout. It can also be a pair (tuple) of
@@ -1756,117 +1358,111 @@ class ComplianceApi(object):
1756
1358
  request; this effectively ignores the authentication
1757
1359
  in the spec for a single request.
1758
1360
  :type _request_auth: dict, optional
1759
- :return: Returns the result object, the HTTP status code, and the headers.
1361
+ :type _content_type: string, optional: force content-type for the request
1362
+ :return: Returns the result object.
1760
1363
  If the method is called asynchronously,
1761
1364
  returns the request thread.
1762
- :rtype: (PagedResourceListOfComplianceTemplate, int, HTTPHeaderDict)
1365
+ :rtype: tuple(PagedResourceListOfComplianceTemplate, status_code(int), headers(HTTPHeaderDict))
1763
1366
  """
1764
1367
 
1765
- local_var_params = locals()
1368
+ _params = locals()
1766
1369
 
1767
- all_params = [
1370
+ _all_params = [
1768
1371
  'as_at',
1769
1372
  'page',
1770
1373
  'limit',
1771
1374
  'filter'
1772
1375
  ]
1773
- all_params.extend(
1376
+ _all_params.extend(
1774
1377
  [
1775
1378
  'async_req',
1776
1379
  '_return_http_data_only',
1777
1380
  '_preload_content',
1778
1381
  '_request_timeout',
1779
1382
  '_request_auth',
1383
+ '_content_type',
1780
1384
  '_headers'
1781
1385
  ]
1782
1386
  )
1783
1387
 
1784
- for key, val in six.iteritems(local_var_params['kwargs']):
1785
- if key not in all_params:
1388
+ # validate the arguments
1389
+ for _key, _val in _params['kwargs'].items():
1390
+ if _key not in _all_params:
1786
1391
  raise ApiTypeError(
1787
1392
  "Got an unexpected keyword argument '%s'"
1788
- " to method list_compliance_templates" % key
1393
+ " to method list_compliance_templates" % _key
1789
1394
  )
1790
- local_var_params[key] = val
1791
- del local_var_params['kwargs']
1792
-
1793
- if self.api_client.client_side_validation and ('page' in local_var_params and # noqa: E501
1794
- len(local_var_params['page']) > 500): # noqa: E501
1795
- raise ApiValueError("Invalid value for parameter `page` when calling `list_compliance_templates`, length must be less than or equal to `500`") # noqa: E501
1796
- if self.api_client.client_side_validation and ('page' in local_var_params and # noqa: E501
1797
- len(local_var_params['page']) < 1): # noqa: E501
1798
- raise ApiValueError("Invalid value for parameter `page` when calling `list_compliance_templates`, length must be greater than or equal to `1`") # noqa: E501
1799
- if self.api_client.client_side_validation and 'page' in local_var_params and not re.search(r'^[a-zA-Z0-9\+\/]*={0,3}$', local_var_params['page']): # noqa: E501
1800
- raise ApiValueError("Invalid value for parameter `page` when calling `list_compliance_templates`, must conform to the pattern `/^[a-zA-Z0-9\+\/]*={0,3}$/`") # noqa: E501
1801
- if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 5000: # noqa: E501
1802
- raise ApiValueError("Invalid value for parameter `limit` when calling `list_compliance_templates`, must be a value less than or equal to `5000`") # noqa: E501
1803
- if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1: # noqa: E501
1804
- raise ApiValueError("Invalid value for parameter `limit` when calling `list_compliance_templates`, must be a value greater than or equal to `1`") # noqa: E501
1805
- if self.api_client.client_side_validation and ('filter' in local_var_params and # noqa: E501
1806
- len(local_var_params['filter']) > 16384): # noqa: E501
1807
- raise ApiValueError("Invalid value for parameter `filter` when calling `list_compliance_templates`, length must be less than or equal to `16384`") # noqa: E501
1808
- if self.api_client.client_side_validation and ('filter' in local_var_params and # noqa: E501
1809
- len(local_var_params['filter']) < 0): # noqa: E501
1810
- raise ApiValueError("Invalid value for parameter `filter` when calling `list_compliance_templates`, length must be greater than or equal to `0`") # noqa: E501
1811
- if self.api_client.client_side_validation and 'filter' in local_var_params and not re.search(r'^[\s\S]*$', local_var_params['filter']): # noqa: E501
1812
- raise ApiValueError("Invalid value for parameter `filter` when calling `list_compliance_templates`, must conform to the pattern `/^[\s\S]*$/`") # noqa: E501
1813
- collection_formats = {}
1814
-
1815
- path_params = {}
1816
-
1817
- query_params = []
1818
- if 'as_at' in local_var_params and local_var_params['as_at'] is not None: # noqa: E501
1819
- query_params.append(('asAt', local_var_params['as_at'])) # noqa: E501
1820
- if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501
1821
- query_params.append(('page', local_var_params['page'])) # noqa: E501
1822
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
1823
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
1824
- if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501
1825
- query_params.append(('filter', local_var_params['filter'])) # noqa: E501
1826
-
1827
- header_params = dict(local_var_params.get('_headers', {}))
1828
-
1829
- form_params = []
1830
- local_var_files = {}
1831
-
1832
- body_params = None
1833
- # HTTP header `Accept`
1834
- header_params['Accept'] = self.api_client.select_header_accept(
1395
+ _params[_key] = _val
1396
+ del _params['kwargs']
1397
+
1398
+ _collection_formats = {}
1399
+
1400
+ # process the path parameters
1401
+ _path_params = {}
1402
+
1403
+ # process the query parameters
1404
+ _query_params = []
1405
+ if _params.get('as_at') is not None: # noqa: E501
1406
+ if isinstance(_params['as_at'], datetime):
1407
+ _query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
1408
+ else:
1409
+ _query_params.append(('asAt', _params['as_at']))
1410
+
1411
+ if _params.get('page') is not None: # noqa: E501
1412
+ _query_params.append(('page', _params['page']))
1413
+
1414
+ if _params.get('limit') is not None: # noqa: E501
1415
+ _query_params.append(('limit', _params['limit']))
1416
+
1417
+ if _params.get('filter') is not None: # noqa: E501
1418
+ _query_params.append(('filter', _params['filter']))
1419
+
1420
+ # process the header parameters
1421
+ _header_params = dict(_params.get('_headers', {}))
1422
+ # process the form parameters
1423
+ _form_params = []
1424
+ _files = {}
1425
+ # process the body parameter
1426
+ _body_params = None
1427
+ # set the HTTP header `Accept`
1428
+ _header_params['Accept'] = self.api_client.select_header_accept(
1835
1429
  ['text/plain', 'application/json', 'text/json']) # noqa: E501
1836
1430
 
1837
- header_params['Accept-Encoding'] = "gzip, deflate, br"
1838
-
1431
+ # authentication setting
1432
+ _auth_settings = ['oauth2'] # noqa: E501
1839
1433
 
1840
- # set the LUSID header
1841
- header_params['X-LUSID-SDK-Language'] = 'Python'
1842
- header_params['X-LUSID-SDK-Version'] = '1.1.257'
1843
-
1844
- # Authentication setting
1845
- auth_settings = ['oauth2'] # noqa: E501
1846
-
1847
- response_types_map = {
1848
- 200: "PagedResourceListOfComplianceTemplate",
1849
- 400: "LusidValidationProblemDetails",
1434
+ _response_types_map = {
1435
+ '200': "PagedResourceListOfComplianceTemplate",
1436
+ '400': "LusidValidationProblemDetails",
1850
1437
  }
1851
1438
 
1852
1439
  return self.api_client.call_api(
1853
1440
  '/api/compliance/templates', 'GET',
1854
- path_params,
1855
- query_params,
1856
- header_params,
1857
- body=body_params,
1858
- post_params=form_params,
1859
- files=local_var_files,
1860
- response_types_map=response_types_map,
1861
- auth_settings=auth_settings,
1862
- async_req=local_var_params.get('async_req'),
1863
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1864
- _preload_content=local_var_params.get('_preload_content', True),
1865
- _request_timeout=local_var_params.get('_request_timeout'),
1866
- collection_formats=collection_formats,
1867
- _request_auth=local_var_params.get('_request_auth'))
1868
-
1869
- def run_compliance(self, run_scope, rule_scope, is_pre_trade, recipe_id_scope, recipe_id_code, **kwargs): # noqa: E501
1441
+ _path_params,
1442
+ _query_params,
1443
+ _header_params,
1444
+ body=_body_params,
1445
+ post_params=_form_params,
1446
+ files=_files,
1447
+ response_types_map=_response_types_map,
1448
+ auth_settings=_auth_settings,
1449
+ async_req=_params.get('async_req'),
1450
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1451
+ _preload_content=_params.get('_preload_content', True),
1452
+ _request_timeout=_params.get('_request_timeout'),
1453
+ collection_formats=_collection_formats,
1454
+ _request_auth=_params.get('_request_auth'))
1455
+
1456
+ @overload
1457
+ async def run_compliance(self, run_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Scope to save the run results in.")], rule_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Scope from which to select rules to be run.")], is_pre_trade : Annotated[StrictBool, Field(..., description="Required: Boolean flag indicating if a run should be PreTrade (Including orders). For post-trade only, set to false")], recipe_id_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: the scope of the recipe to be used")], recipe_id_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: The code of the recipe to be used. If left blank, the default recipe will be used.")], **kwargs) -> ComplianceRunInfoV2: # noqa: E501
1458
+ ...
1459
+
1460
+ @overload
1461
+ def run_compliance(self, run_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Scope to save the run results in.")], rule_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Scope from which to select rules to be run.")], is_pre_trade : Annotated[StrictBool, Field(..., description="Required: Boolean flag indicating if a run should be PreTrade (Including orders). For post-trade only, set to false")], recipe_id_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: the scope of the recipe to be used")], recipe_id_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: The code of the recipe to be used. If left blank, the default recipe will be used.")], async_req: Optional[bool]=True, **kwargs) -> ComplianceRunInfoV2: # noqa: E501
1462
+ ...
1463
+
1464
+ @validate_arguments
1465
+ def run_compliance(self, run_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Scope to save the run results in.")], rule_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Scope from which to select rules to be run.")], is_pre_trade : Annotated[StrictBool, Field(..., description="Required: Boolean flag indicating if a run should be PreTrade (Including orders). For post-trade only, set to false")], recipe_id_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: the scope of the recipe to be used")], recipe_id_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: The code of the recipe to be used. If left blank, the default recipe will be used.")], async_req: Optional[bool]=None, **kwargs) -> Union[ComplianceRunInfoV2, Awaitable[ComplianceRunInfoV2]]: # noqa: E501
1870
1466
  """[EARLY ACCESS] RunCompliance: Run a compliance check. # noqa: E501
1871
1467
 
1872
1468
  Use this endpoint to run a compliance check using rules from a specific scope. # noqa: E501
@@ -1888,23 +1484,25 @@ class ComplianceApi(object):
1888
1484
  :type recipe_id_code: str
1889
1485
  :param async_req: Whether to execute the request asynchronously.
1890
1486
  :type async_req: bool, optional
1891
- :param _preload_content: if False, the urllib3.HTTPResponse object will
1892
- be returned without reading/decoding response
1893
- data. Default is True.
1894
- :type _preload_content: bool, optional
1895
- :param _request_timeout: timeout setting for this request. If one
1896
- number provided, it will be total request
1897
- timeout. It can also be a pair (tuple) of
1898
- (connection, read) timeouts.
1487
+ :param _request_timeout: timeout setting for this request.
1488
+ If one number provided, it will be total request
1489
+ timeout. It can also be a pair (tuple) of
1490
+ (connection, read) timeouts.
1899
1491
  :return: Returns the result object.
1900
1492
  If the method is called asynchronously,
1901
1493
  returns the request thread.
1902
1494
  :rtype: ComplianceRunInfoV2
1903
1495
  """
1904
1496
  kwargs['_return_http_data_only'] = True
1497
+ if '_preload_content' in kwargs:
1498
+ message = "Error! Please call the run_compliance_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
1499
+ raise ValueError(message)
1500
+ if async_req is not None:
1501
+ kwargs['async_req'] = async_req
1905
1502
  return self.run_compliance_with_http_info(run_scope, rule_scope, is_pre_trade, recipe_id_scope, recipe_id_code, **kwargs) # noqa: E501
1906
1503
 
1907
- def run_compliance_with_http_info(self, run_scope, rule_scope, is_pre_trade, recipe_id_scope, recipe_id_code, **kwargs): # noqa: E501
1504
+ @validate_arguments
1505
+ def run_compliance_with_http_info(self, run_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Scope to save the run results in.")], rule_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: Scope from which to select rules to be run.")], is_pre_trade : Annotated[StrictBool, Field(..., description="Required: Boolean flag indicating if a run should be PreTrade (Including orders). For post-trade only, set to false")], recipe_id_scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: the scope of the recipe to be used")], recipe_id_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Required: The code of the recipe to be used. If left blank, the default recipe will be used.")], **kwargs) -> ApiResponse: # noqa: E501
1908
1506
  """[EARLY ACCESS] RunCompliance: Run a compliance check. # noqa: E501
1909
1507
 
1910
1508
  Use this endpoint to run a compliance check using rules from a specific scope. # noqa: E501
@@ -1926,13 +1524,14 @@ class ComplianceApi(object):
1926
1524
  :type recipe_id_code: str
1927
1525
  :param async_req: Whether to execute the request asynchronously.
1928
1526
  :type async_req: bool, optional
1929
- :param _return_http_data_only: response data without head status code
1930
- and headers
1931
- :type _return_http_data_only: bool, optional
1932
- :param _preload_content: if False, the urllib3.HTTPResponse object will
1933
- be returned without reading/decoding response
1934
- data. Default is True.
1527
+ :param _preload_content: if False, the ApiResponse.data will
1528
+ be set to none and raw_data will store the
1529
+ HTTP response body without reading/decoding.
1530
+ Default is True.
1935
1531
  :type _preload_content: bool, optional
1532
+ :param _return_http_data_only: response data instead of ApiResponse
1533
+ object with status code, headers, etc
1534
+ :type _return_http_data_only: bool, optional
1936
1535
  :param _request_timeout: timeout setting for this request. If one
1937
1536
  number provided, it will be total request
1938
1537
  timeout. It can also be a pair (tuple) of
@@ -1941,606 +1540,165 @@ class ComplianceApi(object):
1941
1540
  request; this effectively ignores the authentication
1942
1541
  in the spec for a single request.
1943
1542
  :type _request_auth: dict, optional
1944
- :return: Returns the result object, the HTTP status code, and the headers.
1543
+ :type _content_type: string, optional: force content-type for the request
1544
+ :return: Returns the result object.
1945
1545
  If the method is called asynchronously,
1946
1546
  returns the request thread.
1947
- :rtype: (ComplianceRunInfoV2, int, HTTPHeaderDict)
1547
+ :rtype: tuple(ComplianceRunInfoV2, status_code(int), headers(HTTPHeaderDict))
1948
1548
  """
1949
1549
 
1950
- local_var_params = locals()
1550
+ _params = locals()
1951
1551
 
1952
- all_params = [
1552
+ _all_params = [
1953
1553
  'run_scope',
1954
1554
  'rule_scope',
1955
1555
  'is_pre_trade',
1956
1556
  'recipe_id_scope',
1957
1557
  'recipe_id_code'
1958
1558
  ]
1959
- all_params.extend(
1559
+ _all_params.extend(
1960
1560
  [
1961
1561
  'async_req',
1962
1562
  '_return_http_data_only',
1963
1563
  '_preload_content',
1964
1564
  '_request_timeout',
1965
1565
  '_request_auth',
1566
+ '_content_type',
1966
1567
  '_headers'
1967
1568
  ]
1968
1569
  )
1969
1570
 
1970
- for key, val in six.iteritems(local_var_params['kwargs']):
1971
- if key not in all_params:
1571
+ # validate the arguments
1572
+ for _key, _val in _params['kwargs'].items():
1573
+ if _key not in _all_params:
1972
1574
  raise ApiTypeError(
1973
1575
  "Got an unexpected keyword argument '%s'"
1974
- " to method run_compliance" % key
1576
+ " to method run_compliance" % _key
1975
1577
  )
1976
- local_var_params[key] = val
1977
- del local_var_params['kwargs']
1978
- # verify the required parameter 'run_scope' is set
1979
- if self.api_client.client_side_validation and ('run_scope' not in local_var_params or # noqa: E501
1980
- local_var_params['run_scope'] is None): # noqa: E501
1981
- raise ApiValueError("Missing the required parameter `run_scope` when calling `run_compliance`") # noqa: E501
1982
- # verify the required parameter 'rule_scope' is set
1983
- if self.api_client.client_side_validation and ('rule_scope' not in local_var_params or # noqa: E501
1984
- local_var_params['rule_scope'] is None): # noqa: E501
1985
- raise ApiValueError("Missing the required parameter `rule_scope` when calling `run_compliance`") # noqa: E501
1986
- # verify the required parameter 'is_pre_trade' is set
1987
- if self.api_client.client_side_validation and ('is_pre_trade' not in local_var_params or # noqa: E501
1988
- local_var_params['is_pre_trade'] is None): # noqa: E501
1989
- raise ApiValueError("Missing the required parameter `is_pre_trade` when calling `run_compliance`") # noqa: E501
1990
- # verify the required parameter 'recipe_id_scope' is set
1991
- if self.api_client.client_side_validation and ('recipe_id_scope' not in local_var_params or # noqa: E501
1992
- local_var_params['recipe_id_scope'] is None): # noqa: E501
1993
- raise ApiValueError("Missing the required parameter `recipe_id_scope` when calling `run_compliance`") # noqa: E501
1994
- # verify the required parameter 'recipe_id_code' is set
1995
- if self.api_client.client_side_validation and ('recipe_id_code' not in local_var_params or # noqa: E501
1996
- local_var_params['recipe_id_code'] is None): # noqa: E501
1997
- raise ApiValueError("Missing the required parameter `recipe_id_code` when calling `run_compliance`") # noqa: E501
1998
-
1999
- if self.api_client.client_side_validation and ('run_scope' in local_var_params and # noqa: E501
2000
- len(local_var_params['run_scope']) > 64): # noqa: E501
2001
- raise ApiValueError("Invalid value for parameter `run_scope` when calling `run_compliance`, length must be less than or equal to `64`") # noqa: E501
2002
- if self.api_client.client_side_validation and ('run_scope' in local_var_params and # noqa: E501
2003
- len(local_var_params['run_scope']) < 1): # noqa: E501
2004
- raise ApiValueError("Invalid value for parameter `run_scope` when calling `run_compliance`, length must be greater than or equal to `1`") # noqa: E501
2005
- if self.api_client.client_side_validation and 'run_scope' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['run_scope']): # noqa: E501
2006
- raise ApiValueError("Invalid value for parameter `run_scope` when calling `run_compliance`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
2007
- if self.api_client.client_side_validation and ('rule_scope' in local_var_params and # noqa: E501
2008
- len(local_var_params['rule_scope']) > 64): # noqa: E501
2009
- raise ApiValueError("Invalid value for parameter `rule_scope` when calling `run_compliance`, length must be less than or equal to `64`") # noqa: E501
2010
- if self.api_client.client_side_validation and ('rule_scope' in local_var_params and # noqa: E501
2011
- len(local_var_params['rule_scope']) < 1): # noqa: E501
2012
- raise ApiValueError("Invalid value for parameter `rule_scope` when calling `run_compliance`, length must be greater than or equal to `1`") # noqa: E501
2013
- if self.api_client.client_side_validation and 'rule_scope' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['rule_scope']): # noqa: E501
2014
- raise ApiValueError("Invalid value for parameter `rule_scope` when calling `run_compliance`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
2015
- if self.api_client.client_side_validation and ('recipe_id_scope' in local_var_params and # noqa: E501
2016
- len(local_var_params['recipe_id_scope']) > 64): # noqa: E501
2017
- raise ApiValueError("Invalid value for parameter `recipe_id_scope` when calling `run_compliance`, length must be less than or equal to `64`") # noqa: E501
2018
- if self.api_client.client_side_validation and ('recipe_id_scope' in local_var_params and # noqa: E501
2019
- len(local_var_params['recipe_id_scope']) < 1): # noqa: E501
2020
- raise ApiValueError("Invalid value for parameter `recipe_id_scope` when calling `run_compliance`, length must be greater than or equal to `1`") # noqa: E501
2021
- if self.api_client.client_side_validation and 'recipe_id_scope' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['recipe_id_scope']): # noqa: E501
2022
- raise ApiValueError("Invalid value for parameter `recipe_id_scope` when calling `run_compliance`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
2023
- if self.api_client.client_side_validation and ('recipe_id_code' in local_var_params and # noqa: E501
2024
- len(local_var_params['recipe_id_code']) > 64): # noqa: E501
2025
- raise ApiValueError("Invalid value for parameter `recipe_id_code` when calling `run_compliance`, length must be less than or equal to `64`") # noqa: E501
2026
- if self.api_client.client_side_validation and ('recipe_id_code' in local_var_params and # noqa: E501
2027
- len(local_var_params['recipe_id_code']) < 1): # noqa: E501
2028
- raise ApiValueError("Invalid value for parameter `recipe_id_code` when calling `run_compliance`, length must be greater than or equal to `1`") # noqa: E501
2029
- if self.api_client.client_side_validation and 'recipe_id_code' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['recipe_id_code']): # noqa: E501
2030
- raise ApiValueError("Invalid value for parameter `recipe_id_code` when calling `run_compliance`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
2031
- collection_formats = {}
2032
-
2033
- path_params = {}
2034
-
2035
- query_params = []
2036
- if 'run_scope' in local_var_params and local_var_params['run_scope'] is not None: # noqa: E501
2037
- query_params.append(('runScope', local_var_params['run_scope'])) # noqa: E501
2038
- if 'rule_scope' in local_var_params and local_var_params['rule_scope'] is not None: # noqa: E501
2039
- query_params.append(('ruleScope', local_var_params['rule_scope'])) # noqa: E501
2040
- if 'is_pre_trade' in local_var_params and local_var_params['is_pre_trade'] is not None: # noqa: E501
2041
- query_params.append(('isPreTrade', local_var_params['is_pre_trade'])) # noqa: E501
2042
- if 'recipe_id_scope' in local_var_params and local_var_params['recipe_id_scope'] is not None: # noqa: E501
2043
- query_params.append(('recipeIdScope', local_var_params['recipe_id_scope'])) # noqa: E501
2044
- if 'recipe_id_code' in local_var_params and local_var_params['recipe_id_code'] is not None: # noqa: E501
2045
- query_params.append(('recipeIdCode', local_var_params['recipe_id_code'])) # noqa: E501
2046
-
2047
- header_params = dict(local_var_params.get('_headers', {}))
2048
-
2049
- form_params = []
2050
- local_var_files = {}
2051
-
2052
- body_params = None
2053
- # HTTP header `Accept`
2054
- header_params['Accept'] = self.api_client.select_header_accept(
2055
- ['text/plain', 'application/json', 'text/json']) # noqa: E501
2056
-
2057
- header_params['Accept-Encoding'] = "gzip, deflate, br"
2058
-
2059
-
2060
- # set the LUSID header
2061
- header_params['X-LUSID-SDK-Language'] = 'Python'
2062
- header_params['X-LUSID-SDK-Version'] = '1.1.257'
2063
-
2064
- # Authentication setting
2065
- auth_settings = ['oauth2'] # noqa: E501
2066
-
2067
- response_types_map = {
2068
- 200: "ComplianceRunInfoV2",
2069
- 400: "LusidValidationProblemDetails",
2070
- }
1578
+ _params[_key] = _val
1579
+ del _params['kwargs']
2071
1580
 
2072
- return self.api_client.call_api(
2073
- '/api/compliance/runs', 'POST',
2074
- path_params,
2075
- query_params,
2076
- header_params,
2077
- body=body_params,
2078
- post_params=form_params,
2079
- files=local_var_files,
2080
- response_types_map=response_types_map,
2081
- auth_settings=auth_settings,
2082
- async_req=local_var_params.get('async_req'),
2083
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
2084
- _preload_content=local_var_params.get('_preload_content', True),
2085
- _request_timeout=local_var_params.get('_request_timeout'),
2086
- collection_formats=collection_formats,
2087
- _request_auth=local_var_params.get('_request_auth'))
2088
-
2089
- def run_compliance_preview(self, run_scope, rule_scope, recipe_id_scope, recipe_id_code, **kwargs): # noqa: E501
2090
- """[EARLY ACCESS] RunCompliancePreview: Run a compliance check. # noqa: E501
2091
-
2092
- Use this endpoint to run a compliance check using rules from a specific scope. # noqa: E501
2093
- This method makes a synchronous HTTP request by default. To make an
2094
- asynchronous HTTP request, please pass async_req=True
2095
-
2096
- >>> thread = api.run_compliance_preview(run_scope, rule_scope, recipe_id_scope, recipe_id_code, async_req=True)
2097
- >>> result = thread.get()
2098
-
2099
- :param run_scope: Required: Scope to save the run results in. (required)
2100
- :type run_scope: str
2101
- :param rule_scope: Required: Scope from which to select rules to be run. (required)
2102
- :type rule_scope: str
2103
- :param recipe_id_scope: Required: the scope of the recipe to be used (required)
2104
- :type recipe_id_scope: str
2105
- :param recipe_id_code: Required: The code of the recipe to be used. If left blank, the default recipe will be used. (required)
2106
- :type recipe_id_code: str
2107
- :param compliance_run_configuration: Configuration options for the compliance run.
2108
- :type compliance_run_configuration: ComplianceRunConfiguration
2109
- :param async_req: Whether to execute the request asynchronously.
2110
- :type async_req: bool, optional
2111
- :param _preload_content: if False, the urllib3.HTTPResponse object will
2112
- be returned without reading/decoding response
2113
- data. Default is True.
2114
- :type _preload_content: bool, optional
2115
- :param _request_timeout: timeout setting for this request. If one
2116
- number provided, it will be total request
2117
- timeout. It can also be a pair (tuple) of
2118
- (connection, read) timeouts.
2119
- :return: Returns the result object.
2120
- If the method is called asynchronously,
2121
- returns the request thread.
2122
- :rtype: ComplianceRunInfoV2
2123
- """
2124
- kwargs['_return_http_data_only'] = True
2125
- return self.run_compliance_preview_with_http_info(run_scope, rule_scope, recipe_id_scope, recipe_id_code, **kwargs) # noqa: E501
1581
+ _collection_formats = {}
2126
1582
 
2127
- def run_compliance_preview_with_http_info(self, run_scope, rule_scope, recipe_id_scope, recipe_id_code, **kwargs): # noqa: E501
2128
- """[EARLY ACCESS] RunCompliancePreview: Run a compliance check. # noqa: E501
1583
+ # process the path parameters
1584
+ _path_params = {}
2129
1585
 
2130
- Use this endpoint to run a compliance check using rules from a specific scope. # noqa: E501
2131
- This method makes a synchronous HTTP request by default. To make an
2132
- asynchronous HTTP request, please pass async_req=True
1586
+ # process the query parameters
1587
+ _query_params = []
1588
+ if _params.get('run_scope') is not None: # noqa: E501
1589
+ _query_params.append(('runScope', _params['run_scope']))
2133
1590
 
2134
- >>> thread = api.run_compliance_preview_with_http_info(run_scope, rule_scope, recipe_id_scope, recipe_id_code, async_req=True)
2135
- >>> result = thread.get()
1591
+ if _params.get('rule_scope') is not None: # noqa: E501
1592
+ _query_params.append(('ruleScope', _params['rule_scope']))
2136
1593
 
2137
- :param run_scope: Required: Scope to save the run results in. (required)
2138
- :type run_scope: str
2139
- :param rule_scope: Required: Scope from which to select rules to be run. (required)
2140
- :type rule_scope: str
2141
- :param recipe_id_scope: Required: the scope of the recipe to be used (required)
2142
- :type recipe_id_scope: str
2143
- :param recipe_id_code: Required: The code of the recipe to be used. If left blank, the default recipe will be used. (required)
2144
- :type recipe_id_code: str
2145
- :param compliance_run_configuration: Configuration options for the compliance run.
2146
- :type compliance_run_configuration: ComplianceRunConfiguration
2147
- :param async_req: Whether to execute the request asynchronously.
2148
- :type async_req: bool, optional
2149
- :param _return_http_data_only: response data without head status code
2150
- and headers
2151
- :type _return_http_data_only: bool, optional
2152
- :param _preload_content: if False, the urllib3.HTTPResponse object will
2153
- be returned without reading/decoding response
2154
- data. Default is True.
2155
- :type _preload_content: bool, optional
2156
- :param _request_timeout: timeout setting for this request. If one
2157
- number provided, it will be total request
2158
- timeout. It can also be a pair (tuple) of
2159
- (connection, read) timeouts.
2160
- :param _request_auth: set to override the auth_settings for an a single
2161
- request; this effectively ignores the authentication
2162
- in the spec for a single request.
2163
- :type _request_auth: dict, optional
2164
- :return: Returns the result object, the HTTP status code, and the headers.
2165
- If the method is called asynchronously,
2166
- returns the request thread.
2167
- :rtype: (ComplianceRunInfoV2, int, HTTPHeaderDict)
2168
- """
1594
+ if _params.get('is_pre_trade') is not None: # noqa: E501
1595
+ _query_params.append(('isPreTrade', _params['is_pre_trade']))
2169
1596
 
2170
- local_var_params = locals()
1597
+ if _params.get('recipe_id_scope') is not None: # noqa: E501
1598
+ _query_params.append(('recipeIdScope', _params['recipe_id_scope']))
2171
1599
 
2172
- all_params = [
2173
- 'run_scope',
2174
- 'rule_scope',
2175
- 'recipe_id_scope',
2176
- 'recipe_id_code',
2177
- 'compliance_run_configuration'
2178
- ]
2179
- all_params.extend(
2180
- [
2181
- 'async_req',
2182
- '_return_http_data_only',
2183
- '_preload_content',
2184
- '_request_timeout',
2185
- '_request_auth',
2186
- '_headers'
2187
- ]
2188
- )
1600
+ if _params.get('recipe_id_code') is not None: # noqa: E501
1601
+ _query_params.append(('recipeIdCode', _params['recipe_id_code']))
2189
1602
 
2190
- for key, val in six.iteritems(local_var_params['kwargs']):
2191
- if key not in all_params:
2192
- raise ApiTypeError(
2193
- "Got an unexpected keyword argument '%s'"
2194
- " to method run_compliance_preview" % key
2195
- )
2196
- local_var_params[key] = val
2197
- del local_var_params['kwargs']
2198
- # verify the required parameter 'run_scope' is set
2199
- if self.api_client.client_side_validation and ('run_scope' not in local_var_params or # noqa: E501
2200
- local_var_params['run_scope'] is None): # noqa: E501
2201
- raise ApiValueError("Missing the required parameter `run_scope` when calling `run_compliance_preview`") # noqa: E501
2202
- # verify the required parameter 'rule_scope' is set
2203
- if self.api_client.client_side_validation and ('rule_scope' not in local_var_params or # noqa: E501
2204
- local_var_params['rule_scope'] is None): # noqa: E501
2205
- raise ApiValueError("Missing the required parameter `rule_scope` when calling `run_compliance_preview`") # noqa: E501
2206
- # verify the required parameter 'recipe_id_scope' is set
2207
- if self.api_client.client_side_validation and ('recipe_id_scope' not in local_var_params or # noqa: E501
2208
- local_var_params['recipe_id_scope'] is None): # noqa: E501
2209
- raise ApiValueError("Missing the required parameter `recipe_id_scope` when calling `run_compliance_preview`") # noqa: E501
2210
- # verify the required parameter 'recipe_id_code' is set
2211
- if self.api_client.client_side_validation and ('recipe_id_code' not in local_var_params or # noqa: E501
2212
- local_var_params['recipe_id_code'] is None): # noqa: E501
2213
- raise ApiValueError("Missing the required parameter `recipe_id_code` when calling `run_compliance_preview`") # noqa: E501
2214
-
2215
- if self.api_client.client_side_validation and ('run_scope' in local_var_params and # noqa: E501
2216
- len(local_var_params['run_scope']) > 64): # noqa: E501
2217
- raise ApiValueError("Invalid value for parameter `run_scope` when calling `run_compliance_preview`, length must be less than or equal to `64`") # noqa: E501
2218
- if self.api_client.client_side_validation and ('run_scope' in local_var_params and # noqa: E501
2219
- len(local_var_params['run_scope']) < 1): # noqa: E501
2220
- raise ApiValueError("Invalid value for parameter `run_scope` when calling `run_compliance_preview`, length must be greater than or equal to `1`") # noqa: E501
2221
- if self.api_client.client_side_validation and 'run_scope' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['run_scope']): # noqa: E501
2222
- raise ApiValueError("Invalid value for parameter `run_scope` when calling `run_compliance_preview`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
2223
- if self.api_client.client_side_validation and ('rule_scope' in local_var_params and # noqa: E501
2224
- len(local_var_params['rule_scope']) > 64): # noqa: E501
2225
- raise ApiValueError("Invalid value for parameter `rule_scope` when calling `run_compliance_preview`, length must be less than or equal to `64`") # noqa: E501
2226
- if self.api_client.client_side_validation and ('rule_scope' in local_var_params and # noqa: E501
2227
- len(local_var_params['rule_scope']) < 1): # noqa: E501
2228
- raise ApiValueError("Invalid value for parameter `rule_scope` when calling `run_compliance_preview`, length must be greater than or equal to `1`") # noqa: E501
2229
- if self.api_client.client_side_validation and 'rule_scope' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['rule_scope']): # noqa: E501
2230
- raise ApiValueError("Invalid value for parameter `rule_scope` when calling `run_compliance_preview`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
2231
- if self.api_client.client_side_validation and ('recipe_id_scope' in local_var_params and # noqa: E501
2232
- len(local_var_params['recipe_id_scope']) > 64): # noqa: E501
2233
- raise ApiValueError("Invalid value for parameter `recipe_id_scope` when calling `run_compliance_preview`, length must be less than or equal to `64`") # noqa: E501
2234
- if self.api_client.client_side_validation and ('recipe_id_scope' in local_var_params and # noqa: E501
2235
- len(local_var_params['recipe_id_scope']) < 1): # noqa: E501
2236
- raise ApiValueError("Invalid value for parameter `recipe_id_scope` when calling `run_compliance_preview`, length must be greater than or equal to `1`") # noqa: E501
2237
- if self.api_client.client_side_validation and 'recipe_id_scope' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['recipe_id_scope']): # noqa: E501
2238
- raise ApiValueError("Invalid value for parameter `recipe_id_scope` when calling `run_compliance_preview`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
2239
- if self.api_client.client_side_validation and ('recipe_id_code' in local_var_params and # noqa: E501
2240
- len(local_var_params['recipe_id_code']) > 64): # noqa: E501
2241
- raise ApiValueError("Invalid value for parameter `recipe_id_code` when calling `run_compliance_preview`, length must be less than or equal to `64`") # noqa: E501
2242
- if self.api_client.client_side_validation and ('recipe_id_code' in local_var_params and # noqa: E501
2243
- len(local_var_params['recipe_id_code']) < 1): # noqa: E501
2244
- raise ApiValueError("Invalid value for parameter `recipe_id_code` when calling `run_compliance_preview`, length must be greater than or equal to `1`") # noqa: E501
2245
- if self.api_client.client_side_validation and 'recipe_id_code' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['recipe_id_code']): # noqa: E501
2246
- raise ApiValueError("Invalid value for parameter `recipe_id_code` when calling `run_compliance_preview`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
2247
- collection_formats = {}
2248
-
2249
- path_params = {}
2250
-
2251
- query_params = []
2252
- if 'run_scope' in local_var_params and local_var_params['run_scope'] is not None: # noqa: E501
2253
- query_params.append(('runScope', local_var_params['run_scope'])) # noqa: E501
2254
- if 'rule_scope' in local_var_params and local_var_params['rule_scope'] is not None: # noqa: E501
2255
- query_params.append(('ruleScope', local_var_params['rule_scope'])) # noqa: E501
2256
- if 'recipe_id_scope' in local_var_params and local_var_params['recipe_id_scope'] is not None: # noqa: E501
2257
- query_params.append(('recipeIdScope', local_var_params['recipe_id_scope'])) # noqa: E501
2258
- if 'recipe_id_code' in local_var_params and local_var_params['recipe_id_code'] is not None: # noqa: E501
2259
- query_params.append(('recipeIdCode', local_var_params['recipe_id_code'])) # noqa: E501
2260
-
2261
- header_params = dict(local_var_params.get('_headers', {}))
2262
-
2263
- form_params = []
2264
- local_var_files = {}
2265
-
2266
- body_params = None
2267
- if 'compliance_run_configuration' in local_var_params:
2268
- body_params = local_var_params['compliance_run_configuration']
2269
- # HTTP header `Accept`
2270
- header_params['Accept'] = self.api_client.select_header_accept(
1603
+ # process the header parameters
1604
+ _header_params = dict(_params.get('_headers', {}))
1605
+ # process the form parameters
1606
+ _form_params = []
1607
+ _files = {}
1608
+ # process the body parameter
1609
+ _body_params = None
1610
+ # set the HTTP header `Accept`
1611
+ _header_params['Accept'] = self.api_client.select_header_accept(
2271
1612
  ['text/plain', 'application/json', 'text/json']) # noqa: E501
2272
1613
 
2273
- header_params['Accept-Encoding'] = "gzip, deflate, br"
2274
-
2275
- # HTTP header `Content-Type`
2276
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2277
- ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
1614
+ # authentication setting
1615
+ _auth_settings = ['oauth2'] # noqa: E501
2278
1616
 
2279
- # set the LUSID header
2280
- header_params['X-LUSID-SDK-Language'] = 'Python'
2281
- header_params['X-LUSID-SDK-Version'] = '1.1.257'
2282
-
2283
- # Authentication setting
2284
- auth_settings = ['oauth2'] # noqa: E501
2285
-
2286
- response_types_map = {
2287
- 200: "ComplianceRunInfoV2",
2288
- 400: "LusidValidationProblemDetails",
1617
+ _response_types_map = {
1618
+ '200': "ComplianceRunInfoV2",
1619
+ '400': "LusidValidationProblemDetails",
2289
1620
  }
2290
1621
 
2291
1622
  return self.api_client.call_api(
2292
- '/api/compliance/preview/runs', 'POST',
2293
- path_params,
2294
- query_params,
2295
- header_params,
2296
- body=body_params,
2297
- post_params=form_params,
2298
- files=local_var_files,
2299
- response_types_map=response_types_map,
2300
- auth_settings=auth_settings,
2301
- async_req=local_var_params.get('async_req'),
2302
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
2303
- _preload_content=local_var_params.get('_preload_content', True),
2304
- _request_timeout=local_var_params.get('_request_timeout'),
2305
- collection_formats=collection_formats,
2306
- _request_auth=local_var_params.get('_request_auth'))
2307
-
2308
- def update_compliance_template(self, scope, code, update_compliance_template_request, **kwargs): # noqa: E501
2309
- """[EARLY ACCESS] UpdateComplianceTemplate: Update a ComplianceRuleTemplate # noqa: E501
2310
-
2311
- Use this endpoint to update a specified compliance template. # noqa: E501
2312
- This method makes a synchronous HTTP request by default. To make an
2313
- asynchronous HTTP request, please pass async_req=True
2314
-
2315
- >>> thread = api.update_compliance_template(scope, code, update_compliance_template_request, async_req=True)
2316
- >>> result = thread.get()
2317
-
2318
- :param scope: The scope of the Compliance Rule Template. (required)
2319
- :type scope: str
2320
- :param code: The code of the Compliance Rule Template. (required)
2321
- :type code: str
2322
- :param update_compliance_template_request: Request to update a compliance rule template. (required)
2323
- :type update_compliance_template_request: UpdateComplianceTemplateRequest
2324
- :param async_req: Whether to execute the request asynchronously.
2325
- :type async_req: bool, optional
2326
- :param _preload_content: if False, the urllib3.HTTPResponse object will
2327
- be returned without reading/decoding response
2328
- data. Default is True.
2329
- :type _preload_content: bool, optional
2330
- :param _request_timeout: timeout setting for this request. If one
2331
- number provided, it will be total request
2332
- timeout. It can also be a pair (tuple) of
2333
- (connection, read) timeouts.
2334
- :return: Returns the result object.
2335
- If the method is called asynchronously,
2336
- returns the request thread.
2337
- :rtype: ComplianceRuleTemplate
2338
- """
2339
- kwargs['_return_http_data_only'] = True
2340
- return self.update_compliance_template_with_http_info(scope, code, update_compliance_template_request, **kwargs) # noqa: E501
2341
-
2342
- def update_compliance_template_with_http_info(self, scope, code, update_compliance_template_request, **kwargs): # noqa: E501
2343
- """[EARLY ACCESS] UpdateComplianceTemplate: Update a ComplianceRuleTemplate # noqa: E501
2344
-
2345
- Use this endpoint to update a specified compliance template. # noqa: E501
2346
- This method makes a synchronous HTTP request by default. To make an
2347
- asynchronous HTTP request, please pass async_req=True
2348
-
2349
- >>> thread = api.update_compliance_template_with_http_info(scope, code, update_compliance_template_request, async_req=True)
2350
- >>> result = thread.get()
2351
-
2352
- :param scope: The scope of the Compliance Rule Template. (required)
2353
- :type scope: str
2354
- :param code: The code of the Compliance Rule Template. (required)
2355
- :type code: str
2356
- :param update_compliance_template_request: Request to update a compliance rule template. (required)
2357
- :type update_compliance_template_request: UpdateComplianceTemplateRequest
2358
- :param async_req: Whether to execute the request asynchronously.
2359
- :type async_req: bool, optional
2360
- :param _return_http_data_only: response data without head status code
2361
- and headers
2362
- :type _return_http_data_only: bool, optional
2363
- :param _preload_content: if False, the urllib3.HTTPResponse object will
2364
- be returned without reading/decoding response
2365
- data. Default is True.
2366
- :type _preload_content: bool, optional
2367
- :param _request_timeout: timeout setting for this request. If one
2368
- number provided, it will be total request
2369
- timeout. It can also be a pair (tuple) of
2370
- (connection, read) timeouts.
2371
- :param _request_auth: set to override the auth_settings for an a single
2372
- request; this effectively ignores the authentication
2373
- in the spec for a single request.
2374
- :type _request_auth: dict, optional
2375
- :return: Returns the result object, the HTTP status code, and the headers.
2376
- If the method is called asynchronously,
2377
- returns the request thread.
2378
- :rtype: (ComplianceRuleTemplate, int, HTTPHeaderDict)
2379
- """
2380
-
2381
- local_var_params = locals()
2382
-
2383
- all_params = [
2384
- 'scope',
2385
- 'code',
2386
- 'update_compliance_template_request'
2387
- ]
2388
- all_params.extend(
2389
- [
2390
- 'async_req',
2391
- '_return_http_data_only',
2392
- '_preload_content',
2393
- '_request_timeout',
2394
- '_request_auth',
2395
- '_headers'
2396
- ]
2397
- )
2398
-
2399
- for key, val in six.iteritems(local_var_params['kwargs']):
2400
- if key not in all_params:
2401
- raise ApiTypeError(
2402
- "Got an unexpected keyword argument '%s'"
2403
- " to method update_compliance_template" % key
2404
- )
2405
- local_var_params[key] = val
2406
- del local_var_params['kwargs']
2407
- # verify the required parameter 'scope' is set
2408
- if self.api_client.client_side_validation and ('scope' not in local_var_params or # noqa: E501
2409
- local_var_params['scope'] is None): # noqa: E501
2410
- raise ApiValueError("Missing the required parameter `scope` when calling `update_compliance_template`") # noqa: E501
2411
- # verify the required parameter 'code' is set
2412
- if self.api_client.client_side_validation and ('code' not in local_var_params or # noqa: E501
2413
- local_var_params['code'] is None): # noqa: E501
2414
- raise ApiValueError("Missing the required parameter `code` when calling `update_compliance_template`") # noqa: E501
2415
- # verify the required parameter 'update_compliance_template_request' is set
2416
- if self.api_client.client_side_validation and ('update_compliance_template_request' not in local_var_params or # noqa: E501
2417
- local_var_params['update_compliance_template_request'] is None): # noqa: E501
2418
- raise ApiValueError("Missing the required parameter `update_compliance_template_request` when calling `update_compliance_template`") # noqa: E501
2419
-
2420
- if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
2421
- len(local_var_params['scope']) > 64): # noqa: E501
2422
- raise ApiValueError("Invalid value for parameter `scope` when calling `update_compliance_template`, length must be less than or equal to `64`") # noqa: E501
2423
- if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
2424
- len(local_var_params['scope']) < 1): # noqa: E501
2425
- raise ApiValueError("Invalid value for parameter `scope` when calling `update_compliance_template`, length must be greater than or equal to `1`") # noqa: E501
2426
- if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['scope']): # noqa: E501
2427
- raise ApiValueError("Invalid value for parameter `scope` when calling `update_compliance_template`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
2428
- if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
2429
- len(local_var_params['code']) > 64): # noqa: E501
2430
- raise ApiValueError("Invalid value for parameter `code` when calling `update_compliance_template`, length must be less than or equal to `64`") # noqa: E501
2431
- if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
2432
- len(local_var_params['code']) < 1): # noqa: E501
2433
- raise ApiValueError("Invalid value for parameter `code` when calling `update_compliance_template`, length must be greater than or equal to `1`") # noqa: E501
2434
- if self.api_client.client_side_validation and 'code' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['code']): # noqa: E501
2435
- raise ApiValueError("Invalid value for parameter `code` when calling `update_compliance_template`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
2436
- collection_formats = {}
2437
-
2438
- path_params = {}
2439
- if 'scope' in local_var_params:
2440
- path_params['scope'] = local_var_params['scope'] # noqa: E501
2441
- if 'code' in local_var_params:
2442
- path_params['code'] = local_var_params['code'] # noqa: E501
2443
-
2444
- query_params = []
2445
-
2446
- header_params = dict(local_var_params.get('_headers', {}))
2447
-
2448
- form_params = []
2449
- local_var_files = {}
2450
-
2451
- body_params = None
2452
- if 'update_compliance_template_request' in local_var_params:
2453
- body_params = local_var_params['update_compliance_template_request']
2454
- # HTTP header `Accept`
2455
- header_params['Accept'] = self.api_client.select_header_accept(
2456
- ['text/plain', 'application/json', 'text/json']) # noqa: E501
2457
-
2458
- header_params['Accept-Encoding'] = "gzip, deflate, br"
2459
-
2460
- # HTTP header `Content-Type`
2461
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2462
- ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
2463
-
2464
- # set the LUSID header
2465
- header_params['X-LUSID-SDK-Language'] = 'Python'
2466
- header_params['X-LUSID-SDK-Version'] = '1.1.257'
2467
-
2468
- # Authentication setting
2469
- auth_settings = ['oauth2'] # noqa: E501
2470
-
2471
- response_types_map = {
2472
- 200: "ComplianceRuleTemplate",
2473
- 400: "LusidValidationProblemDetails",
2474
- }
2475
-
2476
- return self.api_client.call_api(
2477
- '/api/compliance/templates/{scope}/{code}', 'PUT',
2478
- path_params,
2479
- query_params,
2480
- header_params,
2481
- body=body_params,
2482
- post_params=form_params,
2483
- files=local_var_files,
2484
- response_types_map=response_types_map,
2485
- auth_settings=auth_settings,
2486
- async_req=local_var_params.get('async_req'),
2487
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
2488
- _preload_content=local_var_params.get('_preload_content', True),
2489
- _request_timeout=local_var_params.get('_request_timeout'),
2490
- collection_formats=collection_formats,
2491
- _request_auth=local_var_params.get('_request_auth'))
2492
-
2493
- def upsert_compliance_rule(self, **kwargs): # noqa: E501
1623
+ '/api/compliance/runs', 'POST',
1624
+ _path_params,
1625
+ _query_params,
1626
+ _header_params,
1627
+ body=_body_params,
1628
+ post_params=_form_params,
1629
+ files=_files,
1630
+ response_types_map=_response_types_map,
1631
+ auth_settings=_auth_settings,
1632
+ async_req=_params.get('async_req'),
1633
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1634
+ _preload_content=_params.get('_preload_content', True),
1635
+ _request_timeout=_params.get('_request_timeout'),
1636
+ collection_formats=_collection_formats,
1637
+ _request_auth=_params.get('_request_auth'))
1638
+
1639
+ @overload
1640
+ async def upsert_compliance_rule(self, upsert_compliance_rule_request : Optional[UpsertComplianceRuleRequest] = None, **kwargs) -> ComplianceRuleResponse: # noqa: E501
1641
+ ...
1642
+
1643
+ @overload
1644
+ def upsert_compliance_rule(self, upsert_compliance_rule_request : Optional[UpsertComplianceRuleRequest] = None, async_req: Optional[bool]=True, **kwargs) -> ComplianceRuleResponse: # noqa: E501
1645
+ ...
1646
+
1647
+ @validate_arguments
1648
+ def upsert_compliance_rule(self, upsert_compliance_rule_request : Optional[UpsertComplianceRuleRequest] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ComplianceRuleResponse, Awaitable[ComplianceRuleResponse]]: # noqa: E501
2494
1649
  """[EARLY ACCESS] UpsertComplianceRule: Upsert a compliance rule. # noqa: E501
2495
1650
 
2496
1651
  Use this endpoint to upsert a single compliance rule. The template and variation specified must already exist, as must the portfolio group. The parameters passed must match those required by the template variation. # noqa: E501
2497
1652
  This method makes a synchronous HTTP request by default. To make an
2498
1653
  asynchronous HTTP request, please pass async_req=True
2499
1654
 
2500
- >>> thread = api.upsert_compliance_rule(async_req=True)
1655
+ >>> thread = api.upsert_compliance_rule(upsert_compliance_rule_request, async_req=True)
2501
1656
  >>> result = thread.get()
2502
1657
 
2503
1658
  :param upsert_compliance_rule_request:
2504
1659
  :type upsert_compliance_rule_request: UpsertComplianceRuleRequest
2505
1660
  :param async_req: Whether to execute the request asynchronously.
2506
1661
  :type async_req: bool, optional
2507
- :param _preload_content: if False, the urllib3.HTTPResponse object will
2508
- be returned without reading/decoding response
2509
- data. Default is True.
2510
- :type _preload_content: bool, optional
2511
- :param _request_timeout: timeout setting for this request. If one
2512
- number provided, it will be total request
2513
- timeout. It can also be a pair (tuple) of
2514
- (connection, read) timeouts.
1662
+ :param _request_timeout: timeout setting for this request.
1663
+ If one number provided, it will be total request
1664
+ timeout. It can also be a pair (tuple) of
1665
+ (connection, read) timeouts.
2515
1666
  :return: Returns the result object.
2516
1667
  If the method is called asynchronously,
2517
1668
  returns the request thread.
2518
1669
  :rtype: ComplianceRuleResponse
2519
1670
  """
2520
1671
  kwargs['_return_http_data_only'] = True
2521
- return self.upsert_compliance_rule_with_http_info(**kwargs) # noqa: E501
2522
-
2523
- def upsert_compliance_rule_with_http_info(self, **kwargs): # noqa: E501
1672
+ if '_preload_content' in kwargs:
1673
+ message = "Error! Please call the upsert_compliance_rule_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
1674
+ raise ValueError(message)
1675
+ if async_req is not None:
1676
+ kwargs['async_req'] = async_req
1677
+ return self.upsert_compliance_rule_with_http_info(upsert_compliance_rule_request, **kwargs) # noqa: E501
1678
+
1679
+ @validate_arguments
1680
+ def upsert_compliance_rule_with_http_info(self, upsert_compliance_rule_request : Optional[UpsertComplianceRuleRequest] = None, **kwargs) -> ApiResponse: # noqa: E501
2524
1681
  """[EARLY ACCESS] UpsertComplianceRule: Upsert a compliance rule. # noqa: E501
2525
1682
 
2526
1683
  Use this endpoint to upsert a single compliance rule. The template and variation specified must already exist, as must the portfolio group. The parameters passed must match those required by the template variation. # noqa: E501
2527
1684
  This method makes a synchronous HTTP request by default. To make an
2528
1685
  asynchronous HTTP request, please pass async_req=True
2529
1686
 
2530
- >>> thread = api.upsert_compliance_rule_with_http_info(async_req=True)
1687
+ >>> thread = api.upsert_compliance_rule_with_http_info(upsert_compliance_rule_request, async_req=True)
2531
1688
  >>> result = thread.get()
2532
1689
 
2533
1690
  :param upsert_compliance_rule_request:
2534
1691
  :type upsert_compliance_rule_request: UpsertComplianceRuleRequest
2535
1692
  :param async_req: Whether to execute the request asynchronously.
2536
1693
  :type async_req: bool, optional
2537
- :param _return_http_data_only: response data without head status code
2538
- and headers
2539
- :type _return_http_data_only: bool, optional
2540
- :param _preload_content: if False, the urllib3.HTTPResponse object will
2541
- be returned without reading/decoding response
2542
- data. Default is True.
1694
+ :param _preload_content: if False, the ApiResponse.data will
1695
+ be set to none and raw_data will store the
1696
+ HTTP response body without reading/decoding.
1697
+ Default is True.
2543
1698
  :type _preload_content: bool, optional
1699
+ :param _return_http_data_only: response data instead of ApiResponse
1700
+ object with status code, headers, etc
1701
+ :type _return_http_data_only: bool, optional
2544
1702
  :param _request_timeout: timeout setting for this request. If one
2545
1703
  number provided, it will be total request
2546
1704
  timeout. It can also be a pair (tuple) of
@@ -2549,141 +1707,156 @@ class ComplianceApi(object):
2549
1707
  request; this effectively ignores the authentication
2550
1708
  in the spec for a single request.
2551
1709
  :type _request_auth: dict, optional
2552
- :return: Returns the result object, the HTTP status code, and the headers.
1710
+ :type _content_type: string, optional: force content-type for the request
1711
+ :return: Returns the result object.
2553
1712
  If the method is called asynchronously,
2554
1713
  returns the request thread.
2555
- :rtype: (ComplianceRuleResponse, int, HTTPHeaderDict)
1714
+ :rtype: tuple(ComplianceRuleResponse, status_code(int), headers(HTTPHeaderDict))
2556
1715
  """
2557
1716
 
2558
- local_var_params = locals()
1717
+ _params = locals()
2559
1718
 
2560
- all_params = [
1719
+ _all_params = [
2561
1720
  'upsert_compliance_rule_request'
2562
1721
  ]
2563
- all_params.extend(
1722
+ _all_params.extend(
2564
1723
  [
2565
1724
  'async_req',
2566
1725
  '_return_http_data_only',
2567
1726
  '_preload_content',
2568
1727
  '_request_timeout',
2569
1728
  '_request_auth',
1729
+ '_content_type',
2570
1730
  '_headers'
2571
1731
  ]
2572
1732
  )
2573
1733
 
2574
- for key, val in six.iteritems(local_var_params['kwargs']):
2575
- if key not in all_params:
1734
+ # validate the arguments
1735
+ for _key, _val in _params['kwargs'].items():
1736
+ if _key not in _all_params:
2576
1737
  raise ApiTypeError(
2577
1738
  "Got an unexpected keyword argument '%s'"
2578
- " to method upsert_compliance_rule" % key
1739
+ " to method upsert_compliance_rule" % _key
2579
1740
  )
2580
- local_var_params[key] = val
2581
- del local_var_params['kwargs']
2582
-
2583
- collection_formats = {}
2584
-
2585
- path_params = {}
2586
-
2587
- query_params = []
2588
-
2589
- header_params = dict(local_var_params.get('_headers', {}))
2590
-
2591
- form_params = []
2592
- local_var_files = {}
2593
-
2594
- body_params = None
2595
- if 'upsert_compliance_rule_request' in local_var_params:
2596
- body_params = local_var_params['upsert_compliance_rule_request']
2597
- # HTTP header `Accept`
2598
- header_params['Accept'] = self.api_client.select_header_accept(
1741
+ _params[_key] = _val
1742
+ del _params['kwargs']
1743
+
1744
+ _collection_formats = {}
1745
+
1746
+ # process the path parameters
1747
+ _path_params = {}
1748
+
1749
+ # process the query parameters
1750
+ _query_params = []
1751
+ # process the header parameters
1752
+ _header_params = dict(_params.get('_headers', {}))
1753
+ # process the form parameters
1754
+ _form_params = []
1755
+ _files = {}
1756
+ # process the body parameter
1757
+ _body_params = None
1758
+ if _params['upsert_compliance_rule_request'] is not None:
1759
+ _body_params = _params['upsert_compliance_rule_request']
1760
+
1761
+ # set the HTTP header `Accept`
1762
+ _header_params['Accept'] = self.api_client.select_header_accept(
2599
1763
  ['text/plain', 'application/json', 'text/json']) # noqa: E501
2600
1764
 
2601
- header_params['Accept-Encoding'] = "gzip, deflate, br"
2602
-
2603
- # HTTP header `Content-Type`
2604
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2605
- ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
1765
+ # set the HTTP header `Content-Type`
1766
+ _content_types_list = _params.get('_content_type',
1767
+ self.api_client.select_header_content_type(
1768
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
1769
+ if _content_types_list:
1770
+ _header_params['Content-Type'] = _content_types_list
2606
1771
 
2607
- # set the LUSID header
2608
- header_params['X-LUSID-SDK-Language'] = 'Python'
2609
- header_params['X-LUSID-SDK-Version'] = '1.1.257'
1772
+ # authentication setting
1773
+ _auth_settings = ['oauth2'] # noqa: E501
2610
1774
 
2611
- # Authentication setting
2612
- auth_settings = ['oauth2'] # noqa: E501
2613
-
2614
- response_types_map = {
2615
- 200: "ComplianceRuleResponse",
2616
- 400: "LusidValidationProblemDetails",
1775
+ _response_types_map = {
1776
+ '200': "ComplianceRuleResponse",
1777
+ '400': "LusidValidationProblemDetails",
2617
1778
  }
2618
1779
 
2619
1780
  return self.api_client.call_api(
2620
1781
  '/api/compliance/rules', 'POST',
2621
- path_params,
2622
- query_params,
2623
- header_params,
2624
- body=body_params,
2625
- post_params=form_params,
2626
- files=local_var_files,
2627
- response_types_map=response_types_map,
2628
- auth_settings=auth_settings,
2629
- async_req=local_var_params.get('async_req'),
2630
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
2631
- _preload_content=local_var_params.get('_preload_content', True),
2632
- _request_timeout=local_var_params.get('_request_timeout'),
2633
- collection_formats=collection_formats,
2634
- _request_auth=local_var_params.get('_request_auth'))
2635
-
2636
- def upsert_compliance_run_summary(self, **kwargs): # noqa: E501
1782
+ _path_params,
1783
+ _query_params,
1784
+ _header_params,
1785
+ body=_body_params,
1786
+ post_params=_form_params,
1787
+ files=_files,
1788
+ response_types_map=_response_types_map,
1789
+ auth_settings=_auth_settings,
1790
+ async_req=_params.get('async_req'),
1791
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1792
+ _preload_content=_params.get('_preload_content', True),
1793
+ _request_timeout=_params.get('_request_timeout'),
1794
+ collection_formats=_collection_formats,
1795
+ _request_auth=_params.get('_request_auth'))
1796
+
1797
+ @overload
1798
+ async def upsert_compliance_run_summary(self, upsert_compliance_run_summary_request : Optional[UpsertComplianceRunSummaryRequest] = None, **kwargs) -> UpsertComplianceRunSummaryResult: # noqa: E501
1799
+ ...
1800
+
1801
+ @overload
1802
+ def upsert_compliance_run_summary(self, upsert_compliance_run_summary_request : Optional[UpsertComplianceRunSummaryRequest] = None, async_req: Optional[bool]=True, **kwargs) -> UpsertComplianceRunSummaryResult: # noqa: E501
1803
+ ...
1804
+
1805
+ @validate_arguments
1806
+ def upsert_compliance_run_summary(self, upsert_compliance_run_summary_request : Optional[UpsertComplianceRunSummaryRequest] = None, async_req: Optional[bool]=None, **kwargs) -> Union[UpsertComplianceRunSummaryResult, Awaitable[UpsertComplianceRunSummaryResult]]: # noqa: E501
2637
1807
  """[EARLY ACCESS] UpsertComplianceRunSummary: Upsert a compliance run summary. # noqa: E501
2638
1808
 
2639
1809
  Use this endpoint to upsert a compliance run result summary. # noqa: E501
2640
1810
  This method makes a synchronous HTTP request by default. To make an
2641
1811
  asynchronous HTTP request, please pass async_req=True
2642
1812
 
2643
- >>> thread = api.upsert_compliance_run_summary(async_req=True)
1813
+ >>> thread = api.upsert_compliance_run_summary(upsert_compliance_run_summary_request, async_req=True)
2644
1814
  >>> result = thread.get()
2645
1815
 
2646
1816
  :param upsert_compliance_run_summary_request:
2647
1817
  :type upsert_compliance_run_summary_request: UpsertComplianceRunSummaryRequest
2648
1818
  :param async_req: Whether to execute the request asynchronously.
2649
1819
  :type async_req: bool, optional
2650
- :param _preload_content: if False, the urllib3.HTTPResponse object will
2651
- be returned without reading/decoding response
2652
- data. Default is True.
2653
- :type _preload_content: bool, optional
2654
- :param _request_timeout: timeout setting for this request. If one
2655
- number provided, it will be total request
2656
- timeout. It can also be a pair (tuple) of
2657
- (connection, read) timeouts.
1820
+ :param _request_timeout: timeout setting for this request.
1821
+ If one number provided, it will be total request
1822
+ timeout. It can also be a pair (tuple) of
1823
+ (connection, read) timeouts.
2658
1824
  :return: Returns the result object.
2659
1825
  If the method is called asynchronously,
2660
1826
  returns the request thread.
2661
1827
  :rtype: UpsertComplianceRunSummaryResult
2662
1828
  """
2663
1829
  kwargs['_return_http_data_only'] = True
2664
- return self.upsert_compliance_run_summary_with_http_info(**kwargs) # noqa: E501
2665
-
2666
- def upsert_compliance_run_summary_with_http_info(self, **kwargs): # noqa: E501
1830
+ if '_preload_content' in kwargs:
1831
+ message = "Error! Please call the upsert_compliance_run_summary_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
1832
+ raise ValueError(message)
1833
+ if async_req is not None:
1834
+ kwargs['async_req'] = async_req
1835
+ return self.upsert_compliance_run_summary_with_http_info(upsert_compliance_run_summary_request, **kwargs) # noqa: E501
1836
+
1837
+ @validate_arguments
1838
+ def upsert_compliance_run_summary_with_http_info(self, upsert_compliance_run_summary_request : Optional[UpsertComplianceRunSummaryRequest] = None, **kwargs) -> ApiResponse: # noqa: E501
2667
1839
  """[EARLY ACCESS] UpsertComplianceRunSummary: Upsert a compliance run summary. # noqa: E501
2668
1840
 
2669
1841
  Use this endpoint to upsert a compliance run result summary. # noqa: E501
2670
1842
  This method makes a synchronous HTTP request by default. To make an
2671
1843
  asynchronous HTTP request, please pass async_req=True
2672
1844
 
2673
- >>> thread = api.upsert_compliance_run_summary_with_http_info(async_req=True)
1845
+ >>> thread = api.upsert_compliance_run_summary_with_http_info(upsert_compliance_run_summary_request, async_req=True)
2674
1846
  >>> result = thread.get()
2675
1847
 
2676
1848
  :param upsert_compliance_run_summary_request:
2677
1849
  :type upsert_compliance_run_summary_request: UpsertComplianceRunSummaryRequest
2678
1850
  :param async_req: Whether to execute the request asynchronously.
2679
1851
  :type async_req: bool, optional
2680
- :param _return_http_data_only: response data without head status code
2681
- and headers
2682
- :type _return_http_data_only: bool, optional
2683
- :param _preload_content: if False, the urllib3.HTTPResponse object will
2684
- be returned without reading/decoding response
2685
- data. Default is True.
1852
+ :param _preload_content: if False, the ApiResponse.data will
1853
+ be set to none and raw_data will store the
1854
+ HTTP response body without reading/decoding.
1855
+ Default is True.
2686
1856
  :type _preload_content: bool, optional
1857
+ :param _return_http_data_only: response data instead of ApiResponse
1858
+ object with status code, headers, etc
1859
+ :type _return_http_data_only: bool, optional
2687
1860
  :param _request_timeout: timeout setting for this request. If one
2688
1861
  number provided, it will be total request
2689
1862
  timeout. It can also be a pair (tuple) of
@@ -2692,86 +1865,89 @@ class ComplianceApi(object):
2692
1865
  request; this effectively ignores the authentication
2693
1866
  in the spec for a single request.
2694
1867
  :type _request_auth: dict, optional
2695
- :return: Returns the result object, the HTTP status code, and the headers.
1868
+ :type _content_type: string, optional: force content-type for the request
1869
+ :return: Returns the result object.
2696
1870
  If the method is called asynchronously,
2697
1871
  returns the request thread.
2698
- :rtype: (UpsertComplianceRunSummaryResult, int, HTTPHeaderDict)
1872
+ :rtype: tuple(UpsertComplianceRunSummaryResult, status_code(int), headers(HTTPHeaderDict))
2699
1873
  """
2700
1874
 
2701
- local_var_params = locals()
1875
+ _params = locals()
2702
1876
 
2703
- all_params = [
1877
+ _all_params = [
2704
1878
  'upsert_compliance_run_summary_request'
2705
1879
  ]
2706
- all_params.extend(
1880
+ _all_params.extend(
2707
1881
  [
2708
1882
  'async_req',
2709
1883
  '_return_http_data_only',
2710
1884
  '_preload_content',
2711
1885
  '_request_timeout',
2712
1886
  '_request_auth',
1887
+ '_content_type',
2713
1888
  '_headers'
2714
1889
  ]
2715
1890
  )
2716
1891
 
2717
- for key, val in six.iteritems(local_var_params['kwargs']):
2718
- if key not in all_params:
1892
+ # validate the arguments
1893
+ for _key, _val in _params['kwargs'].items():
1894
+ if _key not in _all_params:
2719
1895
  raise ApiTypeError(
2720
1896
  "Got an unexpected keyword argument '%s'"
2721
- " to method upsert_compliance_run_summary" % key
1897
+ " to method upsert_compliance_run_summary" % _key
2722
1898
  )
2723
- local_var_params[key] = val
2724
- del local_var_params['kwargs']
2725
-
2726
- collection_formats = {}
2727
-
2728
- path_params = {}
2729
-
2730
- query_params = []
2731
-
2732
- header_params = dict(local_var_params.get('_headers', {}))
2733
-
2734
- form_params = []
2735
- local_var_files = {}
2736
-
2737
- body_params = None
2738
- if 'upsert_compliance_run_summary_request' in local_var_params:
2739
- body_params = local_var_params['upsert_compliance_run_summary_request']
2740
- # HTTP header `Accept`
2741
- header_params['Accept'] = self.api_client.select_header_accept(
1899
+ _params[_key] = _val
1900
+ del _params['kwargs']
1901
+
1902
+ _collection_formats = {}
1903
+
1904
+ # process the path parameters
1905
+ _path_params = {}
1906
+
1907
+ # process the query parameters
1908
+ _query_params = []
1909
+ # process the header parameters
1910
+ _header_params = dict(_params.get('_headers', {}))
1911
+ # process the form parameters
1912
+ _form_params = []
1913
+ _files = {}
1914
+ # process the body parameter
1915
+ _body_params = None
1916
+ if _params['upsert_compliance_run_summary_request'] is not None:
1917
+ _body_params = _params['upsert_compliance_run_summary_request']
1918
+
1919
+ # set the HTTP header `Accept`
1920
+ _header_params['Accept'] = self.api_client.select_header_accept(
2742
1921
  ['text/plain', 'application/json', 'text/json']) # noqa: E501
2743
1922
 
2744
- header_params['Accept-Encoding'] = "gzip, deflate, br"
2745
-
2746
- # HTTP header `Content-Type`
2747
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2748
- ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
2749
-
2750
- # set the LUSID header
2751
- header_params['X-LUSID-SDK-Language'] = 'Python'
2752
- header_params['X-LUSID-SDK-Version'] = '1.1.257'
1923
+ # set the HTTP header `Content-Type`
1924
+ _content_types_list = _params.get('_content_type',
1925
+ self.api_client.select_header_content_type(
1926
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
1927
+ if _content_types_list:
1928
+ _header_params['Content-Type'] = _content_types_list
2753
1929
 
2754
- # Authentication setting
2755
- auth_settings = ['oauth2'] # noqa: E501
1930
+ # authentication setting
1931
+ _auth_settings = ['oauth2'] # noqa: E501
2756
1932
 
2757
- response_types_map = {
2758
- 200: "UpsertComplianceRunSummaryResult",
2759
- 400: "LusidValidationProblemDetails",
1933
+ _response_types_map = {
1934
+ '200': "UpsertComplianceRunSummaryResult",
1935
+ '400': "LusidValidationProblemDetails",
2760
1936
  }
2761
1937
 
2762
1938
  return self.api_client.call_api(
2763
1939
  '/api/compliance/runs/summary', 'POST',
2764
- path_params,
2765
- query_params,
2766
- header_params,
2767
- body=body_params,
2768
- post_params=form_params,
2769
- files=local_var_files,
2770
- response_types_map=response_types_map,
2771
- auth_settings=auth_settings,
2772
- async_req=local_var_params.get('async_req'),
2773
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
2774
- _preload_content=local_var_params.get('_preload_content', True),
2775
- _request_timeout=local_var_params.get('_request_timeout'),
2776
- collection_formats=collection_formats,
2777
- _request_auth=local_var_params.get('_request_auth'))
1940
+ _path_params,
1941
+ _query_params,
1942
+ _header_params,
1943
+ body=_body_params,
1944
+ post_params=_form_params,
1945
+ files=_files,
1946
+ response_types_map=_response_types_map,
1947
+ auth_settings=_auth_settings,
1948
+ async_req=_params.get('async_req'),
1949
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1950
+ _preload_content=_params.get('_preload_content', True),
1951
+ _request_timeout=_params.get('_request_timeout'),
1952
+ collection_formats=_collection_formats,
1953
+ _request_auth=_params.get('_request_auth'))