lusid-sdk 2.1.405__py3-none-any.whl → 2.1.537__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. lusid/__init__.py +142 -8
  2. lusid/api/__init__.py +2 -2
  3. lusid/api/abor_api.py +126 -133
  4. lusid/api/abor_configuration_api.py +46 -45
  5. lusid/api/address_key_definition_api.py +28 -27
  6. lusid/api/aggregation_api.py +37 -36
  7. lusid/api/allocations_api.py +39 -38
  8. lusid/api/amortisation_rule_sets_api.py +55 -54
  9. lusid/api/application_metadata_api.py +28 -27
  10. lusid/api/blocks_api.py +37 -36
  11. lusid/api/calendars_api.py +469 -111
  12. lusid/api/chart_of_accounts_api.py +454 -279
  13. lusid/api/complex_market_data_api.py +37 -36
  14. lusid/api/compliance_api.py +136 -135
  15. lusid/api/configuration_recipe_api.py +100 -99
  16. lusid/api/conventions_api.py +109 -108
  17. lusid/api/corporate_action_sources_api.py +82 -81
  18. lusid/api/counterparties_api.py +73 -72
  19. lusid/api/custom_entities_api.py +102 -101
  20. lusid/api/custom_entity_definitions_api.py +37 -36
  21. lusid/api/custom_entity_types_api.py +37 -36
  22. lusid/api/cut_label_definitions_api.py +46 -45
  23. lusid/api/data_types_api.py +248 -72
  24. lusid/api/derived_transaction_portfolios_api.py +19 -18
  25. lusid/api/entities_api.py +431 -46
  26. lusid/api/executions_api.py +37 -36
  27. lusid/api/fee_types_api.py +55 -54
  28. lusid/api/{fund_configurations_api.py → fund_configuration_api.py} +222 -46
  29. lusid/api/funds_api.py +337 -162
  30. lusid/api/group_reconciliations_api.py +2182 -63
  31. lusid/api/instrument_event_types_api.py +64 -63
  32. lusid/api/instrument_events_api.py +46 -45
  33. lusid/api/instruments_api.py +374 -186
  34. lusid/api/legacy_compliance_api.py +73 -72
  35. lusid/api/legal_entities_api.py +167 -166
  36. lusid/api/order_graph_api.py +32 -31
  37. lusid/api/order_instructions_api.py +37 -36
  38. lusid/api/order_management_api.py +251 -90
  39. lusid/api/orders_api.py +37 -36
  40. lusid/api/packages_api.py +37 -36
  41. lusid/api/participations_api.py +37 -36
  42. lusid/api/persons_api.py +163 -162
  43. lusid/api/placements_api.py +37 -36
  44. lusid/api/portfolio_groups_api.py +235 -234
  45. lusid/api/portfolios_api.py +307 -309
  46. lusid/api/property_definitions_api.py +100 -99
  47. lusid/api/queryable_keys_api.py +10 -9
  48. lusid/api/quotes_api.py +82 -81
  49. lusid/api/reconciliations_api.py +136 -135
  50. lusid/api/reference_lists_api.py +39 -38
  51. lusid/api/reference_portfolio_api.py +213 -36
  52. lusid/api/relation_definitions_api.py +28 -27
  53. lusid/api/relations_api.py +19 -18
  54. lusid/api/relationship_definitions_api.py +46 -45
  55. lusid/api/relationships_api.py +19 -18
  56. lusid/api/schemas_api.py +37 -36
  57. lusid/api/scopes_api.py +19 -18
  58. lusid/api/scripted_translation_api.py +73 -72
  59. lusid/api/search_api.py +37 -36
  60. lusid/api/sequences_api.py +37 -36
  61. lusid/api/staged_modifications_api.py +37 -36
  62. lusid/api/staging_rule_set_api.py +46 -45
  63. lusid/api/structured_result_data_api.py +82 -81
  64. lusid/api/system_configuration_api.py +64 -63
  65. lusid/api/tax_rule_sets_api.py +46 -45
  66. lusid/api/transaction_configuration_api.py +100 -99
  67. lusid/api/transaction_fees_api.py +46 -45
  68. lusid/api/transaction_portfolios_api.py +771 -328
  69. lusid/api/translation_api.py +19 -18
  70. lusid/api/workspace_api.py +181 -180
  71. lusid/api_client.py +26 -17
  72. lusid/configuration.py +87 -2
  73. lusid/extensions/api_client.py +25 -17
  74. lusid/extensions/api_client_factory.py +14 -5
  75. lusid/extensions/api_configuration.py +50 -1
  76. lusid/extensions/configuration_loaders.py +39 -11
  77. lusid/extensions/configuration_options.py +67 -0
  78. lusid/extensions/rest.py +78 -26
  79. lusid/extensions/retry.py +109 -37
  80. lusid/models/__init__.py +140 -6
  81. lusid/models/access_metadata_value.py +1 -1
  82. lusid/models/accounting_method.py +7 -0
  83. lusid/models/accumulation_event.py +3 -3
  84. lusid/models/address_key_list.py +3 -3
  85. lusid/models/amortisation_event.py +3 -3
  86. lusid/models/amount.py +69 -0
  87. lusid/models/applicable_instrument_event.py +7 -2
  88. lusid/models/asset_leg.py +1 -1
  89. lusid/models/basket.py +3 -3
  90. lusid/models/batch_update_user_review_for_comparison_result_request.py +81 -0
  91. lusid/models/batch_update_user_review_for_comparison_result_response.py +146 -0
  92. lusid/models/batch_upsert_dates_for_calendar_response.py +146 -0
  93. lusid/models/batch_upsert_portfolio_access_metadata_request.py +27 -17
  94. lusid/models/batch_upsert_portfolio_access_metadata_response.py +56 -16
  95. lusid/models/{metadata_key_value.py → batch_upsert_portfolio_access_metadata_response_item.py} +15 -9
  96. lusid/models/bond.py +3 -3
  97. lusid/models/bond_coupon_event.py +10 -5
  98. lusid/models/bond_default_event.py +3 -3
  99. lusid/models/bond_principal_event.py +10 -5
  100. lusid/models/bonus_issue_event.py +166 -0
  101. lusid/models/{component_rule.py → break_code_source.py} +17 -21
  102. lusid/models/call_on_intermediate_securities_event.py +139 -0
  103. lusid/models/cancel_order_and_move_remaining_result.py +84 -0
  104. lusid/models/cancel_orders_and_move_remaining_request.py +83 -0
  105. lusid/models/cancel_orders_and_move_remaining_response.py +153 -0
  106. lusid/models/cap_floor.py +3 -3
  107. lusid/models/capital_distribution_event.py +3 -3
  108. lusid/models/cash.py +3 -3
  109. lusid/models/cash_dividend_event.py +3 -3
  110. lusid/models/cash_flow_event.py +3 -3
  111. lusid/models/cash_perpetual.py +3 -3
  112. lusid/models/cds_credit_event.py +6 -6
  113. lusid/models/cds_index.py +3 -3
  114. lusid/models/cdx_credit_event.py +6 -6
  115. lusid/models/change_interval.py +123 -0
  116. lusid/models/change_interval_with_order_management_detail.py +3 -3
  117. lusid/models/close_event.py +3 -3
  118. lusid/models/comparison_attribute_value_pair.py +71 -0
  119. lusid/models/complex_bond.py +3 -3
  120. lusid/models/component_transaction.py +10 -3
  121. lusid/models/contract_for_difference.py +3 -3
  122. lusid/models/create_derived_transaction_portfolio_request.py +3 -3
  123. lusid/models/create_group_reconciliation_definition_request.py +113 -0
  124. lusid/models/create_staging_rule_set_request.py +1 -6
  125. lusid/models/create_transaction_portfolio_request.py +3 -3
  126. lusid/models/credit_default_swap.py +3 -3
  127. lusid/models/credit_premium_cash_flow_event.py +3 -3
  128. lusid/models/custodian_account_request.py +1 -1
  129. lusid/models/custom_entity_entity.py +146 -0
  130. lusid/models/custom_entity_response.py +7 -1
  131. lusid/models/decimal_list.py +3 -3
  132. lusid/models/delete_instrument_properties_response.py +7 -1
  133. lusid/models/delete_instrument_response.py +7 -1
  134. lusid/models/delete_instruments_response.py +22 -1
  135. lusid/models/deleted_entity_response.py +7 -1
  136. lusid/models/diary_entry_request.py +10 -1
  137. lusid/models/dividend_option_event.py +3 -3
  138. lusid/models/dividend_reinvestment_event.py +9 -4
  139. lusid/models/effective_range.py +71 -0
  140. lusid/models/equity.py +3 -3
  141. lusid/models/equity_option.py +22 -7
  142. lusid/models/equity_swap.py +3 -3
  143. lusid/models/exchange_traded_option.py +3 -3
  144. lusid/models/exchange_traded_option_contract_details.py +1 -1
  145. lusid/models/exercise_event.py +3 -3
  146. lusid/models/exotic_instrument.py +3 -3
  147. lusid/models/expiry_event.py +3 -3
  148. lusid/models/fee.py +17 -10
  149. lusid/models/fee_request.py +20 -13
  150. lusid/models/fee_type.py +4 -4
  151. lusid/models/fee_type_request.py +3 -3
  152. lusid/models/fixed_leg.py +3 -3
  153. lusid/models/fixed_schedule.py +3 -3
  154. lusid/models/flexible_loan.py +3 -3
  155. lusid/models/float_schedule.py +4 -4
  156. lusid/models/floating_leg.py +3 -3
  157. lusid/models/flow_conventions.py +7 -1
  158. lusid/models/forward_rate_agreement.py +3 -3
  159. lusid/models/fund_configuration.py +44 -17
  160. lusid/models/fund_configuration_request.py +31 -19
  161. lusid/models/fund_id_list.py +99 -0
  162. lusid/models/fund_share_class.py +23 -8
  163. lusid/models/funding_leg.py +3 -3
  164. lusid/models/future.py +3 -3
  165. lusid/models/future_expiry_event.py +3 -3
  166. lusid/models/fx_forward.py +3 -3
  167. lusid/models/fx_forward_settlement_event.py +3 -3
  168. lusid/models/fx_option.py +3 -3
  169. lusid/models/fx_swap.py +3 -3
  170. lusid/models/group_reconciliation_aggregate_attribute_rule.py +2 -2
  171. lusid/models/group_reconciliation_aggregate_attribute_values.py +86 -0
  172. lusid/models/group_reconciliation_aggregate_comparison_rule_operand.py +1 -1
  173. lusid/models/group_reconciliation_comparison_result.py +148 -0
  174. lusid/models/group_reconciliation_core_attribute_values.py +86 -0
  175. lusid/models/group_reconciliation_core_comparison_rule_operand.py +1 -1
  176. lusid/models/group_reconciliation_date_pair.py +81 -0
  177. lusid/models/group_reconciliation_dates.py +78 -0
  178. lusid/models/group_reconciliation_definition.py +136 -0
  179. lusid/models/group_reconciliation_definition_comparison_ruleset_ids.py +83 -0
  180. lusid/models/group_reconciliation_definition_currencies.py +71 -0
  181. lusid/models/group_reconciliation_definition_portfolio_entity_ids.py +86 -0
  182. lusid/models/group_reconciliation_definition_recipe_ids.py +78 -0
  183. lusid/models/group_reconciliation_instance_id.py +71 -0
  184. lusid/models/group_reconciliation_result_statuses.py +89 -0
  185. lusid/models/group_reconciliation_result_types.py +96 -0
  186. lusid/models/group_reconciliation_review_statuses.py +96 -0
  187. lusid/models/group_reconciliation_run_details.py +76 -0
  188. lusid/models/group_reconciliation_run_request.py +75 -0
  189. lusid/models/{metadata_key_value_response.py → group_reconciliation_run_response.py} +20 -29
  190. lusid/models/group_reconciliation_summary.py +121 -0
  191. lusid/models/group_reconciliation_user_review.py +112 -0
  192. lusid/models/group_reconciliation_user_review_add.py +88 -0
  193. lusid/models/group_reconciliation_user_review_break_code.py +80 -0
  194. lusid/models/group_reconciliation_user_review_comment.py +80 -0
  195. lusid/models/group_reconciliation_user_review_match_key.py +80 -0
  196. lusid/models/group_reconciliation_user_review_remove.py +88 -0
  197. lusid/models/holding_contributor.py +11 -4
  198. lusid/models/holding_ids_request.py +69 -0
  199. lusid/models/inflation_leg.py +3 -3
  200. lusid/models/inflation_linked_bond.py +3 -3
  201. lusid/models/inflation_swap.py +3 -3
  202. lusid/models/informational_error_event.py +3 -3
  203. lusid/models/informational_event.py +3 -3
  204. lusid/models/instrument.py +7 -1
  205. lusid/models/instrument_definition.py +8 -2
  206. lusid/models/instrument_event.py +17 -5
  207. lusid/models/instrument_event_holder.py +9 -1
  208. lusid/models/instrument_event_type.py +12 -0
  209. lusid/models/instrument_leg.py +3 -3
  210. lusid/models/instrument_list.py +3 -3
  211. lusid/models/instrument_type.py +2 -0
  212. lusid/models/interest_rate_swap.py +3 -3
  213. lusid/models/interest_rate_swaption.py +3 -3
  214. lusid/models/intermediate_securities_distribution_event.py +140 -0
  215. lusid/models/lapse_election.py +73 -0
  216. lusid/models/loan_facility.py +97 -0
  217. lusid/models/lusid_instrument.py +7 -5
  218. lusid/models/market_data_key_rule.py +5 -3
  219. lusid/models/market_data_specific_rule.py +5 -3
  220. lusid/models/mastered_instrument.py +139 -0
  221. lusid/models/maturity_event.py +3 -3
  222. lusid/models/mbs_coupon_event.py +102 -0
  223. lusid/models/mbs_interest_deferral_event.py +102 -0
  224. lusid/models/mbs_interest_shortfall_event.py +102 -0
  225. lusid/models/mbs_principal_event.py +102 -0
  226. lusid/models/mbs_principal_write_off_event.py +102 -0
  227. lusid/models/merger_event.py +22 -22
  228. lusid/models/new_instrument.py +1 -1
  229. lusid/models/open_event.py +3 -3
  230. lusid/models/option_exercise_cash_event.py +144 -0
  231. lusid/models/option_exercise_election.py +73 -0
  232. lusid/models/option_exercise_physical_event.py +149 -0
  233. lusid/models/output_transaction.py +9 -2
  234. lusid/models/paged_resource_list_of_group_reconciliation_comparison_result.py +113 -0
  235. lusid/models/paged_resource_list_of_group_reconciliation_comparison_ruleset.py +113 -0
  236. lusid/models/paged_resource_list_of_group_reconciliation_definition.py +113 -0
  237. lusid/models/portfolio.py +3 -3
  238. lusid/models/portfolio_details.py +3 -3
  239. lusid/models/portfolio_group_id_list.py +3 -3
  240. lusid/models/portfolio_id_list.py +3 -3
  241. lusid/models/portfolio_without_href.py +3 -3
  242. lusid/models/pricing_options.py +8 -2
  243. lusid/models/property_list.py +3 -3
  244. lusid/models/protection_payout_cash_flow_event.py +102 -0
  245. lusid/models/raw_vendor_event.py +3 -3
  246. lusid/models/reference_instrument.py +3 -3
  247. lusid/models/reference_list.py +6 -5
  248. lusid/models/reference_list_type.py +1 -0
  249. lusid/models/repo.py +3 -3
  250. lusid/models/reset_event.py +3 -3
  251. lusid/models/resource_list_of_change_interval.py +113 -0
  252. lusid/models/resource_list_of_output_transaction.py +113 -0
  253. lusid/models/return_zero_pv_options.py +69 -0
  254. lusid/models/reverse_stock_split_event.py +21 -7
  255. lusid/models/scrip_dividend_event.py +3 -3
  256. lusid/models/settlement_cycle.py +79 -0
  257. lusid/models/share_class_dealing_breakdown.py +3 -2
  258. lusid/models/share_class_details.py +18 -1
  259. lusid/models/simple_cash_flow_loan.py +3 -3
  260. lusid/models/simple_instrument.py +3 -3
  261. lusid/models/simple_rounding_convention.py +76 -0
  262. lusid/models/spin_off_event.py +3 -3
  263. lusid/models/staged_modification_effective_range.py +2 -2
  264. lusid/models/stock_dividend_event.py +20 -6
  265. lusid/models/stock_split_event.py +3 -3
  266. lusid/models/string_list.py +3 -3
  267. lusid/models/swap_cash_flow_event.py +3 -3
  268. lusid/models/swap_principal_event.py +3 -3
  269. lusid/models/target_tax_lot.py +23 -2
  270. lusid/models/target_tax_lot_request.py +23 -2
  271. lusid/models/tender_event.py +172 -0
  272. lusid/models/term_deposit.py +3 -3
  273. lusid/models/total_return_swap.py +4 -4
  274. lusid/models/transaction.py +9 -2
  275. lusid/models/transaction_date_windows.py +85 -0
  276. lusid/models/transaction_price.py +3 -3
  277. lusid/models/transaction_price_type.py +2 -0
  278. lusid/models/transaction_request.py +9 -2
  279. lusid/models/transition_event.py +3 -3
  280. lusid/models/trigger_event.py +3 -3
  281. lusid/models/update_fee_type_request.py +4 -4
  282. lusid/models/update_group_reconciliation_comparison_ruleset_request.py +91 -0
  283. lusid/models/update_group_reconciliation_definition_request.py +107 -0
  284. lusid/models/update_reference_data_request.py +87 -0
  285. lusid/models/update_staging_rule_set_request.py +1 -6
  286. lusid/models/upsert_custom_entities_response.py +20 -1
  287. lusid/models/upsert_reference_portfolio_constituent_properties_request.py +84 -0
  288. lusid/models/upsert_reference_portfolio_constituent_properties_response.py +115 -0
  289. lusid/models/valuation_point_data_query_parameters.py +3 -3
  290. lusid/models/valuation_point_data_response.py +8 -13
  291. lusid/rest.py +70 -20
  292. {lusid_sdk-2.1.405.dist-info → lusid_sdk-2.1.537.dist-info}/METADATA +118 -26
  293. {lusid_sdk-2.1.405.dist-info → lusid_sdk-2.1.537.dist-info}/RECORD +294 -226
  294. {lusid_sdk-2.1.405.dist-info → lusid_sdk-2.1.537.dist-info}/WHEEL +0 -0
@@ -24,10 +24,11 @@ from datetime import datetime
24
24
 
25
25
  from pydantic.v1 import Field, StrictStr, conint, conlist, constr, validator
26
26
 
27
- from typing import List, Optional
27
+ from typing import Dict, List, Optional
28
28
 
29
29
  from lusid.models.add_business_days_to_date_request import AddBusinessDaysToDateRequest
30
30
  from lusid.models.add_business_days_to_date_response import AddBusinessDaysToDateResponse
31
+ from lusid.models.batch_upsert_dates_for_calendar_response import BatchUpsertDatesForCalendarResponse
31
32
  from lusid.models.calendar import Calendar
32
33
  from lusid.models.calendar_date import CalendarDate
33
34
  from lusid.models.create_calendar_request import CreateCalendarRequest
@@ -44,6 +45,7 @@ from lusid.exceptions import ( # noqa: F401
44
45
  ApiTypeError,
45
46
  ApiValueError
46
47
  )
48
+ from lusid.extensions.configuration_options import ConfigurationOptions
47
49
 
48
50
 
49
51
  class CalendarsApi:
@@ -83,10 +85,9 @@ class CalendarsApi:
83
85
  :type add_business_days_to_date_request: AddBusinessDaysToDateRequest
84
86
  :param async_req: Whether to execute the request asynchronously.
85
87
  :type async_req: bool, optional
86
- :param _request_timeout: timeout setting for this request.
87
- If one number provided, it will be total request
88
- timeout. It can also be a pair (tuple) of
89
- (connection, read) timeouts.
88
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
89
+ :param opts: Configuration options for this request
90
+ :type opts: ConfigurationOptions, optional
90
91
  :return: Returns the result object.
91
92
  If the method is called asynchronously,
92
93
  returns the request thread.
@@ -125,10 +126,9 @@ class CalendarsApi:
125
126
  :param _return_http_data_only: response data instead of ApiResponse
126
127
  object with status code, headers, etc
127
128
  :type _return_http_data_only: bool, optional
128
- :param _request_timeout: timeout setting for this request. If one
129
- number provided, it will be total request
130
- timeout. It can also be a pair (tuple) of
131
- (connection, read) timeouts.
129
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
130
+ :param opts: Configuration options for this request
131
+ :type opts: ConfigurationOptions, optional
132
132
  :param _request_auth: set to override the auth_settings for an a single
133
133
  request; this effectively ignores the authentication
134
134
  in the spec for a single request.
@@ -154,7 +154,8 @@ class CalendarsApi:
154
154
  '_request_timeout',
155
155
  '_request_auth',
156
156
  '_content_type',
157
- '_headers'
157
+ '_headers',
158
+ 'opts'
158
159
  ]
159
160
  )
160
161
 
@@ -221,6 +222,7 @@ class CalendarsApi:
221
222
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
222
223
  _preload_content=_params.get('_preload_content', True),
223
224
  _request_timeout=_params.get('_request_timeout'),
225
+ opts=_params.get('opts'),
224
226
  collection_formats=_collection_formats,
225
227
  _request_auth=_params.get('_request_auth'))
226
228
 
@@ -251,10 +253,9 @@ class CalendarsApi:
251
253
  :type create_date_request: CreateDateRequest
252
254
  :param async_req: Whether to execute the request asynchronously.
253
255
  :type async_req: bool, optional
254
- :param _request_timeout: timeout setting for this request.
255
- If one number provided, it will be total request
256
- timeout. It can also be a pair (tuple) of
257
- (connection, read) timeouts.
256
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
257
+ :param opts: Configuration options for this request
258
+ :type opts: ConfigurationOptions, optional
258
259
  :return: Returns the result object.
259
260
  If the method is called asynchronously,
260
261
  returns the request thread.
@@ -295,10 +296,9 @@ class CalendarsApi:
295
296
  :param _return_http_data_only: response data instead of ApiResponse
296
297
  object with status code, headers, etc
297
298
  :type _return_http_data_only: bool, optional
298
- :param _request_timeout: timeout setting for this request. If one
299
- number provided, it will be total request
300
- timeout. It can also be a pair (tuple) of
301
- (connection, read) timeouts.
299
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
300
+ :param opts: Configuration options for this request
301
+ :type opts: ConfigurationOptions, optional
302
302
  :param _request_auth: set to override the auth_settings for an a single
303
303
  request; this effectively ignores the authentication
304
304
  in the spec for a single request.
@@ -325,7 +325,8 @@ class CalendarsApi:
325
325
  '_request_timeout',
326
326
  '_request_auth',
327
327
  '_content_type',
328
- '_headers'
328
+ '_headers',
329
+ 'opts'
329
330
  ]
330
331
  )
331
332
 
@@ -395,6 +396,189 @@ class CalendarsApi:
395
396
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
396
397
  _preload_content=_params.get('_preload_content', True),
397
398
  _request_timeout=_params.get('_request_timeout'),
399
+ opts=_params.get('opts'),
400
+ collection_formats=_collection_formats,
401
+ _request_auth=_params.get('_request_auth'))
402
+
403
+ @overload
404
+ async def batch_upsert_dates_for_calendar(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Scope of the calendar")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Code of the calendar")], success_mode : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial.")], request_body : Annotated[Dict[str, CreateDateRequest], Field(..., description="Create Date Requests of dates to upsert")], **kwargs) -> BatchUpsertDatesForCalendarResponse: # noqa: E501
405
+ ...
406
+
407
+ @overload
408
+ def batch_upsert_dates_for_calendar(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Scope of the calendar")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Code of the calendar")], success_mode : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial.")], request_body : Annotated[Dict[str, CreateDateRequest], Field(..., description="Create Date Requests of dates to upsert")], async_req: Optional[bool]=True, **kwargs) -> BatchUpsertDatesForCalendarResponse: # noqa: E501
409
+ ...
410
+
411
+ @validate_arguments
412
+ def batch_upsert_dates_for_calendar(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Scope of the calendar")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Code of the calendar")], success_mode : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial.")], request_body : Annotated[Dict[str, CreateDateRequest], Field(..., description="Create Date Requests of dates to upsert")], async_req: Optional[bool]=None, **kwargs) -> Union[BatchUpsertDatesForCalendarResponse, Awaitable[BatchUpsertDatesForCalendarResponse]]: # noqa: E501
413
+ """BatchUpsertDatesForCalendar: Batch upsert dates to a calendar # noqa: E501
414
+
415
+ Create or update events in the calendar. These Events can be a maximum of 24 hours and must be specified in UTC. A local date will be calculated by the system and applied to the calendar before processing. # noqa: E501
416
+ This method makes a synchronous HTTP request by default. To make an
417
+ asynchronous HTTP request, please pass async_req=True
418
+
419
+ >>> thread = api.batch_upsert_dates_for_calendar(scope, code, success_mode, request_body, async_req=True)
420
+ >>> result = thread.get()
421
+
422
+ :param scope: Scope of the calendar (required)
423
+ :type scope: str
424
+ :param code: Code of the calendar (required)
425
+ :type code: str
426
+ :param success_mode: Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial. (required)
427
+ :type success_mode: str
428
+ :param request_body: Create Date Requests of dates to upsert (required)
429
+ :type request_body: Dict[str, CreateDateRequest]
430
+ :param async_req: Whether to execute the request asynchronously.
431
+ :type async_req: bool, optional
432
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
433
+ :param opts: Configuration options for this request
434
+ :type opts: ConfigurationOptions, optional
435
+ :return: Returns the result object.
436
+ If the method is called asynchronously,
437
+ returns the request thread.
438
+ :rtype: BatchUpsertDatesForCalendarResponse
439
+ """
440
+ kwargs['_return_http_data_only'] = True
441
+ if '_preload_content' in kwargs:
442
+ message = "Error! Please call the batch_upsert_dates_for_calendar_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
443
+ raise ValueError(message)
444
+ if async_req is not None:
445
+ kwargs['async_req'] = async_req
446
+ return self.batch_upsert_dates_for_calendar_with_http_info(scope, code, success_mode, request_body, **kwargs) # noqa: E501
447
+
448
+ @validate_arguments
449
+ def batch_upsert_dates_for_calendar_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Scope of the calendar")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Code of the calendar")], success_mode : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial.")], request_body : Annotated[Dict[str, CreateDateRequest], Field(..., description="Create Date Requests of dates to upsert")], **kwargs) -> ApiResponse: # noqa: E501
450
+ """BatchUpsertDatesForCalendar: Batch upsert dates to a calendar # noqa: E501
451
+
452
+ Create or update events in the calendar. These Events can be a maximum of 24 hours and must be specified in UTC. A local date will be calculated by the system and applied to the calendar before processing. # noqa: E501
453
+ This method makes a synchronous HTTP request by default. To make an
454
+ asynchronous HTTP request, please pass async_req=True
455
+
456
+ >>> thread = api.batch_upsert_dates_for_calendar_with_http_info(scope, code, success_mode, request_body, async_req=True)
457
+ >>> result = thread.get()
458
+
459
+ :param scope: Scope of the calendar (required)
460
+ :type scope: str
461
+ :param code: Code of the calendar (required)
462
+ :type code: str
463
+ :param success_mode: Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial. (required)
464
+ :type success_mode: str
465
+ :param request_body: Create Date Requests of dates to upsert (required)
466
+ :type request_body: Dict[str, CreateDateRequest]
467
+ :param async_req: Whether to execute the request asynchronously.
468
+ :type async_req: bool, optional
469
+ :param _preload_content: if False, the ApiResponse.data will
470
+ be set to none and raw_data will store the
471
+ HTTP response body without reading/decoding.
472
+ Default is True.
473
+ :type _preload_content: bool, optional
474
+ :param _return_http_data_only: response data instead of ApiResponse
475
+ object with status code, headers, etc
476
+ :type _return_http_data_only: bool, optional
477
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
478
+ :param opts: Configuration options for this request
479
+ :type opts: ConfigurationOptions, optional
480
+ :param _request_auth: set to override the auth_settings for an a single
481
+ request; this effectively ignores the authentication
482
+ in the spec for a single request.
483
+ :type _request_auth: dict, optional
484
+ :type _content_type: string, optional: force content-type for the request
485
+ :return: Returns the result object.
486
+ If the method is called asynchronously,
487
+ returns the request thread.
488
+ :rtype: tuple(BatchUpsertDatesForCalendarResponse, status_code(int), headers(HTTPHeaderDict))
489
+ """
490
+
491
+ _params = locals()
492
+
493
+ _all_params = [
494
+ 'scope',
495
+ 'code',
496
+ 'success_mode',
497
+ 'request_body'
498
+ ]
499
+ _all_params.extend(
500
+ [
501
+ 'async_req',
502
+ '_return_http_data_only',
503
+ '_preload_content',
504
+ '_request_timeout',
505
+ '_request_auth',
506
+ '_content_type',
507
+ '_headers',
508
+ 'opts'
509
+ ]
510
+ )
511
+
512
+ # validate the arguments
513
+ for _key, _val in _params['kwargs'].items():
514
+ if _key not in _all_params:
515
+ raise ApiTypeError(
516
+ "Got an unexpected keyword argument '%s'"
517
+ " to method batch_upsert_dates_for_calendar" % _key
518
+ )
519
+ _params[_key] = _val
520
+ del _params['kwargs']
521
+
522
+ _collection_formats = {}
523
+
524
+ # process the path parameters
525
+ _path_params = {}
526
+ if _params['scope']:
527
+ _path_params['scope'] = _params['scope']
528
+
529
+ if _params['code']:
530
+ _path_params['code'] = _params['code']
531
+
532
+
533
+ # process the query parameters
534
+ _query_params = []
535
+ if _params.get('success_mode') is not None: # noqa: E501
536
+ _query_params.append(('successMode', _params['success_mode']))
537
+
538
+ # process the header parameters
539
+ _header_params = dict(_params.get('_headers', {}))
540
+ # process the form parameters
541
+ _form_params = []
542
+ _files = {}
543
+ # process the body parameter
544
+ _body_params = None
545
+ if _params['request_body'] is not None:
546
+ _body_params = _params['request_body']
547
+
548
+ # set the HTTP header `Accept`
549
+ _header_params['Accept'] = self.api_client.select_header_accept(
550
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
551
+
552
+ # set the HTTP header `Content-Type`
553
+ _content_types_list = _params.get('_content_type',
554
+ self.api_client.select_header_content_type(
555
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
556
+ if _content_types_list:
557
+ _header_params['Content-Type'] = _content_types_list
558
+
559
+ # authentication setting
560
+ _auth_settings = ['oauth2'] # noqa: E501
561
+
562
+ _response_types_map = {
563
+ '200': "BatchUpsertDatesForCalendarResponse",
564
+ '400': "LusidValidationProblemDetails",
565
+ }
566
+
567
+ return self.api_client.call_api(
568
+ '/api/calendars/generic/{scope}/{code}/dates/$batchUpsert', 'POST',
569
+ _path_params,
570
+ _query_params,
571
+ _header_params,
572
+ body=_body_params,
573
+ post_params=_form_params,
574
+ files=_files,
575
+ response_types_map=_response_types_map,
576
+ auth_settings=_auth_settings,
577
+ async_req=_params.get('async_req'),
578
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
579
+ _preload_content=_params.get('_preload_content', True),
580
+ _request_timeout=_params.get('_request_timeout'),
581
+ opts=_params.get('opts'),
398
582
  collection_formats=_collection_formats,
399
583
  _request_auth=_params.get('_request_auth'))
400
584
 
@@ -421,10 +605,9 @@ class CalendarsApi:
421
605
  :type create_calendar_request: CreateCalendarRequest
422
606
  :param async_req: Whether to execute the request asynchronously.
423
607
  :type async_req: bool, optional
424
- :param _request_timeout: timeout setting for this request.
425
- If one number provided, it will be total request
426
- timeout. It can also be a pair (tuple) of
427
- (connection, read) timeouts.
608
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
609
+ :param opts: Configuration options for this request
610
+ :type opts: ConfigurationOptions, optional
428
611
  :return: Returns the result object.
429
612
  If the method is called asynchronously,
430
613
  returns the request thread.
@@ -461,10 +644,9 @@ class CalendarsApi:
461
644
  :param _return_http_data_only: response data instead of ApiResponse
462
645
  object with status code, headers, etc
463
646
  :type _return_http_data_only: bool, optional
464
- :param _request_timeout: timeout setting for this request. If one
465
- number provided, it will be total request
466
- timeout. It can also be a pair (tuple) of
467
- (connection, read) timeouts.
647
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
648
+ :param opts: Configuration options for this request
649
+ :type opts: ConfigurationOptions, optional
468
650
  :param _request_auth: set to override the auth_settings for an a single
469
651
  request; this effectively ignores the authentication
470
652
  in the spec for a single request.
@@ -489,7 +671,8 @@ class CalendarsApi:
489
671
  '_request_timeout',
490
672
  '_request_auth',
491
673
  '_content_type',
492
- '_headers'
674
+ '_headers',
675
+ 'opts'
493
676
  ]
494
677
  )
495
678
 
@@ -553,6 +736,7 @@ class CalendarsApi:
553
736
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
554
737
  _preload_content=_params.get('_preload_content', True),
555
738
  _request_timeout=_params.get('_request_timeout'),
739
+ opts=_params.get('opts'),
556
740
  collection_formats=_collection_formats,
557
741
  _request_auth=_params.get('_request_auth'))
558
742
 
@@ -581,10 +765,9 @@ class CalendarsApi:
581
765
  :type code: str
582
766
  :param async_req: Whether to execute the request asynchronously.
583
767
  :type async_req: bool, optional
584
- :param _request_timeout: timeout setting for this request.
585
- If one number provided, it will be total request
586
- timeout. It can also be a pair (tuple) of
587
- (connection, read) timeouts.
768
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
769
+ :param opts: Configuration options for this request
770
+ :type opts: ConfigurationOptions, optional
588
771
  :return: Returns the result object.
589
772
  If the method is called asynchronously,
590
773
  returns the request thread.
@@ -623,10 +806,9 @@ class CalendarsApi:
623
806
  :param _return_http_data_only: response data instead of ApiResponse
624
807
  object with status code, headers, etc
625
808
  :type _return_http_data_only: bool, optional
626
- :param _request_timeout: timeout setting for this request. If one
627
- number provided, it will be total request
628
- timeout. It can also be a pair (tuple) of
629
- (connection, read) timeouts.
809
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
810
+ :param opts: Configuration options for this request
811
+ :type opts: ConfigurationOptions, optional
630
812
  :param _request_auth: set to override the auth_settings for an a single
631
813
  request; this effectively ignores the authentication
632
814
  in the spec for a single request.
@@ -652,7 +834,8 @@ class CalendarsApi:
652
834
  '_request_timeout',
653
835
  '_request_auth',
654
836
  '_content_type',
655
- '_headers'
837
+ '_headers',
838
+ 'opts'
656
839
  ]
657
840
  )
658
841
 
@@ -712,6 +895,7 @@ class CalendarsApi:
712
895
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
713
896
  _preload_content=_params.get('_preload_content', True),
714
897
  _request_timeout=_params.get('_request_timeout'),
898
+ opts=_params.get('opts'),
715
899
  collection_formats=_collection_formats,
716
900
  _request_auth=_params.get('_request_auth'))
717
901
 
@@ -725,7 +909,7 @@ class CalendarsApi:
725
909
 
726
910
  @validate_arguments
727
911
  def delete_date_from_calendar(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Scope of the calendar")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Code of the calendar")], date_id : Annotated[constr(strict=True, max_length=256, min_length=1), Field(..., description="Identifier of the date to be removed")], async_req: Optional[bool]=None, **kwargs) -> Union[CalendarDate, Awaitable[CalendarDate]]: # noqa: E501
728
- """[EARLY ACCESS] DeleteDateFromCalendar: Remove a date from a calendar # noqa: E501
912
+ """DeleteDateFromCalendar: Remove a date from a calendar # noqa: E501
729
913
 
730
914
  Remove a date from a calendar. # noqa: E501
731
915
  This method makes a synchronous HTTP request by default. To make an
@@ -742,10 +926,9 @@ class CalendarsApi:
742
926
  :type date_id: str
743
927
  :param async_req: Whether to execute the request asynchronously.
744
928
  :type async_req: bool, optional
745
- :param _request_timeout: timeout setting for this request.
746
- If one number provided, it will be total request
747
- timeout. It can also be a pair (tuple) of
748
- (connection, read) timeouts.
929
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
930
+ :param opts: Configuration options for this request
931
+ :type opts: ConfigurationOptions, optional
749
932
  :return: Returns the result object.
750
933
  If the method is called asynchronously,
751
934
  returns the request thread.
@@ -761,7 +944,7 @@ class CalendarsApi:
761
944
 
762
945
  @validate_arguments
763
946
  def delete_date_from_calendar_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Scope of the calendar")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Code of the calendar")], date_id : Annotated[constr(strict=True, max_length=256, min_length=1), Field(..., description="Identifier of the date to be removed")], **kwargs) -> ApiResponse: # noqa: E501
764
- """[EARLY ACCESS] DeleteDateFromCalendar: Remove a date from a calendar # noqa: E501
947
+ """DeleteDateFromCalendar: Remove a date from a calendar # noqa: E501
765
948
 
766
949
  Remove a date from a calendar. # noqa: E501
767
950
  This method makes a synchronous HTTP request by default. To make an
@@ -786,10 +969,9 @@ class CalendarsApi:
786
969
  :param _return_http_data_only: response data instead of ApiResponse
787
970
  object with status code, headers, etc
788
971
  :type _return_http_data_only: bool, optional
789
- :param _request_timeout: timeout setting for this request. If one
790
- number provided, it will be total request
791
- timeout. It can also be a pair (tuple) of
792
- (connection, read) timeouts.
972
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
973
+ :param opts: Configuration options for this request
974
+ :type opts: ConfigurationOptions, optional
793
975
  :param _request_auth: set to override the auth_settings for an a single
794
976
  request; this effectively ignores the authentication
795
977
  in the spec for a single request.
@@ -816,7 +998,8 @@ class CalendarsApi:
816
998
  '_request_timeout',
817
999
  '_request_auth',
818
1000
  '_content_type',
819
- '_headers'
1001
+ '_headers',
1002
+ 'opts'
820
1003
  ]
821
1004
  )
822
1005
 
@@ -879,6 +1062,181 @@ class CalendarsApi:
879
1062
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
880
1063
  _preload_content=_params.get('_preload_content', True),
881
1064
  _request_timeout=_params.get('_request_timeout'),
1065
+ opts=_params.get('opts'),
1066
+ collection_formats=_collection_formats,
1067
+ _request_auth=_params.get('_request_auth'))
1068
+
1069
+ @overload
1070
+ async def delete_dates_from_calendar(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Scope of the calendar")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Code of the calendar")], request_body : Annotated[conlist(StrictStr), Field(..., description="Identifiers of the dates to be removed")], **kwargs) -> Dict[str, CalendarDate]: # noqa: E501
1071
+ ...
1072
+
1073
+ @overload
1074
+ def delete_dates_from_calendar(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Scope of the calendar")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Code of the calendar")], request_body : Annotated[conlist(StrictStr), Field(..., description="Identifiers of the dates to be removed")], async_req: Optional[bool]=True, **kwargs) -> Dict[str, CalendarDate]: # noqa: E501
1075
+ ...
1076
+
1077
+ @validate_arguments
1078
+ def delete_dates_from_calendar(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Scope of the calendar")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Code of the calendar")], request_body : Annotated[conlist(StrictStr), Field(..., description="Identifiers of the dates to be removed")], async_req: Optional[bool]=None, **kwargs) -> Union[Dict[str, CalendarDate], Awaitable[Dict[str, CalendarDate]]]: # noqa: E501
1079
+ """DeleteDatesFromCalendar: Delete dates from a calendar # noqa: E501
1080
+
1081
+ Delete dates from a calendar. # noqa: E501
1082
+ This method makes a synchronous HTTP request by default. To make an
1083
+ asynchronous HTTP request, please pass async_req=True
1084
+
1085
+ >>> thread = api.delete_dates_from_calendar(scope, code, request_body, async_req=True)
1086
+ >>> result = thread.get()
1087
+
1088
+ :param scope: Scope of the calendar (required)
1089
+ :type scope: str
1090
+ :param code: Code of the calendar (required)
1091
+ :type code: str
1092
+ :param request_body: Identifiers of the dates to be removed (required)
1093
+ :type request_body: List[str]
1094
+ :param async_req: Whether to execute the request asynchronously.
1095
+ :type async_req: bool, optional
1096
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
1097
+ :param opts: Configuration options for this request
1098
+ :type opts: ConfigurationOptions, optional
1099
+ :return: Returns the result object.
1100
+ If the method is called asynchronously,
1101
+ returns the request thread.
1102
+ :rtype: Dict[str, CalendarDate]
1103
+ """
1104
+ kwargs['_return_http_data_only'] = True
1105
+ if '_preload_content' in kwargs:
1106
+ message = "Error! Please call the delete_dates_from_calendar_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
1107
+ raise ValueError(message)
1108
+ if async_req is not None:
1109
+ kwargs['async_req'] = async_req
1110
+ return self.delete_dates_from_calendar_with_http_info(scope, code, request_body, **kwargs) # noqa: E501
1111
+
1112
+ @validate_arguments
1113
+ def delete_dates_from_calendar_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Scope of the calendar")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="Code of the calendar")], request_body : Annotated[conlist(StrictStr), Field(..., description="Identifiers of the dates to be removed")], **kwargs) -> ApiResponse: # noqa: E501
1114
+ """DeleteDatesFromCalendar: Delete dates from a calendar # noqa: E501
1115
+
1116
+ Delete dates from a calendar. # noqa: E501
1117
+ This method makes a synchronous HTTP request by default. To make an
1118
+ asynchronous HTTP request, please pass async_req=True
1119
+
1120
+ >>> thread = api.delete_dates_from_calendar_with_http_info(scope, code, request_body, async_req=True)
1121
+ >>> result = thread.get()
1122
+
1123
+ :param scope: Scope of the calendar (required)
1124
+ :type scope: str
1125
+ :param code: Code of the calendar (required)
1126
+ :type code: str
1127
+ :param request_body: Identifiers of the dates to be removed (required)
1128
+ :type request_body: List[str]
1129
+ :param async_req: Whether to execute the request asynchronously.
1130
+ :type async_req: bool, optional
1131
+ :param _preload_content: if False, the ApiResponse.data will
1132
+ be set to none and raw_data will store the
1133
+ HTTP response body without reading/decoding.
1134
+ Default is True.
1135
+ :type _preload_content: bool, optional
1136
+ :param _return_http_data_only: response data instead of ApiResponse
1137
+ object with status code, headers, etc
1138
+ :type _return_http_data_only: bool, optional
1139
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
1140
+ :param opts: Configuration options for this request
1141
+ :type opts: ConfigurationOptions, optional
1142
+ :param _request_auth: set to override the auth_settings for an a single
1143
+ request; this effectively ignores the authentication
1144
+ in the spec for a single request.
1145
+ :type _request_auth: dict, optional
1146
+ :type _content_type: string, optional: force content-type for the request
1147
+ :return: Returns the result object.
1148
+ If the method is called asynchronously,
1149
+ returns the request thread.
1150
+ :rtype: tuple(Dict[str, CalendarDate], status_code(int), headers(HTTPHeaderDict))
1151
+ """
1152
+
1153
+ _params = locals()
1154
+
1155
+ _all_params = [
1156
+ 'scope',
1157
+ 'code',
1158
+ 'request_body'
1159
+ ]
1160
+ _all_params.extend(
1161
+ [
1162
+ 'async_req',
1163
+ '_return_http_data_only',
1164
+ '_preload_content',
1165
+ '_request_timeout',
1166
+ '_request_auth',
1167
+ '_content_type',
1168
+ '_headers',
1169
+ 'opts'
1170
+ ]
1171
+ )
1172
+
1173
+ # validate the arguments
1174
+ for _key, _val in _params['kwargs'].items():
1175
+ if _key not in _all_params:
1176
+ raise ApiTypeError(
1177
+ "Got an unexpected keyword argument '%s'"
1178
+ " to method delete_dates_from_calendar" % _key
1179
+ )
1180
+ _params[_key] = _val
1181
+ del _params['kwargs']
1182
+
1183
+ _collection_formats = {}
1184
+
1185
+ # process the path parameters
1186
+ _path_params = {}
1187
+ if _params['scope']:
1188
+ _path_params['scope'] = _params['scope']
1189
+
1190
+ if _params['code']:
1191
+ _path_params['code'] = _params['code']
1192
+
1193
+
1194
+ # process the query parameters
1195
+ _query_params = []
1196
+ # process the header parameters
1197
+ _header_params = dict(_params.get('_headers', {}))
1198
+ # process the form parameters
1199
+ _form_params = []
1200
+ _files = {}
1201
+ # process the body parameter
1202
+ _body_params = None
1203
+ if _params['request_body'] is not None:
1204
+ _body_params = _params['request_body']
1205
+
1206
+ # set the HTTP header `Accept`
1207
+ _header_params['Accept'] = self.api_client.select_header_accept(
1208
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
1209
+
1210
+ # set the HTTP header `Content-Type`
1211
+ _content_types_list = _params.get('_content_type',
1212
+ self.api_client.select_header_content_type(
1213
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
1214
+ if _content_types_list:
1215
+ _header_params['Content-Type'] = _content_types_list
1216
+
1217
+ # authentication setting
1218
+ _auth_settings = ['oauth2'] # noqa: E501
1219
+
1220
+ _response_types_map = {
1221
+ '200': "Dict[str, CalendarDate]",
1222
+ '400': "LusidValidationProblemDetails",
1223
+ }
1224
+
1225
+ return self.api_client.call_api(
1226
+ '/api/calendars/generic/{scope}/{code}/dates/$delete', 'POST',
1227
+ _path_params,
1228
+ _query_params,
1229
+ _header_params,
1230
+ body=_body_params,
1231
+ post_params=_form_params,
1232
+ files=_files,
1233
+ response_types_map=_response_types_map,
1234
+ auth_settings=_auth_settings,
1235
+ async_req=_params.get('async_req'),
1236
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1237
+ _preload_content=_params.get('_preload_content', True),
1238
+ _request_timeout=_params.get('_request_timeout'),
1239
+ opts=_params.get('opts'),
882
1240
  collection_formats=_collection_formats,
883
1241
  _request_auth=_params.get('_request_auth'))
884
1242
 
@@ -909,10 +1267,9 @@ class CalendarsApi:
909
1267
  :type as_at: datetime
910
1268
  :param async_req: Whether to execute the request asynchronously.
911
1269
  :type async_req: bool, optional
912
- :param _request_timeout: timeout setting for this request.
913
- If one number provided, it will be total request
914
- timeout. It can also be a pair (tuple) of
915
- (connection, read) timeouts.
1270
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
1271
+ :param opts: Configuration options for this request
1272
+ :type opts: ConfigurationOptions, optional
916
1273
  :return: Returns the result object.
917
1274
  If the method is called asynchronously,
918
1275
  returns the request thread.
@@ -953,10 +1310,9 @@ class CalendarsApi:
953
1310
  :param _return_http_data_only: response data instead of ApiResponse
954
1311
  object with status code, headers, etc
955
1312
  :type _return_http_data_only: bool, optional
956
- :param _request_timeout: timeout setting for this request. If one
957
- number provided, it will be total request
958
- timeout. It can also be a pair (tuple) of
959
- (connection, read) timeouts.
1313
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
1314
+ :param opts: Configuration options for this request
1315
+ :type opts: ConfigurationOptions, optional
960
1316
  :param _request_auth: set to override the auth_settings for an a single
961
1317
  request; this effectively ignores the authentication
962
1318
  in the spec for a single request.
@@ -983,7 +1339,8 @@ class CalendarsApi:
983
1339
  '_request_timeout',
984
1340
  '_request_auth',
985
1341
  '_content_type',
986
- '_headers'
1342
+ '_headers',
1343
+ 'opts'
987
1344
  ]
988
1345
  )
989
1346
 
@@ -1056,6 +1413,7 @@ class CalendarsApi:
1056
1413
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1057
1414
  _preload_content=_params.get('_preload_content', True),
1058
1415
  _request_timeout=_params.get('_request_timeout'),
1416
+ opts=_params.get('opts'),
1059
1417
  collection_formats=_collection_formats,
1060
1418
  _request_auth=_params.get('_request_auth'))
1061
1419
 
@@ -1088,10 +1446,9 @@ class CalendarsApi:
1088
1446
  :type as_at: datetime
1089
1447
  :param async_req: Whether to execute the request asynchronously.
1090
1448
  :type async_req: bool, optional
1091
- :param _request_timeout: timeout setting for this request.
1092
- If one number provided, it will be total request
1093
- timeout. It can also be a pair (tuple) of
1094
- (connection, read) timeouts.
1449
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
1450
+ :param opts: Configuration options for this request
1451
+ :type opts: ConfigurationOptions, optional
1095
1452
  :return: Returns the result object.
1096
1453
  If the method is called asynchronously,
1097
1454
  returns the request thread.
@@ -1134,10 +1491,9 @@ class CalendarsApi:
1134
1491
  :param _return_http_data_only: response data instead of ApiResponse
1135
1492
  object with status code, headers, etc
1136
1493
  :type _return_http_data_only: bool, optional
1137
- :param _request_timeout: timeout setting for this request. If one
1138
- number provided, it will be total request
1139
- timeout. It can also be a pair (tuple) of
1140
- (connection, read) timeouts.
1494
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
1495
+ :param opts: Configuration options for this request
1496
+ :type opts: ConfigurationOptions, optional
1141
1497
  :param _request_auth: set to override the auth_settings for an a single
1142
1498
  request; this effectively ignores the authentication
1143
1499
  in the spec for a single request.
@@ -1165,7 +1521,8 @@ class CalendarsApi:
1165
1521
  '_request_timeout',
1166
1522
  '_request_auth',
1167
1523
  '_content_type',
1168
- '_headers'
1524
+ '_headers',
1525
+ 'opts'
1169
1526
  ]
1170
1527
  )
1171
1528
 
@@ -1235,6 +1592,7 @@ class CalendarsApi:
1235
1592
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1236
1593
  _preload_content=_params.get('_preload_content', True),
1237
1594
  _request_timeout=_params.get('_request_timeout'),
1595
+ opts=_params.get('opts'),
1238
1596
  collection_formats=_collection_formats,
1239
1597
  _request_auth=_params.get('_request_auth'))
1240
1598
 
@@ -1271,10 +1629,9 @@ class CalendarsApi:
1271
1629
  :type id_filter: List[str]
1272
1630
  :param async_req: Whether to execute the request asynchronously.
1273
1631
  :type async_req: bool, optional
1274
- :param _request_timeout: timeout setting for this request.
1275
- If one number provided, it will be total request
1276
- timeout. It can also be a pair (tuple) of
1277
- (connection, read) timeouts.
1632
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
1633
+ :param opts: Configuration options for this request
1634
+ :type opts: ConfigurationOptions, optional
1278
1635
  :return: Returns the result object.
1279
1636
  If the method is called asynchronously,
1280
1637
  returns the request thread.
@@ -1321,10 +1678,9 @@ class CalendarsApi:
1321
1678
  :param _return_http_data_only: response data instead of ApiResponse
1322
1679
  object with status code, headers, etc
1323
1680
  :type _return_http_data_only: bool, optional
1324
- :param _request_timeout: timeout setting for this request. If one
1325
- number provided, it will be total request
1326
- timeout. It can also be a pair (tuple) of
1327
- (connection, read) timeouts.
1681
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
1682
+ :param opts: Configuration options for this request
1683
+ :type opts: ConfigurationOptions, optional
1328
1684
  :param _request_auth: set to override the auth_settings for an a single
1329
1685
  request; this effectively ignores the authentication
1330
1686
  in the spec for a single request.
@@ -1354,7 +1710,8 @@ class CalendarsApi:
1354
1710
  '_request_timeout',
1355
1711
  '_request_auth',
1356
1712
  '_content_type',
1357
- '_headers'
1713
+ '_headers',
1714
+ 'opts'
1358
1715
  ]
1359
1716
  )
1360
1717
 
@@ -1430,6 +1787,7 @@ class CalendarsApi:
1430
1787
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1431
1788
  _preload_content=_params.get('_preload_content', True),
1432
1789
  _request_timeout=_params.get('_request_timeout'),
1790
+ opts=_params.get('opts'),
1433
1791
  collection_formats=_collection_formats,
1434
1792
  _request_auth=_params.get('_request_auth'))
1435
1793
 
@@ -1462,10 +1820,9 @@ class CalendarsApi:
1462
1820
  :type as_at: datetime
1463
1821
  :param async_req: Whether to execute the request asynchronously.
1464
1822
  :type async_req: bool, optional
1465
- :param _request_timeout: timeout setting for this request.
1466
- If one number provided, it will be total request
1467
- timeout. It can also be a pair (tuple) of
1468
- (connection, read) timeouts.
1823
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
1824
+ :param opts: Configuration options for this request
1825
+ :type opts: ConfigurationOptions, optional
1469
1826
  :return: Returns the result object.
1470
1827
  If the method is called asynchronously,
1471
1828
  returns the request thread.
@@ -1508,10 +1865,9 @@ class CalendarsApi:
1508
1865
  :param _return_http_data_only: response data instead of ApiResponse
1509
1866
  object with status code, headers, etc
1510
1867
  :type _return_http_data_only: bool, optional
1511
- :param _request_timeout: timeout setting for this request. If one
1512
- number provided, it will be total request
1513
- timeout. It can also be a pair (tuple) of
1514
- (connection, read) timeouts.
1868
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
1869
+ :param opts: Configuration options for this request
1870
+ :type opts: ConfigurationOptions, optional
1515
1871
  :param _request_auth: set to override the auth_settings for an a single
1516
1872
  request; this effectively ignores the authentication
1517
1873
  in the spec for a single request.
@@ -1539,7 +1895,8 @@ class CalendarsApi:
1539
1895
  '_request_timeout',
1540
1896
  '_request_auth',
1541
1897
  '_content_type',
1542
- '_headers'
1898
+ '_headers',
1899
+ 'opts'
1543
1900
  ]
1544
1901
  )
1545
1902
 
@@ -1611,6 +1968,7 @@ class CalendarsApi:
1611
1968
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1612
1969
  _preload_content=_params.get('_preload_content', True),
1613
1970
  _request_timeout=_params.get('_request_timeout'),
1971
+ opts=_params.get('opts'),
1614
1972
  collection_formats=_collection_formats,
1615
1973
  _request_auth=_params.get('_request_auth'))
1616
1974
 
@@ -1645,10 +2003,9 @@ class CalendarsApi:
1645
2003
  :type filter: str
1646
2004
  :param async_req: Whether to execute the request asynchronously.
1647
2005
  :type async_req: bool, optional
1648
- :param _request_timeout: timeout setting for this request.
1649
- If one number provided, it will be total request
1650
- timeout. It can also be a pair (tuple) of
1651
- (connection, read) timeouts.
2006
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
2007
+ :param opts: Configuration options for this request
2008
+ :type opts: ConfigurationOptions, optional
1652
2009
  :return: Returns the result object.
1653
2010
  If the method is called asynchronously,
1654
2011
  returns the request thread.
@@ -1693,10 +2050,9 @@ class CalendarsApi:
1693
2050
  :param _return_http_data_only: response data instead of ApiResponse
1694
2051
  object with status code, headers, etc
1695
2052
  :type _return_http_data_only: bool, optional
1696
- :param _request_timeout: timeout setting for this request. If one
1697
- number provided, it will be total request
1698
- timeout. It can also be a pair (tuple) of
1699
- (connection, read) timeouts.
2053
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
2054
+ :param opts: Configuration options for this request
2055
+ :type opts: ConfigurationOptions, optional
1700
2056
  :param _request_auth: set to override the auth_settings for an a single
1701
2057
  request; this effectively ignores the authentication
1702
2058
  in the spec for a single request.
@@ -1725,7 +2081,8 @@ class CalendarsApi:
1725
2081
  '_request_timeout',
1726
2082
  '_request_auth',
1727
2083
  '_content_type',
1728
- '_headers'
2084
+ '_headers',
2085
+ 'opts'
1729
2086
  ]
1730
2087
  )
1731
2088
 
@@ -1798,6 +2155,7 @@ class CalendarsApi:
1798
2155
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1799
2156
  _preload_content=_params.get('_preload_content', True),
1800
2157
  _request_timeout=_params.get('_request_timeout'),
2158
+ opts=_params.get('opts'),
1801
2159
  collection_formats=_collection_formats,
1802
2160
  _request_auth=_params.get('_request_auth'))
1803
2161
 
@@ -1834,10 +2192,9 @@ class CalendarsApi:
1834
2192
  :type filter: str
1835
2193
  :param async_req: Whether to execute the request asynchronously.
1836
2194
  :type async_req: bool, optional
1837
- :param _request_timeout: timeout setting for this request.
1838
- If one number provided, it will be total request
1839
- timeout. It can also be a pair (tuple) of
1840
- (connection, read) timeouts.
2195
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
2196
+ :param opts: Configuration options for this request
2197
+ :type opts: ConfigurationOptions, optional
1841
2198
  :return: Returns the result object.
1842
2199
  If the method is called asynchronously,
1843
2200
  returns the request thread.
@@ -1884,10 +2241,9 @@ class CalendarsApi:
1884
2241
  :param _return_http_data_only: response data instead of ApiResponse
1885
2242
  object with status code, headers, etc
1886
2243
  :type _return_http_data_only: bool, optional
1887
- :param _request_timeout: timeout setting for this request. If one
1888
- number provided, it will be total request
1889
- timeout. It can also be a pair (tuple) of
1890
- (connection, read) timeouts.
2244
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
2245
+ :param opts: Configuration options for this request
2246
+ :type opts: ConfigurationOptions, optional
1891
2247
  :param _request_auth: set to override the auth_settings for an a single
1892
2248
  request; this effectively ignores the authentication
1893
2249
  in the spec for a single request.
@@ -1917,7 +2273,8 @@ class CalendarsApi:
1917
2273
  '_request_timeout',
1918
2274
  '_request_auth',
1919
2275
  '_content_type',
1920
- '_headers'
2276
+ '_headers',
2277
+ 'opts'
1921
2278
  ]
1922
2279
  )
1923
2280
 
@@ -1993,6 +2350,7 @@ class CalendarsApi:
1993
2350
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1994
2351
  _preload_content=_params.get('_preload_content', True),
1995
2352
  _request_timeout=_params.get('_request_timeout'),
2353
+ opts=_params.get('opts'),
1996
2354
  collection_formats=_collection_formats,
1997
2355
  _request_auth=_params.get('_request_auth'))
1998
2356
 
@@ -2023,10 +2381,9 @@ class CalendarsApi:
2023
2381
  :type update_calendar_request: UpdateCalendarRequest
2024
2382
  :param async_req: Whether to execute the request asynchronously.
2025
2383
  :type async_req: bool, optional
2026
- :param _request_timeout: timeout setting for this request.
2027
- If one number provided, it will be total request
2028
- timeout. It can also be a pair (tuple) of
2029
- (connection, read) timeouts.
2384
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
2385
+ :param opts: Configuration options for this request
2386
+ :type opts: ConfigurationOptions, optional
2030
2387
  :return: Returns the result object.
2031
2388
  If the method is called asynchronously,
2032
2389
  returns the request thread.
@@ -2067,10 +2424,9 @@ class CalendarsApi:
2067
2424
  :param _return_http_data_only: response data instead of ApiResponse
2068
2425
  object with status code, headers, etc
2069
2426
  :type _return_http_data_only: bool, optional
2070
- :param _request_timeout: timeout setting for this request. If one
2071
- number provided, it will be total request
2072
- timeout. It can also be a pair (tuple) of
2073
- (connection, read) timeouts.
2427
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
2428
+ :param opts: Configuration options for this request
2429
+ :type opts: ConfigurationOptions, optional
2074
2430
  :param _request_auth: set to override the auth_settings for an a single
2075
2431
  request; this effectively ignores the authentication
2076
2432
  in the spec for a single request.
@@ -2097,7 +2453,8 @@ class CalendarsApi:
2097
2453
  '_request_timeout',
2098
2454
  '_request_auth',
2099
2455
  '_content_type',
2100
- '_headers'
2456
+ '_headers',
2457
+ 'opts'
2101
2458
  ]
2102
2459
  )
2103
2460
 
@@ -2167,5 +2524,6 @@ class CalendarsApi:
2167
2524
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
2168
2525
  _preload_content=_params.get('_preload_content', True),
2169
2526
  _request_timeout=_params.get('_request_timeout'),
2527
+ opts=_params.get('opts'),
2170
2528
  collection_formats=_collection_formats,
2171
2529
  _request_auth=_params.get('_request_auth'))