From bad32b4a8e0b43db81f6d5662ca5109db4064edd Mon Sep 17 00:00:00 2001 From: Michael McGarry Date: Mon, 16 Dec 2019 16:34:17 +0000 Subject: [PATCH] DEV-6167 Added type annotations in the __init__ method of all the models --- sdk/lusid/models/access_controlled_action.py | 24 +++++- .../models/access_controlled_resource.py | 30 +++++++- sdk/lusid/models/action_id.py | 21 +++++- sdk/lusid/models/adjust_holding.py | 21 +++++- sdk/lusid/models/adjust_holding_request.py | 24 +++++- sdk/lusid/models/complete_portfolio.py | 48 +++++++++++- .../models/constituents_adjustment_header.py | 21 +++++- .../create_cut_label_definition_request.py | 27 ++++++- ...e_derived_transaction_portfolio_request.py | 36 ++++++++- sdk/lusid/models/create_portfolio_details.py | 15 +++- .../models/create_portfolio_group_request.py | 33 +++++++- .../create_property_definition_request.py | 33 +++++++- .../create_reference_portfolio_request.py | 27 ++++++- .../create_transaction_portfolio_request.py | 39 +++++++++- sdk/lusid/models/currency_and_amount.py | 18 ++++- sdk/lusid/models/cut_label_definition.py | 33 +++++++- sdk/lusid/models/cut_local_time.py | 18 ++++- sdk/lusid/models/data_type.py | 42 ++++++++++- .../models/delete_instrument_response.py | 21 +++++- sdk/lusid/models/deleted_entity_response.py | 24 +++++- sdk/lusid/models/error_detail.py | 21 +++++- sdk/lusid/models/execution_request.py | 33 +++++++- sdk/lusid/models/expanded_group.py | 36 ++++++++- sdk/lusid/models/file_response.py | 21 +++++- sdk/lusid/models/get_instruments_response.py | 24 +++++- ...ference_portfolio_constituents_response.py | 33 +++++++- sdk/lusid/models/holding_adjustment.py | 27 ++++++- sdk/lusid/models/holdings_adjustment.py | 27 ++++++- .../models/holdings_adjustment_header.py | 24 +++++- sdk/lusid/models/i_unit_definition_dto.py | 24 +++++- sdk/lusid/models/id_selector_definition.py | 24 +++++- sdk/lusid/models/identifier_part_schema.py | 30 +++++++- sdk/lusid/models/instrument.py | 42 ++++++++++- sdk/lusid/models/instrument_definition.py | 27 ++++++- .../models/instrument_economic_definition.py | 18 ++++- .../models/instrument_id_type_descriptor.py | 21 +++++- sdk/lusid/models/instrument_id_value.py | 18 ++++- sdk/lusid/models/link.py | 24 +++++- sdk/lusid/models/lusid_problem_details.py | 36 ++++++++- .../lusid_validation_problem_details.py | 39 +++++++++- sdk/lusid/models/metric_value.py | 18 ++++- sdk/lusid/models/model_property.py | 21 +++++- sdk/lusid/models/output_transaction.py | 75 ++++++++++++++++++- sdk/lusid/models/perpetual_property.py | 18 ++++- sdk/lusid/models/portfolio.py | 45 ++++++++++- sdk/lusid/models/portfolio_details.py | 33 +++++++- sdk/lusid/models/portfolio_group.py | 39 +++++++++- .../models/portfolio_group_properties.py | 24 +++++- sdk/lusid/models/portfolio_holding.py | 39 +++++++++- sdk/lusid/models/portfolio_properties.py | 24 +++++- .../portfolio_reconciliation_request.py | 21 +++++- sdk/lusid/models/portfolio_search_result.py | 42 ++++++++++- .../portfolios_reconciliation_request.py | 21 +++++- sdk/lusid/models/processed_command.py | 24 +++++- sdk/lusid/models/property_definition.py | 51 ++++++++++++- sdk/lusid/models/property_value.py | 18 ++++- sdk/lusid/models/realised_gain_loss.py | 45 ++++++++++- sdk/lusid/models/reconciliation_break.py | 39 +++++++++- .../models/reference_portfolio_constituent.py | 30 +++++++- ...reference_portfolio_constituent_request.py | 24 +++++- sdk/lusid/models/resource_id.py | 18 ++++- ...urce_list_of_access_controlled_resource.py | 21 +++++- ..._list_of_constituents_adjustment_header.py | 21 +++++- .../resource_list_of_cut_label_definition.py | 21 +++++- .../models/resource_list_of_data_type.py | 21 +++++- ...urce_list_of_holdings_adjustment_header.py | 21 +++++- .../resource_list_of_i_unit_definition_dto.py | 21 +++++- .../models/resource_list_of_instrument.py | 21 +++++- ...e_list_of_instrument_id_type_descriptor.py | 21 +++++- .../models/resource_list_of_portfolio.py | 21 +++++- .../resource_list_of_portfolio_group.py | 21 +++++- ...esource_list_of_portfolio_search_result.py | 21 +++++- .../resource_list_of_processed_command.py | 21 +++++- .../resource_list_of_property_definition.py | 21 +++++- .../resource_list_of_reconciliation_break.py | 21 +++++- .../resource_list_of_scope_definition.py | 21 +++++- sdk/lusid/models/scope_definition.py | 15 +++- sdk/lusid/models/side_configuration_data.py | 33 +++++++- sdk/lusid/models/stream.py | 36 ++++++++- sdk/lusid/models/target_tax_lot.py | 30 +++++++- sdk/lusid/models/target_tax_lot_request.py | 30 +++++++- sdk/lusid/models/transaction.py | 54 ++++++++++++- .../models/transaction_configuration_data.py | 21 +++++- .../transaction_configuration_data_request.py | 21 +++++- ...transaction_configuration_movement_data.py | 27 ++++++- ...ion_configuration_movement_data_request.py | 27 ++++++- .../transaction_configuration_type_alias.py | 27 ++++++- sdk/lusid/models/transaction_price.py | 18 ++++- .../models/transaction_property_mapping.py | 21 +++++- .../transaction_property_mapping_request.py | 21 +++++- .../models/transaction_query_parameters.py | 24 +++++- sdk/lusid/models/transaction_request.py | 51 ++++++++++++- .../transaction_set_configuration_data.py | 21 +++++- .../update_cut_label_definition_request.py | 24 +++++- .../update_instrument_identifier_request.py | 21 +++++- .../models/update_portfolio_group_request.py | 18 ++++- sdk/lusid/models/update_portfolio_request.py | 18 ++++- .../update_property_definition_request.py | 15 +++- .../upsert_instrument_properties_response.py | 18 ++++- .../upsert_instrument_property_request.py | 21 +++++- .../models/upsert_instruments_response.py | 24 +++++- .../upsert_portfolio_executions_response.py | 21 +++++- .../upsert_portfolio_transactions_response.py | 21 +++++- ...eference_portfolio_constituents_request.py | 27 ++++++- ...ference_portfolio_constituents_response.py | 21 +++++- .../upsert_transaction_properties_response.py | 24 +++++- sdk/lusid/models/user.py | 15 +++- sdk/lusid/models/version.py | 18 ++++- sdk/lusid/models/version_summary_dto.py | 24 +++++- ...ned_resource_list_of_output_transaction.py | 24 +++++- ...oned_resource_list_of_portfolio_holding.py | 24 +++++- .../versioned_resource_list_of_transaction.py | 24 +++++- 112 files changed, 2743 insertions(+), 224 deletions(-) diff --git a/sdk/lusid/models/access_controlled_action.py b/sdk/lusid/models/access_controlled_action.py index 330dd1e4333..d3dbbced6da 100644 --- a/sdk/lusid/models/access_controlled_action.py +++ b/sdk/lusid/models/access_controlled_action.py @@ -16,7 +16,6 @@ import six - class AccessControlledAction(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class AccessControlledAction(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'description': 'str', @@ -45,8 +46,27 @@ class AccessControlledAction(object): 'links': 'links' } + required_map = { + 'description': 'required', + 'action': 'required', + 'limited_set': 'optional', + 'links': 'optional' + } + def __init__(self, description=None, action=None, limited_set=None, links=None): # noqa: E501 - """AccessControlledAction - a model defined in OpenAPI""" # noqa: E501 + """ + AccessControlledAction - a model defined in OpenAPI + + :param description: The description of the action (required) + :type description: str + :param action: (required) + :type action: lusid.ActionId + :param limited_set: When populated, the provided values are the limited set of resources that are allowed to be specified for access control for this action + :type limited_set: list[lusid.IdSelectorDefinition] + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._description = None self._action = None diff --git a/sdk/lusid/models/access_controlled_resource.py b/sdk/lusid/models/access_controlled_resource.py index 2aaf248c651..22563393b45 100644 --- a/sdk/lusid/models/access_controlled_resource.py +++ b/sdk/lusid/models/access_controlled_resource.py @@ -16,7 +16,6 @@ import six - class AccessControlledResource(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class AccessControlledResource(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'application': 'str', @@ -49,8 +50,33 @@ class AccessControlledResource(object): 'links': 'links' } + required_map = { + 'application': 'optional', + 'name': 'optional', + 'description': 'required', + 'actions': 'required', + 'identifier_parts': 'optional', + 'links': 'optional' + } + def __init__(self, application=None, name=None, description=None, actions=None, identifier_parts=None, links=None): # noqa: E501 - """AccessControlledResource - a model defined in OpenAPI""" # noqa: E501 + """ + AccessControlledResource - a model defined in OpenAPI + + :param application: The application to which this resource belongs + :type application: str + :param name: The display name of the resource + :type name: str + :param description: The description of the resource (required) + :type description: str + :param actions: The actions acceptable for this type of resource (required) + :type actions: list[lusid.AccessControlledAction] + :param identifier_parts: The constituent parts of a valid identifier for this resource + :type identifier_parts: list[lusid.IdentifierPartSchema] + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._application = None self._name = None diff --git a/sdk/lusid/models/action_id.py b/sdk/lusid/models/action_id.py index 26743534da1..de845dd86be 100644 --- a/sdk/lusid/models/action_id.py +++ b/sdk/lusid/models/action_id.py @@ -16,7 +16,6 @@ import six - class ActionId(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ActionId(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'scope': 'str', @@ -43,8 +44,24 @@ class ActionId(object): 'entity': 'entity' } + required_map = { + 'scope': 'required', + 'activity': 'required', + 'entity': 'required' + } + def __init__(self, scope=None, activity=None, entity=None): # noqa: E501 - """ActionId - a model defined in OpenAPI""" # noqa: E501 + """ + ActionId - a model defined in OpenAPI + + :param scope: (required) + :type scope: str + :param activity: (required) + :type activity: str + :param entity: (required) + :type entity: str + + """ # noqa: E501 self._scope = None self._activity = None diff --git a/sdk/lusid/models/adjust_holding.py b/sdk/lusid/models/adjust_holding.py index 734f9da1e68..20fd30d5acc 100644 --- a/sdk/lusid/models/adjust_holding.py +++ b/sdk/lusid/models/adjust_holding.py @@ -16,7 +16,6 @@ import six - class AdjustHolding(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class AdjustHolding(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'href': 'str', @@ -43,8 +44,24 @@ class AdjustHolding(object): 'links': 'links' } + required_map = { + 'href': 'optional', + 'version': 'required', + 'links': 'optional' + } + def __init__(self, href=None, version=None, links=None): # noqa: E501 - """AdjustHolding - a model defined in OpenAPI""" # noqa: E501 + """ + AdjustHolding - a model defined in OpenAPI + + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param version: (required) + :type version: lusid.Version + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._href = None self._version = None diff --git a/sdk/lusid/models/adjust_holding_request.py b/sdk/lusid/models/adjust_holding_request.py index ddf64660391..a6d1a7d0fd9 100644 --- a/sdk/lusid/models/adjust_holding_request.py +++ b/sdk/lusid/models/adjust_holding_request.py @@ -16,7 +16,6 @@ import six - class AdjustHoldingRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class AdjustHoldingRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'instrument_identifiers': 'dict(str, str)', @@ -45,8 +46,27 @@ class AdjustHoldingRequest(object): 'tax_lots': 'taxLots' } + required_map = { + 'instrument_identifiers': 'required', + 'sub_holding_keys': 'optional', + 'properties': 'optional', + 'tax_lots': 'required' + } + def __init__(self, instrument_identifiers=None, sub_holding_keys=None, properties=None, tax_lots=None): # noqa: E501 - """AdjustHoldingRequest - a model defined in OpenAPI""" # noqa: E501 + """ + AdjustHoldingRequest - a model defined in OpenAPI + + :param instrument_identifiers: A set of instrument identifiers to use to resolve the holding adjustment to a unique instrument. (required) + :type instrument_identifiers: dict(str, str) + :param sub_holding_keys: Set of unique transaction properties and associated values to store with the holding adjustment transaction automatically created by LUSID. Each property must be from the 'Transaction' domain. + :type sub_holding_keys: dict[str, lusid.PerpetualProperty] + :param properties: Set of unique holding properties and associated values to store with the target holding. Each property must be from the 'Holding' domain. + :type properties: dict[str, lusid.PerpetualProperty] + :param tax_lots: The tax-lots that together make up the target holding. (required) + :type tax_lots: list[lusid.TargetTaxLotRequest] + + """ # noqa: E501 self._instrument_identifiers = None self._sub_holding_keys = None diff --git a/sdk/lusid/models/complete_portfolio.py b/sdk/lusid/models/complete_portfolio.py index 30706c25d7a..48045d2c506 100644 --- a/sdk/lusid/models/complete_portfolio.py +++ b/sdk/lusid/models/complete_portfolio.py @@ -16,7 +16,6 @@ import six - class CompletePortfolio(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class CompletePortfolio(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'id': 'ResourceId', @@ -61,8 +62,51 @@ class CompletePortfolio(object): 'links': 'links' } + required_map = { + 'id': 'required', + 'href': 'optional', + 'description': 'optional', + 'display_name': 'optional', + 'created': 'optional', + 'parent_portfolio_id': 'optional', + 'is_derived': 'optional', + 'type': 'optional', + 'version': 'required', + 'properties': 'optional', + 'base_currency': 'optional', + 'links': 'optional' + } + def __init__(self, id=None, href=None, description=None, display_name=None, created=None, parent_portfolio_id=None, is_derived=None, type=None, version=None, properties=None, base_currency=None, links=None): # noqa: E501 - """CompletePortfolio - a model defined in OpenAPI""" # noqa: E501 + """ + CompletePortfolio - a model defined in OpenAPI + + :param id: (required) + :type id: lusid.ResourceId + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param description: The long form description of the portfolio. + :type description: str + :param display_name: The name of the portfolio. + :type display_name: str + :param created: The effective datetime at which the portfolio was created. No transactions or constituents can be added to the portfolio before this date. + :type created: datetime + :param parent_portfolio_id: + :type parent_portfolio_id: lusid.ResourceId + :param is_derived: Whether or not this is a derived portfolio. + :type is_derived: bool + :param type: The type of the portfolio. + :type type: str + :param version: (required) + :type version: lusid.Version + :param properties: The requested portfolio properties. These will be from the 'Portfolio' domain. + :type properties: list[lusid.ModelProperty] + :param base_currency: If the portfolio is a transaction portfolio or derived transaction portfolio, this is the base currency of the portfolio. + :type base_currency: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._id = None self._href = None diff --git a/sdk/lusid/models/constituents_adjustment_header.py b/sdk/lusid/models/constituents_adjustment_header.py index edfe781e117..42766fde61d 100644 --- a/sdk/lusid/models/constituents_adjustment_header.py +++ b/sdk/lusid/models/constituents_adjustment_header.py @@ -16,7 +16,6 @@ import six - class ConstituentsAdjustmentHeader(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ConstituentsAdjustmentHeader(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'effective_at': 'datetime', @@ -43,8 +44,24 @@ class ConstituentsAdjustmentHeader(object): 'links': 'links' } + required_map = { + 'effective_at': 'optional', + 'version': 'optional', + 'links': 'optional' + } + def __init__(self, effective_at=None, version=None, links=None): # noqa: E501 - """ConstituentsAdjustmentHeader - a model defined in OpenAPI""" # noqa: E501 + """ + ConstituentsAdjustmentHeader - a model defined in OpenAPI + + :param effective_at: There can be at most one holdings adjustment for a portfolio at a specific effective time so this uniquely identifies the adjustment. + :type effective_at: datetime + :param version: + :type version: lusid.Version + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._effective_at = None self._version = None diff --git a/sdk/lusid/models/create_cut_label_definition_request.py b/sdk/lusid/models/create_cut_label_definition_request.py index 5ebc55615b1..4203112fd51 100644 --- a/sdk/lusid/models/create_cut_label_definition_request.py +++ b/sdk/lusid/models/create_cut_label_definition_request.py @@ -16,7 +16,6 @@ import six - class CreateCutLabelDefinitionRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class CreateCutLabelDefinitionRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'code': 'str', @@ -47,8 +48,30 @@ class CreateCutLabelDefinitionRequest(object): 'time_zone': 'timeZone' } + required_map = { + 'code': 'required', + 'display_name': 'required', + 'description': 'optional', + 'cut_local_time': 'required', + 'time_zone': 'required' + } + def __init__(self, code=None, display_name=None, description=None, cut_local_time=None, time_zone=None): # noqa: E501 - """CreateCutLabelDefinitionRequest - a model defined in OpenAPI""" # noqa: E501 + """ + CreateCutLabelDefinitionRequest - a model defined in OpenAPI + + :param code: (required) + :type code: str + :param display_name: (required) + :type display_name: str + :param description: + :type description: str + :param cut_local_time: (required) + :type cut_local_time: lusid.CutLocalTime + :param time_zone: (required) + :type time_zone: str + + """ # noqa: E501 self._code = None self._display_name = None diff --git a/sdk/lusid/models/create_derived_transaction_portfolio_request.py b/sdk/lusid/models/create_derived_transaction_portfolio_request.py index b00008f6f90..df6f659d73c 100644 --- a/sdk/lusid/models/create_derived_transaction_portfolio_request.py +++ b/sdk/lusid/models/create_derived_transaction_portfolio_request.py @@ -16,7 +16,6 @@ import six - class CreateDerivedTransactionPortfolioRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class CreateDerivedTransactionPortfolioRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'display_name': 'str', @@ -53,8 +54,39 @@ class CreateDerivedTransactionPortfolioRequest(object): 'sub_holding_keys': 'subHoldingKeys' } + required_map = { + 'display_name': 'required', + 'description': 'optional', + 'code': 'required', + 'parent_portfolio_id': 'required', + 'created': 'optional', + 'corporate_action_source_id': 'optional', + 'accounting_method': 'optional', + 'sub_holding_keys': 'optional' + } + def __init__(self, display_name=None, description=None, code=None, parent_portfolio_id=None, created=None, corporate_action_source_id=None, accounting_method=None, sub_holding_keys=None): # noqa: E501 - """CreateDerivedTransactionPortfolioRequest - a model defined in OpenAPI""" # noqa: E501 + """ + CreateDerivedTransactionPortfolioRequest - a model defined in OpenAPI + + :param display_name: (required) + :type display_name: str + :param description: + :type description: str + :param code: (required) + :type code: str + :param parent_portfolio_id: (required) + :type parent_portfolio_id: lusid.ResourceId + :param created: + :type created: datetime + :param corporate_action_source_id: + :type corporate_action_source_id: lusid.ResourceId + :param accounting_method: + :type accounting_method: str + :param sub_holding_keys: + :type sub_holding_keys: list[str] + + """ # noqa: E501 self._display_name = None self._description = None diff --git a/sdk/lusid/models/create_portfolio_details.py b/sdk/lusid/models/create_portfolio_details.py index 3863f7e776f..15350050fb1 100644 --- a/sdk/lusid/models/create_portfolio_details.py +++ b/sdk/lusid/models/create_portfolio_details.py @@ -16,7 +16,6 @@ import six - class CreatePortfolioDetails(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class CreatePortfolioDetails(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'corporate_action_source_id': 'ResourceId' @@ -39,8 +40,18 @@ class CreatePortfolioDetails(object): 'corporate_action_source_id': 'corporateActionSourceId' } + required_map = { + 'corporate_action_source_id': 'optional' + } + def __init__(self, corporate_action_source_id=None): # noqa: E501 - """CreatePortfolioDetails - a model defined in OpenAPI""" # noqa: E501 + """ + CreatePortfolioDetails - a model defined in OpenAPI + + :param corporate_action_source_id: + :type corporate_action_source_id: lusid.ResourceId + + """ # noqa: E501 self._corporate_action_source_id = None self.discriminator = None diff --git a/sdk/lusid/models/create_portfolio_group_request.py b/sdk/lusid/models/create_portfolio_group_request.py index 981ca866e81..0e329719c67 100644 --- a/sdk/lusid/models/create_portfolio_group_request.py +++ b/sdk/lusid/models/create_portfolio_group_request.py @@ -16,7 +16,6 @@ import six - class CreatePortfolioGroupRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class CreatePortfolioGroupRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'code': 'str', @@ -51,8 +52,36 @@ class CreatePortfolioGroupRequest(object): 'description': 'description' } + required_map = { + 'code': 'required', + 'created': 'optional', + 'values': 'optional', + 'sub_groups': 'optional', + 'properties': 'optional', + 'display_name': 'required', + 'description': 'optional' + } + def __init__(self, code=None, created=None, values=None, sub_groups=None, properties=None, display_name=None, description=None): # noqa: E501 - """CreatePortfolioGroupRequest - a model defined in OpenAPI""" # noqa: E501 + """ + CreatePortfolioGroupRequest - a model defined in OpenAPI + + :param code: The code that the portfolio group will be created with. Together with the scope this uniquely identifies the portfolio group. (required) + :type code: str + :param created: The effective datetime at which the portfolio group was created. Defaults to the current LUSID system datetime if not specified. + :type created: datetime + :param values: The resource identifiers of the portfolios to be contained within the portfolio group. + :type values: list[lusid.ResourceId] + :param sub_groups: The resource identifiers of the portfolio groups to be contained within the portfolio group as sub groups. + :type sub_groups: list[lusid.ResourceId] + :param properties: A set of unique group properties to add to the portfolio group. Each property must be from the 'PortfolioGroup' domain and should be identified by its key which has the format {domain}/{scope}/{code}, e.g. 'PortfolioGroup/Manager/Id'. These properties must be pre-defined. + :type properties: dict[str, lusid.ModelProperty] + :param display_name: The name of the portfolio group. (required) + :type display_name: str + :param description: A long form description of the portfolio group. + :type description: str + + """ # noqa: E501 self._code = None self._created = None diff --git a/sdk/lusid/models/create_property_definition_request.py b/sdk/lusid/models/create_property_definition_request.py index 722997fea16..8a850f7e8f2 100644 --- a/sdk/lusid/models/create_property_definition_request.py +++ b/sdk/lusid/models/create_property_definition_request.py @@ -16,7 +16,6 @@ import six - class CreatePropertyDefinitionRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class CreatePropertyDefinitionRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'domain': 'str', @@ -51,8 +52,36 @@ class CreatePropertyDefinitionRequest(object): 'life_time': 'lifeTime' } + required_map = { + 'domain': 'required', + 'scope': 'required', + 'code': 'required', + 'value_required': 'optional', + 'display_name': 'required', + 'data_type_id': 'required', + 'life_time': 'optional' + } + def __init__(self, domain=None, scope=None, code=None, value_required=None, display_name=None, data_type_id=None, life_time=None): # noqa: E501 - """CreatePropertyDefinitionRequest - a model defined in OpenAPI""" # noqa: E501 + """ + CreatePropertyDefinitionRequest - a model defined in OpenAPI + + :param domain: The domain that the property exists in. (required) + :type domain: str + :param scope: The scope that the property exists in. (required) + :type scope: str + :param code: The code of the property. Together with the domain and scope this uniquely identifies the property. (required) + :type code: str + :param value_required: Whether or not a value is always required for this property. + :type value_required: bool + :param display_name: The display name of the property. (required) + :type display_name: str + :param data_type_id: (required) + :type data_type_id: lusid.ResourceId + :param life_time: Describes how the property's values can change over time. + :type life_time: str + + """ # noqa: E501 self._domain = None self._scope = None diff --git a/sdk/lusid/models/create_reference_portfolio_request.py b/sdk/lusid/models/create_reference_portfolio_request.py index 54298070ee3..e61d6a040a6 100644 --- a/sdk/lusid/models/create_reference_portfolio_request.py +++ b/sdk/lusid/models/create_reference_portfolio_request.py @@ -16,7 +16,6 @@ import six - class CreateReferencePortfolioRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class CreateReferencePortfolioRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'display_name': 'str', @@ -47,8 +48,30 @@ class CreateReferencePortfolioRequest(object): 'properties': 'properties' } + required_map = { + 'display_name': 'required', + 'description': 'optional', + 'code': 'required', + 'created': 'optional', + 'properties': 'optional' + } + def __init__(self, display_name=None, description=None, code=None, created=None, properties=None): # noqa: E501 - """CreateReferencePortfolioRequest - a model defined in OpenAPI""" # noqa: E501 + """ + CreateReferencePortfolioRequest - a model defined in OpenAPI + + :param display_name: (required) + :type display_name: str + :param description: + :type description: str + :param code: (required) + :type code: str + :param created: + :type created: datetime + :param properties: Portfolio properties to add to the portfolio + :type properties: dict[str, lusid.ModelProperty] + + """ # noqa: E501 self._display_name = None self._description = None diff --git a/sdk/lusid/models/create_transaction_portfolio_request.py b/sdk/lusid/models/create_transaction_portfolio_request.py index 2c3e3ec6da6..ff7261ecfc1 100644 --- a/sdk/lusid/models/create_transaction_portfolio_request.py +++ b/sdk/lusid/models/create_transaction_portfolio_request.py @@ -16,7 +16,6 @@ import six - class CreateTransactionPortfolioRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class CreateTransactionPortfolioRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'display_name': 'str', @@ -55,8 +56,42 @@ class CreateTransactionPortfolioRequest(object): 'properties': 'properties' } + required_map = { + 'display_name': 'required', + 'description': 'optional', + 'code': 'required', + 'created': 'optional', + 'base_currency': 'required', + 'corporate_action_source_id': 'optional', + 'accounting_method': 'optional', + 'sub_holding_keys': 'optional', + 'properties': 'optional' + } + def __init__(self, display_name=None, description=None, code=None, created=None, base_currency=None, corporate_action_source_id=None, accounting_method=None, sub_holding_keys=None, properties=None): # noqa: E501 - """CreateTransactionPortfolioRequest - a model defined in OpenAPI""" # noqa: E501 + """ + CreateTransactionPortfolioRequest - a model defined in OpenAPI + + :param display_name: The name of the transaction portfolio. (required) + :type display_name: str + :param description: A long form description of the transaction portfolio. + :type description: str + :param code: The code that the transaction portfolio will be created with. Together with the scope this uniquely identifies the transaction portfolio. (required) + :type code: str + :param created: The effective datetime at which the transaction portfolio will be created. No transactions can be added to the transaction portfolio before this date. Defaults to the current LUSID system datetime if not specified. + :type created: datetime + :param base_currency: The base currency of the transaction portfolio. (required) + :type base_currency: str + :param corporate_action_source_id: + :type corporate_action_source_id: lusid.ResourceId + :param accounting_method: Determines the accounting treatment given to the transaction portfolio's tax lots. + :type accounting_method: str + :param sub_holding_keys: A set of unique transaction properties to group the transaction portfolio's holdings by. Each property must be from the 'Transaction' domain and should be identified by its key which has the format {domain}/{scope}/{code}, e.g. 'Transaction/strategies/quantsignal'. + :type sub_holding_keys: list[str] + :param properties: A set of unique portfolio properties to add to the transaction portfolio. Each property must be from the 'Portfolio' domain and should be identified by its key which has the format {domain}/{scope}/{code}, e.g. 'Portfolio/Manager/Id'. These properties must be pre-defined. + :type properties: dict[str, lusid.ModelProperty] + + """ # noqa: E501 self._display_name = None self._description = None diff --git a/sdk/lusid/models/currency_and_amount.py b/sdk/lusid/models/currency_and_amount.py index 9d07d0c3276..148b4e168ce 100644 --- a/sdk/lusid/models/currency_and_amount.py +++ b/sdk/lusid/models/currency_and_amount.py @@ -16,7 +16,6 @@ import six - class CurrencyAndAmount(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class CurrencyAndAmount(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'amount': 'float', @@ -41,8 +42,21 @@ class CurrencyAndAmount(object): 'currency': 'currency' } + required_map = { + 'amount': 'optional', + 'currency': 'optional' + } + def __init__(self, amount=None, currency=None): # noqa: E501 - """CurrencyAndAmount - a model defined in OpenAPI""" # noqa: E501 + """ + CurrencyAndAmount - a model defined in OpenAPI + + :param amount: + :type amount: float + :param currency: + :type currency: str + + """ # noqa: E501 self._amount = None self._currency = None diff --git a/sdk/lusid/models/cut_label_definition.py b/sdk/lusid/models/cut_label_definition.py index 729b5685840..70cc743b4c0 100644 --- a/sdk/lusid/models/cut_label_definition.py +++ b/sdk/lusid/models/cut_label_definition.py @@ -16,7 +16,6 @@ import six - class CutLabelDefinition(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class CutLabelDefinition(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'code': 'str', @@ -51,8 +52,36 @@ class CutLabelDefinition(object): 'links': 'links' } + required_map = { + 'code': 'optional', + 'display_name': 'optional', + 'description': 'optional', + 'cut_local_time': 'optional', + 'time_zone': 'optional', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, code=None, display_name=None, description=None, cut_local_time=None, time_zone=None, href=None, links=None): # noqa: E501 - """CutLabelDefinition - a model defined in OpenAPI""" # noqa: E501 + """ + CutLabelDefinition - a model defined in OpenAPI + + :param code: + :type code: str + :param display_name: + :type display_name: str + :param description: + :type description: str + :param cut_local_time: + :type cut_local_time: lusid.CutLocalTime + :param time_zone: + :type time_zone: str + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._code = None self._display_name = None diff --git a/sdk/lusid/models/cut_local_time.py b/sdk/lusid/models/cut_local_time.py index 7918e3fa024..568c083cf53 100644 --- a/sdk/lusid/models/cut_local_time.py +++ b/sdk/lusid/models/cut_local_time.py @@ -16,7 +16,6 @@ import six - class CutLocalTime(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class CutLocalTime(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'hours': 'int', @@ -41,8 +42,21 @@ class CutLocalTime(object): 'minutes': 'minutes' } + required_map = { + 'hours': 'optional', + 'minutes': 'optional' + } + def __init__(self, hours=None, minutes=None): # noqa: E501 - """CutLocalTime - a model defined in OpenAPI""" # noqa: E501 + """ + CutLocalTime - a model defined in OpenAPI + + :param hours: + :type hours: int + :param minutes: + :type minutes: int + + """ # noqa: E501 self._hours = None self._minutes = None diff --git a/sdk/lusid/models/data_type.py b/sdk/lusid/models/data_type.py index 0a929e3319f..35d030286a5 100644 --- a/sdk/lusid/models/data_type.py +++ b/sdk/lusid/models/data_type.py @@ -16,7 +16,6 @@ import six - class DataType(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class DataType(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'href': 'str', @@ -57,8 +58,45 @@ class DataType(object): 'links': 'links' } + required_map = { + 'href': 'optional', + 'type_value_range': 'required', + 'id': 'required', + 'display_name': 'required', + 'description': 'required', + 'value_type': 'required', + 'acceptable_values': 'optional', + 'unit_schema': 'optional', + 'acceptable_units': 'optional', + 'links': 'optional' + } + def __init__(self, href=None, type_value_range=None, id=None, display_name=None, description=None, value_type=None, acceptable_values=None, unit_schema=None, acceptable_units=None, links=None): # noqa: E501 - """DataType - a model defined in OpenAPI""" # noqa: E501 + """ + DataType - a model defined in OpenAPI + + :param href: + :type href: str + :param type_value_range: (required) + :type type_value_range: str + :param id: (required) + :type id: lusid.ResourceId + :param display_name: (required) + :type display_name: str + :param description: (required) + :type description: str + :param value_type: (required) + :type value_type: str + :param acceptable_values: + :type acceptable_values: list[str] + :param unit_schema: + :type unit_schema: str + :param acceptable_units: + :type acceptable_units: list[lusid.IUnitDefinitionDto] + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._href = None self._type_value_range = None diff --git a/sdk/lusid/models/delete_instrument_response.py b/sdk/lusid/models/delete_instrument_response.py index 326b17fe325..1bfafd29daa 100644 --- a/sdk/lusid/models/delete_instrument_response.py +++ b/sdk/lusid/models/delete_instrument_response.py @@ -16,7 +16,6 @@ import six - class DeleteInstrumentResponse(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class DeleteInstrumentResponse(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'href': 'str', @@ -43,8 +44,24 @@ class DeleteInstrumentResponse(object): 'links': 'links' } + required_map = { + 'href': 'optional', + 'as_at': 'required', + 'links': 'optional' + } + def __init__(self, href=None, as_at=None, links=None): # noqa: E501 - """DeleteInstrumentResponse - a model defined in OpenAPI""" # noqa: E501 + """ + DeleteInstrumentResponse - a model defined in OpenAPI + + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param as_at: The asAt datetime at which the instrument was deleted. (required) + :type as_at: datetime + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._href = None self._as_at = None diff --git a/sdk/lusid/models/deleted_entity_response.py b/sdk/lusid/models/deleted_entity_response.py index e6a5b984adc..7d2928b7c71 100644 --- a/sdk/lusid/models/deleted_entity_response.py +++ b/sdk/lusid/models/deleted_entity_response.py @@ -16,7 +16,6 @@ import six - class DeletedEntityResponse(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class DeletedEntityResponse(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'href': 'str', @@ -45,8 +46,27 @@ class DeletedEntityResponse(object): 'links': 'links' } + required_map = { + 'href': 'optional', + 'effective_from': 'optional', + 'as_at': 'required', + 'links': 'optional' + } + def __init__(self, href=None, effective_from=None, as_at=None, links=None): # noqa: E501 - """DeletedEntityResponse - a model defined in OpenAPI""" # noqa: E501 + """ + DeletedEntityResponse - a model defined in OpenAPI + + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param effective_from: The effective datetime at which the deletion became valid. May be null in the case where multiple date times are applicable. + :type effective_from: datetime + :param as_at: The asAt datetime at which the deletion was committed to LUSID. (required) + :type as_at: datetime + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._href = None self._effective_from = None diff --git a/sdk/lusid/models/error_detail.py b/sdk/lusid/models/error_detail.py index 9e5ff898256..ea48db488d3 100644 --- a/sdk/lusid/models/error_detail.py +++ b/sdk/lusid/models/error_detail.py @@ -16,7 +16,6 @@ import six - class ErrorDetail(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ErrorDetail(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'id': 'str', @@ -43,8 +44,24 @@ class ErrorDetail(object): 'detail': 'detail' } + required_map = { + 'id': 'optional', + 'type': 'optional', + 'detail': 'optional' + } + def __init__(self, id=None, type=None, detail=None): # noqa: E501 - """ErrorDetail - a model defined in OpenAPI""" # noqa: E501 + """ + ErrorDetail - a model defined in OpenAPI + + :param id: + :type id: str + :param type: + :type type: str + :param detail: + :type detail: str + + """ # noqa: E501 self._id = None self._type = None diff --git a/sdk/lusid/models/execution_request.py b/sdk/lusid/models/execution_request.py index 0ae0ce637b8..58496ffde58 100644 --- a/sdk/lusid/models/execution_request.py +++ b/sdk/lusid/models/execution_request.py @@ -16,7 +16,6 @@ import six - class ExecutionRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ExecutionRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'execution_id': 'str', @@ -51,8 +52,36 @@ class ExecutionRequest(object): 'currency': 'currency' } + required_map = { + 'execution_id': 'required', + 'side': 'required', + 'instrument_identifiers': 'required', + 'transaction_time': 'required', + 'last_shares': 'required', + 'last_px': 'required', + 'currency': 'required' + } + def __init__(self, execution_id=None, side=None, instrument_identifiers=None, transaction_time=None, last_shares=None, last_px=None, currency=None): # noqa: E501 - """ExecutionRequest - a model defined in OpenAPI""" # noqa: E501 + """ + ExecutionRequest - a model defined in OpenAPI + + :param execution_id: The unique identifier of the Execution Report (8) message as assigned by sell-side. FIX field 17. (required) + :type execution_id: str + :param side: The side of the order. FIX field 54. (required) + :type side: str + :param instrument_identifiers: A set of instrument identifiers to use to resolve the execution to a unique instrument. (required) + :type instrument_identifiers: dict(str, str) + :param transaction_time: Time of execution/order creation. FIX field 60. (required) + :type transaction_time: datetime + :param last_shares: Quantity (e.g. shares) bought/sold on this (last) fill. FIX field 32. (required) + :type last_shares: float + :param last_px: Price of this (last) fill. FIX field 31. (required) + :type last_px: float + :param currency: The currency used for the price. FIX field 15. (required) + :type currency: str + + """ # noqa: E501 self._execution_id = None self._side = None diff --git a/sdk/lusid/models/expanded_group.py b/sdk/lusid/models/expanded_group.py index e0268e2521d..7aed071bfaf 100644 --- a/sdk/lusid/models/expanded_group.py +++ b/sdk/lusid/models/expanded_group.py @@ -16,7 +16,6 @@ import six - class ExpandedGroup(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ExpandedGroup(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'href': 'str', @@ -53,8 +54,39 @@ class ExpandedGroup(object): 'links': 'links' } + required_map = { + 'href': 'optional', + 'id': 'required', + 'display_name': 'required', + 'description': 'optional', + 'values': 'optional', + 'sub_groups': 'optional', + 'version': 'optional', + 'links': 'optional' + } + def __init__(self, href=None, id=None, display_name=None, description=None, values=None, sub_groups=None, version=None, links=None): # noqa: E501 - """ExpandedGroup - a model defined in OpenAPI""" # noqa: E501 + """ + ExpandedGroup - a model defined in OpenAPI + + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param id: (required) + :type id: lusid.ResourceId + :param display_name: The name of the portfolio group. (required) + :type display_name: str + :param description: The long form description of the portfolio group. + :type description: str + :param values: The collection of resource identifiers for the portfolios contained in the portfolio group. + :type values: list[lusid.CompletePortfolio] + :param sub_groups: The collection of resource identifiers for the portfolio groups contained in the portfolio group as sub groups. + :type sub_groups: list[lusid.ExpandedGroup] + :param version: + :type version: lusid.Version + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._href = None self._id = None diff --git a/sdk/lusid/models/file_response.py b/sdk/lusid/models/file_response.py index 88d23b264ca..c0e8120fc85 100644 --- a/sdk/lusid/models/file_response.py +++ b/sdk/lusid/models/file_response.py @@ -16,7 +16,6 @@ import six - class FileResponse(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class FileResponse(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'file_stream': 'Stream', @@ -43,8 +44,24 @@ class FileResponse(object): 'downloaded_filename': 'downloadedFilename' } + required_map = { + 'file_stream': 'optional', + 'content_type': 'optional', + 'downloaded_filename': 'optional' + } + def __init__(self, file_stream=None, content_type=None, downloaded_filename=None): # noqa: E501 - """FileResponse - a model defined in OpenAPI""" # noqa: E501 + """ + FileResponse - a model defined in OpenAPI + + :param file_stream: + :type file_stream: lusid.Stream + :param content_type: + :type content_type: str + :param downloaded_filename: + :type downloaded_filename: str + + """ # noqa: E501 self._file_stream = None self._content_type = None diff --git a/sdk/lusid/models/get_instruments_response.py b/sdk/lusid/models/get_instruments_response.py index 4935e3872ae..5b8e8f4712e 100644 --- a/sdk/lusid/models/get_instruments_response.py +++ b/sdk/lusid/models/get_instruments_response.py @@ -16,7 +16,6 @@ import six - class GetInstrumentsResponse(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class GetInstrumentsResponse(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'href': 'str', @@ -45,8 +46,27 @@ class GetInstrumentsResponse(object): 'links': 'links' } + required_map = { + 'href': 'optional', + 'values': 'optional', + 'failed': 'optional', + 'links': 'optional' + } + def __init__(self, href=None, values=None, failed=None, links=None): # noqa: E501 - """GetInstrumentsResponse - a model defined in OpenAPI""" # noqa: E501 + """ + GetInstrumentsResponse - a model defined in OpenAPI + + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param values: The instrument definitions, keyed by the identifier used to retrieve them. Only instruments that were found will be contained in this collection. + :type values: dict[str, lusid.Instrument] + :param failed: The identifiers which did not resolve to an instrument along with the nature of the failure. + :type failed: dict[str, lusid.ErrorDetail] + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._href = None self._values = None diff --git a/sdk/lusid/models/get_reference_portfolio_constituents_response.py b/sdk/lusid/models/get_reference_portfolio_constituents_response.py index 7f7b79cafc9..75d57c7e720 100644 --- a/sdk/lusid/models/get_reference_portfolio_constituents_response.py +++ b/sdk/lusid/models/get_reference_portfolio_constituents_response.py @@ -16,7 +16,6 @@ import six - class GetReferencePortfolioConstituentsResponse(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class GetReferencePortfolioConstituentsResponse(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'effective_from': 'datetime', @@ -51,8 +52,36 @@ class GetReferencePortfolioConstituentsResponse(object): 'links': 'links' } + required_map = { + 'effective_from': 'required', + 'weight_type': 'required', + 'period_type': 'optional', + 'period_count': 'optional', + 'constituents': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, effective_from=None, weight_type=None, period_type=None, period_count=None, constituents=None, href=None, links=None): # noqa: E501 - """GetReferencePortfolioConstituentsResponse - a model defined in OpenAPI""" # noqa: E501 + """ + GetReferencePortfolioConstituentsResponse - a model defined in OpenAPI + + :param effective_from: (required) + :type effective_from: datetime + :param weight_type: (required) + :type weight_type: str + :param period_type: + :type period_type: str + :param period_count: + :type period_count: int + :param constituents: Set of constituents (instrument/weight pairings) (required) + :type constituents: list[lusid.ReferencePortfolioConstituent] + :param href: The Uri that returns the same result as the original request, but may include resolved as at time(s). + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._effective_from = None self._weight_type = None diff --git a/sdk/lusid/models/holding_adjustment.py b/sdk/lusid/models/holding_adjustment.py index fab6b0d3813..90e598ccf6e 100644 --- a/sdk/lusid/models/holding_adjustment.py +++ b/sdk/lusid/models/holding_adjustment.py @@ -16,7 +16,6 @@ import six - class HoldingAdjustment(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class HoldingAdjustment(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'instrument_identifiers': 'dict(str, str)', @@ -47,8 +48,30 @@ class HoldingAdjustment(object): 'tax_lots': 'taxLots' } + required_map = { + 'instrument_identifiers': 'optional', + 'instrument_uid': 'required', + 'sub_holding_keys': 'optional', + 'properties': 'optional', + 'tax_lots': 'required' + } + def __init__(self, instrument_identifiers=None, instrument_uid=None, sub_holding_keys=None, properties=None, tax_lots=None): # noqa: E501 - """HoldingAdjustment - a model defined in OpenAPI""" # noqa: E501 + """ + HoldingAdjustment - a model defined in OpenAPI + + :param instrument_identifiers: The set of instrument identifiers that can be used to resolve the holding adjustment to a unique instrument. + :type instrument_identifiers: dict(str, str) + :param instrument_uid: The unqiue Lusid Instrument Id (LUID) of the instrument that the holding adjustment is in. (required) + :type instrument_uid: str + :param sub_holding_keys: The set of unique transaction properties and associated values stored with the holding adjustment transactions automatically created by LUSID. Each property will be from the 'Transaction' domain. + :type sub_holding_keys: dict[str, lusid.PerpetualProperty] + :param properties: The set of unique holding properties and associated values stored with the target holding. Each property will be from the 'Holding' domain. + :type properties: dict[str, lusid.PerpetualProperty] + :param tax_lots: The tax-lots that together make up the target holding. (required) + :type tax_lots: list[lusid.TargetTaxLot] + + """ # noqa: E501 self._instrument_identifiers = None self._instrument_uid = None diff --git a/sdk/lusid/models/holdings_adjustment.py b/sdk/lusid/models/holdings_adjustment.py index 724fac838b7..ec0bf1cfa8f 100644 --- a/sdk/lusid/models/holdings_adjustment.py +++ b/sdk/lusid/models/holdings_adjustment.py @@ -16,7 +16,6 @@ import six - class HoldingsAdjustment(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class HoldingsAdjustment(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'effective_at': 'datetime', @@ -47,8 +48,30 @@ class HoldingsAdjustment(object): 'links': 'links' } + required_map = { + 'effective_at': 'required', + 'version': 'required', + 'unmatched_holding_method': 'required', + 'adjustments': 'required', + 'links': 'optional' + } + def __init__(self, effective_at=None, version=None, unmatched_holding_method=None, adjustments=None, links=None): # noqa: E501 - """HoldingsAdjustment - a model defined in OpenAPI""" # noqa: E501 + """ + HoldingsAdjustment - a model defined in OpenAPI + + :param effective_at: The effective datetime from which the adjustment is valid. There can only be one holdings adjustment for a transaction portfolio at a specific effective datetime, so this uniquely identifies the adjustment. (required) + :type effective_at: datetime + :param version: (required) + :type version: lusid.Version + :param unmatched_holding_method: Describes how the holdings were adjusted. If 'PositionToZero' the entire transaction portfolio's holdings were set via a call to 'Set holdings'. If 'KeepTheSame' only the specified holdings were adjusted via a call to 'Adjust holdings'. (required) + :type unmatched_holding_method: str + :param adjustments: The holding adjustments. (required) + :type adjustments: list[lusid.HoldingAdjustment] + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._effective_at = None self._version = None diff --git a/sdk/lusid/models/holdings_adjustment_header.py b/sdk/lusid/models/holdings_adjustment_header.py index 84c881903e0..ebb6ebf9609 100644 --- a/sdk/lusid/models/holdings_adjustment_header.py +++ b/sdk/lusid/models/holdings_adjustment_header.py @@ -16,7 +16,6 @@ import six - class HoldingsAdjustmentHeader(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class HoldingsAdjustmentHeader(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'effective_at': 'datetime', @@ -45,8 +46,27 @@ class HoldingsAdjustmentHeader(object): 'links': 'links' } + required_map = { + 'effective_at': 'required', + 'version': 'required', + 'unmatched_holding_method': 'required', + 'links': 'optional' + } + def __init__(self, effective_at=None, version=None, unmatched_holding_method=None, links=None): # noqa: E501 - """HoldingsAdjustmentHeader - a model defined in OpenAPI""" # noqa: E501 + """ + HoldingsAdjustmentHeader - a model defined in OpenAPI + + :param effective_at: The effective datetime from which the adjustment is valid. There can only be one holdings adjustment for a transaction portfolio at a specific effective datetime, so this uniquely identifies the adjustment. (required) + :type effective_at: datetime + :param version: (required) + :type version: lusid.Version + :param unmatched_holding_method: Describes how the holdings were adjusted. If 'PositionToZero' the entire transaction portfolio's holdings were set via a call to 'Set holdings'. If 'KeepTheSame' only the specified holdings were adjusted via a call to 'Adjust holdings'. (required) + :type unmatched_holding_method: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._effective_at = None self._version = None diff --git a/sdk/lusid/models/i_unit_definition_dto.py b/sdk/lusid/models/i_unit_definition_dto.py index 1eb7faf70f3..42b4424fd17 100644 --- a/sdk/lusid/models/i_unit_definition_dto.py +++ b/sdk/lusid/models/i_unit_definition_dto.py @@ -16,7 +16,6 @@ import six - class IUnitDefinitionDto(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class IUnitDefinitionDto(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'schema': 'str', @@ -45,8 +46,27 @@ class IUnitDefinitionDto(object): 'description': 'description' } + required_map = { + 'schema': 'optional', + 'code': 'optional', + 'display_name': 'optional', + 'description': 'optional' + } + def __init__(self, schema=None, code=None, display_name=None, description=None): # noqa: E501 - """IUnitDefinitionDto - a model defined in OpenAPI""" # noqa: E501 + """ + IUnitDefinitionDto - a model defined in OpenAPI + + :param schema: + :type schema: str + :param code: + :type code: str + :param display_name: + :type display_name: str + :param description: + :type description: str + + """ # noqa: E501 self._schema = None self._code = None diff --git a/sdk/lusid/models/id_selector_definition.py b/sdk/lusid/models/id_selector_definition.py index 169e9fdfbfc..65c2896907b 100644 --- a/sdk/lusid/models/id_selector_definition.py +++ b/sdk/lusid/models/id_selector_definition.py @@ -16,7 +16,6 @@ import six - class IdSelectorDefinition(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class IdSelectorDefinition(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'identifier': 'dict(str, str)', @@ -45,8 +46,27 @@ class IdSelectorDefinition(object): 'description': 'description' } + required_map = { + 'identifier': 'optional', + 'actions': 'optional', + 'name': 'optional', + 'description': 'optional' + } + def __init__(self, identifier=None, actions=None, name=None, description=None): # noqa: E501 - """IdSelectorDefinition - a model defined in OpenAPI""" # noqa: E501 + """ + IdSelectorDefinition - a model defined in OpenAPI + + :param identifier: + :type identifier: dict(str, str) + :param actions: + :type actions: list[lusid.ActionId] + :param name: + :type name: str + :param description: + :type description: str + + """ # noqa: E501 self._identifier = None self._actions = None diff --git a/sdk/lusid/models/identifier_part_schema.py b/sdk/lusid/models/identifier_part_schema.py index de790ca6274..7b839287432 100644 --- a/sdk/lusid/models/identifier_part_schema.py +++ b/sdk/lusid/models/identifier_part_schema.py @@ -16,7 +16,6 @@ import six - class IdentifierPartSchema(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class IdentifierPartSchema(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'index': 'int', @@ -49,8 +50,33 @@ class IdentifierPartSchema(object): 'links': 'links' } + required_map = { + 'index': 'required', + 'name': 'required', + 'display_name': 'required', + 'description': 'required', + 'required': 'required', + 'links': 'optional' + } + def __init__(self, index=None, name=None, display_name=None, description=None, required=None, links=None): # noqa: E501 - """IdentifierPartSchema - a model defined in OpenAPI""" # noqa: E501 + """ + IdentifierPartSchema - a model defined in OpenAPI + + :param index: The typical index in the identifier in which this part appears (required) + :type index: int + :param name: The name of the identifier part that can/should be provided for this resource type (required) + :type name: str + :param display_name: The display name of the identifier part (required) + :type display_name: str + :param description: A brief description of the point of this identifier part (required) + :type description: str + :param required: Whether a value is required to be provided (required) + :type required: bool + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._index = None self._name = None diff --git a/sdk/lusid/models/instrument.py b/sdk/lusid/models/instrument.py index 90eccbe18a7..8938194f365 100644 --- a/sdk/lusid/models/instrument.py +++ b/sdk/lusid/models/instrument.py @@ -16,7 +16,6 @@ import six - class Instrument(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class Instrument(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'href': 'str', @@ -57,8 +58,45 @@ class Instrument(object): 'links': 'links' } + required_map = { + 'href': 'optional', + 'lusid_instrument_id': 'required', + 'version': 'required', + 'name': 'required', + 'identifiers': 'required', + 'properties': 'optional', + 'lookthrough_portfolio': 'optional', + 'instrument_definition': 'optional', + 'state': 'required', + 'links': 'optional' + } + def __init__(self, href=None, lusid_instrument_id=None, version=None, name=None, identifiers=None, properties=None, lookthrough_portfolio=None, instrument_definition=None, state=None, links=None): # noqa: E501 - """Instrument - a model defined in OpenAPI""" # noqa: E501 + """ + Instrument - a model defined in OpenAPI + + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param lusid_instrument_id: The unique LUSID Instrument Identifier (LUID) of the instrument. (required) + :type lusid_instrument_id: str + :param version: (required) + :type version: lusid.Version + :param name: The name of the instrument. (required) + :type name: str + :param identifiers: The set of identifiers that can be used to identify the instrument. (required) + :type identifiers: dict(str, str) + :param properties: The requested instrument properties. These will be from the 'Instrument' domain. + :type properties: list[lusid.ModelProperty] + :param lookthrough_portfolio: + :type lookthrough_portfolio: lusid.ResourceId + :param instrument_definition: + :type instrument_definition: lusid.InstrumentEconomicDefinition + :param state: The state of of the instrument at the asAt datetime of this version of the instrument definition. (required) + :type state: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._href = None self._lusid_instrument_id = None diff --git a/sdk/lusid/models/instrument_definition.py b/sdk/lusid/models/instrument_definition.py index cf1914db50b..2c5cb88ba8b 100644 --- a/sdk/lusid/models/instrument_definition.py +++ b/sdk/lusid/models/instrument_definition.py @@ -16,7 +16,6 @@ import six - class InstrumentDefinition(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class InstrumentDefinition(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'name': 'str', @@ -47,8 +48,30 @@ class InstrumentDefinition(object): 'definition': 'definition' } + required_map = { + 'name': 'required', + 'identifiers': 'required', + 'properties': 'optional', + 'look_through_portfolio_id': 'optional', + 'definition': 'optional' + } + def __init__(self, name=None, identifiers=None, properties=None, look_through_portfolio_id=None, definition=None): # noqa: E501 - """InstrumentDefinition - a model defined in OpenAPI""" # noqa: E501 + """ + InstrumentDefinition - a model defined in OpenAPI + + :param name: The name of the instrument. (required) + :type name: str + :param identifiers: A set of identifiers that can be used to identify the instrument. At least one of these must be configured to be a unique identifier. (required) + :type identifiers: dict[str, lusid.InstrumentIdValue] + :param properties: Set of unique instrument properties and associated values to store with the instrument. Each property must be from the 'Instrument' domain. + :type properties: list[lusid.ModelProperty] + :param look_through_portfolio_id: + :type look_through_portfolio_id: lusid.ResourceId + :param definition: + :type definition: lusid.InstrumentEconomicDefinition + + """ # noqa: E501 self._name = None self._identifiers = None diff --git a/sdk/lusid/models/instrument_economic_definition.py b/sdk/lusid/models/instrument_economic_definition.py index 0f876792bc6..51ba45e09aa 100644 --- a/sdk/lusid/models/instrument_economic_definition.py +++ b/sdk/lusid/models/instrument_economic_definition.py @@ -16,7 +16,6 @@ import six - class InstrumentEconomicDefinition(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class InstrumentEconomicDefinition(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'instrument_format': 'str', @@ -41,8 +42,21 @@ class InstrumentEconomicDefinition(object): 'content': 'content' } + required_map = { + 'instrument_format': 'required', + 'content': 'required' + } + def __init__(self, instrument_format=None, content=None): # noqa: E501 - """InstrumentEconomicDefinition - a model defined in OpenAPI""" # noqa: E501 + """ + InstrumentEconomicDefinition - a model defined in OpenAPI + + :param instrument_format: The format of the expanded definition. (required) + :type instrument_format: str + :param content: The content of the expanded definition. There is no validation on the format of this. (required) + :type content: str + + """ # noqa: E501 self._instrument_format = None self._content = None diff --git a/sdk/lusid/models/instrument_id_type_descriptor.py b/sdk/lusid/models/instrument_id_type_descriptor.py index 8f6b9cdc79a..7b64443d65d 100644 --- a/sdk/lusid/models/instrument_id_type_descriptor.py +++ b/sdk/lusid/models/instrument_id_type_descriptor.py @@ -16,7 +16,6 @@ import six - class InstrumentIdTypeDescriptor(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class InstrumentIdTypeDescriptor(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'identifier_type': 'str', @@ -43,8 +44,24 @@ class InstrumentIdTypeDescriptor(object): 'is_unique_identifier_type': 'isUniqueIdentifierType' } + required_map = { + 'identifier_type': 'required', + 'property_key': 'required', + 'is_unique_identifier_type': 'required' + } + def __init__(self, identifier_type=None, property_key=None, is_unique_identifier_type=None): # noqa: E501 - """InstrumentIdTypeDescriptor - a model defined in OpenAPI""" # noqa: E501 + """ + InstrumentIdTypeDescriptor - a model defined in OpenAPI + + :param identifier_type: The name of the identifier type. (required) + :type identifier_type: str + :param property_key: The property key that corresponds to the identifier type. (required) + :type property_key: str + :param is_unique_identifier_type: Whether or not the identifier type is enforced to be unique. (required) + :type is_unique_identifier_type: bool + + """ # noqa: E501 self._identifier_type = None self._property_key = None diff --git a/sdk/lusid/models/instrument_id_value.py b/sdk/lusid/models/instrument_id_value.py index 2c5f84c0c7f..6764e9817e3 100644 --- a/sdk/lusid/models/instrument_id_value.py +++ b/sdk/lusid/models/instrument_id_value.py @@ -16,7 +16,6 @@ import six - class InstrumentIdValue(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class InstrumentIdValue(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'value': 'str', @@ -41,8 +42,21 @@ class InstrumentIdValue(object): 'effective_at': 'effectiveAt' } + required_map = { + 'value': 'required', + 'effective_at': 'optional' + } + def __init__(self, value=None, effective_at=None): # noqa: E501 - """InstrumentIdValue - a model defined in OpenAPI""" # noqa: E501 + """ + InstrumentIdValue - a model defined in OpenAPI + + :param value: The value of the identifier. (required) + :type value: str + :param effective_at: The effective datetime from which the identifier will be valid. If left unspecified the default value is the beginning of time. + :type effective_at: datetime + + """ # noqa: E501 self._value = None self._effective_at = None diff --git a/sdk/lusid/models/link.py b/sdk/lusid/models/link.py index 29c033d2802..47cd2fbdbb1 100644 --- a/sdk/lusid/models/link.py +++ b/sdk/lusid/models/link.py @@ -16,7 +16,6 @@ import six - class Link(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class Link(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'relation': 'str', @@ -45,8 +46,27 @@ class Link(object): 'method': 'method' } + required_map = { + 'relation': 'required', + 'href': 'required', + 'description': 'optional', + 'method': 'required' + } + def __init__(self, relation=None, href=None, description=None, method=None): # noqa: E501 - """Link - a model defined in OpenAPI""" # noqa: E501 + """ + Link - a model defined in OpenAPI + + :param relation: (required) + :type relation: str + :param href: (required) + :type href: str + :param description: + :type description: str + :param method: (required) + :type method: str + + """ # noqa: E501 self._relation = None self._href = None diff --git a/sdk/lusid/models/lusid_problem_details.py b/sdk/lusid/models/lusid_problem_details.py index 3c2c340095d..6a58bcb5afd 100644 --- a/sdk/lusid/models/lusid_problem_details.py +++ b/sdk/lusid/models/lusid_problem_details.py @@ -16,7 +16,6 @@ import six - class LusidProblemDetails(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class LusidProblemDetails(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'name': 'str', @@ -53,8 +54,39 @@ class LusidProblemDetails(object): 'instance': 'instance' } + required_map = { + 'name': 'required', + 'error_details': 'optional', + 'code': 'required', + 'type': 'optional', + 'title': 'optional', + 'status': 'optional', + 'detail': 'optional', + 'instance': 'optional' + } + def __init__(self, name=None, error_details=None, code=None, type=None, title=None, status=None, detail=None, instance=None): # noqa: E501 - """LusidProblemDetails - a model defined in OpenAPI""" # noqa: E501 + """ + LusidProblemDetails - a model defined in OpenAPI + + :param name: (required) + :type name: str + :param error_details: + :type error_details: list[dict(str, str)] + :param code: (required) + :type code: int + :param type: + :type type: str + :param title: + :type title: str + :param status: + :type status: int + :param detail: + :type detail: str + :param instance: + :type instance: str + + """ # noqa: E501 self._name = None self._error_details = None diff --git a/sdk/lusid/models/lusid_validation_problem_details.py b/sdk/lusid/models/lusid_validation_problem_details.py index b5729ae0eeb..b02b0305863 100644 --- a/sdk/lusid/models/lusid_validation_problem_details.py +++ b/sdk/lusid/models/lusid_validation_problem_details.py @@ -16,7 +16,6 @@ import six - class LusidValidationProblemDetails(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class LusidValidationProblemDetails(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'name': 'str', @@ -55,8 +56,42 @@ class LusidValidationProblemDetails(object): 'instance': 'instance' } + required_map = { + 'name': 'required', + 'error_details': 'optional', + 'code': 'required', + 'errors': 'optional', + 'type': 'optional', + 'title': 'optional', + 'status': 'optional', + 'detail': 'optional', + 'instance': 'optional' + } + def __init__(self, name=None, error_details=None, code=None, errors=None, type=None, title=None, status=None, detail=None, instance=None): # noqa: E501 - """LusidValidationProblemDetails - a model defined in OpenAPI""" # noqa: E501 + """ + LusidValidationProblemDetails - a model defined in OpenAPI + + :param name: (required) + :type name: str + :param error_details: + :type error_details: list[dict(str, str)] + :param code: (required) + :type code: int + :param errors: + :type errors: dict(str, list[str]) + :param type: + :type type: str + :param title: + :type title: str + :param status: + :type status: int + :param detail: + :type detail: str + :param instance: + :type instance: str + + """ # noqa: E501 self._name = None self._error_details = None diff --git a/sdk/lusid/models/metric_value.py b/sdk/lusid/models/metric_value.py index 94ba292e8e0..7c8ba3b3960 100644 --- a/sdk/lusid/models/metric_value.py +++ b/sdk/lusid/models/metric_value.py @@ -16,7 +16,6 @@ import six - class MetricValue(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class MetricValue(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'value': 'float', @@ -41,8 +42,21 @@ class MetricValue(object): 'unit': 'unit' } + required_map = { + 'value': 'optional', + 'unit': 'optional' + } + def __init__(self, value=None, unit=None): # noqa: E501 - """MetricValue - a model defined in OpenAPI""" # noqa: E501 + """ + MetricValue - a model defined in OpenAPI + + :param value: The numerical value of the property. + :type value: float + :param unit: + :type unit: str + + """ # noqa: E501 self._value = None self._unit = None diff --git a/sdk/lusid/models/model_property.py b/sdk/lusid/models/model_property.py index a321dc9fe37..c9a53418382 100644 --- a/sdk/lusid/models/model_property.py +++ b/sdk/lusid/models/model_property.py @@ -16,7 +16,6 @@ import six - class ModelProperty(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ModelProperty(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'key': 'str', @@ -43,8 +44,24 @@ class ModelProperty(object): 'effective_from': 'effectiveFrom' } + required_map = { + 'key': 'required', + 'value': 'required', + 'effective_from': 'optional' + } + def __init__(self, key=None, value=None, effective_from=None): # noqa: E501 - """ModelProperty - a model defined in OpenAPI""" # noqa: E501 + """ + ModelProperty - a model defined in OpenAPI + + :param key: The key of the property. This takes the format {domain}/{scope}/{code} e.g. 'Instrument/system/Name' or 'Transaction/strategy/quantsignal'. (required) + :type key: str + :param value: (required) + :type value: lusid.PropertyValue + :param effective_from: The effective datetime from which the property is valid. + :type effective_from: datetime + + """ # noqa: E501 self._key = None self._value = None diff --git a/sdk/lusid/models/output_transaction.py b/sdk/lusid/models/output_transaction.py index 9d367f4538d..9940d305b69 100644 --- a/sdk/lusid/models/output_transaction.py +++ b/sdk/lusid/models/output_transaction.py @@ -16,7 +16,6 @@ import six - class OutputTransaction(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class OutputTransaction(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'transaction_id': 'str', @@ -79,8 +80,78 @@ class OutputTransaction(object): 'realised_gain_loss': 'realisedGainLoss' } + required_map = { + 'transaction_id': 'required', + 'type': 'required', + 'description': 'optional', + 'instrument_identifiers': 'optional', + 'instrument_uid': 'required', + 'transaction_date': 'required', + 'settlement_date': 'required', + 'units': 'required', + 'transaction_amount': 'optional', + 'transaction_price': 'optional', + 'total_consideration': 'optional', + 'exchange_rate': 'optional', + 'transaction_to_portfolio_rate': 'optional', + 'transaction_currency': 'optional', + 'properties': 'optional', + 'counterparty_id': 'optional', + 'source': 'optional', + 'transaction_status': 'optional', + 'entry_date_time': 'optional', + 'cancel_date_time': 'optional', + 'realised_gain_loss': 'optional' + } + def __init__(self, transaction_id=None, type=None, description=None, instrument_identifiers=None, instrument_uid=None, transaction_date=None, settlement_date=None, units=None, transaction_amount=None, transaction_price=None, total_consideration=None, exchange_rate=None, transaction_to_portfolio_rate=None, transaction_currency=None, properties=None, counterparty_id=None, source=None, transaction_status=None, entry_date_time=None, cancel_date_time=None, realised_gain_loss=None): # noqa: E501 - """OutputTransaction - a model defined in OpenAPI""" # noqa: E501 + """ + OutputTransaction - a model defined in OpenAPI + + :param transaction_id: The unique identifier for the transaction. (required) + :type transaction_id: str + :param type: The type of the transaction e.g. 'Buy', 'Sell'. The transaction type should have been pre-configured via the System Configuration API endpoint. (required) + :type type: str + :param description: The description of the transaction. This only exists on transactions generated by LUSID e.g. a holdings adjustment transaction. + :type description: str + :param instrument_identifiers: The set of instrument identifiers that can be used to resolve the transaction to a unique instrument. + :type instrument_identifiers: dict(str, str) + :param instrument_uid: The unqiue Lusid Instrument Id (LUID) of the instrument that the transaction is in. (required) + :type instrument_uid: str + :param transaction_date: The date of the transaction. (required) + :type transaction_date: datetime + :param settlement_date: The settlement date of the transaction. (required) + :type settlement_date: datetime + :param units: The number of units transacted in the associated instrument. (required) + :type units: float + :param transaction_amount: The total value of the transaction in the transaction currency. + :type transaction_amount: float + :param transaction_price: + :type transaction_price: lusid.TransactionPrice + :param total_consideration: + :type total_consideration: lusid.CurrencyAndAmount + :param exchange_rate: The exchange rate between the transaction and settlement currency. For example if the transaction currency is in USD and the settlement currency is in GBP this this the USD/GBP rate. + :type exchange_rate: float + :param transaction_to_portfolio_rate: The exchange rate between the transaction and portfolio currency. For example if the transaction currency is in USD and the portfolio currency is in GBP this this the USD/GBP rate. + :type transaction_to_portfolio_rate: float + :param transaction_currency: The transaction currency. + :type transaction_currency: str + :param properties: Set of unique transaction properties and associated values to stored with the transaction. Each property will be from the 'Transaction' domain. + :type properties: dict[str, lusid.PerpetualProperty] + :param counterparty_id: The identifier for the counterparty of the transaction. + :type counterparty_id: str + :param source: The source of the transaction. This is used to look up the appropriate transaction group set in the transaction type configuration. + :type source: str + :param transaction_status: The status of the transaction. + :type transaction_status: str + :param entry_date_time: The asAt datetime that the transaction was added to LUSID. + :type entry_date_time: datetime + :param cancel_date_time: If the transaction has been cancelled, the asAt datetime that the transaction was cancelled. + :type cancel_date_time: datetime + :param realised_gain_loss: The collection of realised gains or losses resulting from relevant transactions e.g. a sale transaction. The cost used in calculating the realised gain or loss is determined by the accounting method defined when the transaction portfolio is created. + :type realised_gain_loss: list[lusid.RealisedGainLoss] + + """ # noqa: E501 self._transaction_id = None self._type = None diff --git a/sdk/lusid/models/perpetual_property.py b/sdk/lusid/models/perpetual_property.py index 86d48294042..01e5c1d2045 100644 --- a/sdk/lusid/models/perpetual_property.py +++ b/sdk/lusid/models/perpetual_property.py @@ -16,7 +16,6 @@ import six - class PerpetualProperty(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class PerpetualProperty(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'key': 'str', @@ -41,8 +42,21 @@ class PerpetualProperty(object): 'value': 'value' } + required_map = { + 'key': 'required', + 'value': 'required' + } + def __init__(self, key=None, value=None): # noqa: E501 - """PerpetualProperty - a model defined in OpenAPI""" # noqa: E501 + """ + PerpetualProperty - a model defined in OpenAPI + + :param key: The key of the property. This takes the format {domain}/{scope}/{code} e.g. 'Instrument/system/Name' or 'Transaction/strategy/quantsignal'. (required) + :type key: str + :param value: (required) + :type value: lusid.PropertyValue + + """ # noqa: E501 self._key = None self._value = None diff --git a/sdk/lusid/models/portfolio.py b/sdk/lusid/models/portfolio.py index dcc7dbc5f3e..e361298dc6d 100644 --- a/sdk/lusid/models/portfolio.py +++ b/sdk/lusid/models/portfolio.py @@ -16,7 +16,6 @@ import six - class Portfolio(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class Portfolio(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'href': 'str', @@ -59,8 +60,48 @@ class Portfolio(object): 'links': 'links' } + required_map = { + 'href': 'optional', + 'id': 'required', + 'type': 'required', + 'display_name': 'required', + 'description': 'optional', + 'created': 'required', + 'parent_portfolio_id': 'optional', + 'version': 'optional', + 'is_derived': 'optional', + 'properties': 'optional', + 'links': 'optional' + } + def __init__(self, href=None, id=None, type=None, display_name=None, description=None, created=None, parent_portfolio_id=None, version=None, is_derived=None, properties=None, links=None): # noqa: E501 - """Portfolio - a model defined in OpenAPI""" # noqa: E501 + """ + Portfolio - a model defined in OpenAPI + + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param id: (required) + :type id: lusid.ResourceId + :param type: The type of the portfolio. (required) + :type type: str + :param display_name: The name of the portfolio. (required) + :type display_name: str + :param description: The long form description of the portfolio. + :type description: str + :param created: The effective datetime at which the portfolio was created. No transactions or constituents can be added to the portfolio before this date. (required) + :type created: datetime + :param parent_portfolio_id: + :type parent_portfolio_id: lusid.ResourceId + :param version: + :type version: lusid.Version + :param is_derived: Whether or not this is a derived portfolio. + :type is_derived: bool + :param properties: The requested portfolio properties. These will be from the 'Portfolio' domain. + :type properties: dict[str, lusid.ModelProperty] + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._href = None self._id = None diff --git a/sdk/lusid/models/portfolio_details.py b/sdk/lusid/models/portfolio_details.py index 6c2e5bb19bc..2641f105f9d 100644 --- a/sdk/lusid/models/portfolio_details.py +++ b/sdk/lusid/models/portfolio_details.py @@ -16,7 +16,6 @@ import six - class PortfolioDetails(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class PortfolioDetails(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'href': 'str', @@ -51,8 +52,36 @@ class PortfolioDetails(object): 'links': 'links' } + required_map = { + 'href': 'optional', + 'origin_portfolio_id': 'required', + 'version': 'required', + 'base_currency': 'required', + 'corporate_action_source_id': 'optional', + 'sub_holding_keys': 'optional', + 'links': 'optional' + } + def __init__(self, href=None, origin_portfolio_id=None, version=None, base_currency=None, corporate_action_source_id=None, sub_holding_keys=None, links=None): # noqa: E501 - """PortfolioDetails - a model defined in OpenAPI""" # noqa: E501 + """ + PortfolioDetails - a model defined in OpenAPI + + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param origin_portfolio_id: (required) + :type origin_portfolio_id: lusid.ResourceId + :param version: (required) + :type version: lusid.Version + :param base_currency: The base currency of the transaction portfolio. (required) + :type base_currency: str + :param corporate_action_source_id: + :type corporate_action_source_id: lusid.ResourceId + :param sub_holding_keys: + :type sub_holding_keys: list[str] + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._href = None self._origin_portfolio_id = None diff --git a/sdk/lusid/models/portfolio_group.py b/sdk/lusid/models/portfolio_group.py index b64a30f1588..2b0bbeb881c 100644 --- a/sdk/lusid/models/portfolio_group.py +++ b/sdk/lusid/models/portfolio_group.py @@ -16,7 +16,6 @@ import six - class PortfolioGroup(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class PortfolioGroup(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'href': 'str', @@ -55,8 +56,42 @@ class PortfolioGroup(object): 'links': 'links' } + required_map = { + 'href': 'optional', + 'id': 'required', + 'display_name': 'required', + 'description': 'optional', + 'created': 'optional', + 'portfolios': 'optional', + 'sub_groups': 'optional', + 'version': 'required', + 'links': 'optional' + } + def __init__(self, href=None, id=None, display_name=None, description=None, created=None, portfolios=None, sub_groups=None, version=None, links=None): # noqa: E501 - """PortfolioGroup - a model defined in OpenAPI""" # noqa: E501 + """ + PortfolioGroup - a model defined in OpenAPI + + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param id: (required) + :type id: lusid.ResourceId + :param display_name: The name of the portfolio group. (required) + :type display_name: str + :param description: The long form description of the portfolio group. + :type description: str + :param created: The effective datetime at which the portfolio group was created. No portfolios or sub groups can be added to the group before this date. + :type created: datetime + :param portfolios: The collection of resource identifiers for the portfolios contained in the portfolio group. + :type portfolios: list[lusid.ResourceId] + :param sub_groups: The collection of resource identifiers for the portfolio groups contained in the portfolio group as sub groups. + :type sub_groups: list[lusid.ResourceId] + :param version: (required) + :type version: lusid.Version + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._href = None self._id = None diff --git a/sdk/lusid/models/portfolio_group_properties.py b/sdk/lusid/models/portfolio_group_properties.py index 2163ae8f982..b23a7831fbb 100644 --- a/sdk/lusid/models/portfolio_group_properties.py +++ b/sdk/lusid/models/portfolio_group_properties.py @@ -16,7 +16,6 @@ import six - class PortfolioGroupProperties(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class PortfolioGroupProperties(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'href': 'str', @@ -45,8 +46,27 @@ class PortfolioGroupProperties(object): 'links': 'links' } + required_map = { + 'href': 'optional', + 'properties': 'optional', + 'version': 'optional', + 'links': 'optional' + } + def __init__(self, href=None, properties=None, version=None, links=None): # noqa: E501 - """PortfolioGroupProperties - a model defined in OpenAPI""" # noqa: E501 + """ + PortfolioGroupProperties - a model defined in OpenAPI + + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param properties: The portfolio group properties. These will be from the 'PortfolioGroup' domain. + :type properties: dict[str, lusid.ModelProperty] + :param version: + :type version: lusid.Version + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._href = None self._properties = None diff --git a/sdk/lusid/models/portfolio_holding.py b/sdk/lusid/models/portfolio_holding.py index f4f7171c016..53286c6aeaa 100644 --- a/sdk/lusid/models/portfolio_holding.py +++ b/sdk/lusid/models/portfolio_holding.py @@ -16,7 +16,6 @@ import six - class PortfolioHolding(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class PortfolioHolding(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'instrument_uid': 'str', @@ -55,8 +56,42 @@ class PortfolioHolding(object): 'transaction': 'transaction' } + required_map = { + 'instrument_uid': 'required', + 'sub_holding_keys': 'optional', + 'properties': 'optional', + 'holding_type': 'required', + 'units': 'required', + 'settled_units': 'required', + 'cost': 'required', + 'cost_portfolio_ccy': 'required', + 'transaction': 'optional' + } + def __init__(self, instrument_uid=None, sub_holding_keys=None, properties=None, holding_type=None, units=None, settled_units=None, cost=None, cost_portfolio_ccy=None, transaction=None): # noqa: E501 - """PortfolioHolding - a model defined in OpenAPI""" # noqa: E501 + """ + PortfolioHolding - a model defined in OpenAPI + + :param instrument_uid: The unqiue Lusid Instrument Id (LUID) of the instrument that the holding is in. (required) + :type instrument_uid: str + :param sub_holding_keys: The sub-holding properties which identify the holding. Each property will be from the 'Transaction' domain. These are configured when a transaction portfolio is created. + :type sub_holding_keys: dict[str, lusid.PerpetualProperty] + :param properties: The properties which have been requested to be decorated onto the holding. These will be from the 'Instrument' or 'Holding' domain. + :type properties: dict[str, lusid.ModelProperty] + :param holding_type: The type of the holding e.g. Position, Balance, CashCommitment, Receivable, ForwardFX etc. (required) + :type holding_type: str + :param units: The total number of units of the holding. (required) + :type units: float + :param settled_units: The total number of settled units of the holding. (required) + :type settled_units: float + :param cost: (required) + :type cost: lusid.CurrencyAndAmount + :param cost_portfolio_ccy: (required) + :type cost_portfolio_ccy: lusid.CurrencyAndAmount + :param transaction: + :type transaction: lusid.Transaction + + """ # noqa: E501 self._instrument_uid = None self._sub_holding_keys = None diff --git a/sdk/lusid/models/portfolio_properties.py b/sdk/lusid/models/portfolio_properties.py index 3553faeb06f..0cdef6cbe78 100644 --- a/sdk/lusid/models/portfolio_properties.py +++ b/sdk/lusid/models/portfolio_properties.py @@ -16,7 +16,6 @@ import six - class PortfolioProperties(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class PortfolioProperties(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'href': 'str', @@ -45,8 +46,27 @@ class PortfolioProperties(object): 'links': 'links' } + required_map = { + 'href': 'optional', + 'properties': 'optional', + 'version': 'optional', + 'links': 'optional' + } + def __init__(self, href=None, properties=None, version=None, links=None): # noqa: E501 - """PortfolioProperties - a model defined in OpenAPI""" # noqa: E501 + """ + PortfolioProperties - a model defined in OpenAPI + + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param properties: The portfolio properties. These will be from the 'Portfolio' domain. + :type properties: dict[str, lusid.ModelProperty] + :param version: + :type version: lusid.Version + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._href = None self._properties = None diff --git a/sdk/lusid/models/portfolio_reconciliation_request.py b/sdk/lusid/models/portfolio_reconciliation_request.py index 8399dcd9fb9..50cd9d3236d 100644 --- a/sdk/lusid/models/portfolio_reconciliation_request.py +++ b/sdk/lusid/models/portfolio_reconciliation_request.py @@ -16,7 +16,6 @@ import six - class PortfolioReconciliationRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class PortfolioReconciliationRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'portfolio_id': 'ResourceId', @@ -43,8 +44,24 @@ class PortfolioReconciliationRequest(object): 'as_at': 'asAt' } + required_map = { + 'portfolio_id': 'required', + 'effective_at': 'required', + 'as_at': 'optional' + } + def __init__(self, portfolio_id=None, effective_at=None, as_at=None): # noqa: E501 - """PortfolioReconciliationRequest - a model defined in OpenAPI""" # noqa: E501 + """ + PortfolioReconciliationRequest - a model defined in OpenAPI + + :param portfolio_id: (required) + :type portfolio_id: lusid.ResourceId + :param effective_at: The effective date of the portfolio (required) + :type effective_at: str + :param as_at: Optional. The AsAt date of the portfolio + :type as_at: datetime + + """ # noqa: E501 self._portfolio_id = None self._effective_at = None diff --git a/sdk/lusid/models/portfolio_search_result.py b/sdk/lusid/models/portfolio_search_result.py index 0d770e2bc24..0c2c8e7c043 100644 --- a/sdk/lusid/models/portfolio_search_result.py +++ b/sdk/lusid/models/portfolio_search_result.py @@ -16,7 +16,6 @@ import six - class PortfolioSearchResult(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class PortfolioSearchResult(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'id': 'ResourceId', @@ -57,8 +58,45 @@ class PortfolioSearchResult(object): 'links': 'links' } + required_map = { + 'id': 'required', + 'type': 'required', + 'href': 'optional', + 'description': 'optional', + 'display_name': 'required', + 'is_derived': 'optional', + 'created': 'required', + 'parent_portfolio_id': 'optional', + 'properties': 'optional', + 'links': 'optional' + } + def __init__(self, id=None, type=None, href=None, description=None, display_name=None, is_derived=None, created=None, parent_portfolio_id=None, properties=None, links=None): # noqa: E501 - """PortfolioSearchResult - a model defined in OpenAPI""" # noqa: E501 + """ + PortfolioSearchResult - a model defined in OpenAPI + + :param id: (required) + :type id: lusid.ResourceId + :param type: The type of the portfolio. (required) + :type type: str + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param description: The long form description of the portfolio. + :type description: str + :param display_name: The name of the portfolio. (required) + :type display_name: str + :param is_derived: Whether or not this is a derived portfolio. + :type is_derived: bool + :param created: The effective datetime at which the portfolio was created. No transactions or constituents can be added to the portfolio before this date. (required) + :type created: datetime + :param parent_portfolio_id: + :type parent_portfolio_id: lusid.ResourceId + :param properties: The requested portfolio properties. These will be from the 'Portfolio' domain. + :type properties: list[lusid.ModelProperty] + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._id = None self._type = None diff --git a/sdk/lusid/models/portfolios_reconciliation_request.py b/sdk/lusid/models/portfolios_reconciliation_request.py index e9644af32d9..56be871dfcb 100644 --- a/sdk/lusid/models/portfolios_reconciliation_request.py +++ b/sdk/lusid/models/portfolios_reconciliation_request.py @@ -16,7 +16,6 @@ import six - class PortfoliosReconciliationRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class PortfoliosReconciliationRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'left': 'PortfolioReconciliationRequest', @@ -43,8 +44,24 @@ class PortfoliosReconciliationRequest(object): 'instrument_property_keys': 'instrumentPropertyKeys' } + required_map = { + 'left': 'required', + 'right': 'required', + 'instrument_property_keys': 'required' + } + def __init__(self, left=None, right=None, instrument_property_keys=None): # noqa: E501 - """PortfoliosReconciliationRequest - a model defined in OpenAPI""" # noqa: E501 + """ + PortfoliosReconciliationRequest - a model defined in OpenAPI + + :param left: (required) + :type left: lusid.PortfolioReconciliationRequest + :param right: (required) + :type right: lusid.PortfolioReconciliationRequest + :param instrument_property_keys: Instrument properties to be included with any identified breaks. These properties will be in the effective and AsAt dates of the left portfolio (required) + :type instrument_property_keys: list[str] + + """ # noqa: E501 self._left = None self._right = None diff --git a/sdk/lusid/models/processed_command.py b/sdk/lusid/models/processed_command.py index 11e07fe6194..755affe54b7 100644 --- a/sdk/lusid/models/processed_command.py +++ b/sdk/lusid/models/processed_command.py @@ -16,7 +16,6 @@ import six - class ProcessedCommand(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ProcessedCommand(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'description': 'str', @@ -45,8 +46,27 @@ class ProcessedCommand(object): 'processed_time': 'processedTime' } + required_map = { + 'description': 'required', + 'path': 'optional', + 'user_id': 'required', + 'processed_time': 'required' + } + def __init__(self, description=None, path=None, user_id=None, processed_time=None): # noqa: E501 - """ProcessedCommand - a model defined in OpenAPI""" # noqa: E501 + """ + ProcessedCommand - a model defined in OpenAPI + + :param description: The description of the command issued. (required) + :type description: str + :param path: The unique identifier for the command including the request id. + :type path: str + :param user_id: (required) + :type user_id: lusid.User + :param processed_time: The asAt datetime that the events published by the processing of this command were committed to LUSID. (required) + :type processed_time: datetime + + """ # noqa: E501 self._description = None self._path = None diff --git a/sdk/lusid/models/property_definition.py b/sdk/lusid/models/property_definition.py index ed4afc46301..7b93a2d1669 100644 --- a/sdk/lusid/models/property_definition.py +++ b/sdk/lusid/models/property_definition.py @@ -16,7 +16,6 @@ import six - class PropertyDefinition(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class PropertyDefinition(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'href': 'str', @@ -63,8 +64,54 @@ class PropertyDefinition(object): 'links': 'links' } + required_map = { + 'href': 'optional', + 'key': 'optional', + 'value_type': 'optional', + 'value_required': 'optional', + 'display_name': 'optional', + 'data_type_id': 'optional', + 'life_time': 'optional', + 'type': 'optional', + 'unit_schema': 'optional', + 'domain': 'optional', + 'scope': 'optional', + 'code': 'optional', + 'links': 'optional' + } + def __init__(self, href=None, key=None, value_type=None, value_required=None, display_name=None, data_type_id=None, life_time=None, type=None, unit_schema=None, domain=None, scope=None, code=None, links=None): # noqa: E501 - """PropertyDefinition - a model defined in OpenAPI""" # noqa: E501 + """ + PropertyDefinition - a model defined in OpenAPI + + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param key: The property key which uniquely identifies the property. The format for the property key is {domain}/{scope}/{code}, e.g. 'Portfolio/Manager/Id'. + :type key: str + :param value_type: The type of values that can be associated with this property. This is defined by the property's data type. + :type value_type: str + :param value_required: Whether or not a value is always required for this property. + :type value_required: bool + :param display_name: The display name of the property. + :type display_name: str + :param data_type_id: + :type data_type_id: lusid.ResourceId + :param life_time: Describes how the property's values can change over time. + :type life_time: str + :param type: The type of the property. + :type type: str + :param unit_schema: The units that can be associated with the property's values. This is defined by the property's data type. + :type unit_schema: str + :param domain: The domain that the property exists in. + :type domain: str + :param scope: The scope that the property exists in. + :type scope: str + :param code: The code of the property. Together with the domain and scope this uniquely identifies the property. + :type code: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._href = None self._key = None diff --git a/sdk/lusid/models/property_value.py b/sdk/lusid/models/property_value.py index b1a38b20279..f81f2b417eb 100644 --- a/sdk/lusid/models/property_value.py +++ b/sdk/lusid/models/property_value.py @@ -16,7 +16,6 @@ import six - class PropertyValue(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class PropertyValue(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'label_value': 'str', @@ -41,8 +42,21 @@ class PropertyValue(object): 'metric_value': 'metricValue' } + required_map = { + 'label_value': 'optional', + 'metric_value': 'optional' + } + def __init__(self, label_value=None, metric_value=None): # noqa: E501 - """PropertyValue - a model defined in OpenAPI""" # noqa: E501 + """ + PropertyValue - a model defined in OpenAPI + + :param label_value: The text value of a property defined as having the 'Label' type. + :type label_value: str + :param metric_value: + :type metric_value: lusid.MetricValue + + """ # noqa: E501 self._label_value = None self._metric_value = None diff --git a/sdk/lusid/models/realised_gain_loss.py b/sdk/lusid/models/realised_gain_loss.py index 9d39635390a..91d474a9c9b 100644 --- a/sdk/lusid/models/realised_gain_loss.py +++ b/sdk/lusid/models/realised_gain_loss.py @@ -16,7 +16,6 @@ import six - class RealisedGainLoss(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class RealisedGainLoss(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'instrument_uid': 'str', @@ -59,8 +60,48 @@ class RealisedGainLoss(object): 'realised_currency': 'realisedCurrency' } + required_map = { + 'instrument_uid': 'required', + 'units': 'required', + 'purchase_trade_date': 'optional', + 'purchase_settlement_date': 'optional', + 'purchase_price': 'optional', + 'cost_trade_ccy': 'required', + 'cost_portfolio_ccy': 'required', + 'realised_trade_ccy': 'required', + 'realised_total': 'required', + 'realised_market': 'optional', + 'realised_currency': 'optional' + } + def __init__(self, instrument_uid=None, units=None, purchase_trade_date=None, purchase_settlement_date=None, purchase_price=None, cost_trade_ccy=None, cost_portfolio_ccy=None, realised_trade_ccy=None, realised_total=None, realised_market=None, realised_currency=None): # noqa: E501 - """RealisedGainLoss - a model defined in OpenAPI""" # noqa: E501 + """ + RealisedGainLoss - a model defined in OpenAPI + + :param instrument_uid: The unqiue Lusid Instrument Id (LUID) of the instrument that this gain or loss is associated with. (required) + :type instrument_uid: str + :param units: The number of units of the associated instrument against which the gain or loss has been realised. (required) + :type units: float + :param purchase_trade_date: The effective datetime that the units associated with this gain or loss where originally purchased. + :type purchase_trade_date: datetime + :param purchase_settlement_date: The effective datetime that the units associated with this gain or loss where originally settled. + :type purchase_settlement_date: datetime + :param purchase_price: The purchase price of each unit associated with this gain or loss. + :type purchase_price: float + :param cost_trade_ccy: (required) + :type cost_trade_ccy: lusid.CurrencyAndAmount + :param cost_portfolio_ccy: (required) + :type cost_portfolio_ccy: lusid.CurrencyAndAmount + :param realised_trade_ccy: (required) + :type realised_trade_ccy: lusid.CurrencyAndAmount + :param realised_total: (required) + :type realised_total: lusid.CurrencyAndAmount + :param realised_market: + :type realised_market: lusid.CurrencyAndAmount + :param realised_currency: + :type realised_currency: lusid.CurrencyAndAmount + + """ # noqa: E501 self._instrument_uid = None self._units = None diff --git a/sdk/lusid/models/reconciliation_break.py b/sdk/lusid/models/reconciliation_break.py index 9a968645786..5dc12f19ac1 100644 --- a/sdk/lusid/models/reconciliation_break.py +++ b/sdk/lusid/models/reconciliation_break.py @@ -16,7 +16,6 @@ import six - class ReconciliationBreak(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ReconciliationBreak(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'instrument_uid': 'str', @@ -55,8 +56,42 @@ class ReconciliationBreak(object): 'instrument_properties': 'instrumentProperties' } + required_map = { + 'instrument_uid': 'required', + 'sub_holding_keys': 'required', + 'left_units': 'required', + 'right_units': 'required', + 'difference_units': 'required', + 'left_cost': 'required', + 'right_cost': 'required', + 'difference_cost': 'required', + 'instrument_properties': 'required' + } + def __init__(self, instrument_uid=None, sub_holding_keys=None, left_units=None, right_units=None, difference_units=None, left_cost=None, right_cost=None, difference_cost=None, instrument_properties=None): # noqa: E501 - """ReconciliationBreak - a model defined in OpenAPI""" # noqa: E501 + """ + ReconciliationBreak - a model defined in OpenAPI + + :param instrument_uid: Unique instrument identifier (required) + :type instrument_uid: str + :param sub_holding_keys: Any other properties that comprise the Sub-Holding Key (required) + :type sub_holding_keys: dict[str, lusid.PerpetualProperty] + :param left_units: Units from the left hand side (required) + :type left_units: float + :param right_units: Units from the right hand side (required) + :type right_units: float + :param difference_units: Difference in units (required) + :type difference_units: float + :param left_cost: (required) + :type left_cost: lusid.CurrencyAndAmount + :param right_cost: (required) + :type right_cost: lusid.CurrencyAndAmount + :param difference_cost: (required) + :type difference_cost: lusid.CurrencyAndAmount + :param instrument_properties: Additional features relating to the instrument (required) + :type instrument_properties: list[lusid.ModelProperty] + + """ # noqa: E501 self._instrument_uid = None self._sub_holding_keys = None diff --git a/sdk/lusid/models/reference_portfolio_constituent.py b/sdk/lusid/models/reference_portfolio_constituent.py index a30e67d9987..10de6c5ace0 100644 --- a/sdk/lusid/models/reference_portfolio_constituent.py +++ b/sdk/lusid/models/reference_portfolio_constituent.py @@ -16,7 +16,6 @@ import six - class ReferencePortfolioConstituent(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ReferencePortfolioConstituent(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'instrument_identifiers': 'dict(str, str)', @@ -49,8 +50,33 @@ class ReferencePortfolioConstituent(object): 'floating_weight': 'floatingWeight' } + required_map = { + 'instrument_identifiers': 'optional', + 'instrument_uid': 'required', + 'currency': 'required', + 'properties': 'optional', + 'weight': 'required', + 'floating_weight': 'optional' + } + def __init__(self, instrument_identifiers=None, instrument_uid=None, currency=None, properties=None, weight=None, floating_weight=None): # noqa: E501 - """ReferencePortfolioConstituent - a model defined in OpenAPI""" # noqa: E501 + """ + ReferencePortfolioConstituent - a model defined in OpenAPI + + :param instrument_identifiers: Unique instrument identifiers + :type instrument_identifiers: dict(str, str) + :param instrument_uid: LUSID's internal unique instrument identifier, resolved from the instrument identifiers (required) + :type instrument_uid: str + :param currency: (required) + :type currency: str + :param properties: Properties associated with the constituent + :type properties: dict[str, lusid.PerpetualProperty] + :param weight: (required) + :type weight: float + :param floating_weight: + :type floating_weight: float + + """ # noqa: E501 self._instrument_identifiers = None self._instrument_uid = None diff --git a/sdk/lusid/models/reference_portfolio_constituent_request.py b/sdk/lusid/models/reference_portfolio_constituent_request.py index 8fffc8e5338..ef68d78f801 100644 --- a/sdk/lusid/models/reference_portfolio_constituent_request.py +++ b/sdk/lusid/models/reference_portfolio_constituent_request.py @@ -16,7 +16,6 @@ import six - class ReferencePortfolioConstituentRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ReferencePortfolioConstituentRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'instrument_identifiers': 'dict(str, str)', @@ -45,8 +46,27 @@ class ReferencePortfolioConstituentRequest(object): 'currency': 'currency' } + required_map = { + 'instrument_identifiers': 'required', + 'properties': 'optional', + 'weight': 'required', + 'currency': 'optional' + } + def __init__(self, instrument_identifiers=None, properties=None, weight=None, currency=None): # noqa: E501 - """ReferencePortfolioConstituentRequest - a model defined in OpenAPI""" # noqa: E501 + """ + ReferencePortfolioConstituentRequest - a model defined in OpenAPI + + :param instrument_identifiers: Unique instrument identifiers (required) + :type instrument_identifiers: dict(str, str) + :param properties: + :type properties: dict[str, lusid.PerpetualProperty] + :param weight: (required) + :type weight: float + :param currency: + :type currency: str + + """ # noqa: E501 self._instrument_identifiers = None self._properties = None diff --git a/sdk/lusid/models/resource_id.py b/sdk/lusid/models/resource_id.py index a479ed5f039..6a8c39b3d8b 100644 --- a/sdk/lusid/models/resource_id.py +++ b/sdk/lusid/models/resource_id.py @@ -16,7 +16,6 @@ import six - class ResourceId(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ResourceId(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'scope': 'str', @@ -41,8 +42,21 @@ class ResourceId(object): 'code': 'code' } + required_map = { + 'scope': 'optional', + 'code': 'optional' + } + def __init__(self, scope=None, code=None): # noqa: E501 - """ResourceId - a model defined in OpenAPI""" # noqa: E501 + """ + ResourceId - a model defined in OpenAPI + + :param scope: + :type scope: str + :param code: + :type code: str + + """ # noqa: E501 self._scope = None self._code = None diff --git a/sdk/lusid/models/resource_list_of_access_controlled_resource.py b/sdk/lusid/models/resource_list_of_access_controlled_resource.py index 49c8543aa61..265847567b7 100644 --- a/sdk/lusid/models/resource_list_of_access_controlled_resource.py +++ b/sdk/lusid/models/resource_list_of_access_controlled_resource.py @@ -16,7 +16,6 @@ import six - class ResourceListOfAccessControlledResource(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ResourceListOfAccessControlledResource(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'values': 'list[AccessControlledResource]', @@ -43,8 +44,24 @@ class ResourceListOfAccessControlledResource(object): 'links': 'links' } + required_map = { + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, values=None, href=None, links=None): # noqa: E501 - """ResourceListOfAccessControlledResource - a model defined in OpenAPI""" # noqa: E501 + """ + ResourceListOfAccessControlledResource - a model defined in OpenAPI + + :param values: (required) + :type values: list[lusid.AccessControlledResource] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._values = None self._href = None diff --git a/sdk/lusid/models/resource_list_of_constituents_adjustment_header.py b/sdk/lusid/models/resource_list_of_constituents_adjustment_header.py index e8ab8c583d1..9c735c5a1af 100644 --- a/sdk/lusid/models/resource_list_of_constituents_adjustment_header.py +++ b/sdk/lusid/models/resource_list_of_constituents_adjustment_header.py @@ -16,7 +16,6 @@ import six - class ResourceListOfConstituentsAdjustmentHeader(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ResourceListOfConstituentsAdjustmentHeader(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'values': 'list[ConstituentsAdjustmentHeader]', @@ -43,8 +44,24 @@ class ResourceListOfConstituentsAdjustmentHeader(object): 'links': 'links' } + required_map = { + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, values=None, href=None, links=None): # noqa: E501 - """ResourceListOfConstituentsAdjustmentHeader - a model defined in OpenAPI""" # noqa: E501 + """ + ResourceListOfConstituentsAdjustmentHeader - a model defined in OpenAPI + + :param values: (required) + :type values: list[lusid.ConstituentsAdjustmentHeader] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._values = None self._href = None diff --git a/sdk/lusid/models/resource_list_of_cut_label_definition.py b/sdk/lusid/models/resource_list_of_cut_label_definition.py index 56885e92385..6fe1af31e36 100644 --- a/sdk/lusid/models/resource_list_of_cut_label_definition.py +++ b/sdk/lusid/models/resource_list_of_cut_label_definition.py @@ -16,7 +16,6 @@ import six - class ResourceListOfCutLabelDefinition(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ResourceListOfCutLabelDefinition(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'values': 'list[CutLabelDefinition]', @@ -43,8 +44,24 @@ class ResourceListOfCutLabelDefinition(object): 'links': 'links' } + required_map = { + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, values=None, href=None, links=None): # noqa: E501 - """ResourceListOfCutLabelDefinition - a model defined in OpenAPI""" # noqa: E501 + """ + ResourceListOfCutLabelDefinition - a model defined in OpenAPI + + :param values: (required) + :type values: list[lusid.CutLabelDefinition] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._values = None self._href = None diff --git a/sdk/lusid/models/resource_list_of_data_type.py b/sdk/lusid/models/resource_list_of_data_type.py index b3a2e517c2b..2d658f9c6d1 100644 --- a/sdk/lusid/models/resource_list_of_data_type.py +++ b/sdk/lusid/models/resource_list_of_data_type.py @@ -16,7 +16,6 @@ import six - class ResourceListOfDataType(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ResourceListOfDataType(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'values': 'list[DataType]', @@ -43,8 +44,24 @@ class ResourceListOfDataType(object): 'links': 'links' } + required_map = { + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, values=None, href=None, links=None): # noqa: E501 - """ResourceListOfDataType - a model defined in OpenAPI""" # noqa: E501 + """ + ResourceListOfDataType - a model defined in OpenAPI + + :param values: (required) + :type values: list[lusid.DataType] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._values = None self._href = None diff --git a/sdk/lusid/models/resource_list_of_holdings_adjustment_header.py b/sdk/lusid/models/resource_list_of_holdings_adjustment_header.py index 9d4b88bb9dd..b33edcc8dd9 100644 --- a/sdk/lusid/models/resource_list_of_holdings_adjustment_header.py +++ b/sdk/lusid/models/resource_list_of_holdings_adjustment_header.py @@ -16,7 +16,6 @@ import six - class ResourceListOfHoldingsAdjustmentHeader(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ResourceListOfHoldingsAdjustmentHeader(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'values': 'list[HoldingsAdjustmentHeader]', @@ -43,8 +44,24 @@ class ResourceListOfHoldingsAdjustmentHeader(object): 'links': 'links' } + required_map = { + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, values=None, href=None, links=None): # noqa: E501 - """ResourceListOfHoldingsAdjustmentHeader - a model defined in OpenAPI""" # noqa: E501 + """ + ResourceListOfHoldingsAdjustmentHeader - a model defined in OpenAPI + + :param values: (required) + :type values: list[lusid.HoldingsAdjustmentHeader] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._values = None self._href = None diff --git a/sdk/lusid/models/resource_list_of_i_unit_definition_dto.py b/sdk/lusid/models/resource_list_of_i_unit_definition_dto.py index 3dbedc5d176..70dda406e61 100644 --- a/sdk/lusid/models/resource_list_of_i_unit_definition_dto.py +++ b/sdk/lusid/models/resource_list_of_i_unit_definition_dto.py @@ -16,7 +16,6 @@ import six - class ResourceListOfIUnitDefinitionDto(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ResourceListOfIUnitDefinitionDto(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'values': 'list[IUnitDefinitionDto]', @@ -43,8 +44,24 @@ class ResourceListOfIUnitDefinitionDto(object): 'links': 'links' } + required_map = { + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, values=None, href=None, links=None): # noqa: E501 - """ResourceListOfIUnitDefinitionDto - a model defined in OpenAPI""" # noqa: E501 + """ + ResourceListOfIUnitDefinitionDto - a model defined in OpenAPI + + :param values: (required) + :type values: list[lusid.IUnitDefinitionDto] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._values = None self._href = None diff --git a/sdk/lusid/models/resource_list_of_instrument.py b/sdk/lusid/models/resource_list_of_instrument.py index eb6be15db50..b57299b15e7 100644 --- a/sdk/lusid/models/resource_list_of_instrument.py +++ b/sdk/lusid/models/resource_list_of_instrument.py @@ -16,7 +16,6 @@ import six - class ResourceListOfInstrument(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ResourceListOfInstrument(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'values': 'list[Instrument]', @@ -43,8 +44,24 @@ class ResourceListOfInstrument(object): 'links': 'links' } + required_map = { + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, values=None, href=None, links=None): # noqa: E501 - """ResourceListOfInstrument - a model defined in OpenAPI""" # noqa: E501 + """ + ResourceListOfInstrument - a model defined in OpenAPI + + :param values: (required) + :type values: list[lusid.Instrument] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._values = None self._href = None diff --git a/sdk/lusid/models/resource_list_of_instrument_id_type_descriptor.py b/sdk/lusid/models/resource_list_of_instrument_id_type_descriptor.py index 875561b37cd..92cf8fb1d40 100644 --- a/sdk/lusid/models/resource_list_of_instrument_id_type_descriptor.py +++ b/sdk/lusid/models/resource_list_of_instrument_id_type_descriptor.py @@ -16,7 +16,6 @@ import six - class ResourceListOfInstrumentIdTypeDescriptor(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ResourceListOfInstrumentIdTypeDescriptor(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'values': 'list[InstrumentIdTypeDescriptor]', @@ -43,8 +44,24 @@ class ResourceListOfInstrumentIdTypeDescriptor(object): 'links': 'links' } + required_map = { + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, values=None, href=None, links=None): # noqa: E501 - """ResourceListOfInstrumentIdTypeDescriptor - a model defined in OpenAPI""" # noqa: E501 + """ + ResourceListOfInstrumentIdTypeDescriptor - a model defined in OpenAPI + + :param values: (required) + :type values: list[lusid.InstrumentIdTypeDescriptor] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._values = None self._href = None diff --git a/sdk/lusid/models/resource_list_of_portfolio.py b/sdk/lusid/models/resource_list_of_portfolio.py index 936438347d2..93caf469129 100644 --- a/sdk/lusid/models/resource_list_of_portfolio.py +++ b/sdk/lusid/models/resource_list_of_portfolio.py @@ -16,7 +16,6 @@ import six - class ResourceListOfPortfolio(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ResourceListOfPortfolio(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'values': 'list[Portfolio]', @@ -43,8 +44,24 @@ class ResourceListOfPortfolio(object): 'links': 'links' } + required_map = { + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, values=None, href=None, links=None): # noqa: E501 - """ResourceListOfPortfolio - a model defined in OpenAPI""" # noqa: E501 + """ + ResourceListOfPortfolio - a model defined in OpenAPI + + :param values: (required) + :type values: list[lusid.Portfolio] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._values = None self._href = None diff --git a/sdk/lusid/models/resource_list_of_portfolio_group.py b/sdk/lusid/models/resource_list_of_portfolio_group.py index 3a7cc1dbcdc..79d6c442e2b 100644 --- a/sdk/lusid/models/resource_list_of_portfolio_group.py +++ b/sdk/lusid/models/resource_list_of_portfolio_group.py @@ -16,7 +16,6 @@ import six - class ResourceListOfPortfolioGroup(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ResourceListOfPortfolioGroup(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'values': 'list[PortfolioGroup]', @@ -43,8 +44,24 @@ class ResourceListOfPortfolioGroup(object): 'links': 'links' } + required_map = { + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, values=None, href=None, links=None): # noqa: E501 - """ResourceListOfPortfolioGroup - a model defined in OpenAPI""" # noqa: E501 + """ + ResourceListOfPortfolioGroup - a model defined in OpenAPI + + :param values: (required) + :type values: list[lusid.PortfolioGroup] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._values = None self._href = None diff --git a/sdk/lusid/models/resource_list_of_portfolio_search_result.py b/sdk/lusid/models/resource_list_of_portfolio_search_result.py index 46ea0f3e6d1..f265c556256 100644 --- a/sdk/lusid/models/resource_list_of_portfolio_search_result.py +++ b/sdk/lusid/models/resource_list_of_portfolio_search_result.py @@ -16,7 +16,6 @@ import six - class ResourceListOfPortfolioSearchResult(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ResourceListOfPortfolioSearchResult(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'values': 'list[PortfolioSearchResult]', @@ -43,8 +44,24 @@ class ResourceListOfPortfolioSearchResult(object): 'links': 'links' } + required_map = { + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, values=None, href=None, links=None): # noqa: E501 - """ResourceListOfPortfolioSearchResult - a model defined in OpenAPI""" # noqa: E501 + """ + ResourceListOfPortfolioSearchResult - a model defined in OpenAPI + + :param values: (required) + :type values: list[lusid.PortfolioSearchResult] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._values = None self._href = None diff --git a/sdk/lusid/models/resource_list_of_processed_command.py b/sdk/lusid/models/resource_list_of_processed_command.py index 131bd6c3600..53b8901e048 100644 --- a/sdk/lusid/models/resource_list_of_processed_command.py +++ b/sdk/lusid/models/resource_list_of_processed_command.py @@ -16,7 +16,6 @@ import six - class ResourceListOfProcessedCommand(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ResourceListOfProcessedCommand(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'values': 'list[ProcessedCommand]', @@ -43,8 +44,24 @@ class ResourceListOfProcessedCommand(object): 'links': 'links' } + required_map = { + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, values=None, href=None, links=None): # noqa: E501 - """ResourceListOfProcessedCommand - a model defined in OpenAPI""" # noqa: E501 + """ + ResourceListOfProcessedCommand - a model defined in OpenAPI + + :param values: (required) + :type values: list[lusid.ProcessedCommand] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._values = None self._href = None diff --git a/sdk/lusid/models/resource_list_of_property_definition.py b/sdk/lusid/models/resource_list_of_property_definition.py index 508e64296c4..b31894a3ec9 100644 --- a/sdk/lusid/models/resource_list_of_property_definition.py +++ b/sdk/lusid/models/resource_list_of_property_definition.py @@ -16,7 +16,6 @@ import six - class ResourceListOfPropertyDefinition(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ResourceListOfPropertyDefinition(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'values': 'list[PropertyDefinition]', @@ -43,8 +44,24 @@ class ResourceListOfPropertyDefinition(object): 'links': 'links' } + required_map = { + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, values=None, href=None, links=None): # noqa: E501 - """ResourceListOfPropertyDefinition - a model defined in OpenAPI""" # noqa: E501 + """ + ResourceListOfPropertyDefinition - a model defined in OpenAPI + + :param values: (required) + :type values: list[lusid.PropertyDefinition] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._values = None self._href = None diff --git a/sdk/lusid/models/resource_list_of_reconciliation_break.py b/sdk/lusid/models/resource_list_of_reconciliation_break.py index f4672bd623f..209e0f07afe 100644 --- a/sdk/lusid/models/resource_list_of_reconciliation_break.py +++ b/sdk/lusid/models/resource_list_of_reconciliation_break.py @@ -16,7 +16,6 @@ import six - class ResourceListOfReconciliationBreak(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ResourceListOfReconciliationBreak(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'values': 'list[ReconciliationBreak]', @@ -43,8 +44,24 @@ class ResourceListOfReconciliationBreak(object): 'links': 'links' } + required_map = { + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, values=None, href=None, links=None): # noqa: E501 - """ResourceListOfReconciliationBreak - a model defined in OpenAPI""" # noqa: E501 + """ + ResourceListOfReconciliationBreak - a model defined in OpenAPI + + :param values: (required) + :type values: list[lusid.ReconciliationBreak] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._values = None self._href = None diff --git a/sdk/lusid/models/resource_list_of_scope_definition.py b/sdk/lusid/models/resource_list_of_scope_definition.py index 8e1d4fa877b..5fcf9d18332 100644 --- a/sdk/lusid/models/resource_list_of_scope_definition.py +++ b/sdk/lusid/models/resource_list_of_scope_definition.py @@ -16,7 +16,6 @@ import six - class ResourceListOfScopeDefinition(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ResourceListOfScopeDefinition(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'values': 'list[ScopeDefinition]', @@ -43,8 +44,24 @@ class ResourceListOfScopeDefinition(object): 'links': 'links' } + required_map = { + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, values=None, href=None, links=None): # noqa: E501 - """ResourceListOfScopeDefinition - a model defined in OpenAPI""" # noqa: E501 + """ + ResourceListOfScopeDefinition - a model defined in OpenAPI + + :param values: (required) + :type values: list[lusid.ScopeDefinition] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._values = None self._href = None diff --git a/sdk/lusid/models/scope_definition.py b/sdk/lusid/models/scope_definition.py index a8d0e13ef30..fbb175a9687 100644 --- a/sdk/lusid/models/scope_definition.py +++ b/sdk/lusid/models/scope_definition.py @@ -16,7 +16,6 @@ import six - class ScopeDefinition(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class ScopeDefinition(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'scope': 'str' @@ -39,8 +40,18 @@ class ScopeDefinition(object): 'scope': 'scope' } + required_map = { + 'scope': 'required' + } + def __init__(self, scope=None): # noqa: E501 - """ScopeDefinition - a model defined in OpenAPI""" # noqa: E501 + """ + ScopeDefinition - a model defined in OpenAPI + + :param scope: The unique identifier for the scope. (required) + :type scope: str + + """ # noqa: E501 self._scope = None self.discriminator = None diff --git a/sdk/lusid/models/side_configuration_data.py b/sdk/lusid/models/side_configuration_data.py index 72bd46388c2..b0689d53846 100644 --- a/sdk/lusid/models/side_configuration_data.py +++ b/sdk/lusid/models/side_configuration_data.py @@ -16,7 +16,6 @@ import six - class SideConfigurationData(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class SideConfigurationData(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'side': 'str', @@ -51,8 +52,36 @@ class SideConfigurationData(object): 'links': 'links' } + required_map = { + 'side': 'required', + 'security': 'required', + 'currency': 'required', + 'rate': 'required', + 'units': 'required', + 'amount': 'required', + 'links': 'optional' + } + def __init__(self, side=None, security=None, currency=None, rate=None, units=None, amount=None, links=None): # noqa: E501 - """SideConfigurationData - a model defined in OpenAPI""" # noqa: E501 + """ + SideConfigurationData - a model defined in OpenAPI + + :param side: The side's label. (required) + :type side: str + :param security: The security, or instrument. (required) + :type security: str + :param currency: The currency. (required) + :type currency: str + :param rate: The rate. (required) + :type rate: str + :param units: The units. (required) + :type units: str + :param amount: The amount. (required) + :type amount: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._side = None self._security = None diff --git a/sdk/lusid/models/stream.py b/sdk/lusid/models/stream.py index c02d4709d39..7edb92a216f 100644 --- a/sdk/lusid/models/stream.py +++ b/sdk/lusid/models/stream.py @@ -16,7 +16,6 @@ import six - class Stream(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class Stream(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'can_read': 'bool', @@ -53,8 +54,39 @@ class Stream(object): 'write_timeout': 'writeTimeout' } + required_map = { + 'can_read': 'optional', + 'can_seek': 'optional', + 'can_timeout': 'optional', + 'can_write': 'optional', + 'length': 'optional', + 'position': 'optional', + 'read_timeout': 'optional', + 'write_timeout': 'optional' + } + def __init__(self, can_read=None, can_seek=None, can_timeout=None, can_write=None, length=None, position=None, read_timeout=None, write_timeout=None): # noqa: E501 - """Stream - a model defined in OpenAPI""" # noqa: E501 + """ + Stream - a model defined in OpenAPI + + :param can_read: + :type can_read: bool + :param can_seek: + :type can_seek: bool + :param can_timeout: + :type can_timeout: bool + :param can_write: + :type can_write: bool + :param length: + :type length: int + :param position: + :type position: int + :param read_timeout: + :type read_timeout: int + :param write_timeout: + :type write_timeout: int + + """ # noqa: E501 self._can_read = None self._can_seek = None diff --git a/sdk/lusid/models/target_tax_lot.py b/sdk/lusid/models/target_tax_lot.py index 9e5813e716f..fcc9f5cd63b 100644 --- a/sdk/lusid/models/target_tax_lot.py +++ b/sdk/lusid/models/target_tax_lot.py @@ -16,7 +16,6 @@ import six - class TargetTaxLot(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class TargetTaxLot(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'units': 'float', @@ -49,8 +50,33 @@ class TargetTaxLot(object): 'settlement_date': 'settlementDate' } + required_map = { + 'units': 'required', + 'cost': 'optional', + 'portfolio_cost': 'optional', + 'price': 'optional', + 'purchase_date': 'optional', + 'settlement_date': 'optional' + } + def __init__(self, units=None, cost=None, portfolio_cost=None, price=None, purchase_date=None, settlement_date=None): # noqa: E501 - """TargetTaxLot - a model defined in OpenAPI""" # noqa: E501 + """ + TargetTaxLot - a model defined in OpenAPI + + :param units: The number of units of the instrument in this tax-lot. (required) + :type units: float + :param cost: + :type cost: lusid.CurrencyAndAmount + :param portfolio_cost: The total cost of the tax-lot in the transaction portfolio's base currency. + :type portfolio_cost: float + :param price: The purchase price of each unit of the instrument held in this tax-lot. This forms part of the unique key required for multiple tax-lots. + :type price: float + :param purchase_date: The purchase date of this tax-lot. This forms part of the unique key required for multiple tax-lots. + :type purchase_date: datetime + :param settlement_date: The settlement date of the tax-lot's opening transaction. + :type settlement_date: datetime + + """ # noqa: E501 self._units = None self._cost = None diff --git a/sdk/lusid/models/target_tax_lot_request.py b/sdk/lusid/models/target_tax_lot_request.py index 958e08bbdb2..79baea28691 100644 --- a/sdk/lusid/models/target_tax_lot_request.py +++ b/sdk/lusid/models/target_tax_lot_request.py @@ -16,7 +16,6 @@ import six - class TargetTaxLotRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class TargetTaxLotRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'units': 'float', @@ -49,8 +50,33 @@ class TargetTaxLotRequest(object): 'settlement_date': 'settlementDate' } + required_map = { + 'units': 'required', + 'cost': 'optional', + 'portfolio_cost': 'optional', + 'price': 'optional', + 'purchase_date': 'optional', + 'settlement_date': 'optional' + } + def __init__(self, units=None, cost=None, portfolio_cost=None, price=None, purchase_date=None, settlement_date=None): # noqa: E501 - """TargetTaxLotRequest - a model defined in OpenAPI""" # noqa: E501 + """ + TargetTaxLotRequest - a model defined in OpenAPI + + :param units: The number of units of the instrument in this tax-lot. (required) + :type units: float + :param cost: + :type cost: lusid.CurrencyAndAmount + :param portfolio_cost: The total cost of the tax-lot in the transaction portfolio's base currency. + :type portfolio_cost: float + :param price: The purchase price of each unit of the instrument held in this tax-lot. This forms part of the unique key required for multiple tax-lots. + :type price: float + :param purchase_date: The purchase date of this tax-lot. This forms part of the unique key required for multiple tax-lots. + :type purchase_date: datetime + :param settlement_date: The settlement date of the tax-lot's opening transaction. + :type settlement_date: datetime + + """ # noqa: E501 self._units = None self._cost = None diff --git a/sdk/lusid/models/transaction.py b/sdk/lusid/models/transaction.py index 58030b3d3a8..93d8d5487ff 100644 --- a/sdk/lusid/models/transaction.py +++ b/sdk/lusid/models/transaction.py @@ -16,7 +16,6 @@ import six - class Transaction(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class Transaction(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'transaction_id': 'str', @@ -65,8 +66,57 @@ class Transaction(object): 'source': 'source' } + required_map = { + 'transaction_id': 'required', + 'type': 'required', + 'instrument_identifiers': 'optional', + 'instrument_uid': 'required', + 'transaction_date': 'required', + 'settlement_date': 'required', + 'units': 'required', + 'transaction_price': 'required', + 'total_consideration': 'required', + 'exchange_rate': 'optional', + 'transaction_currency': 'optional', + 'properties': 'optional', + 'counterparty_id': 'optional', + 'source': 'optional' + } + def __init__(self, transaction_id=None, type=None, instrument_identifiers=None, instrument_uid=None, transaction_date=None, settlement_date=None, units=None, transaction_price=None, total_consideration=None, exchange_rate=None, transaction_currency=None, properties=None, counterparty_id=None, source=None): # noqa: E501 - """Transaction - a model defined in OpenAPI""" # noqa: E501 + """ + Transaction - a model defined in OpenAPI + + :param transaction_id: The unique identifier for the transaction. (required) + :type transaction_id: str + :param type: The type of the transaction e.g. 'Buy', 'Sell'. The transaction type should have been pre-configured via the System Configuration API endpoint. (required) + :type type: str + :param instrument_identifiers: The set of instrument identifiers that can be used to resolve the transaction to a unique instrument. + :type instrument_identifiers: dict(str, str) + :param instrument_uid: The unqiue Lusid Instrument Id (LUID) of the instrument that the transaction is in. (required) + :type instrument_uid: str + :param transaction_date: The date of the transaction. (required) + :type transaction_date: datetime + :param settlement_date: The settlement date of the transaction. (required) + :type settlement_date: datetime + :param units: The number of units transacted in the associated instrument. (required) + :type units: float + :param transaction_price: (required) + :type transaction_price: lusid.TransactionPrice + :param total_consideration: (required) + :type total_consideration: lusid.CurrencyAndAmount + :param exchange_rate: The exchange rate between the transaction and settlement currency. For example if the transaction currency is in USD and the settlement currency is in GBP this this the USD/GBP rate. + :type exchange_rate: float + :param transaction_currency: The transaction currency. + :type transaction_currency: str + :param properties: Set of unique transaction properties and associated values to stored with the transaction. Each property will be from the 'Transaction' domain. + :type properties: dict[str, lusid.PerpetualProperty] + :param counterparty_id: The identifier for the counterparty of the transaction. + :type counterparty_id: str + :param source: The source of the transaction. This is used to look up the appropriate transaction group set in the transaction type configuration. + :type source: str + + """ # noqa: E501 self._transaction_id = None self._type = None diff --git a/sdk/lusid/models/transaction_configuration_data.py b/sdk/lusid/models/transaction_configuration_data.py index d538b1c1561..ace60d39d2c 100644 --- a/sdk/lusid/models/transaction_configuration_data.py +++ b/sdk/lusid/models/transaction_configuration_data.py @@ -16,7 +16,6 @@ import six - class TransactionConfigurationData(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class TransactionConfigurationData(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'aliases': 'list[TransactionConfigurationTypeAlias]', @@ -43,8 +44,24 @@ class TransactionConfigurationData(object): 'properties': 'properties' } + required_map = { + 'aliases': 'required', + 'movements': 'required', + 'properties': 'optional' + } + def __init__(self, aliases=None, movements=None, properties=None): # noqa: E501 - """TransactionConfigurationData - a model defined in OpenAPI""" # noqa: E501 + """ + TransactionConfigurationData - a model defined in OpenAPI + + :param aliases: List of transaction codes that map to this specific transaction model (required) + :type aliases: list[lusid.TransactionConfigurationTypeAlias] + :param movements: Movement data for the transaction code (required) + :type movements: list[lusid.TransactionConfigurationMovementData] + :param properties: + :type properties: dict[str, lusid.PerpetualProperty] + + """ # noqa: E501 self._aliases = None self._movements = None diff --git a/sdk/lusid/models/transaction_configuration_data_request.py b/sdk/lusid/models/transaction_configuration_data_request.py index 9265282aad7..369a7b5ee7a 100644 --- a/sdk/lusid/models/transaction_configuration_data_request.py +++ b/sdk/lusid/models/transaction_configuration_data_request.py @@ -16,7 +16,6 @@ import six - class TransactionConfigurationDataRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class TransactionConfigurationDataRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'aliases': 'list[TransactionConfigurationTypeAlias]', @@ -43,8 +44,24 @@ class TransactionConfigurationDataRequest(object): 'properties': 'properties' } + required_map = { + 'aliases': 'required', + 'movements': 'required', + 'properties': 'optional' + } + def __init__(self, aliases=None, movements=None, properties=None): # noqa: E501 - """TransactionConfigurationDataRequest - a model defined in OpenAPI""" # noqa: E501 + """ + TransactionConfigurationDataRequest - a model defined in OpenAPI + + :param aliases: List of transaction codes that map to this specific transaction model (required) + :type aliases: list[lusid.TransactionConfigurationTypeAlias] + :param movements: Movement data for the transaction code (required) + :type movements: list[lusid.TransactionConfigurationMovementDataRequest] + :param properties: + :type properties: dict[str, lusid.PerpetualProperty] + + """ # noqa: E501 self._aliases = None self._movements = None diff --git a/sdk/lusid/models/transaction_configuration_movement_data.py b/sdk/lusid/models/transaction_configuration_movement_data.py index ca302abfac8..5681b4edaed 100644 --- a/sdk/lusid/models/transaction_configuration_movement_data.py +++ b/sdk/lusid/models/transaction_configuration_movement_data.py @@ -16,7 +16,6 @@ import six - class TransactionConfigurationMovementData(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class TransactionConfigurationMovementData(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'movement_types': 'str', @@ -47,8 +48,30 @@ class TransactionConfigurationMovementData(object): 'mappings': 'mappings' } + required_map = { + 'movement_types': 'required', + 'side': 'required', + 'direction': 'required', + 'properties': 'optional', + 'mappings': 'optional' + } + def __init__(self, movement_types=None, side=None, direction=None, properties=None, mappings=None): # noqa: E501 - """TransactionConfigurationMovementData - a model defined in OpenAPI""" # noqa: E501 + """ + TransactionConfigurationMovementData - a model defined in OpenAPI + + :param movement_types: The Movement Types (required) + :type movement_types: str + :param side: The Movement Side (required) + :type side: str + :param direction: The Movement direction (required) + :type direction: int + :param properties: + :type properties: dict[str, lusid.PerpetualProperty] + :param mappings: + :type mappings: list[lusid.TransactionPropertyMapping] + + """ # noqa: E501 self._movement_types = None self._side = None diff --git a/sdk/lusid/models/transaction_configuration_movement_data_request.py b/sdk/lusid/models/transaction_configuration_movement_data_request.py index 938ad415b2a..4eb631334c6 100644 --- a/sdk/lusid/models/transaction_configuration_movement_data_request.py +++ b/sdk/lusid/models/transaction_configuration_movement_data_request.py @@ -16,7 +16,6 @@ import six - class TransactionConfigurationMovementDataRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class TransactionConfigurationMovementDataRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'movement_types': 'str', @@ -47,8 +48,30 @@ class TransactionConfigurationMovementDataRequest(object): 'mappings': 'mappings' } + required_map = { + 'movement_types': 'required', + 'side': 'required', + 'direction': 'required', + 'properties': 'optional', + 'mappings': 'optional' + } + def __init__(self, movement_types=None, side=None, direction=None, properties=None, mappings=None): # noqa: E501 - """TransactionConfigurationMovementDataRequest - a model defined in OpenAPI""" # noqa: E501 + """ + TransactionConfigurationMovementDataRequest - a model defined in OpenAPI + + :param movement_types: The Movement Types (required) + :type movement_types: str + :param side: The Movement Side (required) + :type side: str + :param direction: The Movement direction (required) + :type direction: int + :param properties: + :type properties: dict[str, lusid.PerpetualProperty] + :param mappings: + :type mappings: list[lusid.TransactionPropertyMappingRequest] + + """ # noqa: E501 self._movement_types = None self._side = None diff --git a/sdk/lusid/models/transaction_configuration_type_alias.py b/sdk/lusid/models/transaction_configuration_type_alias.py index 90c08549585..da2772dc0f3 100644 --- a/sdk/lusid/models/transaction_configuration_type_alias.py +++ b/sdk/lusid/models/transaction_configuration_type_alias.py @@ -16,7 +16,6 @@ import six - class TransactionConfigurationTypeAlias(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class TransactionConfigurationTypeAlias(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'type': 'str', @@ -47,8 +48,30 @@ class TransactionConfigurationTypeAlias(object): 'transaction_roles': 'transactionRoles' } + required_map = { + 'type': 'required', + 'description': 'required', + 'transaction_class': 'required', + 'transaction_group': 'required', + 'transaction_roles': 'required' + } + def __init__(self, type=None, description=None, transaction_class=None, transaction_group=None, transaction_roles=None): # noqa: E501 - """TransactionConfigurationTypeAlias - a model defined in OpenAPI""" # noqa: E501 + """ + TransactionConfigurationTypeAlias - a model defined in OpenAPI + + :param type: The transaction type (required) + :type type: str + :param description: Brief description of the transaction (required) + :type description: str + :param transaction_class: Relates types of a similar class. E.g. Buy/Sell, StockIn/StockOut (required) + :type transaction_class: str + :param transaction_group: Group is a set of codes related to a source, or sync (required) + :type transaction_group: str + :param transaction_roles: Transactions role within a class. E.g. Increase a long position (required) + :type transaction_roles: str + + """ # noqa: E501 self._type = None self._description = None diff --git a/sdk/lusid/models/transaction_price.py b/sdk/lusid/models/transaction_price.py index 548b658bbf4..1697b7c99e1 100644 --- a/sdk/lusid/models/transaction_price.py +++ b/sdk/lusid/models/transaction_price.py @@ -16,7 +16,6 @@ import six - class TransactionPrice(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class TransactionPrice(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'price': 'float', @@ -41,8 +42,21 @@ class TransactionPrice(object): 'type': 'type' } + required_map = { + 'price': 'optional', + 'type': 'optional' + } + def __init__(self, price=None, type=None): # noqa: E501 - """TransactionPrice - a model defined in OpenAPI""" # noqa: E501 + """ + TransactionPrice - a model defined in OpenAPI + + :param price: + :type price: float + :param type: + :type type: str + + """ # noqa: E501 self._price = None self._type = None diff --git a/sdk/lusid/models/transaction_property_mapping.py b/sdk/lusid/models/transaction_property_mapping.py index 5a61ca6da36..7d9ed5a3284 100644 --- a/sdk/lusid/models/transaction_property_mapping.py +++ b/sdk/lusid/models/transaction_property_mapping.py @@ -16,7 +16,6 @@ import six - class TransactionPropertyMapping(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class TransactionPropertyMapping(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'property_key': 'str', @@ -43,8 +44,24 @@ class TransactionPropertyMapping(object): 'set_to': 'setTo' } + required_map = { + 'property_key': 'required', + 'map_from': 'optional', + 'set_to': 'optional' + } + def __init__(self, property_key=None, map_from=None, set_to=None): # noqa: E501 - """TransactionPropertyMapping - a model defined in OpenAPI""" # noqa: E501 + """ + TransactionPropertyMapping - a model defined in OpenAPI + + :param property_key: The Side (required) + :type property_key: str + :param map_from: The Side + :type map_from: str + :param set_to: The Side + :type set_to: object + + """ # noqa: E501 self._property_key = None self._map_from = None diff --git a/sdk/lusid/models/transaction_property_mapping_request.py b/sdk/lusid/models/transaction_property_mapping_request.py index b8098a2ad71..fe21cc8bbb4 100644 --- a/sdk/lusid/models/transaction_property_mapping_request.py +++ b/sdk/lusid/models/transaction_property_mapping_request.py @@ -16,7 +16,6 @@ import six - class TransactionPropertyMappingRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class TransactionPropertyMappingRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'property_key': 'str', @@ -43,8 +44,24 @@ class TransactionPropertyMappingRequest(object): 'set_to': 'setTo' } + required_map = { + 'property_key': 'required', + 'map_from': 'optional', + 'set_to': 'optional' + } + def __init__(self, property_key=None, map_from=None, set_to=None): # noqa: E501 - """TransactionPropertyMappingRequest - a model defined in OpenAPI""" # noqa: E501 + """ + TransactionPropertyMappingRequest - a model defined in OpenAPI + + :param property_key: The Side (required) + :type property_key: str + :param map_from: The Side + :type map_from: str + :param set_to: The Side + :type set_to: object + + """ # noqa: E501 self._property_key = None self._map_from = None diff --git a/sdk/lusid/models/transaction_query_parameters.py b/sdk/lusid/models/transaction_query_parameters.py index 9012601281f..6d9ce6db3e1 100644 --- a/sdk/lusid/models/transaction_query_parameters.py +++ b/sdk/lusid/models/transaction_query_parameters.py @@ -16,7 +16,6 @@ import six - class TransactionQueryParameters(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class TransactionQueryParameters(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'start_date': 'str', @@ -45,8 +46,27 @@ class TransactionQueryParameters(object): 'show_cancelled_transactions': 'showCancelledTransactions' } + required_map = { + 'start_date': 'required', + 'end_date': 'required', + 'query_mode': 'optional', + 'show_cancelled_transactions': 'optional' + } + def __init__(self, start_date=None, end_date=None, query_mode=None, show_cancelled_transactions=None): # noqa: E501 - """TransactionQueryParameters - a model defined in OpenAPI""" # noqa: E501 + """ + TransactionQueryParameters - a model defined in OpenAPI + + :param start_date: The lower bound effective datetime or cut label (inclusive) from which to build the transactions. (required) + :type start_date: str + :param end_date: The upper bound effective datetime or cut label (inclusive) from which to retrieve transactions. (required) + :type end_date: str + :param query_mode: The date to compare against the upper and lower bounds for the effective datetime or cut label. Defaults to 'TradeDate' if not specified. + :type query_mode: str + :param show_cancelled_transactions: Option to specify whether or not to include cancelled transactions in the output. Defaults to False if not specified. + :type show_cancelled_transactions: bool + + """ # noqa: E501 self._start_date = None self._end_date = None diff --git a/sdk/lusid/models/transaction_request.py b/sdk/lusid/models/transaction_request.py index 6f5a3a5291b..96833fc1448 100644 --- a/sdk/lusid/models/transaction_request.py +++ b/sdk/lusid/models/transaction_request.py @@ -16,7 +16,6 @@ import six - class TransactionRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class TransactionRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'transaction_id': 'str', @@ -63,8 +64,54 @@ class TransactionRequest(object): 'source': 'source' } + required_map = { + 'transaction_id': 'required', + 'type': 'required', + 'instrument_identifiers': 'required', + 'transaction_date': 'required', + 'settlement_date': 'required', + 'units': 'required', + 'transaction_price': 'required', + 'total_consideration': 'required', + 'exchange_rate': 'optional', + 'transaction_currency': 'optional', + 'properties': 'optional', + 'counterparty_id': 'optional', + 'source': 'optional' + } + def __init__(self, transaction_id=None, type=None, instrument_identifiers=None, transaction_date=None, settlement_date=None, units=None, transaction_price=None, total_consideration=None, exchange_rate=None, transaction_currency=None, properties=None, counterparty_id=None, source=None): # noqa: E501 - """TransactionRequest - a model defined in OpenAPI""" # noqa: E501 + """ + TransactionRequest - a model defined in OpenAPI + + :param transaction_id: The unique identifier for the transaction. (required) + :type transaction_id: str + :param type: The type of the transaction e.g. 'Buy', 'Sell'. The transaction type should have been pre-configured via the System Configuration API endpoint. If it hasn't been pre-configured the transaction will still be updated or inserted however you will be unable to generate the resultant holdings for the portfolio that contains this transaction as LUSID does not know how to process it. (required) + :type type: str + :param instrument_identifiers: A set of instrument identifiers to use to resolve the transaction to a unique instrument. (required) + :type instrument_identifiers: dict(str, str) + :param transaction_date: The date of the transaction. (required) + :type transaction_date: str + :param settlement_date: The settlement date of the transaction. (required) + :type settlement_date: str + :param units: The number of units transacted in the associated instrument. (required) + :type units: float + :param transaction_price: (required) + :type transaction_price: lusid.TransactionPrice + :param total_consideration: (required) + :type total_consideration: lusid.CurrencyAndAmount + :param exchange_rate: The exchange rate between the transaction and settlement currency. For example if the transaction currency is in USD and the settlement currency is in GBP this this the USD/GBP rate. + :type exchange_rate: float + :param transaction_currency: The transaction currency. + :type transaction_currency: str + :param properties: Set of unique transaction properties and associated values to store with the transaction. Each property must be from the 'Transaction' domain. + :type properties: dict[str, lusid.PerpetualProperty] + :param counterparty_id: The identifier for the counterparty of the transaction. + :type counterparty_id: str + :param source: The source of the transaction. This is used to look up the appropriate transaction group set in the transaction type configuration. + :type source: str + + """ # noqa: E501 self._transaction_id = None self._type = None diff --git a/sdk/lusid/models/transaction_set_configuration_data.py b/sdk/lusid/models/transaction_set_configuration_data.py index 89af2c59d17..f472448edaf 100644 --- a/sdk/lusid/models/transaction_set_configuration_data.py +++ b/sdk/lusid/models/transaction_set_configuration_data.py @@ -16,7 +16,6 @@ import six - class TransactionSetConfigurationData(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class TransactionSetConfigurationData(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'transaction_configs': 'list[TransactionConfigurationData]', @@ -43,8 +44,24 @@ class TransactionSetConfigurationData(object): 'links': 'links' } + required_map = { + 'transaction_configs': 'required', + 'side_definitions': 'optional', + 'links': 'optional' + } + def __init__(self, transaction_configs=None, side_definitions=None, links=None): # noqa: E501 - """TransactionSetConfigurationData - a model defined in OpenAPI""" # noqa: E501 + """ + TransactionSetConfigurationData - a model defined in OpenAPI + + :param transaction_configs: Collection of transaction type models (required) + :type transaction_configs: list[lusid.TransactionConfigurationData] + :param side_definitions: Collection of side definitions + :type side_definitions: list[lusid.SideConfigurationData] + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._transaction_configs = None self._side_definitions = None diff --git a/sdk/lusid/models/update_cut_label_definition_request.py b/sdk/lusid/models/update_cut_label_definition_request.py index 0b56d45ec60..3bde08852e4 100644 --- a/sdk/lusid/models/update_cut_label_definition_request.py +++ b/sdk/lusid/models/update_cut_label_definition_request.py @@ -16,7 +16,6 @@ import six - class UpdateCutLabelDefinitionRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class UpdateCutLabelDefinitionRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'display_name': 'str', @@ -45,8 +46,27 @@ class UpdateCutLabelDefinitionRequest(object): 'time_zone': 'timeZone' } + required_map = { + 'display_name': 'required', + 'description': 'optional', + 'cut_local_time': 'required', + 'time_zone': 'required' + } + def __init__(self, display_name=None, description=None, cut_local_time=None, time_zone=None): # noqa: E501 - """UpdateCutLabelDefinitionRequest - a model defined in OpenAPI""" # noqa: E501 + """ + UpdateCutLabelDefinitionRequest - a model defined in OpenAPI + + :param display_name: (required) + :type display_name: str + :param description: + :type description: str + :param cut_local_time: (required) + :type cut_local_time: lusid.CutLocalTime + :param time_zone: (required) + :type time_zone: str + + """ # noqa: E501 self._display_name = None self._description = None diff --git a/sdk/lusid/models/update_instrument_identifier_request.py b/sdk/lusid/models/update_instrument_identifier_request.py index 5f7203240fc..a3a978fa1bd 100644 --- a/sdk/lusid/models/update_instrument_identifier_request.py +++ b/sdk/lusid/models/update_instrument_identifier_request.py @@ -16,7 +16,6 @@ import six - class UpdateInstrumentIdentifierRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class UpdateInstrumentIdentifierRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'type': 'str', @@ -43,8 +44,24 @@ class UpdateInstrumentIdentifierRequest(object): 'effective_at': 'effectiveAt' } + required_map = { + 'type': 'required', + 'value': 'optional', + 'effective_at': 'optional' + } + def __init__(self, type=None, value=None, effective_at=None): # noqa: E501 - """UpdateInstrumentIdentifierRequest - a model defined in OpenAPI""" # noqa: E501 + """ + UpdateInstrumentIdentifierRequest - a model defined in OpenAPI + + :param type: The allowable instrument identifier to update, insert or remove e.g. 'Figi'. (required) + :type type: str + :param value: The new value of the allowable instrument identifier. If unspecified the identifier will be removed from the instrument. + :type value: str + :param effective_at: The effective datetime from which the identifier should be updated, inserted or removed. Defaults to the current LUSID system datetime if not specified. + :type effective_at: str + + """ # noqa: E501 self._type = None self._value = None diff --git a/sdk/lusid/models/update_portfolio_group_request.py b/sdk/lusid/models/update_portfolio_group_request.py index 21e4425819e..e3ee1f97f2f 100644 --- a/sdk/lusid/models/update_portfolio_group_request.py +++ b/sdk/lusid/models/update_portfolio_group_request.py @@ -16,7 +16,6 @@ import six - class UpdatePortfolioGroupRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class UpdatePortfolioGroupRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'display_name': 'str', @@ -41,8 +42,21 @@ class UpdatePortfolioGroupRequest(object): 'description': 'description' } + required_map = { + 'display_name': 'required', + 'description': 'optional' + } + def __init__(self, display_name=None, description=None): # noqa: E501 - """UpdatePortfolioGroupRequest - a model defined in OpenAPI""" # noqa: E501 + """ + UpdatePortfolioGroupRequest - a model defined in OpenAPI + + :param display_name: The name of the portfolio group. (required) + :type display_name: str + :param description: A long form description of the portfolio group. + :type description: str + + """ # noqa: E501 self._display_name = None self._description = None diff --git a/sdk/lusid/models/update_portfolio_request.py b/sdk/lusid/models/update_portfolio_request.py index 847cc7b82f9..323a55cba15 100644 --- a/sdk/lusid/models/update_portfolio_request.py +++ b/sdk/lusid/models/update_portfolio_request.py @@ -16,7 +16,6 @@ import six - class UpdatePortfolioRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class UpdatePortfolioRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'display_name': 'str', @@ -41,8 +42,21 @@ class UpdatePortfolioRequest(object): 'description': 'description' } + required_map = { + 'display_name': 'required', + 'description': 'optional' + } + def __init__(self, display_name=None, description=None): # noqa: E501 - """UpdatePortfolioRequest - a model defined in OpenAPI""" # noqa: E501 + """ + UpdatePortfolioRequest - a model defined in OpenAPI + + :param display_name: The name of the transaction portfolio. (required) + :type display_name: str + :param description: A long form description of the transaction portfolio. + :type description: str + + """ # noqa: E501 self._display_name = None self._description = None diff --git a/sdk/lusid/models/update_property_definition_request.py b/sdk/lusid/models/update_property_definition_request.py index 882b2bfc580..355340c2aa0 100644 --- a/sdk/lusid/models/update_property_definition_request.py +++ b/sdk/lusid/models/update_property_definition_request.py @@ -16,7 +16,6 @@ import six - class UpdatePropertyDefinitionRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class UpdatePropertyDefinitionRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'display_name': 'str' @@ -39,8 +40,18 @@ class UpdatePropertyDefinitionRequest(object): 'display_name': 'displayName' } + required_map = { + 'display_name': 'required' + } + def __init__(self, display_name=None): # noqa: E501 - """UpdatePropertyDefinitionRequest - a model defined in OpenAPI""" # noqa: E501 + """ + UpdatePropertyDefinitionRequest - a model defined in OpenAPI + + :param display_name: The display name of the property. (required) + :type display_name: str + + """ # noqa: E501 self._display_name = None self.discriminator = None diff --git a/sdk/lusid/models/upsert_instrument_properties_response.py b/sdk/lusid/models/upsert_instrument_properties_response.py index aed3e1cc4ea..abf1917b831 100644 --- a/sdk/lusid/models/upsert_instrument_properties_response.py +++ b/sdk/lusid/models/upsert_instrument_properties_response.py @@ -16,7 +16,6 @@ import six - class UpsertInstrumentPropertiesResponse(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class UpsertInstrumentPropertiesResponse(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'as_at_date': 'datetime', @@ -41,8 +42,21 @@ class UpsertInstrumentPropertiesResponse(object): 'links': 'links' } + required_map = { + 'as_at_date': 'required', + 'links': 'optional' + } + def __init__(self, as_at_date=None, links=None): # noqa: E501 - """UpsertInstrumentPropertiesResponse - a model defined in OpenAPI""" # noqa: E501 + """ + UpsertInstrumentPropertiesResponse - a model defined in OpenAPI + + :param as_at_date: The asAt datetime at which the properties were updated or inserted on the specified instruments. (required) + :type as_at_date: datetime + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._as_at_date = None self._links = None diff --git a/sdk/lusid/models/upsert_instrument_property_request.py b/sdk/lusid/models/upsert_instrument_property_request.py index 9c600463fee..8d1576f930a 100644 --- a/sdk/lusid/models/upsert_instrument_property_request.py +++ b/sdk/lusid/models/upsert_instrument_property_request.py @@ -16,7 +16,6 @@ import six - class UpsertInstrumentPropertyRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class UpsertInstrumentPropertyRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'identifier_type': 'str', @@ -43,8 +44,24 @@ class UpsertInstrumentPropertyRequest(object): 'properties': 'properties' } + required_map = { + 'identifier_type': 'required', + 'identifier': 'required', + 'properties': 'optional' + } + def __init__(self, identifier_type=None, identifier=None, properties=None): # noqa: E501 - """UpsertInstrumentPropertyRequest - a model defined in OpenAPI""" # noqa: E501 + """ + UpsertInstrumentPropertyRequest - a model defined in OpenAPI + + :param identifier_type: The instrument identifier type. (required) + :type identifier_type: str + :param identifier: The unique instrument identifier of the instrument to update or insert properties on. (required) + :type identifier: str + :param properties: Set of unique instrument properties and associated values to store with the instrument. Each property must be from the 'Instrument' domain. + :type properties: list[lusid.ModelProperty] + + """ # noqa: E501 self._identifier_type = None self._identifier = None diff --git a/sdk/lusid/models/upsert_instruments_response.py b/sdk/lusid/models/upsert_instruments_response.py index 36f55feb928..9ebda391eff 100644 --- a/sdk/lusid/models/upsert_instruments_response.py +++ b/sdk/lusid/models/upsert_instruments_response.py @@ -16,7 +16,6 @@ import six - class UpsertInstrumentsResponse(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class UpsertInstrumentsResponse(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'href': 'str', @@ -45,8 +46,27 @@ class UpsertInstrumentsResponse(object): 'links': 'links' } + required_map = { + 'href': 'optional', + 'values': 'optional', + 'failed': 'optional', + 'links': 'optional' + } + def __init__(self, href=None, values=None, failed=None, links=None): # noqa: E501 - """UpsertInstrumentsResponse - a model defined in OpenAPI""" # noqa: E501 + """ + UpsertInstrumentsResponse - a model defined in OpenAPI + + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param values: The instruments which have been successfully updated or inserted. + :type values: dict[str, lusid.Instrument] + :param failed: The instruments that could not be updated or inserted along with a reason for their failure. + :type failed: dict[str, lusid.ErrorDetail] + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._href = None self._values = None diff --git a/sdk/lusid/models/upsert_portfolio_executions_response.py b/sdk/lusid/models/upsert_portfolio_executions_response.py index 908fe847178..0b4bda0d473 100644 --- a/sdk/lusid/models/upsert_portfolio_executions_response.py +++ b/sdk/lusid/models/upsert_portfolio_executions_response.py @@ -16,7 +16,6 @@ import six - class UpsertPortfolioExecutionsResponse(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class UpsertPortfolioExecutionsResponse(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'version': 'Version', @@ -43,8 +44,24 @@ class UpsertPortfolioExecutionsResponse(object): 'links': 'links' } + required_map = { + 'version': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, version=None, href=None, links=None): # noqa: E501 - """UpsertPortfolioExecutionsResponse - a model defined in OpenAPI""" # noqa: E501 + """ + UpsertPortfolioExecutionsResponse - a model defined in OpenAPI + + :param version: (required) + :type version: lusid.Version + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._version = None self._href = None diff --git a/sdk/lusid/models/upsert_portfolio_transactions_response.py b/sdk/lusid/models/upsert_portfolio_transactions_response.py index 7343e627232..e64c2328c11 100644 --- a/sdk/lusid/models/upsert_portfolio_transactions_response.py +++ b/sdk/lusid/models/upsert_portfolio_transactions_response.py @@ -16,7 +16,6 @@ import six - class UpsertPortfolioTransactionsResponse(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class UpsertPortfolioTransactionsResponse(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'version': 'Version', @@ -43,8 +44,24 @@ class UpsertPortfolioTransactionsResponse(object): 'links': 'links' } + required_map = { + 'version': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, version=None, href=None, links=None): # noqa: E501 - """UpsertPortfolioTransactionsResponse - a model defined in OpenAPI""" # noqa: E501 + """ + UpsertPortfolioTransactionsResponse - a model defined in OpenAPI + + :param version: (required) + :type version: lusid.Version + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._version = None self._href = None diff --git a/sdk/lusid/models/upsert_reference_portfolio_constituents_request.py b/sdk/lusid/models/upsert_reference_portfolio_constituents_request.py index 9d4bffb5a15..49726ce60fd 100644 --- a/sdk/lusid/models/upsert_reference_portfolio_constituents_request.py +++ b/sdk/lusid/models/upsert_reference_portfolio_constituents_request.py @@ -16,7 +16,6 @@ import six - class UpsertReferencePortfolioConstituentsRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class UpsertReferencePortfolioConstituentsRequest(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'effective_from': 'str', @@ -47,8 +48,30 @@ class UpsertReferencePortfolioConstituentsRequest(object): 'constituents': 'constituents' } + required_map = { + 'effective_from': 'required', + 'weight_type': 'required', + 'period_type': 'optional', + 'period_count': 'optional', + 'constituents': 'required' + } + def __init__(self, effective_from=None, weight_type=None, period_type=None, period_count=None, constituents=None): # noqa: E501 - """UpsertReferencePortfolioConstituentsRequest - a model defined in OpenAPI""" # noqa: E501 + """ + UpsertReferencePortfolioConstituentsRequest - a model defined in OpenAPI + + :param effective_from: The first date from which the weights will apply (required) + :type effective_from: str + :param weight_type: (required) + :type weight_type: str + :param period_type: + :type period_type: str + :param period_count: + :type period_count: int + :param constituents: Set of constituents (instrument/weight pairings) (required) + :type constituents: list[lusid.ReferencePortfolioConstituentRequest] + + """ # noqa: E501 self._effective_from = None self._weight_type = None diff --git a/sdk/lusid/models/upsert_reference_portfolio_constituents_response.py b/sdk/lusid/models/upsert_reference_portfolio_constituents_response.py index d97dc570ef5..c1f6122e747 100644 --- a/sdk/lusid/models/upsert_reference_portfolio_constituents_response.py +++ b/sdk/lusid/models/upsert_reference_portfolio_constituents_response.py @@ -16,7 +16,6 @@ import six - class UpsertReferencePortfolioConstituentsResponse(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class UpsertReferencePortfolioConstituentsResponse(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'href': 'str', @@ -43,8 +44,24 @@ class UpsertReferencePortfolioConstituentsResponse(object): 'links': 'links' } + required_map = { + 'href': 'optional', + 'version': 'optional', + 'links': 'optional' + } + def __init__(self, href=None, version=None, links=None): # noqa: E501 - """UpsertReferencePortfolioConstituentsResponse - a model defined in OpenAPI""" # noqa: E501 + """ + UpsertReferencePortfolioConstituentsResponse - a model defined in OpenAPI + + :param href: + :type href: str + :param version: + :type version: lusid.Version + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._href = None self._version = None diff --git a/sdk/lusid/models/upsert_transaction_properties_response.py b/sdk/lusid/models/upsert_transaction_properties_response.py index 9b16e0ded7d..0f622e9c14b 100644 --- a/sdk/lusid/models/upsert_transaction_properties_response.py +++ b/sdk/lusid/models/upsert_transaction_properties_response.py @@ -16,7 +16,6 @@ import six - class UpsertTransactionPropertiesResponse(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class UpsertTransactionPropertiesResponse(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'href': 'str', @@ -45,8 +46,27 @@ class UpsertTransactionPropertiesResponse(object): 'links': 'links' } + required_map = { + 'href': 'optional', + 'version': 'optional', + 'properties': 'optional', + 'links': 'optional' + } + def __init__(self, href=None, version=None, properties=None, links=None): # noqa: E501 - """UpsertTransactionPropertiesResponse - a model defined in OpenAPI""" # noqa: E501 + """ + UpsertTransactionPropertiesResponse - a model defined in OpenAPI + + :param href: The specifc Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. + :type href: str + :param version: + :type version: lusid.Version + :param properties: + :type properties: dict[str, lusid.PerpetualProperty] + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._href = None self._version = None diff --git a/sdk/lusid/models/user.py b/sdk/lusid/models/user.py index 10497044c31..2e6b871ace0 100644 --- a/sdk/lusid/models/user.py +++ b/sdk/lusid/models/user.py @@ -16,7 +16,6 @@ import six - class User(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class User(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'id': 'str' @@ -39,8 +40,18 @@ class User(object): 'id': 'id' } + required_map = { + 'id': 'optional' + } + def __init__(self, id=None): # noqa: E501 - """User - a model defined in OpenAPI""" # noqa: E501 + """ + User - a model defined in OpenAPI + + :param id: The unique id of the user. + :type id: str + + """ # noqa: E501 self._id = None self.discriminator = None diff --git a/sdk/lusid/models/version.py b/sdk/lusid/models/version.py index c1682804230..125cc6e325a 100644 --- a/sdk/lusid/models/version.py +++ b/sdk/lusid/models/version.py @@ -16,7 +16,6 @@ import six - class Version(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class Version(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'effective_from': 'datetime', @@ -41,8 +42,21 @@ class Version(object): 'as_at_date': 'asAtDate' } + required_map = { + 'effective_from': 'required', + 'as_at_date': 'required' + } + def __init__(self, effective_from=None, as_at_date=None): # noqa: E501 - """Version - a model defined in OpenAPI""" # noqa: E501 + """ + Version - a model defined in OpenAPI + + :param effective_from: The effective datetime at which this version became valid. Only applies when a single entity is being interacted with. (required) + :type effective_from: datetime + :param as_at_date: The asAt datetime at which the data was committed to LUSID. (required) + :type as_at_date: datetime + + """ # noqa: E501 self._effective_from = None self._as_at_date = None diff --git a/sdk/lusid/models/version_summary_dto.py b/sdk/lusid/models/version_summary_dto.py index e791211bee5..b2f50083f7e 100644 --- a/sdk/lusid/models/version_summary_dto.py +++ b/sdk/lusid/models/version_summary_dto.py @@ -16,7 +16,6 @@ import six - class VersionSummaryDto(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class VersionSummaryDto(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'api_version': 'str', @@ -45,8 +46,27 @@ class VersionSummaryDto(object): 'links': 'links' } + required_map = { + 'api_version': 'optional', + 'build_version': 'optional', + 'excel_version': 'optional', + 'links': 'optional' + } + def __init__(self, api_version=None, build_version=None, excel_version=None, links=None): # noqa: E501 - """VersionSummaryDto - a model defined in OpenAPI""" # noqa: E501 + """ + VersionSummaryDto - a model defined in OpenAPI + + :param api_version: + :type api_version: str + :param build_version: + :type build_version: str + :param excel_version: + :type excel_version: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._api_version = None self._build_version = None diff --git a/sdk/lusid/models/versioned_resource_list_of_output_transaction.py b/sdk/lusid/models/versioned_resource_list_of_output_transaction.py index 3dd2de93334..74e23c3795b 100644 --- a/sdk/lusid/models/versioned_resource_list_of_output_transaction.py +++ b/sdk/lusid/models/versioned_resource_list_of_output_transaction.py @@ -16,7 +16,6 @@ import six - class VersionedResourceListOfOutputTransaction(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class VersionedResourceListOfOutputTransaction(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'version': 'Version', @@ -45,8 +46,27 @@ class VersionedResourceListOfOutputTransaction(object): 'links': 'links' } + required_map = { + 'version': 'required', + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, version=None, values=None, href=None, links=None): # noqa: E501 - """VersionedResourceListOfOutputTransaction - a model defined in OpenAPI""" # noqa: E501 + """ + VersionedResourceListOfOutputTransaction - a model defined in OpenAPI + + :param version: (required) + :type version: lusid.Version + :param values: (required) + :type values: list[lusid.OutputTransaction] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._version = None self._values = None diff --git a/sdk/lusid/models/versioned_resource_list_of_portfolio_holding.py b/sdk/lusid/models/versioned_resource_list_of_portfolio_holding.py index 2ebff095be2..2d634370cc5 100644 --- a/sdk/lusid/models/versioned_resource_list_of_portfolio_holding.py +++ b/sdk/lusid/models/versioned_resource_list_of_portfolio_holding.py @@ -16,7 +16,6 @@ import six - class VersionedResourceListOfPortfolioHolding(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class VersionedResourceListOfPortfolioHolding(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'version': 'Version', @@ -45,8 +46,27 @@ class VersionedResourceListOfPortfolioHolding(object): 'links': 'links' } + required_map = { + 'version': 'required', + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, version=None, values=None, href=None, links=None): # noqa: E501 - """VersionedResourceListOfPortfolioHolding - a model defined in OpenAPI""" # noqa: E501 + """ + VersionedResourceListOfPortfolioHolding - a model defined in OpenAPI + + :param version: (required) + :type version: lusid.Version + :param values: (required) + :type values: list[lusid.PortfolioHolding] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._version = None self._values = None diff --git a/sdk/lusid/models/versioned_resource_list_of_transaction.py b/sdk/lusid/models/versioned_resource_list_of_transaction.py index a791307f849..39f2c3dc827 100644 --- a/sdk/lusid/models/versioned_resource_list_of_transaction.py +++ b/sdk/lusid/models/versioned_resource_list_of_transaction.py @@ -16,7 +16,6 @@ import six - class VersionedResourceListOfTransaction(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +29,8 @@ class VersionedResourceListOfTransaction(object): and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. + required_map (dict): The key is attribute name + and the value is whether it is 'required' or 'optional'. """ openapi_types = { 'version': 'Version', @@ -45,8 +46,27 @@ class VersionedResourceListOfTransaction(object): 'links': 'links' } + required_map = { + 'version': 'required', + 'values': 'required', + 'href': 'optional', + 'links': 'optional' + } + def __init__(self, version=None, values=None, href=None, links=None): # noqa: E501 - """VersionedResourceListOfTransaction - a model defined in OpenAPI""" # noqa: E501 + """ + VersionedResourceListOfTransaction - a model defined in OpenAPI + + :param version: (required) + :type version: lusid.Version + :param values: (required) + :type values: list[lusid.Transaction] + :param href: + :type href: str + :param links: + :type links: list[lusid.Link] + + """ # noqa: E501 self._version = None self._values = None