lusid-sdk 2.1.414__py3-none-any.whl → 2.1.429__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 (95) hide show
  1. lusid/__init__.py +40 -4
  2. lusid/api/__init__.py +2 -2
  3. lusid/api/allocations_api.py +2 -2
  4. lusid/api/chart_of_accounts_api.py +174 -0
  5. lusid/api/custom_entities_api.py +2 -2
  6. lusid/api/{fund_configurations_api.py → fund_configuration_entities_api.py} +1 -1
  7. lusid/api/group_reconciliations_api.py +1265 -34
  8. lusid/api/instruments_api.py +6 -6
  9. lusid/api/legal_entities_api.py +4 -4
  10. lusid/api/order_graph_api.py +4 -4
  11. lusid/api/portfolios_api.py +2 -2
  12. lusid/api/reference_lists_api.py +2 -2
  13. lusid/api/reference_portfolio_api.py +176 -0
  14. lusid/api/transaction_portfolios_api.py +2 -2
  15. lusid/configuration.py +1 -1
  16. lusid/models/__init__.py +38 -2
  17. lusid/models/accumulation_event.py +3 -3
  18. lusid/models/address_key_list.py +3 -3
  19. lusid/models/amortisation_event.py +3 -3
  20. lusid/models/amount.py +69 -0
  21. lusid/models/bond_coupon_event.py +3 -3
  22. lusid/models/bond_default_event.py +3 -3
  23. lusid/models/bond_principal_event.py +3 -3
  24. lusid/models/{component_rule.py → break_code_source.py} +17 -21
  25. lusid/models/capital_distribution_event.py +3 -3
  26. lusid/models/cash_dividend_event.py +3 -3
  27. lusid/models/cash_flow_event.py +3 -3
  28. lusid/models/cds_credit_event.py +3 -3
  29. lusid/models/cdx_credit_event.py +3 -3
  30. lusid/models/close_event.py +3 -3
  31. lusid/models/create_group_reconciliation_definition_request.py +113 -0
  32. lusid/models/credit_premium_cash_flow_event.py +3 -3
  33. lusid/models/decimal_list.py +3 -3
  34. lusid/models/dividend_option_event.py +3 -3
  35. lusid/models/dividend_reinvestment_event.py +3 -3
  36. lusid/models/exercise_event.py +3 -3
  37. lusid/models/expiry_event.py +3 -3
  38. lusid/models/fixed_schedule.py +3 -3
  39. lusid/models/float_schedule.py +4 -4
  40. lusid/models/fund_configuration.py +44 -17
  41. lusid/models/fund_configuration_request.py +31 -19
  42. lusid/models/fund_id_list.py +99 -0
  43. lusid/models/future_expiry_event.py +3 -3
  44. lusid/models/fx_forward_settlement_event.py +3 -3
  45. lusid/models/group_reconciliation_definition.py +136 -0
  46. lusid/models/group_reconciliation_definition_comparison_ruleset_ids.py +83 -0
  47. lusid/models/group_reconciliation_definition_currencies.py +71 -0
  48. lusid/models/group_reconciliation_definition_portfolio_entity_ids.py +86 -0
  49. lusid/models/group_reconciliation_definition_recipe_ids.py +78 -0
  50. lusid/models/informational_error_event.py +3 -3
  51. lusid/models/informational_event.py +3 -3
  52. lusid/models/instrument.py +7 -1
  53. lusid/models/instrument_definition.py +8 -2
  54. lusid/models/instrument_event.py +7 -5
  55. lusid/models/instrument_event_type.py +2 -0
  56. lusid/models/instrument_list.py +3 -3
  57. lusid/models/market_data_key_rule.py +5 -3
  58. lusid/models/market_data_specific_rule.py +5 -3
  59. lusid/models/maturity_event.py +3 -3
  60. lusid/models/mbs_coupon_event.py +97 -0
  61. lusid/models/mbs_principal_event.py +97 -0
  62. lusid/models/merger_event.py +22 -22
  63. lusid/models/open_event.py +3 -3
  64. lusid/models/output_transaction.py +9 -2
  65. lusid/models/paged_resource_list_of_group_reconciliation_comparison_ruleset.py +113 -0
  66. lusid/models/paged_resource_list_of_group_reconciliation_definition.py +113 -0
  67. lusid/models/portfolio_group_id_list.py +3 -3
  68. lusid/models/portfolio_id_list.py +3 -3
  69. lusid/models/property_list.py +3 -3
  70. lusid/models/raw_vendor_event.py +3 -3
  71. lusid/models/reference_list.py +6 -5
  72. lusid/models/reference_list_type.py +1 -0
  73. lusid/models/reset_event.py +3 -3
  74. lusid/models/reverse_stock_split_event.py +3 -3
  75. lusid/models/scrip_dividend_event.py +3 -3
  76. lusid/models/settlement_cycle.py +79 -0
  77. lusid/models/share_class_dealing_breakdown.py +3 -2
  78. lusid/models/spin_off_event.py +3 -3
  79. lusid/models/stock_dividend_event.py +20 -6
  80. lusid/models/stock_split_event.py +3 -3
  81. lusid/models/string_list.py +3 -3
  82. lusid/models/swap_cash_flow_event.py +3 -3
  83. lusid/models/swap_principal_event.py +3 -3
  84. lusid/models/transaction.py +9 -2
  85. lusid/models/transaction_date_windows.py +85 -0
  86. lusid/models/transaction_request.py +9 -2
  87. lusid/models/transition_event.py +3 -3
  88. lusid/models/trigger_event.py +3 -3
  89. lusid/models/update_group_reconciliation_comparison_ruleset_request.py +91 -0
  90. lusid/models/update_group_reconciliation_definition_request.py +107 -0
  91. lusid/models/upsert_reference_portfolio_constituent_properties_request.py +84 -0
  92. lusid/models/upsert_reference_portfolio_constituent_properties_response.py +115 -0
  93. {lusid_sdk-2.1.414.dist-info → lusid_sdk-2.1.429.dist-info}/METADATA +46 -19
  94. {lusid_sdk-2.1.414.dist-info → lusid_sdk-2.1.429.dist-info}/RECORD +95 -77
  95. {lusid_sdk-2.1.414.dist-info → lusid_sdk-2.1.429.dist-info}/WHEEL +0 -0
@@ -0,0 +1,91 @@
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, List
22
+ from pydantic.v1 import BaseModel, Field, conlist, constr
23
+ from lusid.models.group_reconciliation_aggregate_attribute_rule import GroupReconciliationAggregateAttributeRule
24
+ from lusid.models.group_reconciliation_core_attribute_rule import GroupReconciliationCoreAttributeRule
25
+
26
+ class UpdateGroupReconciliationComparisonRulesetRequest(BaseModel):
27
+ """
28
+ UpdateGroupReconciliationComparisonRulesetRequest
29
+ """
30
+ display_name: constr(strict=True, max_length=256, min_length=1) = Field(..., alias="displayName", description="The name of the ruleset")
31
+ reconciliation_type: constr(strict=True, min_length=1) = Field(..., alias="reconciliationType", description="The type of reconciliation to perform. \"Holding\" | \"Transaction\" | \"Valuation\"")
32
+ core_attribute_rules: conlist(GroupReconciliationCoreAttributeRule, min_items=1) = Field(..., alias="coreAttributeRules", description="The core comparison rules")
33
+ aggregate_attribute_rules: conlist(GroupReconciliationAggregateAttributeRule, min_items=1) = Field(..., alias="aggregateAttributeRules", description="The aggregate comparison rules")
34
+ __properties = ["displayName", "reconciliationType", "coreAttributeRules", "aggregateAttributeRules"]
35
+
36
+ class Config:
37
+ """Pydantic configuration"""
38
+ allow_population_by_field_name = True
39
+ validate_assignment = True
40
+
41
+ def to_str(self) -> str:
42
+ """Returns the string representation of the model using alias"""
43
+ return pprint.pformat(self.dict(by_alias=True))
44
+
45
+ def to_json(self) -> str:
46
+ """Returns the JSON representation of the model using alias"""
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> UpdateGroupReconciliationComparisonRulesetRequest:
51
+ """Create an instance of UpdateGroupReconciliationComparisonRulesetRequest from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self):
55
+ """Returns the dictionary representation of the model using alias"""
56
+ _dict = self.dict(by_alias=True,
57
+ exclude={
58
+ },
59
+ exclude_none=True)
60
+ # override the default output from pydantic by calling `to_dict()` of each item in core_attribute_rules (list)
61
+ _items = []
62
+ if self.core_attribute_rules:
63
+ for _item in self.core_attribute_rules:
64
+ if _item:
65
+ _items.append(_item.to_dict())
66
+ _dict['coreAttributeRules'] = _items
67
+ # override the default output from pydantic by calling `to_dict()` of each item in aggregate_attribute_rules (list)
68
+ _items = []
69
+ if self.aggregate_attribute_rules:
70
+ for _item in self.aggregate_attribute_rules:
71
+ if _item:
72
+ _items.append(_item.to_dict())
73
+ _dict['aggregateAttributeRules'] = _items
74
+ return _dict
75
+
76
+ @classmethod
77
+ def from_dict(cls, obj: dict) -> UpdateGroupReconciliationComparisonRulesetRequest:
78
+ """Create an instance of UpdateGroupReconciliationComparisonRulesetRequest from a dict"""
79
+ if obj is None:
80
+ return None
81
+
82
+ if not isinstance(obj, dict):
83
+ return UpdateGroupReconciliationComparisonRulesetRequest.parse_obj(obj)
84
+
85
+ _obj = UpdateGroupReconciliationComparisonRulesetRequest.parse_obj({
86
+ "display_name": obj.get("displayName"),
87
+ "reconciliation_type": obj.get("reconciliationType"),
88
+ "core_attribute_rules": [GroupReconciliationCoreAttributeRule.from_dict(_item) for _item in obj.get("coreAttributeRules")] if obj.get("coreAttributeRules") is not None else None,
89
+ "aggregate_attribute_rules": [GroupReconciliationAggregateAttributeRule.from_dict(_item) for _item in obj.get("aggregateAttributeRules")] if obj.get("aggregateAttributeRules") is not None else None
90
+ })
91
+ return _obj
@@ -0,0 +1,107 @@
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
23
+ from lusid.models.break_code_source import BreakCodeSource
24
+ from lusid.models.group_reconciliation_definition_comparison_ruleset_ids import GroupReconciliationDefinitionComparisonRulesetIds
25
+ from lusid.models.group_reconciliation_definition_currencies import GroupReconciliationDefinitionCurrencies
26
+ from lusid.models.group_reconciliation_definition_portfolio_entity_ids import GroupReconciliationDefinitionPortfolioEntityIds
27
+ from lusid.models.group_reconciliation_definition_recipe_ids import GroupReconciliationDefinitionRecipeIds
28
+ from lusid.models.transaction_date_windows import TransactionDateWindows
29
+
30
+ class UpdateGroupReconciliationDefinitionRequest(BaseModel):
31
+ """
32
+ UpdateGroupReconciliationDefinitionRequest
33
+ """
34
+ display_name: constr(strict=True, min_length=1) = Field(..., alias="displayName", description="The name of the Group Reconciliation Definition")
35
+ description: constr(strict=True, min_length=1) = Field(..., description="The description of the Group Reconciliation Definition")
36
+ portfolio_entity_ids: GroupReconciliationDefinitionPortfolioEntityIds = Field(..., alias="portfolioEntityIds")
37
+ recipe_ids: Optional[GroupReconciliationDefinitionRecipeIds] = Field(None, alias="recipeIds")
38
+ currencies: Optional[GroupReconciliationDefinitionCurrencies] = None
39
+ transaction_date_windows: Optional[TransactionDateWindows] = Field(None, alias="transactionDateWindows")
40
+ comparison_ruleset_ids: Optional[GroupReconciliationDefinitionComparisonRulesetIds] = Field(None, alias="comparisonRulesetIds")
41
+ break_code_source: BreakCodeSource = Field(..., alias="breakCodeSource")
42
+ __properties = ["displayName", "description", "portfolioEntityIds", "recipeIds", "currencies", "transactionDateWindows", "comparisonRulesetIds", "breakCodeSource"]
43
+
44
+ class Config:
45
+ """Pydantic configuration"""
46
+ allow_population_by_field_name = True
47
+ validate_assignment = True
48
+
49
+ def to_str(self) -> str:
50
+ """Returns the string representation of the model using alias"""
51
+ return pprint.pformat(self.dict(by_alias=True))
52
+
53
+ def to_json(self) -> str:
54
+ """Returns the JSON representation of the model using alias"""
55
+ return json.dumps(self.to_dict())
56
+
57
+ @classmethod
58
+ def from_json(cls, json_str: str) -> UpdateGroupReconciliationDefinitionRequest:
59
+ """Create an instance of UpdateGroupReconciliationDefinitionRequest from a JSON string"""
60
+ return cls.from_dict(json.loads(json_str))
61
+
62
+ def to_dict(self):
63
+ """Returns the dictionary representation of the model using alias"""
64
+ _dict = self.dict(by_alias=True,
65
+ exclude={
66
+ },
67
+ exclude_none=True)
68
+ # override the default output from pydantic by calling `to_dict()` of portfolio_entity_ids
69
+ if self.portfolio_entity_ids:
70
+ _dict['portfolioEntityIds'] = self.portfolio_entity_ids.to_dict()
71
+ # override the default output from pydantic by calling `to_dict()` of recipe_ids
72
+ if self.recipe_ids:
73
+ _dict['recipeIds'] = self.recipe_ids.to_dict()
74
+ # override the default output from pydantic by calling `to_dict()` of currencies
75
+ if self.currencies:
76
+ _dict['currencies'] = self.currencies.to_dict()
77
+ # override the default output from pydantic by calling `to_dict()` of transaction_date_windows
78
+ if self.transaction_date_windows:
79
+ _dict['transactionDateWindows'] = self.transaction_date_windows.to_dict()
80
+ # override the default output from pydantic by calling `to_dict()` of comparison_ruleset_ids
81
+ if self.comparison_ruleset_ids:
82
+ _dict['comparisonRulesetIds'] = self.comparison_ruleset_ids.to_dict()
83
+ # override the default output from pydantic by calling `to_dict()` of break_code_source
84
+ if self.break_code_source:
85
+ _dict['breakCodeSource'] = self.break_code_source.to_dict()
86
+ return _dict
87
+
88
+ @classmethod
89
+ def from_dict(cls, obj: dict) -> UpdateGroupReconciliationDefinitionRequest:
90
+ """Create an instance of UpdateGroupReconciliationDefinitionRequest from a dict"""
91
+ if obj is None:
92
+ return None
93
+
94
+ if not isinstance(obj, dict):
95
+ return UpdateGroupReconciliationDefinitionRequest.parse_obj(obj)
96
+
97
+ _obj = UpdateGroupReconciliationDefinitionRequest.parse_obj({
98
+ "display_name": obj.get("displayName"),
99
+ "description": obj.get("description"),
100
+ "portfolio_entity_ids": GroupReconciliationDefinitionPortfolioEntityIds.from_dict(obj.get("portfolioEntityIds")) if obj.get("portfolioEntityIds") is not None else None,
101
+ "recipe_ids": GroupReconciliationDefinitionRecipeIds.from_dict(obj.get("recipeIds")) if obj.get("recipeIds") is not None else None,
102
+ "currencies": GroupReconciliationDefinitionCurrencies.from_dict(obj.get("currencies")) if obj.get("currencies") is not None else None,
103
+ "transaction_date_windows": TransactionDateWindows.from_dict(obj.get("transactionDateWindows")) if obj.get("transactionDateWindows") is not None else None,
104
+ "comparison_ruleset_ids": GroupReconciliationDefinitionComparisonRulesetIds.from_dict(obj.get("comparisonRulesetIds")) if obj.get("comparisonRulesetIds") is not None else None,
105
+ "break_code_source": BreakCodeSource.from_dict(obj.get("breakCodeSource")) if obj.get("breakCodeSource") is not None else None
106
+ })
107
+ return _obj
@@ -0,0 +1,84 @@
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
22
+ from pydantic.v1 import BaseModel, Field, StrictStr
23
+ from lusid.models.perpetual_property import PerpetualProperty
24
+
25
+ class UpsertReferencePortfolioConstituentPropertiesRequest(BaseModel):
26
+ """
27
+ UpsertReferencePortfolioConstituentPropertiesRequest
28
+ """
29
+ identifiers: Dict[str, StrictStr] = Field(..., description="A set of instrument identifiers that can resolve the constituent to a unique instrument.")
30
+ properties: Dict[str, PerpetualProperty] = Field(..., description="The updated collection of properties of the constituent.")
31
+ __properties = ["identifiers", "properties"]
32
+
33
+ class Config:
34
+ """Pydantic configuration"""
35
+ allow_population_by_field_name = True
36
+ validate_assignment = True
37
+
38
+ def to_str(self) -> str:
39
+ """Returns the string representation of the model using alias"""
40
+ return pprint.pformat(self.dict(by_alias=True))
41
+
42
+ def to_json(self) -> str:
43
+ """Returns the JSON representation of the model using alias"""
44
+ return json.dumps(self.to_dict())
45
+
46
+ @classmethod
47
+ def from_json(cls, json_str: str) -> UpsertReferencePortfolioConstituentPropertiesRequest:
48
+ """Create an instance of UpsertReferencePortfolioConstituentPropertiesRequest from a JSON string"""
49
+ return cls.from_dict(json.loads(json_str))
50
+
51
+ def to_dict(self):
52
+ """Returns the dictionary representation of the model using alias"""
53
+ _dict = self.dict(by_alias=True,
54
+ exclude={
55
+ },
56
+ exclude_none=True)
57
+ # override the default output from pydantic by calling `to_dict()` of each value in properties (dict)
58
+ _field_dict = {}
59
+ if self.properties:
60
+ for _key in self.properties:
61
+ if self.properties[_key]:
62
+ _field_dict[_key] = self.properties[_key].to_dict()
63
+ _dict['properties'] = _field_dict
64
+ return _dict
65
+
66
+ @classmethod
67
+ def from_dict(cls, obj: dict) -> UpsertReferencePortfolioConstituentPropertiesRequest:
68
+ """Create an instance of UpsertReferencePortfolioConstituentPropertiesRequest from a dict"""
69
+ if obj is None:
70
+ return None
71
+
72
+ if not isinstance(obj, dict):
73
+ return UpsertReferencePortfolioConstituentPropertiesRequest.parse_obj(obj)
74
+
75
+ _obj = UpsertReferencePortfolioConstituentPropertiesRequest.parse_obj({
76
+ "identifiers": obj.get("identifiers"),
77
+ "properties": dict(
78
+ (_k, PerpetualProperty.from_dict(_v))
79
+ for _k, _v in obj.get("properties").items()
80
+ )
81
+ if obj.get("properties") is not None
82
+ else None
83
+ })
84
+ return _obj
@@ -0,0 +1,115 @@
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, List, Optional
22
+ from pydantic.v1 import BaseModel, Field, StrictStr, conlist
23
+ from lusid.models.link import Link
24
+ from lusid.models.perpetual_property import PerpetualProperty
25
+ from lusid.models.version import Version
26
+
27
+ class UpsertReferencePortfolioConstituentPropertiesResponse(BaseModel):
28
+ """
29
+ UpsertReferencePortfolioConstituentPropertiesResponse
30
+ """
31
+ href: Optional[StrictStr] = Field(None, description="The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.")
32
+ version: Optional[Version] = None
33
+ properties: Optional[Dict[str, PerpetualProperty]] = Field(None, description="The updated collection of properties of the constituent.")
34
+ links: Optional[conlist(Link)] = None
35
+ __properties = ["href", "version", "properties", "links"]
36
+
37
+ class Config:
38
+ """Pydantic configuration"""
39
+ allow_population_by_field_name = True
40
+ validate_assignment = True
41
+
42
+ def to_str(self) -> str:
43
+ """Returns the string representation of the model using alias"""
44
+ return pprint.pformat(self.dict(by_alias=True))
45
+
46
+ def to_json(self) -> str:
47
+ """Returns the JSON representation of the model using alias"""
48
+ return json.dumps(self.to_dict())
49
+
50
+ @classmethod
51
+ def from_json(cls, json_str: str) -> UpsertReferencePortfolioConstituentPropertiesResponse:
52
+ """Create an instance of UpsertReferencePortfolioConstituentPropertiesResponse from a JSON string"""
53
+ return cls.from_dict(json.loads(json_str))
54
+
55
+ def to_dict(self):
56
+ """Returns the dictionary representation of the model using alias"""
57
+ _dict = self.dict(by_alias=True,
58
+ exclude={
59
+ },
60
+ exclude_none=True)
61
+ # override the default output from pydantic by calling `to_dict()` of version
62
+ if self.version:
63
+ _dict['version'] = self.version.to_dict()
64
+ # override the default output from pydantic by calling `to_dict()` of each value in properties (dict)
65
+ _field_dict = {}
66
+ if self.properties:
67
+ for _key in self.properties:
68
+ if self.properties[_key]:
69
+ _field_dict[_key] = self.properties[_key].to_dict()
70
+ _dict['properties'] = _field_dict
71
+ # override the default output from pydantic by calling `to_dict()` of each item in links (list)
72
+ _items = []
73
+ if self.links:
74
+ for _item in self.links:
75
+ if _item:
76
+ _items.append(_item.to_dict())
77
+ _dict['links'] = _items
78
+ # set to None if href (nullable) is None
79
+ # and __fields_set__ contains the field
80
+ if self.href is None and "href" in self.__fields_set__:
81
+ _dict['href'] = None
82
+
83
+ # set to None if properties (nullable) is None
84
+ # and __fields_set__ contains the field
85
+ if self.properties is None and "properties" in self.__fields_set__:
86
+ _dict['properties'] = None
87
+
88
+ # set to None if links (nullable) is None
89
+ # and __fields_set__ contains the field
90
+ if self.links is None and "links" in self.__fields_set__:
91
+ _dict['links'] = None
92
+
93
+ return _dict
94
+
95
+ @classmethod
96
+ def from_dict(cls, obj: dict) -> UpsertReferencePortfolioConstituentPropertiesResponse:
97
+ """Create an instance of UpsertReferencePortfolioConstituentPropertiesResponse from a dict"""
98
+ if obj is None:
99
+ return None
100
+
101
+ if not isinstance(obj, dict):
102
+ return UpsertReferencePortfolioConstituentPropertiesResponse.parse_obj(obj)
103
+
104
+ _obj = UpsertReferencePortfolioConstituentPropertiesResponse.parse_obj({
105
+ "href": obj.get("href"),
106
+ "version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
107
+ "properties": dict(
108
+ (_k, PerpetualProperty.from_dict(_v))
109
+ for _k, _v in obj.get("properties").items()
110
+ )
111
+ if obj.get("properties") is not None
112
+ else None,
113
+ "links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
114
+ })
115
+ return _obj