lusid-sdk 2.0.485__py3-none-any.whl → 2.1.77__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 +30 -2
- lusid/api/__init__.py +3 -1
- lusid/api/abor_api.py +177 -2
- lusid/api/abor_configuration_api.py +2 -2
- lusid/api/address_key_definition_api.py +2 -2
- lusid/api/aggregation_api.py +2 -2
- lusid/api/allocations_api.py +2 -2
- lusid/api/amortisation_rule_sets_api.py +925 -0
- lusid/api/application_metadata_api.py +2 -2
- lusid/api/blocks_api.py +2 -2
- lusid/api/calendars_api.py +2 -2
- lusid/api/chart_of_accounts_api.py +2 -2
- lusid/api/complex_market_data_api.py +2 -2
- lusid/api/compliance_api.py +2 -2
- lusid/api/configuration_recipe_api.py +2 -2
- lusid/api/conventions_api.py +2 -2
- lusid/api/corporate_action_sources_api.py +2 -2
- lusid/api/counterparties_api.py +2 -2
- lusid/api/custom_entities_api.py +2 -2
- lusid/api/custom_entity_definitions_api.py +2 -2
- lusid/api/custom_entity_types_api.py +2 -2
- lusid/api/cut_label_definitions_api.py +2 -2
- lusid/api/data_types_api.py +2 -2
- lusid/api/derived_transaction_portfolios_api.py +2 -2
- lusid/api/entities_api.py +173 -2
- lusid/api/executions_api.py +2 -2
- lusid/api/funds_api.py +3 -3
- lusid/api/instrument_event_types_api.py +2 -2
- lusid/api/instrument_events_api.py +2 -2
- lusid/api/instruments_api.py +2 -2
- lusid/api/legacy_compliance_api.py +2 -2
- lusid/api/legal_entities_api.py +2 -2
- lusid/api/order_graph_api.py +2 -2
- lusid/api/order_instructions_api.py +2 -2
- lusid/api/order_management_api.py +2 -2
- lusid/api/orders_api.py +2 -2
- lusid/api/packages_api.py +2 -2
- lusid/api/participations_api.py +2 -2
- lusid/api/persons_api.py +2 -2
- lusid/api/placements_api.py +2 -2
- lusid/api/portfolio_groups_api.py +2 -2
- lusid/api/portfolios_api.py +10 -11
- lusid/api/property_definitions_api.py +6 -6
- lusid/api/queryable_keys_api.py +2 -2
- lusid/api/quotes_api.py +2 -2
- lusid/api/reconciliations_api.py +2 -2
- lusid/api/reference_lists_api.py +2 -2
- lusid/api/reference_portfolio_api.py +2 -2
- lusid/api/relation_definitions_api.py +2 -2
- lusid/api/relations_api.py +2 -2
- lusid/api/relationship_definitions_api.py +2 -2
- lusid/api/relationships_api.py +2 -2
- lusid/api/schemas_api.py +2 -2
- lusid/api/scopes_api.py +2 -2
- lusid/api/scripted_translation_api.py +2 -2
- lusid/api/search_api.py +2 -2
- lusid/api/sequences_api.py +2 -2
- lusid/api/staging_rule_set_api.py +2 -2
- lusid/api/structured_result_data_api.py +2 -2
- lusid/api/system_configuration_api.py +2 -2
- lusid/api/tax_rule_sets_api.py +2 -2
- lusid/api/transaction_configuration_api.py +2 -2
- lusid/api/transaction_fees_api.py +2 -2
- lusid/api/transaction_portfolios_api.py +15 -24
- lusid/api/translation_api.py +2 -2
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +28 -2
- lusid/models/a2_b_breakdown.py +1 -1
- lusid/models/a2_b_category.py +1 -1
- lusid/models/a2_b_data_record.py +1 -1
- lusid/models/a2_b_movement_record.py +1 -1
- lusid/models/abor.py +1 -1
- lusid/models/abor_configuration.py +1 -1
- lusid/models/abor_configuration_properties.py +1 -1
- lusid/models/abor_configuration_request.py +1 -1
- lusid/models/abor_properties.py +1 -1
- lusid/models/abor_request.py +1 -1
- lusid/models/access_controlled_action.py +1 -1
- lusid/models/access_controlled_resource.py +1 -1
- lusid/models/access_metadata_operation.py +1 -1
- lusid/models/access_metadata_value.py +1 -1
- lusid/models/account.py +1 -1
- lusid/models/account_properties.py +1 -1
- lusid/models/accounts_upsert_response.py +1 -1
- lusid/models/accumulation_event.py +4 -4
- lusid/models/action_id.py +1 -1
- lusid/models/add_business_days_to_date_request.py +1 -1
- lusid/models/add_business_days_to_date_response.py +1 -1
- lusid/models/additional_payment.py +1 -1
- lusid/models/address_definition.py +1 -1
- lusid/models/address_key_compliance_parameter.py +4 -4
- lusid/models/address_key_definition.py +1 -1
- lusid/models/address_key_filter.py +1 -1
- lusid/models/address_key_list.py +4 -4
- lusid/models/address_key_list_compliance_parameter.py +4 -4
- lusid/models/address_key_option_definition.py +1 -1
- lusid/models/adjust_holding.py +1 -1
- lusid/models/adjust_holding_for_date_request.py +1 -1
- lusid/models/adjust_holding_request.py +1 -1
- lusid/models/aggregate_spec.py +1 -1
- lusid/models/aggregated_return.py +1 -1
- lusid/models/aggregated_returns_dispersion_request.py +1 -1
- lusid/models/aggregated_returns_request.py +1 -1
- lusid/models/aggregated_returns_response.py +1 -1
- lusid/models/aggregated_transactions_request.py +1 -1
- lusid/models/aggregation_context.py +1 -1
- lusid/models/aggregation_measure_failure_detail.py +1 -1
- lusid/models/aggregation_options.py +1 -1
- lusid/models/aggregation_query.py +1 -1
- lusid/models/allocation.py +1 -1
- lusid/models/allocation_request.py +1 -1
- lusid/models/allocation_service_run_response.py +1 -1
- lusid/models/allocation_set_request.py +1 -1
- lusid/models/amortisation_event.py +4 -4
- lusid/models/amortisation_rule.py +104 -0
- lusid/models/amortisation_rule_set.py +137 -0
- lusid/models/annul_quotes_response.py +1 -1
- lusid/models/annul_single_structured_data_response.py +1 -1
- lusid/models/annul_structured_data_response.py +1 -1
- lusid/models/asset_leg.py +1 -1
- lusid/models/barrier.py +1 -1
- lusid/models/basket.py +1 -1
- lusid/models/basket_identifier.py +1 -1
- lusid/models/batch_adjust_holdings_response.py +1 -1
- lusid/models/batch_upsert_instrument_properties_response.py +1 -1
- lusid/models/batch_upsert_portfolio_transactions_response.py +1 -1
- lusid/models/batch_upsert_property_definition_properties_response.py +1 -1
- lusid/models/block.py +1 -1
- lusid/models/block_and_order_id_request.py +1 -1
- lusid/models/block_and_orders.py +1 -1
- lusid/models/block_and_orders_create_request.py +1 -1
- lusid/models/block_and_orders_request.py +1 -1
- lusid/models/block_request.py +1 -1
- lusid/models/block_set_request.py +1 -1
- lusid/models/blocked_order_request.py +1 -1
- lusid/models/bond.py +2 -2
- lusid/models/bond_coupon_event.py +4 -4
- lusid/models/bond_default_event.py +4 -4
- lusid/models/bond_principal_event.py +4 -4
- lusid/models/book_transactions_request.py +1 -1
- lusid/models/book_transactions_response.py +1 -1
- lusid/models/bool_compliance_parameter.py +4 -4
- lusid/models/bool_list_compliance_parameter.py +4 -4
- lusid/models/branch_step.py +1 -1
- lusid/models/bucketed_cash_flow_request.py +1 -1
- lusid/models/bucketed_cash_flow_response.py +1 -1
- lusid/models/bucketing_schedule.py +1 -1
- lusid/models/calculation_info.py +1 -1
- lusid/models/calendar.py +1 -1
- lusid/models/calendar_date.py +1 -1
- lusid/models/calendar_dependency.py +1 -1
- lusid/models/cap_floor.py +1 -1
- lusid/models/cash_dependency.py +1 -1
- lusid/models/cash_dividend_event.py +4 -4
- lusid/models/cash_election.py +1 -1
- lusid/models/cash_flow_event.py +4 -4
- lusid/models/cash_flow_lineage.py +1 -1
- lusid/models/cash_flow_value.py +1 -1
- lusid/models/cash_flow_value_set.py +1 -1
- lusid/models/cash_ladder_record.py +1 -1
- lusid/models/cash_perpetual.py +1 -1
- lusid/models/cds_flow_conventions.py +1 -1
- lusid/models/cds_index.py +1 -1
- lusid/models/cds_protection_detail_specification.py +1 -1
- lusid/models/change.py +1 -1
- lusid/models/change_history.py +1 -1
- lusid/models/change_item.py +1 -1
- lusid/models/chart_of_accounts.py +1 -1
- lusid/models/chart_of_accounts_properties.py +1 -1
- lusid/models/chart_of_accounts_request.py +1 -1
- lusid/models/check_step.py +1 -1
- lusid/models/cleardown_module_details.py +1 -1
- lusid/models/cleardown_module_request.py +1 -1
- lusid/models/cleardown_module_response.py +1 -1
- lusid/models/cleardown_module_rule.py +1 -1
- lusid/models/cleardown_module_rules_updated_response.py +1 -1
- lusid/models/client.py +1 -1
- lusid/models/close_event.py +4 -4
- lusid/models/close_period_diary_entry_request.py +1 -1
- lusid/models/complete_portfolio.py +1 -1
- lusid/models/complete_relation.py +1 -1
- lusid/models/complete_relationship.py +1 -1
- lusid/models/complex_bond.py +2 -2
- lusid/models/complex_market_data.py +1 -1
- lusid/models/complex_market_data_id.py +1 -1
- lusid/models/compliance_breached_order_info.py +1 -1
- lusid/models/compliance_parameter.py +7 -6
- lusid/models/compliance_parameter_type.py +1 -0
- lusid/models/compliance_rule.py +1 -1
- lusid/models/compliance_rule_breakdown.py +1 -1
- lusid/models/compliance_rule_breakdown_request.py +1 -1
- lusid/models/compliance_rule_response.py +1 -1
- lusid/models/compliance_rule_result.py +1 -1
- lusid/models/compliance_rule_result_detail.py +1 -1
- lusid/models/compliance_rule_result_portfolio_detail.py +1 -1
- lusid/models/compliance_rule_result_v2.py +1 -1
- lusid/models/compliance_rule_upsert_request.py +1 -1
- lusid/models/compliance_rule_upsert_response.py +1 -1
- lusid/models/compliance_run_info.py +1 -1
- lusid/models/compliance_run_info_v2.py +1 -1
- lusid/models/compliance_step.py +1 -1
- lusid/models/compliance_summary_rule_result.py +1 -1
- lusid/models/compliance_summary_rule_result_request.py +1 -1
- lusid/models/compliance_template.py +1 -1
- lusid/models/compliance_template_parameter.py +1 -1
- lusid/models/compliance_template_variation.py +1 -1
- lusid/models/component_transaction.py +1 -1
- lusid/models/composite_breakdown.py +1 -1
- lusid/models/composite_breakdown_request.py +1 -1
- lusid/models/composite_breakdown_response.py +1 -1
- lusid/models/composite_dispersion.py +1 -1
- lusid/models/composite_dispersion_response.py +1 -1
- lusid/models/compounding.py +1 -1
- lusid/models/configuration_recipe.py +1 -1
- lusid/models/constant_volatility_surface.py +1 -1
- lusid/models/constituents_adjustment_header.py +1 -1
- lusid/models/contract_for_difference.py +1 -1
- lusid/models/corporate_action.py +1 -1
- lusid/models/corporate_action_source.py +1 -1
- lusid/models/corporate_action_transition.py +1 -1
- lusid/models/corporate_action_transition_component.py +1 -1
- lusid/models/corporate_action_transition_component_request.py +1 -1
- lusid/models/corporate_action_transition_request.py +1 -1
- lusid/models/counterparty_agreement.py +1 -1
- lusid/models/counterparty_risk_information.py +1 -1
- lusid/models/counterparty_signatory.py +1 -1
- lusid/models/create_address_key_definition_request.py +1 -1
- lusid/models/create_amortisation_rule_set_request.py +102 -0
- lusid/models/create_calendar_request.py +1 -1
- lusid/models/create_corporate_action_source_request.py +1 -1
- lusid/models/create_custom_entity_type_request.py +1 -1
- lusid/models/create_cut_label_definition_request.py +1 -1
- lusid/models/create_data_map_request.py +1 -1
- lusid/models/create_data_type_request.py +1 -1
- lusid/models/create_date_request.py +1 -1
- lusid/models/create_derived_property_definition_request.py +1 -1
- lusid/models/create_derived_transaction_portfolio_request.py +8 -3
- lusid/models/create_portfolio_details.py +1 -1
- lusid/models/create_portfolio_group_request.py +1 -1
- lusid/models/create_property_definition_request.py +1 -1
- lusid/models/create_recipe_request.py +1 -1
- lusid/models/create_reconciliation_request.py +1 -1
- lusid/models/create_reference_portfolio_request.py +1 -1
- lusid/models/create_relation_definition_request.py +1 -1
- lusid/models/create_relation_request.py +1 -1
- lusid/models/create_relationship_definition_request.py +3 -3
- lusid/models/create_relationship_request.py +1 -1
- lusid/models/create_sequence_request.py +1 -1
- lusid/models/create_staging_rule_set_request.py +1 -1
- lusid/models/create_tax_rule_set_request.py +1 -1
- lusid/models/create_trade_tickets_response.py +1 -1
- lusid/models/create_transaction_portfolio_request.py +8 -3
- lusid/models/create_unit_definition.py +1 -1
- lusid/models/credit_default_swap.py +1 -1
- lusid/models/credit_rating.py +1 -1
- lusid/models/credit_spread_curve_data.py +1 -1
- lusid/models/credit_support_annex.py +1 -1
- lusid/models/currency_and_amount.py +1 -1
- lusid/models/curve_options.py +1 -1
- lusid/models/custodian_account.py +1 -1
- lusid/models/custodian_account_properties.py +1 -1
- lusid/models/custodian_account_request.py +1 -1
- lusid/models/custodian_accounts_upsert_response.py +1 -1
- lusid/models/custom_entity_definition.py +1 -1
- lusid/models/custom_entity_definition_request.py +1 -1
- lusid/models/custom_entity_field.py +1 -1
- lusid/models/custom_entity_field_definition.py +1 -1
- lusid/models/custom_entity_id.py +1 -1
- lusid/models/custom_entity_request.py +1 -1
- lusid/models/custom_entity_response.py +1 -1
- lusid/models/custom_entity_type.py +1 -1
- lusid/models/cut_label_definition.py +1 -1
- lusid/models/cut_local_time.py +1 -1
- lusid/models/data_definition.py +1 -1
- lusid/models/data_map_key.py +1 -1
- lusid/models/data_mapping.py +1 -1
- lusid/models/data_scope.py +1 -1
- lusid/models/data_type.py +1 -1
- lusid/models/data_type_summary.py +1 -1
- lusid/models/date_attributes.py +1 -1
- lusid/models/date_or_diary_entry.py +1 -1
- lusid/models/date_range.py +1 -1
- lusid/models/date_time_compliance_parameter.py +4 -4
- lusid/models/date_time_list_compliance_parameter.py +4 -4
- lusid/models/day_month.py +1 -1
- lusid/models/decimal_compliance_parameter.py +4 -4
- lusid/models/decimal_list.py +4 -4
- lusid/models/decimal_list_compliance_parameter.py +4 -4
- lusid/models/decorated_compliance_run_summary.py +1 -1
- lusid/models/delete_accounts_response.py +1 -1
- lusid/models/delete_custodian_accounts_response.py +1 -1
- lusid/models/delete_instrument_properties_response.py +1 -1
- lusid/models/delete_instrument_response.py +1 -1
- lusid/models/delete_instruments_response.py +1 -1
- lusid/models/delete_relation_request.py +1 -1
- lusid/models/delete_relationship_request.py +1 -1
- lusid/models/deleted_entity_response.py +1 -1
- lusid/models/dependency_source_filter.py +1 -1
- lusid/models/described_address_key.py +1 -1
- lusid/models/dialect.py +1 -1
- lusid/models/dialect_id.py +1 -1
- lusid/models/dialect_schema.py +1 -1
- lusid/models/diary_entry.py +1 -1
- lusid/models/diary_entry_request.py +1 -1
- lusid/models/discount_factor_curve_data.py +1 -1
- lusid/models/discounting_dependency.py +1 -1
- lusid/models/dividend_option_event.py +4 -4
- lusid/models/dividend_reinvestment_event.py +4 -4
- lusid/models/economic_dependency.py +1 -1
- lusid/models/economic_dependency_with_complex_market_data.py +1 -1
- lusid/models/economic_dependency_with_quote.py +1 -1
- lusid/models/election_specification.py +1 -1
- lusid/models/eligibility_calculation.py +1 -1
- lusid/models/empty_model_options.py +1 -1
- lusid/models/entity_identifier.py +1 -1
- lusid/models/equity.py +1 -1
- lusid/models/equity_all_of_identifiers.py +1 -1
- lusid/models/equity_curve_by_prices_data.py +1 -1
- lusid/models/equity_curve_dependency.py +1 -1
- lusid/models/equity_model_options.py +1 -1
- lusid/models/equity_option.py +1 -1
- lusid/models/equity_swap.py +1 -1
- lusid/models/equity_vol_dependency.py +1 -1
- lusid/models/equity_vol_surface_data.py +1 -1
- lusid/models/error_detail.py +1 -1
- lusid/models/event_date_range.py +1 -1
- lusid/models/ex_dividend_configuration.py +1 -1
- lusid/models/exchange_traded_option.py +1 -1
- lusid/models/exchange_traded_option_contract_details.py +1 -1
- lusid/models/execution.py +1 -1
- lusid/models/execution_request.py +1 -1
- lusid/models/execution_set_request.py +1 -1
- lusid/models/exercise_event.py +4 -4
- lusid/models/exotic_instrument.py +1 -1
- lusid/models/expanded_group.py +1 -1
- lusid/models/expiry_event.py +4 -4
- lusid/models/fee_rule.py +1 -1
- lusid/models/fee_rule_upsert_request.py +1 -1
- lusid/models/fee_rule_upsert_response.py +1 -1
- lusid/models/field_definition.py +1 -1
- lusid/models/field_schema.py +1 -1
- lusid/models/field_value.py +1 -1
- lusid/models/file_response.py +1 -1
- lusid/models/filter_predicate_compliance_parameter.py +4 -4
- lusid/models/filter_step.py +1 -1
- lusid/models/fixed_leg.py +1 -1
- lusid/models/fixed_leg_all_of_overrides.py +1 -1
- lusid/models/fixed_schedule.py +1 -1
- lusid/models/flexible_loan.py +1 -1
- lusid/models/float_schedule.py +1 -1
- lusid/models/floating_leg.py +1 -1
- lusid/models/flow_convention_name.py +1 -1
- lusid/models/flow_conventions.py +9 -2
- lusid/models/forward_rate_agreement.py +1 -1
- lusid/models/from_recipe.py +1 -1
- lusid/models/fund.py +1 -1
- lusid/models/fund_properties.py +1 -1
- lusid/models/fund_request.py +1 -1
- lusid/models/fund_share_class.py +1 -1
- lusid/models/funding_leg.py +1 -1
- lusid/models/funding_leg_options.py +1 -1
- lusid/models/future.py +1 -1
- lusid/models/futures_contract_details.py +1 -1
- lusid/models/fx_conventions.py +1 -1
- lusid/models/fx_dependency.py +1 -1
- lusid/models/fx_forward.py +1 -1
- lusid/models/fx_forward_curve_by_quote_reference.py +1 -1
- lusid/models/fx_forward_curve_data.py +1 -1
- lusid/models/fx_forward_model_options.py +1 -1
- lusid/models/fx_forward_pips_curve_data.py +1 -1
- lusid/models/fx_forward_settlement_event.py +4 -4
- lusid/models/fx_forward_tenor_curve_data.py +1 -1
- lusid/models/fx_forward_tenor_pips_curve_data.py +1 -1
- lusid/models/fx_forwards_dependency.py +1 -1
- lusid/models/fx_linked_notional_schedule.py +1 -1
- lusid/models/fx_option.py +1 -1
- lusid/models/fx_rate_schedule.py +1 -1
- lusid/models/fx_swap.py +1 -1
- lusid/models/fx_tenor_convention.py +1 -1
- lusid/models/fx_vol_dependency.py +1 -1
- lusid/models/fx_vol_surface_data.py +1 -1
- lusid/models/general_ledger_profile_mapping.py +1 -1
- lusid/models/general_ledger_profile_request.py +1 -1
- lusid/models/general_ledger_profile_response.py +1 -1
- lusid/models/get_cds_flow_conventions_response.py +1 -1
- lusid/models/get_complex_market_data_response.py +1 -1
- lusid/models/get_counterparty_agreement_response.py +1 -1
- lusid/models/get_credit_support_annex_response.py +1 -1
- lusid/models/get_data_map_response.py +1 -1
- lusid/models/get_flow_conventions_response.py +1 -1
- lusid/models/get_index_convention_response.py +1 -1
- lusid/models/get_instruments_response.py +1 -1
- lusid/models/get_quotes_response.py +1 -1
- lusid/models/get_recipe_composer_response.py +1 -1
- lusid/models/get_recipe_response.py +1 -1
- lusid/models/get_reference_portfolio_constituents_response.py +1 -1
- lusid/models/get_structured_result_data_response.py +1 -1
- lusid/models/get_virtual_document_response.py +1 -1
- lusid/models/group_by_selector_compliance_parameter.py +4 -4
- lusid/models/group_by_step.py +1 -1
- lusid/models/group_filter_predicate_compliance_parameter.py +4 -4
- lusid/models/group_filter_step.py +1 -1
- lusid/models/group_of_market_data_key_rules.py +1 -1
- lusid/models/grouped_result_of_address_key.py +1 -1
- lusid/models/holding_adjustment.py +1 -1
- lusid/models/holding_adjustment_with_date.py +1 -1
- lusid/models/holding_context.py +1 -1
- lusid/models/holding_contributor.py +1 -1
- lusid/models/holdings_adjustment.py +1 -1
- lusid/models/holdings_adjustment_header.py +1 -1
- lusid/models/i_unit_definition_dto.py +1 -1
- lusid/models/id_selector_definition.py +1 -1
- lusid/models/identifier_part_schema.py +1 -1
- lusid/models/index_convention.py +1 -1
- lusid/models/index_model_options.py +1 -1
- lusid/models/index_projection_dependency.py +1 -1
- lusid/models/industry_classifier.py +1 -1
- lusid/models/inflation_fixing_dependency.py +1 -1
- lusid/models/inflation_index_conventions.py +1 -1
- lusid/models/inflation_leg.py +1 -1
- lusid/models/inflation_linked_bond.py +2 -2
- lusid/models/inflation_swap.py +1 -1
- lusid/models/informational_error_event.py +4 -4
- lusid/models/informational_event.py +4 -4
- lusid/models/inline_valuation_request.py +1 -1
- lusid/models/inline_valuations_reconciliation_request.py +1 -1
- lusid/models/input_transition.py +1 -1
- lusid/models/instrument.py +1 -1
- lusid/models/instrument_capabilities.py +1 -1
- lusid/models/instrument_cash_flow.py +1 -1
- lusid/models/instrument_definition.py +1 -1
- lusid/models/instrument_definition_format.py +1 -1
- lusid/models/instrument_event.py +9 -6
- lusid/models/instrument_event_configuration.py +1 -1
- lusid/models/instrument_event_holder.py +1 -1
- lusid/models/instrument_event_type.py +3 -0
- lusid/models/instrument_id_type_descriptor.py +1 -1
- lusid/models/instrument_id_value.py +1 -1
- lusid/models/instrument_leg.py +1 -1
- lusid/models/instrument_list.py +4 -4
- lusid/models/instrument_list_compliance_parameter.py +4 -4
- lusid/models/instrument_match.py +1 -1
- lusid/models/instrument_models.py +1 -1
- lusid/models/instrument_payment_diary.py +1 -1
- lusid/models/instrument_payment_diary_leg.py +1 -1
- lusid/models/instrument_payment_diary_row.py +1 -1
- lusid/models/instrument_properties.py +1 -1
- lusid/models/instrument_resolution_detail.py +1 -1
- lusid/models/instrument_search_property.py +1 -1
- lusid/models/interest_rate_swap.py +1 -1
- lusid/models/interest_rate_swaption.py +1 -1
- lusid/models/intermediate_compliance_step.py +1 -1
- lusid/models/ir_vol_cube_data.py +1 -1
- lusid/models/ir_vol_dependency.py +1 -1
- lusid/models/is_business_day_response.py +1 -1
- lusid/models/journal_entry_line.py +16 -2
- lusid/models/journal_entry_lines_query_parameters.py +1 -1
- lusid/models/label_value_set.py +1 -1
- lusid/models/leg_definition.py +1 -1
- lusid/models/legal_entity.py +1 -1
- lusid/models/level_step.py +1 -1
- lusid/models/life_cycle_event_lineage.py +1 -1
- lusid/models/life_cycle_event_value.py +1 -1
- lusid/models/lineage_member.py +1 -1
- lusid/models/link.py +1 -1
- lusid/models/list_aggregation_reconciliation.py +1 -1
- lusid/models/list_aggregation_response.py +1 -1
- lusid/models/list_complex_market_data_with_meta_data_response.py +1 -1
- lusid/models/loan_period.py +1 -1
- lusid/models/lock_period_diary_entry_request.py +1 -1
- lusid/models/lusid_instrument.py +1 -1
- lusid/models/lusid_problem_details.py +1 -1
- lusid/models/lusid_trade_ticket.py +1 -1
- lusid/models/lusid_unique_id.py +1 -1
- lusid/models/lusid_validation_problem_details.py +1 -1
- lusid/models/mapped_string.py +1 -1
- lusid/models/mapping.py +1 -1
- lusid/models/mapping_rule.py +1 -1
- lusid/models/market_context.py +1 -1
- lusid/models/market_context_suppliers.py +1 -1
- lusid/models/market_data_key_rule.py +1 -1
- lusid/models/market_data_options.py +1 -1
- lusid/models/market_data_overrides.py +1 -1
- lusid/models/market_data_specific_rule.py +1 -1
- lusid/models/market_options.py +1 -1
- lusid/models/market_quote.py +1 -1
- lusid/models/match_criterion.py +1 -1
- lusid/models/maturity_event.py +4 -4
- lusid/models/metric_value.py +1 -1
- lusid/models/model_options.py +1 -1
- lusid/models/model_property.py +1 -1
- lusid/models/model_schema.py +1 -1
- lusid/models/model_selection.py +1 -1
- lusid/models/move_orders_to_different_blocks_request.py +1 -1
- lusid/models/moved_order_to_different_block_response.py +1 -1
- lusid/models/multi_currency_amounts.py +1 -1
- lusid/models/next_value_in_sequence_response.py +1 -1
- lusid/models/opaque_dependency.py +1 -1
- lusid/models/opaque_market_data.py +1 -1
- lusid/models/opaque_model_options.py +1 -1
- lusid/models/open_event.py +4 -4
- lusid/models/operation.py +1 -1
- lusid/models/option_entry.py +1 -1
- lusid/models/optionality_schedule.py +1 -1
- lusid/models/order.py +1 -1
- lusid/models/order_by_spec.py +1 -1
- lusid/models/order_flow_configuration.py +1 -1
- lusid/models/order_graph_block.py +8 -2
- lusid/models/order_graph_block_allocation_detail.py +1 -1
- lusid/models/order_graph_block_allocation_synopsis.py +1 -1
- lusid/models/order_graph_block_execution_detail.py +1 -1
- lusid/models/order_graph_block_execution_synopsis.py +1 -1
- lusid/models/order_graph_block_order_detail.py +1 -1
- lusid/models/order_graph_block_order_synopsis.py +1 -1
- lusid/models/order_graph_block_placement_detail.py +1 -1
- lusid/models/order_graph_block_placement_synopsis.py +1 -1
- lusid/models/{action_result_of_portfolio.py → order_graph_block_transaction_detail.py} +13 -19
- lusid/models/order_graph_block_transaction_synopsis.py +79 -0
- lusid/models/order_graph_placement.py +1 -1
- lusid/models/order_graph_placement_allocation_detail.py +1 -1
- lusid/models/order_graph_placement_allocation_synopsis.py +1 -1
- lusid/models/order_graph_placement_child_placement_detail.py +1 -1
- lusid/models/order_graph_placement_execution_detail.py +1 -1
- lusid/models/order_graph_placement_execution_synopsis.py +1 -1
- lusid/models/order_graph_placement_order_detail.py +1 -1
- lusid/models/order_graph_placement_order_synopsis.py +1 -1
- lusid/models/order_graph_placement_placement_synopsis.py +1 -1
- lusid/models/order_instruction.py +1 -1
- lusid/models/order_instruction_request.py +1 -1
- lusid/models/order_instruction_set_request.py +1 -1
- lusid/models/order_request.py +1 -1
- lusid/models/order_set_request.py +1 -1
- lusid/models/otc_confirmation.py +1 -1
- lusid/models/output_transaction.py +1 -1
- lusid/models/output_transition.py +1 -1
- lusid/models/package.py +1 -1
- lusid/models/package_request.py +1 -1
- lusid/models/package_set_request.py +1 -1
- lusid/models/paged_resource_list_of_abor.py +1 -1
- lusid/models/paged_resource_list_of_abor_configuration.py +1 -1
- lusid/models/paged_resource_list_of_account.py +1 -1
- lusid/models/paged_resource_list_of_address_key_definition.py +1 -1
- lusid/models/paged_resource_list_of_allocation.py +1 -1
- lusid/models/paged_resource_list_of_amortisation_rule_set.py +113 -0
- lusid/models/paged_resource_list_of_block.py +1 -1
- lusid/models/paged_resource_list_of_calendar.py +1 -1
- lusid/models/paged_resource_list_of_chart_of_accounts.py +1 -1
- lusid/models/paged_resource_list_of_cleardown_module_response.py +1 -1
- lusid/models/paged_resource_list_of_cleardown_module_rule.py +1 -1
- lusid/models/paged_resource_list_of_compliance_rule_response.py +1 -1
- lusid/models/paged_resource_list_of_compliance_run_info_v2.py +1 -1
- lusid/models/paged_resource_list_of_compliance_template.py +1 -1
- lusid/models/paged_resource_list_of_corporate_action_source.py +1 -1
- lusid/models/paged_resource_list_of_custodian_account.py +1 -1
- lusid/models/paged_resource_list_of_custom_entity_definition.py +1 -1
- lusid/models/paged_resource_list_of_custom_entity_response.py +1 -1
- lusid/models/paged_resource_list_of_custom_entity_type.py +1 -1
- lusid/models/paged_resource_list_of_cut_label_definition.py +1 -1
- lusid/models/paged_resource_list_of_data_type_summary.py +1 -1
- lusid/models/paged_resource_list_of_dialect_id.py +1 -1
- lusid/models/paged_resource_list_of_diary_entry.py +1 -1
- lusid/models/paged_resource_list_of_execution.py +1 -1
- lusid/models/paged_resource_list_of_fund.py +1 -1
- lusid/models/paged_resource_list_of_general_ledger_profile_response.py +1 -1
- lusid/models/paged_resource_list_of_instrument.py +1 -1
- lusid/models/paged_resource_list_of_instrument_event_holder.py +1 -1
- lusid/models/paged_resource_list_of_legal_entity.py +1 -1
- lusid/models/paged_resource_list_of_order.py +1 -1
- lusid/models/paged_resource_list_of_order_graph_block.py +1 -1
- lusid/models/paged_resource_list_of_order_graph_placement.py +1 -1
- lusid/models/paged_resource_list_of_order_instruction.py +1 -1
- lusid/models/paged_resource_list_of_package.py +1 -1
- lusid/models/paged_resource_list_of_participation.py +1 -1
- lusid/models/paged_resource_list_of_person.py +1 -1
- lusid/models/paged_resource_list_of_placement.py +1 -1
- lusid/models/paged_resource_list_of_portfolio_group.py +1 -1
- lusid/models/paged_resource_list_of_portfolio_group_search_result.py +1 -1
- lusid/models/paged_resource_list_of_portfolio_search_result.py +1 -1
- lusid/models/paged_resource_list_of_posting_module_response.py +1 -1
- lusid/models/paged_resource_list_of_posting_module_rule.py +1 -1
- lusid/models/paged_resource_list_of_property_definition.py +1 -1
- lusid/models/paged_resource_list_of_property_definition_search_result.py +1 -1
- lusid/models/paged_resource_list_of_reconciliation.py +1 -1
- lusid/models/paged_resource_list_of_reference_list_response.py +1 -1
- lusid/models/paged_resource_list_of_relationship_definition.py +1 -1
- lusid/models/paged_resource_list_of_sequence_definition.py +1 -1
- lusid/models/paged_resource_list_of_staging_rule_set.py +1 -1
- lusid/models/paged_resource_list_of_transaction_template.py +1 -1
- lusid/models/paged_resource_list_of_transaction_template_specification.py +1 -1
- lusid/models/paged_resource_list_of_translation_script_id.py +1 -1
- lusid/models/paged_resource_list_of_virtual_row.py +1 -1
- lusid/models/participation.py +1 -1
- lusid/models/participation_request.py +1 -1
- lusid/models/participation_set_request.py +1 -1
- lusid/models/performance_return.py +1 -1
- lusid/models/performance_returns_metric.py +1 -1
- lusid/models/period_diary_entries_reopened_response.py +1 -1
- lusid/models/perpetual_property.py +1 -1
- lusid/models/person.py +1 -1
- lusid/models/place_blocks_request.py +1 -1
- lusid/models/placement.py +1 -1
- lusid/models/placement_request.py +1 -1
- lusid/models/placement_set_request.py +1 -1
- lusid/models/portfolio.py +7 -2
- lusid/models/portfolio_cash_flow.py +1 -1
- lusid/models/portfolio_cash_ladder.py +1 -1
- lusid/models/portfolio_details.py +7 -2
- lusid/models/portfolio_entity.py +99 -0
- lusid/models/portfolio_entity_id.py +1 -1
- lusid/models/portfolio_group.py +1 -1
- lusid/models/portfolio_group_id_compliance_parameter.py +4 -4
- lusid/models/portfolio_group_id_list.py +4 -4
- lusid/models/portfolio_group_id_list_compliance_parameter.py +4 -4
- lusid/models/portfolio_group_properties.py +1 -1
- lusid/models/portfolio_group_search_result.py +1 -1
- lusid/models/portfolio_holding.py +1 -1
- lusid/models/portfolio_id_compliance_parameter.py +4 -4
- lusid/models/portfolio_id_list.py +4 -4
- lusid/models/portfolio_id_list_compliance_parameter.py +4 -4
- lusid/models/portfolio_properties.py +1 -1
- lusid/models/portfolio_reconciliation_request.py +1 -1
- lusid/models/portfolio_result_data_key_rule.py +1 -1
- lusid/models/portfolio_return_breakdown.py +1 -1
- lusid/models/portfolio_search_result.py +1 -1
- lusid/models/portfolio_trade_ticket.py +1 -1
- lusid/models/portfolio_without_href.py +214 -0
- lusid/models/portfolios_reconciliation_request.py +1 -1
- lusid/models/posting_module_details.py +1 -1
- lusid/models/posting_module_request.py +1 -1
- lusid/models/posting_module_response.py +1 -1
- lusid/models/posting_module_rule.py +1 -1
- lusid/models/posting_module_rules_updated_response.py +1 -1
- lusid/models/premium.py +1 -1
- lusid/models/pricing_context.py +1 -1
- lusid/models/pricing_options.py +1 -1
- lusid/models/processed_command.py +1 -1
- lusid/models/property_definition.py +1 -1
- lusid/models/property_definition_search_result.py +1 -1
- lusid/models/property_filter.py +1 -1
- lusid/models/property_interval.py +1 -1
- lusid/models/property_key_compliance_parameter.py +4 -4
- lusid/models/property_key_list_compliance_parameter.py +4 -4
- lusid/models/property_list.py +99 -0
- lusid/models/property_list_compliance_parameter.py +95 -0
- lusid/models/property_schema.py +1 -1
- lusid/models/property_value.py +1 -1
- lusid/models/property_value_equals.py +1 -1
- lusid/models/property_value_in.py +1 -1
- lusid/models/query_bucketed_cash_flows_request.py +1 -1
- lusid/models/query_cash_flows_request.py +1 -1
- lusid/models/query_instrument_events_request.py +1 -1
- lusid/models/query_trade_tickets_request.py +1 -1
- lusid/models/queryable_key.py +1 -1
- lusid/models/quote.py +1 -1
- lusid/models/quote_access_metadata_rule.py +1 -1
- lusid/models/quote_access_metadata_rule_id.py +1 -1
- lusid/models/quote_dependency.py +1 -1
- lusid/models/quote_id.py +1 -1
- lusid/models/quote_series_id.py +1 -1
- lusid/models/raw_vendor_event.py +4 -4
- lusid/models/re_open_period_diary_entry_request.py +1 -1
- lusid/models/realised_gain_loss.py +1 -1
- lusid/models/recipe_block.py +1 -1
- lusid/models/recipe_composer.py +1 -1
- lusid/models/recipe_value.py +1 -1
- lusid/models/recombine_step.py +1 -1
- lusid/models/reconcile_date_time_rule.py +1 -1
- lusid/models/reconcile_numeric_rule.py +1 -1
- lusid/models/reconcile_string_rule.py +1 -1
- lusid/models/reconciled_transaction.py +1 -1
- lusid/models/reconciliation.py +1 -1
- lusid/models/reconciliation_break.py +1 -1
- lusid/models/reconciliation_configuration.py +1 -1
- lusid/models/reconciliation_id.py +1 -1
- lusid/models/reconciliation_left_right_address_key_pair.py +1 -1
- lusid/models/reconciliation_line.py +1 -1
- lusid/models/reconciliation_request.py +1 -1
- lusid/models/reconciliation_response.py +1 -1
- lusid/models/reconciliation_rule.py +1 -1
- lusid/models/reconciliation_side_configuration.py +1 -1
- lusid/models/reconciliation_transactions.py +1 -1
- lusid/models/reference_data.py +1 -1
- lusid/models/reference_instrument.py +1 -1
- lusid/models/reference_list.py +7 -6
- lusid/models/reference_list_request.py +1 -1
- lusid/models/reference_list_response.py +1 -1
- lusid/models/reference_list_type.py +1 -0
- lusid/models/reference_portfolio_constituent.py +1 -1
- lusid/models/reference_portfolio_constituent_request.py +1 -1
- lusid/models/related_entity.py +2 -2
- lusid/models/relation.py +1 -1
- lusid/models/relation_definition.py +1 -1
- lusid/models/relationship.py +1 -1
- lusid/models/relationship_definition.py +1 -1
- lusid/models/relative_date_offset.py +12 -5
- lusid/models/repo.py +1 -1
- lusid/models/reset_event.py +4 -4
- lusid/models/resource_id.py +1 -1
- lusid/models/resource_list_of_access_controlled_resource.py +1 -1
- lusid/models/resource_list_of_access_metadata_value_of.py +1 -1
- lusid/models/resource_list_of_address_key_definition.py +1 -1
- lusid/models/resource_list_of_aggregated_return.py +1 -1
- lusid/models/resource_list_of_aggregation_query.py +1 -1
- lusid/models/resource_list_of_allocation.py +1 -1
- lusid/models/resource_list_of_block.py +1 -1
- lusid/models/resource_list_of_block_and_orders.py +1 -1
- lusid/models/resource_list_of_calendar_date.py +1 -1
- lusid/models/resource_list_of_change.py +1 -1
- lusid/models/resource_list_of_change_history.py +1 -1
- lusid/models/resource_list_of_compliance_breached_order_info.py +1 -1
- lusid/models/resource_list_of_compliance_rule.py +1 -1
- lusid/models/resource_list_of_compliance_rule_result.py +1 -1
- lusid/models/resource_list_of_compliance_run_info.py +1 -1
- lusid/models/resource_list_of_constituents_adjustment_header.py +1 -1
- lusid/models/resource_list_of_corporate_action.py +1 -1
- lusid/models/resource_list_of_data_type.py +1 -1
- lusid/models/resource_list_of_execution.py +1 -1
- lusid/models/resource_list_of_fee_rule.py +1 -1
- lusid/models/resource_list_of_get_cds_flow_conventions_response.py +1 -1
- lusid/models/resource_list_of_get_counterparty_agreement_response.py +1 -1
- lusid/models/resource_list_of_get_credit_support_annex_response.py +1 -1
- lusid/models/resource_list_of_get_flow_conventions_response.py +1 -1
- lusid/models/resource_list_of_get_index_convention_response.py +1 -1
- lusid/models/resource_list_of_get_recipe_composer_response.py +1 -1
- lusid/models/resource_list_of_get_recipe_response.py +1 -1
- lusid/models/resource_list_of_holdings_adjustment_header.py +1 -1
- lusid/models/resource_list_of_i_unit_definition_dto.py +1 -1
- lusid/models/resource_list_of_instrument_cash_flow.py +1 -1
- lusid/models/resource_list_of_instrument_event_holder.py +1 -1
- lusid/models/resource_list_of_instrument_id_type_descriptor.py +1 -1
- lusid/models/resource_list_of_legal_entity.py +1 -1
- lusid/models/resource_list_of_list_complex_market_data_with_meta_data_response.py +1 -1
- lusid/models/resource_list_of_mapping.py +1 -1
- lusid/models/resource_list_of_moved_order_to_different_block_response.py +1 -1
- lusid/models/resource_list_of_order.py +1 -1
- lusid/models/resource_list_of_order_instruction.py +1 -1
- lusid/models/resource_list_of_package.py +1 -1
- lusid/models/resource_list_of_participation.py +1 -1
- lusid/models/resource_list_of_performance_return.py +1 -1
- lusid/models/resource_list_of_person.py +1 -1
- lusid/models/resource_list_of_placement.py +1 -1
- lusid/models/resource_list_of_portfolio.py +1 -1
- lusid/models/resource_list_of_portfolio_cash_flow.py +1 -1
- lusid/models/resource_list_of_portfolio_cash_ladder.py +1 -1
- lusid/models/resource_list_of_portfolio_trade_ticket.py +1 -1
- lusid/models/resource_list_of_processed_command.py +1 -1
- lusid/models/resource_list_of_property.py +1 -1
- lusid/models/resource_list_of_property_definition.py +1 -1
- lusid/models/resource_list_of_property_interval.py +1 -1
- lusid/models/resource_list_of_queryable_key.py +1 -1
- lusid/models/resource_list_of_quote.py +1 -1
- lusid/models/resource_list_of_quote_access_metadata_rule.py +1 -1
- lusid/models/resource_list_of_reconciliation_break.py +1 -1
- lusid/models/resource_list_of_relation.py +1 -1
- lusid/models/resource_list_of_relationship.py +1 -1
- lusid/models/resource_list_of_scope_definition.py +1 -1
- lusid/models/resource_list_of_side_definition.py +1 -1
- lusid/models/resource_list_of_string.py +1 -1
- lusid/models/resource_list_of_tax_rule_set.py +1 -1
- lusid/models/resource_list_of_transaction.py +1 -1
- lusid/models/resource_list_of_transaction_type.py +1 -1
- lusid/models/resource_list_of_value_type.py +1 -1
- lusid/models/response_meta_data.py +1 -1
- lusid/models/result_data_key_rule.py +1 -1
- lusid/models/result_data_schema.py +1 -1
- lusid/models/result_key_rule.py +1 -1
- lusid/models/result_value.py +1 -1
- lusid/models/result_value0_d.py +1 -1
- lusid/models/result_value_bool.py +1 -1
- lusid/models/result_value_currency.py +1 -1
- lusid/models/result_value_date_time_offset.py +1 -1
- lusid/models/result_value_decimal.py +1 -1
- lusid/models/result_value_dictionary.py +1 -1
- lusid/models/result_value_int.py +1 -1
- lusid/models/result_value_string.py +1 -1
- lusid/models/reverse_stock_split_event.py +113 -0
- lusid/models/rounding_configuration.py +1 -1
- lusid/models/rounding_configuration_component.py +1 -1
- lusid/models/rounding_convention.py +1 -1
- lusid/models/schedule.py +1 -1
- lusid/models/scope_definition.py +1 -1
- lusid/models/scrip_dividend_event.py +113 -0
- lusid/models/script_map_reference.py +1 -1
- lusid/models/security_election.py +1 -1
- lusid/models/sequence_definition.py +1 -1
- lusid/models/set_legal_entity_identifiers_request.py +1 -1
- lusid/models/set_legal_entity_properties_request.py +1 -1
- lusid/models/set_person_identifiers_request.py +1 -1
- lusid/models/set_person_properties_request.py +1 -1
- lusid/models/set_share_class_instruments_request.py +1 -1
- lusid/models/set_transaction_configuration_alias.py +1 -1
- lusid/models/set_transaction_configuration_source_request.py +1 -1
- lusid/models/side_configuration_data.py +1 -1
- lusid/models/side_configuration_data_request.py +1 -1
- lusid/models/side_definition.py +1 -1
- lusid/models/side_definition_request.py +1 -1
- lusid/models/sides_definition_request.py +1 -1
- lusid/models/simple_cash_flow_loan.py +1 -1
- lusid/models/simple_instrument.py +1 -1
- lusid/models/staging_rule.py +1 -1
- lusid/models/staging_rule_approval_criteria.py +1 -1
- lusid/models/staging_rule_match_criteria.py +1 -1
- lusid/models/staging_rule_set.py +1 -1
- lusid/models/step_schedule.py +1 -1
- lusid/models/stock_dividend_event.py +113 -0
- lusid/models/stock_split_event.py +29 -11
- lusid/models/stream.py +1 -1
- lusid/models/string_compliance_parameter.py +4 -4
- lusid/models/string_list.py +4 -4
- lusid/models/string_list_compliance_parameter.py +4 -4
- lusid/models/structured_result_data.py +1 -1
- lusid/models/structured_result_data_id.py +1 -1
- lusid/models/sub_holding_key_value_equals.py +1 -1
- lusid/models/target_tax_lot.py +1 -1
- lusid/models/target_tax_lot_request.py +1 -1
- lusid/models/tax_rule.py +1 -1
- lusid/models/tax_rule_set.py +1 -1
- lusid/models/template_field.py +1 -1
- lusid/models/term_deposit.py +1 -1
- lusid/models/total_return_swap.py +1 -1
- lusid/models/touch.py +1 -1
- lusid/models/trade_ticket.py +1 -1
- lusid/models/transaction.py +1 -1
- lusid/models/transaction_configuration_data.py +1 -1
- lusid/models/transaction_configuration_data_request.py +1 -1
- lusid/models/transaction_configuration_movement_data.py +1 -1
- lusid/models/transaction_configuration_movement_data_request.py +1 -1
- lusid/models/transaction_configuration_type_alias.py +1 -1
- lusid/models/transaction_currency_and_amount.py +1 -1
- lusid/models/transaction_field_map.py +1 -1
- lusid/models/transaction_price.py +1 -1
- lusid/models/transaction_price_and_type.py +1 -1
- lusid/models/transaction_property_map.py +1 -1
- lusid/models/transaction_property_mapping.py +1 -1
- lusid/models/transaction_property_mapping_request.py +1 -1
- lusid/models/transaction_query_parameters.py +1 -1
- lusid/models/transaction_reconciliation_request.py +1 -1
- lusid/models/transaction_reconciliation_request_v2.py +1 -1
- lusid/models/transaction_request.py +1 -1
- lusid/models/transaction_set_configuration_data.py +1 -1
- lusid/models/transaction_set_configuration_data_request.py +1 -1
- lusid/models/transaction_template.py +1 -1
- lusid/models/transaction_template_request.py +1 -1
- lusid/models/transaction_template_specification.py +1 -1
- lusid/models/transaction_type.py +1 -1
- lusid/models/transaction_type_alias.py +1 -1
- lusid/models/transaction_type_calculation.py +1 -1
- lusid/models/transaction_type_movement.py +1 -1
- lusid/models/transaction_type_property_mapping.py +1 -1
- lusid/models/transaction_type_request.py +1 -1
- lusid/models/transactions_reconciliations_response.py +1 -1
- lusid/models/transition_event.py +4 -4
- lusid/models/translate_entities_inlined_request.py +1 -1
- lusid/models/translate_entities_request.py +1 -1
- lusid/models/translate_entities_response.py +1 -1
- lusid/models/translate_instrument_definitions_request.py +1 -1
- lusid/models/translate_instrument_definitions_response.py +1 -1
- lusid/models/translate_trade_ticket_request.py +1 -1
- lusid/models/translate_trade_tickets_response.py +1 -1
- lusid/models/translation_context.py +1 -1
- lusid/models/translation_input.py +1 -1
- lusid/models/translation_result.py +1 -1
- lusid/models/translation_script.py +1 -1
- lusid/models/translation_script_id.py +1 -1
- lusid/models/trial_balance.py +1 -1
- lusid/models/trial_balance_query_parameters.py +1 -1
- lusid/models/trigger_event.py +4 -4
- lusid/models/typed_resource_id.py +1 -1
- lusid/models/units_ratio.py +1 -1
- lusid/models/update_amortisation_rule_set_details_request.py +93 -0
- lusid/models/update_calendar_request.py +1 -1
- lusid/models/update_custom_entity_definition_request.py +1 -1
- lusid/models/update_custom_entity_type_request.py +1 -1
- lusid/models/update_cut_label_definition_request.py +1 -1
- lusid/models/update_data_type_request.py +1 -1
- lusid/models/update_derived_property_definition_request.py +1 -1
- lusid/models/update_instrument_identifier_request.py +1 -1
- lusid/models/update_portfolio_group_request.py +1 -1
- lusid/models/update_portfolio_request.py +1 -1
- lusid/models/update_property_definition_request.py +1 -1
- lusid/models/update_reconciliation_request.py +1 -1
- lusid/models/update_relationship_definition_request.py +1 -1
- lusid/models/update_staging_rule_set_request.py +1 -1
- lusid/models/update_tax_rule_set_request.py +1 -1
- lusid/models/update_unit_request.py +1 -1
- lusid/models/upsert_cds_flow_conventions_request.py +1 -1
- lusid/models/upsert_complex_market_data_request.py +1 -1
- lusid/models/upsert_compliance_rule_request.py +1 -1
- lusid/models/upsert_compliance_run_summary_request.py +1 -1
- lusid/models/upsert_compliance_run_summary_result.py +1 -1
- lusid/models/upsert_corporate_action_request.py +1 -1
- lusid/models/upsert_corporate_actions_response.py +1 -1
- lusid/models/upsert_counterparty_agreement_request.py +1 -1
- lusid/models/upsert_credit_support_annex_request.py +1 -1
- lusid/models/upsert_custom_entities_response.py +1 -1
- lusid/models/upsert_custom_entity_access_metadata_request.py +1 -1
- lusid/models/upsert_dialect_request.py +1 -1
- lusid/models/upsert_flow_conventions_request.py +1 -1
- lusid/models/upsert_index_convention_request.py +1 -1
- lusid/models/upsert_instrument_event_request.py +1 -1
- lusid/models/upsert_instrument_events_response.py +1 -1
- lusid/models/upsert_instrument_properties_response.py +1 -1
- lusid/models/upsert_instrument_property_request.py +1 -1
- lusid/models/upsert_instruments_response.py +1 -1
- lusid/models/upsert_legal_entities_response.py +1 -1
- lusid/models/upsert_legal_entity_access_metadata_request.py +1 -1
- lusid/models/upsert_legal_entity_request.py +1 -1
- lusid/models/upsert_person_access_metadata_request.py +1 -1
- lusid/models/upsert_person_request.py +1 -1
- lusid/models/upsert_portfolio_access_metadata_request.py +1 -1
- lusid/models/upsert_portfolio_group_access_metadata_request.py +1 -1
- lusid/models/upsert_portfolio_transactions_response.py +1 -1
- lusid/models/upsert_quote_access_metadata_rule_request.py +1 -1
- lusid/models/upsert_quote_request.py +1 -1
- lusid/models/upsert_quotes_response.py +1 -1
- lusid/models/upsert_recipe_composer_request.py +1 -1
- lusid/models/upsert_recipe_request.py +1 -1
- lusid/models/upsert_reference_portfolio_constituents_request.py +1 -1
- lusid/models/upsert_reference_portfolio_constituents_response.py +1 -1
- lusid/models/upsert_result_values_data_request.py +1 -1
- lusid/models/upsert_returns_response.py +1 -1
- lusid/models/upsert_single_structured_data_response.py +1 -1
- lusid/models/upsert_structured_data_response.py +1 -1
- lusid/models/upsert_structured_result_data_request.py +1 -1
- lusid/models/upsert_transaction_properties_response.py +1 -1
- lusid/models/upsert_translation_script_request.py +1 -1
- lusid/models/upsert_valuation_point_request.py +1 -1
- lusid/models/user.py +1 -1
- lusid/models/valuation_point_data_query_parameters.py +1 -1
- lusid/models/valuation_point_data_request.py +1 -1
- lusid/models/valuation_point_data_response.py +1 -1
- lusid/models/valuation_request.py +1 -1
- lusid/models/valuation_schedule.py +1 -1
- lusid/models/valuations_reconciliation_request.py +1 -1
- lusid/models/vendor_dependency.py +1 -1
- lusid/models/vendor_model_rule.py +1 -1
- lusid/models/version.py +11 -3
- lusid/models/version_summary_dto.py +1 -1
- lusid/models/versioned_resource_list_of_a2_b_data_record.py +1 -1
- lusid/models/versioned_resource_list_of_a2_b_movement_record.py +1 -1
- lusid/models/versioned_resource_list_of_holding_contributor.py +1 -1
- lusid/models/versioned_resource_list_of_journal_entry_line.py +1 -1
- lusid/models/versioned_resource_list_of_output_transaction.py +1 -1
- lusid/models/versioned_resource_list_of_portfolio_holding.py +1 -1
- lusid/models/versioned_resource_list_of_transaction.py +1 -1
- lusid/models/versioned_resource_list_of_trial_balance.py +1 -1
- lusid/models/versioned_resource_list_with_warnings_of_portfolio_holding.py +1 -1
- lusid/models/virtual_document.py +1 -1
- lusid/models/virtual_document_row.py +1 -1
- lusid/models/virtual_row.py +1 -1
- lusid/models/warning.py +1 -1
- lusid/models/weekend_mask.py +1 -1
- lusid/models/weighted_instrument.py +1 -1
- lusid/models/weighted_instrument_in_line_lookup_identifiers.py +1 -1
- lusid/models/weighted_instruments.py +1 -1
- lusid/models/yield_curve_data.py +1 -1
- lusid/rest.py +4 -1
- {lusid_sdk-2.0.485.dist-info → lusid_sdk-2.1.77.dist-info}/METADATA +27 -7
- lusid_sdk-2.1.77.dist-info/RECORD +1026 -0
- lusid_sdk-2.0.485.dist-info/RECORD +0 -1012
- {lusid_sdk-2.0.485.dist-info → lusid_sdk-2.1.77.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LUSID API
|
|
5
|
+
|
|
6
|
+
FINBOURNE Technology # noqa: E501
|
|
7
|
+
|
|
8
|
+
Contact: info@finbourne.com
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from datetime import datetime
|
|
21
|
+
from typing import Any, Dict, List, Optional
|
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictBool, StrictStr, conlist, constr, validator
|
|
23
|
+
from lusid.models.instrument_event_configuration import InstrumentEventConfiguration
|
|
24
|
+
from lusid.models.link import Link
|
|
25
|
+
from lusid.models.model_property import ModelProperty
|
|
26
|
+
from lusid.models.relationship import Relationship
|
|
27
|
+
from lusid.models.resource_id import ResourceId
|
|
28
|
+
from lusid.models.version import Version
|
|
29
|
+
|
|
30
|
+
class PortfolioWithoutHref(BaseModel):
|
|
31
|
+
"""
|
|
32
|
+
A list of portfolios. # noqa: E501
|
|
33
|
+
"""
|
|
34
|
+
id: ResourceId = Field(...)
|
|
35
|
+
type: StrictStr = Field(..., description="The type of the portfolio. The available values are: Transaction, Reference, DerivedTransaction")
|
|
36
|
+
display_name: constr(strict=True, min_length=1) = Field(..., alias="displayName", description="The name of the portfolio.")
|
|
37
|
+
description: Optional[StrictStr] = Field(None, description="The long form description of the portfolio.")
|
|
38
|
+
created: datetime = Field(..., description="The effective datetime at which the portfolio was created. No transactions or constituents can be added to the portfolio before this date.")
|
|
39
|
+
parent_portfolio_id: Optional[ResourceId] = Field(None, alias="parentPortfolioId")
|
|
40
|
+
version: Optional[Version] = None
|
|
41
|
+
is_derived: Optional[StrictBool] = Field(None, alias="isDerived", description="Whether or not this is a derived portfolio.")
|
|
42
|
+
base_currency: Optional[StrictStr] = Field(None, alias="baseCurrency", description="The base currency of the portfolio.")
|
|
43
|
+
properties: Optional[Dict[str, ModelProperty]] = Field(None, description="The requested portfolio properties. These will be from the 'Portfolio' domain.")
|
|
44
|
+
relationships: Optional[conlist(Relationship)] = Field(None, description="A set of relationships associated to the portfolio.")
|
|
45
|
+
instrument_scopes: Optional[conlist(StrictStr)] = Field(None, alias="instrumentScopes", description="The instrument scope resolution strategy of this portfolio.")
|
|
46
|
+
accounting_method: Optional[StrictStr] = Field(None, alias="accountingMethod", description=". The available values are: Default, AverageCost, FirstInFirstOut, LastInFirstOut, HighestCostFirst, LowestCostFirst")
|
|
47
|
+
amortisation_method: Optional[StrictStr] = Field(None, alias="amortisationMethod", description="The amortisation method used by the portfolio for the calculation. The available values are: NoAmortisation, StraightLine, EffectiveYield, StraightLineSettlementDate, EffectiveYieldSettlementDate")
|
|
48
|
+
transaction_type_scope: Optional[StrictStr] = Field(None, alias="transactionTypeScope", description="The scope of the transaction types.")
|
|
49
|
+
cash_gain_loss_calculation_date: Optional[StrictStr] = Field(None, alias="cashGainLossCalculationDate", description="The scope of the transaction types.")
|
|
50
|
+
instrument_event_configuration: Optional[InstrumentEventConfiguration] = Field(None, alias="instrumentEventConfiguration")
|
|
51
|
+
amortisation_rule_set_id: Optional[ResourceId] = Field(None, alias="amortisationRuleSetId")
|
|
52
|
+
links: Optional[conlist(Link)] = None
|
|
53
|
+
__properties = ["id", "type", "displayName", "description", "created", "parentPortfolioId", "version", "isDerived", "baseCurrency", "properties", "relationships", "instrumentScopes", "accountingMethod", "amortisationMethod", "transactionTypeScope", "cashGainLossCalculationDate", "instrumentEventConfiguration", "amortisationRuleSetId", "links"]
|
|
54
|
+
|
|
55
|
+
@validator('type')
|
|
56
|
+
def type_validate_enum(cls, value):
|
|
57
|
+
"""Validates the enum"""
|
|
58
|
+
if value not in ('Transaction', 'Reference', 'DerivedTransaction'):
|
|
59
|
+
raise ValueError("must be one of enum values ('Transaction', 'Reference', 'DerivedTransaction')")
|
|
60
|
+
return value
|
|
61
|
+
|
|
62
|
+
@validator('accounting_method')
|
|
63
|
+
def accounting_method_validate_enum(cls, value):
|
|
64
|
+
"""Validates the enum"""
|
|
65
|
+
if value is None:
|
|
66
|
+
return value
|
|
67
|
+
|
|
68
|
+
if value not in ('Default', 'AverageCost', 'FirstInFirstOut', 'LastInFirstOut', 'HighestCostFirst', 'LowestCostFirst'):
|
|
69
|
+
raise ValueError("must be one of enum values ('Default', 'AverageCost', 'FirstInFirstOut', 'LastInFirstOut', 'HighestCostFirst', 'LowestCostFirst')")
|
|
70
|
+
return value
|
|
71
|
+
|
|
72
|
+
class Config:
|
|
73
|
+
"""Pydantic configuration"""
|
|
74
|
+
allow_population_by_field_name = True
|
|
75
|
+
validate_assignment = True
|
|
76
|
+
|
|
77
|
+
def to_str(self) -> str:
|
|
78
|
+
"""Returns the string representation of the model using alias"""
|
|
79
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
80
|
+
|
|
81
|
+
def to_json(self) -> str:
|
|
82
|
+
"""Returns the JSON representation of the model using alias"""
|
|
83
|
+
return json.dumps(self.to_dict())
|
|
84
|
+
|
|
85
|
+
@classmethod
|
|
86
|
+
def from_json(cls, json_str: str) -> PortfolioWithoutHref:
|
|
87
|
+
"""Create an instance of PortfolioWithoutHref from a JSON string"""
|
|
88
|
+
return cls.from_dict(json.loads(json_str))
|
|
89
|
+
|
|
90
|
+
def to_dict(self):
|
|
91
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
92
|
+
_dict = self.dict(by_alias=True,
|
|
93
|
+
exclude={
|
|
94
|
+
},
|
|
95
|
+
exclude_none=True)
|
|
96
|
+
# override the default output from pydantic by calling `to_dict()` of id
|
|
97
|
+
if self.id:
|
|
98
|
+
_dict['id'] = self.id.to_dict()
|
|
99
|
+
# override the default output from pydantic by calling `to_dict()` of parent_portfolio_id
|
|
100
|
+
if self.parent_portfolio_id:
|
|
101
|
+
_dict['parentPortfolioId'] = self.parent_portfolio_id.to_dict()
|
|
102
|
+
# override the default output from pydantic by calling `to_dict()` of version
|
|
103
|
+
if self.version:
|
|
104
|
+
_dict['version'] = self.version.to_dict()
|
|
105
|
+
# override the default output from pydantic by calling `to_dict()` of each value in properties (dict)
|
|
106
|
+
_field_dict = {}
|
|
107
|
+
if self.properties:
|
|
108
|
+
for _key in self.properties:
|
|
109
|
+
if self.properties[_key]:
|
|
110
|
+
_field_dict[_key] = self.properties[_key].to_dict()
|
|
111
|
+
_dict['properties'] = _field_dict
|
|
112
|
+
# override the default output from pydantic by calling `to_dict()` of each item in relationships (list)
|
|
113
|
+
_items = []
|
|
114
|
+
if self.relationships:
|
|
115
|
+
for _item in self.relationships:
|
|
116
|
+
if _item:
|
|
117
|
+
_items.append(_item.to_dict())
|
|
118
|
+
_dict['relationships'] = _items
|
|
119
|
+
# override the default output from pydantic by calling `to_dict()` of instrument_event_configuration
|
|
120
|
+
if self.instrument_event_configuration:
|
|
121
|
+
_dict['instrumentEventConfiguration'] = self.instrument_event_configuration.to_dict()
|
|
122
|
+
# override the default output from pydantic by calling `to_dict()` of amortisation_rule_set_id
|
|
123
|
+
if self.amortisation_rule_set_id:
|
|
124
|
+
_dict['amortisationRuleSetId'] = self.amortisation_rule_set_id.to_dict()
|
|
125
|
+
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
|
126
|
+
_items = []
|
|
127
|
+
if self.links:
|
|
128
|
+
for _item in self.links:
|
|
129
|
+
if _item:
|
|
130
|
+
_items.append(_item.to_dict())
|
|
131
|
+
_dict['links'] = _items
|
|
132
|
+
# set to None if description (nullable) is None
|
|
133
|
+
# and __fields_set__ contains the field
|
|
134
|
+
if self.description is None and "description" in self.__fields_set__:
|
|
135
|
+
_dict['description'] = None
|
|
136
|
+
|
|
137
|
+
# set to None if base_currency (nullable) is None
|
|
138
|
+
# and __fields_set__ contains the field
|
|
139
|
+
if self.base_currency is None and "base_currency" in self.__fields_set__:
|
|
140
|
+
_dict['baseCurrency'] = None
|
|
141
|
+
|
|
142
|
+
# set to None if properties (nullable) is None
|
|
143
|
+
# and __fields_set__ contains the field
|
|
144
|
+
if self.properties is None and "properties" in self.__fields_set__:
|
|
145
|
+
_dict['properties'] = None
|
|
146
|
+
|
|
147
|
+
# set to None if relationships (nullable) is None
|
|
148
|
+
# and __fields_set__ contains the field
|
|
149
|
+
if self.relationships is None and "relationships" in self.__fields_set__:
|
|
150
|
+
_dict['relationships'] = None
|
|
151
|
+
|
|
152
|
+
# set to None if instrument_scopes (nullable) is None
|
|
153
|
+
# and __fields_set__ contains the field
|
|
154
|
+
if self.instrument_scopes is None and "instrument_scopes" in self.__fields_set__:
|
|
155
|
+
_dict['instrumentScopes'] = None
|
|
156
|
+
|
|
157
|
+
# set to None if amortisation_method (nullable) is None
|
|
158
|
+
# and __fields_set__ contains the field
|
|
159
|
+
if self.amortisation_method is None and "amortisation_method" in self.__fields_set__:
|
|
160
|
+
_dict['amortisationMethod'] = None
|
|
161
|
+
|
|
162
|
+
# set to None if transaction_type_scope (nullable) is None
|
|
163
|
+
# and __fields_set__ contains the field
|
|
164
|
+
if self.transaction_type_scope is None and "transaction_type_scope" in self.__fields_set__:
|
|
165
|
+
_dict['transactionTypeScope'] = None
|
|
166
|
+
|
|
167
|
+
# set to None if cash_gain_loss_calculation_date (nullable) is None
|
|
168
|
+
# and __fields_set__ contains the field
|
|
169
|
+
if self.cash_gain_loss_calculation_date is None and "cash_gain_loss_calculation_date" in self.__fields_set__:
|
|
170
|
+
_dict['cashGainLossCalculationDate'] = None
|
|
171
|
+
|
|
172
|
+
# set to None if links (nullable) is None
|
|
173
|
+
# and __fields_set__ contains the field
|
|
174
|
+
if self.links is None and "links" in self.__fields_set__:
|
|
175
|
+
_dict['links'] = None
|
|
176
|
+
|
|
177
|
+
return _dict
|
|
178
|
+
|
|
179
|
+
@classmethod
|
|
180
|
+
def from_dict(cls, obj: dict) -> PortfolioWithoutHref:
|
|
181
|
+
"""Create an instance of PortfolioWithoutHref from a dict"""
|
|
182
|
+
if obj is None:
|
|
183
|
+
return None
|
|
184
|
+
|
|
185
|
+
if not isinstance(obj, dict):
|
|
186
|
+
return PortfolioWithoutHref.parse_obj(obj)
|
|
187
|
+
|
|
188
|
+
_obj = PortfolioWithoutHref.parse_obj({
|
|
189
|
+
"id": ResourceId.from_dict(obj.get("id")) if obj.get("id") is not None else None,
|
|
190
|
+
"type": obj.get("type"),
|
|
191
|
+
"display_name": obj.get("displayName"),
|
|
192
|
+
"description": obj.get("description"),
|
|
193
|
+
"created": obj.get("created"),
|
|
194
|
+
"parent_portfolio_id": ResourceId.from_dict(obj.get("parentPortfolioId")) if obj.get("parentPortfolioId") is not None else None,
|
|
195
|
+
"version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
|
|
196
|
+
"is_derived": obj.get("isDerived"),
|
|
197
|
+
"base_currency": obj.get("baseCurrency"),
|
|
198
|
+
"properties": dict(
|
|
199
|
+
(_k, ModelProperty.from_dict(_v))
|
|
200
|
+
for _k, _v in obj.get("properties").items()
|
|
201
|
+
)
|
|
202
|
+
if obj.get("properties") is not None
|
|
203
|
+
else None,
|
|
204
|
+
"relationships": [Relationship.from_dict(_item) for _item in obj.get("relationships")] if obj.get("relationships") is not None else None,
|
|
205
|
+
"instrument_scopes": obj.get("instrumentScopes"),
|
|
206
|
+
"accounting_method": obj.get("accountingMethod"),
|
|
207
|
+
"amortisation_method": obj.get("amortisationMethod"),
|
|
208
|
+
"transaction_type_scope": obj.get("transactionTypeScope"),
|
|
209
|
+
"cash_gain_loss_calculation_date": obj.get("cashGainLossCalculationDate"),
|
|
210
|
+
"instrument_event_configuration": InstrumentEventConfiguration.from_dict(obj.get("instrumentEventConfiguration")) if obj.get("instrumentEventConfiguration") is not None else None,
|
|
211
|
+
"amortisation_rule_set_id": ResourceId.from_dict(obj.get("amortisationRuleSetId")) if obj.get("amortisationRuleSetId") is not None else None,
|
|
212
|
+
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
|
213
|
+
})
|
|
214
|
+
return _obj
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
from typing import Any, Dict, List
|
|
22
|
-
from pydantic import BaseModel, Field, StrictStr, conlist
|
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictStr, conlist
|
|
23
23
|
from lusid.models.portfolio_reconciliation_request import PortfolioReconciliationRequest
|
|
24
24
|
|
|
25
25
|
class PortfoliosReconciliationRequest(BaseModel):
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
from typing import Any, Dict, List, Optional
|
|
22
|
-
from pydantic import BaseModel, Field, conlist, constr, validator
|
|
22
|
+
from pydantic.v1 import BaseModel, Field, conlist, constr, validator
|
|
23
23
|
from lusid.models.posting_module_rule import PostingModuleRule
|
|
24
24
|
|
|
25
25
|
class PostingModuleRequest(BaseModel):
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
from typing import Any, Dict, List, Optional
|
|
22
|
-
from pydantic import BaseModel, Field, StrictStr, conlist, constr, validator
|
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictStr, conlist, constr, validator
|
|
23
23
|
from lusid.models.link import Link
|
|
24
24
|
from lusid.models.posting_module_rule import PostingModuleRule
|
|
25
25
|
from lusid.models.resource_id import ResourceId
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
from typing import Any, Dict, List, Optional
|
|
22
|
-
from pydantic import BaseModel, Field, StrictStr, conlist
|
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictStr, conlist
|
|
23
23
|
from lusid.models.link import Link
|
|
24
24
|
from lusid.models.posting_module_rule import PostingModuleRule
|
|
25
25
|
from lusid.models.version import Version
|
lusid/models/premium.py
CHANGED
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from typing import Any, Dict, Union
|
|
22
|
-
from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr
|
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictFloat, StrictInt, StrictStr
|
|
23
23
|
|
|
24
24
|
class Premium(BaseModel):
|
|
25
25
|
"""
|
lusid/models/pricing_context.py
CHANGED
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
from typing import Any, Dict, List, Optional
|
|
22
|
-
from pydantic import BaseModel, Field, conlist
|
|
22
|
+
from pydantic.v1 import BaseModel, Field, conlist
|
|
23
23
|
from lusid.models.model_selection import ModelSelection
|
|
24
24
|
from lusid.models.pricing_options import PricingOptions
|
|
25
25
|
from lusid.models.result_key_rule import ResultKeyRule
|
lusid/models/pricing_options.py
CHANGED
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
from typing import Any, Dict, Optional
|
|
22
|
-
from pydantic import BaseModel, Field, StrictBool, StrictStr
|
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictBool, StrictStr
|
|
23
23
|
from lusid.models.model_selection import ModelSelection
|
|
24
24
|
|
|
25
25
|
class PricingOptions(BaseModel):
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from typing import Any, Dict, Optional
|
|
22
|
-
from pydantic import BaseModel, Field, StrictStr, constr
|
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictStr, constr
|
|
23
23
|
from lusid.models.user import User
|
|
24
24
|
|
|
25
25
|
class ProcessedCommand(BaseModel):
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
from typing import Any, Dict, List, Optional
|
|
22
|
-
from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist, validator
|
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictBool, StrictStr, conlist, validator
|
|
23
23
|
from lusid.models.link import Link
|
|
24
24
|
from lusid.models.model_property import ModelProperty
|
|
25
25
|
from lusid.models.resource_id import ResourceId
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
from typing import Any, Dict, List, Optional
|
|
22
|
-
from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist, validator
|
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictBool, StrictStr, conlist, validator
|
|
23
23
|
from lusid.models.link import Link
|
|
24
24
|
from lusid.models.resource_id import ResourceId
|
|
25
25
|
|
lusid/models/property_filter.py
CHANGED
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
from typing import Any, Dict
|
|
22
|
-
from pydantic import Field, StrictStr, validator
|
|
22
|
+
from pydantic.v1 import Field, StrictStr, validator
|
|
23
23
|
from lusid.models.compliance_parameter import ComplianceParameter
|
|
24
24
|
|
|
25
25
|
class PropertyKeyComplianceParameter(ComplianceParameter):
|
|
@@ -27,15 +27,15 @@ class PropertyKeyComplianceParameter(ComplianceParameter):
|
|
|
27
27
|
PropertyKeyComplianceParameter
|
|
28
28
|
"""
|
|
29
29
|
value: StrictStr = Field(..., description="The key that uniquely identifies the property. It has the format {domain}/{scope}/{code}.")
|
|
30
|
-
compliance_parameter_type: StrictStr = Field(..., alias="complianceParameterType", description="The parameter type. The available values are: BoolComplianceParameter, StringComplianceParameter, DecimalComplianceParameter, DateTimeComplianceParameter, PropertyKeyComplianceParameter, AddressKeyComplianceParameter, PortfolioIdComplianceParameter, PortfolioGroupIdComplianceParameter, StringListComplianceParameter, BoolListComplianceParameter, DateTimeListComplianceParameter, DecimalListComplianceParameter, PropertyKeyListComplianceParameter, AddressKeyListComplianceParameter, PortfolioIdListComplianceParameter, PortfolioGroupIdListComplianceParameter, InstrumentListComplianceParameter, FilterPredicateComplianceParameter, GroupFilterPredicateComplianceParameter, GroupBySelectorComplianceParameter")
|
|
30
|
+
compliance_parameter_type: StrictStr = Field(..., alias="complianceParameterType", description="The parameter type. The available values are: BoolComplianceParameter, StringComplianceParameter, DecimalComplianceParameter, DateTimeComplianceParameter, PropertyKeyComplianceParameter, AddressKeyComplianceParameter, PortfolioIdComplianceParameter, PortfolioGroupIdComplianceParameter, StringListComplianceParameter, BoolListComplianceParameter, DateTimeListComplianceParameter, DecimalListComplianceParameter, PropertyKeyListComplianceParameter, AddressKeyListComplianceParameter, PortfolioIdListComplianceParameter, PortfolioGroupIdListComplianceParameter, InstrumentListComplianceParameter, FilterPredicateComplianceParameter, GroupFilterPredicateComplianceParameter, GroupBySelectorComplianceParameter, PropertyListComplianceParameter")
|
|
31
31
|
additional_properties: Dict[str, Any] = {}
|
|
32
32
|
__properties = ["complianceParameterType", "value"]
|
|
33
33
|
|
|
34
34
|
@validator('compliance_parameter_type')
|
|
35
35
|
def compliance_parameter_type_validate_enum(cls, value):
|
|
36
36
|
"""Validates the enum"""
|
|
37
|
-
if value not in ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter'):
|
|
38
|
-
raise ValueError("must be one of enum values ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter')")
|
|
37
|
+
if value not in ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter'):
|
|
38
|
+
raise ValueError("must be one of enum values ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter')")
|
|
39
39
|
return value
|
|
40
40
|
|
|
41
41
|
class Config:
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
from typing import Any, Dict
|
|
22
|
-
from pydantic import Field, StrictStr, validator
|
|
22
|
+
from pydantic.v1 import Field, StrictStr, validator
|
|
23
23
|
from lusid.models.compliance_parameter import ComplianceParameter
|
|
24
24
|
from lusid.models.resource_id import ResourceId
|
|
25
25
|
|
|
@@ -28,15 +28,15 @@ class PropertyKeyListComplianceParameter(ComplianceParameter):
|
|
|
28
28
|
PropertyKeyListComplianceParameter
|
|
29
29
|
"""
|
|
30
30
|
value: ResourceId = Field(...)
|
|
31
|
-
compliance_parameter_type: StrictStr = Field(..., alias="complianceParameterType", description="The parameter type. The available values are: BoolComplianceParameter, StringComplianceParameter, DecimalComplianceParameter, DateTimeComplianceParameter, PropertyKeyComplianceParameter, AddressKeyComplianceParameter, PortfolioIdComplianceParameter, PortfolioGroupIdComplianceParameter, StringListComplianceParameter, BoolListComplianceParameter, DateTimeListComplianceParameter, DecimalListComplianceParameter, PropertyKeyListComplianceParameter, AddressKeyListComplianceParameter, PortfolioIdListComplianceParameter, PortfolioGroupIdListComplianceParameter, InstrumentListComplianceParameter, FilterPredicateComplianceParameter, GroupFilterPredicateComplianceParameter, GroupBySelectorComplianceParameter")
|
|
31
|
+
compliance_parameter_type: StrictStr = Field(..., alias="complianceParameterType", description="The parameter type. The available values are: BoolComplianceParameter, StringComplianceParameter, DecimalComplianceParameter, DateTimeComplianceParameter, PropertyKeyComplianceParameter, AddressKeyComplianceParameter, PortfolioIdComplianceParameter, PortfolioGroupIdComplianceParameter, StringListComplianceParameter, BoolListComplianceParameter, DateTimeListComplianceParameter, DecimalListComplianceParameter, PropertyKeyListComplianceParameter, AddressKeyListComplianceParameter, PortfolioIdListComplianceParameter, PortfolioGroupIdListComplianceParameter, InstrumentListComplianceParameter, FilterPredicateComplianceParameter, GroupFilterPredicateComplianceParameter, GroupBySelectorComplianceParameter, PropertyListComplianceParameter")
|
|
32
32
|
additional_properties: Dict[str, Any] = {}
|
|
33
33
|
__properties = ["complianceParameterType", "value"]
|
|
34
34
|
|
|
35
35
|
@validator('compliance_parameter_type')
|
|
36
36
|
def compliance_parameter_type_validate_enum(cls, value):
|
|
37
37
|
"""Validates the enum"""
|
|
38
|
-
if value not in ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter'):
|
|
39
|
-
raise ValueError("must be one of enum values ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter')")
|
|
38
|
+
if value not in ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter'):
|
|
39
|
+
raise ValueError("must be one of enum values ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter')")
|
|
40
40
|
return value
|
|
41
41
|
|
|
42
42
|
class Config:
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LUSID API
|
|
5
|
+
|
|
6
|
+
FINBOURNE Technology # noqa: E501
|
|
7
|
+
|
|
8
|
+
Contact: info@finbourne.com
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
from typing import Any, Dict, List
|
|
22
|
+
from pydantic.v1 import Field, StrictStr, conlist, validator
|
|
23
|
+
from lusid.models.model_property import ModelProperty
|
|
24
|
+
from lusid.models.reference_list import ReferenceList
|
|
25
|
+
|
|
26
|
+
class PropertyList(ReferenceList):
|
|
27
|
+
"""
|
|
28
|
+
PropertyList
|
|
29
|
+
"""
|
|
30
|
+
values: conlist(ModelProperty, max_items=100, min_items=0) = Field(...)
|
|
31
|
+
reference_list_type: StrictStr = Field(..., alias="referenceListType", description="The reference list values. The available values are: PortfolioGroupIdList, PortfolioIdList, AddressKeyList, StringList, InstrumentList, DecimalList, PropertyList")
|
|
32
|
+
additional_properties: Dict[str, Any] = {}
|
|
33
|
+
__properties = ["referenceListType", "values"]
|
|
34
|
+
|
|
35
|
+
@validator('reference_list_type')
|
|
36
|
+
def reference_list_type_validate_enum(cls, value):
|
|
37
|
+
"""Validates the enum"""
|
|
38
|
+
if value not in ('PortfolioGroupIdList', 'PortfolioIdList', 'AddressKeyList', 'StringList', 'InstrumentList', 'DecimalList', 'PropertyList'):
|
|
39
|
+
raise ValueError("must be one of enum values ('PortfolioGroupIdList', 'PortfolioIdList', 'AddressKeyList', 'StringList', 'InstrumentList', 'DecimalList', 'PropertyList')")
|
|
40
|
+
return value
|
|
41
|
+
|
|
42
|
+
class Config:
|
|
43
|
+
"""Pydantic configuration"""
|
|
44
|
+
allow_population_by_field_name = True
|
|
45
|
+
validate_assignment = True
|
|
46
|
+
|
|
47
|
+
def to_str(self) -> str:
|
|
48
|
+
"""Returns the string representation of the model using alias"""
|
|
49
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
50
|
+
|
|
51
|
+
def to_json(self) -> str:
|
|
52
|
+
"""Returns the JSON representation of the model using alias"""
|
|
53
|
+
return json.dumps(self.to_dict())
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def from_json(cls, json_str: str) -> PropertyList:
|
|
57
|
+
"""Create an instance of PropertyList from a JSON string"""
|
|
58
|
+
return cls.from_dict(json.loads(json_str))
|
|
59
|
+
|
|
60
|
+
def to_dict(self):
|
|
61
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
62
|
+
_dict = self.dict(by_alias=True,
|
|
63
|
+
exclude={
|
|
64
|
+
"additional_properties"
|
|
65
|
+
},
|
|
66
|
+
exclude_none=True)
|
|
67
|
+
# override the default output from pydantic by calling `to_dict()` of each item in values (list)
|
|
68
|
+
_items = []
|
|
69
|
+
if self.values:
|
|
70
|
+
for _item in self.values:
|
|
71
|
+
if _item:
|
|
72
|
+
_items.append(_item.to_dict())
|
|
73
|
+
_dict['values'] = _items
|
|
74
|
+
# puts key-value pairs in additional_properties in the top level
|
|
75
|
+
if self.additional_properties is not None:
|
|
76
|
+
for _key, _value in self.additional_properties.items():
|
|
77
|
+
_dict[_key] = _value
|
|
78
|
+
|
|
79
|
+
return _dict
|
|
80
|
+
|
|
81
|
+
@classmethod
|
|
82
|
+
def from_dict(cls, obj: dict) -> PropertyList:
|
|
83
|
+
"""Create an instance of PropertyList from a dict"""
|
|
84
|
+
if obj is None:
|
|
85
|
+
return None
|
|
86
|
+
|
|
87
|
+
if not isinstance(obj, dict):
|
|
88
|
+
return PropertyList.parse_obj(obj)
|
|
89
|
+
|
|
90
|
+
_obj = PropertyList.parse_obj({
|
|
91
|
+
"reference_list_type": obj.get("referenceListType"),
|
|
92
|
+
"values": [ModelProperty.from_dict(_item) for _item in obj.get("values")] if obj.get("values") is not None else None
|
|
93
|
+
})
|
|
94
|
+
# store additional fields in additional_properties
|
|
95
|
+
for _key in obj.keys():
|
|
96
|
+
if _key not in cls.__properties:
|
|
97
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
98
|
+
|
|
99
|
+
return _obj
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LUSID API
|
|
5
|
+
|
|
6
|
+
FINBOURNE Technology # noqa: E501
|
|
7
|
+
|
|
8
|
+
Contact: info@finbourne.com
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
from typing import Any, Dict
|
|
22
|
+
from pydantic.v1 import Field, StrictStr, validator
|
|
23
|
+
from lusid.models.compliance_parameter import ComplianceParameter
|
|
24
|
+
from lusid.models.resource_id import ResourceId
|
|
25
|
+
|
|
26
|
+
class PropertyListComplianceParameter(ComplianceParameter):
|
|
27
|
+
"""
|
|
28
|
+
PropertyListComplianceParameter
|
|
29
|
+
"""
|
|
30
|
+
value: ResourceId = Field(...)
|
|
31
|
+
compliance_parameter_type: StrictStr = Field(..., alias="complianceParameterType", description="The parameter type. The available values are: BoolComplianceParameter, StringComplianceParameter, DecimalComplianceParameter, DateTimeComplianceParameter, PropertyKeyComplianceParameter, AddressKeyComplianceParameter, PortfolioIdComplianceParameter, PortfolioGroupIdComplianceParameter, StringListComplianceParameter, BoolListComplianceParameter, DateTimeListComplianceParameter, DecimalListComplianceParameter, PropertyKeyListComplianceParameter, AddressKeyListComplianceParameter, PortfolioIdListComplianceParameter, PortfolioGroupIdListComplianceParameter, InstrumentListComplianceParameter, FilterPredicateComplianceParameter, GroupFilterPredicateComplianceParameter, GroupBySelectorComplianceParameter, PropertyListComplianceParameter")
|
|
32
|
+
additional_properties: Dict[str, Any] = {}
|
|
33
|
+
__properties = ["complianceParameterType", "value"]
|
|
34
|
+
|
|
35
|
+
@validator('compliance_parameter_type')
|
|
36
|
+
def compliance_parameter_type_validate_enum(cls, value):
|
|
37
|
+
"""Validates the enum"""
|
|
38
|
+
if value not in ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter'):
|
|
39
|
+
raise ValueError("must be one of enum values ('BoolComplianceParameter', 'StringComplianceParameter', 'DecimalComplianceParameter', 'DateTimeComplianceParameter', 'PropertyKeyComplianceParameter', 'AddressKeyComplianceParameter', 'PortfolioIdComplianceParameter', 'PortfolioGroupIdComplianceParameter', 'StringListComplianceParameter', 'BoolListComplianceParameter', 'DateTimeListComplianceParameter', 'DecimalListComplianceParameter', 'PropertyKeyListComplianceParameter', 'AddressKeyListComplianceParameter', 'PortfolioIdListComplianceParameter', 'PortfolioGroupIdListComplianceParameter', 'InstrumentListComplianceParameter', 'FilterPredicateComplianceParameter', 'GroupFilterPredicateComplianceParameter', 'GroupBySelectorComplianceParameter', 'PropertyListComplianceParameter')")
|
|
40
|
+
return value
|
|
41
|
+
|
|
42
|
+
class Config:
|
|
43
|
+
"""Pydantic configuration"""
|
|
44
|
+
allow_population_by_field_name = True
|
|
45
|
+
validate_assignment = True
|
|
46
|
+
|
|
47
|
+
def to_str(self) -> str:
|
|
48
|
+
"""Returns the string representation of the model using alias"""
|
|
49
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
50
|
+
|
|
51
|
+
def to_json(self) -> str:
|
|
52
|
+
"""Returns the JSON representation of the model using alias"""
|
|
53
|
+
return json.dumps(self.to_dict())
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def from_json(cls, json_str: str) -> PropertyListComplianceParameter:
|
|
57
|
+
"""Create an instance of PropertyListComplianceParameter from a JSON string"""
|
|
58
|
+
return cls.from_dict(json.loads(json_str))
|
|
59
|
+
|
|
60
|
+
def to_dict(self):
|
|
61
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
62
|
+
_dict = self.dict(by_alias=True,
|
|
63
|
+
exclude={
|
|
64
|
+
"additional_properties"
|
|
65
|
+
},
|
|
66
|
+
exclude_none=True)
|
|
67
|
+
# override the default output from pydantic by calling `to_dict()` of value
|
|
68
|
+
if self.value:
|
|
69
|
+
_dict['value'] = self.value.to_dict()
|
|
70
|
+
# puts key-value pairs in additional_properties in the top level
|
|
71
|
+
if self.additional_properties is not None:
|
|
72
|
+
for _key, _value in self.additional_properties.items():
|
|
73
|
+
_dict[_key] = _value
|
|
74
|
+
|
|
75
|
+
return _dict
|
|
76
|
+
|
|
77
|
+
@classmethod
|
|
78
|
+
def from_dict(cls, obj: dict) -> PropertyListComplianceParameter:
|
|
79
|
+
"""Create an instance of PropertyListComplianceParameter from a dict"""
|
|
80
|
+
if obj is None:
|
|
81
|
+
return None
|
|
82
|
+
|
|
83
|
+
if not isinstance(obj, dict):
|
|
84
|
+
return PropertyListComplianceParameter.parse_obj(obj)
|
|
85
|
+
|
|
86
|
+
_obj = PropertyListComplianceParameter.parse_obj({
|
|
87
|
+
"compliance_parameter_type": obj.get("complianceParameterType"),
|
|
88
|
+
"value": ResourceId.from_dict(obj.get("value")) if obj.get("value") is not None else None
|
|
89
|
+
})
|
|
90
|
+
# store additional fields in additional_properties
|
|
91
|
+
for _key in obj.keys():
|
|
92
|
+
if _key not in cls.__properties:
|
|
93
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
94
|
+
|
|
95
|
+
return _obj
|
lusid/models/property_schema.py
CHANGED
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
from typing import Any, Dict, List, Optional
|
|
22
|
-
from pydantic import BaseModel, StrictStr, conlist
|
|
22
|
+
from pydantic.v1 import BaseModel, StrictStr, conlist
|
|
23
23
|
from lusid.models.field_schema import FieldSchema
|
|
24
24
|
from lusid.models.link import Link
|
|
25
25
|
|
lusid/models/property_value.py
CHANGED
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
from typing import Any, Dict, Optional
|
|
22
|
-
from pydantic import BaseModel, Field, StrictStr
|
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictStr
|
|
23
23
|
from lusid.models.label_value_set import LabelValueSet
|
|
24
24
|
from lusid.models.metric_value import MetricValue
|
|
25
25
|
|