lusid-sdk 2.1.541__py3-none-any.whl → 2.1.543__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.6970\n"\
448
+ "Version of the API: 0.11.6972\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451
 
@@ -27,15 +27,15 @@ class MasteredInstrument(LusidInstrument):
27
27
  LUSID representation of a reference to another instrument that has already been upserted (Mastered) # noqa: E501
28
28
  """
29
29
  identifiers: Dict[str, StrictStr] = Field(..., description="Dictionary of identifiers of the mastered instrument")
30
- asset_class: Optional[StrictStr] = Field(None, alias="assetClass", description="Asset class of the mastered instrument - read only field Supported string (enumeration) values are: [InterestRates, FX, Inflation, Equities, Credit, Commodities, Money].")
31
30
  mastered_dom_ccy: Optional[StrictStr] = Field(None, alias="masteredDomCcy", description="DomCcy of the Instrument that Mastered Instrument points to - read only field")
32
31
  mastered_instrument_type: Optional[StrictStr] = Field(None, alias="masteredInstrumentType", description="Type of the Instrument that Mastered Instrument points to - read only field")
33
32
  mastered_lusid_instrument_id: Optional[StrictStr] = Field(None, alias="masteredLusidInstrumentId", description="Luid of the Instrument that Mastered Instrument points to - read only field")
34
33
  mastered_name: Optional[StrictStr] = Field(None, alias="masteredName", description="Name of the Instrument that Mastered Instrument points to - read only field")
35
34
  mastered_scope: Optional[StrictStr] = Field(None, alias="masteredScope", description="Scope of the Instrument that Mastered Instrument points to - read only field")
35
+ mastered_asset_class: Optional[StrictStr] = Field(None, alias="masteredAssetClass", description="Asset class of the underlying mastered instrument - read only field Supported string (enumeration) values are: [InterestRates, FX, Inflation, Equities, Credit, Commodities, Money].")
36
36
  instrument_type: StrictStr = Field(..., alias="instrumentType", description="The available values are: QuotedSecurity, InterestRateSwap, FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap, InterestRateSwaption, Bond, EquityOption, FixedLeg, FloatingLeg, BespokeCashFlowsLeg, Unknown, TermDeposit, ContractForDifference, EquitySwap, CashPerpetual, CapFloor, CashSettled, CdsIndex, Basket, FundingLeg, FxSwap, ForwardRateAgreement, SimpleInstrument, Repo, Equity, ExchangeTradedOption, ReferenceInstrument, ComplexBond, InflationLinkedBond, InflationSwap, SimpleCashFlowLoan, TotalReturnSwap, InflationLeg, FundShareClass, FlexibleLoan, UnsettledCash, Cash, MasteredInstrument, LoanFacility")
37
37
  additional_properties: Dict[str, Any] = {}
38
- __properties = ["instrumentType", "identifiers", "assetClass", "masteredDomCcy", "masteredInstrumentType", "masteredLusidInstrumentId", "masteredName", "masteredScope"]
38
+ __properties = ["instrumentType", "identifiers", "masteredDomCcy", "masteredInstrumentType", "masteredLusidInstrumentId", "masteredName", "masteredScope", "masteredAssetClass"]
39
39
 
40
40
  @validator('instrument_type')
41
41
  def instrument_type_validate_enum(cls, value):
@@ -66,12 +66,12 @@ class MasteredInstrument(LusidInstrument):
66
66
  """Returns the dictionary representation of the model using alias"""
67
67
  _dict = self.dict(by_alias=True,
68
68
  exclude={
69
- "asset_class",
70
69
  "mastered_dom_ccy",
71
70
  "mastered_instrument_type",
72
71
  "mastered_lusid_instrument_id",
73
72
  "mastered_name",
74
73
  "mastered_scope",
74
+ "mastered_asset_class",
75
75
  "additional_properties"
76
76
  },
77
77
  exclude_none=True)
@@ -80,11 +80,6 @@ class MasteredInstrument(LusidInstrument):
80
80
  for _key, _value in self.additional_properties.items():
81
81
  _dict[_key] = _value
82
82
 
83
- # set to None if asset_class (nullable) is None
84
- # and __fields_set__ contains the field
85
- if self.asset_class is None and "asset_class" in self.__fields_set__:
86
- _dict['assetClass'] = None
87
-
88
83
  # set to None if mastered_dom_ccy (nullable) is None
89
84
  # and __fields_set__ contains the field
90
85
  if self.mastered_dom_ccy is None and "mastered_dom_ccy" in self.__fields_set__:
@@ -110,6 +105,11 @@ class MasteredInstrument(LusidInstrument):
110
105
  if self.mastered_scope is None and "mastered_scope" in self.__fields_set__:
111
106
  _dict['masteredScope'] = None
112
107
 
108
+ # set to None if mastered_asset_class (nullable) is None
109
+ # and __fields_set__ contains the field
110
+ if self.mastered_asset_class is None and "mastered_asset_class" in self.__fields_set__:
111
+ _dict['masteredAssetClass'] = None
112
+
113
113
  return _dict
114
114
 
115
115
  @classmethod
@@ -124,12 +124,12 @@ class MasteredInstrument(LusidInstrument):
124
124
  _obj = MasteredInstrument.parse_obj({
125
125
  "instrument_type": obj.get("instrumentType"),
126
126
  "identifiers": obj.get("identifiers"),
127
- "asset_class": obj.get("assetClass"),
128
127
  "mastered_dom_ccy": obj.get("masteredDomCcy"),
129
128
  "mastered_instrument_type": obj.get("masteredInstrumentType"),
130
129
  "mastered_lusid_instrument_id": obj.get("masteredLusidInstrumentId"),
131
130
  "mastered_name": obj.get("masteredName"),
132
- "mastered_scope": obj.get("masteredScope")
131
+ "mastered_scope": obj.get("masteredScope"),
132
+ "mastered_asset_class": obj.get("masteredAssetClass")
133
133
  })
134
134
  # store additional fields in additional_properties
135
135
  for _key in obj.keys():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.541
3
+ Version: 2.1.543
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -70,7 +70,7 @@ lusid/api/translation_api.py,sha256=nIyuLncCvVC5k2d7Nm32zR8AQ1dkrVm1OThkmELY_OM,
70
70
  lusid/api/workspace_api.py,sha256=mYQPqFUVf1VKYeWQUV5VkcdSqwejSmPDGd66Az86-_E,191319
71
71
  lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
72
72
  lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
73
- lusid/configuration.py,sha256=D793xe_pUrec-03R6CtcDdR6PwQ18d-zOKUr-2KEV5w,17972
73
+ lusid/configuration.py,sha256=B4yt8-fnXpZzNWoTydkgEUmlPdC5V7sY-8BgQL1z24I,17972
74
74
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
75
75
  lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
76
76
  lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
@@ -632,7 +632,7 @@ lusid/models/market_data_type.py,sha256=4NyCfdwiQjP1MZK_SovXB6IVrspTU56JhmxfSdNR
632
632
  lusid/models/market_observable_type.py,sha256=E1cl-6yHelmR1b7CarmYNgRHWxhPrFknNrXZlwYywAk,801
633
633
  lusid/models/market_options.py,sha256=peTygbETrHWKcKnKsn4ItPbgu0PidKG8d2U-DCApCAo,6247
634
634
  lusid/models/market_quote.py,sha256=Ra6tOiimR6Rdf7pAESEWW2IMZG669jU8eNje8NepYZg,3325
635
- lusid/models/mastered_instrument.py,sha256=N6EUpGYwWdmOgQYT0wqCE0yazOQMdDuIBceIPwWWyBw,8456
635
+ lusid/models/mastered_instrument.py,sha256=_rU_hnyOjoLsIBHObjwHV45uNsZehTIwAlgLx9hQLe4,8553
636
636
  lusid/models/match_criterion.py,sha256=cnLfFgO9k05dH7ooGS7s3d8BvyJNuVMDUh3Yt-SPuec,3568
637
637
  lusid/models/maturity_event.py,sha256=9_uOG-DWCQOnQAThPblhY11H03ll-epk3Dz4dBApxyQ,6059
638
638
  lusid/models/mbs_coupon_event.py,sha256=vysCVFRrWsv8rKRrUHB_luNlrhfDQILkauWrbAxYIQI,6966
@@ -1222,6 +1222,6 @@ lusid/models/workspace_update_request.py,sha256=uUXEpX-dJ5UiL9w1wMxIFeovSBiTJ-vi
1222
1222
  lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
1223
1223
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1224
1224
  lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
1225
- lusid_sdk-2.1.541.dist-info/METADATA,sha256=HFcKrBkASuGOP84Q6tRQzdD22mEkQ9v23_2at7LwOcM,208625
1226
- lusid_sdk-2.1.541.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1227
- lusid_sdk-2.1.541.dist-info/RECORD,,
1225
+ lusid_sdk-2.1.543.dist-info/METADATA,sha256=IYqnPxmmCt_cVeDaeOq2LzpgKkK30A8Xp8nwoyNE6-g,208625
1226
+ lusid_sdk-2.1.543.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1227
+ lusid_sdk-2.1.543.dist-info/RECORD,,