lusid-sdk 2.1.697__py3-none-any.whl → 2.1.699__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. lusid/__init__.py +14 -0
  2. lusid/api/__init__.py +2 -0
  3. lusid/api/identifier_definitions_api.py +960 -0
  4. lusid/api/instruments_api.py +24 -8
  5. lusid/configuration.py +1 -1
  6. lusid/models/__init__.py +12 -0
  7. lusid/models/accumulation_event.py +3 -3
  8. lusid/models/adjust_global_commitment_event.py +3 -3
  9. lusid/models/alias.py +1 -1
  10. lusid/models/amortisation_event.py +3 -3
  11. lusid/models/bond_coupon_event.py +3 -3
  12. lusid/models/bond_default_event.py +3 -3
  13. lusid/models/bond_principal_event.py +3 -3
  14. lusid/models/bonus_issue_event.py +3 -3
  15. lusid/models/call_on_intermediate_securities_event.py +3 -3
  16. lusid/models/capital_distribution_event.py +3 -3
  17. lusid/models/cash_dividend_event.py +3 -3
  18. lusid/models/cash_flow_event.py +3 -3
  19. lusid/models/cds_credit_event.py +3 -3
  20. lusid/models/cdx_credit_event.py +3 -3
  21. lusid/models/close_event.py +3 -3
  22. lusid/models/contract_for_difference.py +1 -1
  23. lusid/models/contract_initialisation_event.py +3 -3
  24. lusid/models/create_identifier_definition_request.py +189 -0
  25. lusid/models/credit_premium_cash_flow_event.py +3 -3
  26. lusid/models/custom_data_model_criteria.py +1 -1
  27. lusid/models/custom_data_model_identifier_type_specification.py +1 -1
  28. lusid/models/custom_data_model_identifier_type_specification_with_display_name.py +1 -1
  29. lusid/models/dividend_option_event.py +3 -3
  30. lusid/models/dividend_reinvestment_event.py +3 -3
  31. lusid/models/drawdown_event.py +3 -3
  32. lusid/models/early_redemption_event.py +3 -3
  33. lusid/models/exercise_event.py +3 -3
  34. lusid/models/expiry_event.py +3 -3
  35. lusid/models/future_expiry_event.py +3 -3
  36. lusid/models/future_mark_to_market_event.py +3 -3
  37. lusid/models/fx_forward_settlement_event.py +3 -3
  38. lusid/models/identifier_definition.py +192 -0
  39. lusid/models/informational_error_event.py +3 -3
  40. lusid/models/informational_event.py +3 -3
  41. lusid/models/instrument_event.py +7 -6
  42. lusid/models/instrument_event_instruction.py +7 -1
  43. lusid/models/instrument_event_instruction_request.py +8 -2
  44. lusid/models/instrument_event_type.py +1 -0
  45. lusid/models/intermediate_securities_distribution_event.py +3 -3
  46. lusid/models/loan_interest_repayment_event.py +3 -3
  47. lusid/models/maturity_event.py +3 -3
  48. lusid/models/mbs_coupon_event.py +3 -3
  49. lusid/models/mbs_interest_deferral_event.py +3 -3
  50. lusid/models/mbs_interest_shortfall_event.py +3 -3
  51. lusid/models/mbs_principal_event.py +3 -3
  52. lusid/models/mbs_principal_write_off_event.py +3 -3
  53. lusid/models/merger_event.py +3 -3
  54. lusid/models/open_event.py +3 -3
  55. lusid/models/option_exercise_cash_event.py +3 -3
  56. lusid/models/option_exercise_physical_event.py +3 -3
  57. lusid/models/paged_resource_list_of_identifier_definition.py +121 -0
  58. lusid/models/pricing_context.py +10 -3
  59. lusid/models/protection_payout_cash_flow_event.py +3 -3
  60. lusid/models/quantity_instructed.py +79 -0
  61. lusid/models/raw_vendor_event.py +3 -3
  62. lusid/models/reconcile_string_rule.py +4 -4
  63. lusid/models/reconciliation_request.py +1 -1
  64. lusid/models/reset_event.py +3 -3
  65. lusid/models/reverse_stock_split_event.py +3 -3
  66. lusid/models/scrip_dividend_event.py +3 -3
  67. lusid/models/spin_off_event.py +3 -3
  68. lusid/models/stock_dividend_event.py +3 -3
  69. lusid/models/stock_split_event.py +3 -3
  70. lusid/models/string_comparison_type.py +1 -0
  71. lusid/models/swap_cash_flow_event.py +3 -3
  72. lusid/models/swap_principal_event.py +3 -3
  73. lusid/models/tender_event.py +3 -3
  74. lusid/models/term_deposit_interest_event.py +3 -3
  75. lusid/models/term_deposit_principal_event.py +3 -3
  76. lusid/models/transition_event.py +3 -3
  77. lusid/models/trigger_event.py +3 -3
  78. lusid/models/update_deposit_amount_event.py +101 -0
  79. lusid/models/update_identifier_definition_request.py +146 -0
  80. lusid/models/upsert_custom_data_model_request.py +1 -1
  81. {lusid_sdk-2.1.697.dist-info → lusid_sdk-2.1.699.dist-info}/METADATA +12 -1
  82. {lusid_sdk-2.1.697.dist-info → lusid_sdk-2.1.699.dist-info}/RECORD +83 -76
  83. {lusid_sdk-2.1.697.dist-info → lusid_sdk-2.1.699.dist-info}/WHEEL +0 -0
@@ -0,0 +1,146 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LUSID API
5
+
6
+ FINBOURNE Technology # noqa: E501
7
+
8
+ Contact: info@finbourne.com
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+
21
+ from typing import Any, Dict, Optional
22
+ from pydantic.v1 import BaseModel, Field, constr, validator
23
+ from lusid.models.model_property import ModelProperty
24
+
25
+ class UpdateIdentifierDefinitionRequest(BaseModel):
26
+ """
27
+ UpdateIdentifierDefinitionRequest
28
+ """
29
+ hierarchy_level: Optional[constr(strict=True, max_length=512, min_length=1)] = Field(None, alias="hierarchyLevel", description="Optional metadata associated with the identifier definition.")
30
+ display_name: Optional[constr(strict=True, max_length=256, min_length=1)] = Field(None, alias="displayName", description="A display name for the identifier. E.g. Figi.")
31
+ description: Optional[constr(strict=True, max_length=1024, min_length=0)] = Field(None, description="An optional description for the identifier.")
32
+ properties: Optional[Dict[str, ModelProperty]] = Field(None, description="A set of properties for the identifier definition.")
33
+ __properties = ["hierarchyLevel", "displayName", "description", "properties"]
34
+
35
+ @validator('hierarchy_level')
36
+ def hierarchy_level_validate_regular_expression(cls, value):
37
+ """Validates the regular expression"""
38
+ if value is None:
39
+ return value
40
+
41
+ if not re.match(r"^[\s\S]*$", value):
42
+ raise ValueError(r"must validate the regular expression /^[\s\S]*$/")
43
+ return value
44
+
45
+ @validator('display_name')
46
+ def display_name_validate_regular_expression(cls, value):
47
+ """Validates the regular expression"""
48
+ if value is None:
49
+ return value
50
+
51
+ if not re.match(r"^[^\\<>&\"]+$", value):
52
+ raise ValueError(r"must validate the regular expression /^[^\\<>&\"]+$/")
53
+ return value
54
+
55
+ @validator('description')
56
+ def description_validate_regular_expression(cls, value):
57
+ """Validates the regular expression"""
58
+ if value is None:
59
+ return value
60
+
61
+ if not re.match(r"^[\s\S]*$", value):
62
+ raise ValueError(r"must validate the regular expression /^[\s\S]*$/")
63
+ return value
64
+
65
+ class Config:
66
+ """Pydantic configuration"""
67
+ allow_population_by_field_name = True
68
+ validate_assignment = True
69
+
70
+ def __str__(self):
71
+ """For `print` and `pprint`"""
72
+ return pprint.pformat(self.dict(by_alias=False))
73
+
74
+ def __repr__(self):
75
+ """For `print` and `pprint`"""
76
+ return self.to_str()
77
+
78
+ def to_str(self) -> str:
79
+ """Returns the string representation of the model using alias"""
80
+ return pprint.pformat(self.dict(by_alias=True))
81
+
82
+ def to_json(self) -> str:
83
+ """Returns the JSON representation of the model using alias"""
84
+ return json.dumps(self.to_dict())
85
+
86
+ @classmethod
87
+ def from_json(cls, json_str: str) -> UpdateIdentifierDefinitionRequest:
88
+ """Create an instance of UpdateIdentifierDefinitionRequest from a JSON string"""
89
+ return cls.from_dict(json.loads(json_str))
90
+
91
+ def to_dict(self):
92
+ """Returns the dictionary representation of the model using alias"""
93
+ _dict = self.dict(by_alias=True,
94
+ exclude={
95
+ },
96
+ exclude_none=True)
97
+ # override the default output from pydantic by calling `to_dict()` of each value in properties (dict)
98
+ _field_dict = {}
99
+ if self.properties:
100
+ for _key in self.properties:
101
+ if self.properties[_key]:
102
+ _field_dict[_key] = self.properties[_key].to_dict()
103
+ _dict['properties'] = _field_dict
104
+ # set to None if hierarchy_level (nullable) is None
105
+ # and __fields_set__ contains the field
106
+ if self.hierarchy_level is None and "hierarchy_level" in self.__fields_set__:
107
+ _dict['hierarchyLevel'] = None
108
+
109
+ # set to None if display_name (nullable) is None
110
+ # and __fields_set__ contains the field
111
+ if self.display_name is None and "display_name" in self.__fields_set__:
112
+ _dict['displayName'] = None
113
+
114
+ # set to None if description (nullable) is None
115
+ # and __fields_set__ contains the field
116
+ if self.description is None and "description" in self.__fields_set__:
117
+ _dict['description'] = None
118
+
119
+ # set to None if properties (nullable) is None
120
+ # and __fields_set__ contains the field
121
+ if self.properties is None and "properties" in self.__fields_set__:
122
+ _dict['properties'] = None
123
+
124
+ return _dict
125
+
126
+ @classmethod
127
+ def from_dict(cls, obj: dict) -> UpdateIdentifierDefinitionRequest:
128
+ """Create an instance of UpdateIdentifierDefinitionRequest from a dict"""
129
+ if obj is None:
130
+ return None
131
+
132
+ if not isinstance(obj, dict):
133
+ return UpdateIdentifierDefinitionRequest.parse_obj(obj)
134
+
135
+ _obj = UpdateIdentifierDefinitionRequest.parse_obj({
136
+ "hierarchy_level": obj.get("hierarchyLevel"),
137
+ "display_name": obj.get("displayName"),
138
+ "description": obj.get("description"),
139
+ "properties": dict(
140
+ (_k, ModelProperty.from_dict(_v))
141
+ for _k, _v in obj.get("properties").items()
142
+ )
143
+ if obj.get("properties") is not None
144
+ else None
145
+ })
146
+ return _obj
@@ -36,7 +36,7 @@ class UpsertCustomDataModelRequest(BaseModel):
36
36
  conditions: Optional[constr(strict=True, max_length=16384, min_length=0)] = Field(None, description="The conditions that the bound entity must meet to be valid.")
37
37
  properties: Optional[conlist(CustomDataModelPropertySpecification)] = Field(None, description="The properties that are required or allowed on the bound entity.")
38
38
  identifier_types: Optional[conlist(CustomDataModelIdentifierTypeSpecification)] = Field(None, alias="identifierTypes", description="The identifier types that are required or allowed on the bound entity.")
39
- attribute_aliases: Optional[conlist(Alias)] = Field(None, alias="attributeAliases", description="The aliaes for property keys, identifier types, and fields on the bound entity.")
39
+ attribute_aliases: Optional[conlist(Alias)] = Field(None, alias="attributeAliases", description="The aliases for property keys, identifier types, and fields on the bound entity.")
40
40
  recommended_sort_by: Optional[conlist(RecommendedSortBy)] = Field(None, alias="recommendedSortBy", description="The preferred default sorting instructions.")
41
41
  __properties = ["displayName", "description", "parentDataModel", "conditions", "properties", "identifierTypes", "attributeAliases", "recommendedSortBy"]
42
42
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.697
3
+ Version: 2.1.699
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -286,6 +286,11 @@ Class | Method | HTTP request | Description
286
286
  *GroupReconciliationsApi* | [**run_reconciliation**](docs/GroupReconciliationsApi.md#run_reconciliation) | **POST** /api/reconciliations/groupreconciliationdefinitions/{scope}/{code}/$run | [EXPERIMENTAL] RunReconciliation: Runs a Group Reconciliation
287
287
  *GroupReconciliationsApi* | [**update_comparison_ruleset**](docs/GroupReconciliationsApi.md#update_comparison_ruleset) | **PUT** /api/reconciliations/comparisonrulesets/{scope}/{code} | [EXPERIMENTAL] UpdateComparisonRuleset: Update Group Reconciliation Comparison Ruleset defined by scope and code
288
288
  *GroupReconciliationsApi* | [**update_group_reconciliation_definition**](docs/GroupReconciliationsApi.md#update_group_reconciliation_definition) | **PUT** /api/reconciliations/groupreconciliationdefinitions/{scope}/{code} | [EXPERIMENTAL] UpdateGroupReconciliationDefinition: Update group reconciliation definition
289
+ *IdentifierDefinitionsApi* | [**create_identifier_definition**](docs/IdentifierDefinitionsApi.md#create_identifier_definition) | **POST** /api/identifierdefinitions | [EXPERIMENTAL] CreateIdentifierDefinition: Create an Identifier Definition
290
+ *IdentifierDefinitionsApi* | [**delete_identifier_definition**](docs/IdentifierDefinitionsApi.md#delete_identifier_definition) | **DELETE** /api/identifierdefinitions/{domain}/{identifierScope}/{identifierType} | [EXPERIMENTAL] DeleteIdentifierDefinition: Delete a particular Identifier Definition
291
+ *IdentifierDefinitionsApi* | [**get_identifier_definition**](docs/IdentifierDefinitionsApi.md#get_identifier_definition) | **GET** /api/identifierdefinitions/{domain}/{identifierScope}/{identifierType} | [EXPERIMENTAL] GetIdentifierDefinition: Get a single Identifier Definition
292
+ *IdentifierDefinitionsApi* | [**list_identifier_definitions**](docs/IdentifierDefinitionsApi.md#list_identifier_definitions) | **GET** /api/identifierdefinitions | [EXPERIMENTAL] ListIdentifierDefinitions: List Identifier Definitions
293
+ *IdentifierDefinitionsApi* | [**update_identifier_definition**](docs/IdentifierDefinitionsApi.md#update_identifier_definition) | **PUT** /api/identifierdefinitions/{domain}/{identifierScope}/{identifierType} | [EXPERIMENTAL] UpdateIdentifierDefinition: Update Identifier Definition defined by domain, identifierScope, and identifierType
289
294
  *InstrumentEventTypesApi* | [**create_transaction_template**](docs/InstrumentEventTypesApi.md#create_transaction_template) | **POST** /api/instrumenteventtypes/{instrumentEventType}/transactiontemplates/{instrumentType}/{scope} | [EARLY ACCESS] CreateTransactionTemplate: Create Transaction Template
290
295
  *InstrumentEventTypesApi* | [**delete_transaction_template**](docs/InstrumentEventTypesApi.md#delete_transaction_template) | **DELETE** /api/instrumenteventtypes/{instrumentEventType}/transactiontemplates/{instrumentType}/{scope} | [EARLY ACCESS] DeleteTransactionTemplate: Delete Transaction Template
291
296
  *InstrumentEventTypesApi* | [**get_transaction_template**](docs/InstrumentEventTypesApi.md#get_transaction_template) | **GET** /api/instrumenteventtypes/{instrumentEventType}/transactiontemplates/{instrumentType}/{scope} | [EARLY ACCESS] GetTransactionTemplate: Get Transaction Template
@@ -881,6 +886,7 @@ Class | Method | HTTP request | Description
881
886
  - [CreateDerivedTransactionPortfolioRequest](docs/CreateDerivedTransactionPortfolioRequest.md)
882
887
  - [CreateGroupReconciliationComparisonRulesetRequest](docs/CreateGroupReconciliationComparisonRulesetRequest.md)
883
888
  - [CreateGroupReconciliationDefinitionRequest](docs/CreateGroupReconciliationDefinitionRequest.md)
889
+ - [CreateIdentifierDefinitionRequest](docs/CreateIdentifierDefinitionRequest.md)
884
890
  - [CreatePortfolioDetails](docs/CreatePortfolioDetails.md)
885
891
  - [CreatePortfolioGroupRequest](docs/CreatePortfolioGroupRequest.md)
886
892
  - [CreatePropertyDefinitionRequest](docs/CreatePropertyDefinitionRequest.md)
@@ -1137,6 +1143,7 @@ Class | Method | HTTP request | Description
1137
1143
  - [HoldingsAdjustmentHeader](docs/HoldingsAdjustmentHeader.md)
1138
1144
  - [IUnitDefinitionDto](docs/IUnitDefinitionDto.md)
1139
1145
  - [IdSelectorDefinition](docs/IdSelectorDefinition.md)
1146
+ - [IdentifierDefinition](docs/IdentifierDefinition.md)
1140
1147
  - [IdentifierPartSchema](docs/IdentifierPartSchema.md)
1141
1148
  - [IndexConvention](docs/IndexConvention.md)
1142
1149
  - [IndexModelOptions](docs/IndexModelOptions.md)
@@ -1329,6 +1336,7 @@ Class | Method | HTTP request | Description
1329
1336
  - [PagedResourceListOfGroupReconciliationComparisonResult](docs/PagedResourceListOfGroupReconciliationComparisonResult.md)
1330
1337
  - [PagedResourceListOfGroupReconciliationComparisonRuleset](docs/PagedResourceListOfGroupReconciliationComparisonRuleset.md)
1331
1338
  - [PagedResourceListOfGroupReconciliationDefinition](docs/PagedResourceListOfGroupReconciliationDefinition.md)
1339
+ - [PagedResourceListOfIdentifierDefinition](docs/PagedResourceListOfIdentifierDefinition.md)
1332
1340
  - [PagedResourceListOfInstrument](docs/PagedResourceListOfInstrument.md)
1333
1341
  - [PagedResourceListOfInstrumentEventHolder](docs/PagedResourceListOfInstrumentEventHolder.md)
1334
1342
  - [PagedResourceListOfInstrumentEventInstruction](docs/PagedResourceListOfInstrumentEventInstruction.md)
@@ -1438,6 +1446,7 @@ Class | Method | HTTP request | Description
1438
1446
  - [PropertyValueEquals](docs/PropertyValueEquals.md)
1439
1447
  - [PropertyValueIn](docs/PropertyValueIn.md)
1440
1448
  - [ProtectionPayoutCashFlowEvent](docs/ProtectionPayoutCashFlowEvent.md)
1449
+ - [QuantityInstructed](docs/QuantityInstructed.md)
1441
1450
  - [QueryApplicableInstrumentEventsRequest](docs/QueryApplicableInstrumentEventsRequest.md)
1442
1451
  - [QueryBucketedCashFlowsRequest](docs/QueryBucketedCashFlowsRequest.md)
1443
1452
  - [QueryCashFlowsRequest](docs/QueryCashFlowsRequest.md)
@@ -1726,10 +1735,12 @@ Class | Method | HTTP request | Description
1726
1735
  - [UpdateCustomEntityTypeRequest](docs/UpdateCustomEntityTypeRequest.md)
1727
1736
  - [UpdateCutLabelDefinitionRequest](docs/UpdateCutLabelDefinitionRequest.md)
1728
1737
  - [UpdateDataTypeRequest](docs/UpdateDataTypeRequest.md)
1738
+ - [UpdateDepositAmountEvent](docs/UpdateDepositAmountEvent.md)
1729
1739
  - [UpdateDerivedPropertyDefinitionRequest](docs/UpdateDerivedPropertyDefinitionRequest.md)
1730
1740
  - [UpdateFeeTypeRequest](docs/UpdateFeeTypeRequest.md)
1731
1741
  - [UpdateGroupReconciliationComparisonRulesetRequest](docs/UpdateGroupReconciliationComparisonRulesetRequest.md)
1732
1742
  - [UpdateGroupReconciliationDefinitionRequest](docs/UpdateGroupReconciliationDefinitionRequest.md)
1743
+ - [UpdateIdentifierDefinitionRequest](docs/UpdateIdentifierDefinitionRequest.md)
1733
1744
  - [UpdateInstrumentIdentifierRequest](docs/UpdateInstrumentIdentifierRequest.md)
1734
1745
  - [UpdateOrdersResponse](docs/UpdateOrdersResponse.md)
1735
1746
  - [UpdatePlacementsResponse](docs/UpdatePlacementsResponse.md)