lusid-sdk 2.1.679__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 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.7291\n"\
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
 
@@ -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
- __properties = ["key", "isRequired", "isUnique"]
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
@@ -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] = Field(...)
30
- __properties = ["value", "fields"]
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
  """
@@ -29,7 +29,8 @@ class TransactionTypePropertyMapping(BaseModel):
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
- __properties = ["propertyKey", "mapFrom", "setTo", "templateFrom"]
32
+ nullify: Optional[StrictBool] = Field(None, description="Flag to unset the Property Key for the mapping")
33
+ __properties = ["propertyKey", "mapFrom", "setTo", "templateFrom", "nullify"]
33
34
 
34
35
  @validator('set_to')
35
36
  def set_to_validate_regular_expression(cls, value):
@@ -98,6 +99,11 @@ class TransactionTypePropertyMapping(BaseModel):
98
99
  if self.template_from is None and "template_from" in self.__fields_set__:
99
100
  _dict['templateFrom'] = None
100
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
+
101
107
  return _dict
102
108
 
103
109
  @classmethod
@@ -113,6 +119,7 @@ class TransactionTypePropertyMapping(BaseModel):
113
119
  "property_key": obj.get("propertyKey"),
114
120
  "map_from": obj.get("mapFrom"),
115
121
  "set_to": obj.get("setTo"),
116
- "template_from": obj.get("templateFrom")
122
+ "template_from": obj.get("templateFrom"),
123
+ "nullify": obj.get("nullify")
117
124
  })
118
125
  return _obj
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.679
3
+ Version: 2.1.680
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -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=d0v9-BMTU00EIwYfH-tXmL5iy-MTFflDCbDtHo3hlRA,17972
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=JQT7mUQ05eNLlPO4OYo8HEPw8rfxK35VmIVvG7WSHBY,2595
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=pIIMgdL9SMGLqmLfX8OFnuEPhB3yugfZ9su1iRq-65g,2423
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=1nZi-coT5D8BmvVEjvaeIYrdBsm3xz8s3l2EXkoEuNE,4352
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.679.dist-info/METADATA,sha256=VqdPhegxcIZTpvWoZW7J_u2K_0oWZeCsXsoYyW7c9aI,213719
1258
- lusid_sdk-2.1.679.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1259
- lusid_sdk-2.1.679.dist-info/RECORD,,
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,,