lusid-sdk 1.0.281__py3-none-any.whl → 1.0.282__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (656) hide show
  1. lusid/__init__.py +6 -2
  2. lusid/__version__.py +1 -1
  3. lusid/api/address_key_definition_api.py +4 -4
  4. lusid/api/aggregation_api.py +4 -4
  5. lusid/api/allocations_api.py +5 -5
  6. lusid/api/application_metadata_api.py +4 -4
  7. lusid/api/blocks_api.py +5 -5
  8. lusid/api/calendars_api.py +13 -13
  9. lusid/api/complex_market_data_api.py +4 -4
  10. lusid/api/compliance___generic_api.py +740 -56
  11. lusid/api/configuration_recipe_api.py +5 -5
  12. lusid/api/corporate_action_sources_api.py +9 -9
  13. lusid/api/counterparties_api.py +9 -9
  14. lusid/api/custom_entities_api.py +12 -12
  15. lusid/api/custom_entity_definitions_api.py +5 -5
  16. lusid/api/cut_label_definitions_api.py +6 -6
  17. lusid/api/data_types_api.py +8 -8
  18. lusid/api/derived_transaction_portfolios_api.py +3 -3
  19. lusid/api/entities_api.py +2 -2
  20. lusid/api/executions_api.py +5 -5
  21. lusid/api/instruments_api.py +16 -16
  22. lusid/api/legal_entities_api.py +18 -18
  23. lusid/api/orders_api.py +5 -5
  24. lusid/api/participations_api.py +5 -5
  25. lusid/api/persons_api.py +18 -18
  26. lusid/api/placements_api.py +5 -5
  27. lusid/api/portfolio_groups_api.py +26 -26
  28. lusid/api/portfolios_api.py +24 -24
  29. lusid/api/property_definitions_api.py +11 -11
  30. lusid/api/quotes_api.py +6 -6
  31. lusid/api/reconciliations_api.py +10 -10
  32. lusid/api/reference_lists_api.py +5 -5
  33. lusid/api/reference_portfolio_api.py +5 -5
  34. lusid/api/relationship_definitions_api.py +6 -6
  35. lusid/api/relationships_api.py +3 -3
  36. lusid/api/schemas_api.py +5 -5
  37. lusid/api/scopes_api.py +2 -2
  38. lusid/api/search_api.py +5 -5
  39. lusid/api/sequences_api.py +5 -5
  40. lusid/api/system_configuration_api.py +3 -3
  41. lusid/api/transaction_portfolios_api.py +25 -25
  42. lusid/api_client.py +2 -2
  43. lusid/configuration.py +3 -3
  44. lusid/exceptions.py +1 -1
  45. lusid/models/__init__.py +5 -1
  46. lusid/models/a2_b_breakdown.py +1 -1
  47. lusid/models/a2_b_category.py +1 -1
  48. lusid/models/a2_b_data_record.py +1 -1
  49. lusid/models/a2_b_movement_record.py +1 -1
  50. lusid/models/access_controlled_action.py +1 -1
  51. lusid/models/access_controlled_resource.py +1 -1
  52. lusid/models/access_metadata_operation.py +1 -1
  53. lusid/models/access_metadata_value.py +1 -1
  54. lusid/models/action_id.py +1 -1
  55. lusid/models/action_result_of_portfolio.py +1 -1
  56. lusid/models/add_business_days_to_date_request.py +1 -1
  57. lusid/models/add_business_days_to_date_response.py +1 -1
  58. lusid/models/address_definition.py +1 -1
  59. lusid/models/address_key_definition.py +1 -1
  60. lusid/models/address_key_filter.py +1 -1
  61. lusid/models/address_key_list.py +1 -1
  62. lusid/models/address_key_list_all_of.py +1 -1
  63. lusid/models/address_key_option_definition.py +1 -1
  64. lusid/models/adjust_holding.py +1 -1
  65. lusid/models/adjust_holding_for_date_request.py +1 -1
  66. lusid/models/adjust_holding_request.py +1 -1
  67. lusid/models/aggregate_spec.py +1 -1
  68. lusid/models/aggregated_return.py +1 -1
  69. lusid/models/aggregated_returns_dispersion_request.py +1 -1
  70. lusid/models/aggregated_returns_request.py +1 -1
  71. lusid/models/aggregated_returns_response.py +1 -1
  72. lusid/models/aggregation_context.py +1 -1
  73. lusid/models/aggregation_measure_failure_detail.py +1 -1
  74. lusid/models/aggregation_options.py +1 -1
  75. lusid/models/aggregation_query.py +1 -1
  76. lusid/models/allocation.py +1 -1
  77. lusid/models/allocation_request.py +1 -1
  78. lusid/models/allocation_set_request.py +1 -1
  79. lusid/models/amortisation_event.py +1 -1
  80. lusid/models/amortisation_event_all_of.py +1 -1
  81. lusid/models/annul_quotes_response.py +1 -1
  82. lusid/models/annul_single_structured_data_response.py +1 -1
  83. lusid/models/annul_structured_data_response.py +1 -1
  84. lusid/models/barrier.py +1 -1
  85. lusid/models/basket.py +1 -1
  86. lusid/models/basket_all_of.py +1 -1
  87. lusid/models/basket_identifier.py +1 -1
  88. lusid/models/batch_adjust_holdings_response.py +1 -1
  89. lusid/models/batch_upsert_portfolio_transactions_response.py +1 -1
  90. lusid/models/batch_upsert_property_definition_properties_response.py +1 -1
  91. lusid/models/block.py +1 -1
  92. lusid/models/block_request.py +1 -1
  93. lusid/models/block_set_request.py +1 -1
  94. lusid/models/bond.py +1 -1
  95. lusid/models/bond_all_of.py +1 -1
  96. lusid/models/bond_default_event.py +1 -1
  97. lusid/models/bond_default_event_all_of.py +1 -1
  98. lusid/models/calendar.py +1 -1
  99. lusid/models/calendar_date.py +1 -1
  100. lusid/models/cap_floor.py +1 -1
  101. lusid/models/cap_floor_all_of.py +1 -1
  102. lusid/models/cash_dependency.py +1 -1
  103. lusid/models/cash_dependency_all_of.py +1 -1
  104. lusid/models/cash_dividend_event.py +1 -1
  105. lusid/models/cash_dividend_event_all_of.py +1 -1
  106. lusid/models/cash_flow_event.py +1 -1
  107. lusid/models/cash_flow_event_all_of.py +1 -1
  108. lusid/models/cash_flow_lineage.py +1 -1
  109. lusid/models/cash_flow_value.py +1 -1
  110. lusid/models/cash_flow_value_all_of.py +1 -1
  111. lusid/models/cash_flow_value_set.py +1 -1
  112. lusid/models/cash_flow_value_set_all_of.py +1 -1
  113. lusid/models/cash_ladder_record.py +1 -1
  114. lusid/models/cash_perpetual.py +1 -1
  115. lusid/models/cash_perpetual_all_of.py +1 -1
  116. lusid/models/cds_flow_conventions.py +1 -1
  117. lusid/models/cds_index.py +1 -1
  118. lusid/models/cds_index_all_of.py +1 -1
  119. lusid/models/cds_protection_detail_specification.py +1 -1
  120. lusid/models/change.py +1 -1
  121. lusid/models/change_history.py +1 -1
  122. lusid/models/change_item.py +1 -1
  123. lusid/models/close_event.py +1 -1
  124. lusid/models/close_event_all_of.py +1 -1
  125. lusid/models/complete_portfolio.py +1 -1
  126. lusid/models/complete_relationship.py +1 -1
  127. lusid/models/complex_bond.py +1 -1
  128. lusid/models/complex_bond_all_of.py +1 -1
  129. lusid/models/complex_market_data.py +1 -1
  130. lusid/models/complex_market_data_id.py +1 -1
  131. lusid/models/compliance_rule_response.py +1 -3
  132. lusid/models/compliance_template.py +1 -1
  133. lusid/models/compliance_template_parameter.py +1 -1
  134. lusid/models/compliance_template_variation.py +1 -1
  135. lusid/models/composite_dispersion.py +1 -1
  136. lusid/models/composite_dispersion_response.py +1 -1
  137. lusid/models/compounding.py +1 -1
  138. lusid/models/configuration_recipe.py +1 -1
  139. lusid/models/configuration_recipe_snippet.py +1 -1
  140. lusid/models/constituents_adjustment_header.py +1 -1
  141. lusid/models/contract_for_difference.py +1 -1
  142. lusid/models/contract_for_difference_all_of.py +1 -1
  143. lusid/models/corporate_action.py +1 -1
  144. lusid/models/corporate_action_source.py +1 -1
  145. lusid/models/corporate_action_transition.py +1 -1
  146. lusid/models/corporate_action_transition_component.py +1 -1
  147. lusid/models/corporate_action_transition_component_request.py +1 -1
  148. lusid/models/corporate_action_transition_request.py +1 -1
  149. lusid/models/counterparty_agreement.py +1 -1
  150. lusid/models/counterparty_risk_information.py +1 -1
  151. lusid/models/counterparty_signatory.py +1 -1
  152. lusid/models/create_address_key_definition_request.py +1 -1
  153. lusid/models/create_calendar_request.py +1 -1
  154. lusid/models/create_corporate_action_source_request.py +1 -1
  155. lusid/models/create_cut_label_definition_request.py +1 -1
  156. lusid/models/create_data_type_request.py +1 -1
  157. lusid/models/create_date_request.py +1 -1
  158. lusid/models/create_derived_property_definition_request.py +1 -1
  159. lusid/models/create_derived_transaction_portfolio_request.py +1 -1
  160. lusid/models/create_portfolio_details.py +1 -1
  161. lusid/models/create_portfolio_group_request.py +1 -1
  162. lusid/models/create_property_definition_request.py +1 -1
  163. lusid/models/create_reference_portfolio_request.py +1 -1
  164. lusid/models/create_relationship_definition_request.py +1 -1
  165. lusid/models/create_relationship_request.py +1 -1
  166. lusid/models/create_sequence_request.py +1 -1
  167. lusid/models/create_transaction_portfolio_request.py +1 -1
  168. lusid/models/create_unit_definition.py +1 -1
  169. lusid/models/credit_default_swap.py +1 -1
  170. lusid/models/credit_default_swap_all_of.py +1 -1
  171. lusid/models/credit_rating.py +1 -1
  172. lusid/models/credit_spread_curve_data.py +1 -1
  173. lusid/models/credit_spread_curve_data_all_of.py +1 -1
  174. lusid/models/credit_support_annex.py +1 -1
  175. lusid/models/currency_and_amount.py +1 -1
  176. lusid/models/custodian_account.py +1 -1
  177. lusid/models/custom_entity_definition.py +1 -1
  178. lusid/models/custom_entity_definition_request.py +1 -1
  179. lusid/models/custom_entity_field.py +1 -1
  180. lusid/models/custom_entity_field_definition.py +1 -1
  181. lusid/models/custom_entity_id.py +1 -1
  182. lusid/models/custom_entity_request.py +1 -1
  183. lusid/models/custom_entity_response.py +1 -1
  184. lusid/models/cut_label_definition.py +1 -1
  185. lusid/models/cut_local_time.py +1 -1
  186. lusid/models/data_type.py +1 -1
  187. lusid/models/data_type_summary.py +1 -1
  188. lusid/models/date_attributes.py +1 -1
  189. lusid/models/date_range.py +1 -1
  190. lusid/models/day_of_week.py +1 -1
  191. lusid/models/decimal_list.py +1 -1
  192. lusid/models/decimal_list_all_of.py +1 -1
  193. lusid/models/delete_instrument_properties_response.py +1 -1
  194. lusid/models/delete_instrument_response.py +1 -1
  195. lusid/models/delete_instruments_response.py +1 -1
  196. lusid/models/delete_relationship_request.py +1 -1
  197. lusid/models/deleted_entity_response.py +1 -1
  198. lusid/models/dependency_source_filter.py +1 -1
  199. lusid/models/discount_factor_curve_data.py +1 -1
  200. lusid/models/discount_factor_curve_data_all_of.py +1 -1
  201. lusid/models/discounting_dependency.py +1 -1
  202. lusid/models/discounting_dependency_all_of.py +1 -1
  203. lusid/models/economic_dependency.py +1 -1
  204. lusid/models/economic_dependency_with_complex_market_data.py +1 -1
  205. lusid/models/economic_dependency_with_quote.py +1 -1
  206. lusid/models/empty_model_options.py +1 -1
  207. lusid/models/empty_model_options_all_of.py +1 -1
  208. lusid/models/entity_identifier.py +1 -1
  209. lusid/models/equity.py +1 -1
  210. lusid/models/equity_all_of.py +1 -1
  211. lusid/models/equity_all_of_identifiers.py +1 -1
  212. lusid/models/equity_curve_by_prices_data.py +1 -1
  213. lusid/models/equity_curve_by_prices_data_all_of.py +1 -1
  214. lusid/models/equity_curve_dependency.py +1 -1
  215. lusid/models/equity_curve_dependency_all_of.py +1 -1
  216. lusid/models/equity_model_options.py +1 -1
  217. lusid/models/equity_model_options_all_of.py +1 -1
  218. lusid/models/equity_option.py +1 -1
  219. lusid/models/equity_option_all_of.py +1 -1
  220. lusid/models/equity_swap.py +1 -1
  221. lusid/models/equity_swap_all_of.py +1 -1
  222. lusid/models/equity_vol_dependency.py +1 -1
  223. lusid/models/equity_vol_dependency_all_of.py +1 -1
  224. lusid/models/equity_vol_surface_data.py +1 -1
  225. lusid/models/equity_vol_surface_data_all_of.py +1 -1
  226. lusid/models/error_detail.py +1 -1
  227. lusid/models/event_date_range.py +1 -1
  228. lusid/models/exchange_traded_option.py +1 -1
  229. lusid/models/exchange_traded_option_all_of.py +1 -1
  230. lusid/models/exchange_traded_option_contract_details.py +1 -1
  231. lusid/models/execution.py +1 -1
  232. lusid/models/execution_request.py +1 -1
  233. lusid/models/execution_set_request.py +1 -1
  234. lusid/models/exercise_event.py +1 -1
  235. lusid/models/exercise_event_all_of.py +1 -1
  236. lusid/models/exotic_instrument.py +1 -1
  237. lusid/models/exotic_instrument_all_of.py +1 -1
  238. lusid/models/expanded_group.py +1 -1
  239. lusid/models/field_definition.py +1 -1
  240. lusid/models/field_schema.py +1 -1
  241. lusid/models/field_value.py +1 -1
  242. lusid/models/file_response.py +1 -1
  243. lusid/models/fixed_leg.py +1 -1
  244. lusid/models/fixed_leg_all_of.py +1 -1
  245. lusid/models/fixed_leg_all_of_overrides.py +1 -1
  246. lusid/models/floating_leg.py +1 -1
  247. lusid/models/floating_leg_all_of.py +1 -1
  248. lusid/models/flow_convention_name.py +1 -1
  249. lusid/models/flow_conventions.py +1 -1
  250. lusid/models/forward_rate_agreement.py +1 -1
  251. lusid/models/forward_rate_agreement_all_of.py +1 -1
  252. lusid/models/funding_leg.py +1 -1
  253. lusid/models/funding_leg_all_of.py +1 -1
  254. lusid/models/future.py +1 -1
  255. lusid/models/future_all_of.py +1 -1
  256. lusid/models/futures_contract_details.py +1 -1
  257. lusid/models/fx_dependency.py +1 -1
  258. lusid/models/fx_dependency_all_of.py +1 -1
  259. lusid/models/fx_forward.py +1 -1
  260. lusid/models/fx_forward_all_of.py +1 -1
  261. lusid/models/fx_forward_curve_by_quote_reference.py +1 -1
  262. lusid/models/fx_forward_curve_by_quote_reference_all_of.py +1 -1
  263. lusid/models/fx_forward_curve_data.py +1 -1
  264. lusid/models/fx_forward_curve_data_all_of.py +1 -1
  265. lusid/models/fx_forward_model_options.py +1 -1
  266. lusid/models/fx_forward_model_options_all_of.py +1 -1
  267. lusid/models/fx_forward_pips_curve_data.py +1 -1
  268. lusid/models/fx_forward_pips_curve_data_all_of.py +1 -1
  269. lusid/models/fx_forward_tenor_curve_data.py +1 -1
  270. lusid/models/fx_forward_tenor_curve_data_all_of.py +1 -1
  271. lusid/models/fx_forward_tenor_pips_curve_data.py +1 -1
  272. lusid/models/fx_forward_tenor_pips_curve_data_all_of.py +1 -1
  273. lusid/models/fx_forwards_dependency.py +1 -1
  274. lusid/models/fx_forwards_dependency_all_of.py +1 -1
  275. lusid/models/fx_option.py +1 -1
  276. lusid/models/fx_option_all_of.py +1 -1
  277. lusid/models/fx_swap.py +1 -1
  278. lusid/models/fx_swap_all_of.py +1 -1
  279. lusid/models/fx_tenor_convention.py +1 -1
  280. lusid/models/fx_vol_dependency.py +1 -1
  281. lusid/models/fx_vol_dependency_all_of.py +1 -1
  282. lusid/models/fx_vol_surface_data.py +1 -1
  283. lusid/models/get_complex_market_data_response.py +1 -1
  284. lusid/models/get_counterparty_agreement_response.py +1 -1
  285. lusid/models/get_credit_support_annex_response.py +1 -1
  286. lusid/models/get_instruments_response.py +1 -1
  287. lusid/models/get_quotes_response.py +1 -1
  288. lusid/models/get_recipe_response.py +1 -1
  289. lusid/models/get_reference_portfolio_constituents_response.py +1 -1
  290. lusid/models/holding_adjustment.py +1 -1
  291. lusid/models/holding_adjustment_with_date.py +1 -1
  292. lusid/models/holding_context.py +1 -1
  293. lusid/models/holdings_adjustment.py +1 -1
  294. lusid/models/holdings_adjustment_header.py +1 -1
  295. lusid/models/i_unit_definition_dto.py +1 -1
  296. lusid/models/id_selector_definition.py +1 -1
  297. lusid/models/identifier_part_schema.py +1 -1
  298. lusid/models/index_convention.py +1 -1
  299. lusid/models/index_model_options.py +1 -1
  300. lusid/models/index_model_options_all_of.py +1 -1
  301. lusid/models/index_projection_dependency.py +1 -1
  302. lusid/models/index_projection_dependency_all_of.py +1 -1
  303. lusid/models/industry_classifier.py +1 -1
  304. lusid/models/inflation_linked_bond.py +1 -1
  305. lusid/models/inflation_linked_bond_all_of.py +1 -1
  306. lusid/models/inflation_swap.py +1 -1
  307. lusid/models/inflation_swap_all_of.py +1 -1
  308. lusid/models/informational_error_event.py +1 -1
  309. lusid/models/informational_error_event_all_of.py +1 -1
  310. lusid/models/informational_event.py +1 -1
  311. lusid/models/informational_event_all_of.py +1 -1
  312. lusid/models/inline_valuation_request.py +1 -1
  313. lusid/models/inline_valuations_reconciliation_request.py +1 -1
  314. lusid/models/input_transition.py +1 -1
  315. lusid/models/instrument.py +1 -1
  316. lusid/models/instrument_definition.py +1 -1
  317. lusid/models/instrument_definition_format.py +1 -1
  318. lusid/models/instrument_event.py +1 -1
  319. lusid/models/instrument_event_holder.py +1 -1
  320. lusid/models/instrument_id_type_descriptor.py +1 -1
  321. lusid/models/instrument_id_value.py +1 -1
  322. lusid/models/instrument_leg.py +1 -1
  323. lusid/models/instrument_leg_all_of.py +1 -1
  324. lusid/models/instrument_list.py +1 -1
  325. lusid/models/instrument_list_all_of.py +1 -1
  326. lusid/models/instrument_match.py +1 -1
  327. lusid/models/instrument_models.py +1 -1
  328. lusid/models/instrument_properties.py +1 -1
  329. lusid/models/instrument_search_property.py +1 -1
  330. lusid/models/interest_rate_swap.py +1 -1
  331. lusid/models/interest_rate_swap_all_of.py +1 -1
  332. lusid/models/interest_rate_swaption.py +1 -1
  333. lusid/models/interest_rate_swaption_all_of.py +1 -1
  334. lusid/models/ir_vol_cube_data.py +1 -1
  335. lusid/models/ir_vol_cube_data_all_of.py +1 -1
  336. lusid/models/ir_vol_dependency.py +1 -1
  337. lusid/models/ir_vol_dependency_all_of.py +1 -1
  338. lusid/models/is_business_day_response.py +1 -1
  339. lusid/models/label_value_set.py +1 -1
  340. lusid/models/leg_definition.py +1 -1
  341. lusid/models/legal_entity.py +1 -1
  342. lusid/models/level_step.py +1 -1
  343. lusid/models/life_cycle_event_lineage.py +1 -1
  344. lusid/models/life_cycle_event_value.py +1 -1
  345. lusid/models/life_cycle_event_value_all_of.py +1 -1
  346. lusid/models/link.py +1 -1
  347. lusid/models/list_aggregation_reconciliation.py +1 -1
  348. lusid/models/list_aggregation_response.py +1 -1
  349. lusid/models/loan_period.py +1 -1
  350. lusid/models/lusid_instrument.py +1 -1
  351. lusid/models/lusid_problem_details.py +1 -1
  352. lusid/models/lusid_unique_id.py +1 -1
  353. lusid/models/lusid_validation_problem_details.py +1 -1
  354. lusid/models/mapped_string.py +1 -1
  355. lusid/models/mapping.py +1 -1
  356. lusid/models/mapping_rule.py +1 -1
  357. lusid/models/market_context.py +1 -1
  358. lusid/models/market_context_suppliers.py +1 -1
  359. lusid/models/market_data_key_rule.py +1 -1
  360. lusid/models/market_data_options.py +1 -1
  361. lusid/models/market_data_overrides.py +1 -1
  362. lusid/models/market_data_specific_rule.py +1 -1
  363. lusid/models/market_options.py +1 -1
  364. lusid/models/market_quote.py +1 -1
  365. lusid/models/metric_value.py +1 -1
  366. lusid/models/model_options.py +1 -1
  367. lusid/models/model_property.py +1 -1
  368. lusid/models/model_selection.py +1 -1
  369. lusid/models/next_value_in_sequence_response.py +1 -1
  370. lusid/models/opaque_dependency.py +1 -1
  371. lusid/models/opaque_dependency_all_of.py +1 -1
  372. lusid/models/opaque_market_data.py +1 -1
  373. lusid/models/opaque_market_data_all_of.py +1 -1
  374. lusid/models/opaque_model_options.py +1 -1
  375. lusid/models/opaque_model_options_all_of.py +1 -1
  376. lusid/models/open_event.py +1 -1
  377. lusid/models/open_event_all_of.py +1 -1
  378. lusid/models/operation.py +1 -1
  379. lusid/models/order.py +1 -1
  380. lusid/models/order_by_spec.py +1 -1
  381. lusid/models/order_request.py +1 -1
  382. lusid/models/order_set_request.py +1 -1
  383. lusid/models/otc_confirmation.py +1 -1
  384. lusid/models/output_transaction.py +1 -1
  385. lusid/models/output_transition.py +1 -1
  386. lusid/models/paged_resource_list_of_address_key_definition.py +1 -1
  387. lusid/models/paged_resource_list_of_allocation.py +1 -1
  388. lusid/models/paged_resource_list_of_block.py +1 -1
  389. lusid/models/paged_resource_list_of_calendar.py +1 -1
  390. lusid/models/paged_resource_list_of_compliance_rule_response.py +5 -15
  391. lusid/models/paged_resource_list_of_compliance_template.py +1 -1
  392. lusid/models/paged_resource_list_of_corporate_action_source.py +1 -1
  393. lusid/models/paged_resource_list_of_custom_entity_definition.py +1 -1
  394. lusid/models/paged_resource_list_of_custom_entity_response.py +1 -1
  395. lusid/models/paged_resource_list_of_cut_label_definition.py +1 -1
  396. lusid/models/paged_resource_list_of_data_type_summary.py +1 -1
  397. lusid/models/paged_resource_list_of_execution.py +1 -1
  398. lusid/models/paged_resource_list_of_instrument.py +1 -1
  399. lusid/models/paged_resource_list_of_instrument_event_holder.py +1 -1
  400. lusid/models/paged_resource_list_of_legal_entity.py +1 -1
  401. lusid/models/paged_resource_list_of_order.py +1 -1
  402. lusid/models/paged_resource_list_of_participation.py +1 -1
  403. lusid/models/paged_resource_list_of_person.py +1 -1
  404. lusid/models/paged_resource_list_of_placement.py +1 -1
  405. lusid/models/paged_resource_list_of_portfolio_group_search_result.py +1 -1
  406. lusid/models/paged_resource_list_of_portfolio_search_result.py +1 -1
  407. lusid/models/paged_resource_list_of_property_definition_search_result.py +1 -1
  408. lusid/models/paged_resource_list_of_reference_list_response.py +1 -1
  409. lusid/models/paged_resource_list_of_relationship_definition.py +1 -1
  410. lusid/models/paged_resource_list_of_sequence_definition.py +1 -1
  411. lusid/models/participation.py +1 -1
  412. lusid/models/participation_request.py +1 -1
  413. lusid/models/participation_set_request.py +1 -1
  414. lusid/models/performance_return.py +1 -1
  415. lusid/models/performance_returns_metric.py +1 -1
  416. lusid/models/perpetual_property.py +1 -1
  417. lusid/models/person.py +1 -1
  418. lusid/models/placement.py +1 -1
  419. lusid/models/placement_request.py +1 -1
  420. lusid/models/placement_set_request.py +1 -1
  421. lusid/models/portfolio.py +1 -1
  422. lusid/models/portfolio_cash_flow.py +1 -1
  423. lusid/models/portfolio_cash_ladder.py +1 -1
  424. lusid/models/portfolio_details.py +1 -1
  425. lusid/models/portfolio_entity_id.py +1 -1
  426. lusid/models/portfolio_group.py +1 -1
  427. lusid/models/portfolio_group_id_list.py +1 -1
  428. lusid/models/portfolio_group_id_list_all_of.py +1 -1
  429. lusid/models/portfolio_group_properties.py +1 -1
  430. lusid/models/portfolio_group_search_result.py +1 -1
  431. lusid/models/portfolio_holding.py +1 -1
  432. lusid/models/portfolio_id_list.py +1 -1
  433. lusid/models/portfolio_properties.py +1 -1
  434. lusid/models/portfolio_reconciliation_request.py +1 -1
  435. lusid/models/portfolio_result_data_key_rule.py +1 -1
  436. lusid/models/portfolio_result_data_key_rule_all_of.py +1 -1
  437. lusid/models/portfolio_search_result.py +1 -1
  438. lusid/models/portfolios_reconciliation_request.py +1 -1
  439. lusid/models/premium.py +1 -1
  440. lusid/models/pricing_context.py +1 -1
  441. lusid/models/pricing_options.py +1 -1
  442. lusid/models/processed_command.py +1 -1
  443. lusid/models/property_definition.py +1 -1
  444. lusid/models/property_definition_search_result.py +1 -1
  445. lusid/models/property_filter.py +1 -1
  446. lusid/models/property_interval.py +1 -1
  447. lusid/models/property_schema.py +1 -1
  448. lusid/models/property_value.py +1 -1
  449. lusid/models/quote.py +1 -1
  450. lusid/models/quote_dependency.py +1 -1
  451. lusid/models/quote_dependency_all_of.py +1 -1
  452. lusid/models/quote_id.py +1 -1
  453. lusid/models/quote_series_id.py +1 -1
  454. lusid/models/raw_vendor_event.py +1 -1
  455. lusid/models/raw_vendor_event_all_of.py +1 -1
  456. lusid/models/realised_gain_loss.py +1 -1
  457. lusid/models/reconcile_date_time_rule.py +1 -1
  458. lusid/models/reconcile_date_time_rule_all_of.py +1 -1
  459. lusid/models/reconcile_numeric_rule.py +1 -1
  460. lusid/models/reconcile_numeric_rule_all_of.py +1 -1
  461. lusid/models/reconcile_string_rule.py +1 -1
  462. lusid/models/reconcile_string_rule_all_of.py +1 -1
  463. lusid/models/reconciled_transaction.py +1 -1
  464. lusid/models/reconciliation_break.py +1 -1
  465. lusid/models/reconciliation_left_right_address_key_pair.py +1 -1
  466. lusid/models/reconciliation_line.py +1 -1
  467. lusid/models/reconciliation_request.py +1 -1
  468. lusid/models/reconciliation_response.py +1 -1
  469. lusid/models/reconciliation_rule.py +1 -1
  470. lusid/models/reference_data.py +1 -1
  471. lusid/models/reference_instrument.py +1 -1
  472. lusid/models/reference_instrument_all_of.py +1 -1
  473. lusid/models/reference_list.py +1 -1
  474. lusid/models/reference_list_request.py +1 -1
  475. lusid/models/reference_list_response.py +1 -1
  476. lusid/models/reference_portfolio_constituent.py +1 -1
  477. lusid/models/reference_portfolio_constituent_request.py +1 -1
  478. lusid/models/related_entity.py +1 -1
  479. lusid/models/relation.py +1 -1
  480. lusid/models/relationship.py +1 -1
  481. lusid/models/relationship_definition.py +1 -1
  482. lusid/models/repo.py +1 -1
  483. lusid/models/repo_all_of.py +1 -1
  484. lusid/models/reset_event.py +1 -1
  485. lusid/models/reset_event_all_of.py +1 -1
  486. lusid/models/resource_id.py +1 -1
  487. lusid/models/resource_list_of_access_controlled_resource.py +1 -1
  488. lusid/models/resource_list_of_access_metadata_value_of.py +1 -1
  489. lusid/models/resource_list_of_aggregation_query.py +1 -1
  490. lusid/models/resource_list_of_allocation.py +1 -1
  491. lusid/models/resource_list_of_block.py +1 -1
  492. lusid/models/resource_list_of_calendar_date.py +1 -1
  493. lusid/models/resource_list_of_change.py +1 -1
  494. lusid/models/resource_list_of_change_history.py +1 -1
  495. lusid/models/resource_list_of_constituents_adjustment_header.py +1 -1
  496. lusid/models/resource_list_of_corporate_action.py +1 -1
  497. lusid/models/resource_list_of_data_type.py +1 -1
  498. lusid/models/resource_list_of_execution.py +1 -1
  499. lusid/models/resource_list_of_get_counterparty_agreement_response.py +1 -1
  500. lusid/models/resource_list_of_get_credit_support_annex_response.py +1 -1
  501. lusid/models/resource_list_of_get_recipe_response.py +1 -1
  502. lusid/models/resource_list_of_holdings_adjustment_header.py +1 -1
  503. lusid/models/resource_list_of_i_unit_definition_dto.py +1 -1
  504. lusid/models/resource_list_of_instrument_id_type_descriptor.py +1 -1
  505. lusid/models/resource_list_of_legal_entity.py +1 -1
  506. lusid/models/resource_list_of_mapping.py +1 -1
  507. lusid/models/resource_list_of_order.py +1 -1
  508. lusid/models/resource_list_of_participation.py +1 -1
  509. lusid/models/resource_list_of_performance_return.py +1 -1
  510. lusid/models/resource_list_of_person.py +1 -1
  511. lusid/models/resource_list_of_placement.py +1 -1
  512. lusid/models/resource_list_of_portfolio.py +1 -1
  513. lusid/models/resource_list_of_portfolio_cash_flow.py +1 -1
  514. lusid/models/resource_list_of_portfolio_cash_ladder.py +1 -1
  515. lusid/models/resource_list_of_portfolio_group.py +1 -1
  516. lusid/models/resource_list_of_processed_command.py +1 -1
  517. lusid/models/resource_list_of_property.py +1 -1
  518. lusid/models/resource_list_of_property_definition.py +1 -1
  519. lusid/models/resource_list_of_property_interval.py +1 -1
  520. lusid/models/resource_list_of_quote.py +1 -1
  521. lusid/models/resource_list_of_reconciliation_break.py +1 -1
  522. lusid/models/resource_list_of_relation.py +1 -1
  523. lusid/models/resource_list_of_relationship.py +1 -1
  524. lusid/models/resource_list_of_scope_definition.py +1 -1
  525. lusid/models/resource_list_of_string.py +1 -1
  526. lusid/models/resource_list_of_value_type.py +1 -1
  527. lusid/models/response_meta_data.py +1 -1
  528. lusid/models/result_data_key_rule.py +1 -1
  529. lusid/models/result_data_key_rule_all_of.py +1 -1
  530. lusid/models/result_data_schema.py +1 -1
  531. lusid/models/result_key_rule.py +1 -1
  532. lusid/models/result_value.py +1 -1
  533. lusid/models/result_value0_d.py +1 -1
  534. lusid/models/result_value0_d_all_of.py +1 -1
  535. lusid/models/result_value_bool.py +1 -1
  536. lusid/models/result_value_bool_all_of.py +1 -1
  537. lusid/models/result_value_currency.py +1 -1
  538. lusid/models/result_value_currency_all_of.py +1 -1
  539. lusid/models/result_value_date_time_offset.py +1 -1
  540. lusid/models/result_value_date_time_offset_all_of.py +1 -1
  541. lusid/models/result_value_decimal.py +1 -1
  542. lusid/models/result_value_decimal_all_of.py +1 -1
  543. lusid/models/result_value_dictionary.py +1 -1
  544. lusid/models/result_value_dictionary_all_of.py +1 -1
  545. lusid/models/result_value_int.py +1 -1
  546. lusid/models/result_value_int_all_of.py +1 -1
  547. lusid/models/result_value_string.py +1 -1
  548. lusid/models/result_value_string_all_of.py +1 -1
  549. lusid/models/rounding_convention.py +1 -1
  550. lusid/models/schedule.py +1 -1
  551. lusid/models/schema.py +1 -1
  552. lusid/models/scope_definition.py +1 -1
  553. lusid/models/sequence_definition.py +1 -1
  554. lusid/models/set_legal_entity_identifiers_request.py +1 -1
  555. lusid/models/set_legal_entity_properties_request.py +1 -1
  556. lusid/models/set_person_identifiers_request.py +1 -1
  557. lusid/models/set_person_properties_request.py +1 -1
  558. lusid/models/side_configuration_data.py +1 -1
  559. lusid/models/simple_cash_flow_loan.py +1 -1
  560. lusid/models/simple_cash_flow_loan_all_of.py +1 -1
  561. lusid/models/simple_instrument.py +1 -1
  562. lusid/models/simple_instrument_all_of.py +1 -1
  563. lusid/models/step_schedule.py +1 -1
  564. lusid/models/step_schedule_all_of.py +1 -1
  565. lusid/models/stock_split_event.py +1 -1
  566. lusid/models/stock_split_event_all_of.py +1 -1
  567. lusid/models/stream.py +1 -1
  568. lusid/models/string_list.py +1 -1
  569. lusid/models/target_tax_lot.py +1 -1
  570. lusid/models/target_tax_lot_request.py +1 -1
  571. lusid/models/term_deposit.py +1 -1
  572. lusid/models/term_deposit_all_of.py +1 -1
  573. lusid/models/touch.py +1 -1
  574. lusid/models/transaction.py +1 -1
  575. lusid/models/transaction_configuration_data.py +1 -1
  576. lusid/models/transaction_configuration_data_request.py +1 -1
  577. lusid/models/transaction_configuration_movement_data.py +1 -1
  578. lusid/models/transaction_configuration_movement_data_request.py +1 -1
  579. lusid/models/transaction_configuration_type_alias.py +1 -1
  580. lusid/models/transaction_price.py +1 -1
  581. lusid/models/transaction_property_mapping.py +1 -1
  582. lusid/models/transaction_property_mapping_request.py +1 -1
  583. lusid/models/transaction_query_parameters.py +1 -1
  584. lusid/models/transaction_reconciliation_request.py +1 -1
  585. lusid/models/transaction_request.py +1 -1
  586. lusid/models/transaction_set_configuration_data.py +1 -1
  587. lusid/models/transactions_reconciliations_response.py +1 -1
  588. lusid/models/transition_event.py +1 -1
  589. lusid/models/transition_event_all_of.py +1 -1
  590. lusid/models/trigger_event.py +1 -1
  591. lusid/models/trigger_event_all_of.py +1 -1
  592. lusid/models/typed_resource_id.py +1 -1
  593. lusid/models/update_calendar_request.py +1 -1
  594. lusid/models/update_custom_entity_definition_request.py +1 -1
  595. lusid/models/update_cut_label_definition_request.py +1 -1
  596. lusid/models/update_data_type_request.py +1 -1
  597. lusid/models/update_derived_property_definition_request.py +1 -1
  598. lusid/models/update_instrument_identifier_request.py +1 -1
  599. lusid/models/update_portfolio_group_request.py +1 -1
  600. lusid/models/update_portfolio_request.py +1 -1
  601. lusid/models/update_property_definition_request.py +1 -1
  602. lusid/models/update_relationship_definition_request.py +1 -1
  603. lusid/models/update_unit_request.py +1 -1
  604. lusid/models/upsert_complex_market_data_request.py +1 -1
  605. lusid/models/upsert_corporate_action_request.py +1 -1
  606. lusid/models/upsert_corporate_actions_response.py +1 -1
  607. lusid/models/upsert_counterparty_agreement_request.py +1 -1
  608. lusid/models/upsert_credit_support_annex_request.py +1 -1
  609. lusid/models/upsert_custom_entities_response.py +1 -1
  610. lusid/models/upsert_custom_entity_access_metadata_request.py +1 -1
  611. lusid/models/upsert_instrument_event_request.py +1 -1
  612. lusid/models/upsert_instrument_events_response.py +1 -1
  613. lusid/models/upsert_instrument_properties_response.py +1 -1
  614. lusid/models/upsert_instrument_property_request.py +1 -1
  615. lusid/models/upsert_instruments_response.py +1 -1
  616. lusid/models/upsert_legal_entities_response.py +1 -1
  617. lusid/models/upsert_legal_entity_access_metadata_request.py +1 -1
  618. lusid/models/upsert_legal_entity_request.py +1 -1
  619. lusid/models/upsert_person_access_metadata_request.py +1 -1
  620. lusid/models/upsert_person_request.py +1 -1
  621. lusid/models/upsert_portfolio_access_metadata_request.py +1 -1
  622. lusid/models/upsert_portfolio_group_access_metadata_request.py +1 -1
  623. lusid/models/upsert_portfolio_transactions_response.py +1 -1
  624. lusid/models/upsert_quote_request.py +1 -1
  625. lusid/models/upsert_quotes_response.py +1 -1
  626. lusid/models/upsert_recipe_request.py +1 -1
  627. lusid/models/upsert_reference_portfolio_constituents_request.py +1 -1
  628. lusid/models/upsert_reference_portfolio_constituents_response.py +1 -1
  629. lusid/models/upsert_returns_response.py +1 -1
  630. lusid/models/upsert_single_structured_data_response.py +1 -1
  631. lusid/models/upsert_structured_data_response.py +1 -1
  632. lusid/models/upsert_transaction_properties_response.py +1 -1
  633. lusid/models/user.py +1 -1
  634. lusid/models/valuation_request.py +1 -1
  635. lusid/models/valuation_schedule.py +1 -1
  636. lusid/models/valuations_reconciliation_request.py +1 -1
  637. lusid/models/value_type.py +1 -1
  638. lusid/models/vendor_model_rule.py +1 -1
  639. lusid/models/version.py +1 -1
  640. lusid/models/version_summary_dto.py +1 -1
  641. lusid/models/versioned_resource_list_of_a2_b_data_record.py +1 -1
  642. lusid/models/versioned_resource_list_of_a2_b_movement_record.py +1 -1
  643. lusid/models/versioned_resource_list_of_output_transaction.py +1 -1
  644. lusid/models/versioned_resource_list_of_portfolio_holding.py +1 -1
  645. lusid/models/versioned_resource_list_of_transaction.py +1 -1
  646. lusid/models/weekend_mask.py +1 -1
  647. lusid/models/weighted_instrument.py +1 -1
  648. lusid/models/weighted_instruments.py +1 -1
  649. lusid/models/yield_curve_data.py +1 -1
  650. lusid/models/yield_curve_data_all_of.py +1 -1
  651. lusid/rest.py +1 -1
  652. {lusid_sdk-1.0.281.dist-info → lusid_sdk-1.0.282.dist-info}/METADATA +1 -1
  653. lusid_sdk-1.0.282.dist-info/RECORD +670 -0
  654. lusid_sdk-1.0.281.dist-info/RECORD +0 -670
  655. {lusid_sdk-1.0.281.dist-info → lusid_sdk-1.0.282.dist-info}/WHEEL +0 -0
  656. {lusid_sdk-1.0.281.dist-info → lusid_sdk-1.0.282.dist-info}/top_level.txt +0 -0
@@ -5,7 +5,7 @@
5
5
 
6
6
  FINBOURNE Technology # noqa: E501
7
7
 
8
- The version of the OpenAPI document: 1.0.281
8
+ The version of the OpenAPI document: 1.0.282
9
9
  Contact: info@finbourne.com
10
10
  Generated by: https://openapi-generator.tech
11
11
  """
@@ -23,10 +23,14 @@ from lusid.exceptions import ( # noqa: F401
23
23
  ApiTypeError,
24
24
  ApiValueError
25
25
  )
26
+ from lusid.models.compliance_rule_response import ComplianceRuleResponse
26
27
  from lusid.models.compliance_template import ComplianceTemplate
28
+ from lusid.models.deleted_entity_response import DeletedEntityResponse
27
29
  from lusid.models.lusid_problem_details import LusidProblemDetails
28
30
  from lusid.models.lusid_validation_problem_details import LusidValidationProblemDetails
31
+ from lusid.models.paged_resource_list_of_compliance_rule_response import PagedResourceListOfComplianceRuleResponse
29
32
  from lusid.models.paged_resource_list_of_compliance_template import PagedResourceListOfComplianceTemplate
33
+ from lusid.models.upsert_compliance_rule_request import UpsertComplianceRuleRequest
30
34
 
31
35
 
32
36
  class ComplianceGenericApi(object):
@@ -41,22 +45,553 @@ class ComplianceGenericApi(object):
41
45
  api_client = ApiClient()
42
46
  self.api_client = api_client
43
47
 
48
+ def delete_compliance_rule2(self, scope, code, **kwargs): # noqa: E501
49
+ """[EARLY ACCESS] DeleteComplianceRule2: Get compliance rule. # noqa: E501
50
+
51
+ PLEASE NOTE: loopback EarlyAccess endpoint for discussion only. # noqa: E501
52
+ This method makes a synchronous HTTP request by default. To make an
53
+ asynchronous HTTP request, please pass async_req=True
54
+
55
+ >>> thread = api.delete_compliance_rule2(scope, code, async_req=True)
56
+ >>> result = thread.get()
57
+
58
+ :param scope: The compliance rule's scope. (required)
59
+ :type scope: str
60
+ :param code: The compliance rule's code. (required)
61
+ :type code: str
62
+ :param async_req: Whether to execute the request asynchronously.
63
+ :type async_req: bool, optional
64
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
65
+ be returned without reading/decoding response
66
+ data. Default is True.
67
+ :type _preload_content: bool, optional
68
+ :param _request_timeout: timeout setting for this request. If one
69
+ number provided, it will be total request
70
+ timeout. It can also be a pair (tuple) of
71
+ (connection, read) timeouts.
72
+ :return: Returns the result object.
73
+ If the method is called asynchronously,
74
+ returns the request thread.
75
+ :rtype: DeletedEntityResponse
76
+ """
77
+ kwargs['_return_http_data_only'] = True
78
+ return self.delete_compliance_rule2_with_http_info(scope, code, **kwargs) # noqa: E501
79
+
80
+ def delete_compliance_rule2_with_http_info(self, scope, code, **kwargs): # noqa: E501
81
+ """[EARLY ACCESS] DeleteComplianceRule2: Get compliance rule. # noqa: E501
82
+
83
+ PLEASE NOTE: loopback EarlyAccess endpoint for discussion only. # noqa: E501
84
+ This method makes a synchronous HTTP request by default. To make an
85
+ asynchronous HTTP request, please pass async_req=True
86
+
87
+ >>> thread = api.delete_compliance_rule2_with_http_info(scope, code, async_req=True)
88
+ >>> result = thread.get()
89
+
90
+ :param scope: The compliance rule's scope. (required)
91
+ :type scope: str
92
+ :param code: The compliance rule's code. (required)
93
+ :type code: str
94
+ :param async_req: Whether to execute the request asynchronously.
95
+ :type async_req: bool, optional
96
+ :param _return_http_data_only: response data without head status code
97
+ and headers
98
+ :type _return_http_data_only: bool, optional
99
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
100
+ be returned without reading/decoding response
101
+ data. Default is True.
102
+ :type _preload_content: bool, optional
103
+ :param _request_timeout: timeout setting for this request. If one
104
+ number provided, it will be total request
105
+ timeout. It can also be a pair (tuple) of
106
+ (connection, read) timeouts.
107
+ :param _request_auth: set to override the auth_settings for an a single
108
+ request; this effectively ignores the authentication
109
+ in the spec for a single request.
110
+ :type _request_auth: dict, optional
111
+ :return: Returns the result object, the HTTP status code, and the headers.
112
+ If the method is called asynchronously,
113
+ returns the request thread.
114
+ :rtype: (DeletedEntityResponse, int, HTTPHeaderDict)
115
+ """
116
+
117
+ local_var_params = locals()
118
+
119
+ all_params = [
120
+ 'scope',
121
+ 'code'
122
+ ]
123
+ all_params.extend(
124
+ [
125
+ 'async_req',
126
+ '_return_http_data_only',
127
+ '_preload_content',
128
+ '_request_timeout',
129
+ '_request_auth',
130
+ '_headers'
131
+ ]
132
+ )
133
+
134
+ for key, val in six.iteritems(local_var_params['kwargs']):
135
+ if key not in all_params:
136
+ raise ApiTypeError(
137
+ "Got an unexpected keyword argument '%s'"
138
+ " to method delete_compliance_rule2" % key
139
+ )
140
+ local_var_params[key] = val
141
+ del local_var_params['kwargs']
142
+ # verify the required parameter 'scope' is set
143
+ if self.api_client.client_side_validation and ('scope' not in local_var_params or # noqa: E501
144
+ local_var_params['scope'] is None): # noqa: E501
145
+ raise ApiValueError("Missing the required parameter `scope` when calling `delete_compliance_rule2`") # noqa: E501
146
+ # verify the required parameter 'code' is set
147
+ if self.api_client.client_side_validation and ('code' not in local_var_params or # noqa: E501
148
+ local_var_params['code'] is None): # noqa: E501
149
+ raise ApiValueError("Missing the required parameter `code` when calling `delete_compliance_rule2`") # noqa: E501
150
+
151
+ if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
152
+ len(local_var_params['scope']) > 64): # noqa: E501
153
+ raise ApiValueError("Invalid value for parameter `scope` when calling `delete_compliance_rule2`, length must be less than or equal to `64`") # noqa: E501
154
+ if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
155
+ len(local_var_params['scope']) < 1): # noqa: E501
156
+ raise ApiValueError("Invalid value for parameter `scope` when calling `delete_compliance_rule2`, length must be greater than or equal to `1`") # noqa: E501
157
+ 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
158
+ raise ApiValueError("Invalid value for parameter `scope` when calling `delete_compliance_rule2`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
159
+ if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
160
+ len(local_var_params['code']) > 64): # noqa: E501
161
+ raise ApiValueError("Invalid value for parameter `code` when calling `delete_compliance_rule2`, length must be less than or equal to `64`") # noqa: E501
162
+ if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
163
+ len(local_var_params['code']) < 1): # noqa: E501
164
+ raise ApiValueError("Invalid value for parameter `code` when calling `delete_compliance_rule2`, length must be greater than or equal to `1`") # noqa: E501
165
+ 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
166
+ raise ApiValueError("Invalid value for parameter `code` when calling `delete_compliance_rule2`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
167
+ collection_formats = {}
168
+
169
+ path_params = {}
170
+ if 'scope' in local_var_params:
171
+ path_params['scope'] = local_var_params['scope'] # noqa: E501
172
+ if 'code' in local_var_params:
173
+ path_params['code'] = local_var_params['code'] # 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
+ # HTTP header `Accept`
184
+ header_params['Accept'] = self.api_client.select_header_accept(
185
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
186
+
187
+ header_params['Accept-Encoding'] = "gzip, deflate, br"
188
+
189
+
190
+ # set the LUSID header
191
+ header_params['X-LUSID-SDK-Language'] = 'Python'
192
+ header_params['X-LUSID-SDK-Version'] = '1.0.282'
193
+
194
+ # Authentication setting
195
+ auth_settings = ['oauth2'] # noqa: E501
196
+
197
+ response_types_map = {
198
+ 200: "DeletedEntityResponse",
199
+ 400: "LusidValidationProblemDetails",
200
+ }
201
+
202
+ return self.api_client.call_api(
203
+ '/api/compliance/generic/rules/{scope}/{code}', 'DELETE',
204
+ path_params,
205
+ query_params,
206
+ header_params,
207
+ body=body_params,
208
+ post_params=form_params,
209
+ files=local_var_files,
210
+ response_types_map=response_types_map,
211
+ auth_settings=auth_settings,
212
+ async_req=local_var_params.get('async_req'),
213
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
214
+ _preload_content=local_var_params.get('_preload_content', True),
215
+ _request_timeout=local_var_params.get('_request_timeout'),
216
+ collection_formats=collection_formats,
217
+ _request_auth=local_var_params.get('_request_auth'))
218
+
219
+ def get_compliance_rule2(self, scope, code, **kwargs): # noqa: E501
220
+ """[EARLY ACCESS] GetComplianceRule2: Get compliance rule. # noqa: E501
221
+
222
+ PLEASE NOTE: loopback EarlyAccess endpoint for discussion only. # noqa: E501
223
+ This method makes a synchronous HTTP request by default. To make an
224
+ asynchronous HTTP request, please pass async_req=True
225
+
226
+ >>> thread = api.get_compliance_rule2(scope, code, async_req=True)
227
+ >>> result = thread.get()
228
+
229
+ :param scope: The compliance rule's scope. (required)
230
+ :type scope: str
231
+ :param code: The compliance rule's code. (required)
232
+ :type code: str
233
+ :param as_at: Optional. Asat time for query.
234
+ :type as_at: datetime
235
+ :param async_req: Whether to execute the request asynchronously.
236
+ :type async_req: bool, optional
237
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
238
+ be returned without reading/decoding response
239
+ data. Default is True.
240
+ :type _preload_content: bool, optional
241
+ :param _request_timeout: timeout setting for this request. If one
242
+ number provided, it will be total request
243
+ timeout. It can also be a pair (tuple) of
244
+ (connection, read) timeouts.
245
+ :return: Returns the result object.
246
+ If the method is called asynchronously,
247
+ returns the request thread.
248
+ :rtype: ComplianceRuleResponse
249
+ """
250
+ kwargs['_return_http_data_only'] = True
251
+ return self.get_compliance_rule2_with_http_info(scope, code, **kwargs) # noqa: E501
252
+
253
+ def get_compliance_rule2_with_http_info(self, scope, code, **kwargs): # noqa: E501
254
+ """[EARLY ACCESS] GetComplianceRule2: Get compliance rule. # noqa: E501
255
+
256
+ PLEASE NOTE: loopback EarlyAccess endpoint for discussion only. # noqa: E501
257
+ This method makes a synchronous HTTP request by default. To make an
258
+ asynchronous HTTP request, please pass async_req=True
259
+
260
+ >>> thread = api.get_compliance_rule2_with_http_info(scope, code, async_req=True)
261
+ >>> result = thread.get()
262
+
263
+ :param scope: The compliance rule's scope. (required)
264
+ :type scope: str
265
+ :param code: The compliance rule's code. (required)
266
+ :type code: str
267
+ :param as_at: Optional. Asat time for query.
268
+ :type as_at: datetime
269
+ :param async_req: Whether to execute the request asynchronously.
270
+ :type async_req: bool, optional
271
+ :param _return_http_data_only: response data without head status code
272
+ and headers
273
+ :type _return_http_data_only: bool, optional
274
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
275
+ be returned without reading/decoding response
276
+ data. Default is True.
277
+ :type _preload_content: bool, optional
278
+ :param _request_timeout: timeout setting for this request. If one
279
+ number provided, it will be total request
280
+ timeout. It can also be a pair (tuple) of
281
+ (connection, read) timeouts.
282
+ :param _request_auth: set to override the auth_settings for an a single
283
+ request; this effectively ignores the authentication
284
+ in the spec for a single request.
285
+ :type _request_auth: dict, optional
286
+ :return: Returns the result object, the HTTP status code, and the headers.
287
+ If the method is called asynchronously,
288
+ returns the request thread.
289
+ :rtype: (ComplianceRuleResponse, int, HTTPHeaderDict)
290
+ """
291
+
292
+ local_var_params = locals()
293
+
294
+ all_params = [
295
+ 'scope',
296
+ 'code',
297
+ 'as_at'
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 get_compliance_rule2" % 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 `get_compliance_rule2`") # 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 `get_compliance_rule2`") # 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 `get_compliance_rule2`, 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 `get_compliance_rule2`, 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 `get_compliance_rule2`, 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 `get_compliance_rule2`, 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 `get_compliance_rule2`, 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 `get_compliance_rule2`, 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
+ if 'as_at' in local_var_params and local_var_params['as_at'] is not None: # noqa: E501
353
+ query_params.append(('asAt', local_var_params['as_at'])) # noqa: E501
354
+
355
+ header_params = dict(local_var_params.get('_headers', {}))
356
+
357
+ form_params = []
358
+ local_var_files = {}
359
+
360
+ body_params = None
361
+ # HTTP header `Accept`
362
+ header_params['Accept'] = self.api_client.select_header_accept(
363
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
364
+
365
+ header_params['Accept-Encoding'] = "gzip, deflate, br"
366
+
367
+
368
+ # set the LUSID header
369
+ header_params['X-LUSID-SDK-Language'] = 'Python'
370
+ header_params['X-LUSID-SDK-Version'] = '1.0.282'
371
+
372
+ # Authentication setting
373
+ auth_settings = ['oauth2'] # noqa: E501
374
+
375
+ response_types_map = {
376
+ 200: "ComplianceRuleResponse",
377
+ 400: "LusidValidationProblemDetails",
378
+ }
379
+
380
+ return self.api_client.call_api(
381
+ '/api/compliance/generic/rules/{scope}/{code}', 'GET',
382
+ path_params,
383
+ query_params,
384
+ header_params,
385
+ body=body_params,
386
+ post_params=form_params,
387
+ files=local_var_files,
388
+ response_types_map=response_types_map,
389
+ auth_settings=auth_settings,
390
+ async_req=local_var_params.get('async_req'),
391
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
392
+ _preload_content=local_var_params.get('_preload_content', True),
393
+ _request_timeout=local_var_params.get('_request_timeout'),
394
+ collection_formats=collection_formats,
395
+ _request_auth=local_var_params.get('_request_auth'))
396
+
44
397
  def get_compliance_template(self, scope, code, **kwargs): # noqa: E501
45
398
  """[EARLY ACCESS] GetComplianceTemplate: Get the requested compliance template. # noqa: E501
46
399
 
47
- Use this endpoint to fetch a specific compliance template. # noqa: E501
400
+ Use this endpoint to fetch a specific compliance template. # noqa: E501
401
+ This method makes a synchronous HTTP request by default. To make an
402
+ asynchronous HTTP request, please pass async_req=True
403
+
404
+ >>> thread = api.get_compliance_template(scope, code, async_req=True)
405
+ >>> result = thread.get()
406
+
407
+ :param scope: Scope of TemplateID (required)
408
+ :type scope: str
409
+ :param code: Code of TemplateID (required)
410
+ :type code: str
411
+ :param as_at: Optional. The time at which to get results from. Default : latest
412
+ :type as_at: datetime
413
+ :param async_req: Whether to execute the request asynchronously.
414
+ :type async_req: bool, optional
415
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
416
+ be returned without reading/decoding response
417
+ data. Default is True.
418
+ :type _preload_content: bool, optional
419
+ :param _request_timeout: timeout setting for this request. If one
420
+ number provided, it will be total request
421
+ timeout. It can also be a pair (tuple) of
422
+ (connection, read) timeouts.
423
+ :return: Returns the result object.
424
+ If the method is called asynchronously,
425
+ returns the request thread.
426
+ :rtype: ComplianceTemplate
427
+ """
428
+ kwargs['_return_http_data_only'] = True
429
+ return self.get_compliance_template_with_http_info(scope, code, **kwargs) # noqa: E501
430
+
431
+ def get_compliance_template_with_http_info(self, scope, code, **kwargs): # noqa: E501
432
+ """[EARLY ACCESS] GetComplianceTemplate: Get the requested compliance template. # noqa: E501
433
+
434
+ Use this endpoint to fetch a specific compliance template. # noqa: E501
435
+ This method makes a synchronous HTTP request by default. To make an
436
+ asynchronous HTTP request, please pass async_req=True
437
+
438
+ >>> thread = api.get_compliance_template_with_http_info(scope, code, async_req=True)
439
+ >>> result = thread.get()
440
+
441
+ :param scope: Scope of TemplateID (required)
442
+ :type scope: str
443
+ :param code: Code of TemplateID (required)
444
+ :type code: str
445
+ :param as_at: Optional. The time at which to get results from. Default : latest
446
+ :type as_at: datetime
447
+ :param async_req: Whether to execute the request asynchronously.
448
+ :type async_req: bool, optional
449
+ :param _return_http_data_only: response data without head status code
450
+ and headers
451
+ :type _return_http_data_only: bool, optional
452
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
453
+ be returned without reading/decoding response
454
+ data. Default is True.
455
+ :type _preload_content: bool, optional
456
+ :param _request_timeout: timeout setting for this request. If one
457
+ number provided, it will be total request
458
+ timeout. It can also be a pair (tuple) of
459
+ (connection, read) timeouts.
460
+ :param _request_auth: set to override the auth_settings for an a single
461
+ request; this effectively ignores the authentication
462
+ in the spec for a single request.
463
+ :type _request_auth: dict, optional
464
+ :return: Returns the result object, the HTTP status code, and the headers.
465
+ If the method is called asynchronously,
466
+ returns the request thread.
467
+ :rtype: (ComplianceTemplate, int, HTTPHeaderDict)
468
+ """
469
+
470
+ local_var_params = locals()
471
+
472
+ all_params = [
473
+ 'scope',
474
+ 'code',
475
+ 'as_at'
476
+ ]
477
+ all_params.extend(
478
+ [
479
+ 'async_req',
480
+ '_return_http_data_only',
481
+ '_preload_content',
482
+ '_request_timeout',
483
+ '_request_auth',
484
+ '_headers'
485
+ ]
486
+ )
487
+
488
+ for key, val in six.iteritems(local_var_params['kwargs']):
489
+ if key not in all_params:
490
+ raise ApiTypeError(
491
+ "Got an unexpected keyword argument '%s'"
492
+ " to method get_compliance_template" % key
493
+ )
494
+ local_var_params[key] = val
495
+ del local_var_params['kwargs']
496
+ # verify the required parameter 'scope' is set
497
+ if self.api_client.client_side_validation and ('scope' not in local_var_params or # noqa: E501
498
+ local_var_params['scope'] is None): # noqa: E501
499
+ raise ApiValueError("Missing the required parameter `scope` when calling `get_compliance_template`") # noqa: E501
500
+ # verify the required parameter 'code' is set
501
+ if self.api_client.client_side_validation and ('code' not in local_var_params or # noqa: E501
502
+ local_var_params['code'] is None): # noqa: E501
503
+ raise ApiValueError("Missing the required parameter `code` when calling `get_compliance_template`") # noqa: E501
504
+
505
+ if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
506
+ len(local_var_params['scope']) > 64): # noqa: E501
507
+ raise ApiValueError("Invalid value for parameter `scope` when calling `get_compliance_template`, length must be less than or equal to `64`") # noqa: E501
508
+ if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
509
+ len(local_var_params['scope']) < 1): # noqa: E501
510
+ raise ApiValueError("Invalid value for parameter `scope` when calling `get_compliance_template`, length must be greater than or equal to `1`") # noqa: E501
511
+ 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
512
+ raise ApiValueError("Invalid value for parameter `scope` when calling `get_compliance_template`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
513
+ if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
514
+ len(local_var_params['code']) > 64): # noqa: E501
515
+ raise ApiValueError("Invalid value for parameter `code` when calling `get_compliance_template`, length must be less than or equal to `64`") # noqa: E501
516
+ if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
517
+ len(local_var_params['code']) < 1): # noqa: E501
518
+ raise ApiValueError("Invalid value for parameter `code` when calling `get_compliance_template`, length must be greater than or equal to `1`") # noqa: E501
519
+ 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
520
+ raise ApiValueError("Invalid value for parameter `code` when calling `get_compliance_template`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
521
+ collection_formats = {}
522
+
523
+ path_params = {}
524
+ if 'scope' in local_var_params:
525
+ path_params['scope'] = local_var_params['scope'] # noqa: E501
526
+ if 'code' in local_var_params:
527
+ path_params['code'] = local_var_params['code'] # noqa: E501
528
+
529
+ query_params = []
530
+ if 'as_at' in local_var_params and local_var_params['as_at'] is not None: # noqa: E501
531
+ query_params.append(('asAt', local_var_params['as_at'])) # noqa: E501
532
+
533
+ header_params = dict(local_var_params.get('_headers', {}))
534
+
535
+ form_params = []
536
+ local_var_files = {}
537
+
538
+ body_params = None
539
+ # HTTP header `Accept`
540
+ header_params['Accept'] = self.api_client.select_header_accept(
541
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
542
+
543
+ header_params['Accept-Encoding'] = "gzip, deflate, br"
544
+
545
+
546
+ # set the LUSID header
547
+ header_params['X-LUSID-SDK-Language'] = 'Python'
548
+ header_params['X-LUSID-SDK-Version'] = '1.0.282'
549
+
550
+ # Authentication setting
551
+ auth_settings = ['oauth2'] # noqa: E501
552
+
553
+ response_types_map = {
554
+ 200: "ComplianceTemplate",
555
+ 400: "LusidValidationProblemDetails",
556
+ }
557
+
558
+ return self.api_client.call_api(
559
+ '/api/compliance/templates/{scope}/{code}', 'GET',
560
+ path_params,
561
+ query_params,
562
+ header_params,
563
+ body=body_params,
564
+ post_params=form_params,
565
+ files=local_var_files,
566
+ response_types_map=response_types_map,
567
+ auth_settings=auth_settings,
568
+ async_req=local_var_params.get('async_req'),
569
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
570
+ _preload_content=local_var_params.get('_preload_content', True),
571
+ _request_timeout=local_var_params.get('_request_timeout'),
572
+ collection_formats=collection_formats,
573
+ _request_auth=local_var_params.get('_request_auth'))
574
+
575
+ def list_compliance_rules2(self, **kwargs): # noqa: E501
576
+ """[EARLY ACCESS] ListComplianceRules2: List compliance rules. # noqa: E501
577
+
578
+ PLEASE NOTE: loopback EarlyAccess endpoint for discussion only. # noqa: E501
48
579
  This method makes a synchronous HTTP request by default. To make an
49
580
  asynchronous HTTP request, please pass async_req=True
50
581
 
51
- >>> thread = api.get_compliance_template(scope, code, async_req=True)
582
+ >>> thread = api.list_compliance_rules2(async_req=True)
52
583
  >>> result = thread.get()
53
584
 
54
- :param scope: Scope of TemplateID (required)
55
- :type scope: str
56
- :param code: Code of TemplateID (required)
57
- :type code: str
58
- :param as_at: Optional. The time at which to get results from. Default : latest
585
+ :param as_at: Optional. Asat time.
59
586
  :type as_at: datetime
587
+ :param page: Optional. Pagination token.
588
+ :type page: str
589
+ :param start: Optional. Entry at which to start.
590
+ :type start: int
591
+ :param limit: Optional. Entries per page.
592
+ :type limit: int
593
+ :param filter: Optional. Filter.
594
+ :type filter: str
60
595
  :param async_req: Whether to execute the request asynchronously.
61
596
  :type async_req: bool, optional
62
597
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -70,27 +605,31 @@ class ComplianceGenericApi(object):
70
605
  :return: Returns the result object.
71
606
  If the method is called asynchronously,
72
607
  returns the request thread.
73
- :rtype: ComplianceTemplate
608
+ :rtype: PagedResourceListOfComplianceRuleResponse
74
609
  """
75
610
  kwargs['_return_http_data_only'] = True
76
- return self.get_compliance_template_with_http_info(scope, code, **kwargs) # noqa: E501
611
+ return self.list_compliance_rules2_with_http_info(**kwargs) # noqa: E501
77
612
 
78
- def get_compliance_template_with_http_info(self, scope, code, **kwargs): # noqa: E501
79
- """[EARLY ACCESS] GetComplianceTemplate: Get the requested compliance template. # noqa: E501
613
+ def list_compliance_rules2_with_http_info(self, **kwargs): # noqa: E501
614
+ """[EARLY ACCESS] ListComplianceRules2: List compliance rules. # noqa: E501
80
615
 
81
- Use this endpoint to fetch a specific compliance template. # noqa: E501
616
+ PLEASE NOTE: loopback EarlyAccess endpoint for discussion only. # noqa: E501
82
617
  This method makes a synchronous HTTP request by default. To make an
83
618
  asynchronous HTTP request, please pass async_req=True
84
619
 
85
- >>> thread = api.get_compliance_template_with_http_info(scope, code, async_req=True)
620
+ >>> thread = api.list_compliance_rules2_with_http_info(async_req=True)
86
621
  >>> result = thread.get()
87
622
 
88
- :param scope: Scope of TemplateID (required)
89
- :type scope: str
90
- :param code: Code of TemplateID (required)
91
- :type code: str
92
- :param as_at: Optional. The time at which to get results from. Default : latest
623
+ :param as_at: Optional. Asat time.
93
624
  :type as_at: datetime
625
+ :param page: Optional. Pagination token.
626
+ :type page: str
627
+ :param start: Optional. Entry at which to start.
628
+ :type start: int
629
+ :param limit: Optional. Entries per page.
630
+ :type limit: int
631
+ :param filter: Optional. Filter.
632
+ :type filter: str
94
633
  :param async_req: Whether to execute the request asynchronously.
95
634
  :type async_req: bool, optional
96
635
  :param _return_http_data_only: response data without head status code
@@ -111,15 +650,17 @@ class ComplianceGenericApi(object):
111
650
  :return: Returns the result object, the HTTP status code, and the headers.
112
651
  If the method is called asynchronously,
113
652
  returns the request thread.
114
- :rtype: (ComplianceTemplate, int, HTTPHeaderDict)
653
+ :rtype: (PagedResourceListOfComplianceRuleResponse, int, HTTPHeaderDict)
115
654
  """
116
655
 
117
656
  local_var_params = locals()
118
657
 
119
658
  all_params = [
120
- 'scope',
121
- 'code',
122
- 'as_at'
659
+ 'as_at',
660
+ 'page',
661
+ 'start',
662
+ 'limit',
663
+ 'filter'
123
664
  ]
124
665
  all_params.extend(
125
666
  [
@@ -136,46 +677,46 @@ class ComplianceGenericApi(object):
136
677
  if key not in all_params:
137
678
  raise ApiTypeError(
138
679
  "Got an unexpected keyword argument '%s'"
139
- " to method get_compliance_template" % key
680
+ " to method list_compliance_rules2" % key
140
681
  )
141
682
  local_var_params[key] = val
142
683
  del local_var_params['kwargs']
143
- # verify the required parameter 'scope' is set
144
- if self.api_client.client_side_validation and ('scope' not in local_var_params or # noqa: E501
145
- local_var_params['scope'] is None): # noqa: E501
146
- raise ApiValueError("Missing the required parameter `scope` when calling `get_compliance_template`") # noqa: E501
147
- # verify the required parameter 'code' is set
148
- if self.api_client.client_side_validation and ('code' not in local_var_params or # noqa: E501
149
- local_var_params['code'] is None): # noqa: E501
150
- raise ApiValueError("Missing the required parameter `code` when calling `get_compliance_template`") # noqa: E501
151
684
 
152
- if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
153
- len(local_var_params['scope']) > 64): # noqa: E501
154
- raise ApiValueError("Invalid value for parameter `scope` when calling `get_compliance_template`, length must be less than or equal to `64`") # noqa: E501
155
- if self.api_client.client_side_validation and ('scope' in local_var_params and # noqa: E501
156
- len(local_var_params['scope']) < 1): # noqa: E501
157
- raise ApiValueError("Invalid value for parameter `scope` when calling `get_compliance_template`, length must be greater than or equal to `1`") # noqa: E501
158
- 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
159
- raise ApiValueError("Invalid value for parameter `scope` when calling `get_compliance_template`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
160
- if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
161
- len(local_var_params['code']) > 64): # noqa: E501
162
- raise ApiValueError("Invalid value for parameter `code` when calling `get_compliance_template`, length must be less than or equal to `64`") # noqa: E501
163
- if self.api_client.client_side_validation and ('code' in local_var_params and # noqa: E501
164
- len(local_var_params['code']) < 1): # noqa: E501
165
- raise ApiValueError("Invalid value for parameter `code` when calling `get_compliance_template`, length must be greater than or equal to `1`") # noqa: E501
166
- 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
167
- raise ApiValueError("Invalid value for parameter `code` when calling `get_compliance_template`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
685
+ if self.api_client.client_side_validation and ('page' in local_var_params and # noqa: E501
686
+ len(local_var_params['page']) > 500): # noqa: E501
687
+ raise ApiValueError("Invalid value for parameter `page` when calling `list_compliance_rules2`, length must be less than or equal to `500`") # noqa: E501
688
+ if self.api_client.client_side_validation and ('page' in local_var_params and # noqa: E501
689
+ len(local_var_params['page']) < 1): # noqa: E501
690
+ raise ApiValueError("Invalid value for parameter `page` when calling `list_compliance_rules2`, length must be greater than or equal to `1`") # noqa: E501
691
+ 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
692
+ raise ApiValueError("Invalid value for parameter `page` when calling `list_compliance_rules2`, must conform to the pattern `/^[a-zA-Z0-9\+\/]*={0,3}$/`") # noqa: E501
693
+ if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 5000: # noqa: E501
694
+ raise ApiValueError("Invalid value for parameter `limit` when calling `list_compliance_rules2`, must be a value less than or equal to `5000`") # noqa: E501
695
+ if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1: # noqa: E501
696
+ raise ApiValueError("Invalid value for parameter `limit` when calling `list_compliance_rules2`, must be a value greater than or equal to `1`") # noqa: E501
697
+ if self.api_client.client_side_validation and ('filter' in local_var_params and # noqa: E501
698
+ len(local_var_params['filter']) > 16384): # noqa: E501
699
+ raise ApiValueError("Invalid value for parameter `filter` when calling `list_compliance_rules2`, length must be less than or equal to `16384`") # noqa: E501
700
+ if self.api_client.client_side_validation and ('filter' in local_var_params and # noqa: E501
701
+ len(local_var_params['filter']) < 0): # noqa: E501
702
+ raise ApiValueError("Invalid value for parameter `filter` when calling `list_compliance_rules2`, length must be greater than or equal to `0`") # noqa: E501
703
+ 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
704
+ raise ApiValueError("Invalid value for parameter `filter` when calling `list_compliance_rules2`, must conform to the pattern `/^[\s\S]*$/`") # noqa: E501
168
705
  collection_formats = {}
169
706
 
170
707
  path_params = {}
171
- if 'scope' in local_var_params:
172
- path_params['scope'] = local_var_params['scope'] # noqa: E501
173
- if 'code' in local_var_params:
174
- path_params['code'] = local_var_params['code'] # noqa: E501
175
708
 
176
709
  query_params = []
177
710
  if 'as_at' in local_var_params and local_var_params['as_at'] is not None: # noqa: E501
178
711
  query_params.append(('asAt', local_var_params['as_at'])) # noqa: E501
712
+ if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501
713
+ query_params.append(('page', local_var_params['page'])) # noqa: E501
714
+ if 'start' in local_var_params and local_var_params['start'] is not None: # noqa: E501
715
+ query_params.append(('start', local_var_params['start'])) # noqa: E501
716
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
717
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
718
+ if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501
719
+ query_params.append(('filter', local_var_params['filter'])) # noqa: E501
179
720
 
180
721
  header_params = dict(local_var_params.get('_headers', {}))
181
722
 
@@ -192,18 +733,18 @@ class ComplianceGenericApi(object):
192
733
 
193
734
  # set the LUSID header
194
735
  header_params['X-LUSID-SDK-Language'] = 'Python'
195
- header_params['X-LUSID-SDK-Version'] = '1.0.281'
736
+ header_params['X-LUSID-SDK-Version'] = '1.0.282'
196
737
 
197
738
  # Authentication setting
198
739
  auth_settings = ['oauth2'] # noqa: E501
199
740
 
200
741
  response_types_map = {
201
- 200: "ComplianceTemplate",
742
+ 200: "PagedResourceListOfComplianceRuleResponse",
202
743
  400: "LusidValidationProblemDetails",
203
744
  }
204
745
 
205
746
  return self.api_client.call_api(
206
- '/api/compliance/templates/{scope}/{code}', 'GET',
747
+ '/api/compliance/generic/rules', 'GET',
207
748
  path_params,
208
749
  query_params,
209
750
  header_params,
@@ -380,7 +921,7 @@ class ComplianceGenericApi(object):
380
921
 
381
922
  # set the LUSID header
382
923
  header_params['X-LUSID-SDK-Language'] = 'Python'
383
- header_params['X-LUSID-SDK-Version'] = '1.0.281'
924
+ header_params['X-LUSID-SDK-Version'] = '1.0.282'
384
925
 
385
926
  # Authentication setting
386
927
  auth_settings = ['oauth2'] # noqa: E501
@@ -406,3 +947,146 @@ class ComplianceGenericApi(object):
406
947
  _request_timeout=local_var_params.get('_request_timeout'),
407
948
  collection_formats=collection_formats,
408
949
  _request_auth=local_var_params.get('_request_auth'))
950
+
951
+ def upsert_compliance_rule(self, **kwargs): # noqa: E501
952
+ """[EARLY ACCESS] UpsertComplianceRule: Upsert a compliance rule. # noqa: E501
953
+
954
+ PLEASE NOTE: loopback EarlyAccess endpoint for discussion only. # noqa: E501
955
+ This method makes a synchronous HTTP request by default. To make an
956
+ asynchronous HTTP request, please pass async_req=True
957
+
958
+ >>> thread = api.upsert_compliance_rule(async_req=True)
959
+ >>> result = thread.get()
960
+
961
+ :param upsert_compliance_rule_request:
962
+ :type upsert_compliance_rule_request: UpsertComplianceRuleRequest
963
+ :param async_req: Whether to execute the request asynchronously.
964
+ :type async_req: bool, optional
965
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
966
+ be returned without reading/decoding response
967
+ data. Default is True.
968
+ :type _preload_content: bool, optional
969
+ :param _request_timeout: timeout setting for this request. If one
970
+ number provided, it will be total request
971
+ timeout. It can also be a pair (tuple) of
972
+ (connection, read) timeouts.
973
+ :return: Returns the result object.
974
+ If the method is called asynchronously,
975
+ returns the request thread.
976
+ :rtype: ComplianceRuleResponse
977
+ """
978
+ kwargs['_return_http_data_only'] = True
979
+ return self.upsert_compliance_rule_with_http_info(**kwargs) # noqa: E501
980
+
981
+ def upsert_compliance_rule_with_http_info(self, **kwargs): # noqa: E501
982
+ """[EARLY ACCESS] UpsertComplianceRule: Upsert a compliance rule. # noqa: E501
983
+
984
+ PLEASE NOTE: loopback EarlyAccess endpoint for discussion only. # noqa: E501
985
+ This method makes a synchronous HTTP request by default. To make an
986
+ asynchronous HTTP request, please pass async_req=True
987
+
988
+ >>> thread = api.upsert_compliance_rule_with_http_info(async_req=True)
989
+ >>> result = thread.get()
990
+
991
+ :param upsert_compliance_rule_request:
992
+ :type upsert_compliance_rule_request: UpsertComplianceRuleRequest
993
+ :param async_req: Whether to execute the request asynchronously.
994
+ :type async_req: bool, optional
995
+ :param _return_http_data_only: response data without head status code
996
+ and headers
997
+ :type _return_http_data_only: bool, optional
998
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
999
+ be returned without reading/decoding response
1000
+ data. Default is True.
1001
+ :type _preload_content: bool, optional
1002
+ :param _request_timeout: timeout setting for this request. If one
1003
+ number provided, it will be total request
1004
+ timeout. It can also be a pair (tuple) of
1005
+ (connection, read) timeouts.
1006
+ :param _request_auth: set to override the auth_settings for an a single
1007
+ request; this effectively ignores the authentication
1008
+ in the spec for a single request.
1009
+ :type _request_auth: dict, optional
1010
+ :return: Returns the result object, the HTTP status code, and the headers.
1011
+ If the method is called asynchronously,
1012
+ returns the request thread.
1013
+ :rtype: (ComplianceRuleResponse, int, HTTPHeaderDict)
1014
+ """
1015
+
1016
+ local_var_params = locals()
1017
+
1018
+ all_params = [
1019
+ 'upsert_compliance_rule_request'
1020
+ ]
1021
+ all_params.extend(
1022
+ [
1023
+ 'async_req',
1024
+ '_return_http_data_only',
1025
+ '_preload_content',
1026
+ '_request_timeout',
1027
+ '_request_auth',
1028
+ '_headers'
1029
+ ]
1030
+ )
1031
+
1032
+ for key, val in six.iteritems(local_var_params['kwargs']):
1033
+ if key not in all_params:
1034
+ raise ApiTypeError(
1035
+ "Got an unexpected keyword argument '%s'"
1036
+ " to method upsert_compliance_rule" % key
1037
+ )
1038
+ local_var_params[key] = val
1039
+ del local_var_params['kwargs']
1040
+
1041
+ collection_formats = {}
1042
+
1043
+ path_params = {}
1044
+
1045
+ query_params = []
1046
+
1047
+ header_params = dict(local_var_params.get('_headers', {}))
1048
+
1049
+ form_params = []
1050
+ local_var_files = {}
1051
+
1052
+ body_params = None
1053
+ if 'upsert_compliance_rule_request' in local_var_params:
1054
+ body_params = local_var_params['upsert_compliance_rule_request']
1055
+ # HTTP header `Accept`
1056
+ header_params['Accept'] = self.api_client.select_header_accept(
1057
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
1058
+
1059
+ header_params['Accept-Encoding'] = "gzip, deflate, br"
1060
+
1061
+ # HTTP header `Content-Type`
1062
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1063
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
1064
+
1065
+ # set the LUSID header
1066
+ header_params['X-LUSID-SDK-Language'] = 'Python'
1067
+ header_params['X-LUSID-SDK-Version'] = '1.0.282'
1068
+
1069
+ # Authentication setting
1070
+ auth_settings = ['oauth2'] # noqa: E501
1071
+
1072
+ response_types_map = {
1073
+ 200: "ComplianceRuleResponse",
1074
+ 400: "LusidValidationProblemDetails",
1075
+ }
1076
+
1077
+ return self.api_client.call_api(
1078
+ '/api/compliance/generic/rules', 'POST',
1079
+ path_params,
1080
+ query_params,
1081
+ header_params,
1082
+ body=body_params,
1083
+ post_params=form_params,
1084
+ files=local_var_files,
1085
+ response_types_map=response_types_map,
1086
+ auth_settings=auth_settings,
1087
+ async_req=local_var_params.get('async_req'),
1088
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1089
+ _preload_content=local_var_params.get('_preload_content', True),
1090
+ _request_timeout=local_var_params.get('_request_timeout'),
1091
+ collection_formats=collection_formats,
1092
+ _request_auth=local_var_params.get('_request_auth'))