lusid-sdk 2.1.678__py3-none-any.whl → 2.1.680__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.
- lusid/configuration.py +1 -1
- lusid/models/field_definition.py +11 -4
- lusid/models/field_value.py +17 -5
- lusid/models/transaction_type_property_mapping.py +27 -3
- {lusid_sdk-2.1.678.dist-info → lusid_sdk-2.1.680.dist-info}/METADATA +1 -1
- {lusid_sdk-2.1.678.dist-info → lusid_sdk-2.1.680.dist-info}/RECORD +7 -7
- {lusid_sdk-2.1.678.dist-info → lusid_sdk-2.1.680.dist-info}/WHEEL +0 -0
lusid/configuration.py
CHANGED
@@ -445,7 +445,7 @@ class Configuration:
|
|
445
445
|
return "Python SDK Debug Report:\n"\
|
446
446
|
"OS: {env}\n"\
|
447
447
|
"Python Version: {pyversion}\n"\
|
448
|
-
"Version of the API: 0.11.
|
448
|
+
"Version of the API: 0.11.7295\n"\
|
449
449
|
"SDK Package Version: {package_version}".\
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
451
451
|
|
lusid/models/field_definition.py
CHANGED
@@ -18,8 +18,8 @@ import re # noqa: F401
|
|
18
18
|
import json
|
19
19
|
|
20
20
|
|
21
|
-
from typing import Any, Dict
|
22
|
-
from pydantic.v1 import BaseModel, Field, StrictBool, constr, validator
|
21
|
+
from typing import Any, Dict, Optional
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictBool, StrictStr, constr, validator
|
23
23
|
|
24
24
|
class FieldDefinition(BaseModel):
|
25
25
|
"""
|
@@ -28,7 +28,8 @@ class FieldDefinition(BaseModel):
|
|
28
28
|
key: constr(strict=True, max_length=512, min_length=1) = Field(...)
|
29
29
|
is_required: StrictBool = Field(..., alias="isRequired")
|
30
30
|
is_unique: StrictBool = Field(..., alias="isUnique")
|
31
|
-
|
31
|
+
value_type: Optional[StrictStr] = Field(None, alias="valueType")
|
32
|
+
__properties = ["key", "isRequired", "isUnique", "valueType"]
|
32
33
|
|
33
34
|
@validator('key')
|
34
35
|
def key_validate_regular_expression(cls, value):
|
@@ -69,6 +70,11 @@ class FieldDefinition(BaseModel):
|
|
69
70
|
exclude={
|
70
71
|
},
|
71
72
|
exclude_none=True)
|
73
|
+
# set to None if value_type (nullable) is None
|
74
|
+
# and __fields_set__ contains the field
|
75
|
+
if self.value_type is None and "value_type" in self.__fields_set__:
|
76
|
+
_dict['valueType'] = None
|
77
|
+
|
72
78
|
return _dict
|
73
79
|
|
74
80
|
@classmethod
|
@@ -83,6 +89,7 @@ class FieldDefinition(BaseModel):
|
|
83
89
|
_obj = FieldDefinition.parse_obj({
|
84
90
|
"key": obj.get("key"),
|
85
91
|
"is_required": obj.get("isRequired"),
|
86
|
-
"is_unique": obj.get("isUnique")
|
92
|
+
"is_unique": obj.get("isUnique"),
|
93
|
+
"value_type": obj.get("valueType")
|
87
94
|
})
|
88
95
|
return _obj
|
lusid/models/field_value.py
CHANGED
@@ -18,16 +18,17 @@ import re # noqa: F401
|
|
18
18
|
import json
|
19
19
|
|
20
20
|
|
21
|
-
from typing import Any, Dict
|
22
|
-
from pydantic.v1 import BaseModel, Field, StrictStr, constr, validator
|
21
|
+
from typing import Any, Dict, Optional, Union
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictFloat, StrictInt, StrictStr, constr, validator
|
23
23
|
|
24
24
|
class FieldValue(BaseModel):
|
25
25
|
"""
|
26
26
|
FieldValue
|
27
27
|
"""
|
28
28
|
value: constr(strict=True, max_length=512, min_length=1) = Field(...)
|
29
|
-
fields: Dict[str, StrictStr] =
|
30
|
-
|
29
|
+
fields: Optional[Dict[str, StrictStr]] = None
|
30
|
+
numeric_fields: Optional[Dict[str, Union[StrictFloat, StrictInt]]] = Field(None, alias="numericFields")
|
31
|
+
__properties = ["value", "fields", "numericFields"]
|
31
32
|
|
32
33
|
@validator('value')
|
33
34
|
def value_validate_regular_expression(cls, value):
|
@@ -68,6 +69,16 @@ class FieldValue(BaseModel):
|
|
68
69
|
exclude={
|
69
70
|
},
|
70
71
|
exclude_none=True)
|
72
|
+
# set to None if fields (nullable) is None
|
73
|
+
# and __fields_set__ contains the field
|
74
|
+
if self.fields is None and "fields" in self.__fields_set__:
|
75
|
+
_dict['fields'] = None
|
76
|
+
|
77
|
+
# set to None if numeric_fields (nullable) is None
|
78
|
+
# and __fields_set__ contains the field
|
79
|
+
if self.numeric_fields is None and "numeric_fields" in self.__fields_set__:
|
80
|
+
_dict['numericFields'] = None
|
81
|
+
|
71
82
|
return _dict
|
72
83
|
|
73
84
|
@classmethod
|
@@ -81,6 +92,7 @@ class FieldValue(BaseModel):
|
|
81
92
|
|
82
93
|
_obj = FieldValue.parse_obj({
|
83
94
|
"value": obj.get("value"),
|
84
|
-
"fields": obj.get("fields")
|
95
|
+
"fields": obj.get("fields"),
|
96
|
+
"numeric_fields": obj.get("numericFields")
|
85
97
|
})
|
86
98
|
return _obj
|
@@ -19,7 +19,7 @@ import json
|
|
19
19
|
|
20
20
|
|
21
21
|
from typing import Any, Dict, Optional
|
22
|
-
from pydantic.v1 import BaseModel, Field, StrictStr, constr, validator
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictBool, StrictStr, constr, validator
|
23
23
|
|
24
24
|
class TransactionTypePropertyMapping(BaseModel):
|
25
25
|
"""
|
@@ -28,7 +28,9 @@ class TransactionTypePropertyMapping(BaseModel):
|
|
28
28
|
property_key: StrictStr = Field(..., alias="propertyKey", description="The key that uniquely identifies the property. It has the format {domain}/{scope}/{code}")
|
29
29
|
map_from: Optional[StrictStr] = Field(None, alias="mapFrom", description="The Property Key of the Property to map from")
|
30
30
|
set_to: Optional[constr(strict=True, max_length=512, min_length=0)] = Field(None, alias="setTo", description="A pointer to the Property being mapped from")
|
31
|
-
|
31
|
+
template_from: Optional[constr(strict=True, max_length=512, min_length=1)] = Field(None, alias="templateFrom", description="The template that defines how the property value is constructed from transaction, instrument and portfolio details.")
|
32
|
+
nullify: Optional[StrictBool] = Field(None, description="Flag to unset the Property Key for the mapping")
|
33
|
+
__properties = ["propertyKey", "mapFrom", "setTo", "templateFrom", "nullify"]
|
32
34
|
|
33
35
|
@validator('set_to')
|
34
36
|
def set_to_validate_regular_expression(cls, value):
|
@@ -40,6 +42,16 @@ class TransactionTypePropertyMapping(BaseModel):
|
|
40
42
|
raise ValueError(r"must validate the regular expression /^[\s\S]*$/")
|
41
43
|
return value
|
42
44
|
|
45
|
+
@validator('template_from')
|
46
|
+
def template_from_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"^[\s\S]*$", value):
|
52
|
+
raise ValueError(r"must validate the regular expression /^[\s\S]*$/")
|
53
|
+
return value
|
54
|
+
|
43
55
|
class Config:
|
44
56
|
"""Pydantic configuration"""
|
45
57
|
allow_population_by_field_name = True
|
@@ -82,6 +94,16 @@ class TransactionTypePropertyMapping(BaseModel):
|
|
82
94
|
if self.set_to is None and "set_to" in self.__fields_set__:
|
83
95
|
_dict['setTo'] = None
|
84
96
|
|
97
|
+
# set to None if template_from (nullable) is None
|
98
|
+
# and __fields_set__ contains the field
|
99
|
+
if self.template_from is None and "template_from" in self.__fields_set__:
|
100
|
+
_dict['templateFrom'] = None
|
101
|
+
|
102
|
+
# set to None if nullify (nullable) is None
|
103
|
+
# and __fields_set__ contains the field
|
104
|
+
if self.nullify is None and "nullify" in self.__fields_set__:
|
105
|
+
_dict['nullify'] = None
|
106
|
+
|
85
107
|
return _dict
|
86
108
|
|
87
109
|
@classmethod
|
@@ -96,6 +118,8 @@ class TransactionTypePropertyMapping(BaseModel):
|
|
96
118
|
_obj = TransactionTypePropertyMapping.parse_obj({
|
97
119
|
"property_key": obj.get("propertyKey"),
|
98
120
|
"map_from": obj.get("mapFrom"),
|
99
|
-
"set_to": obj.get("setTo")
|
121
|
+
"set_to": obj.get("setTo"),
|
122
|
+
"template_from": obj.get("templateFrom"),
|
123
|
+
"nullify": obj.get("nullify")
|
100
124
|
})
|
101
125
|
return _obj
|
@@ -71,7 +71,7 @@ lusid/api/translation_api.py,sha256=nIyuLncCvVC5k2d7Nm32zR8AQ1dkrVm1OThkmELY_OM,
|
|
71
71
|
lusid/api/workspace_api.py,sha256=Yox1q7TDY-_O3HF-N8g5kGuNgp4unWvlSZmRZ6MNZO0,196701
|
72
72
|
lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
|
73
73
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
74
|
-
lusid/configuration.py,sha256=
|
74
|
+
lusid/configuration.py,sha256=VKym7kzs5yXtrmrmS2vFRVGSVGo_OwlE4kqX2tYAtqE,17972
|
75
75
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
76
76
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
77
77
|
lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
|
@@ -438,9 +438,9 @@ lusid/models/fee_rule_upsert_response.py,sha256=N5tsdsIA9z5ayvxnYe3cVe201yxFNnfP
|
|
438
438
|
lusid/models/fee_transaction_template_specification.py,sha256=JXAD9cdfG8nXsBKdRMUUqD7emQ9C7LZ1TVhHcldPVUg,3065
|
439
439
|
lusid/models/fee_type.py,sha256=eQOP0wsOYK0FuFF4ts3yT1tIT8tti5tKKB6XFM0P0u4,4918
|
440
440
|
lusid/models/fee_type_request.py,sha256=uBg7jIkgPEHUb-wxxh2j1avYSvyRpFD7SOMTBJZAfzc,4208
|
441
|
-
lusid/models/field_definition.py,sha256=
|
441
|
+
lusid/models/field_definition.py,sha256=qHqH6HRIdIHR1Kv2sa45IqIraISpsg6oJ4hVdzOrSYs,2964
|
442
442
|
lusid/models/field_schema.py,sha256=9pjdKq6FXoFdnGkuTbUNZcV4T5UtcqFsJFu22vYy44c,4245
|
443
|
-
lusid/models/field_value.py,sha256=
|
443
|
+
lusid/models/field_value.py,sha256=6iSfkIz0tbfYsDZi33fMMImhpZMzPvFIk4uNrH7rrJg,3086
|
444
444
|
lusid/models/file_response.py,sha256=jKRJURmCeI3Aqni1WWOOSysOMvcIN08cHaA5LOtTWHc,3219
|
445
445
|
lusid/models/filter_predicate_compliance_parameter.py,sha256=-ALrozlijjYnlFCI5Pf4Us8fh8tFBgkNYbrUOnX0aVQ,5603
|
446
446
|
lusid/models/filter_step.py,sha256=dg5ph8bLRuLPFzndMIXt_XgyDwnQeTD7DGsDbFqxmZk,4128
|
@@ -1117,7 +1117,7 @@ lusid/models/transaction_type_alias.py,sha256=Xd19reVzCbLEBRRjo-ARwknMkU39klaDXG
|
|
1117
1117
|
lusid/models/transaction_type_calculation.py,sha256=FSdp_1MWqcawYvlogm6Gic5GwtvMdxx24od1fvcNfM4,3059
|
1118
1118
|
lusid/models/transaction_type_details.py,sha256=iITPcL3WqNZINrbGnLZzzy76trnVCTHCoCIXVI6hCQc,2773
|
1119
1119
|
lusid/models/transaction_type_movement.py,sha256=cqcFFVI4JIZXM3m4bv1tjz-vdgpNThnhAVYdUIj-T_Y,8908
|
1120
|
-
lusid/models/transaction_type_property_mapping.py,sha256=
|
1120
|
+
lusid/models/transaction_type_property_mapping.py,sha256=QLAXsCSSQGKDWdEWs7OaNYF3yNBZeVB61jUGTX1jlAY,4735
|
1121
1121
|
lusid/models/transaction_type_request.py,sha256=LY3jBExh3dBYHba6rsQSQtPpW9UoL5d5168L107wyjs,5334
|
1122
1122
|
lusid/models/transactions_reconciliations_response.py,sha256=QIoqf354n-YarzHnlFZepF8iOsufoRT2msxdgur6PBw,3296
|
1123
1123
|
lusid/models/transition_event.py,sha256=TGAwzLpLLOnciOoz7RveEl-27YhjlF8__yLcgKxjzeI,9066
|
@@ -1254,6 +1254,6 @@ lusid/models/workspace_update_request.py,sha256=5N7j21uF9XV75Sl3oJbsSOKT5PrQEx3y
|
|
1254
1254
|
lusid/models/yield_curve_data.py,sha256=vtOzY4t2lgHJUWcna9dEKnuZ_tinolyb8IAFPB23DZ0,6543
|
1255
1255
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1256
1256
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1257
|
-
lusid_sdk-2.1.
|
1258
|
-
lusid_sdk-2.1.
|
1259
|
-
lusid_sdk-2.1.
|
1257
|
+
lusid_sdk-2.1.680.dist-info/METADATA,sha256=hY1oY-m2Utt4LuMkBuhC03dJZMwmNgpMDa5hgHmti5M,213719
|
1258
|
+
lusid_sdk-2.1.680.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
1259
|
+
lusid_sdk-2.1.680.dist-info/RECORD,,
|
File without changes
|