lusid-sdk 2.1.624__py3-none-any.whl → 2.1.625__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.
|
448
|
+
"Version of the API: 0.11.7190\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,9 @@ import re # noqa: F401
|
|
18
18
|
import json
|
19
19
|
|
20
20
|
|
21
|
-
from typing import Any, Dict, Optional
|
22
|
-
from pydantic.v1 import BaseModel, Field, StrictStr, constr
|
21
|
+
from typing import Any, Dict, List, Optional
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictStr, conlist, constr
|
23
|
+
from lusid.models.address_key_filter import AddressKeyFilter
|
23
24
|
|
24
25
|
class DependencySourceFilter(BaseModel):
|
25
26
|
"""
|
@@ -29,7 +30,8 @@ class DependencySourceFilter(BaseModel):
|
|
29
30
|
asset_class: Optional[constr(strict=True, max_length=32, min_length=0)] = Field(None, alias="assetClass", description="Specify that a rule should only apply if the market data is requested by an instrument of a given asset class. If null, then no filtering on asset class is applied.")
|
30
31
|
dom_ccy: Optional[StrictStr] = Field(None, alias="domCcy", description="Specify that a rule should only apply if the market data is requested by an instrument with a given domestic currency. If null, then no filtering on currency is applied.")
|
31
32
|
long_or_short_indicator: Optional[StrictStr] = Field(None, alias="longOrShortIndicator", description="Specify that a rule should apply if the market data is requested by a model with a given long or short indicator. If none, then no filtering on LongOrShortIndicator is applied.")
|
32
|
-
|
33
|
+
address_key_filters: Optional[conlist(AddressKeyFilter)] = Field(None, alias="addressKeyFilters")
|
34
|
+
__properties = ["instrumentType", "assetClass", "domCcy", "longOrShortIndicator", "addressKeyFilters"]
|
33
35
|
|
34
36
|
class Config:
|
35
37
|
"""Pydantic configuration"""
|
@@ -55,6 +57,13 @@ class DependencySourceFilter(BaseModel):
|
|
55
57
|
exclude={
|
56
58
|
},
|
57
59
|
exclude_none=True)
|
60
|
+
# override the default output from pydantic by calling `to_dict()` of each item in address_key_filters (list)
|
61
|
+
_items = []
|
62
|
+
if self.address_key_filters:
|
63
|
+
for _item in self.address_key_filters:
|
64
|
+
if _item:
|
65
|
+
_items.append(_item.to_dict())
|
66
|
+
_dict['addressKeyFilters'] = _items
|
58
67
|
# set to None if instrument_type (nullable) is None
|
59
68
|
# and __fields_set__ contains the field
|
60
69
|
if self.instrument_type is None and "instrument_type" in self.__fields_set__:
|
@@ -75,6 +84,11 @@ class DependencySourceFilter(BaseModel):
|
|
75
84
|
if self.long_or_short_indicator is None and "long_or_short_indicator" in self.__fields_set__:
|
76
85
|
_dict['longOrShortIndicator'] = None
|
77
86
|
|
87
|
+
# set to None if address_key_filters (nullable) is None
|
88
|
+
# and __fields_set__ contains the field
|
89
|
+
if self.address_key_filters is None and "address_key_filters" in self.__fields_set__:
|
90
|
+
_dict['addressKeyFilters'] = None
|
91
|
+
|
78
92
|
return _dict
|
79
93
|
|
80
94
|
@classmethod
|
@@ -90,6 +104,7 @@ class DependencySourceFilter(BaseModel):
|
|
90
104
|
"instrument_type": obj.get("instrumentType"),
|
91
105
|
"asset_class": obj.get("assetClass"),
|
92
106
|
"dom_ccy": obj.get("domCcy"),
|
93
|
-
"long_or_short_indicator": obj.get("longOrShortIndicator")
|
107
|
+
"long_or_short_indicator": obj.get("longOrShortIndicator"),
|
108
|
+
"address_key_filters": [AddressKeyFilter.from_dict(_item) for _item in obj.get("addressKeyFilters")] if obj.get("addressKeyFilters") is not None else None
|
94
109
|
})
|
95
110
|
return _obj
|
@@ -72,7 +72,7 @@ lusid/api/translation_api.py,sha256=nIyuLncCvVC5k2d7Nm32zR8AQ1dkrVm1OThkmELY_OM,
|
|
72
72
|
lusid/api/workspace_api.py,sha256=Yox1q7TDY-_O3HF-N8g5kGuNgp4unWvlSZmRZ6MNZO0,196701
|
73
73
|
lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
|
74
74
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
75
|
-
lusid/configuration.py,sha256=
|
75
|
+
lusid/configuration.py,sha256=uIQTGkNlfej38fcByET3jrHmCd3Wws1maKhDG-O2nJE,17972
|
76
76
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
77
77
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
78
78
|
lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
|
@@ -382,7 +382,7 @@ lusid/models/delete_modes.py,sha256=AIBsUUhXwkC7yJcJGV5Ry8JpCKjfvCyNCBdg39_Ax7g,
|
|
382
382
|
lusid/models/delete_relation_request.py,sha256=rHolE7EuW53sQtTF7DsC0N6seleIygpmZPPBxZlF2vo,2262
|
383
383
|
lusid/models/delete_relationship_request.py,sha256=Wlp4B1VkM5N405gUyqWGf-P3nfsfaA7080AHQwihfOw,4134
|
384
384
|
lusid/models/deleted_entity_response.py,sha256=x8RFirkaIsDuM-NekkFVEbQXOxYS4lJzwMK9Plup5mI,5131
|
385
|
-
lusid/models/dependency_source_filter.py,sha256=
|
385
|
+
lusid/models/dependency_source_filter.py,sha256=ut4aqO1BETnFIBjrJd6quWZ1j3zhhV4kCKu0IBgEKMw,5549
|
386
386
|
lusid/models/described_address_key.py,sha256=ebkUh71f2tPeNIKn5V57C3yhrCpBuUObb0ZCV3jmrYk,2677
|
387
387
|
lusid/models/dialect.py,sha256=c6P0GecI_6hUUHuxDvbFA6ZGGZkpPbiP27r1-6QQ-1g,2995
|
388
388
|
lusid/models/dialect_id.py,sha256=1xke2H6voQGq9WIOTAUG8PunJ-XT3j4rfQMs847QCgk,4334
|
@@ -1256,6 +1256,6 @@ lusid/models/workspace_update_request.py,sha256=uUXEpX-dJ5UiL9w1wMxIFeovSBiTJ-vi
|
|
1256
1256
|
lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
|
1257
1257
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1258
1258
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1259
|
-
lusid_sdk-2.1.
|
1260
|
-
lusid_sdk-2.1.
|
1261
|
-
lusid_sdk-2.1.
|
1259
|
+
lusid_sdk-2.1.625.dist-info/METADATA,sha256=vctNjzwEbQdSh6PTkt36ZPnQriuJf4J4xan_DhhfL6I,214412
|
1260
|
+
lusid_sdk-2.1.625.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
1261
|
+
lusid_sdk-2.1.625.dist-info/RECORD,,
|
File without changes
|