lusid-sdk 2.1.825__py3-none-any.whl → 2.1.827__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.7900\n"\
448
+ "Version of the API: 0.11.7904\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451
 
@@ -31,7 +31,7 @@ class ClosedPeriod(BaseModel):
31
31
  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")
32
32
  effective_start: Optional[datetime] = Field(None, alias="effectiveStart", description="The effective start of the Closed Period")
33
33
  effective_end: Optional[datetime] = Field(None, alias="effectiveEnd", description="The effective end of the Closed Period")
34
- as_at_closed: Optional[datetime] = Field(None, alias="asAtClosed", description="The asAt datetime the Closed Period was created")
34
+ as_at_closed: Optional[datetime] = Field(None, alias="asAtClosed", description="The asAt closed datetime for the Closed Period")
35
35
  properties: Optional[Dict[str, ModelProperty]] = Field(None, description="The Closed Periods properties. These will be from the 'ClosedPeriod' domain.")
36
36
  version: Optional[Version] = None
37
37
  href: Optional[StrictStr] = Field(None,alias="href", description="The specific Uniform Resource Identifier (URI) for this resource at the requested asAt datetime.")
@@ -29,7 +29,8 @@ class CreateClosedPeriodRequest(BaseModel):
29
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")
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
- __properties = ["closedPeriodId", "effectiveEnd", "properties"]
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
34
 
34
35
  class Config:
35
36
  """Pydantic configuration"""
@@ -80,6 +81,11 @@ class CreateClosedPeriodRequest(BaseModel):
80
81
  if self.properties is None and "properties" in self.__fields_set__:
81
82
  _dict['properties'] = None
82
83
 
84
+ # set to None if as_at_closed (nullable) is None
85
+ # and __fields_set__ contains the field
86
+ if self.as_at_closed is None and "as_at_closed" in self.__fields_set__:
87
+ _dict['asAtClosed'] = None
88
+
83
89
  return _dict
84
90
 
85
91
  @classmethod
@@ -99,6 +105,7 @@ class CreateClosedPeriodRequest(BaseModel):
99
105
  for _k, _v in obj.get("properties").items()
100
106
  )
101
107
  if obj.get("properties") is not None
102
- else None
108
+ else None,
109
+ "as_at_closed": obj.get("asAtClosed")
103
110
  })
104
111
  return _obj
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.825
3
+ Version: 2.1.827
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -77,7 +77,7 @@ lusid/api/translation_api.py,sha256=xpRuTfwQvYBlWe6r_L2EI_uVpXqHFnEOim-i-kVQ85E,
77
77
  lusid/api/workspace_api.py,sha256=0pCNi3ZCRbIo0NXKa85XE7vtq0WV5YOKcQKvFlcLUaY,120708
78
78
  lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
79
79
  lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
80
- lusid/configuration.py,sha256=wZeYR2KwZOnktsJlNWTcAnLSUGyQB_sccyy9V3VWZT4,17972
80
+ lusid/configuration.py,sha256=Av_38N_H3JVxIv0KA3K5VGOAqTBnyq00JPACD2YMtbQ,17972
81
81
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
82
82
  lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
83
83
  lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
@@ -257,7 +257,7 @@ lusid/models/cleardown_module_rules_updated_response.py,sha256=--6ZDHxzxo-0EIsYR
257
257
  lusid/models/client.py,sha256=t7yVbuXaC_wJ257hukCcLW87GvteZnW4tlRHl_KPO-o,2234
258
258
  lusid/models/close_event.py,sha256=reoMKKJsnvRv_xnMFiaHe3NeZe9Nhj34Ecm1iBnuMFE,10850
259
259
  lusid/models/close_period_diary_entry_request.py,sha256=HnYoDoTcRLIKYIfNYruNC9yj0zrVYna-zXrDPHOS1U0,5984
260
- lusid/models/closed_period.py,sha256=jHTBGiG73gRgsyakdk0dEbvDpmYFlnH-ASy27NpEdaM,5662
260
+ lusid/models/closed_period.py,sha256=oLJF4ulRs5XMC6FqfYseESBHPDdiImXcXM5FAZbuJTw,5661
261
261
  lusid/models/comparison_attribute_value_pair.py,sha256=wPo-IwyJpBLsUqLw-hKKDrJNDdaJrGyuBBq0wNEzHR8,2650
262
262
  lusid/models/complete_portfolio.py,sha256=k7O7fogxDbgSRDQtp5YyUOcMA21uikrnHmndwPSG22A,11177
263
263
  lusid/models/complete_relation.py,sha256=HAUtMpB_mltP6w9QUO-i65QRp5cVrderHdwH5AD0Rq4,4116
@@ -320,7 +320,7 @@ lusid/models/counterparty_signatory.py,sha256=nqkBpoS2IKknRTNBrCJ9sj5CZzk5BSZu8O
320
320
  lusid/models/create_address_key_definition_request.py,sha256=gg6_lpP1486KZYFMlub9zyd-CeUhtaRx2dfc4q7E9og,2454
321
321
  lusid/models/create_amortisation_rule_set_request.py,sha256=wGMlAgGgOb5s2iTE7gmxoHc-idsmzAionbe9p9P_0ww,2755
322
322
  lusid/models/create_calendar_request.py,sha256=yVuKs2n759SaZcuS5gN92dADndw_IwPx0zObRiUBkb8,3989
323
- lusid/models/create_closed_period_request.py,sha256=8Lfh70VScDors04iSWy7jDyu9hjhIQkIlhO_MtKAGFU,3867
323
+ lusid/models/create_closed_period_request.py,sha256=i-0PUvU2_9THjw46C9SEFtdAATeEzmul3A65A2xR0u4,4290
324
324
  lusid/models/create_compliance_template_request.py,sha256=IKEJ4oMJ4mfayyVuQIwO01LVwBK0Q9dpcGh0mhBc0IA,3179
325
325
  lusid/models/create_corporate_action_source_request.py,sha256=Ynqv2JwhoANk8rokQHlWi5XGqm_K5Cf07Us6s_P2WyY,3636
326
326
  lusid/models/create_custom_data_model_request.py,sha256=zs0zTeT6MWT5Eq-hTKFBiV_sduEDRkgWMTerxZjnQo0,7762
@@ -1323,6 +1323,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
1323
1323
  lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
1324
1324
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1325
1325
  lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
1326
- lusid_sdk-2.1.825.dist-info/METADATA,sha256=PuVw5XWluD4rJvTFbzV5iypwx4vjHlMbGCGC--7i0p4,221539
1327
- lusid_sdk-2.1.825.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1328
- lusid_sdk-2.1.825.dist-info/RECORD,,
1326
+ lusid_sdk-2.1.827.dist-info/METADATA,sha256=hECvDS7lU37ngBgISmS0NPSTZruRXWvHBCZUdeOd6xI,221539
1327
+ lusid_sdk-2.1.827.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1328
+ lusid_sdk-2.1.827.dist-info/RECORD,,