lusid-sdk 2.1.678__py3-none-any.whl → 2.1.679__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.7289\n"\
448
+ "Version of the API: 0.11.7291\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451
 
@@ -28,7 +28,8 @@ 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
- __properties = ["propertyKey", "mapFrom", "setTo"]
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
33
 
33
34
  @validator('set_to')
34
35
  def set_to_validate_regular_expression(cls, value):
@@ -40,6 +41,16 @@ class TransactionTypePropertyMapping(BaseModel):
40
41
  raise ValueError(r"must validate the regular expression /^[\s\S]*$/")
41
42
  return value
42
43
 
44
+ @validator('template_from')
45
+ def template_from_validate_regular_expression(cls, value):
46
+ """Validates the regular expression"""
47
+ if value is None:
48
+ return value
49
+
50
+ if not re.match(r"^[\s\S]*$", value):
51
+ raise ValueError(r"must validate the regular expression /^[\s\S]*$/")
52
+ return value
53
+
43
54
  class Config:
44
55
  """Pydantic configuration"""
45
56
  allow_population_by_field_name = True
@@ -82,6 +93,11 @@ class TransactionTypePropertyMapping(BaseModel):
82
93
  if self.set_to is None and "set_to" in self.__fields_set__:
83
94
  _dict['setTo'] = None
84
95
 
96
+ # set to None if template_from (nullable) is None
97
+ # and __fields_set__ contains the field
98
+ if self.template_from is None and "template_from" in self.__fields_set__:
99
+ _dict['templateFrom'] = None
100
+
85
101
  return _dict
86
102
 
87
103
  @classmethod
@@ -96,6 +112,7 @@ class TransactionTypePropertyMapping(BaseModel):
96
112
  _obj = TransactionTypePropertyMapping.parse_obj({
97
113
  "property_key": obj.get("propertyKey"),
98
114
  "map_from": obj.get("mapFrom"),
99
- "set_to": obj.get("setTo")
115
+ "set_to": obj.get("setTo"),
116
+ "template_from": obj.get("templateFrom")
100
117
  })
101
118
  return _obj
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.678
3
+ Version: 2.1.679
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=T-BiyWr_-PMx7R5muId9PxutG4Y6nJnnje-CMjGJG9I,17972
74
+ lusid/configuration.py,sha256=d0v9-BMTU00EIwYfH-tXmL5iy-MTFflDCbDtHo3hlRA,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
@@ -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=27oD_C4EvuxrDeghiH2Q7p-vojcIFd5s_UWAiWBaIho,3462
1120
+ lusid/models/transaction_type_property_mapping.py,sha256=1nZi-coT5D8BmvVEjvaeIYrdBsm3xz8s3l2EXkoEuNE,4352
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.678.dist-info/METADATA,sha256=v_HHYiMuOwcmc0f2ADHxM4nD-Snes61GK-qNKQwTRbA,213719
1258
- lusid_sdk-2.1.678.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1259
- lusid_sdk-2.1.678.dist-info/RECORD,,
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,,