lusid-sdk 2.1.867__py3-none-any.whl → 2.1.869__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.8033\n"\
448
+ "Version of the API: 0.11.8040\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451
 
@@ -30,6 +30,8 @@ class ClosedPeriod(BaseModel):
30
30
  ClosedPeriod
31
31
  """
32
32
  closed_period_id: Optional[StrictStr] = Field(None,alias="closedPeriodId", description="The unique Id of the Closed Period. The ClosedPeriodId, together with the Timeline Scope and Code, uniquely identifies a Closed Period")
33
+ display_name: Optional[StrictStr] = Field(None,alias="displayName", description="The name of the Closed Period.")
34
+ description: Optional[StrictStr] = Field(None,alias="description", description="A description for the Closed Period.")
33
35
  effective_start: Optional[datetime] = Field(None, alias="effectiveStart", description="The effective start of the Closed Period")
34
36
  effective_end: Optional[datetime] = Field(None, alias="effectiveEnd", description="The effective end of the Closed Period")
35
37
  as_at_closed: Optional[datetime] = Field(None, alias="asAtClosed", description="The asAt closed datetime for the Closed Period")
@@ -38,7 +40,7 @@ class ClosedPeriod(BaseModel):
38
40
  post_close_activities: Optional[conlist(PostCloseActivity)] = Field(None, alias="postCloseActivities", description="All the post close activities for the closed period.")
39
41
  href: Optional[StrictStr] = Field(None,alias="href", description="The specific Uniform Resource Identifier (URI) for this resource at the requested asAt datetime.")
40
42
  links: Optional[conlist(Link)] = None
41
- __properties = ["closedPeriodId", "effectiveStart", "effectiveEnd", "asAtClosed", "properties", "version", "postCloseActivities", "href", "links"]
43
+ __properties = ["closedPeriodId", "displayName", "description", "effectiveStart", "effectiveEnd", "asAtClosed", "properties", "version", "postCloseActivities", "href", "links"]
42
44
 
43
45
  class Config:
44
46
  """Pydantic configuration"""
@@ -101,6 +103,16 @@ class ClosedPeriod(BaseModel):
101
103
  if self.closed_period_id is None and "closed_period_id" in self.__fields_set__:
102
104
  _dict['closedPeriodId'] = None
103
105
 
106
+ # set to None if display_name (nullable) is None
107
+ # and __fields_set__ contains the field
108
+ if self.display_name is None and "display_name" in self.__fields_set__:
109
+ _dict['displayName'] = None
110
+
111
+ # set to None if description (nullable) is None
112
+ # and __fields_set__ contains the field
113
+ if self.description is None and "description" in self.__fields_set__:
114
+ _dict['description'] = None
115
+
104
116
  # set to None if properties (nullable) is None
105
117
  # and __fields_set__ contains the field
106
118
  if self.properties is None and "properties" in self.__fields_set__:
@@ -134,6 +146,8 @@ class ClosedPeriod(BaseModel):
134
146
 
135
147
  _obj = ClosedPeriod.parse_obj({
136
148
  "closed_period_id": obj.get("closedPeriodId"),
149
+ "display_name": obj.get("displayName"),
150
+ "description": obj.get("description"),
137
151
  "effective_start": obj.get("effectiveStart"),
138
152
  "effective_end": obj.get("effectiveEnd"),
139
153
  "as_at_closed": obj.get("asAtClosed"),
@@ -26,11 +26,13 @@ class CreateClosedPeriodRequest(BaseModel):
26
26
  """
27
27
  CreateClosedPeriodRequest
28
28
  """
29
- closed_period_id: Optional[StrictStr] = Field(None,alias="closedPeriodId", description="The unique Id of the Closed Period. The ClosedPeriodId, together with the Timeline Scope and Code, uniquely identifies a Closed Period")
29
+ closed_period_id: StrictStr = Field(...,alias="closedPeriodId", description="The unique Id of the Closed Period. The ClosedPeriodId, together with the Timeline Scope and Code, uniquely identifies a Closed Period")
30
30
  effective_end: Optional[datetime] = Field(None, alias="effectiveEnd", description="The effective end of the Closed Period")
31
31
  properties: Optional[Dict[str, ModelProperty]] = Field(None, description="The Closed Periods properties. These will be from the 'ClosedPeriod' domain.")
32
32
  as_at_closed: Optional[datetime] = Field(None, alias="asAtClosed", description="The asAt closed datetime for the Closed Period")
33
- __properties = ["closedPeriodId", "effectiveEnd", "properties", "asAtClosed"]
33
+ display_name: Optional[StrictStr] = Field(None,alias="displayName", description="The name of the Closed Period.")
34
+ description: Optional[StrictStr] = Field(None,alias="description", description="A description for the Closed Period.")
35
+ __properties = ["closedPeriodId", "effectiveEnd", "properties", "asAtClosed", "displayName", "description"]
34
36
 
35
37
  class Config:
36
38
  """Pydantic configuration"""
@@ -71,11 +73,6 @@ class CreateClosedPeriodRequest(BaseModel):
71
73
  if self.properties[_key]:
72
74
  _field_dict[_key] = self.properties[_key].to_dict()
73
75
  _dict['properties'] = _field_dict
74
- # set to None if closed_period_id (nullable) is None
75
- # and __fields_set__ contains the field
76
- if self.closed_period_id is None and "closed_period_id" in self.__fields_set__:
77
- _dict['closedPeriodId'] = None
78
-
79
76
  # set to None if properties (nullable) is None
80
77
  # and __fields_set__ contains the field
81
78
  if self.properties is None and "properties" in self.__fields_set__:
@@ -86,6 +83,16 @@ class CreateClosedPeriodRequest(BaseModel):
86
83
  if self.as_at_closed is None and "as_at_closed" in self.__fields_set__:
87
84
  _dict['asAtClosed'] = None
88
85
 
86
+ # set to None if display_name (nullable) is None
87
+ # and __fields_set__ contains the field
88
+ if self.display_name is None and "display_name" in self.__fields_set__:
89
+ _dict['displayName'] = None
90
+
91
+ # set to None if description (nullable) is None
92
+ # and __fields_set__ contains the field
93
+ if self.description is None and "description" in self.__fields_set__:
94
+ _dict['description'] = None
95
+
89
96
  return _dict
90
97
 
91
98
  @classmethod
@@ -106,6 +113,8 @@ class CreateClosedPeriodRequest(BaseModel):
106
113
  )
107
114
  if obj.get("properties") is not None
108
115
  else None,
109
- "as_at_closed": obj.get("asAtClosed")
116
+ "as_at_closed": obj.get("asAtClosed"),
117
+ "display_name": obj.get("displayName"),
118
+ "description": obj.get("description")
110
119
  })
111
120
  return _obj
@@ -20,6 +20,7 @@ import json
20
20
 
21
21
  from typing import Any, Dict, List, Optional
22
22
  from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictStr, conlist, constr
23
+ from lusid.models.resource_id import ResourceId
23
24
 
24
25
  class ValuationSchedule(BaseModel):
25
26
  """
@@ -32,7 +33,8 @@ class ValuationSchedule(BaseModel):
32
33
  holiday_calendars: Optional[conlist(StrictStr)] = Field(None, alias="holidayCalendars", description="The holiday calendar(s) that should be used in determining the date schedule. Holiday calendar(s) are supplied by their names, for example, \"CoppClark\". Note that when the calendars are not available (e.g. when the user has insufficient permissions), a recipe setting will be used to determine whether the whole batch should then fail or whether the calendar not being available should simply be ignored.")
33
34
  valuation_date_times: Optional[conlist(StrictStr)] = Field(None, alias="valuationDateTimes", description="If given, this is the exact set of dates on which to perform a valuation. This will replace/override all other specified values if given.")
34
35
  business_day_convention: Optional[StrictStr] = Field(None,alias="businessDayConvention", description="When Tenor is given and is not equal to \"1D\", there may be cases where \"date + tenor\" land on non-business days around month end. In that case, the BusinessDayConvention, e.g. modified following \"MF\" would be applied to determine the next GBD.")
35
- __properties = ["effectiveFrom", "effectiveAt", "tenor", "rollConvention", "holidayCalendars", "valuationDateTimes", "businessDayConvention"]
36
+ timeline_id: Optional[ResourceId] = Field(None, alias="timelineId")
37
+ __properties = ["effectiveFrom", "effectiveAt", "tenor", "rollConvention", "holidayCalendars", "valuationDateTimes", "businessDayConvention", "timelineId"]
36
38
 
37
39
  class Config:
38
40
  """Pydantic configuration"""
@@ -66,6 +68,9 @@ class ValuationSchedule(BaseModel):
66
68
  exclude={
67
69
  },
68
70
  exclude_none=True)
71
+ # override the default output from pydantic by calling `to_dict()` of timeline_id
72
+ if self.timeline_id:
73
+ _dict['timelineId'] = self.timeline_id.to_dict()
69
74
  # set to None if effective_from (nullable) is None
70
75
  # and __fields_set__ contains the field
71
76
  if self.effective_from is None and "effective_from" in self.__fields_set__:
@@ -114,6 +119,7 @@ class ValuationSchedule(BaseModel):
114
119
  "roll_convention": obj.get("rollConvention"),
115
120
  "holiday_calendars": obj.get("holidayCalendars"),
116
121
  "valuation_date_times": obj.get("valuationDateTimes"),
117
- "business_day_convention": obj.get("businessDayConvention")
122
+ "business_day_convention": obj.get("businessDayConvention"),
123
+ "timeline_id": ResourceId.from_dict(obj.get("timelineId")) if obj.get("timelineId") is not None else None
118
124
  })
119
125
  return _obj
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.867
3
+ Version: 2.1.869
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -78,7 +78,7 @@ lusid/api/translation_api.py,sha256=xpRuTfwQvYBlWe6r_L2EI_uVpXqHFnEOim-i-kVQ85E,
78
78
  lusid/api/workspace_api.py,sha256=0pCNi3ZCRbIo0NXKa85XE7vtq0WV5YOKcQKvFlcLUaY,120708
79
79
  lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
80
80
  lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
81
- lusid/configuration.py,sha256=Qe71G6Xl1St-RyeKu0x3HDiq2WOnqySm7IPhoSk8RQE,17972
81
+ lusid/configuration.py,sha256=9AnlAfShfJ0mFLJdhD4YeOljbmBMVGffklElq__tJUI,17972
82
82
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
83
83
  lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
84
84
  lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
@@ -260,7 +260,7 @@ lusid/models/cleardown_module_rules_updated_response.py,sha256=--6ZDHxzxo-0EIsYR
260
260
  lusid/models/client.py,sha256=t7yVbuXaC_wJ257hukCcLW87GvteZnW4tlRHl_KPO-o,2234
261
261
  lusid/models/close_event.py,sha256=6Pb_MIBM3-I1fuv8hsIlsGuNzQUJ4AL1NexzIoZkSHA,11132
262
262
  lusid/models/close_period_diary_entry_request.py,sha256=HnYoDoTcRLIKYIfNYruNC9yj0zrVYna-zXrDPHOS1U0,5984
263
- lusid/models/closed_period.py,sha256=gH8zC3mhfMOU3Yhz7ioJ2FSaqLHh_Z76UFFBCDEDNdo,6717
263
+ lusid/models/closed_period.py,sha256=ko9tVncxLmmzF05NUHB68oukokoXSOGE8N_VFG8kpy0,7544
264
264
  lusid/models/collateral.py,sha256=wHRNNfPk7vhxwjFxa8CCrOxEaWVglWq43wLTnyBGs8s,4698
265
265
  lusid/models/collateral_instrument.py,sha256=oQWJbZDljmc4-w30qM4fzywkRhA93q_GUC8A1iDBvHs,2761
266
266
  lusid/models/comparison_attribute_value_pair.py,sha256=wPo-IwyJpBLsUqLw-hKKDrJNDdaJrGyuBBq0wNEzHR8,2650
@@ -325,7 +325,7 @@ lusid/models/counterparty_signatory.py,sha256=nqkBpoS2IKknRTNBrCJ9sj5CZzk5BSZu8O
325
325
  lusid/models/create_address_key_definition_request.py,sha256=gg6_lpP1486KZYFMlub9zyd-CeUhtaRx2dfc4q7E9og,2454
326
326
  lusid/models/create_amortisation_rule_set_request.py,sha256=wGMlAgGgOb5s2iTE7gmxoHc-idsmzAionbe9p9P_0ww,2755
327
327
  lusid/models/create_calendar_request.py,sha256=yVuKs2n759SaZcuS5gN92dADndw_IwPx0zObRiUBkb8,3989
328
- lusid/models/create_closed_period_request.py,sha256=i-0PUvU2_9THjw46C9SEFtdAATeEzmul3A65A2xR0u4,4290
328
+ lusid/models/create_closed_period_request.py,sha256=9oTF4xWvJfPd82Fd8lW3ULwKIymcUdGyiEG0EZ2EBzc,4865
329
329
  lusid/models/create_compliance_template_request.py,sha256=IKEJ4oMJ4mfayyVuQIwO01LVwBK0Q9dpcGh0mhBc0IA,3179
330
330
  lusid/models/create_corporate_action_source_request.py,sha256=Ynqv2JwhoANk8rokQHlWi5XGqm_K5Cf07Us6s_P2WyY,3636
331
331
  lusid/models/create_custom_data_model_request.py,sha256=zs0zTeT6MWT5Eq-hTKFBiV_sduEDRkgWMTerxZjnQo0,7762
@@ -1312,7 +1312,7 @@ lusid/models/valuation_point_resource_list_of_fund_journal_entry_line.py,sha256=
1312
1312
  lusid/models/valuation_point_resource_list_of_pnl_journal_entry_line.py,sha256=0iO2SwkOGC7K54rN-flXFV-LQkJecw1_sX3MbXaCTug,5532
1313
1313
  lusid/models/valuation_point_resource_list_of_trial_balance.py,sha256=RGMoQnkxfZglxwUEZIbFajs4HSvuEFWoZVrUlcdkebs,5453
1314
1314
  lusid/models/valuation_request.py,sha256=fEvegA5pkAQYDumTajTprO5nUU6ag4RQZwJADWNxAvg,10770
1315
- lusid/models/valuation_schedule.py,sha256=zenVM2mUGZYho0svYTxE-AB5i-6EKf6zMCfCyvqtSeg,6265
1315
+ lusid/models/valuation_schedule.py,sha256=h55KD9N9roLic0hdNHn8N1oZfeSH1Up_x4-uDUmdrV0,6698
1316
1316
  lusid/models/valuations_reconciliation_request.py,sha256=vR-IHT9d2Zc7mZHREbd2Zpg-sIqYKpsdQ8Rttr4_JOY,5233
1317
1317
  lusid/models/value_type.py,sha256=jHK4tNBGG6VZsoUobxgcuY59JiMYF7YVSqu_tyYyL8U,1241
1318
1318
  lusid/models/vendor_dependency.py,sha256=VImkKkwdwCdkSyEQyyWZjJXSRz7UN74L_8-pNDMqj74,7539
@@ -1348,6 +1348,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
1348
1348
  lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
1349
1349
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1350
1350
  lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
1351
- lusid_sdk-2.1.867.dist-info/METADATA,sha256=mYNBSCrcSUwo7ahUVW1y2nEymzpnKmIZDoFIPdnOXGM,224274
1352
- lusid_sdk-2.1.867.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1353
- lusid_sdk-2.1.867.dist-info/RECORD,,
1351
+ lusid_sdk-2.1.869.dist-info/METADATA,sha256=tB2jGoHf1I1nF-Rivkq56ookeXT2QFQgHlbUlA-wnvA,224274
1352
+ lusid_sdk-2.1.869.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1353
+ lusid_sdk-2.1.869.dist-info/RECORD,,