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