lusid-sdk 1.1.215__py3-none-any.whl → 1.1.219__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 +2 -11
- lusid/__version__.py +1 -1
- lusid/api/__init__.py +0 -1
- lusid/api/address_key_definition_api.py +4 -4
- lusid/api/aggregation_api.py +4 -4
- lusid/api/allocations_api.py +5 -5
- lusid/api/application_metadata_api.py +4 -4
- lusid/api/blocks_api.py +5 -5
- lusid/api/calendars_api.py +13 -13
- lusid/api/complex_market_data_api.py +4 -4
- lusid/api/compliance_api.py +16 -16
- lusid/api/configuration_recipe_api.py +5 -5
- lusid/api/corporate_action_sources_api.py +9 -9
- lusid/api/counterparties_api.py +9 -9
- lusid/api/custom_entities_api.py +12 -12
- lusid/api/custom_entity_definitions_api.py +5 -5
- lusid/api/custom_entity_types_api.py +5 -5
- lusid/api/cut_label_definitions_api.py +6 -6
- lusid/api/data_types_api.py +9 -9
- lusid/api/derived_transaction_portfolios_api.py +3 -3
- lusid/api/entities_api.py +2 -2
- lusid/api/executions_api.py +5 -5
- lusid/api/instrument_events_api.py +2 -2
- lusid/api/instruments_api.py +17 -17
- lusid/api/legal_entities_api.py +19 -19
- lusid/api/order_graph_api.py +4 -4
- lusid/api/order_management_api.py +8 -8
- lusid/api/orders_api.py +5 -5
- lusid/api/participations_api.py +5 -5
- lusid/api/persons_api.py +19 -19
- lusid/api/placements_api.py +5 -5
- lusid/api/portfolio_groups_api.py +26 -26
- lusid/api/portfolios_api.py +30 -30
- lusid/api/property_definitions_api.py +12 -12
- lusid/api/queryable_keys_api.py +2 -2
- lusid/api/quotes_api.py +6 -6
- lusid/api/reconciliations_api.py +10 -10
- lusid/api/reference_lists_api.py +5 -5
- lusid/api/reference_portfolio_api.py +5 -5
- lusid/api/relationship_definitions_api.py +6 -6
- lusid/api/relationships_api.py +3 -3
- lusid/api/schemas_api.py +5 -5
- lusid/api/scopes_api.py +3 -3
- lusid/api/scripted_translation_api.py +9 -9
- lusid/api/search_api.py +5 -5
- lusid/api/sequences_api.py +5 -5
- lusid/api/structured_result_data_api.py +6 -6
- lusid/api/system_configuration_api.py +3 -3
- lusid/api/transaction_configuration_api.py +12 -12
- lusid/api/transaction_portfolios_api.py +30 -30
- lusid/api_client.py +2 -2
- lusid/configuration.py +3 -3
- lusid/exceptions.py +1 -1
- lusid/models/__init__.py +1 -9
- 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/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/accumulation_event.py +1 -1
- lusid/models/accumulation_event_all_of.py +1 -1
- lusid/models/action_id.py +3 -3
- 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 +1 -1
- lusid/models/address_key_compliance_parameter_all_of.py +1 -1
- lusid/models/address_key_definition.py +1 -1
- lusid/models/address_key_filter.py +1 -1
- lusid/models/address_key_list.py +1 -1
- lusid/models/address_key_list_all_of.py +1 -1
- lusid/models/address_key_list_compliance_parameter.py +1 -1
- lusid/models/address_key_list_compliance_parameter_all_of.py +1 -1
- 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/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_set_request.py +1 -1
- lusid/models/amortisation_event.py +1 -1
- lusid/models/amortisation_event_all_of.py +1 -1
- 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_all_of.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 +1 -1
- lusid/models/bond_all_of.py +1 -1
- lusid/models/bond_coupon_event.py +1 -1
- lusid/models/bond_coupon_event_all_of.py +1 -1
- lusid/models/bond_default_event.py +1 -1
- lusid/models/bond_default_event_all_of.py +1 -1
- lusid/models/bond_principal_event.py +1 -1
- lusid/models/bond_principal_event_all_of.py +1 -1
- lusid/models/bool_compliance_parameter.py +1 -1
- lusid/models/bool_compliance_parameter_all_of.py +1 -1
- lusid/models/bool_list_compliance_parameter.py +1 -1
- lusid/models/branch_step.py +1 -1
- lusid/models/branch_step_all_of.py +1 -1
- lusid/models/branch_step_request.py +1 -1
- lusid/models/branch_step_request_all_of.py +1 -1
- lusid/models/bucketed_cash_flow_response.py +1 -1
- lusid/models/bucketing_schedule.py +1 -1
- lusid/models/calendar.py +35 -5
- lusid/models/calendar_date.py +1 -1
- lusid/models/calendar_dependency.py +1 -1
- lusid/models/calendar_dependency_all_of.py +1 -1
- lusid/models/cancel_orders_response.py +1 -1
- lusid/models/cancel_placements_response.py +1 -1
- lusid/models/cancelled_order_result.py +1 -1
- lusid/models/cancelled_placement_result.py +1 -1
- lusid/models/cap_floor.py +1 -1
- lusid/models/cap_floor_all_of.py +1 -1
- lusid/models/capital_distribution_event.py +1 -1
- lusid/models/capital_distribution_event_all_of.py +1 -1
- lusid/models/cash.py +1 -1
- lusid/models/cash_all_of.py +1 -1
- lusid/models/cash_and_security_offer_election.py +1 -1
- lusid/models/cash_dependency.py +1 -1
- lusid/models/cash_dependency_all_of.py +1 -1
- lusid/models/cash_dividend_event.py +1 -1
- lusid/models/cash_dividend_event_all_of.py +1 -1
- lusid/models/cash_election.py +1 -1
- lusid/models/cash_flow_event.py +1 -1
- lusid/models/cash_flow_event_all_of.py +1 -1
- lusid/models/cash_flow_lineage.py +1 -1
- lusid/models/cash_flow_value.py +1 -1
- lusid/models/cash_flow_value_all_of.py +1 -1
- lusid/models/cash_flow_value_set.py +1 -1
- lusid/models/cash_flow_value_set_all_of.py +1 -1
- lusid/models/cash_ladder_record.py +1 -1
- lusid/models/cash_offer_election.py +1 -1
- lusid/models/cash_perpetual.py +1 -1
- lusid/models/cash_perpetual_all_of.py +1 -1
- lusid/models/cds_flow_conventions.py +1 -1
- lusid/models/cds_index.py +1 -1
- lusid/models/cds_index_all_of.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/check_step.py +1 -1
- lusid/models/check_step_all_of.py +1 -1
- lusid/models/check_step_request.py +1 -1
- lusid/models/close_event.py +1 -1
- lusid/models/close_event_all_of.py +1 -1
- lusid/models/complete_portfolio.py +1 -1
- lusid/models/complete_relationship.py +1 -1
- lusid/models/complex_bond.py +1 -1
- lusid/models/complex_bond_all_of.py +1 -1
- lusid/models/complex_market_data.py +1 -1
- lusid/models/complex_market_data_id.py +1 -1
- lusid/models/compliance_parameter.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_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_template.py +1 -1
- lusid/models/compliance_run_configuration.py +1 -1
- lusid/models/compliance_run_info_v2.py +1 -1
- lusid/models/compliance_step.py +1 -1
- lusid/models/compliance_step_request.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/compliance_template_variation_dto.py +1 -1
- lusid/models/compliance_template_variation_request.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/constant_volatility_surface_all_of.py +1 -1
- lusid/models/constituents_adjustment_header.py +1 -1
- lusid/models/contract_for_difference.py +1 -1
- lusid/models/contract_for_difference_all_of.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_calendar_request.py +1 -1
- lusid/models/create_compliance_template_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 +1 -1
- 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_reference_portfolio_request.py +1 -1
- lusid/models/create_relationship_definition_request.py +1 -1
- lusid/models/create_relationship_request.py +1 -1
- lusid/models/create_sequence_request.py +1 -1
- lusid/models/create_trade_tickets_response.py +1 -1
- lusid/models/create_transaction_portfolio_request.py +1 -1
- lusid/models/create_unit_definition.py +1 -1
- lusid/models/credit_default_swap.py +1 -1
- lusid/models/credit_default_swap_all_of.py +1 -1
- lusid/models/credit_rating.py +1 -1
- lusid/models/credit_spread_curve_data.py +1 -1
- lusid/models/credit_spread_curve_data_all_of.py +1 -1
- lusid/models/credit_support_annex.py +1 -1
- lusid/models/currency_and_amount.py +1 -1
- lusid/models/custodian_account.py +1 -1
- lusid/models/custom_entity_definition.py +35 -5
- 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 +35 -5
- 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_type.py +31 -2
- lusid/models/data_type_summary.py +1 -1
- lusid/models/date_attributes.py +1 -1
- lusid/models/date_range.py +1 -1
- lusid/models/date_time_compliance_parameter.py +1 -1
- lusid/models/date_time_compliance_parameter_all_of.py +1 -1
- lusid/models/date_time_list_compliance_parameter.py +1 -1
- lusid/models/day_of_week.py +1 -1
- lusid/models/decimal_compliance_parameter.py +1 -1
- lusid/models/decimal_compliance_parameter_all_of.py +1 -1
- lusid/models/decimal_list.py +1 -1
- lusid/models/decimal_list_all_of.py +1 -1
- lusid/models/decimal_list_compliance_parameter.py +1 -1
- lusid/models/decorated_compliance_run_summary.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_relationship_request.py +1 -1
- lusid/models/deleted_entity_response.py +1 -1
- lusid/models/dependency_source_filter.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/discount_factor_curve_data.py +1 -1
- lusid/models/discount_factor_curve_data_all_of.py +1 -1
- lusid/models/discounting_dependency.py +1 -1
- lusid/models/discounting_dependency_all_of.py +1 -1
- lusid/models/dividend_option_event.py +1 -1
- lusid/models/dividend_option_event_all_of.py +1 -1
- lusid/models/dividend_reinvestment_event.py +1 -1
- lusid/models/dividend_reinvestment_event_all_of.py +1 -1
- 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/empty_model_options.py +1 -1
- lusid/models/empty_model_options_all_of.py +1 -1
- lusid/models/entity_identifier.py +1 -1
- lusid/models/equity.py +1 -1
- lusid/models/equity_all_of.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_by_prices_data_all_of.py +1 -1
- lusid/models/equity_curve_dependency.py +1 -1
- lusid/models/equity_curve_dependency_all_of.py +1 -1
- lusid/models/equity_model_options.py +1 -1
- lusid/models/equity_model_options_all_of.py +1 -1
- lusid/models/equity_option.py +1 -1
- lusid/models/equity_option_all_of.py +1 -1
- lusid/models/equity_swap.py +1 -1
- lusid/models/equity_swap_all_of.py +1 -1
- lusid/models/equity_vol_dependency.py +1 -1
- lusid/models/equity_vol_dependency_all_of.py +1 -1
- lusid/models/equity_vol_surface_data.py +1 -1
- lusid/models/equity_vol_surface_data_all_of.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_all_of.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 +1 -1
- lusid/models/exercise_event_all_of.py +1 -1
- lusid/models/exotic_instrument.py +1 -1
- lusid/models/exotic_instrument_all_of.py +1 -1
- lusid/models/expanded_group.py +1 -1
- lusid/models/expiry_event.py +1 -1
- lusid/models/expiry_event_all_of.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 +1 -1
- lusid/models/filter_predicate_compliance_parameter_all_of.py +1 -1
- lusid/models/filter_step.py +1 -1
- lusid/models/filter_step_request.py +1 -1
- lusid/models/fixed_leg.py +1 -1
- lusid/models/fixed_leg_all_of.py +1 -1
- lusid/models/fixed_leg_all_of_overrides.py +1 -1
- lusid/models/flexible_loan.py +1 -1
- lusid/models/flexible_loan_all_of.py +1 -1
- lusid/models/floating_leg.py +1 -1
- lusid/models/floating_leg_all_of.py +1 -1
- lusid/models/flow_convention_name.py +1 -1
- lusid/models/flow_conventions.py +4 -4
- lusid/models/forward_rate_agreement.py +1 -1
- lusid/models/forward_rate_agreement_all_of.py +1 -1
- lusid/models/fund_share_class.py +1 -1
- lusid/models/fund_share_class_all_of.py +1 -1
- lusid/models/funding_leg.py +1 -1
- lusid/models/funding_leg_all_of.py +1 -1
- lusid/models/future.py +1 -1
- lusid/models/future_all_of.py +1 -1
- lusid/models/future_expiry_event.py +1 -1
- lusid/models/future_expiry_event_all_of.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_dependency_all_of.py +1 -1
- lusid/models/fx_forward.py +1 -1
- lusid/models/fx_forward_all_of.py +1 -1
- lusid/models/fx_forward_curve_by_quote_reference.py +1 -1
- lusid/models/fx_forward_curve_by_quote_reference_all_of.py +1 -1
- lusid/models/fx_forward_curve_data.py +1 -1
- lusid/models/fx_forward_curve_data_all_of.py +1 -1
- lusid/models/fx_forward_model_options.py +1 -1
- lusid/models/fx_forward_model_options_all_of.py +1 -1
- lusid/models/fx_forward_pips_curve_data.py +1 -1
- lusid/models/fx_forward_pips_curve_data_all_of.py +1 -1
- lusid/models/fx_forward_settlement_event.py +1 -1
- lusid/models/fx_forward_settlement_event_all_of.py +1 -1
- lusid/models/fx_forward_tenor_curve_data.py +1 -1
- lusid/models/fx_forward_tenor_curve_data_all_of.py +1 -1
- lusid/models/fx_forward_tenor_pips_curve_data.py +1 -1
- lusid/models/fx_forward_tenor_pips_curve_data_all_of.py +1 -1
- lusid/models/fx_forwards_dependency.py +1 -1
- lusid/models/fx_forwards_dependency_all_of.py +1 -1
- lusid/models/fx_linked_notional_schedule.py +1 -1
- lusid/models/fx_linked_notional_schedule_all_of.py +1 -1
- lusid/models/fx_option.py +1 -1
- lusid/models/fx_option_all_of.py +1 -1
- lusid/models/fx_swap.py +1 -1
- lusid/models/fx_swap_all_of.py +1 -1
- lusid/models/fx_tenor_convention.py +1 -1
- lusid/models/fx_vol_dependency.py +1 -1
- lusid/models/fx_vol_dependency_all_of.py +1 -1
- lusid/models/fx_vol_surface_data.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_instruments_response.py +1 -1
- lusid/models/get_quotes_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/group_by_selector_compliance_parameter.py +1 -1
- lusid/models/group_by_step.py +1 -1
- lusid/models/group_by_step_request.py +1 -1
- lusid/models/group_calculation_compliance_parameter.py +1 -1
- lusid/models/group_filter_predicate_compliance_parameter.py +1 -1
- lusid/models/group_filter_step.py +1 -1
- lusid/models/group_filter_step_all_of.py +1 -1
- lusid/models/group_filter_step_request.py +1 -1
- lusid/models/group_of_market_data_key_rules.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_model_options_all_of.py +1 -1
- lusid/models/index_projection_dependency.py +1 -1
- lusid/models/index_projection_dependency_all_of.py +1 -1
- lusid/models/industry_classifier.py +1 -1
- lusid/models/inflation_fixing_dependency.py +1 -1
- lusid/models/inflation_fixing_dependency_all_of.py +1 -1
- lusid/models/inflation_index_conventions.py +1 -1
- lusid/models/inflation_leg.py +1 -1
- lusid/models/inflation_leg_all_of.py +1 -1
- lusid/models/inflation_linked_bond.py +1 -1
- lusid/models/inflation_linked_bond_all_of.py +1 -1
- lusid/models/inflation_swap.py +1 -1
- lusid/models/inflation_swap_all_of.py +1 -1
- lusid/models/informational_error_event.py +1 -1
- lusid/models/informational_error_event_all_of.py +1 -1
- lusid/models/informational_event.py +1 -1
- lusid/models/informational_event_all_of.py +1 -1
- 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_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 +1 -1
- lusid/models/instrument_event_configuration.py +1 -1
- lusid/models/instrument_event_holder.py +1 -1
- lusid/models/instrument_event_instruction.py +35 -5
- lusid/models/instrument_event_instruction_request.py +1 -1
- lusid/models/instrument_event_instructions_response.py +1 -1
- 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_leg_all_of.py +1 -1
- lusid/models/instrument_list.py +1 -1
- lusid/models/instrument_list_all_of.py +1 -1
- lusid/models/instrument_list_compliance_parameter.py +1 -1
- lusid/models/instrument_match.py +1 -1
- lusid/models/instrument_models.py +1 -1
- lusid/models/instrument_properties.py +1 -1
- lusid/models/instrument_search_property.py +1 -1
- lusid/models/interest_rate_swap.py +1 -1
- lusid/models/interest_rate_swap_all_of.py +1 -1
- lusid/models/interest_rate_swaption.py +1 -1
- lusid/models/interest_rate_swaption_all_of.py +1 -1
- lusid/models/ir_vol_cube_data.py +1 -1
- lusid/models/ir_vol_cube_data_all_of.py +1 -1
- lusid/models/ir_vol_dependency.py +1 -1
- lusid/models/ir_vol_dependency_all_of.py +1 -1
- lusid/models/is_business_day_response.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/life_cycle_event_value_all_of.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/loan_period.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/maturity_event.py +1 -1
- lusid/models/maturity_event_all_of.py +1 -1
- lusid/models/merger_event.py +1 -1
- lusid/models/merger_event_all_of.py +1 -1
- lusid/models/metric_value.py +1 -1
- lusid/models/model_options.py +1 -1
- lusid/models/model_property.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/new_instrument.py +1 -1
- lusid/models/next_value_in_sequence_response.py +1 -1
- lusid/models/opaque_dependency.py +1 -1
- lusid/models/opaque_dependency_all_of.py +1 -1
- lusid/models/opaque_market_data.py +1 -1
- lusid/models/opaque_market_data_all_of.py +1 -1
- lusid/models/opaque_model_options.py +1 -1
- lusid/models/opaque_model_options_all_of.py +1 -1
- lusid/models/open_event.py +1 -1
- lusid/models/open_event_all_of.py +1 -1
- lusid/models/operation.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 +1 -1
- 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/order_graph_block_transaction_detail.py +1 -1
- lusid/models/order_graph_block_transaction_synopsis.py +1 -1
- 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_request.py +1 -1
- lusid/models/order_set_request.py +1 -1
- lusid/models/order_update_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/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_block.py +1 -1
- lusid/models/paged_resource_list_of_calendar.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_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_execution.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_instrument_event_instruction.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_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_property_definition.py +1 -1
- lusid/models/paged_resource_list_of_property_definition_search_result.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_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/percent_check_step.py +1 -1
- lusid/models/percent_check_step_request.py +1 -1
- lusid/models/performance_return.py +1 -1
- lusid/models/performance_returns_metric.py +1 -1
- lusid/models/perpetual_property.py +1 -1
- lusid/models/person.py +35 -5
- 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/placement_update_request.py +1 -1
- lusid/models/portfolio.py +1 -1
- lusid/models/portfolio_cash_flow.py +1 -1
- lusid/models/portfolio_cash_ladder.py +1 -1
- lusid/models/portfolio_details.py +1 -1
- lusid/models/portfolio_entity_id.py +1 -1
- lusid/models/portfolio_group.py +1 -1
- lusid/models/portfolio_group_id_compliance_parameter.py +1 -1
- lusid/models/portfolio_group_id_list.py +1 -1
- lusid/models/portfolio_group_id_list_all_of.py +1 -1
- lusid/models/portfolio_group_id_list_compliance_parameter.py +1 -1
- 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 +1 -1
- lusid/models/portfolio_id_list.py +1 -1
- lusid/models/portfolio_id_list_compliance_parameter.py +1 -1
- 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_result_data_key_rule_all_of.py +1 -1
- lusid/models/portfolio_return_breakdown.py +1 -1
- lusid/models/portfolio_search_result.py +1 -1
- lusid/models/portfolios_reconciliation_request.py +1 -1
- lusid/models/pre_trade_configuration.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 +1 -1
- lusid/models/property_key_compliance_parameter_all_of.py +1 -1
- lusid/models/property_key_list_compliance_parameter.py +1 -1
- lusid/models/property_list.py +1 -1
- lusid/models/property_list_all_of.py +1 -1
- lusid/models/property_list_compliance_parameter.py +1 -1
- lusid/models/property_schema.py +1 -1
- lusid/models/property_value.py +1 -1
- lusid/models/query_bucketed_cash_flows_request.py +1 -1
- lusid/models/queryable_key.py +1 -1
- lusid/models/quote.py +1 -1
- lusid/models/quote_dependency.py +1 -1
- lusid/models/quote_dependency_all_of.py +1 -1
- lusid/models/quote_id.py +1 -1
- lusid/models/quote_series_id.py +1 -1
- lusid/models/raw_vendor_event.py +1 -1
- lusid/models/raw_vendor_event_all_of.py +1 -1
- lusid/models/realised_gain_loss.py +1 -1
- lusid/models/recombine_step.py +1 -1
- lusid/models/reconcile_date_time_rule.py +1 -1
- lusid/models/reconcile_date_time_rule_all_of.py +1 -1
- lusid/models/reconcile_numeric_rule.py +1 -1
- lusid/models/reconcile_numeric_rule_all_of.py +1 -1
- lusid/models/reconcile_string_rule.py +1 -1
- lusid/models/reconcile_string_rule_all_of.py +1 -1
- lusid/models/reconciled_transaction.py +1 -1
- lusid/models/reconciliation_break.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/reference_data.py +1 -1
- lusid/models/reference_instrument.py +1 -1
- lusid/models/reference_instrument_all_of.py +1 -1
- lusid/models/reference_list.py +1 -1
- lusid/models/reference_list_request.py +1 -1
- lusid/models/reference_list_response.py +1 -1
- lusid/models/reference_portfolio_constituent.py +1 -1
- lusid/models/reference_portfolio_constituent_request.py +1 -1
- lusid/models/related_entity.py +1 -1
- lusid/models/relation.py +1 -1
- lusid/models/relationship.py +1 -1
- lusid/models/relationship_definition.py +1 -1
- lusid/models/relative_date_offset.py +1 -1
- lusid/models/repo.py +1 -1
- lusid/models/repo_all_of.py +1 -1
- lusid/models/reset_event.py +1 -1
- lusid/models/reset_event_all_of.py +1 -1
- 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_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_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_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_id_type_descriptor.py +1 -1
- lusid/models/resource_list_of_legal_entity.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_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_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_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_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_key_rule_all_of.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_value0_d_all_of.py +1 -1
- lusid/models/result_value_bool.py +1 -1
- lusid/models/result_value_bool_all_of.py +1 -1
- lusid/models/result_value_currency.py +1 -1
- lusid/models/result_value_currency_all_of.py +1 -1
- lusid/models/result_value_date_time_offset.py +1 -1
- lusid/models/result_value_date_time_offset_all_of.py +1 -1
- lusid/models/result_value_decimal.py +1 -1
- lusid/models/result_value_decimal_all_of.py +1 -1
- lusid/models/result_value_dictionary.py +1 -1
- lusid/models/result_value_dictionary_all_of.py +1 -1
- lusid/models/result_value_int.py +1 -1
- lusid/models/result_value_int_all_of.py +1 -1
- lusid/models/result_value_string.py +1 -1
- lusid/models/result_value_string_all_of.py +1 -1
- lusid/models/reverse_stock_split_event.py +1 -1
- lusid/models/reverse_stock_split_event_all_of.py +1 -1
- 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/schema.py +1 -1
- lusid/models/scope_definition.py +1 -1
- lusid/models/scrip_dividend_event.py +1 -1
- lusid/models/scrip_dividend_event_all_of.py +1 -1
- lusid/models/script_map_reference.py +1 -1
- lusid/models/security_election.py +1 -1
- lusid/models/security_offer_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/settlement_schedule.py +1 -1
- lusid/models/side_configuration_data.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_cash_flow_loan_all_of.py +1 -1
- lusid/models/simple_instrument.py +1 -1
- lusid/models/simple_instrument_all_of.py +1 -1
- lusid/models/spin_off_event.py +1 -1
- lusid/models/spin_off_event_all_of.py +1 -1
- lusid/models/staged_modifications_info.py +1 -1
- lusid/models/step_schedule.py +1 -1
- lusid/models/step_schedule_all_of.py +1 -1
- lusid/models/stock_dividend_event.py +1 -1
- lusid/models/stock_dividend_event_all_of.py +1 -1
- lusid/models/stock_split_event.py +1 -1
- lusid/models/stock_split_event_all_of.py +1 -1
- lusid/models/stream.py +1 -1
- lusid/models/string_compliance_parameter.py +1 -1
- lusid/models/string_list.py +1 -1
- lusid/models/string_list_compliance_parameter.py +1 -1
- lusid/models/structured_result_data.py +1 -1
- lusid/models/structured_result_data_id.py +1 -1
- lusid/models/swap_cash_flow_event.py +1 -1
- lusid/models/swap_cash_flow_event_all_of.py +1 -1
- lusid/models/swap_principal_event.py +1 -1
- lusid/models/swap_principal_event_all_of.py +1 -1
- lusid/models/target_tax_lot.py +1 -1
- lusid/models/target_tax_lot_request.py +1 -1
- lusid/models/term_deposit.py +1 -1
- lusid/models/term_deposit_all_of.py +1 -1
- lusid/models/total_return_swap.py +1 -1
- lusid/models/total_return_swap_all_of.py +1 -1
- lusid/models/touch.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_price.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_request.py +1 -1
- lusid/models/transaction_set_configuration_data.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 +1 -1
- lusid/models/transition_event_all_of.py +1 -1
- 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/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/trigger_event.py +1 -1
- lusid/models/trigger_event_all_of.py +1 -1
- lusid/models/typed_resource_id.py +1 -1
- lusid/models/units_ratio.py +1 -1
- lusid/models/update_calendar_request.py +1 -1
- lusid/models/update_compliance_template_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_orders_response.py +1 -1
- lusid/models/update_placements_response.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_relationship_definition_request.py +1 -1
- lusid/models/update_unit_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_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_persons_response.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_request.py +1 -1
- lusid/models/upsert_quotes_response.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_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/user.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/value_type.py +1 -1
- lusid/models/vendor_model_rule.py +1 -1
- lusid/models/version.py +1 -1
- 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_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/virtual_row.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/models/yield_curve_data_all_of.py +1 -1
- lusid/rest.py +1 -1
- {lusid_sdk-1.1.215.dist-info → lusid_sdk-1.1.219.dist-info}/METADATA +1 -1
- lusid_sdk-1.1.219.dist-info/RECORD +931 -0
- lusid/api/workspace_api.py +0 -3459
- lusid/models/paged_resource_list_of_workspace.py +0 -266
- lusid/models/paged_resource_list_of_workspace_item.py +0 -266
- lusid/models/workspace.py +0 -246
- lusid/models/workspace_creation_request.py +0 -193
- lusid/models/workspace_item.py +0 -354
- lusid/models/workspace_item_creation_request.py +0 -304
- lusid/models/workspace_item_update_request.py +0 -263
- lusid/models/workspace_update_request.py +0 -152
- lusid_sdk-1.1.215.dist-info/RECORD +0 -940
- {lusid_sdk-1.1.215.dist-info → lusid_sdk-1.1.219.dist-info}/WHEEL +0 -0
- {lusid_sdk-1.1.215.dist-info → lusid_sdk-1.1.219.dist-info}/top_level.txt +0 -0
lusid/api/workspace_api.py
DELETED
|
@@ -1,3459 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
LUSID API
|
|
5
|
-
|
|
6
|
-
FINBOURNE Technology # noqa: E501
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 1.1.215
|
|
9
|
-
Contact: info@finbourne.com
|
|
10
|
-
Generated by: https://openapi-generator.tech
|
|
11
|
-
"""
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
from __future__ import absolute_import
|
|
15
|
-
|
|
16
|
-
import re # noqa: F401
|
|
17
|
-
|
|
18
|
-
# python 2 and python 3 compatibility library
|
|
19
|
-
import six
|
|
20
|
-
|
|
21
|
-
from lusid.api_client import ApiClient
|
|
22
|
-
from lusid.exceptions import ( # noqa: F401
|
|
23
|
-
ApiTypeError,
|
|
24
|
-
ApiValueError
|
|
25
|
-
)
|
|
26
|
-
from lusid.models.deleted_entity_response import DeletedEntityResponse
|
|
27
|
-
from lusid.models.lusid_problem_details import LusidProblemDetails
|
|
28
|
-
from lusid.models.lusid_validation_problem_details import LusidValidationProblemDetails
|
|
29
|
-
from lusid.models.paged_resource_list_of_workspace import PagedResourceListOfWorkspace
|
|
30
|
-
from lusid.models.paged_resource_list_of_workspace_item import PagedResourceListOfWorkspaceItem
|
|
31
|
-
from lusid.models.workspace import Workspace
|
|
32
|
-
from lusid.models.workspace_creation_request import WorkspaceCreationRequest
|
|
33
|
-
from lusid.models.workspace_item import WorkspaceItem
|
|
34
|
-
from lusid.models.workspace_item_creation_request import WorkspaceItemCreationRequest
|
|
35
|
-
from lusid.models.workspace_item_update_request import WorkspaceItemUpdateRequest
|
|
36
|
-
from lusid.models.workspace_update_request import WorkspaceUpdateRequest
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
class WorkspaceApi(object):
|
|
40
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
41
|
-
Ref: https://openapi-generator.tech
|
|
42
|
-
|
|
43
|
-
Do not edit the class manually.
|
|
44
|
-
"""
|
|
45
|
-
|
|
46
|
-
def __init__(self, api_client=None):
|
|
47
|
-
if api_client is None:
|
|
48
|
-
api_client = ApiClient()
|
|
49
|
-
self.api_client = api_client
|
|
50
|
-
|
|
51
|
-
def create_personal_item(self, workspace_name, **kwargs): # noqa: E501
|
|
52
|
-
"""[EARLY ACCESS] CreatePersonalItem: Create a new item in a personal workspace. # noqa: E501
|
|
53
|
-
|
|
54
|
-
Create a new item in a personal workspace. # noqa: E501
|
|
55
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
56
|
-
asynchronous HTTP request, please pass async_req=True
|
|
57
|
-
|
|
58
|
-
>>> thread = api.create_personal_item(workspace_name, async_req=True)
|
|
59
|
-
>>> result = thread.get()
|
|
60
|
-
|
|
61
|
-
:param workspace_name: The item's workspace name. (required)
|
|
62
|
-
:type workspace_name: str
|
|
63
|
-
:param workspace_item_creation_request: The item to be created.
|
|
64
|
-
:type workspace_item_creation_request: WorkspaceItemCreationRequest
|
|
65
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
66
|
-
:type async_req: bool, optional
|
|
67
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
68
|
-
be returned without reading/decoding response
|
|
69
|
-
data. Default is True.
|
|
70
|
-
:type _preload_content: bool, optional
|
|
71
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
72
|
-
number provided, it will be total request
|
|
73
|
-
timeout. It can also be a pair (tuple) of
|
|
74
|
-
(connection, read) timeouts.
|
|
75
|
-
:return: Returns the result object.
|
|
76
|
-
If the method is called asynchronously,
|
|
77
|
-
returns the request thread.
|
|
78
|
-
:rtype: WorkspaceItem
|
|
79
|
-
"""
|
|
80
|
-
kwargs['_return_http_data_only'] = True
|
|
81
|
-
return self.create_personal_item_with_http_info(workspace_name, **kwargs) # noqa: E501
|
|
82
|
-
|
|
83
|
-
def create_personal_item_with_http_info(self, workspace_name, **kwargs): # noqa: E501
|
|
84
|
-
"""[EARLY ACCESS] CreatePersonalItem: Create a new item in a personal workspace. # noqa: E501
|
|
85
|
-
|
|
86
|
-
Create a new item in a personal workspace. # noqa: E501
|
|
87
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
88
|
-
asynchronous HTTP request, please pass async_req=True
|
|
89
|
-
|
|
90
|
-
>>> thread = api.create_personal_item_with_http_info(workspace_name, async_req=True)
|
|
91
|
-
>>> result = thread.get()
|
|
92
|
-
|
|
93
|
-
:param workspace_name: The item's workspace name. (required)
|
|
94
|
-
:type workspace_name: str
|
|
95
|
-
:param workspace_item_creation_request: The item to be created.
|
|
96
|
-
:type workspace_item_creation_request: WorkspaceItemCreationRequest
|
|
97
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
98
|
-
:type async_req: bool, optional
|
|
99
|
-
:param _return_http_data_only: response data without head status code
|
|
100
|
-
and headers
|
|
101
|
-
:type _return_http_data_only: bool, optional
|
|
102
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
103
|
-
be returned without reading/decoding response
|
|
104
|
-
data. Default is True.
|
|
105
|
-
:type _preload_content: bool, optional
|
|
106
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
107
|
-
number provided, it will be total request
|
|
108
|
-
timeout. It can also be a pair (tuple) of
|
|
109
|
-
(connection, read) timeouts.
|
|
110
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
111
|
-
request; this effectively ignores the authentication
|
|
112
|
-
in the spec for a single request.
|
|
113
|
-
:type _request_auth: dict, optional
|
|
114
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
115
|
-
If the method is called asynchronously,
|
|
116
|
-
returns the request thread.
|
|
117
|
-
:rtype: (WorkspaceItem, int, HTTPHeaderDict)
|
|
118
|
-
"""
|
|
119
|
-
|
|
120
|
-
local_var_params = locals()
|
|
121
|
-
|
|
122
|
-
all_params = [
|
|
123
|
-
'workspace_name',
|
|
124
|
-
'workspace_item_creation_request'
|
|
125
|
-
]
|
|
126
|
-
all_params.extend(
|
|
127
|
-
[
|
|
128
|
-
'async_req',
|
|
129
|
-
'_return_http_data_only',
|
|
130
|
-
'_preload_content',
|
|
131
|
-
'_request_timeout',
|
|
132
|
-
'_request_auth',
|
|
133
|
-
'_headers'
|
|
134
|
-
]
|
|
135
|
-
)
|
|
136
|
-
|
|
137
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
138
|
-
if key not in all_params:
|
|
139
|
-
raise ApiTypeError(
|
|
140
|
-
"Got an unexpected keyword argument '%s'"
|
|
141
|
-
" to method create_personal_item" % key
|
|
142
|
-
)
|
|
143
|
-
local_var_params[key] = val
|
|
144
|
-
del local_var_params['kwargs']
|
|
145
|
-
# verify the required parameter 'workspace_name' is set
|
|
146
|
-
if self.api_client.client_side_validation and ('workspace_name' not in local_var_params or # noqa: E501
|
|
147
|
-
local_var_params['workspace_name'] is None): # noqa: E501
|
|
148
|
-
raise ApiValueError("Missing the required parameter `workspace_name` when calling `create_personal_item`") # noqa: E501
|
|
149
|
-
|
|
150
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
151
|
-
len(local_var_params['workspace_name']) > 64): # noqa: E501
|
|
152
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `create_personal_item`, length must be less than or equal to `64`") # noqa: E501
|
|
153
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
154
|
-
len(local_var_params['workspace_name']) < 1): # noqa: E501
|
|
155
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `create_personal_item`, length must be greater than or equal to `1`") # noqa: E501
|
|
156
|
-
if self.api_client.client_side_validation and 'workspace_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['workspace_name']): # noqa: E501
|
|
157
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `create_personal_item`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
158
|
-
collection_formats = {}
|
|
159
|
-
|
|
160
|
-
path_params = {}
|
|
161
|
-
if 'workspace_name' in local_var_params:
|
|
162
|
-
path_params['workspaceName'] = local_var_params['workspace_name'] # noqa: E501
|
|
163
|
-
|
|
164
|
-
query_params = []
|
|
165
|
-
|
|
166
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
167
|
-
|
|
168
|
-
form_params = []
|
|
169
|
-
local_var_files = {}
|
|
170
|
-
|
|
171
|
-
body_params = None
|
|
172
|
-
if 'workspace_item_creation_request' in local_var_params:
|
|
173
|
-
body_params = local_var_params['workspace_item_creation_request']
|
|
174
|
-
# HTTP header `Accept`
|
|
175
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
176
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
177
|
-
|
|
178
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
179
|
-
|
|
180
|
-
# HTTP header `Content-Type`
|
|
181
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
182
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
183
|
-
|
|
184
|
-
# set the LUSID header
|
|
185
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
186
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
187
|
-
|
|
188
|
-
# Authentication setting
|
|
189
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
190
|
-
|
|
191
|
-
response_types_map = {
|
|
192
|
-
201: "WorkspaceItem",
|
|
193
|
-
400: "LusidValidationProblemDetails",
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
return self.api_client.call_api(
|
|
197
|
-
'/api/workspaces/personal/{workspaceName}/items', 'POST',
|
|
198
|
-
path_params,
|
|
199
|
-
query_params,
|
|
200
|
-
header_params,
|
|
201
|
-
body=body_params,
|
|
202
|
-
post_params=form_params,
|
|
203
|
-
files=local_var_files,
|
|
204
|
-
response_types_map=response_types_map,
|
|
205
|
-
auth_settings=auth_settings,
|
|
206
|
-
async_req=local_var_params.get('async_req'),
|
|
207
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
208
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
209
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
210
|
-
collection_formats=collection_formats,
|
|
211
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
212
|
-
|
|
213
|
-
def create_personal_workspace(self, **kwargs): # noqa: E501
|
|
214
|
-
"""[EARLY ACCESS] CreatePersonalWorkspace: Create a new personal workspace. # noqa: E501
|
|
215
|
-
|
|
216
|
-
Create a new personal workspace. # noqa: E501
|
|
217
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
218
|
-
asynchronous HTTP request, please pass async_req=True
|
|
219
|
-
|
|
220
|
-
>>> thread = api.create_personal_workspace(async_req=True)
|
|
221
|
-
>>> result = thread.get()
|
|
222
|
-
|
|
223
|
-
:param workspace_creation_request: The workspace to be created.
|
|
224
|
-
:type workspace_creation_request: WorkspaceCreationRequest
|
|
225
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
226
|
-
:type async_req: bool, optional
|
|
227
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
228
|
-
be returned without reading/decoding response
|
|
229
|
-
data. Default is True.
|
|
230
|
-
:type _preload_content: bool, optional
|
|
231
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
232
|
-
number provided, it will be total request
|
|
233
|
-
timeout. It can also be a pair (tuple) of
|
|
234
|
-
(connection, read) timeouts.
|
|
235
|
-
:return: Returns the result object.
|
|
236
|
-
If the method is called asynchronously,
|
|
237
|
-
returns the request thread.
|
|
238
|
-
:rtype: Workspace
|
|
239
|
-
"""
|
|
240
|
-
kwargs['_return_http_data_only'] = True
|
|
241
|
-
return self.create_personal_workspace_with_http_info(**kwargs) # noqa: E501
|
|
242
|
-
|
|
243
|
-
def create_personal_workspace_with_http_info(self, **kwargs): # noqa: E501
|
|
244
|
-
"""[EARLY ACCESS] CreatePersonalWorkspace: Create a new personal workspace. # noqa: E501
|
|
245
|
-
|
|
246
|
-
Create a new personal workspace. # noqa: E501
|
|
247
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
248
|
-
asynchronous HTTP request, please pass async_req=True
|
|
249
|
-
|
|
250
|
-
>>> thread = api.create_personal_workspace_with_http_info(async_req=True)
|
|
251
|
-
>>> result = thread.get()
|
|
252
|
-
|
|
253
|
-
:param workspace_creation_request: The workspace to be created.
|
|
254
|
-
:type workspace_creation_request: WorkspaceCreationRequest
|
|
255
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
256
|
-
:type async_req: bool, optional
|
|
257
|
-
:param _return_http_data_only: response data without head status code
|
|
258
|
-
and headers
|
|
259
|
-
:type _return_http_data_only: bool, optional
|
|
260
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
261
|
-
be returned without reading/decoding response
|
|
262
|
-
data. Default is True.
|
|
263
|
-
:type _preload_content: bool, optional
|
|
264
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
265
|
-
number provided, it will be total request
|
|
266
|
-
timeout. It can also be a pair (tuple) of
|
|
267
|
-
(connection, read) timeouts.
|
|
268
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
269
|
-
request; this effectively ignores the authentication
|
|
270
|
-
in the spec for a single request.
|
|
271
|
-
:type _request_auth: dict, optional
|
|
272
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
273
|
-
If the method is called asynchronously,
|
|
274
|
-
returns the request thread.
|
|
275
|
-
:rtype: (Workspace, int, HTTPHeaderDict)
|
|
276
|
-
"""
|
|
277
|
-
|
|
278
|
-
local_var_params = locals()
|
|
279
|
-
|
|
280
|
-
all_params = [
|
|
281
|
-
'workspace_creation_request'
|
|
282
|
-
]
|
|
283
|
-
all_params.extend(
|
|
284
|
-
[
|
|
285
|
-
'async_req',
|
|
286
|
-
'_return_http_data_only',
|
|
287
|
-
'_preload_content',
|
|
288
|
-
'_request_timeout',
|
|
289
|
-
'_request_auth',
|
|
290
|
-
'_headers'
|
|
291
|
-
]
|
|
292
|
-
)
|
|
293
|
-
|
|
294
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
295
|
-
if key not in all_params:
|
|
296
|
-
raise ApiTypeError(
|
|
297
|
-
"Got an unexpected keyword argument '%s'"
|
|
298
|
-
" to method create_personal_workspace" % key
|
|
299
|
-
)
|
|
300
|
-
local_var_params[key] = val
|
|
301
|
-
del local_var_params['kwargs']
|
|
302
|
-
|
|
303
|
-
collection_formats = {}
|
|
304
|
-
|
|
305
|
-
path_params = {}
|
|
306
|
-
|
|
307
|
-
query_params = []
|
|
308
|
-
|
|
309
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
310
|
-
|
|
311
|
-
form_params = []
|
|
312
|
-
local_var_files = {}
|
|
313
|
-
|
|
314
|
-
body_params = None
|
|
315
|
-
if 'workspace_creation_request' in local_var_params:
|
|
316
|
-
body_params = local_var_params['workspace_creation_request']
|
|
317
|
-
# HTTP header `Accept`
|
|
318
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
319
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
320
|
-
|
|
321
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
322
|
-
|
|
323
|
-
# HTTP header `Content-Type`
|
|
324
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
325
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
326
|
-
|
|
327
|
-
# set the LUSID header
|
|
328
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
329
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
330
|
-
|
|
331
|
-
# Authentication setting
|
|
332
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
333
|
-
|
|
334
|
-
response_types_map = {
|
|
335
|
-
201: "Workspace",
|
|
336
|
-
400: "LusidValidationProblemDetails",
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
return self.api_client.call_api(
|
|
340
|
-
'/api/workspaces/personal', 'POST',
|
|
341
|
-
path_params,
|
|
342
|
-
query_params,
|
|
343
|
-
header_params,
|
|
344
|
-
body=body_params,
|
|
345
|
-
post_params=form_params,
|
|
346
|
-
files=local_var_files,
|
|
347
|
-
response_types_map=response_types_map,
|
|
348
|
-
auth_settings=auth_settings,
|
|
349
|
-
async_req=local_var_params.get('async_req'),
|
|
350
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
351
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
352
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
353
|
-
collection_formats=collection_formats,
|
|
354
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
355
|
-
|
|
356
|
-
def create_shared_item(self, workspace_name, **kwargs): # noqa: E501
|
|
357
|
-
"""[EARLY ACCESS] CreateSharedItem: Create a new item in a shared workspace. # noqa: E501
|
|
358
|
-
|
|
359
|
-
Create a new item in a shared workspace. # noqa: E501
|
|
360
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
361
|
-
asynchronous HTTP request, please pass async_req=True
|
|
362
|
-
|
|
363
|
-
>>> thread = api.create_shared_item(workspace_name, async_req=True)
|
|
364
|
-
>>> result = thread.get()
|
|
365
|
-
|
|
366
|
-
:param workspace_name: The item's workspace name. (required)
|
|
367
|
-
:type workspace_name: str
|
|
368
|
-
:param workspace_item_creation_request: The item to be created.
|
|
369
|
-
:type workspace_item_creation_request: WorkspaceItemCreationRequest
|
|
370
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
371
|
-
:type async_req: bool, optional
|
|
372
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
373
|
-
be returned without reading/decoding response
|
|
374
|
-
data. Default is True.
|
|
375
|
-
:type _preload_content: bool, optional
|
|
376
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
377
|
-
number provided, it will be total request
|
|
378
|
-
timeout. It can also be a pair (tuple) of
|
|
379
|
-
(connection, read) timeouts.
|
|
380
|
-
:return: Returns the result object.
|
|
381
|
-
If the method is called asynchronously,
|
|
382
|
-
returns the request thread.
|
|
383
|
-
:rtype: WorkspaceItem
|
|
384
|
-
"""
|
|
385
|
-
kwargs['_return_http_data_only'] = True
|
|
386
|
-
return self.create_shared_item_with_http_info(workspace_name, **kwargs) # noqa: E501
|
|
387
|
-
|
|
388
|
-
def create_shared_item_with_http_info(self, workspace_name, **kwargs): # noqa: E501
|
|
389
|
-
"""[EARLY ACCESS] CreateSharedItem: Create a new item in a shared workspace. # noqa: E501
|
|
390
|
-
|
|
391
|
-
Create a new item in a shared workspace. # noqa: E501
|
|
392
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
393
|
-
asynchronous HTTP request, please pass async_req=True
|
|
394
|
-
|
|
395
|
-
>>> thread = api.create_shared_item_with_http_info(workspace_name, async_req=True)
|
|
396
|
-
>>> result = thread.get()
|
|
397
|
-
|
|
398
|
-
:param workspace_name: The item's workspace name. (required)
|
|
399
|
-
:type workspace_name: str
|
|
400
|
-
:param workspace_item_creation_request: The item to be created.
|
|
401
|
-
:type workspace_item_creation_request: WorkspaceItemCreationRequest
|
|
402
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
403
|
-
:type async_req: bool, optional
|
|
404
|
-
:param _return_http_data_only: response data without head status code
|
|
405
|
-
and headers
|
|
406
|
-
:type _return_http_data_only: bool, optional
|
|
407
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
408
|
-
be returned without reading/decoding response
|
|
409
|
-
data. Default is True.
|
|
410
|
-
:type _preload_content: bool, optional
|
|
411
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
412
|
-
number provided, it will be total request
|
|
413
|
-
timeout. It can also be a pair (tuple) of
|
|
414
|
-
(connection, read) timeouts.
|
|
415
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
416
|
-
request; this effectively ignores the authentication
|
|
417
|
-
in the spec for a single request.
|
|
418
|
-
:type _request_auth: dict, optional
|
|
419
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
420
|
-
If the method is called asynchronously,
|
|
421
|
-
returns the request thread.
|
|
422
|
-
:rtype: (WorkspaceItem, int, HTTPHeaderDict)
|
|
423
|
-
"""
|
|
424
|
-
|
|
425
|
-
local_var_params = locals()
|
|
426
|
-
|
|
427
|
-
all_params = [
|
|
428
|
-
'workspace_name',
|
|
429
|
-
'workspace_item_creation_request'
|
|
430
|
-
]
|
|
431
|
-
all_params.extend(
|
|
432
|
-
[
|
|
433
|
-
'async_req',
|
|
434
|
-
'_return_http_data_only',
|
|
435
|
-
'_preload_content',
|
|
436
|
-
'_request_timeout',
|
|
437
|
-
'_request_auth',
|
|
438
|
-
'_headers'
|
|
439
|
-
]
|
|
440
|
-
)
|
|
441
|
-
|
|
442
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
443
|
-
if key not in all_params:
|
|
444
|
-
raise ApiTypeError(
|
|
445
|
-
"Got an unexpected keyword argument '%s'"
|
|
446
|
-
" to method create_shared_item" % key
|
|
447
|
-
)
|
|
448
|
-
local_var_params[key] = val
|
|
449
|
-
del local_var_params['kwargs']
|
|
450
|
-
# verify the required parameter 'workspace_name' is set
|
|
451
|
-
if self.api_client.client_side_validation and ('workspace_name' not in local_var_params or # noqa: E501
|
|
452
|
-
local_var_params['workspace_name'] is None): # noqa: E501
|
|
453
|
-
raise ApiValueError("Missing the required parameter `workspace_name` when calling `create_shared_item`") # noqa: E501
|
|
454
|
-
|
|
455
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
456
|
-
len(local_var_params['workspace_name']) > 64): # noqa: E501
|
|
457
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `create_shared_item`, length must be less than or equal to `64`") # noqa: E501
|
|
458
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
459
|
-
len(local_var_params['workspace_name']) < 1): # noqa: E501
|
|
460
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `create_shared_item`, length must be greater than or equal to `1`") # noqa: E501
|
|
461
|
-
if self.api_client.client_side_validation and 'workspace_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['workspace_name']): # noqa: E501
|
|
462
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `create_shared_item`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
463
|
-
collection_formats = {}
|
|
464
|
-
|
|
465
|
-
path_params = {}
|
|
466
|
-
if 'workspace_name' in local_var_params:
|
|
467
|
-
path_params['workspaceName'] = local_var_params['workspace_name'] # noqa: E501
|
|
468
|
-
|
|
469
|
-
query_params = []
|
|
470
|
-
|
|
471
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
472
|
-
|
|
473
|
-
form_params = []
|
|
474
|
-
local_var_files = {}
|
|
475
|
-
|
|
476
|
-
body_params = None
|
|
477
|
-
if 'workspace_item_creation_request' in local_var_params:
|
|
478
|
-
body_params = local_var_params['workspace_item_creation_request']
|
|
479
|
-
# HTTP header `Accept`
|
|
480
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
481
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
482
|
-
|
|
483
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
484
|
-
|
|
485
|
-
# HTTP header `Content-Type`
|
|
486
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
487
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
488
|
-
|
|
489
|
-
# set the LUSID header
|
|
490
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
491
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
492
|
-
|
|
493
|
-
# Authentication setting
|
|
494
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
495
|
-
|
|
496
|
-
response_types_map = {
|
|
497
|
-
201: "WorkspaceItem",
|
|
498
|
-
400: "LusidValidationProblemDetails",
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
return self.api_client.call_api(
|
|
502
|
-
'/api/workspaces/shared/{workspaceName}/items', 'POST',
|
|
503
|
-
path_params,
|
|
504
|
-
query_params,
|
|
505
|
-
header_params,
|
|
506
|
-
body=body_params,
|
|
507
|
-
post_params=form_params,
|
|
508
|
-
files=local_var_files,
|
|
509
|
-
response_types_map=response_types_map,
|
|
510
|
-
auth_settings=auth_settings,
|
|
511
|
-
async_req=local_var_params.get('async_req'),
|
|
512
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
513
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
514
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
515
|
-
collection_formats=collection_formats,
|
|
516
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
517
|
-
|
|
518
|
-
def create_shared_workspace(self, **kwargs): # noqa: E501
|
|
519
|
-
"""[EARLY ACCESS] CreateSharedWorkspace: Create a new shared workspace. # noqa: E501
|
|
520
|
-
|
|
521
|
-
Create a new shared workspace. # noqa: E501
|
|
522
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
523
|
-
asynchronous HTTP request, please pass async_req=True
|
|
524
|
-
|
|
525
|
-
>>> thread = api.create_shared_workspace(async_req=True)
|
|
526
|
-
>>> result = thread.get()
|
|
527
|
-
|
|
528
|
-
:param workspace_creation_request: The workspace to be created.
|
|
529
|
-
:type workspace_creation_request: WorkspaceCreationRequest
|
|
530
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
531
|
-
:type async_req: bool, optional
|
|
532
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
533
|
-
be returned without reading/decoding response
|
|
534
|
-
data. Default is True.
|
|
535
|
-
:type _preload_content: bool, optional
|
|
536
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
537
|
-
number provided, it will be total request
|
|
538
|
-
timeout. It can also be a pair (tuple) of
|
|
539
|
-
(connection, read) timeouts.
|
|
540
|
-
:return: Returns the result object.
|
|
541
|
-
If the method is called asynchronously,
|
|
542
|
-
returns the request thread.
|
|
543
|
-
:rtype: Workspace
|
|
544
|
-
"""
|
|
545
|
-
kwargs['_return_http_data_only'] = True
|
|
546
|
-
return self.create_shared_workspace_with_http_info(**kwargs) # noqa: E501
|
|
547
|
-
|
|
548
|
-
def create_shared_workspace_with_http_info(self, **kwargs): # noqa: E501
|
|
549
|
-
"""[EARLY ACCESS] CreateSharedWorkspace: Create a new shared workspace. # noqa: E501
|
|
550
|
-
|
|
551
|
-
Create a new shared workspace. # noqa: E501
|
|
552
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
553
|
-
asynchronous HTTP request, please pass async_req=True
|
|
554
|
-
|
|
555
|
-
>>> thread = api.create_shared_workspace_with_http_info(async_req=True)
|
|
556
|
-
>>> result = thread.get()
|
|
557
|
-
|
|
558
|
-
:param workspace_creation_request: The workspace to be created.
|
|
559
|
-
:type workspace_creation_request: WorkspaceCreationRequest
|
|
560
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
561
|
-
:type async_req: bool, optional
|
|
562
|
-
:param _return_http_data_only: response data without head status code
|
|
563
|
-
and headers
|
|
564
|
-
:type _return_http_data_only: bool, optional
|
|
565
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
566
|
-
be returned without reading/decoding response
|
|
567
|
-
data. Default is True.
|
|
568
|
-
:type _preload_content: bool, optional
|
|
569
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
570
|
-
number provided, it will be total request
|
|
571
|
-
timeout. It can also be a pair (tuple) of
|
|
572
|
-
(connection, read) timeouts.
|
|
573
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
574
|
-
request; this effectively ignores the authentication
|
|
575
|
-
in the spec for a single request.
|
|
576
|
-
:type _request_auth: dict, optional
|
|
577
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
578
|
-
If the method is called asynchronously,
|
|
579
|
-
returns the request thread.
|
|
580
|
-
:rtype: (Workspace, int, HTTPHeaderDict)
|
|
581
|
-
"""
|
|
582
|
-
|
|
583
|
-
local_var_params = locals()
|
|
584
|
-
|
|
585
|
-
all_params = [
|
|
586
|
-
'workspace_creation_request'
|
|
587
|
-
]
|
|
588
|
-
all_params.extend(
|
|
589
|
-
[
|
|
590
|
-
'async_req',
|
|
591
|
-
'_return_http_data_only',
|
|
592
|
-
'_preload_content',
|
|
593
|
-
'_request_timeout',
|
|
594
|
-
'_request_auth',
|
|
595
|
-
'_headers'
|
|
596
|
-
]
|
|
597
|
-
)
|
|
598
|
-
|
|
599
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
600
|
-
if key not in all_params:
|
|
601
|
-
raise ApiTypeError(
|
|
602
|
-
"Got an unexpected keyword argument '%s'"
|
|
603
|
-
" to method create_shared_workspace" % key
|
|
604
|
-
)
|
|
605
|
-
local_var_params[key] = val
|
|
606
|
-
del local_var_params['kwargs']
|
|
607
|
-
|
|
608
|
-
collection_formats = {}
|
|
609
|
-
|
|
610
|
-
path_params = {}
|
|
611
|
-
|
|
612
|
-
query_params = []
|
|
613
|
-
|
|
614
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
615
|
-
|
|
616
|
-
form_params = []
|
|
617
|
-
local_var_files = {}
|
|
618
|
-
|
|
619
|
-
body_params = None
|
|
620
|
-
if 'workspace_creation_request' in local_var_params:
|
|
621
|
-
body_params = local_var_params['workspace_creation_request']
|
|
622
|
-
# HTTP header `Accept`
|
|
623
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
624
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
625
|
-
|
|
626
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
627
|
-
|
|
628
|
-
# HTTP header `Content-Type`
|
|
629
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
630
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
631
|
-
|
|
632
|
-
# set the LUSID header
|
|
633
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
634
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
635
|
-
|
|
636
|
-
# Authentication setting
|
|
637
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
638
|
-
|
|
639
|
-
response_types_map = {
|
|
640
|
-
201: "Workspace",
|
|
641
|
-
400: "LusidValidationProblemDetails",
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
return self.api_client.call_api(
|
|
645
|
-
'/api/workspaces/shared', 'POST',
|
|
646
|
-
path_params,
|
|
647
|
-
query_params,
|
|
648
|
-
header_params,
|
|
649
|
-
body=body_params,
|
|
650
|
-
post_params=form_params,
|
|
651
|
-
files=local_var_files,
|
|
652
|
-
response_types_map=response_types_map,
|
|
653
|
-
auth_settings=auth_settings,
|
|
654
|
-
async_req=local_var_params.get('async_req'),
|
|
655
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
656
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
657
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
658
|
-
collection_formats=collection_formats,
|
|
659
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
660
|
-
|
|
661
|
-
def delete_personal_item(self, workspace_name, item_name, **kwargs): # noqa: E501
|
|
662
|
-
"""[EARLY ACCESS] DeletePersonalItem: Delete an item from a personal workspace. # noqa: E501
|
|
663
|
-
|
|
664
|
-
Delete an item from a personal workspace. # noqa: E501
|
|
665
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
666
|
-
asynchronous HTTP request, please pass async_req=True
|
|
667
|
-
|
|
668
|
-
>>> thread = api.delete_personal_item(workspace_name, item_name, async_req=True)
|
|
669
|
-
>>> result = thread.get()
|
|
670
|
-
|
|
671
|
-
:param workspace_name: The name of the personal workspace. (required)
|
|
672
|
-
:type workspace_name: str
|
|
673
|
-
:param item_name: The name of the item. (required)
|
|
674
|
-
:type item_name: str
|
|
675
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
676
|
-
:type async_req: bool, optional
|
|
677
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
678
|
-
be returned without reading/decoding response
|
|
679
|
-
data. Default is True.
|
|
680
|
-
:type _preload_content: bool, optional
|
|
681
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
682
|
-
number provided, it will be total request
|
|
683
|
-
timeout. It can also be a pair (tuple) of
|
|
684
|
-
(connection, read) timeouts.
|
|
685
|
-
:return: Returns the result object.
|
|
686
|
-
If the method is called asynchronously,
|
|
687
|
-
returns the request thread.
|
|
688
|
-
:rtype: DeletedEntityResponse
|
|
689
|
-
"""
|
|
690
|
-
kwargs['_return_http_data_only'] = True
|
|
691
|
-
return self.delete_personal_item_with_http_info(workspace_name, item_name, **kwargs) # noqa: E501
|
|
692
|
-
|
|
693
|
-
def delete_personal_item_with_http_info(self, workspace_name, item_name, **kwargs): # noqa: E501
|
|
694
|
-
"""[EARLY ACCESS] DeletePersonalItem: Delete an item from a personal workspace. # noqa: E501
|
|
695
|
-
|
|
696
|
-
Delete an item from a personal workspace. # noqa: E501
|
|
697
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
698
|
-
asynchronous HTTP request, please pass async_req=True
|
|
699
|
-
|
|
700
|
-
>>> thread = api.delete_personal_item_with_http_info(workspace_name, item_name, async_req=True)
|
|
701
|
-
>>> result = thread.get()
|
|
702
|
-
|
|
703
|
-
:param workspace_name: The name of the personal workspace. (required)
|
|
704
|
-
:type workspace_name: str
|
|
705
|
-
:param item_name: The name of the item. (required)
|
|
706
|
-
:type item_name: str
|
|
707
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
708
|
-
:type async_req: bool, optional
|
|
709
|
-
:param _return_http_data_only: response data without head status code
|
|
710
|
-
and headers
|
|
711
|
-
:type _return_http_data_only: bool, optional
|
|
712
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
713
|
-
be returned without reading/decoding response
|
|
714
|
-
data. Default is True.
|
|
715
|
-
:type _preload_content: bool, optional
|
|
716
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
717
|
-
number provided, it will be total request
|
|
718
|
-
timeout. It can also be a pair (tuple) of
|
|
719
|
-
(connection, read) timeouts.
|
|
720
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
721
|
-
request; this effectively ignores the authentication
|
|
722
|
-
in the spec for a single request.
|
|
723
|
-
:type _request_auth: dict, optional
|
|
724
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
725
|
-
If the method is called asynchronously,
|
|
726
|
-
returns the request thread.
|
|
727
|
-
:rtype: (DeletedEntityResponse, int, HTTPHeaderDict)
|
|
728
|
-
"""
|
|
729
|
-
|
|
730
|
-
local_var_params = locals()
|
|
731
|
-
|
|
732
|
-
all_params = [
|
|
733
|
-
'workspace_name',
|
|
734
|
-
'item_name'
|
|
735
|
-
]
|
|
736
|
-
all_params.extend(
|
|
737
|
-
[
|
|
738
|
-
'async_req',
|
|
739
|
-
'_return_http_data_only',
|
|
740
|
-
'_preload_content',
|
|
741
|
-
'_request_timeout',
|
|
742
|
-
'_request_auth',
|
|
743
|
-
'_headers'
|
|
744
|
-
]
|
|
745
|
-
)
|
|
746
|
-
|
|
747
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
748
|
-
if key not in all_params:
|
|
749
|
-
raise ApiTypeError(
|
|
750
|
-
"Got an unexpected keyword argument '%s'"
|
|
751
|
-
" to method delete_personal_item" % key
|
|
752
|
-
)
|
|
753
|
-
local_var_params[key] = val
|
|
754
|
-
del local_var_params['kwargs']
|
|
755
|
-
# verify the required parameter 'workspace_name' is set
|
|
756
|
-
if self.api_client.client_side_validation and ('workspace_name' not in local_var_params or # noqa: E501
|
|
757
|
-
local_var_params['workspace_name'] is None): # noqa: E501
|
|
758
|
-
raise ApiValueError("Missing the required parameter `workspace_name` when calling `delete_personal_item`") # noqa: E501
|
|
759
|
-
# verify the required parameter 'item_name' is set
|
|
760
|
-
if self.api_client.client_side_validation and ('item_name' not in local_var_params or # noqa: E501
|
|
761
|
-
local_var_params['item_name'] is None): # noqa: E501
|
|
762
|
-
raise ApiValueError("Missing the required parameter `item_name` when calling `delete_personal_item`") # noqa: E501
|
|
763
|
-
|
|
764
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
765
|
-
len(local_var_params['workspace_name']) > 64): # noqa: E501
|
|
766
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `delete_personal_item`, length must be less than or equal to `64`") # noqa: E501
|
|
767
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
768
|
-
len(local_var_params['workspace_name']) < 1): # noqa: E501
|
|
769
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `delete_personal_item`, length must be greater than or equal to `1`") # noqa: E501
|
|
770
|
-
if self.api_client.client_side_validation and 'workspace_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['workspace_name']): # noqa: E501
|
|
771
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `delete_personal_item`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
772
|
-
if self.api_client.client_side_validation and ('item_name' in local_var_params and # noqa: E501
|
|
773
|
-
len(local_var_params['item_name']) > 64): # noqa: E501
|
|
774
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `delete_personal_item`, length must be less than or equal to `64`") # noqa: E501
|
|
775
|
-
if self.api_client.client_side_validation and ('item_name' in local_var_params and # noqa: E501
|
|
776
|
-
len(local_var_params['item_name']) < 1): # noqa: E501
|
|
777
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `delete_personal_item`, length must be greater than or equal to `1`") # noqa: E501
|
|
778
|
-
if self.api_client.client_side_validation and 'item_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['item_name']): # noqa: E501
|
|
779
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `delete_personal_item`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
780
|
-
collection_formats = {}
|
|
781
|
-
|
|
782
|
-
path_params = {}
|
|
783
|
-
if 'workspace_name' in local_var_params:
|
|
784
|
-
path_params['workspaceName'] = local_var_params['workspace_name'] # noqa: E501
|
|
785
|
-
if 'item_name' in local_var_params:
|
|
786
|
-
path_params['itemName'] = local_var_params['item_name'] # noqa: E501
|
|
787
|
-
|
|
788
|
-
query_params = []
|
|
789
|
-
|
|
790
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
791
|
-
|
|
792
|
-
form_params = []
|
|
793
|
-
local_var_files = {}
|
|
794
|
-
|
|
795
|
-
body_params = None
|
|
796
|
-
# HTTP header `Accept`
|
|
797
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
798
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
799
|
-
|
|
800
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
# set the LUSID header
|
|
804
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
805
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
806
|
-
|
|
807
|
-
# Authentication setting
|
|
808
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
809
|
-
|
|
810
|
-
response_types_map = {
|
|
811
|
-
200: "DeletedEntityResponse",
|
|
812
|
-
400: "LusidValidationProblemDetails",
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
return self.api_client.call_api(
|
|
816
|
-
'/api/workspaces/personal/{workspaceName}/items/{itemName}', 'DELETE',
|
|
817
|
-
path_params,
|
|
818
|
-
query_params,
|
|
819
|
-
header_params,
|
|
820
|
-
body=body_params,
|
|
821
|
-
post_params=form_params,
|
|
822
|
-
files=local_var_files,
|
|
823
|
-
response_types_map=response_types_map,
|
|
824
|
-
auth_settings=auth_settings,
|
|
825
|
-
async_req=local_var_params.get('async_req'),
|
|
826
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
827
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
828
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
829
|
-
collection_formats=collection_formats,
|
|
830
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
831
|
-
|
|
832
|
-
def delete_personal_workspace(self, workspace_name, **kwargs): # noqa: E501
|
|
833
|
-
"""[EARLY ACCESS] DeletePersonalWorkspace: Delete a personal workspace. # noqa: E501
|
|
834
|
-
|
|
835
|
-
Delete a personal workspace. # noqa: E501
|
|
836
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
837
|
-
asynchronous HTTP request, please pass async_req=True
|
|
838
|
-
|
|
839
|
-
>>> thread = api.delete_personal_workspace(workspace_name, async_req=True)
|
|
840
|
-
>>> result = thread.get()
|
|
841
|
-
|
|
842
|
-
:param workspace_name: The name of the personal workspace. (required)
|
|
843
|
-
:type workspace_name: str
|
|
844
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
845
|
-
:type async_req: bool, optional
|
|
846
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
847
|
-
be returned without reading/decoding response
|
|
848
|
-
data. Default is True.
|
|
849
|
-
:type _preload_content: bool, optional
|
|
850
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
851
|
-
number provided, it will be total request
|
|
852
|
-
timeout. It can also be a pair (tuple) of
|
|
853
|
-
(connection, read) timeouts.
|
|
854
|
-
:return: Returns the result object.
|
|
855
|
-
If the method is called asynchronously,
|
|
856
|
-
returns the request thread.
|
|
857
|
-
:rtype: DeletedEntityResponse
|
|
858
|
-
"""
|
|
859
|
-
kwargs['_return_http_data_only'] = True
|
|
860
|
-
return self.delete_personal_workspace_with_http_info(workspace_name, **kwargs) # noqa: E501
|
|
861
|
-
|
|
862
|
-
def delete_personal_workspace_with_http_info(self, workspace_name, **kwargs): # noqa: E501
|
|
863
|
-
"""[EARLY ACCESS] DeletePersonalWorkspace: Delete a personal workspace. # noqa: E501
|
|
864
|
-
|
|
865
|
-
Delete a personal workspace. # noqa: E501
|
|
866
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
867
|
-
asynchronous HTTP request, please pass async_req=True
|
|
868
|
-
|
|
869
|
-
>>> thread = api.delete_personal_workspace_with_http_info(workspace_name, async_req=True)
|
|
870
|
-
>>> result = thread.get()
|
|
871
|
-
|
|
872
|
-
:param workspace_name: The name of the personal workspace. (required)
|
|
873
|
-
:type workspace_name: str
|
|
874
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
875
|
-
:type async_req: bool, optional
|
|
876
|
-
:param _return_http_data_only: response data without head status code
|
|
877
|
-
and headers
|
|
878
|
-
:type _return_http_data_only: bool, optional
|
|
879
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
880
|
-
be returned without reading/decoding response
|
|
881
|
-
data. Default is True.
|
|
882
|
-
:type _preload_content: bool, optional
|
|
883
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
884
|
-
number provided, it will be total request
|
|
885
|
-
timeout. It can also be a pair (tuple) of
|
|
886
|
-
(connection, read) timeouts.
|
|
887
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
888
|
-
request; this effectively ignores the authentication
|
|
889
|
-
in the spec for a single request.
|
|
890
|
-
:type _request_auth: dict, optional
|
|
891
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
892
|
-
If the method is called asynchronously,
|
|
893
|
-
returns the request thread.
|
|
894
|
-
:rtype: (DeletedEntityResponse, int, HTTPHeaderDict)
|
|
895
|
-
"""
|
|
896
|
-
|
|
897
|
-
local_var_params = locals()
|
|
898
|
-
|
|
899
|
-
all_params = [
|
|
900
|
-
'workspace_name'
|
|
901
|
-
]
|
|
902
|
-
all_params.extend(
|
|
903
|
-
[
|
|
904
|
-
'async_req',
|
|
905
|
-
'_return_http_data_only',
|
|
906
|
-
'_preload_content',
|
|
907
|
-
'_request_timeout',
|
|
908
|
-
'_request_auth',
|
|
909
|
-
'_headers'
|
|
910
|
-
]
|
|
911
|
-
)
|
|
912
|
-
|
|
913
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
914
|
-
if key not in all_params:
|
|
915
|
-
raise ApiTypeError(
|
|
916
|
-
"Got an unexpected keyword argument '%s'"
|
|
917
|
-
" to method delete_personal_workspace" % key
|
|
918
|
-
)
|
|
919
|
-
local_var_params[key] = val
|
|
920
|
-
del local_var_params['kwargs']
|
|
921
|
-
# verify the required parameter 'workspace_name' is set
|
|
922
|
-
if self.api_client.client_side_validation and ('workspace_name' not in local_var_params or # noqa: E501
|
|
923
|
-
local_var_params['workspace_name'] is None): # noqa: E501
|
|
924
|
-
raise ApiValueError("Missing the required parameter `workspace_name` when calling `delete_personal_workspace`") # noqa: E501
|
|
925
|
-
|
|
926
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
927
|
-
len(local_var_params['workspace_name']) > 64): # noqa: E501
|
|
928
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `delete_personal_workspace`, length must be less than or equal to `64`") # noqa: E501
|
|
929
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
930
|
-
len(local_var_params['workspace_name']) < 1): # noqa: E501
|
|
931
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `delete_personal_workspace`, length must be greater than or equal to `1`") # noqa: E501
|
|
932
|
-
if self.api_client.client_side_validation and 'workspace_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['workspace_name']): # noqa: E501
|
|
933
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `delete_personal_workspace`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
934
|
-
collection_formats = {}
|
|
935
|
-
|
|
936
|
-
path_params = {}
|
|
937
|
-
if 'workspace_name' in local_var_params:
|
|
938
|
-
path_params['workspaceName'] = local_var_params['workspace_name'] # noqa: E501
|
|
939
|
-
|
|
940
|
-
query_params = []
|
|
941
|
-
|
|
942
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
943
|
-
|
|
944
|
-
form_params = []
|
|
945
|
-
local_var_files = {}
|
|
946
|
-
|
|
947
|
-
body_params = None
|
|
948
|
-
# HTTP header `Accept`
|
|
949
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
950
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
951
|
-
|
|
952
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
# set the LUSID header
|
|
956
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
957
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
958
|
-
|
|
959
|
-
# Authentication setting
|
|
960
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
961
|
-
|
|
962
|
-
response_types_map = {
|
|
963
|
-
200: "DeletedEntityResponse",
|
|
964
|
-
400: "LusidValidationProblemDetails",
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
return self.api_client.call_api(
|
|
968
|
-
'/api/workspaces/personal/{workspaceName}', 'DELETE',
|
|
969
|
-
path_params,
|
|
970
|
-
query_params,
|
|
971
|
-
header_params,
|
|
972
|
-
body=body_params,
|
|
973
|
-
post_params=form_params,
|
|
974
|
-
files=local_var_files,
|
|
975
|
-
response_types_map=response_types_map,
|
|
976
|
-
auth_settings=auth_settings,
|
|
977
|
-
async_req=local_var_params.get('async_req'),
|
|
978
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
979
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
980
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
981
|
-
collection_formats=collection_formats,
|
|
982
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
983
|
-
|
|
984
|
-
def delete_shared_item(self, workspace_name, item_name, **kwargs): # noqa: E501
|
|
985
|
-
"""[EARLY ACCESS] DeleteSharedItem: Delete an item from a shared workspace. # noqa: E501
|
|
986
|
-
|
|
987
|
-
Delete an item from a shared workspace. # noqa: E501
|
|
988
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
989
|
-
asynchronous HTTP request, please pass async_req=True
|
|
990
|
-
|
|
991
|
-
>>> thread = api.delete_shared_item(workspace_name, item_name, async_req=True)
|
|
992
|
-
>>> result = thread.get()
|
|
993
|
-
|
|
994
|
-
:param workspace_name: The name of the shared workspace. (required)
|
|
995
|
-
:type workspace_name: str
|
|
996
|
-
:param item_name: The name of the item. (required)
|
|
997
|
-
:type item_name: str
|
|
998
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
999
|
-
:type async_req: bool, optional
|
|
1000
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1001
|
-
be returned without reading/decoding response
|
|
1002
|
-
data. Default is True.
|
|
1003
|
-
:type _preload_content: bool, optional
|
|
1004
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1005
|
-
number provided, it will be total request
|
|
1006
|
-
timeout. It can also be a pair (tuple) of
|
|
1007
|
-
(connection, read) timeouts.
|
|
1008
|
-
:return: Returns the result object.
|
|
1009
|
-
If the method is called asynchronously,
|
|
1010
|
-
returns the request thread.
|
|
1011
|
-
:rtype: DeletedEntityResponse
|
|
1012
|
-
"""
|
|
1013
|
-
kwargs['_return_http_data_only'] = True
|
|
1014
|
-
return self.delete_shared_item_with_http_info(workspace_name, item_name, **kwargs) # noqa: E501
|
|
1015
|
-
|
|
1016
|
-
def delete_shared_item_with_http_info(self, workspace_name, item_name, **kwargs): # noqa: E501
|
|
1017
|
-
"""[EARLY ACCESS] DeleteSharedItem: Delete an item from a shared workspace. # noqa: E501
|
|
1018
|
-
|
|
1019
|
-
Delete an item from a shared workspace. # noqa: E501
|
|
1020
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1021
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1022
|
-
|
|
1023
|
-
>>> thread = api.delete_shared_item_with_http_info(workspace_name, item_name, async_req=True)
|
|
1024
|
-
>>> result = thread.get()
|
|
1025
|
-
|
|
1026
|
-
:param workspace_name: The name of the shared workspace. (required)
|
|
1027
|
-
:type workspace_name: str
|
|
1028
|
-
:param item_name: The name of the item. (required)
|
|
1029
|
-
:type item_name: str
|
|
1030
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
1031
|
-
:type async_req: bool, optional
|
|
1032
|
-
:param _return_http_data_only: response data without head status code
|
|
1033
|
-
and headers
|
|
1034
|
-
:type _return_http_data_only: bool, optional
|
|
1035
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1036
|
-
be returned without reading/decoding response
|
|
1037
|
-
data. Default is True.
|
|
1038
|
-
:type _preload_content: bool, optional
|
|
1039
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1040
|
-
number provided, it will be total request
|
|
1041
|
-
timeout. It can also be a pair (tuple) of
|
|
1042
|
-
(connection, read) timeouts.
|
|
1043
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1044
|
-
request; this effectively ignores the authentication
|
|
1045
|
-
in the spec for a single request.
|
|
1046
|
-
:type _request_auth: dict, optional
|
|
1047
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
1048
|
-
If the method is called asynchronously,
|
|
1049
|
-
returns the request thread.
|
|
1050
|
-
:rtype: (DeletedEntityResponse, int, HTTPHeaderDict)
|
|
1051
|
-
"""
|
|
1052
|
-
|
|
1053
|
-
local_var_params = locals()
|
|
1054
|
-
|
|
1055
|
-
all_params = [
|
|
1056
|
-
'workspace_name',
|
|
1057
|
-
'item_name'
|
|
1058
|
-
]
|
|
1059
|
-
all_params.extend(
|
|
1060
|
-
[
|
|
1061
|
-
'async_req',
|
|
1062
|
-
'_return_http_data_only',
|
|
1063
|
-
'_preload_content',
|
|
1064
|
-
'_request_timeout',
|
|
1065
|
-
'_request_auth',
|
|
1066
|
-
'_headers'
|
|
1067
|
-
]
|
|
1068
|
-
)
|
|
1069
|
-
|
|
1070
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
1071
|
-
if key not in all_params:
|
|
1072
|
-
raise ApiTypeError(
|
|
1073
|
-
"Got an unexpected keyword argument '%s'"
|
|
1074
|
-
" to method delete_shared_item" % key
|
|
1075
|
-
)
|
|
1076
|
-
local_var_params[key] = val
|
|
1077
|
-
del local_var_params['kwargs']
|
|
1078
|
-
# verify the required parameter 'workspace_name' is set
|
|
1079
|
-
if self.api_client.client_side_validation and ('workspace_name' not in local_var_params or # noqa: E501
|
|
1080
|
-
local_var_params['workspace_name'] is None): # noqa: E501
|
|
1081
|
-
raise ApiValueError("Missing the required parameter `workspace_name` when calling `delete_shared_item`") # noqa: E501
|
|
1082
|
-
# verify the required parameter 'item_name' is set
|
|
1083
|
-
if self.api_client.client_side_validation and ('item_name' not in local_var_params or # noqa: E501
|
|
1084
|
-
local_var_params['item_name'] is None): # noqa: E501
|
|
1085
|
-
raise ApiValueError("Missing the required parameter `item_name` when calling `delete_shared_item`") # noqa: E501
|
|
1086
|
-
|
|
1087
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
1088
|
-
len(local_var_params['workspace_name']) > 64): # noqa: E501
|
|
1089
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `delete_shared_item`, length must be less than or equal to `64`") # noqa: E501
|
|
1090
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
1091
|
-
len(local_var_params['workspace_name']) < 1): # noqa: E501
|
|
1092
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `delete_shared_item`, length must be greater than or equal to `1`") # noqa: E501
|
|
1093
|
-
if self.api_client.client_side_validation and 'workspace_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['workspace_name']): # noqa: E501
|
|
1094
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `delete_shared_item`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
1095
|
-
if self.api_client.client_side_validation and ('item_name' in local_var_params and # noqa: E501
|
|
1096
|
-
len(local_var_params['item_name']) > 64): # noqa: E501
|
|
1097
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `delete_shared_item`, length must be less than or equal to `64`") # noqa: E501
|
|
1098
|
-
if self.api_client.client_side_validation and ('item_name' in local_var_params and # noqa: E501
|
|
1099
|
-
len(local_var_params['item_name']) < 1): # noqa: E501
|
|
1100
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `delete_shared_item`, length must be greater than or equal to `1`") # noqa: E501
|
|
1101
|
-
if self.api_client.client_side_validation and 'item_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['item_name']): # noqa: E501
|
|
1102
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `delete_shared_item`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
1103
|
-
collection_formats = {}
|
|
1104
|
-
|
|
1105
|
-
path_params = {}
|
|
1106
|
-
if 'workspace_name' in local_var_params:
|
|
1107
|
-
path_params['workspaceName'] = local_var_params['workspace_name'] # noqa: E501
|
|
1108
|
-
if 'item_name' in local_var_params:
|
|
1109
|
-
path_params['itemName'] = local_var_params['item_name'] # noqa: E501
|
|
1110
|
-
|
|
1111
|
-
query_params = []
|
|
1112
|
-
|
|
1113
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
1114
|
-
|
|
1115
|
-
form_params = []
|
|
1116
|
-
local_var_files = {}
|
|
1117
|
-
|
|
1118
|
-
body_params = None
|
|
1119
|
-
# HTTP header `Accept`
|
|
1120
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1121
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
1122
|
-
|
|
1123
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
# set the LUSID header
|
|
1127
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
1128
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
1129
|
-
|
|
1130
|
-
# Authentication setting
|
|
1131
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
1132
|
-
|
|
1133
|
-
response_types_map = {
|
|
1134
|
-
200: "DeletedEntityResponse",
|
|
1135
|
-
400: "LusidValidationProblemDetails",
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
return self.api_client.call_api(
|
|
1139
|
-
'/api/workspaces/shared/{workspaceName}/items/{itemName}', 'DELETE',
|
|
1140
|
-
path_params,
|
|
1141
|
-
query_params,
|
|
1142
|
-
header_params,
|
|
1143
|
-
body=body_params,
|
|
1144
|
-
post_params=form_params,
|
|
1145
|
-
files=local_var_files,
|
|
1146
|
-
response_types_map=response_types_map,
|
|
1147
|
-
auth_settings=auth_settings,
|
|
1148
|
-
async_req=local_var_params.get('async_req'),
|
|
1149
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
1150
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
1151
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
1152
|
-
collection_formats=collection_formats,
|
|
1153
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
1154
|
-
|
|
1155
|
-
def delete_shared_workspace(self, workspace_name, **kwargs): # noqa: E501
|
|
1156
|
-
"""[EARLY ACCESS] DeleteSharedWorkspace: Delete a shared workspace. # noqa: E501
|
|
1157
|
-
|
|
1158
|
-
Delete a shared workspace. # noqa: E501
|
|
1159
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1160
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1161
|
-
|
|
1162
|
-
>>> thread = api.delete_shared_workspace(workspace_name, async_req=True)
|
|
1163
|
-
>>> result = thread.get()
|
|
1164
|
-
|
|
1165
|
-
:param workspace_name: The name of the shared workspace. (required)
|
|
1166
|
-
:type workspace_name: str
|
|
1167
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
1168
|
-
:type async_req: bool, optional
|
|
1169
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1170
|
-
be returned without reading/decoding response
|
|
1171
|
-
data. Default is True.
|
|
1172
|
-
:type _preload_content: bool, optional
|
|
1173
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1174
|
-
number provided, it will be total request
|
|
1175
|
-
timeout. It can also be a pair (tuple) of
|
|
1176
|
-
(connection, read) timeouts.
|
|
1177
|
-
:return: Returns the result object.
|
|
1178
|
-
If the method is called asynchronously,
|
|
1179
|
-
returns the request thread.
|
|
1180
|
-
:rtype: DeletedEntityResponse
|
|
1181
|
-
"""
|
|
1182
|
-
kwargs['_return_http_data_only'] = True
|
|
1183
|
-
return self.delete_shared_workspace_with_http_info(workspace_name, **kwargs) # noqa: E501
|
|
1184
|
-
|
|
1185
|
-
def delete_shared_workspace_with_http_info(self, workspace_name, **kwargs): # noqa: E501
|
|
1186
|
-
"""[EARLY ACCESS] DeleteSharedWorkspace: Delete a shared workspace. # noqa: E501
|
|
1187
|
-
|
|
1188
|
-
Delete a shared workspace. # noqa: E501
|
|
1189
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1190
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1191
|
-
|
|
1192
|
-
>>> thread = api.delete_shared_workspace_with_http_info(workspace_name, async_req=True)
|
|
1193
|
-
>>> result = thread.get()
|
|
1194
|
-
|
|
1195
|
-
:param workspace_name: The name of the shared workspace. (required)
|
|
1196
|
-
:type workspace_name: str
|
|
1197
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
1198
|
-
:type async_req: bool, optional
|
|
1199
|
-
:param _return_http_data_only: response data without head status code
|
|
1200
|
-
and headers
|
|
1201
|
-
:type _return_http_data_only: bool, optional
|
|
1202
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1203
|
-
be returned without reading/decoding response
|
|
1204
|
-
data. Default is True.
|
|
1205
|
-
:type _preload_content: bool, optional
|
|
1206
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1207
|
-
number provided, it will be total request
|
|
1208
|
-
timeout. It can also be a pair (tuple) of
|
|
1209
|
-
(connection, read) timeouts.
|
|
1210
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1211
|
-
request; this effectively ignores the authentication
|
|
1212
|
-
in the spec for a single request.
|
|
1213
|
-
:type _request_auth: dict, optional
|
|
1214
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
1215
|
-
If the method is called asynchronously,
|
|
1216
|
-
returns the request thread.
|
|
1217
|
-
:rtype: (DeletedEntityResponse, int, HTTPHeaderDict)
|
|
1218
|
-
"""
|
|
1219
|
-
|
|
1220
|
-
local_var_params = locals()
|
|
1221
|
-
|
|
1222
|
-
all_params = [
|
|
1223
|
-
'workspace_name'
|
|
1224
|
-
]
|
|
1225
|
-
all_params.extend(
|
|
1226
|
-
[
|
|
1227
|
-
'async_req',
|
|
1228
|
-
'_return_http_data_only',
|
|
1229
|
-
'_preload_content',
|
|
1230
|
-
'_request_timeout',
|
|
1231
|
-
'_request_auth',
|
|
1232
|
-
'_headers'
|
|
1233
|
-
]
|
|
1234
|
-
)
|
|
1235
|
-
|
|
1236
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
1237
|
-
if key not in all_params:
|
|
1238
|
-
raise ApiTypeError(
|
|
1239
|
-
"Got an unexpected keyword argument '%s'"
|
|
1240
|
-
" to method delete_shared_workspace" % key
|
|
1241
|
-
)
|
|
1242
|
-
local_var_params[key] = val
|
|
1243
|
-
del local_var_params['kwargs']
|
|
1244
|
-
# verify the required parameter 'workspace_name' is set
|
|
1245
|
-
if self.api_client.client_side_validation and ('workspace_name' not in local_var_params or # noqa: E501
|
|
1246
|
-
local_var_params['workspace_name'] is None): # noqa: E501
|
|
1247
|
-
raise ApiValueError("Missing the required parameter `workspace_name` when calling `delete_shared_workspace`") # noqa: E501
|
|
1248
|
-
|
|
1249
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
1250
|
-
len(local_var_params['workspace_name']) > 64): # noqa: E501
|
|
1251
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `delete_shared_workspace`, length must be less than or equal to `64`") # noqa: E501
|
|
1252
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
1253
|
-
len(local_var_params['workspace_name']) < 1): # noqa: E501
|
|
1254
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `delete_shared_workspace`, length must be greater than or equal to `1`") # noqa: E501
|
|
1255
|
-
if self.api_client.client_side_validation and 'workspace_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['workspace_name']): # noqa: E501
|
|
1256
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `delete_shared_workspace`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
1257
|
-
collection_formats = {}
|
|
1258
|
-
|
|
1259
|
-
path_params = {}
|
|
1260
|
-
if 'workspace_name' in local_var_params:
|
|
1261
|
-
path_params['workspaceName'] = local_var_params['workspace_name'] # noqa: E501
|
|
1262
|
-
|
|
1263
|
-
query_params = []
|
|
1264
|
-
|
|
1265
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
1266
|
-
|
|
1267
|
-
form_params = []
|
|
1268
|
-
local_var_files = {}
|
|
1269
|
-
|
|
1270
|
-
body_params = None
|
|
1271
|
-
# HTTP header `Accept`
|
|
1272
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1273
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
1274
|
-
|
|
1275
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
# set the LUSID header
|
|
1279
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
1280
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
1281
|
-
|
|
1282
|
-
# Authentication setting
|
|
1283
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
1284
|
-
|
|
1285
|
-
response_types_map = {
|
|
1286
|
-
200: "DeletedEntityResponse",
|
|
1287
|
-
400: "LusidValidationProblemDetails",
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
return self.api_client.call_api(
|
|
1291
|
-
'/api/workspaces/shared/{workspaceName}', 'DELETE',
|
|
1292
|
-
path_params,
|
|
1293
|
-
query_params,
|
|
1294
|
-
header_params,
|
|
1295
|
-
body=body_params,
|
|
1296
|
-
post_params=form_params,
|
|
1297
|
-
files=local_var_files,
|
|
1298
|
-
response_types_map=response_types_map,
|
|
1299
|
-
auth_settings=auth_settings,
|
|
1300
|
-
async_req=local_var_params.get('async_req'),
|
|
1301
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
1302
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
1303
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
1304
|
-
collection_formats=collection_formats,
|
|
1305
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
1306
|
-
|
|
1307
|
-
def get_personal_item(self, workspace_name, item_name, **kwargs): # noqa: E501
|
|
1308
|
-
"""[EARLY ACCESS] GetPersonalItem: Get a single personal workspace item. # noqa: E501
|
|
1309
|
-
|
|
1310
|
-
Get a single personal workspace item. # noqa: E501
|
|
1311
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1312
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1313
|
-
|
|
1314
|
-
>>> thread = api.get_personal_item(workspace_name, item_name, async_req=True)
|
|
1315
|
-
>>> result = thread.get()
|
|
1316
|
-
|
|
1317
|
-
:param workspace_name: The name of the personal workspace. (required)
|
|
1318
|
-
:type workspace_name: str
|
|
1319
|
-
:param item_name: The name of the item. (required)
|
|
1320
|
-
:type item_name: str
|
|
1321
|
-
:param as_at: The datetime at which to request the workspace item. If not provided, defaults to 'latest'.
|
|
1322
|
-
:type as_at: datetime
|
|
1323
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
1324
|
-
:type async_req: bool, optional
|
|
1325
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1326
|
-
be returned without reading/decoding response
|
|
1327
|
-
data. Default is True.
|
|
1328
|
-
:type _preload_content: bool, optional
|
|
1329
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1330
|
-
number provided, it will be total request
|
|
1331
|
-
timeout. It can also be a pair (tuple) of
|
|
1332
|
-
(connection, read) timeouts.
|
|
1333
|
-
:return: Returns the result object.
|
|
1334
|
-
If the method is called asynchronously,
|
|
1335
|
-
returns the request thread.
|
|
1336
|
-
:rtype: WorkspaceItem
|
|
1337
|
-
"""
|
|
1338
|
-
kwargs['_return_http_data_only'] = True
|
|
1339
|
-
return self.get_personal_item_with_http_info(workspace_name, item_name, **kwargs) # noqa: E501
|
|
1340
|
-
|
|
1341
|
-
def get_personal_item_with_http_info(self, workspace_name, item_name, **kwargs): # noqa: E501
|
|
1342
|
-
"""[EARLY ACCESS] GetPersonalItem: Get a single personal workspace item. # noqa: E501
|
|
1343
|
-
|
|
1344
|
-
Get a single personal workspace item. # noqa: E501
|
|
1345
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1346
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1347
|
-
|
|
1348
|
-
>>> thread = api.get_personal_item_with_http_info(workspace_name, item_name, async_req=True)
|
|
1349
|
-
>>> result = thread.get()
|
|
1350
|
-
|
|
1351
|
-
:param workspace_name: The name of the personal workspace. (required)
|
|
1352
|
-
:type workspace_name: str
|
|
1353
|
-
:param item_name: The name of the item. (required)
|
|
1354
|
-
:type item_name: str
|
|
1355
|
-
:param as_at: The datetime at which to request the workspace item. If not provided, defaults to 'latest'.
|
|
1356
|
-
:type as_at: datetime
|
|
1357
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
1358
|
-
:type async_req: bool, optional
|
|
1359
|
-
:param _return_http_data_only: response data without head status code
|
|
1360
|
-
and headers
|
|
1361
|
-
:type _return_http_data_only: bool, optional
|
|
1362
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1363
|
-
be returned without reading/decoding response
|
|
1364
|
-
data. Default is True.
|
|
1365
|
-
:type _preload_content: bool, optional
|
|
1366
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1367
|
-
number provided, it will be total request
|
|
1368
|
-
timeout. It can also be a pair (tuple) of
|
|
1369
|
-
(connection, read) timeouts.
|
|
1370
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1371
|
-
request; this effectively ignores the authentication
|
|
1372
|
-
in the spec for a single request.
|
|
1373
|
-
:type _request_auth: dict, optional
|
|
1374
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
1375
|
-
If the method is called asynchronously,
|
|
1376
|
-
returns the request thread.
|
|
1377
|
-
:rtype: (WorkspaceItem, int, HTTPHeaderDict)
|
|
1378
|
-
"""
|
|
1379
|
-
|
|
1380
|
-
local_var_params = locals()
|
|
1381
|
-
|
|
1382
|
-
all_params = [
|
|
1383
|
-
'workspace_name',
|
|
1384
|
-
'item_name',
|
|
1385
|
-
'as_at'
|
|
1386
|
-
]
|
|
1387
|
-
all_params.extend(
|
|
1388
|
-
[
|
|
1389
|
-
'async_req',
|
|
1390
|
-
'_return_http_data_only',
|
|
1391
|
-
'_preload_content',
|
|
1392
|
-
'_request_timeout',
|
|
1393
|
-
'_request_auth',
|
|
1394
|
-
'_headers'
|
|
1395
|
-
]
|
|
1396
|
-
)
|
|
1397
|
-
|
|
1398
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
1399
|
-
if key not in all_params:
|
|
1400
|
-
raise ApiTypeError(
|
|
1401
|
-
"Got an unexpected keyword argument '%s'"
|
|
1402
|
-
" to method get_personal_item" % key
|
|
1403
|
-
)
|
|
1404
|
-
local_var_params[key] = val
|
|
1405
|
-
del local_var_params['kwargs']
|
|
1406
|
-
# verify the required parameter 'workspace_name' is set
|
|
1407
|
-
if self.api_client.client_side_validation and ('workspace_name' not in local_var_params or # noqa: E501
|
|
1408
|
-
local_var_params['workspace_name'] is None): # noqa: E501
|
|
1409
|
-
raise ApiValueError("Missing the required parameter `workspace_name` when calling `get_personal_item`") # noqa: E501
|
|
1410
|
-
# verify the required parameter 'item_name' is set
|
|
1411
|
-
if self.api_client.client_side_validation and ('item_name' not in local_var_params or # noqa: E501
|
|
1412
|
-
local_var_params['item_name'] is None): # noqa: E501
|
|
1413
|
-
raise ApiValueError("Missing the required parameter `item_name` when calling `get_personal_item`") # noqa: E501
|
|
1414
|
-
|
|
1415
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
1416
|
-
len(local_var_params['workspace_name']) > 64): # noqa: E501
|
|
1417
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `get_personal_item`, length must be less than or equal to `64`") # noqa: E501
|
|
1418
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
1419
|
-
len(local_var_params['workspace_name']) < 1): # noqa: E501
|
|
1420
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `get_personal_item`, length must be greater than or equal to `1`") # noqa: E501
|
|
1421
|
-
if self.api_client.client_side_validation and 'workspace_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['workspace_name']): # noqa: E501
|
|
1422
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `get_personal_item`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
1423
|
-
if self.api_client.client_side_validation and ('item_name' in local_var_params and # noqa: E501
|
|
1424
|
-
len(local_var_params['item_name']) > 64): # noqa: E501
|
|
1425
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `get_personal_item`, length must be less than or equal to `64`") # noqa: E501
|
|
1426
|
-
if self.api_client.client_side_validation and ('item_name' in local_var_params and # noqa: E501
|
|
1427
|
-
len(local_var_params['item_name']) < 1): # noqa: E501
|
|
1428
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `get_personal_item`, length must be greater than or equal to `1`") # noqa: E501
|
|
1429
|
-
if self.api_client.client_side_validation and 'item_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['item_name']): # noqa: E501
|
|
1430
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `get_personal_item`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
1431
|
-
collection_formats = {}
|
|
1432
|
-
|
|
1433
|
-
path_params = {}
|
|
1434
|
-
if 'workspace_name' in local_var_params:
|
|
1435
|
-
path_params['workspaceName'] = local_var_params['workspace_name'] # noqa: E501
|
|
1436
|
-
if 'item_name' in local_var_params:
|
|
1437
|
-
path_params['itemName'] = local_var_params['item_name'] # noqa: E501
|
|
1438
|
-
|
|
1439
|
-
query_params = []
|
|
1440
|
-
if 'as_at' in local_var_params and local_var_params['as_at'] is not None: # noqa: E501
|
|
1441
|
-
query_params.append(('asAt', local_var_params['as_at'])) # noqa: E501
|
|
1442
|
-
|
|
1443
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
1444
|
-
|
|
1445
|
-
form_params = []
|
|
1446
|
-
local_var_files = {}
|
|
1447
|
-
|
|
1448
|
-
body_params = None
|
|
1449
|
-
# HTTP header `Accept`
|
|
1450
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1451
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
1452
|
-
|
|
1453
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
# set the LUSID header
|
|
1457
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
1458
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
1459
|
-
|
|
1460
|
-
# Authentication setting
|
|
1461
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
1462
|
-
|
|
1463
|
-
response_types_map = {
|
|
1464
|
-
200: "WorkspaceItem",
|
|
1465
|
-
400: "LusidValidationProblemDetails",
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
return self.api_client.call_api(
|
|
1469
|
-
'/api/workspaces/personal/{workspaceName}/items/{itemName}', 'GET',
|
|
1470
|
-
path_params,
|
|
1471
|
-
query_params,
|
|
1472
|
-
header_params,
|
|
1473
|
-
body=body_params,
|
|
1474
|
-
post_params=form_params,
|
|
1475
|
-
files=local_var_files,
|
|
1476
|
-
response_types_map=response_types_map,
|
|
1477
|
-
auth_settings=auth_settings,
|
|
1478
|
-
async_req=local_var_params.get('async_req'),
|
|
1479
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
1480
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
1481
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
1482
|
-
collection_formats=collection_formats,
|
|
1483
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
1484
|
-
|
|
1485
|
-
def get_personal_workspace(self, workspace_name, **kwargs): # noqa: E501
|
|
1486
|
-
"""[EARLY ACCESS] GetPersonalWorkspace: Get a personal workspace. # noqa: E501
|
|
1487
|
-
|
|
1488
|
-
Get a personal workspace. # noqa: E501
|
|
1489
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1490
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1491
|
-
|
|
1492
|
-
>>> thread = api.get_personal_workspace(workspace_name, async_req=True)
|
|
1493
|
-
>>> result = thread.get()
|
|
1494
|
-
|
|
1495
|
-
:param workspace_name: The personal workspace name. (required)
|
|
1496
|
-
:type workspace_name: str
|
|
1497
|
-
:param as_at: The asAt datetime at which to retrieve workspaces. Defaults to 'latest' if not specified.
|
|
1498
|
-
:type as_at: datetime
|
|
1499
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
1500
|
-
:type async_req: bool, optional
|
|
1501
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1502
|
-
be returned without reading/decoding response
|
|
1503
|
-
data. Default is True.
|
|
1504
|
-
:type _preload_content: bool, optional
|
|
1505
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1506
|
-
number provided, it will be total request
|
|
1507
|
-
timeout. It can also be a pair (tuple) of
|
|
1508
|
-
(connection, read) timeouts.
|
|
1509
|
-
:return: Returns the result object.
|
|
1510
|
-
If the method is called asynchronously,
|
|
1511
|
-
returns the request thread.
|
|
1512
|
-
:rtype: Workspace
|
|
1513
|
-
"""
|
|
1514
|
-
kwargs['_return_http_data_only'] = True
|
|
1515
|
-
return self.get_personal_workspace_with_http_info(workspace_name, **kwargs) # noqa: E501
|
|
1516
|
-
|
|
1517
|
-
def get_personal_workspace_with_http_info(self, workspace_name, **kwargs): # noqa: E501
|
|
1518
|
-
"""[EARLY ACCESS] GetPersonalWorkspace: Get a personal workspace. # noqa: E501
|
|
1519
|
-
|
|
1520
|
-
Get a personal workspace. # noqa: E501
|
|
1521
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1522
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1523
|
-
|
|
1524
|
-
>>> thread = api.get_personal_workspace_with_http_info(workspace_name, async_req=True)
|
|
1525
|
-
>>> result = thread.get()
|
|
1526
|
-
|
|
1527
|
-
:param workspace_name: The personal workspace name. (required)
|
|
1528
|
-
:type workspace_name: str
|
|
1529
|
-
:param as_at: The asAt datetime at which to retrieve workspaces. Defaults to 'latest' if not specified.
|
|
1530
|
-
:type as_at: datetime
|
|
1531
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
1532
|
-
:type async_req: bool, optional
|
|
1533
|
-
:param _return_http_data_only: response data without head status code
|
|
1534
|
-
and headers
|
|
1535
|
-
:type _return_http_data_only: bool, optional
|
|
1536
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1537
|
-
be returned without reading/decoding response
|
|
1538
|
-
data. Default is True.
|
|
1539
|
-
:type _preload_content: bool, optional
|
|
1540
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1541
|
-
number provided, it will be total request
|
|
1542
|
-
timeout. It can also be a pair (tuple) of
|
|
1543
|
-
(connection, read) timeouts.
|
|
1544
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1545
|
-
request; this effectively ignores the authentication
|
|
1546
|
-
in the spec for a single request.
|
|
1547
|
-
:type _request_auth: dict, optional
|
|
1548
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
1549
|
-
If the method is called asynchronously,
|
|
1550
|
-
returns the request thread.
|
|
1551
|
-
:rtype: (Workspace, int, HTTPHeaderDict)
|
|
1552
|
-
"""
|
|
1553
|
-
|
|
1554
|
-
local_var_params = locals()
|
|
1555
|
-
|
|
1556
|
-
all_params = [
|
|
1557
|
-
'workspace_name',
|
|
1558
|
-
'as_at'
|
|
1559
|
-
]
|
|
1560
|
-
all_params.extend(
|
|
1561
|
-
[
|
|
1562
|
-
'async_req',
|
|
1563
|
-
'_return_http_data_only',
|
|
1564
|
-
'_preload_content',
|
|
1565
|
-
'_request_timeout',
|
|
1566
|
-
'_request_auth',
|
|
1567
|
-
'_headers'
|
|
1568
|
-
]
|
|
1569
|
-
)
|
|
1570
|
-
|
|
1571
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
1572
|
-
if key not in all_params:
|
|
1573
|
-
raise ApiTypeError(
|
|
1574
|
-
"Got an unexpected keyword argument '%s'"
|
|
1575
|
-
" to method get_personal_workspace" % key
|
|
1576
|
-
)
|
|
1577
|
-
local_var_params[key] = val
|
|
1578
|
-
del local_var_params['kwargs']
|
|
1579
|
-
# verify the required parameter 'workspace_name' is set
|
|
1580
|
-
if self.api_client.client_side_validation and ('workspace_name' not in local_var_params or # noqa: E501
|
|
1581
|
-
local_var_params['workspace_name'] is None): # noqa: E501
|
|
1582
|
-
raise ApiValueError("Missing the required parameter `workspace_name` when calling `get_personal_workspace`") # noqa: E501
|
|
1583
|
-
|
|
1584
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
1585
|
-
len(local_var_params['workspace_name']) > 64): # noqa: E501
|
|
1586
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `get_personal_workspace`, length must be less than or equal to `64`") # noqa: E501
|
|
1587
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
1588
|
-
len(local_var_params['workspace_name']) < 1): # noqa: E501
|
|
1589
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `get_personal_workspace`, length must be greater than or equal to `1`") # noqa: E501
|
|
1590
|
-
if self.api_client.client_side_validation and 'workspace_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['workspace_name']): # noqa: E501
|
|
1591
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `get_personal_workspace`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
1592
|
-
collection_formats = {}
|
|
1593
|
-
|
|
1594
|
-
path_params = {}
|
|
1595
|
-
if 'workspace_name' in local_var_params:
|
|
1596
|
-
path_params['workspaceName'] = local_var_params['workspace_name'] # noqa: E501
|
|
1597
|
-
|
|
1598
|
-
query_params = []
|
|
1599
|
-
if 'as_at' in local_var_params and local_var_params['as_at'] is not None: # noqa: E501
|
|
1600
|
-
query_params.append(('asAt', local_var_params['as_at'])) # noqa: E501
|
|
1601
|
-
|
|
1602
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
1603
|
-
|
|
1604
|
-
form_params = []
|
|
1605
|
-
local_var_files = {}
|
|
1606
|
-
|
|
1607
|
-
body_params = None
|
|
1608
|
-
# HTTP header `Accept`
|
|
1609
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1610
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
1611
|
-
|
|
1612
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
# set the LUSID header
|
|
1616
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
1617
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
1618
|
-
|
|
1619
|
-
# Authentication setting
|
|
1620
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
1621
|
-
|
|
1622
|
-
response_types_map = {
|
|
1623
|
-
200: "Workspace",
|
|
1624
|
-
400: "LusidValidationProblemDetails",
|
|
1625
|
-
}
|
|
1626
|
-
|
|
1627
|
-
return self.api_client.call_api(
|
|
1628
|
-
'/api/workspaces/personal/{workspaceName}', 'GET',
|
|
1629
|
-
path_params,
|
|
1630
|
-
query_params,
|
|
1631
|
-
header_params,
|
|
1632
|
-
body=body_params,
|
|
1633
|
-
post_params=form_params,
|
|
1634
|
-
files=local_var_files,
|
|
1635
|
-
response_types_map=response_types_map,
|
|
1636
|
-
auth_settings=auth_settings,
|
|
1637
|
-
async_req=local_var_params.get('async_req'),
|
|
1638
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
1639
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
1640
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
1641
|
-
collection_formats=collection_formats,
|
|
1642
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
1643
|
-
|
|
1644
|
-
def get_shared_item(self, workspace_name, item_name, **kwargs): # noqa: E501
|
|
1645
|
-
"""[EARLY ACCESS] GetSharedItem: Get a single shared workspace item. # noqa: E501
|
|
1646
|
-
|
|
1647
|
-
Get a single shared workspace item. # noqa: E501
|
|
1648
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1649
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1650
|
-
|
|
1651
|
-
>>> thread = api.get_shared_item(workspace_name, item_name, async_req=True)
|
|
1652
|
-
>>> result = thread.get()
|
|
1653
|
-
|
|
1654
|
-
:param workspace_name: The name of the shared workspace. (required)
|
|
1655
|
-
:type workspace_name: str
|
|
1656
|
-
:param item_name: The name of the item. (required)
|
|
1657
|
-
:type item_name: str
|
|
1658
|
-
:param as_at: The datetime at which to request the workspace item. If not provided, defaults to 'latest'.
|
|
1659
|
-
:type as_at: datetime
|
|
1660
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
1661
|
-
:type async_req: bool, optional
|
|
1662
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1663
|
-
be returned without reading/decoding response
|
|
1664
|
-
data. Default is True.
|
|
1665
|
-
:type _preload_content: bool, optional
|
|
1666
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1667
|
-
number provided, it will be total request
|
|
1668
|
-
timeout. It can also be a pair (tuple) of
|
|
1669
|
-
(connection, read) timeouts.
|
|
1670
|
-
:return: Returns the result object.
|
|
1671
|
-
If the method is called asynchronously,
|
|
1672
|
-
returns the request thread.
|
|
1673
|
-
:rtype: WorkspaceItem
|
|
1674
|
-
"""
|
|
1675
|
-
kwargs['_return_http_data_only'] = True
|
|
1676
|
-
return self.get_shared_item_with_http_info(workspace_name, item_name, **kwargs) # noqa: E501
|
|
1677
|
-
|
|
1678
|
-
def get_shared_item_with_http_info(self, workspace_name, item_name, **kwargs): # noqa: E501
|
|
1679
|
-
"""[EARLY ACCESS] GetSharedItem: Get a single shared workspace item. # noqa: E501
|
|
1680
|
-
|
|
1681
|
-
Get a single shared workspace item. # noqa: E501
|
|
1682
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1683
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1684
|
-
|
|
1685
|
-
>>> thread = api.get_shared_item_with_http_info(workspace_name, item_name, async_req=True)
|
|
1686
|
-
>>> result = thread.get()
|
|
1687
|
-
|
|
1688
|
-
:param workspace_name: The name of the shared workspace. (required)
|
|
1689
|
-
:type workspace_name: str
|
|
1690
|
-
:param item_name: The name of the item. (required)
|
|
1691
|
-
:type item_name: str
|
|
1692
|
-
:param as_at: The datetime at which to request the workspace item. If not provided, defaults to 'latest'.
|
|
1693
|
-
:type as_at: datetime
|
|
1694
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
1695
|
-
:type async_req: bool, optional
|
|
1696
|
-
:param _return_http_data_only: response data without head status code
|
|
1697
|
-
and headers
|
|
1698
|
-
:type _return_http_data_only: bool, optional
|
|
1699
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1700
|
-
be returned without reading/decoding response
|
|
1701
|
-
data. Default is True.
|
|
1702
|
-
:type _preload_content: bool, optional
|
|
1703
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1704
|
-
number provided, it will be total request
|
|
1705
|
-
timeout. It can also be a pair (tuple) of
|
|
1706
|
-
(connection, read) timeouts.
|
|
1707
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1708
|
-
request; this effectively ignores the authentication
|
|
1709
|
-
in the spec for a single request.
|
|
1710
|
-
:type _request_auth: dict, optional
|
|
1711
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
1712
|
-
If the method is called asynchronously,
|
|
1713
|
-
returns the request thread.
|
|
1714
|
-
:rtype: (WorkspaceItem, int, HTTPHeaderDict)
|
|
1715
|
-
"""
|
|
1716
|
-
|
|
1717
|
-
local_var_params = locals()
|
|
1718
|
-
|
|
1719
|
-
all_params = [
|
|
1720
|
-
'workspace_name',
|
|
1721
|
-
'item_name',
|
|
1722
|
-
'as_at'
|
|
1723
|
-
]
|
|
1724
|
-
all_params.extend(
|
|
1725
|
-
[
|
|
1726
|
-
'async_req',
|
|
1727
|
-
'_return_http_data_only',
|
|
1728
|
-
'_preload_content',
|
|
1729
|
-
'_request_timeout',
|
|
1730
|
-
'_request_auth',
|
|
1731
|
-
'_headers'
|
|
1732
|
-
]
|
|
1733
|
-
)
|
|
1734
|
-
|
|
1735
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
1736
|
-
if key not in all_params:
|
|
1737
|
-
raise ApiTypeError(
|
|
1738
|
-
"Got an unexpected keyword argument '%s'"
|
|
1739
|
-
" to method get_shared_item" % key
|
|
1740
|
-
)
|
|
1741
|
-
local_var_params[key] = val
|
|
1742
|
-
del local_var_params['kwargs']
|
|
1743
|
-
# verify the required parameter 'workspace_name' is set
|
|
1744
|
-
if self.api_client.client_side_validation and ('workspace_name' not in local_var_params or # noqa: E501
|
|
1745
|
-
local_var_params['workspace_name'] is None): # noqa: E501
|
|
1746
|
-
raise ApiValueError("Missing the required parameter `workspace_name` when calling `get_shared_item`") # noqa: E501
|
|
1747
|
-
# verify the required parameter 'item_name' is set
|
|
1748
|
-
if self.api_client.client_side_validation and ('item_name' not in local_var_params or # noqa: E501
|
|
1749
|
-
local_var_params['item_name'] is None): # noqa: E501
|
|
1750
|
-
raise ApiValueError("Missing the required parameter `item_name` when calling `get_shared_item`") # noqa: E501
|
|
1751
|
-
|
|
1752
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
1753
|
-
len(local_var_params['workspace_name']) > 64): # noqa: E501
|
|
1754
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `get_shared_item`, length must be less than or equal to `64`") # noqa: E501
|
|
1755
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
1756
|
-
len(local_var_params['workspace_name']) < 1): # noqa: E501
|
|
1757
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `get_shared_item`, length must be greater than or equal to `1`") # noqa: E501
|
|
1758
|
-
if self.api_client.client_side_validation and 'workspace_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['workspace_name']): # noqa: E501
|
|
1759
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `get_shared_item`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
1760
|
-
if self.api_client.client_side_validation and ('item_name' in local_var_params and # noqa: E501
|
|
1761
|
-
len(local_var_params['item_name']) > 64): # noqa: E501
|
|
1762
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `get_shared_item`, length must be less than or equal to `64`") # noqa: E501
|
|
1763
|
-
if self.api_client.client_side_validation and ('item_name' in local_var_params and # noqa: E501
|
|
1764
|
-
len(local_var_params['item_name']) < 1): # noqa: E501
|
|
1765
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `get_shared_item`, length must be greater than or equal to `1`") # noqa: E501
|
|
1766
|
-
if self.api_client.client_side_validation and 'item_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['item_name']): # noqa: E501
|
|
1767
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `get_shared_item`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
1768
|
-
collection_formats = {}
|
|
1769
|
-
|
|
1770
|
-
path_params = {}
|
|
1771
|
-
if 'workspace_name' in local_var_params:
|
|
1772
|
-
path_params['workspaceName'] = local_var_params['workspace_name'] # noqa: E501
|
|
1773
|
-
if 'item_name' in local_var_params:
|
|
1774
|
-
path_params['itemName'] = local_var_params['item_name'] # noqa: E501
|
|
1775
|
-
|
|
1776
|
-
query_params = []
|
|
1777
|
-
if 'as_at' in local_var_params and local_var_params['as_at'] is not None: # noqa: E501
|
|
1778
|
-
query_params.append(('asAt', local_var_params['as_at'])) # noqa: E501
|
|
1779
|
-
|
|
1780
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
1781
|
-
|
|
1782
|
-
form_params = []
|
|
1783
|
-
local_var_files = {}
|
|
1784
|
-
|
|
1785
|
-
body_params = None
|
|
1786
|
-
# HTTP header `Accept`
|
|
1787
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1788
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
1789
|
-
|
|
1790
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
# set the LUSID header
|
|
1794
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
1795
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
1796
|
-
|
|
1797
|
-
# Authentication setting
|
|
1798
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
1799
|
-
|
|
1800
|
-
response_types_map = {
|
|
1801
|
-
200: "WorkspaceItem",
|
|
1802
|
-
400: "LusidValidationProblemDetails",
|
|
1803
|
-
}
|
|
1804
|
-
|
|
1805
|
-
return self.api_client.call_api(
|
|
1806
|
-
'/api/workspaces/shared/{workspaceName}/items/{itemName}', 'GET',
|
|
1807
|
-
path_params,
|
|
1808
|
-
query_params,
|
|
1809
|
-
header_params,
|
|
1810
|
-
body=body_params,
|
|
1811
|
-
post_params=form_params,
|
|
1812
|
-
files=local_var_files,
|
|
1813
|
-
response_types_map=response_types_map,
|
|
1814
|
-
auth_settings=auth_settings,
|
|
1815
|
-
async_req=local_var_params.get('async_req'),
|
|
1816
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
1817
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
1818
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
1819
|
-
collection_formats=collection_formats,
|
|
1820
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
1821
|
-
|
|
1822
|
-
def get_shared_workspace(self, workspace_name, **kwargs): # noqa: E501
|
|
1823
|
-
"""[EARLY ACCESS] GetSharedWorkspace: Get a shared workspace. # noqa: E501
|
|
1824
|
-
|
|
1825
|
-
Get a shared workspace. # noqa: E501
|
|
1826
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1827
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1828
|
-
|
|
1829
|
-
>>> thread = api.get_shared_workspace(workspace_name, async_req=True)
|
|
1830
|
-
>>> result = thread.get()
|
|
1831
|
-
|
|
1832
|
-
:param workspace_name: The shared workspace name. (required)
|
|
1833
|
-
:type workspace_name: str
|
|
1834
|
-
:param as_at: The asAt datetime at which to retrieve workspaces. Defaults to 'latest' if not specified.
|
|
1835
|
-
:type as_at: datetime
|
|
1836
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
1837
|
-
:type async_req: bool, optional
|
|
1838
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1839
|
-
be returned without reading/decoding response
|
|
1840
|
-
data. Default is True.
|
|
1841
|
-
:type _preload_content: bool, optional
|
|
1842
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1843
|
-
number provided, it will be total request
|
|
1844
|
-
timeout. It can also be a pair (tuple) of
|
|
1845
|
-
(connection, read) timeouts.
|
|
1846
|
-
:return: Returns the result object.
|
|
1847
|
-
If the method is called asynchronously,
|
|
1848
|
-
returns the request thread.
|
|
1849
|
-
:rtype: Workspace
|
|
1850
|
-
"""
|
|
1851
|
-
kwargs['_return_http_data_only'] = True
|
|
1852
|
-
return self.get_shared_workspace_with_http_info(workspace_name, **kwargs) # noqa: E501
|
|
1853
|
-
|
|
1854
|
-
def get_shared_workspace_with_http_info(self, workspace_name, **kwargs): # noqa: E501
|
|
1855
|
-
"""[EARLY ACCESS] GetSharedWorkspace: Get a shared workspace. # noqa: E501
|
|
1856
|
-
|
|
1857
|
-
Get a shared workspace. # noqa: E501
|
|
1858
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1859
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1860
|
-
|
|
1861
|
-
>>> thread = api.get_shared_workspace_with_http_info(workspace_name, async_req=True)
|
|
1862
|
-
>>> result = thread.get()
|
|
1863
|
-
|
|
1864
|
-
:param workspace_name: The shared workspace name. (required)
|
|
1865
|
-
:type workspace_name: str
|
|
1866
|
-
:param as_at: The asAt datetime at which to retrieve workspaces. Defaults to 'latest' if not specified.
|
|
1867
|
-
:type as_at: datetime
|
|
1868
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
1869
|
-
:type async_req: bool, optional
|
|
1870
|
-
:param _return_http_data_only: response data without head status code
|
|
1871
|
-
and headers
|
|
1872
|
-
:type _return_http_data_only: bool, optional
|
|
1873
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1874
|
-
be returned without reading/decoding response
|
|
1875
|
-
data. Default is True.
|
|
1876
|
-
:type _preload_content: bool, optional
|
|
1877
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1878
|
-
number provided, it will be total request
|
|
1879
|
-
timeout. It can also be a pair (tuple) of
|
|
1880
|
-
(connection, read) timeouts.
|
|
1881
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1882
|
-
request; this effectively ignores the authentication
|
|
1883
|
-
in the spec for a single request.
|
|
1884
|
-
:type _request_auth: dict, optional
|
|
1885
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
1886
|
-
If the method is called asynchronously,
|
|
1887
|
-
returns the request thread.
|
|
1888
|
-
:rtype: (Workspace, int, HTTPHeaderDict)
|
|
1889
|
-
"""
|
|
1890
|
-
|
|
1891
|
-
local_var_params = locals()
|
|
1892
|
-
|
|
1893
|
-
all_params = [
|
|
1894
|
-
'workspace_name',
|
|
1895
|
-
'as_at'
|
|
1896
|
-
]
|
|
1897
|
-
all_params.extend(
|
|
1898
|
-
[
|
|
1899
|
-
'async_req',
|
|
1900
|
-
'_return_http_data_only',
|
|
1901
|
-
'_preload_content',
|
|
1902
|
-
'_request_timeout',
|
|
1903
|
-
'_request_auth',
|
|
1904
|
-
'_headers'
|
|
1905
|
-
]
|
|
1906
|
-
)
|
|
1907
|
-
|
|
1908
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
1909
|
-
if key not in all_params:
|
|
1910
|
-
raise ApiTypeError(
|
|
1911
|
-
"Got an unexpected keyword argument '%s'"
|
|
1912
|
-
" to method get_shared_workspace" % key
|
|
1913
|
-
)
|
|
1914
|
-
local_var_params[key] = val
|
|
1915
|
-
del local_var_params['kwargs']
|
|
1916
|
-
# verify the required parameter 'workspace_name' is set
|
|
1917
|
-
if self.api_client.client_side_validation and ('workspace_name' not in local_var_params or # noqa: E501
|
|
1918
|
-
local_var_params['workspace_name'] is None): # noqa: E501
|
|
1919
|
-
raise ApiValueError("Missing the required parameter `workspace_name` when calling `get_shared_workspace`") # noqa: E501
|
|
1920
|
-
|
|
1921
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
1922
|
-
len(local_var_params['workspace_name']) > 64): # noqa: E501
|
|
1923
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `get_shared_workspace`, length must be less than or equal to `64`") # noqa: E501
|
|
1924
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
1925
|
-
len(local_var_params['workspace_name']) < 1): # noqa: E501
|
|
1926
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `get_shared_workspace`, length must be greater than or equal to `1`") # noqa: E501
|
|
1927
|
-
if self.api_client.client_side_validation and 'workspace_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['workspace_name']): # noqa: E501
|
|
1928
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `get_shared_workspace`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
1929
|
-
collection_formats = {}
|
|
1930
|
-
|
|
1931
|
-
path_params = {}
|
|
1932
|
-
if 'workspace_name' in local_var_params:
|
|
1933
|
-
path_params['workspaceName'] = local_var_params['workspace_name'] # noqa: E501
|
|
1934
|
-
|
|
1935
|
-
query_params = []
|
|
1936
|
-
if 'as_at' in local_var_params and local_var_params['as_at'] is not None: # noqa: E501
|
|
1937
|
-
query_params.append(('asAt', local_var_params['as_at'])) # noqa: E501
|
|
1938
|
-
|
|
1939
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
1940
|
-
|
|
1941
|
-
form_params = []
|
|
1942
|
-
local_var_files = {}
|
|
1943
|
-
|
|
1944
|
-
body_params = None
|
|
1945
|
-
# HTTP header `Accept`
|
|
1946
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1947
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
1948
|
-
|
|
1949
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
# set the LUSID header
|
|
1953
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
1954
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
1955
|
-
|
|
1956
|
-
# Authentication setting
|
|
1957
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
1958
|
-
|
|
1959
|
-
response_types_map = {
|
|
1960
|
-
200: "Workspace",
|
|
1961
|
-
400: "LusidValidationProblemDetails",
|
|
1962
|
-
}
|
|
1963
|
-
|
|
1964
|
-
return self.api_client.call_api(
|
|
1965
|
-
'/api/workspaces/shared/{workspaceName}', 'GET',
|
|
1966
|
-
path_params,
|
|
1967
|
-
query_params,
|
|
1968
|
-
header_params,
|
|
1969
|
-
body=body_params,
|
|
1970
|
-
post_params=form_params,
|
|
1971
|
-
files=local_var_files,
|
|
1972
|
-
response_types_map=response_types_map,
|
|
1973
|
-
auth_settings=auth_settings,
|
|
1974
|
-
async_req=local_var_params.get('async_req'),
|
|
1975
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
1976
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
1977
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
1978
|
-
collection_formats=collection_formats,
|
|
1979
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
1980
|
-
|
|
1981
|
-
def list_personal_items(self, workspace_name, **kwargs): # noqa: E501
|
|
1982
|
-
"""[EARLY ACCESS] ListPersonalItems: List the items in a personal workspace. # noqa: E501
|
|
1983
|
-
|
|
1984
|
-
List the items in a personal workspace. # noqa: E501
|
|
1985
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1986
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1987
|
-
|
|
1988
|
-
>>> thread = api.list_personal_items(workspace_name, async_req=True)
|
|
1989
|
-
>>> result = thread.get()
|
|
1990
|
-
|
|
1991
|
-
:param workspace_name: The item's workspace name. (required)
|
|
1992
|
-
:type workspace_name: str
|
|
1993
|
-
:param as_at: The asAt datetime at which to retrieve workspace items. Defaults to 'latest' if not specified.
|
|
1994
|
-
:type as_at: datetime
|
|
1995
|
-
:param page: The pagination token to use to continue listing workspaces items from a previous call to list workspaces items. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, effectiveAt, and asAt fields must not have changed since the original request.
|
|
1996
|
-
:type page: str
|
|
1997
|
-
:param sort_by: A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".
|
|
1998
|
-
:type sort_by: list[str]
|
|
1999
|
-
:param limit: When paginating, limit the number of returned results to this many.
|
|
2000
|
-
:type limit: int
|
|
2001
|
-
:param filter: Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid.
|
|
2002
|
-
:type filter: str
|
|
2003
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
2004
|
-
:type async_req: bool, optional
|
|
2005
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
2006
|
-
be returned without reading/decoding response
|
|
2007
|
-
data. Default is True.
|
|
2008
|
-
:type _preload_content: bool, optional
|
|
2009
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2010
|
-
number provided, it will be total request
|
|
2011
|
-
timeout. It can also be a pair (tuple) of
|
|
2012
|
-
(connection, read) timeouts.
|
|
2013
|
-
:return: Returns the result object.
|
|
2014
|
-
If the method is called asynchronously,
|
|
2015
|
-
returns the request thread.
|
|
2016
|
-
:rtype: PagedResourceListOfWorkspaceItem
|
|
2017
|
-
"""
|
|
2018
|
-
kwargs['_return_http_data_only'] = True
|
|
2019
|
-
return self.list_personal_items_with_http_info(workspace_name, **kwargs) # noqa: E501
|
|
2020
|
-
|
|
2021
|
-
def list_personal_items_with_http_info(self, workspace_name, **kwargs): # noqa: E501
|
|
2022
|
-
"""[EARLY ACCESS] ListPersonalItems: List the items in a personal workspace. # noqa: E501
|
|
2023
|
-
|
|
2024
|
-
List the items in a personal workspace. # noqa: E501
|
|
2025
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
2026
|
-
asynchronous HTTP request, please pass async_req=True
|
|
2027
|
-
|
|
2028
|
-
>>> thread = api.list_personal_items_with_http_info(workspace_name, async_req=True)
|
|
2029
|
-
>>> result = thread.get()
|
|
2030
|
-
|
|
2031
|
-
:param workspace_name: The item's workspace name. (required)
|
|
2032
|
-
:type workspace_name: str
|
|
2033
|
-
:param as_at: The asAt datetime at which to retrieve workspace items. Defaults to 'latest' if not specified.
|
|
2034
|
-
:type as_at: datetime
|
|
2035
|
-
:param page: The pagination token to use to continue listing workspaces items from a previous call to list workspaces items. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, effectiveAt, and asAt fields must not have changed since the original request.
|
|
2036
|
-
:type page: str
|
|
2037
|
-
:param sort_by: A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".
|
|
2038
|
-
:type sort_by: list[str]
|
|
2039
|
-
:param limit: When paginating, limit the number of returned results to this many.
|
|
2040
|
-
:type limit: int
|
|
2041
|
-
:param filter: Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid.
|
|
2042
|
-
:type filter: str
|
|
2043
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
2044
|
-
:type async_req: bool, optional
|
|
2045
|
-
:param _return_http_data_only: response data without head status code
|
|
2046
|
-
and headers
|
|
2047
|
-
:type _return_http_data_only: bool, optional
|
|
2048
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
2049
|
-
be returned without reading/decoding response
|
|
2050
|
-
data. Default is True.
|
|
2051
|
-
:type _preload_content: bool, optional
|
|
2052
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2053
|
-
number provided, it will be total request
|
|
2054
|
-
timeout. It can also be a pair (tuple) of
|
|
2055
|
-
(connection, read) timeouts.
|
|
2056
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2057
|
-
request; this effectively ignores the authentication
|
|
2058
|
-
in the spec for a single request.
|
|
2059
|
-
:type _request_auth: dict, optional
|
|
2060
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
2061
|
-
If the method is called asynchronously,
|
|
2062
|
-
returns the request thread.
|
|
2063
|
-
:rtype: (PagedResourceListOfWorkspaceItem, int, HTTPHeaderDict)
|
|
2064
|
-
"""
|
|
2065
|
-
|
|
2066
|
-
local_var_params = locals()
|
|
2067
|
-
|
|
2068
|
-
all_params = [
|
|
2069
|
-
'workspace_name',
|
|
2070
|
-
'as_at',
|
|
2071
|
-
'page',
|
|
2072
|
-
'sort_by',
|
|
2073
|
-
'limit',
|
|
2074
|
-
'filter'
|
|
2075
|
-
]
|
|
2076
|
-
all_params.extend(
|
|
2077
|
-
[
|
|
2078
|
-
'async_req',
|
|
2079
|
-
'_return_http_data_only',
|
|
2080
|
-
'_preload_content',
|
|
2081
|
-
'_request_timeout',
|
|
2082
|
-
'_request_auth',
|
|
2083
|
-
'_headers'
|
|
2084
|
-
]
|
|
2085
|
-
)
|
|
2086
|
-
|
|
2087
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
2088
|
-
if key not in all_params:
|
|
2089
|
-
raise ApiTypeError(
|
|
2090
|
-
"Got an unexpected keyword argument '%s'"
|
|
2091
|
-
" to method list_personal_items" % key
|
|
2092
|
-
)
|
|
2093
|
-
local_var_params[key] = val
|
|
2094
|
-
del local_var_params['kwargs']
|
|
2095
|
-
# verify the required parameter 'workspace_name' is set
|
|
2096
|
-
if self.api_client.client_side_validation and ('workspace_name' not in local_var_params or # noqa: E501
|
|
2097
|
-
local_var_params['workspace_name'] is None): # noqa: E501
|
|
2098
|
-
raise ApiValueError("Missing the required parameter `workspace_name` when calling `list_personal_items`") # noqa: E501
|
|
2099
|
-
|
|
2100
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
2101
|
-
len(local_var_params['workspace_name']) > 64): # noqa: E501
|
|
2102
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `list_personal_items`, length must be less than or equal to `64`") # noqa: E501
|
|
2103
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
2104
|
-
len(local_var_params['workspace_name']) < 1): # noqa: E501
|
|
2105
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `list_personal_items`, length must be greater than or equal to `1`") # noqa: E501
|
|
2106
|
-
if self.api_client.client_side_validation and 'workspace_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['workspace_name']): # noqa: E501
|
|
2107
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `list_personal_items`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
2108
|
-
if self.api_client.client_side_validation and ('page' in local_var_params and # noqa: E501
|
|
2109
|
-
len(local_var_params['page']) > 500): # noqa: E501
|
|
2110
|
-
raise ApiValueError("Invalid value for parameter `page` when calling `list_personal_items`, length must be less than or equal to `500`") # noqa: E501
|
|
2111
|
-
if self.api_client.client_side_validation and ('page' in local_var_params and # noqa: E501
|
|
2112
|
-
len(local_var_params['page']) < 1): # noqa: E501
|
|
2113
|
-
raise ApiValueError("Invalid value for parameter `page` when calling `list_personal_items`, length must be greater than or equal to `1`") # noqa: E501
|
|
2114
|
-
if self.api_client.client_side_validation and 'page' in local_var_params and not re.search(r'^[a-zA-Z0-9\+\/]*={0,3}$', local_var_params['page']): # noqa: E501
|
|
2115
|
-
raise ApiValueError("Invalid value for parameter `page` when calling `list_personal_items`, must conform to the pattern `/^[a-zA-Z0-9\+\/]*={0,3}$/`") # noqa: E501
|
|
2116
|
-
if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 5000: # noqa: E501
|
|
2117
|
-
raise ApiValueError("Invalid value for parameter `limit` when calling `list_personal_items`, must be a value less than or equal to `5000`") # noqa: E501
|
|
2118
|
-
if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1: # noqa: E501
|
|
2119
|
-
raise ApiValueError("Invalid value for parameter `limit` when calling `list_personal_items`, must be a value greater than or equal to `1`") # noqa: E501
|
|
2120
|
-
if self.api_client.client_side_validation and ('filter' in local_var_params and # noqa: E501
|
|
2121
|
-
len(local_var_params['filter']) > 16384): # noqa: E501
|
|
2122
|
-
raise ApiValueError("Invalid value for parameter `filter` when calling `list_personal_items`, length must be less than or equal to `16384`") # noqa: E501
|
|
2123
|
-
if self.api_client.client_side_validation and ('filter' in local_var_params and # noqa: E501
|
|
2124
|
-
len(local_var_params['filter']) < 0): # noqa: E501
|
|
2125
|
-
raise ApiValueError("Invalid value for parameter `filter` when calling `list_personal_items`, length must be greater than or equal to `0`") # noqa: E501
|
|
2126
|
-
if self.api_client.client_side_validation and 'filter' in local_var_params and not re.search(r'^[\s\S]*$', local_var_params['filter']): # noqa: E501
|
|
2127
|
-
raise ApiValueError("Invalid value for parameter `filter` when calling `list_personal_items`, must conform to the pattern `/^[\s\S]*$/`") # noqa: E501
|
|
2128
|
-
collection_formats = {}
|
|
2129
|
-
|
|
2130
|
-
path_params = {}
|
|
2131
|
-
if 'workspace_name' in local_var_params:
|
|
2132
|
-
path_params['workspaceName'] = local_var_params['workspace_name'] # noqa: E501
|
|
2133
|
-
|
|
2134
|
-
query_params = []
|
|
2135
|
-
if 'as_at' in local_var_params and local_var_params['as_at'] is not None: # noqa: E501
|
|
2136
|
-
query_params.append(('asAt', local_var_params['as_at'])) # noqa: E501
|
|
2137
|
-
if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501
|
|
2138
|
-
query_params.append(('page', local_var_params['page'])) # noqa: E501
|
|
2139
|
-
if 'sort_by' in local_var_params and local_var_params['sort_by'] is not None: # noqa: E501
|
|
2140
|
-
query_params.append(('sortBy', local_var_params['sort_by'])) # noqa: E501
|
|
2141
|
-
collection_formats['sortBy'] = 'multi' # noqa: E501
|
|
2142
|
-
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
|
|
2143
|
-
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
|
|
2144
|
-
if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501
|
|
2145
|
-
query_params.append(('filter', local_var_params['filter'])) # noqa: E501
|
|
2146
|
-
|
|
2147
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
2148
|
-
|
|
2149
|
-
form_params = []
|
|
2150
|
-
local_var_files = {}
|
|
2151
|
-
|
|
2152
|
-
body_params = None
|
|
2153
|
-
# HTTP header `Accept`
|
|
2154
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2155
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
2156
|
-
|
|
2157
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
# set the LUSID header
|
|
2161
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
2162
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
2163
|
-
|
|
2164
|
-
# Authentication setting
|
|
2165
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
2166
|
-
|
|
2167
|
-
response_types_map = {
|
|
2168
|
-
200: "PagedResourceListOfWorkspaceItem",
|
|
2169
|
-
400: "LusidValidationProblemDetails",
|
|
2170
|
-
}
|
|
2171
|
-
|
|
2172
|
-
return self.api_client.call_api(
|
|
2173
|
-
'/api/workspaces/personal/{workspaceName}/items', 'GET',
|
|
2174
|
-
path_params,
|
|
2175
|
-
query_params,
|
|
2176
|
-
header_params,
|
|
2177
|
-
body=body_params,
|
|
2178
|
-
post_params=form_params,
|
|
2179
|
-
files=local_var_files,
|
|
2180
|
-
response_types_map=response_types_map,
|
|
2181
|
-
auth_settings=auth_settings,
|
|
2182
|
-
async_req=local_var_params.get('async_req'),
|
|
2183
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
2184
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
2185
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
2186
|
-
collection_formats=collection_formats,
|
|
2187
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
2188
|
-
|
|
2189
|
-
def list_personal_workspaces(self, **kwargs): # noqa: E501
|
|
2190
|
-
"""[EARLY ACCESS] ListPersonalWorkspaces: List personal workspaces. # noqa: E501
|
|
2191
|
-
|
|
2192
|
-
List personal workspaces. # noqa: E501
|
|
2193
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
2194
|
-
asynchronous HTTP request, please pass async_req=True
|
|
2195
|
-
|
|
2196
|
-
>>> thread = api.list_personal_workspaces(async_req=True)
|
|
2197
|
-
>>> result = thread.get()
|
|
2198
|
-
|
|
2199
|
-
:param as_at: The asAt datetime at which to retrieve workspaces. Defaults to 'latest' if not specified.
|
|
2200
|
-
:type as_at: datetime
|
|
2201
|
-
:param page: The pagination token to use to continue listing workspaces from a previous call to list workspaces. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, effectiveAt, and asAt fields must not have changed since the original request.
|
|
2202
|
-
:type page: str
|
|
2203
|
-
:param sort_by: A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".
|
|
2204
|
-
:type sort_by: list[str]
|
|
2205
|
-
:param limit: When paginating, limit the number of returned results to this many.
|
|
2206
|
-
:type limit: int
|
|
2207
|
-
:param filter: Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid.
|
|
2208
|
-
:type filter: str
|
|
2209
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
2210
|
-
:type async_req: bool, optional
|
|
2211
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
2212
|
-
be returned without reading/decoding response
|
|
2213
|
-
data. Default is True.
|
|
2214
|
-
:type _preload_content: bool, optional
|
|
2215
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2216
|
-
number provided, it will be total request
|
|
2217
|
-
timeout. It can also be a pair (tuple) of
|
|
2218
|
-
(connection, read) timeouts.
|
|
2219
|
-
:return: Returns the result object.
|
|
2220
|
-
If the method is called asynchronously,
|
|
2221
|
-
returns the request thread.
|
|
2222
|
-
:rtype: PagedResourceListOfWorkspace
|
|
2223
|
-
"""
|
|
2224
|
-
kwargs['_return_http_data_only'] = True
|
|
2225
|
-
return self.list_personal_workspaces_with_http_info(**kwargs) # noqa: E501
|
|
2226
|
-
|
|
2227
|
-
def list_personal_workspaces_with_http_info(self, **kwargs): # noqa: E501
|
|
2228
|
-
"""[EARLY ACCESS] ListPersonalWorkspaces: List personal workspaces. # noqa: E501
|
|
2229
|
-
|
|
2230
|
-
List personal workspaces. # noqa: E501
|
|
2231
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
2232
|
-
asynchronous HTTP request, please pass async_req=True
|
|
2233
|
-
|
|
2234
|
-
>>> thread = api.list_personal_workspaces_with_http_info(async_req=True)
|
|
2235
|
-
>>> result = thread.get()
|
|
2236
|
-
|
|
2237
|
-
:param as_at: The asAt datetime at which to retrieve workspaces. Defaults to 'latest' if not specified.
|
|
2238
|
-
:type as_at: datetime
|
|
2239
|
-
:param page: The pagination token to use to continue listing workspaces from a previous call to list workspaces. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, effectiveAt, and asAt fields must not have changed since the original request.
|
|
2240
|
-
:type page: str
|
|
2241
|
-
:param sort_by: A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".
|
|
2242
|
-
:type sort_by: list[str]
|
|
2243
|
-
:param limit: When paginating, limit the number of returned results to this many.
|
|
2244
|
-
:type limit: int
|
|
2245
|
-
:param filter: Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid.
|
|
2246
|
-
:type filter: str
|
|
2247
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
2248
|
-
:type async_req: bool, optional
|
|
2249
|
-
:param _return_http_data_only: response data without head status code
|
|
2250
|
-
and headers
|
|
2251
|
-
:type _return_http_data_only: bool, optional
|
|
2252
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
2253
|
-
be returned without reading/decoding response
|
|
2254
|
-
data. Default is True.
|
|
2255
|
-
:type _preload_content: bool, optional
|
|
2256
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2257
|
-
number provided, it will be total request
|
|
2258
|
-
timeout. It can also be a pair (tuple) of
|
|
2259
|
-
(connection, read) timeouts.
|
|
2260
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2261
|
-
request; this effectively ignores the authentication
|
|
2262
|
-
in the spec for a single request.
|
|
2263
|
-
:type _request_auth: dict, optional
|
|
2264
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
2265
|
-
If the method is called asynchronously,
|
|
2266
|
-
returns the request thread.
|
|
2267
|
-
:rtype: (PagedResourceListOfWorkspace, int, HTTPHeaderDict)
|
|
2268
|
-
"""
|
|
2269
|
-
|
|
2270
|
-
local_var_params = locals()
|
|
2271
|
-
|
|
2272
|
-
all_params = [
|
|
2273
|
-
'as_at',
|
|
2274
|
-
'page',
|
|
2275
|
-
'sort_by',
|
|
2276
|
-
'limit',
|
|
2277
|
-
'filter'
|
|
2278
|
-
]
|
|
2279
|
-
all_params.extend(
|
|
2280
|
-
[
|
|
2281
|
-
'async_req',
|
|
2282
|
-
'_return_http_data_only',
|
|
2283
|
-
'_preload_content',
|
|
2284
|
-
'_request_timeout',
|
|
2285
|
-
'_request_auth',
|
|
2286
|
-
'_headers'
|
|
2287
|
-
]
|
|
2288
|
-
)
|
|
2289
|
-
|
|
2290
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
2291
|
-
if key not in all_params:
|
|
2292
|
-
raise ApiTypeError(
|
|
2293
|
-
"Got an unexpected keyword argument '%s'"
|
|
2294
|
-
" to method list_personal_workspaces" % key
|
|
2295
|
-
)
|
|
2296
|
-
local_var_params[key] = val
|
|
2297
|
-
del local_var_params['kwargs']
|
|
2298
|
-
|
|
2299
|
-
if self.api_client.client_side_validation and ('page' in local_var_params and # noqa: E501
|
|
2300
|
-
len(local_var_params['page']) > 500): # noqa: E501
|
|
2301
|
-
raise ApiValueError("Invalid value for parameter `page` when calling `list_personal_workspaces`, length must be less than or equal to `500`") # noqa: E501
|
|
2302
|
-
if self.api_client.client_side_validation and ('page' in local_var_params and # noqa: E501
|
|
2303
|
-
len(local_var_params['page']) < 1): # noqa: E501
|
|
2304
|
-
raise ApiValueError("Invalid value for parameter `page` when calling `list_personal_workspaces`, length must be greater than or equal to `1`") # noqa: E501
|
|
2305
|
-
if self.api_client.client_side_validation and 'page' in local_var_params and not re.search(r'^[a-zA-Z0-9\+\/]*={0,3}$', local_var_params['page']): # noqa: E501
|
|
2306
|
-
raise ApiValueError("Invalid value for parameter `page` when calling `list_personal_workspaces`, must conform to the pattern `/^[a-zA-Z0-9\+\/]*={0,3}$/`") # noqa: E501
|
|
2307
|
-
if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 5000: # noqa: E501
|
|
2308
|
-
raise ApiValueError("Invalid value for parameter `limit` when calling `list_personal_workspaces`, must be a value less than or equal to `5000`") # noqa: E501
|
|
2309
|
-
if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1: # noqa: E501
|
|
2310
|
-
raise ApiValueError("Invalid value for parameter `limit` when calling `list_personal_workspaces`, must be a value greater than or equal to `1`") # noqa: E501
|
|
2311
|
-
if self.api_client.client_side_validation and ('filter' in local_var_params and # noqa: E501
|
|
2312
|
-
len(local_var_params['filter']) > 16384): # noqa: E501
|
|
2313
|
-
raise ApiValueError("Invalid value for parameter `filter` when calling `list_personal_workspaces`, length must be less than or equal to `16384`") # noqa: E501
|
|
2314
|
-
if self.api_client.client_side_validation and ('filter' in local_var_params and # noqa: E501
|
|
2315
|
-
len(local_var_params['filter']) < 0): # noqa: E501
|
|
2316
|
-
raise ApiValueError("Invalid value for parameter `filter` when calling `list_personal_workspaces`, length must be greater than or equal to `0`") # noqa: E501
|
|
2317
|
-
if self.api_client.client_side_validation and 'filter' in local_var_params and not re.search(r'^[\s\S]*$', local_var_params['filter']): # noqa: E501
|
|
2318
|
-
raise ApiValueError("Invalid value for parameter `filter` when calling `list_personal_workspaces`, must conform to the pattern `/^[\s\S]*$/`") # noqa: E501
|
|
2319
|
-
collection_formats = {}
|
|
2320
|
-
|
|
2321
|
-
path_params = {}
|
|
2322
|
-
|
|
2323
|
-
query_params = []
|
|
2324
|
-
if 'as_at' in local_var_params and local_var_params['as_at'] is not None: # noqa: E501
|
|
2325
|
-
query_params.append(('asAt', local_var_params['as_at'])) # noqa: E501
|
|
2326
|
-
if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501
|
|
2327
|
-
query_params.append(('page', local_var_params['page'])) # noqa: E501
|
|
2328
|
-
if 'sort_by' in local_var_params and local_var_params['sort_by'] is not None: # noqa: E501
|
|
2329
|
-
query_params.append(('sortBy', local_var_params['sort_by'])) # noqa: E501
|
|
2330
|
-
collection_formats['sortBy'] = 'multi' # noqa: E501
|
|
2331
|
-
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
|
|
2332
|
-
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
|
|
2333
|
-
if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501
|
|
2334
|
-
query_params.append(('filter', local_var_params['filter'])) # noqa: E501
|
|
2335
|
-
|
|
2336
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
2337
|
-
|
|
2338
|
-
form_params = []
|
|
2339
|
-
local_var_files = {}
|
|
2340
|
-
|
|
2341
|
-
body_params = None
|
|
2342
|
-
# HTTP header `Accept`
|
|
2343
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2344
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
2345
|
-
|
|
2346
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
# set the LUSID header
|
|
2350
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
2351
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
2352
|
-
|
|
2353
|
-
# Authentication setting
|
|
2354
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
2355
|
-
|
|
2356
|
-
response_types_map = {
|
|
2357
|
-
200: "PagedResourceListOfWorkspace",
|
|
2358
|
-
400: "LusidValidationProblemDetails",
|
|
2359
|
-
}
|
|
2360
|
-
|
|
2361
|
-
return self.api_client.call_api(
|
|
2362
|
-
'/api/workspaces/personal', 'GET',
|
|
2363
|
-
path_params,
|
|
2364
|
-
query_params,
|
|
2365
|
-
header_params,
|
|
2366
|
-
body=body_params,
|
|
2367
|
-
post_params=form_params,
|
|
2368
|
-
files=local_var_files,
|
|
2369
|
-
response_types_map=response_types_map,
|
|
2370
|
-
auth_settings=auth_settings,
|
|
2371
|
-
async_req=local_var_params.get('async_req'),
|
|
2372
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
2373
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
2374
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
2375
|
-
collection_formats=collection_formats,
|
|
2376
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
2377
|
-
|
|
2378
|
-
def list_shared_items(self, workspace_name, **kwargs): # noqa: E501
|
|
2379
|
-
"""[EARLY ACCESS] ListSharedItems: List the items in a shared workspace. # noqa: E501
|
|
2380
|
-
|
|
2381
|
-
List the items in a shared workspace. # noqa: E501
|
|
2382
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
2383
|
-
asynchronous HTTP request, please pass async_req=True
|
|
2384
|
-
|
|
2385
|
-
>>> thread = api.list_shared_items(workspace_name, async_req=True)
|
|
2386
|
-
>>> result = thread.get()
|
|
2387
|
-
|
|
2388
|
-
:param workspace_name: The item's workspace name. (required)
|
|
2389
|
-
:type workspace_name: str
|
|
2390
|
-
:param as_at: The asAt datetime at which to retrieve workspace items. Defaults to 'latest' if not specified.
|
|
2391
|
-
:type as_at: datetime
|
|
2392
|
-
:param page: The pagination token to use to continue listing workspaces items from a previous call to list workspaces items. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, effectiveAt, and asAt fields must not have changed since the original request.
|
|
2393
|
-
:type page: str
|
|
2394
|
-
:param sort_by: A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".
|
|
2395
|
-
:type sort_by: list[str]
|
|
2396
|
-
:param limit: When paginating, limit the number of returned results to this many.
|
|
2397
|
-
:type limit: int
|
|
2398
|
-
:param filter: Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid.
|
|
2399
|
-
:type filter: str
|
|
2400
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
2401
|
-
:type async_req: bool, optional
|
|
2402
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
2403
|
-
be returned without reading/decoding response
|
|
2404
|
-
data. Default is True.
|
|
2405
|
-
:type _preload_content: bool, optional
|
|
2406
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2407
|
-
number provided, it will be total request
|
|
2408
|
-
timeout. It can also be a pair (tuple) of
|
|
2409
|
-
(connection, read) timeouts.
|
|
2410
|
-
:return: Returns the result object.
|
|
2411
|
-
If the method is called asynchronously,
|
|
2412
|
-
returns the request thread.
|
|
2413
|
-
:rtype: PagedResourceListOfWorkspaceItem
|
|
2414
|
-
"""
|
|
2415
|
-
kwargs['_return_http_data_only'] = True
|
|
2416
|
-
return self.list_shared_items_with_http_info(workspace_name, **kwargs) # noqa: E501
|
|
2417
|
-
|
|
2418
|
-
def list_shared_items_with_http_info(self, workspace_name, **kwargs): # noqa: E501
|
|
2419
|
-
"""[EARLY ACCESS] ListSharedItems: List the items in a shared workspace. # noqa: E501
|
|
2420
|
-
|
|
2421
|
-
List the items in a shared workspace. # noqa: E501
|
|
2422
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
2423
|
-
asynchronous HTTP request, please pass async_req=True
|
|
2424
|
-
|
|
2425
|
-
>>> thread = api.list_shared_items_with_http_info(workspace_name, async_req=True)
|
|
2426
|
-
>>> result = thread.get()
|
|
2427
|
-
|
|
2428
|
-
:param workspace_name: The item's workspace name. (required)
|
|
2429
|
-
:type workspace_name: str
|
|
2430
|
-
:param as_at: The asAt datetime at which to retrieve workspace items. Defaults to 'latest' if not specified.
|
|
2431
|
-
:type as_at: datetime
|
|
2432
|
-
:param page: The pagination token to use to continue listing workspaces items from a previous call to list workspaces items. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, effectiveAt, and asAt fields must not have changed since the original request.
|
|
2433
|
-
:type page: str
|
|
2434
|
-
:param sort_by: A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".
|
|
2435
|
-
:type sort_by: list[str]
|
|
2436
|
-
:param limit: When paginating, limit the number of returned results to this many.
|
|
2437
|
-
:type limit: int
|
|
2438
|
-
:param filter: Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid.
|
|
2439
|
-
:type filter: str
|
|
2440
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
2441
|
-
:type async_req: bool, optional
|
|
2442
|
-
:param _return_http_data_only: response data without head status code
|
|
2443
|
-
and headers
|
|
2444
|
-
:type _return_http_data_only: bool, optional
|
|
2445
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
2446
|
-
be returned without reading/decoding response
|
|
2447
|
-
data. Default is True.
|
|
2448
|
-
:type _preload_content: bool, optional
|
|
2449
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2450
|
-
number provided, it will be total request
|
|
2451
|
-
timeout. It can also be a pair (tuple) of
|
|
2452
|
-
(connection, read) timeouts.
|
|
2453
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2454
|
-
request; this effectively ignores the authentication
|
|
2455
|
-
in the spec for a single request.
|
|
2456
|
-
:type _request_auth: dict, optional
|
|
2457
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
2458
|
-
If the method is called asynchronously,
|
|
2459
|
-
returns the request thread.
|
|
2460
|
-
:rtype: (PagedResourceListOfWorkspaceItem, int, HTTPHeaderDict)
|
|
2461
|
-
"""
|
|
2462
|
-
|
|
2463
|
-
local_var_params = locals()
|
|
2464
|
-
|
|
2465
|
-
all_params = [
|
|
2466
|
-
'workspace_name',
|
|
2467
|
-
'as_at',
|
|
2468
|
-
'page',
|
|
2469
|
-
'sort_by',
|
|
2470
|
-
'limit',
|
|
2471
|
-
'filter'
|
|
2472
|
-
]
|
|
2473
|
-
all_params.extend(
|
|
2474
|
-
[
|
|
2475
|
-
'async_req',
|
|
2476
|
-
'_return_http_data_only',
|
|
2477
|
-
'_preload_content',
|
|
2478
|
-
'_request_timeout',
|
|
2479
|
-
'_request_auth',
|
|
2480
|
-
'_headers'
|
|
2481
|
-
]
|
|
2482
|
-
)
|
|
2483
|
-
|
|
2484
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
2485
|
-
if key not in all_params:
|
|
2486
|
-
raise ApiTypeError(
|
|
2487
|
-
"Got an unexpected keyword argument '%s'"
|
|
2488
|
-
" to method list_shared_items" % key
|
|
2489
|
-
)
|
|
2490
|
-
local_var_params[key] = val
|
|
2491
|
-
del local_var_params['kwargs']
|
|
2492
|
-
# verify the required parameter 'workspace_name' is set
|
|
2493
|
-
if self.api_client.client_side_validation and ('workspace_name' not in local_var_params or # noqa: E501
|
|
2494
|
-
local_var_params['workspace_name'] is None): # noqa: E501
|
|
2495
|
-
raise ApiValueError("Missing the required parameter `workspace_name` when calling `list_shared_items`") # noqa: E501
|
|
2496
|
-
|
|
2497
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
2498
|
-
len(local_var_params['workspace_name']) > 64): # noqa: E501
|
|
2499
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `list_shared_items`, length must be less than or equal to `64`") # noqa: E501
|
|
2500
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
2501
|
-
len(local_var_params['workspace_name']) < 1): # noqa: E501
|
|
2502
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `list_shared_items`, length must be greater than or equal to `1`") # noqa: E501
|
|
2503
|
-
if self.api_client.client_side_validation and 'workspace_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['workspace_name']): # noqa: E501
|
|
2504
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `list_shared_items`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
2505
|
-
if self.api_client.client_side_validation and ('page' in local_var_params and # noqa: E501
|
|
2506
|
-
len(local_var_params['page']) > 500): # noqa: E501
|
|
2507
|
-
raise ApiValueError("Invalid value for parameter `page` when calling `list_shared_items`, length must be less than or equal to `500`") # noqa: E501
|
|
2508
|
-
if self.api_client.client_side_validation and ('page' in local_var_params and # noqa: E501
|
|
2509
|
-
len(local_var_params['page']) < 1): # noqa: E501
|
|
2510
|
-
raise ApiValueError("Invalid value for parameter `page` when calling `list_shared_items`, length must be greater than or equal to `1`") # noqa: E501
|
|
2511
|
-
if self.api_client.client_side_validation and 'page' in local_var_params and not re.search(r'^[a-zA-Z0-9\+\/]*={0,3}$', local_var_params['page']): # noqa: E501
|
|
2512
|
-
raise ApiValueError("Invalid value for parameter `page` when calling `list_shared_items`, must conform to the pattern `/^[a-zA-Z0-9\+\/]*={0,3}$/`") # noqa: E501
|
|
2513
|
-
if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 5000: # noqa: E501
|
|
2514
|
-
raise ApiValueError("Invalid value for parameter `limit` when calling `list_shared_items`, must be a value less than or equal to `5000`") # noqa: E501
|
|
2515
|
-
if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1: # noqa: E501
|
|
2516
|
-
raise ApiValueError("Invalid value for parameter `limit` when calling `list_shared_items`, must be a value greater than or equal to `1`") # noqa: E501
|
|
2517
|
-
if self.api_client.client_side_validation and ('filter' in local_var_params and # noqa: E501
|
|
2518
|
-
len(local_var_params['filter']) > 16384): # noqa: E501
|
|
2519
|
-
raise ApiValueError("Invalid value for parameter `filter` when calling `list_shared_items`, length must be less than or equal to `16384`") # noqa: E501
|
|
2520
|
-
if self.api_client.client_side_validation and ('filter' in local_var_params and # noqa: E501
|
|
2521
|
-
len(local_var_params['filter']) < 0): # noqa: E501
|
|
2522
|
-
raise ApiValueError("Invalid value for parameter `filter` when calling `list_shared_items`, length must be greater than or equal to `0`") # noqa: E501
|
|
2523
|
-
if self.api_client.client_side_validation and 'filter' in local_var_params and not re.search(r'^[\s\S]*$', local_var_params['filter']): # noqa: E501
|
|
2524
|
-
raise ApiValueError("Invalid value for parameter `filter` when calling `list_shared_items`, must conform to the pattern `/^[\s\S]*$/`") # noqa: E501
|
|
2525
|
-
collection_formats = {}
|
|
2526
|
-
|
|
2527
|
-
path_params = {}
|
|
2528
|
-
if 'workspace_name' in local_var_params:
|
|
2529
|
-
path_params['workspaceName'] = local_var_params['workspace_name'] # noqa: E501
|
|
2530
|
-
|
|
2531
|
-
query_params = []
|
|
2532
|
-
if 'as_at' in local_var_params and local_var_params['as_at'] is not None: # noqa: E501
|
|
2533
|
-
query_params.append(('asAt', local_var_params['as_at'])) # noqa: E501
|
|
2534
|
-
if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501
|
|
2535
|
-
query_params.append(('page', local_var_params['page'])) # noqa: E501
|
|
2536
|
-
if 'sort_by' in local_var_params and local_var_params['sort_by'] is not None: # noqa: E501
|
|
2537
|
-
query_params.append(('sortBy', local_var_params['sort_by'])) # noqa: E501
|
|
2538
|
-
collection_formats['sortBy'] = 'multi' # noqa: E501
|
|
2539
|
-
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
|
|
2540
|
-
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
|
|
2541
|
-
if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501
|
|
2542
|
-
query_params.append(('filter', local_var_params['filter'])) # noqa: E501
|
|
2543
|
-
|
|
2544
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
2545
|
-
|
|
2546
|
-
form_params = []
|
|
2547
|
-
local_var_files = {}
|
|
2548
|
-
|
|
2549
|
-
body_params = None
|
|
2550
|
-
# HTTP header `Accept`
|
|
2551
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2552
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
2553
|
-
|
|
2554
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
# set the LUSID header
|
|
2558
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
2559
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
2560
|
-
|
|
2561
|
-
# Authentication setting
|
|
2562
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
2563
|
-
|
|
2564
|
-
response_types_map = {
|
|
2565
|
-
200: "PagedResourceListOfWorkspaceItem",
|
|
2566
|
-
400: "LusidValidationProblemDetails",
|
|
2567
|
-
}
|
|
2568
|
-
|
|
2569
|
-
return self.api_client.call_api(
|
|
2570
|
-
'/api/workspaces/shared/{workspaceName}/items', 'GET',
|
|
2571
|
-
path_params,
|
|
2572
|
-
query_params,
|
|
2573
|
-
header_params,
|
|
2574
|
-
body=body_params,
|
|
2575
|
-
post_params=form_params,
|
|
2576
|
-
files=local_var_files,
|
|
2577
|
-
response_types_map=response_types_map,
|
|
2578
|
-
auth_settings=auth_settings,
|
|
2579
|
-
async_req=local_var_params.get('async_req'),
|
|
2580
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
2581
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
2582
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
2583
|
-
collection_formats=collection_formats,
|
|
2584
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
2585
|
-
|
|
2586
|
-
def list_shared_workspaces(self, **kwargs): # noqa: E501
|
|
2587
|
-
"""[EARLY ACCESS] ListSharedWorkspaces: List shared workspaces. # noqa: E501
|
|
2588
|
-
|
|
2589
|
-
List shared workspaces. # noqa: E501
|
|
2590
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
2591
|
-
asynchronous HTTP request, please pass async_req=True
|
|
2592
|
-
|
|
2593
|
-
>>> thread = api.list_shared_workspaces(async_req=True)
|
|
2594
|
-
>>> result = thread.get()
|
|
2595
|
-
|
|
2596
|
-
:param as_at: The asAt datetime at which to retrieve workspaces. Defaults to 'latest' if not specified.
|
|
2597
|
-
:type as_at: datetime
|
|
2598
|
-
:param page: The pagination token to use to continue listing workspaces from a previous call to list workspaces. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, effectiveAt, and asAt fields must not have changed since the original request.
|
|
2599
|
-
:type page: str
|
|
2600
|
-
:param sort_by: A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".
|
|
2601
|
-
:type sort_by: list[str]
|
|
2602
|
-
:param limit: When paginating, limit the number of returned results to this many.
|
|
2603
|
-
:type limit: int
|
|
2604
|
-
:param filter: Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid.
|
|
2605
|
-
:type filter: str
|
|
2606
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
2607
|
-
:type async_req: bool, optional
|
|
2608
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
2609
|
-
be returned without reading/decoding response
|
|
2610
|
-
data. Default is True.
|
|
2611
|
-
:type _preload_content: bool, optional
|
|
2612
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2613
|
-
number provided, it will be total request
|
|
2614
|
-
timeout. It can also be a pair (tuple) of
|
|
2615
|
-
(connection, read) timeouts.
|
|
2616
|
-
:return: Returns the result object.
|
|
2617
|
-
If the method is called asynchronously,
|
|
2618
|
-
returns the request thread.
|
|
2619
|
-
:rtype: PagedResourceListOfWorkspace
|
|
2620
|
-
"""
|
|
2621
|
-
kwargs['_return_http_data_only'] = True
|
|
2622
|
-
return self.list_shared_workspaces_with_http_info(**kwargs) # noqa: E501
|
|
2623
|
-
|
|
2624
|
-
def list_shared_workspaces_with_http_info(self, **kwargs): # noqa: E501
|
|
2625
|
-
"""[EARLY ACCESS] ListSharedWorkspaces: List shared workspaces. # noqa: E501
|
|
2626
|
-
|
|
2627
|
-
List shared workspaces. # noqa: E501
|
|
2628
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
2629
|
-
asynchronous HTTP request, please pass async_req=True
|
|
2630
|
-
|
|
2631
|
-
>>> thread = api.list_shared_workspaces_with_http_info(async_req=True)
|
|
2632
|
-
>>> result = thread.get()
|
|
2633
|
-
|
|
2634
|
-
:param as_at: The asAt datetime at which to retrieve workspaces. Defaults to 'latest' if not specified.
|
|
2635
|
-
:type as_at: datetime
|
|
2636
|
-
:param page: The pagination token to use to continue listing workspaces from a previous call to list workspaces. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, effectiveAt, and asAt fields must not have changed since the original request.
|
|
2637
|
-
:type page: str
|
|
2638
|
-
:param sort_by: A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".
|
|
2639
|
-
:type sort_by: list[str]
|
|
2640
|
-
:param limit: When paginating, limit the number of returned results to this many.
|
|
2641
|
-
:type limit: int
|
|
2642
|
-
:param filter: Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid.
|
|
2643
|
-
:type filter: str
|
|
2644
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
2645
|
-
:type async_req: bool, optional
|
|
2646
|
-
:param _return_http_data_only: response data without head status code
|
|
2647
|
-
and headers
|
|
2648
|
-
:type _return_http_data_only: bool, optional
|
|
2649
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
2650
|
-
be returned without reading/decoding response
|
|
2651
|
-
data. Default is True.
|
|
2652
|
-
:type _preload_content: bool, optional
|
|
2653
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2654
|
-
number provided, it will be total request
|
|
2655
|
-
timeout. It can also be a pair (tuple) of
|
|
2656
|
-
(connection, read) timeouts.
|
|
2657
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2658
|
-
request; this effectively ignores the authentication
|
|
2659
|
-
in the spec for a single request.
|
|
2660
|
-
:type _request_auth: dict, optional
|
|
2661
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
2662
|
-
If the method is called asynchronously,
|
|
2663
|
-
returns the request thread.
|
|
2664
|
-
:rtype: (PagedResourceListOfWorkspace, int, HTTPHeaderDict)
|
|
2665
|
-
"""
|
|
2666
|
-
|
|
2667
|
-
local_var_params = locals()
|
|
2668
|
-
|
|
2669
|
-
all_params = [
|
|
2670
|
-
'as_at',
|
|
2671
|
-
'page',
|
|
2672
|
-
'sort_by',
|
|
2673
|
-
'limit',
|
|
2674
|
-
'filter'
|
|
2675
|
-
]
|
|
2676
|
-
all_params.extend(
|
|
2677
|
-
[
|
|
2678
|
-
'async_req',
|
|
2679
|
-
'_return_http_data_only',
|
|
2680
|
-
'_preload_content',
|
|
2681
|
-
'_request_timeout',
|
|
2682
|
-
'_request_auth',
|
|
2683
|
-
'_headers'
|
|
2684
|
-
]
|
|
2685
|
-
)
|
|
2686
|
-
|
|
2687
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
2688
|
-
if key not in all_params:
|
|
2689
|
-
raise ApiTypeError(
|
|
2690
|
-
"Got an unexpected keyword argument '%s'"
|
|
2691
|
-
" to method list_shared_workspaces" % key
|
|
2692
|
-
)
|
|
2693
|
-
local_var_params[key] = val
|
|
2694
|
-
del local_var_params['kwargs']
|
|
2695
|
-
|
|
2696
|
-
if self.api_client.client_side_validation and ('page' in local_var_params and # noqa: E501
|
|
2697
|
-
len(local_var_params['page']) > 500): # noqa: E501
|
|
2698
|
-
raise ApiValueError("Invalid value for parameter `page` when calling `list_shared_workspaces`, length must be less than or equal to `500`") # noqa: E501
|
|
2699
|
-
if self.api_client.client_side_validation and ('page' in local_var_params and # noqa: E501
|
|
2700
|
-
len(local_var_params['page']) < 1): # noqa: E501
|
|
2701
|
-
raise ApiValueError("Invalid value for parameter `page` when calling `list_shared_workspaces`, length must be greater than or equal to `1`") # noqa: E501
|
|
2702
|
-
if self.api_client.client_side_validation and 'page' in local_var_params and not re.search(r'^[a-zA-Z0-9\+\/]*={0,3}$', local_var_params['page']): # noqa: E501
|
|
2703
|
-
raise ApiValueError("Invalid value for parameter `page` when calling `list_shared_workspaces`, must conform to the pattern `/^[a-zA-Z0-9\+\/]*={0,3}$/`") # noqa: E501
|
|
2704
|
-
if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 5000: # noqa: E501
|
|
2705
|
-
raise ApiValueError("Invalid value for parameter `limit` when calling `list_shared_workspaces`, must be a value less than or equal to `5000`") # noqa: E501
|
|
2706
|
-
if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1: # noqa: E501
|
|
2707
|
-
raise ApiValueError("Invalid value for parameter `limit` when calling `list_shared_workspaces`, must be a value greater than or equal to `1`") # noqa: E501
|
|
2708
|
-
if self.api_client.client_side_validation and ('filter' in local_var_params and # noqa: E501
|
|
2709
|
-
len(local_var_params['filter']) > 16384): # noqa: E501
|
|
2710
|
-
raise ApiValueError("Invalid value for parameter `filter` when calling `list_shared_workspaces`, length must be less than or equal to `16384`") # noqa: E501
|
|
2711
|
-
if self.api_client.client_side_validation and ('filter' in local_var_params and # noqa: E501
|
|
2712
|
-
len(local_var_params['filter']) < 0): # noqa: E501
|
|
2713
|
-
raise ApiValueError("Invalid value for parameter `filter` when calling `list_shared_workspaces`, length must be greater than or equal to `0`") # noqa: E501
|
|
2714
|
-
if self.api_client.client_side_validation and 'filter' in local_var_params and not re.search(r'^[\s\S]*$', local_var_params['filter']): # noqa: E501
|
|
2715
|
-
raise ApiValueError("Invalid value for parameter `filter` when calling `list_shared_workspaces`, must conform to the pattern `/^[\s\S]*$/`") # noqa: E501
|
|
2716
|
-
collection_formats = {}
|
|
2717
|
-
|
|
2718
|
-
path_params = {}
|
|
2719
|
-
|
|
2720
|
-
query_params = []
|
|
2721
|
-
if 'as_at' in local_var_params and local_var_params['as_at'] is not None: # noqa: E501
|
|
2722
|
-
query_params.append(('asAt', local_var_params['as_at'])) # noqa: E501
|
|
2723
|
-
if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501
|
|
2724
|
-
query_params.append(('page', local_var_params['page'])) # noqa: E501
|
|
2725
|
-
if 'sort_by' in local_var_params and local_var_params['sort_by'] is not None: # noqa: E501
|
|
2726
|
-
query_params.append(('sortBy', local_var_params['sort_by'])) # noqa: E501
|
|
2727
|
-
collection_formats['sortBy'] = 'multi' # noqa: E501
|
|
2728
|
-
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
|
|
2729
|
-
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
|
|
2730
|
-
if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501
|
|
2731
|
-
query_params.append(('filter', local_var_params['filter'])) # noqa: E501
|
|
2732
|
-
|
|
2733
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
2734
|
-
|
|
2735
|
-
form_params = []
|
|
2736
|
-
local_var_files = {}
|
|
2737
|
-
|
|
2738
|
-
body_params = None
|
|
2739
|
-
# HTTP header `Accept`
|
|
2740
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2741
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
2742
|
-
|
|
2743
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
# set the LUSID header
|
|
2747
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
2748
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
2749
|
-
|
|
2750
|
-
# Authentication setting
|
|
2751
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
2752
|
-
|
|
2753
|
-
response_types_map = {
|
|
2754
|
-
200: "PagedResourceListOfWorkspace",
|
|
2755
|
-
400: "LusidValidationProblemDetails",
|
|
2756
|
-
}
|
|
2757
|
-
|
|
2758
|
-
return self.api_client.call_api(
|
|
2759
|
-
'/api/workspaces/shared', 'GET',
|
|
2760
|
-
path_params,
|
|
2761
|
-
query_params,
|
|
2762
|
-
header_params,
|
|
2763
|
-
body=body_params,
|
|
2764
|
-
post_params=form_params,
|
|
2765
|
-
files=local_var_files,
|
|
2766
|
-
response_types_map=response_types_map,
|
|
2767
|
-
auth_settings=auth_settings,
|
|
2768
|
-
async_req=local_var_params.get('async_req'),
|
|
2769
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
2770
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
2771
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
2772
|
-
collection_formats=collection_formats,
|
|
2773
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
2774
|
-
|
|
2775
|
-
def update_personal_item(self, workspace_name, item_name, **kwargs): # noqa: E501
|
|
2776
|
-
"""[EARLY ACCESS] UpdatePersonalItem: Update an item in a personal workspace. # noqa: E501
|
|
2777
|
-
|
|
2778
|
-
Update an item in a personal workspace. # noqa: E501
|
|
2779
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
2780
|
-
asynchronous HTTP request, please pass async_req=True
|
|
2781
|
-
|
|
2782
|
-
>>> thread = api.update_personal_item(workspace_name, item_name, async_req=True)
|
|
2783
|
-
>>> result = thread.get()
|
|
2784
|
-
|
|
2785
|
-
:param workspace_name: The personal workspace name. (required)
|
|
2786
|
-
:type workspace_name: str
|
|
2787
|
-
:param item_name: The item name. (required)
|
|
2788
|
-
:type item_name: str
|
|
2789
|
-
:param workspace_item_update_request: The new item details.
|
|
2790
|
-
:type workspace_item_update_request: WorkspaceItemUpdateRequest
|
|
2791
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
2792
|
-
:type async_req: bool, optional
|
|
2793
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
2794
|
-
be returned without reading/decoding response
|
|
2795
|
-
data. Default is True.
|
|
2796
|
-
:type _preload_content: bool, optional
|
|
2797
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2798
|
-
number provided, it will be total request
|
|
2799
|
-
timeout. It can also be a pair (tuple) of
|
|
2800
|
-
(connection, read) timeouts.
|
|
2801
|
-
:return: Returns the result object.
|
|
2802
|
-
If the method is called asynchronously,
|
|
2803
|
-
returns the request thread.
|
|
2804
|
-
:rtype: WorkspaceItem
|
|
2805
|
-
"""
|
|
2806
|
-
kwargs['_return_http_data_only'] = True
|
|
2807
|
-
return self.update_personal_item_with_http_info(workspace_name, item_name, **kwargs) # noqa: E501
|
|
2808
|
-
|
|
2809
|
-
def update_personal_item_with_http_info(self, workspace_name, item_name, **kwargs): # noqa: E501
|
|
2810
|
-
"""[EARLY ACCESS] UpdatePersonalItem: Update an item in a personal workspace. # noqa: E501
|
|
2811
|
-
|
|
2812
|
-
Update an item in a personal workspace. # noqa: E501
|
|
2813
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
2814
|
-
asynchronous HTTP request, please pass async_req=True
|
|
2815
|
-
|
|
2816
|
-
>>> thread = api.update_personal_item_with_http_info(workspace_name, item_name, async_req=True)
|
|
2817
|
-
>>> result = thread.get()
|
|
2818
|
-
|
|
2819
|
-
:param workspace_name: The personal workspace name. (required)
|
|
2820
|
-
:type workspace_name: str
|
|
2821
|
-
:param item_name: The item name. (required)
|
|
2822
|
-
:type item_name: str
|
|
2823
|
-
:param workspace_item_update_request: The new item details.
|
|
2824
|
-
:type workspace_item_update_request: WorkspaceItemUpdateRequest
|
|
2825
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
2826
|
-
:type async_req: bool, optional
|
|
2827
|
-
:param _return_http_data_only: response data without head status code
|
|
2828
|
-
and headers
|
|
2829
|
-
:type _return_http_data_only: bool, optional
|
|
2830
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
2831
|
-
be returned without reading/decoding response
|
|
2832
|
-
data. Default is True.
|
|
2833
|
-
:type _preload_content: bool, optional
|
|
2834
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2835
|
-
number provided, it will be total request
|
|
2836
|
-
timeout. It can also be a pair (tuple) of
|
|
2837
|
-
(connection, read) timeouts.
|
|
2838
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2839
|
-
request; this effectively ignores the authentication
|
|
2840
|
-
in the spec for a single request.
|
|
2841
|
-
:type _request_auth: dict, optional
|
|
2842
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
2843
|
-
If the method is called asynchronously,
|
|
2844
|
-
returns the request thread.
|
|
2845
|
-
:rtype: (WorkspaceItem, int, HTTPHeaderDict)
|
|
2846
|
-
"""
|
|
2847
|
-
|
|
2848
|
-
local_var_params = locals()
|
|
2849
|
-
|
|
2850
|
-
all_params = [
|
|
2851
|
-
'workspace_name',
|
|
2852
|
-
'item_name',
|
|
2853
|
-
'workspace_item_update_request'
|
|
2854
|
-
]
|
|
2855
|
-
all_params.extend(
|
|
2856
|
-
[
|
|
2857
|
-
'async_req',
|
|
2858
|
-
'_return_http_data_only',
|
|
2859
|
-
'_preload_content',
|
|
2860
|
-
'_request_timeout',
|
|
2861
|
-
'_request_auth',
|
|
2862
|
-
'_headers'
|
|
2863
|
-
]
|
|
2864
|
-
)
|
|
2865
|
-
|
|
2866
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
2867
|
-
if key not in all_params:
|
|
2868
|
-
raise ApiTypeError(
|
|
2869
|
-
"Got an unexpected keyword argument '%s'"
|
|
2870
|
-
" to method update_personal_item" % key
|
|
2871
|
-
)
|
|
2872
|
-
local_var_params[key] = val
|
|
2873
|
-
del local_var_params['kwargs']
|
|
2874
|
-
# verify the required parameter 'workspace_name' is set
|
|
2875
|
-
if self.api_client.client_side_validation and ('workspace_name' not in local_var_params or # noqa: E501
|
|
2876
|
-
local_var_params['workspace_name'] is None): # noqa: E501
|
|
2877
|
-
raise ApiValueError("Missing the required parameter `workspace_name` when calling `update_personal_item`") # noqa: E501
|
|
2878
|
-
# verify the required parameter 'item_name' is set
|
|
2879
|
-
if self.api_client.client_side_validation and ('item_name' not in local_var_params or # noqa: E501
|
|
2880
|
-
local_var_params['item_name'] is None): # noqa: E501
|
|
2881
|
-
raise ApiValueError("Missing the required parameter `item_name` when calling `update_personal_item`") # noqa: E501
|
|
2882
|
-
|
|
2883
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
2884
|
-
len(local_var_params['workspace_name']) > 64): # noqa: E501
|
|
2885
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `update_personal_item`, length must be less than or equal to `64`") # noqa: E501
|
|
2886
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
2887
|
-
len(local_var_params['workspace_name']) < 1): # noqa: E501
|
|
2888
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `update_personal_item`, length must be greater than or equal to `1`") # noqa: E501
|
|
2889
|
-
if self.api_client.client_side_validation and 'workspace_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['workspace_name']): # noqa: E501
|
|
2890
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `update_personal_item`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
2891
|
-
if self.api_client.client_side_validation and ('item_name' in local_var_params and # noqa: E501
|
|
2892
|
-
len(local_var_params['item_name']) > 64): # noqa: E501
|
|
2893
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `update_personal_item`, length must be less than or equal to `64`") # noqa: E501
|
|
2894
|
-
if self.api_client.client_side_validation and ('item_name' in local_var_params and # noqa: E501
|
|
2895
|
-
len(local_var_params['item_name']) < 1): # noqa: E501
|
|
2896
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `update_personal_item`, length must be greater than or equal to `1`") # noqa: E501
|
|
2897
|
-
if self.api_client.client_side_validation and 'item_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['item_name']): # noqa: E501
|
|
2898
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `update_personal_item`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
2899
|
-
collection_formats = {}
|
|
2900
|
-
|
|
2901
|
-
path_params = {}
|
|
2902
|
-
if 'workspace_name' in local_var_params:
|
|
2903
|
-
path_params['workspaceName'] = local_var_params['workspace_name'] # noqa: E501
|
|
2904
|
-
if 'item_name' in local_var_params:
|
|
2905
|
-
path_params['itemName'] = local_var_params['item_name'] # noqa: E501
|
|
2906
|
-
|
|
2907
|
-
query_params = []
|
|
2908
|
-
|
|
2909
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
2910
|
-
|
|
2911
|
-
form_params = []
|
|
2912
|
-
local_var_files = {}
|
|
2913
|
-
|
|
2914
|
-
body_params = None
|
|
2915
|
-
if 'workspace_item_update_request' in local_var_params:
|
|
2916
|
-
body_params = local_var_params['workspace_item_update_request']
|
|
2917
|
-
# HTTP header `Accept`
|
|
2918
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2919
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
2920
|
-
|
|
2921
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
2922
|
-
|
|
2923
|
-
# HTTP header `Content-Type`
|
|
2924
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2925
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
2926
|
-
|
|
2927
|
-
# set the LUSID header
|
|
2928
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
2929
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
2930
|
-
|
|
2931
|
-
# Authentication setting
|
|
2932
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
2933
|
-
|
|
2934
|
-
response_types_map = {
|
|
2935
|
-
200: "WorkspaceItem",
|
|
2936
|
-
400: "LusidValidationProblemDetails",
|
|
2937
|
-
}
|
|
2938
|
-
|
|
2939
|
-
return self.api_client.call_api(
|
|
2940
|
-
'/api/workspaces/personal/{workspaceName}/items/{itemName}', 'PUT',
|
|
2941
|
-
path_params,
|
|
2942
|
-
query_params,
|
|
2943
|
-
header_params,
|
|
2944
|
-
body=body_params,
|
|
2945
|
-
post_params=form_params,
|
|
2946
|
-
files=local_var_files,
|
|
2947
|
-
response_types_map=response_types_map,
|
|
2948
|
-
auth_settings=auth_settings,
|
|
2949
|
-
async_req=local_var_params.get('async_req'),
|
|
2950
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
2951
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
2952
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
2953
|
-
collection_formats=collection_formats,
|
|
2954
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
2955
|
-
|
|
2956
|
-
def update_personal_workspace(self, workspace_name, **kwargs): # noqa: E501
|
|
2957
|
-
"""[EARLY ACCESS] UpdatePersonalWorkspace: Update a personal workspace. # noqa: E501
|
|
2958
|
-
|
|
2959
|
-
Update a personal workspace. # noqa: E501
|
|
2960
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
2961
|
-
asynchronous HTTP request, please pass async_req=True
|
|
2962
|
-
|
|
2963
|
-
>>> thread = api.update_personal_workspace(workspace_name, async_req=True)
|
|
2964
|
-
>>> result = thread.get()
|
|
2965
|
-
|
|
2966
|
-
:param workspace_name: The personal workspace name. (required)
|
|
2967
|
-
:type workspace_name: str
|
|
2968
|
-
:param workspace_update_request: The new workspace details.
|
|
2969
|
-
:type workspace_update_request: WorkspaceUpdateRequest
|
|
2970
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
2971
|
-
:type async_req: bool, optional
|
|
2972
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
2973
|
-
be returned without reading/decoding response
|
|
2974
|
-
data. Default is True.
|
|
2975
|
-
:type _preload_content: bool, optional
|
|
2976
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2977
|
-
number provided, it will be total request
|
|
2978
|
-
timeout. It can also be a pair (tuple) of
|
|
2979
|
-
(connection, read) timeouts.
|
|
2980
|
-
:return: Returns the result object.
|
|
2981
|
-
If the method is called asynchronously,
|
|
2982
|
-
returns the request thread.
|
|
2983
|
-
:rtype: Workspace
|
|
2984
|
-
"""
|
|
2985
|
-
kwargs['_return_http_data_only'] = True
|
|
2986
|
-
return self.update_personal_workspace_with_http_info(workspace_name, **kwargs) # noqa: E501
|
|
2987
|
-
|
|
2988
|
-
def update_personal_workspace_with_http_info(self, workspace_name, **kwargs): # noqa: E501
|
|
2989
|
-
"""[EARLY ACCESS] UpdatePersonalWorkspace: Update a personal workspace. # noqa: E501
|
|
2990
|
-
|
|
2991
|
-
Update a personal workspace. # noqa: E501
|
|
2992
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
2993
|
-
asynchronous HTTP request, please pass async_req=True
|
|
2994
|
-
|
|
2995
|
-
>>> thread = api.update_personal_workspace_with_http_info(workspace_name, async_req=True)
|
|
2996
|
-
>>> result = thread.get()
|
|
2997
|
-
|
|
2998
|
-
:param workspace_name: The personal workspace name. (required)
|
|
2999
|
-
:type workspace_name: str
|
|
3000
|
-
:param workspace_update_request: The new workspace details.
|
|
3001
|
-
:type workspace_update_request: WorkspaceUpdateRequest
|
|
3002
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
3003
|
-
:type async_req: bool, optional
|
|
3004
|
-
:param _return_http_data_only: response data without head status code
|
|
3005
|
-
and headers
|
|
3006
|
-
:type _return_http_data_only: bool, optional
|
|
3007
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
3008
|
-
be returned without reading/decoding response
|
|
3009
|
-
data. Default is True.
|
|
3010
|
-
:type _preload_content: bool, optional
|
|
3011
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3012
|
-
number provided, it will be total request
|
|
3013
|
-
timeout. It can also be a pair (tuple) of
|
|
3014
|
-
(connection, read) timeouts.
|
|
3015
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3016
|
-
request; this effectively ignores the authentication
|
|
3017
|
-
in the spec for a single request.
|
|
3018
|
-
:type _request_auth: dict, optional
|
|
3019
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
3020
|
-
If the method is called asynchronously,
|
|
3021
|
-
returns the request thread.
|
|
3022
|
-
:rtype: (Workspace, int, HTTPHeaderDict)
|
|
3023
|
-
"""
|
|
3024
|
-
|
|
3025
|
-
local_var_params = locals()
|
|
3026
|
-
|
|
3027
|
-
all_params = [
|
|
3028
|
-
'workspace_name',
|
|
3029
|
-
'workspace_update_request'
|
|
3030
|
-
]
|
|
3031
|
-
all_params.extend(
|
|
3032
|
-
[
|
|
3033
|
-
'async_req',
|
|
3034
|
-
'_return_http_data_only',
|
|
3035
|
-
'_preload_content',
|
|
3036
|
-
'_request_timeout',
|
|
3037
|
-
'_request_auth',
|
|
3038
|
-
'_headers'
|
|
3039
|
-
]
|
|
3040
|
-
)
|
|
3041
|
-
|
|
3042
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
3043
|
-
if key not in all_params:
|
|
3044
|
-
raise ApiTypeError(
|
|
3045
|
-
"Got an unexpected keyword argument '%s'"
|
|
3046
|
-
" to method update_personal_workspace" % key
|
|
3047
|
-
)
|
|
3048
|
-
local_var_params[key] = val
|
|
3049
|
-
del local_var_params['kwargs']
|
|
3050
|
-
# verify the required parameter 'workspace_name' is set
|
|
3051
|
-
if self.api_client.client_side_validation and ('workspace_name' not in local_var_params or # noqa: E501
|
|
3052
|
-
local_var_params['workspace_name'] is None): # noqa: E501
|
|
3053
|
-
raise ApiValueError("Missing the required parameter `workspace_name` when calling `update_personal_workspace`") # noqa: E501
|
|
3054
|
-
|
|
3055
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
3056
|
-
len(local_var_params['workspace_name']) > 64): # noqa: E501
|
|
3057
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `update_personal_workspace`, length must be less than or equal to `64`") # noqa: E501
|
|
3058
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
3059
|
-
len(local_var_params['workspace_name']) < 1): # noqa: E501
|
|
3060
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `update_personal_workspace`, length must be greater than or equal to `1`") # noqa: E501
|
|
3061
|
-
if self.api_client.client_side_validation and 'workspace_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['workspace_name']): # noqa: E501
|
|
3062
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `update_personal_workspace`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
3063
|
-
collection_formats = {}
|
|
3064
|
-
|
|
3065
|
-
path_params = {}
|
|
3066
|
-
if 'workspace_name' in local_var_params:
|
|
3067
|
-
path_params['workspaceName'] = local_var_params['workspace_name'] # noqa: E501
|
|
3068
|
-
|
|
3069
|
-
query_params = []
|
|
3070
|
-
|
|
3071
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
3072
|
-
|
|
3073
|
-
form_params = []
|
|
3074
|
-
local_var_files = {}
|
|
3075
|
-
|
|
3076
|
-
body_params = None
|
|
3077
|
-
if 'workspace_update_request' in local_var_params:
|
|
3078
|
-
body_params = local_var_params['workspace_update_request']
|
|
3079
|
-
# HTTP header `Accept`
|
|
3080
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3081
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
3082
|
-
|
|
3083
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
3084
|
-
|
|
3085
|
-
# HTTP header `Content-Type`
|
|
3086
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
3087
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
3088
|
-
|
|
3089
|
-
# set the LUSID header
|
|
3090
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
3091
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
3092
|
-
|
|
3093
|
-
# Authentication setting
|
|
3094
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
3095
|
-
|
|
3096
|
-
response_types_map = {
|
|
3097
|
-
200: "Workspace",
|
|
3098
|
-
400: "LusidValidationProblemDetails",
|
|
3099
|
-
}
|
|
3100
|
-
|
|
3101
|
-
return self.api_client.call_api(
|
|
3102
|
-
'/api/workspaces/personal/{workspaceName}', 'PUT',
|
|
3103
|
-
path_params,
|
|
3104
|
-
query_params,
|
|
3105
|
-
header_params,
|
|
3106
|
-
body=body_params,
|
|
3107
|
-
post_params=form_params,
|
|
3108
|
-
files=local_var_files,
|
|
3109
|
-
response_types_map=response_types_map,
|
|
3110
|
-
auth_settings=auth_settings,
|
|
3111
|
-
async_req=local_var_params.get('async_req'),
|
|
3112
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
3113
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
3114
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
3115
|
-
collection_formats=collection_formats,
|
|
3116
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
3117
|
-
|
|
3118
|
-
def update_shared_item(self, workspace_name, item_name, **kwargs): # noqa: E501
|
|
3119
|
-
"""[EARLY ACCESS] UpdateSharedItem: Update an item in a shared workspace. # noqa: E501
|
|
3120
|
-
|
|
3121
|
-
Update an item in a shared workspace. # noqa: E501
|
|
3122
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
3123
|
-
asynchronous HTTP request, please pass async_req=True
|
|
3124
|
-
|
|
3125
|
-
>>> thread = api.update_shared_item(workspace_name, item_name, async_req=True)
|
|
3126
|
-
>>> result = thread.get()
|
|
3127
|
-
|
|
3128
|
-
:param workspace_name: The shared workspace name. (required)
|
|
3129
|
-
:type workspace_name: str
|
|
3130
|
-
:param item_name: The item name. (required)
|
|
3131
|
-
:type item_name: str
|
|
3132
|
-
:param workspace_item_update_request: The new item details.
|
|
3133
|
-
:type workspace_item_update_request: WorkspaceItemUpdateRequest
|
|
3134
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
3135
|
-
:type async_req: bool, optional
|
|
3136
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
3137
|
-
be returned without reading/decoding response
|
|
3138
|
-
data. Default is True.
|
|
3139
|
-
:type _preload_content: bool, optional
|
|
3140
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3141
|
-
number provided, it will be total request
|
|
3142
|
-
timeout. It can also be a pair (tuple) of
|
|
3143
|
-
(connection, read) timeouts.
|
|
3144
|
-
:return: Returns the result object.
|
|
3145
|
-
If the method is called asynchronously,
|
|
3146
|
-
returns the request thread.
|
|
3147
|
-
:rtype: WorkspaceItem
|
|
3148
|
-
"""
|
|
3149
|
-
kwargs['_return_http_data_only'] = True
|
|
3150
|
-
return self.update_shared_item_with_http_info(workspace_name, item_name, **kwargs) # noqa: E501
|
|
3151
|
-
|
|
3152
|
-
def update_shared_item_with_http_info(self, workspace_name, item_name, **kwargs): # noqa: E501
|
|
3153
|
-
"""[EARLY ACCESS] UpdateSharedItem: Update an item in a shared workspace. # noqa: E501
|
|
3154
|
-
|
|
3155
|
-
Update an item in a shared workspace. # noqa: E501
|
|
3156
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
3157
|
-
asynchronous HTTP request, please pass async_req=True
|
|
3158
|
-
|
|
3159
|
-
>>> thread = api.update_shared_item_with_http_info(workspace_name, item_name, async_req=True)
|
|
3160
|
-
>>> result = thread.get()
|
|
3161
|
-
|
|
3162
|
-
:param workspace_name: The shared workspace name. (required)
|
|
3163
|
-
:type workspace_name: str
|
|
3164
|
-
:param item_name: The item name. (required)
|
|
3165
|
-
:type item_name: str
|
|
3166
|
-
:param workspace_item_update_request: The new item details.
|
|
3167
|
-
:type workspace_item_update_request: WorkspaceItemUpdateRequest
|
|
3168
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
3169
|
-
:type async_req: bool, optional
|
|
3170
|
-
:param _return_http_data_only: response data without head status code
|
|
3171
|
-
and headers
|
|
3172
|
-
:type _return_http_data_only: bool, optional
|
|
3173
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
3174
|
-
be returned without reading/decoding response
|
|
3175
|
-
data. Default is True.
|
|
3176
|
-
:type _preload_content: bool, optional
|
|
3177
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3178
|
-
number provided, it will be total request
|
|
3179
|
-
timeout. It can also be a pair (tuple) of
|
|
3180
|
-
(connection, read) timeouts.
|
|
3181
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3182
|
-
request; this effectively ignores the authentication
|
|
3183
|
-
in the spec for a single request.
|
|
3184
|
-
:type _request_auth: dict, optional
|
|
3185
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
3186
|
-
If the method is called asynchronously,
|
|
3187
|
-
returns the request thread.
|
|
3188
|
-
:rtype: (WorkspaceItem, int, HTTPHeaderDict)
|
|
3189
|
-
"""
|
|
3190
|
-
|
|
3191
|
-
local_var_params = locals()
|
|
3192
|
-
|
|
3193
|
-
all_params = [
|
|
3194
|
-
'workspace_name',
|
|
3195
|
-
'item_name',
|
|
3196
|
-
'workspace_item_update_request'
|
|
3197
|
-
]
|
|
3198
|
-
all_params.extend(
|
|
3199
|
-
[
|
|
3200
|
-
'async_req',
|
|
3201
|
-
'_return_http_data_only',
|
|
3202
|
-
'_preload_content',
|
|
3203
|
-
'_request_timeout',
|
|
3204
|
-
'_request_auth',
|
|
3205
|
-
'_headers'
|
|
3206
|
-
]
|
|
3207
|
-
)
|
|
3208
|
-
|
|
3209
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
3210
|
-
if key not in all_params:
|
|
3211
|
-
raise ApiTypeError(
|
|
3212
|
-
"Got an unexpected keyword argument '%s'"
|
|
3213
|
-
" to method update_shared_item" % key
|
|
3214
|
-
)
|
|
3215
|
-
local_var_params[key] = val
|
|
3216
|
-
del local_var_params['kwargs']
|
|
3217
|
-
# verify the required parameter 'workspace_name' is set
|
|
3218
|
-
if self.api_client.client_side_validation and ('workspace_name' not in local_var_params or # noqa: E501
|
|
3219
|
-
local_var_params['workspace_name'] is None): # noqa: E501
|
|
3220
|
-
raise ApiValueError("Missing the required parameter `workspace_name` when calling `update_shared_item`") # noqa: E501
|
|
3221
|
-
# verify the required parameter 'item_name' is set
|
|
3222
|
-
if self.api_client.client_side_validation and ('item_name' not in local_var_params or # noqa: E501
|
|
3223
|
-
local_var_params['item_name'] is None): # noqa: E501
|
|
3224
|
-
raise ApiValueError("Missing the required parameter `item_name` when calling `update_shared_item`") # noqa: E501
|
|
3225
|
-
|
|
3226
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
3227
|
-
len(local_var_params['workspace_name']) > 64): # noqa: E501
|
|
3228
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `update_shared_item`, length must be less than or equal to `64`") # noqa: E501
|
|
3229
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
3230
|
-
len(local_var_params['workspace_name']) < 1): # noqa: E501
|
|
3231
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `update_shared_item`, length must be greater than or equal to `1`") # noqa: E501
|
|
3232
|
-
if self.api_client.client_side_validation and 'workspace_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['workspace_name']): # noqa: E501
|
|
3233
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `update_shared_item`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
3234
|
-
if self.api_client.client_side_validation and ('item_name' in local_var_params and # noqa: E501
|
|
3235
|
-
len(local_var_params['item_name']) > 64): # noqa: E501
|
|
3236
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `update_shared_item`, length must be less than or equal to `64`") # noqa: E501
|
|
3237
|
-
if self.api_client.client_side_validation and ('item_name' in local_var_params and # noqa: E501
|
|
3238
|
-
len(local_var_params['item_name']) < 1): # noqa: E501
|
|
3239
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `update_shared_item`, length must be greater than or equal to `1`") # noqa: E501
|
|
3240
|
-
if self.api_client.client_side_validation and 'item_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['item_name']): # noqa: E501
|
|
3241
|
-
raise ApiValueError("Invalid value for parameter `item_name` when calling `update_shared_item`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
3242
|
-
collection_formats = {}
|
|
3243
|
-
|
|
3244
|
-
path_params = {}
|
|
3245
|
-
if 'workspace_name' in local_var_params:
|
|
3246
|
-
path_params['workspaceName'] = local_var_params['workspace_name'] # noqa: E501
|
|
3247
|
-
if 'item_name' in local_var_params:
|
|
3248
|
-
path_params['itemName'] = local_var_params['item_name'] # noqa: E501
|
|
3249
|
-
|
|
3250
|
-
query_params = []
|
|
3251
|
-
|
|
3252
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
3253
|
-
|
|
3254
|
-
form_params = []
|
|
3255
|
-
local_var_files = {}
|
|
3256
|
-
|
|
3257
|
-
body_params = None
|
|
3258
|
-
if 'workspace_item_update_request' in local_var_params:
|
|
3259
|
-
body_params = local_var_params['workspace_item_update_request']
|
|
3260
|
-
# HTTP header `Accept`
|
|
3261
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3262
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
3263
|
-
|
|
3264
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
3265
|
-
|
|
3266
|
-
# HTTP header `Content-Type`
|
|
3267
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
3268
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
3269
|
-
|
|
3270
|
-
# set the LUSID header
|
|
3271
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
3272
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
3273
|
-
|
|
3274
|
-
# Authentication setting
|
|
3275
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
3276
|
-
|
|
3277
|
-
response_types_map = {
|
|
3278
|
-
200: "WorkspaceItem",
|
|
3279
|
-
400: "LusidValidationProblemDetails",
|
|
3280
|
-
}
|
|
3281
|
-
|
|
3282
|
-
return self.api_client.call_api(
|
|
3283
|
-
'/api/workspaces/shared/{workspaceName}/items/{itemName}', 'PUT',
|
|
3284
|
-
path_params,
|
|
3285
|
-
query_params,
|
|
3286
|
-
header_params,
|
|
3287
|
-
body=body_params,
|
|
3288
|
-
post_params=form_params,
|
|
3289
|
-
files=local_var_files,
|
|
3290
|
-
response_types_map=response_types_map,
|
|
3291
|
-
auth_settings=auth_settings,
|
|
3292
|
-
async_req=local_var_params.get('async_req'),
|
|
3293
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
3294
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
3295
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
3296
|
-
collection_formats=collection_formats,
|
|
3297
|
-
_request_auth=local_var_params.get('_request_auth'))
|
|
3298
|
-
|
|
3299
|
-
def update_shared_workspace(self, workspace_name, **kwargs): # noqa: E501
|
|
3300
|
-
"""[EARLY ACCESS] UpdateSharedWorkspace: Update a shared workspace. # noqa: E501
|
|
3301
|
-
|
|
3302
|
-
Update a shared workspace. # noqa: E501
|
|
3303
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
3304
|
-
asynchronous HTTP request, please pass async_req=True
|
|
3305
|
-
|
|
3306
|
-
>>> thread = api.update_shared_workspace(workspace_name, async_req=True)
|
|
3307
|
-
>>> result = thread.get()
|
|
3308
|
-
|
|
3309
|
-
:param workspace_name: The shared workspace name. (required)
|
|
3310
|
-
:type workspace_name: str
|
|
3311
|
-
:param workspace_update_request: The new workspace details.
|
|
3312
|
-
:type workspace_update_request: WorkspaceUpdateRequest
|
|
3313
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
3314
|
-
:type async_req: bool, optional
|
|
3315
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
3316
|
-
be returned without reading/decoding response
|
|
3317
|
-
data. Default is True.
|
|
3318
|
-
:type _preload_content: bool, optional
|
|
3319
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3320
|
-
number provided, it will be total request
|
|
3321
|
-
timeout. It can also be a pair (tuple) of
|
|
3322
|
-
(connection, read) timeouts.
|
|
3323
|
-
:return: Returns the result object.
|
|
3324
|
-
If the method is called asynchronously,
|
|
3325
|
-
returns the request thread.
|
|
3326
|
-
:rtype: Workspace
|
|
3327
|
-
"""
|
|
3328
|
-
kwargs['_return_http_data_only'] = True
|
|
3329
|
-
return self.update_shared_workspace_with_http_info(workspace_name, **kwargs) # noqa: E501
|
|
3330
|
-
|
|
3331
|
-
def update_shared_workspace_with_http_info(self, workspace_name, **kwargs): # noqa: E501
|
|
3332
|
-
"""[EARLY ACCESS] UpdateSharedWorkspace: Update a shared workspace. # noqa: E501
|
|
3333
|
-
|
|
3334
|
-
Update a shared workspace. # noqa: E501
|
|
3335
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
3336
|
-
asynchronous HTTP request, please pass async_req=True
|
|
3337
|
-
|
|
3338
|
-
>>> thread = api.update_shared_workspace_with_http_info(workspace_name, async_req=True)
|
|
3339
|
-
>>> result = thread.get()
|
|
3340
|
-
|
|
3341
|
-
:param workspace_name: The shared workspace name. (required)
|
|
3342
|
-
:type workspace_name: str
|
|
3343
|
-
:param workspace_update_request: The new workspace details.
|
|
3344
|
-
:type workspace_update_request: WorkspaceUpdateRequest
|
|
3345
|
-
:param async_req: Whether to execute the request asynchronously.
|
|
3346
|
-
:type async_req: bool, optional
|
|
3347
|
-
:param _return_http_data_only: response data without head status code
|
|
3348
|
-
and headers
|
|
3349
|
-
:type _return_http_data_only: bool, optional
|
|
3350
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
3351
|
-
be returned without reading/decoding response
|
|
3352
|
-
data. Default is True.
|
|
3353
|
-
:type _preload_content: bool, optional
|
|
3354
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3355
|
-
number provided, it will be total request
|
|
3356
|
-
timeout. It can also be a pair (tuple) of
|
|
3357
|
-
(connection, read) timeouts.
|
|
3358
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3359
|
-
request; this effectively ignores the authentication
|
|
3360
|
-
in the spec for a single request.
|
|
3361
|
-
:type _request_auth: dict, optional
|
|
3362
|
-
:return: Returns the result object, the HTTP status code, and the headers.
|
|
3363
|
-
If the method is called asynchronously,
|
|
3364
|
-
returns the request thread.
|
|
3365
|
-
:rtype: (Workspace, int, HTTPHeaderDict)
|
|
3366
|
-
"""
|
|
3367
|
-
|
|
3368
|
-
local_var_params = locals()
|
|
3369
|
-
|
|
3370
|
-
all_params = [
|
|
3371
|
-
'workspace_name',
|
|
3372
|
-
'workspace_update_request'
|
|
3373
|
-
]
|
|
3374
|
-
all_params.extend(
|
|
3375
|
-
[
|
|
3376
|
-
'async_req',
|
|
3377
|
-
'_return_http_data_only',
|
|
3378
|
-
'_preload_content',
|
|
3379
|
-
'_request_timeout',
|
|
3380
|
-
'_request_auth',
|
|
3381
|
-
'_headers'
|
|
3382
|
-
]
|
|
3383
|
-
)
|
|
3384
|
-
|
|
3385
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
3386
|
-
if key not in all_params:
|
|
3387
|
-
raise ApiTypeError(
|
|
3388
|
-
"Got an unexpected keyword argument '%s'"
|
|
3389
|
-
" to method update_shared_workspace" % key
|
|
3390
|
-
)
|
|
3391
|
-
local_var_params[key] = val
|
|
3392
|
-
del local_var_params['kwargs']
|
|
3393
|
-
# verify the required parameter 'workspace_name' is set
|
|
3394
|
-
if self.api_client.client_side_validation and ('workspace_name' not in local_var_params or # noqa: E501
|
|
3395
|
-
local_var_params['workspace_name'] is None): # noqa: E501
|
|
3396
|
-
raise ApiValueError("Missing the required parameter `workspace_name` when calling `update_shared_workspace`") # noqa: E501
|
|
3397
|
-
|
|
3398
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
3399
|
-
len(local_var_params['workspace_name']) > 64): # noqa: E501
|
|
3400
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `update_shared_workspace`, length must be less than or equal to `64`") # noqa: E501
|
|
3401
|
-
if self.api_client.client_side_validation and ('workspace_name' in local_var_params and # noqa: E501
|
|
3402
|
-
len(local_var_params['workspace_name']) < 1): # noqa: E501
|
|
3403
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `update_shared_workspace`, length must be greater than or equal to `1`") # noqa: E501
|
|
3404
|
-
if self.api_client.client_side_validation and 'workspace_name' in local_var_params and not re.search(r'^[a-zA-Z0-9\-_]+$', local_var_params['workspace_name']): # noqa: E501
|
|
3405
|
-
raise ApiValueError("Invalid value for parameter `workspace_name` when calling `update_shared_workspace`, must conform to the pattern `/^[a-zA-Z0-9\-_]+$/`") # noqa: E501
|
|
3406
|
-
collection_formats = {}
|
|
3407
|
-
|
|
3408
|
-
path_params = {}
|
|
3409
|
-
if 'workspace_name' in local_var_params:
|
|
3410
|
-
path_params['workspaceName'] = local_var_params['workspace_name'] # noqa: E501
|
|
3411
|
-
|
|
3412
|
-
query_params = []
|
|
3413
|
-
|
|
3414
|
-
header_params = dict(local_var_params.get('_headers', {}))
|
|
3415
|
-
|
|
3416
|
-
form_params = []
|
|
3417
|
-
local_var_files = {}
|
|
3418
|
-
|
|
3419
|
-
body_params = None
|
|
3420
|
-
if 'workspace_update_request' in local_var_params:
|
|
3421
|
-
body_params = local_var_params['workspace_update_request']
|
|
3422
|
-
# HTTP header `Accept`
|
|
3423
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3424
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
3425
|
-
|
|
3426
|
-
header_params['Accept-Encoding'] = "gzip, deflate, br"
|
|
3427
|
-
|
|
3428
|
-
# HTTP header `Content-Type`
|
|
3429
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
3430
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
3431
|
-
|
|
3432
|
-
# set the LUSID header
|
|
3433
|
-
header_params['X-LUSID-SDK-Language'] = 'Python'
|
|
3434
|
-
header_params['X-LUSID-SDK-Version'] = '1.1.215'
|
|
3435
|
-
|
|
3436
|
-
# Authentication setting
|
|
3437
|
-
auth_settings = ['oauth2'] # noqa: E501
|
|
3438
|
-
|
|
3439
|
-
response_types_map = {
|
|
3440
|
-
200: "Workspace",
|
|
3441
|
-
400: "LusidValidationProblemDetails",
|
|
3442
|
-
}
|
|
3443
|
-
|
|
3444
|
-
return self.api_client.call_api(
|
|
3445
|
-
'/api/workspaces/shared/{workspaceName}', 'PUT',
|
|
3446
|
-
path_params,
|
|
3447
|
-
query_params,
|
|
3448
|
-
header_params,
|
|
3449
|
-
body=body_params,
|
|
3450
|
-
post_params=form_params,
|
|
3451
|
-
files=local_var_files,
|
|
3452
|
-
response_types_map=response_types_map,
|
|
3453
|
-
auth_settings=auth_settings,
|
|
3454
|
-
async_req=local_var_params.get('async_req'),
|
|
3455
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
3456
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
3457
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
3458
|
-
collection_formats=collection_formats,
|
|
3459
|
-
_request_auth=local_var_params.get('_request_auth'))
|