lusid-sdk 2.1.603__py3-none-any.whl → 2.1.607__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 (108) hide show
  1. lusid/__init__.py +12 -0
  2. lusid/api/workspace_api.py +96 -48
  3. lusid/configuration.py +1 -1
  4. lusid/models/__init__.py +12 -0
  5. lusid/models/accumulation_event.py +3 -3
  6. lusid/models/adjust_global_commitment_event.py +93 -0
  7. lusid/models/amortisation_event.py +3 -3
  8. lusid/models/basket.py +3 -3
  9. lusid/models/bond.py +3 -3
  10. lusid/models/bond_coupon_event.py +3 -3
  11. lusid/models/bond_default_event.py +3 -3
  12. lusid/models/bond_principal_event.py +3 -3
  13. lusid/models/bonus_issue_event.py +3 -3
  14. lusid/models/call_on_intermediate_securities_event.py +3 -3
  15. lusid/models/cap_floor.py +3 -3
  16. lusid/models/capital_distribution_event.py +3 -3
  17. lusid/models/cash.py +3 -3
  18. lusid/models/cash_dividend_event.py +3 -3
  19. lusid/models/cash_flow_event.py +3 -3
  20. lusid/models/cash_perpetual.py +3 -3
  21. lusid/models/cds_credit_event.py +3 -3
  22. lusid/models/cds_index.py +3 -3
  23. lusid/models/cdx_credit_event.py +3 -3
  24. lusid/models/close_event.py +3 -3
  25. lusid/models/complex_bond.py +3 -3
  26. lusid/models/contract_details.py +101 -0
  27. lusid/models/contract_for_difference.py +3 -3
  28. lusid/models/contract_initialisation_event.py +99 -0
  29. lusid/models/credit_default_swap.py +3 -3
  30. lusid/models/credit_premium_cash_flow_event.py +3 -3
  31. lusid/models/dividend_option_event.py +3 -3
  32. lusid/models/dividend_reinvestment_event.py +3 -3
  33. lusid/models/drawdown_event.py +99 -0
  34. lusid/models/early_redemption_event.py +3 -3
  35. lusid/models/equity.py +3 -3
  36. lusid/models/equity_option.py +3 -3
  37. lusid/models/equity_swap.py +3 -3
  38. lusid/models/exchange_traded_option.py +3 -3
  39. lusid/models/exercise_event.py +3 -3
  40. lusid/models/exotic_instrument.py +3 -3
  41. lusid/models/expiry_event.py +3 -3
  42. lusid/models/fixed_leg.py +3 -3
  43. lusid/models/flexible_deposit.py +105 -0
  44. lusid/models/flexible_loan.py +3 -3
  45. lusid/models/floating_leg.py +3 -3
  46. lusid/models/forward_rate_agreement.py +3 -3
  47. lusid/models/fund_share_class.py +3 -3
  48. lusid/models/funding_leg.py +3 -3
  49. lusid/models/future.py +3 -3
  50. lusid/models/future_expiry_event.py +3 -3
  51. lusid/models/future_mark_to_market_event.py +100 -0
  52. lusid/models/fx_forward.py +3 -3
  53. lusid/models/fx_forward_settlement_event.py +3 -3
  54. lusid/models/fx_option.py +3 -3
  55. lusid/models/fx_swap.py +3 -3
  56. lusid/models/inflation_leg.py +3 -3
  57. lusid/models/inflation_linked_bond.py +3 -3
  58. lusid/models/inflation_swap.py +3 -3
  59. lusid/models/informational_error_event.py +3 -3
  60. lusid/models/informational_event.py +3 -3
  61. lusid/models/instrument_event.py +9 -5
  62. lusid/models/instrument_event_type.py +4 -0
  63. lusid/models/instrument_leg.py +3 -3
  64. lusid/models/instrument_type.py +1 -0
  65. lusid/models/interest_rate_swap.py +3 -3
  66. lusid/models/interest_rate_swaption.py +3 -3
  67. lusid/models/intermediate_securities_distribution_event.py +3 -3
  68. lusid/models/loan_facility.py +3 -3
  69. lusid/models/lusid_instrument.py +6 -5
  70. lusid/models/mastered_instrument.py +3 -3
  71. lusid/models/maturity_event.py +3 -3
  72. lusid/models/mbs_coupon_event.py +3 -3
  73. lusid/models/mbs_interest_deferral_event.py +3 -3
  74. lusid/models/mbs_interest_shortfall_event.py +3 -3
  75. lusid/models/mbs_principal_event.py +3 -3
  76. lusid/models/mbs_principal_write_off_event.py +3 -3
  77. lusid/models/merger_event.py +3 -3
  78. lusid/models/open_event.py +3 -3
  79. lusid/models/option_exercise_cash_event.py +3 -3
  80. lusid/models/option_exercise_physical_event.py +3 -3
  81. lusid/models/protection_payout_cash_flow_event.py +3 -3
  82. lusid/models/raw_vendor_event.py +3 -3
  83. lusid/models/reference_instrument.py +3 -3
  84. lusid/models/repo.py +3 -3
  85. lusid/models/reset_event.py +3 -3
  86. lusid/models/reverse_stock_split_event.py +3 -3
  87. lusid/models/scrip_dividend_event.py +3 -3
  88. lusid/models/simple_cash_flow_loan.py +3 -3
  89. lusid/models/simple_instrument.py +3 -3
  90. lusid/models/spin_off_event.py +3 -3
  91. lusid/models/stock_dividend_event.py +3 -3
  92. lusid/models/stock_split_event.py +3 -3
  93. lusid/models/swap_cash_flow_event.py +3 -3
  94. lusid/models/swap_principal_event.py +3 -3
  95. lusid/models/tender_event.py +3 -3
  96. lusid/models/term_deposit.py +3 -3
  97. lusid/models/term_deposit_interest_event.py +3 -3
  98. lusid/models/term_deposit_principal_event.py +3 -3
  99. lusid/models/total_return_swap.py +3 -3
  100. lusid/models/transition_event.py +3 -3
  101. lusid/models/trigger_event.py +3 -3
  102. lusid/models/workspace.py +1 -1
  103. lusid/models/workspace_creation_request.py +1 -1
  104. lusid/models/workspace_item.py +4 -2
  105. lusid/models/workspace_item_creation_request.py +11 -2
  106. {lusid_sdk-2.1.603.dist-info → lusid_sdk-2.1.607.dist-info}/METADATA +13 -7
  107. {lusid_sdk-2.1.603.dist-info → lusid_sdk-2.1.607.dist-info}/RECORD +108 -102
  108. {lusid_sdk-2.1.603.dist-info → lusid_sdk-2.1.607.dist-info}/WHEEL +0 -0
@@ -29,12 +29,13 @@ class WorkspaceItem(BaseModel):
29
29
  """
30
30
  type: constr(strict=True, min_length=1) = Field(..., description="The type of the workspace item.")
31
31
  format: StrictInt = Field(..., description="A simple integer format identifier.")
32
- name: constr(strict=True, min_length=1) = Field(..., description="A workspace item's name; a unique identifier.")
32
+ name: constr(strict=True, min_length=1) = Field(..., description="A workspace item's name.")
33
+ group: constr(strict=True, min_length=1) = Field(..., description="The group containing a workspace item.")
33
34
  description: constr(strict=True, max_length=1024, min_length=0) = Field(..., description="The description of a workspace item.")
34
35
  content: Optional[Any] = Field(..., description="The content associated with a workspace item.")
35
36
  version: Optional[Version] = None
36
37
  links: Optional[conlist(Link)] = None
37
- __properties = ["type", "format", "name", "description", "content", "version", "links"]
38
+ __properties = ["type", "format", "name", "group", "description", "content", "version", "links"]
38
39
 
39
40
  @validator('description')
40
41
  def description_validate_regular_expression(cls, value):
@@ -102,6 +103,7 @@ class WorkspaceItem(BaseModel):
102
103
  "type": obj.get("type"),
103
104
  "format": obj.get("format"),
104
105
  "name": obj.get("name"),
106
+ "group": obj.get("group"),
105
107
  "description": obj.get("description"),
106
108
  "content": obj.get("content"),
107
109
  "version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
@@ -26,11 +26,12 @@ class WorkspaceItemCreationRequest(BaseModel):
26
26
  A request to create an item in a workspace. # noqa: E501
27
27
  """
28
28
  format: StrictInt = Field(..., description="A simple integer format identifier.")
29
- name: constr(strict=True, max_length=64, min_length=1) = Field(..., description="A workspace item's name; a unique identifier.")
29
+ name: constr(strict=True, max_length=64, min_length=1) = Field(..., description="A workspace item's name.")
30
+ group: constr(strict=True, max_length=64, min_length=1) = Field(..., description="The group containing a workspace item.")
30
31
  description: constr(strict=True, max_length=1024, min_length=0) = Field(..., description="The description of a workspace item.")
31
32
  content: Optional[Any] = Field(..., description="The content associated with a workspace item.")
32
33
  type: constr(strict=True, max_length=6000, min_length=0) = Field(..., description="The type of the workspace item.")
33
- __properties = ["format", "name", "description", "content", "type"]
34
+ __properties = ["format", "name", "group", "description", "content", "type"]
34
35
 
35
36
  @validator('name')
36
37
  def name_validate_regular_expression(cls, value):
@@ -39,6 +40,13 @@ class WorkspaceItemCreationRequest(BaseModel):
39
40
  raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9\-_]+$/")
40
41
  return value
41
42
 
43
+ @validator('group')
44
+ def group_validate_regular_expression(cls, value):
45
+ """Validates the regular expression"""
46
+ if not re.match(r"^[a-zA-Z0-9\-_]+$", value):
47
+ raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9\-_]+$/")
48
+ return value
49
+
42
50
  @validator('description')
43
51
  def description_validate_regular_expression(cls, value):
44
52
  """Validates the regular expression"""
@@ -89,6 +97,7 @@ class WorkspaceItemCreationRequest(BaseModel):
89
97
  _obj = WorkspaceItemCreationRequest.parse_obj({
90
98
  "format": obj.get("format"),
91
99
  "name": obj.get("name"),
100
+ "group": obj.get("group"),
92
101
  "description": obj.get("description"),
93
102
  "content": obj.get("content"),
94
103
  "type": obj.get("type")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.603
3
+ Version: 2.1.607
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -614,21 +614,21 @@ Class | Method | HTTP request | Description
614
614
  *WorkspaceApi* | [**create_personal_workspace**](docs/WorkspaceApi.md#create_personal_workspace) | **POST** /api/workspaces/personal | [EXPERIMENTAL] CreatePersonalWorkspace: Create a new personal workspace.
615
615
  *WorkspaceApi* | [**create_shared_item**](docs/WorkspaceApi.md#create_shared_item) | **POST** /api/workspaces/shared/{workspaceName}/items | [EXPERIMENTAL] CreateSharedItem: Create a new item in a shared workspace.
616
616
  *WorkspaceApi* | [**create_shared_workspace**](docs/WorkspaceApi.md#create_shared_workspace) | **POST** /api/workspaces/shared | [EXPERIMENTAL] CreateSharedWorkspace: Create a new shared workspace.
617
- *WorkspaceApi* | [**delete_personal_item**](docs/WorkspaceApi.md#delete_personal_item) | **DELETE** /api/workspaces/personal/{workspaceName}/items/{itemName} | [EXPERIMENTAL] DeletePersonalItem: Delete an item from a personal workspace.
617
+ *WorkspaceApi* | [**delete_personal_item**](docs/WorkspaceApi.md#delete_personal_item) | **DELETE** /api/workspaces/personal/{workspaceName}/items/{groupName}/{itemName} | [EXPERIMENTAL] DeletePersonalItem: Delete an item from a personal workspace.
618
618
  *WorkspaceApi* | [**delete_personal_workspace**](docs/WorkspaceApi.md#delete_personal_workspace) | **DELETE** /api/workspaces/personal/{workspaceName} | [EXPERIMENTAL] DeletePersonalWorkspace: Delete a personal workspace.
619
- *WorkspaceApi* | [**delete_shared_item**](docs/WorkspaceApi.md#delete_shared_item) | **DELETE** /api/workspaces/shared/{workspaceName}/items/{itemName} | [EXPERIMENTAL] DeleteSharedItem: Delete an item from a shared workspace.
619
+ *WorkspaceApi* | [**delete_shared_item**](docs/WorkspaceApi.md#delete_shared_item) | **DELETE** /api/workspaces/shared/{workspaceName}/items/{groupName}/{itemName} | [EXPERIMENTAL] DeleteSharedItem: Delete an item from a shared workspace.
620
620
  *WorkspaceApi* | [**delete_shared_workspace**](docs/WorkspaceApi.md#delete_shared_workspace) | **DELETE** /api/workspaces/shared/{workspaceName} | [EXPERIMENTAL] DeleteSharedWorkspace: Delete a shared workspace.
621
- *WorkspaceApi* | [**get_personal_item**](docs/WorkspaceApi.md#get_personal_item) | **GET** /api/workspaces/personal/{workspaceName}/items/{itemName} | [EXPERIMENTAL] GetPersonalItem: Get a single personal workspace item.
621
+ *WorkspaceApi* | [**get_personal_item**](docs/WorkspaceApi.md#get_personal_item) | **GET** /api/workspaces/personal/{workspaceName}/items/{groupName}/{itemName} | [EXPERIMENTAL] GetPersonalItem: Get a single personal workspace item.
622
622
  *WorkspaceApi* | [**get_personal_workspace**](docs/WorkspaceApi.md#get_personal_workspace) | **GET** /api/workspaces/personal/{workspaceName} | [EXPERIMENTAL] GetPersonalWorkspace: Get a personal workspace.
623
- *WorkspaceApi* | [**get_shared_item**](docs/WorkspaceApi.md#get_shared_item) | **GET** /api/workspaces/shared/{workspaceName}/items/{itemName} | [EXPERIMENTAL] GetSharedItem: Get a single shared workspace item.
623
+ *WorkspaceApi* | [**get_shared_item**](docs/WorkspaceApi.md#get_shared_item) | **GET** /api/workspaces/shared/{workspaceName}/items/{groupName}/{itemName} | [EXPERIMENTAL] GetSharedItem: Get a single shared workspace item.
624
624
  *WorkspaceApi* | [**get_shared_workspace**](docs/WorkspaceApi.md#get_shared_workspace) | **GET** /api/workspaces/shared/{workspaceName} | [EXPERIMENTAL] GetSharedWorkspace: Get a shared workspace.
625
625
  *WorkspaceApi* | [**list_personal_items**](docs/WorkspaceApi.md#list_personal_items) | **GET** /api/workspaces/personal/{workspaceName}/items | [EXPERIMENTAL] ListPersonalItems: List the items in a personal workspace.
626
626
  *WorkspaceApi* | [**list_personal_workspaces**](docs/WorkspaceApi.md#list_personal_workspaces) | **GET** /api/workspaces/personal | [EXPERIMENTAL] ListPersonalWorkspaces: List personal workspaces.
627
627
  *WorkspaceApi* | [**list_shared_items**](docs/WorkspaceApi.md#list_shared_items) | **GET** /api/workspaces/shared/{workspaceName}/items | [EXPERIMENTAL] ListSharedItems: List the items in a shared workspace.
628
628
  *WorkspaceApi* | [**list_shared_workspaces**](docs/WorkspaceApi.md#list_shared_workspaces) | **GET** /api/workspaces/shared | [EXPERIMENTAL] ListSharedWorkspaces: List shared workspaces.
629
- *WorkspaceApi* | [**update_personal_item**](docs/WorkspaceApi.md#update_personal_item) | **PUT** /api/workspaces/personal/{workspaceName}/items/{itemName} | [EXPERIMENTAL] UpdatePersonalItem: Update an item in a personal workspace.
629
+ *WorkspaceApi* | [**update_personal_item**](docs/WorkspaceApi.md#update_personal_item) | **PUT** /api/workspaces/personal/{workspaceName}/items/{groupName}/{itemName} | [EXPERIMENTAL] UpdatePersonalItem: Update an item in a personal workspace.
630
630
  *WorkspaceApi* | [**update_personal_workspace**](docs/WorkspaceApi.md#update_personal_workspace) | **PUT** /api/workspaces/personal/{workspaceName} | [EXPERIMENTAL] UpdatePersonalWorkspace: Update a personal workspace.
631
- *WorkspaceApi* | [**update_shared_item**](docs/WorkspaceApi.md#update_shared_item) | **PUT** /api/workspaces/shared/{workspaceName}/items/{itemName} | [EXPERIMENTAL] UpdateSharedItem: Update an item in a shared workspace.
631
+ *WorkspaceApi* | [**update_shared_item**](docs/WorkspaceApi.md#update_shared_item) | **PUT** /api/workspaces/shared/{workspaceName}/items/{groupName}/{itemName} | [EXPERIMENTAL] UpdateSharedItem: Update an item in a shared workspace.
632
632
  *WorkspaceApi* | [**update_shared_workspace**](docs/WorkspaceApi.md#update_shared_workspace) | **PUT** /api/workspaces/shared/{workspaceName} | [EXPERIMENTAL] UpdateSharedWorkspace: Update a shared workspace.
633
633
 
634
634
 
@@ -666,6 +666,7 @@ Class | Method | HTTP request | Description
666
666
  - [AddressKeyList](docs/AddressKeyList.md)
667
667
  - [AddressKeyListComplianceParameter](docs/AddressKeyListComplianceParameter.md)
668
668
  - [AddressKeyOptionDefinition](docs/AddressKeyOptionDefinition.md)
669
+ - [AdjustGlobalCommitmentEvent](docs/AdjustGlobalCommitmentEvent.md)
669
670
  - [AdjustHolding](docs/AdjustHolding.md)
670
671
  - [AdjustHoldingForDateRequest](docs/AdjustHoldingForDateRequest.md)
671
672
  - [AdjustHoldingRequest](docs/AdjustHoldingRequest.md)
@@ -829,7 +830,9 @@ Class | Method | HTTP request | Description
829
830
  - [ConfigurationRecipe](docs/ConfigurationRecipe.md)
830
831
  - [ConstantVolatilitySurface](docs/ConstantVolatilitySurface.md)
831
832
  - [ConstituentsAdjustmentHeader](docs/ConstituentsAdjustmentHeader.md)
833
+ - [ContractDetails](docs/ContractDetails.md)
832
834
  - [ContractForDifference](docs/ContractForDifference.md)
835
+ - [ContractInitialisationEvent](docs/ContractInitialisationEvent.md)
833
836
  - [ContributionToNonPassingRuleDetail](docs/ContributionToNonPassingRuleDetail.md)
834
837
  - [CorporateAction](docs/CorporateAction.md)
835
838
  - [CorporateActionSource](docs/CorporateActionSource.md)
@@ -935,6 +938,7 @@ Class | Method | HTTP request | Description
935
938
  - [DiscountingMethod](docs/DiscountingMethod.md)
936
939
  - [DividendOptionEvent](docs/DividendOptionEvent.md)
937
940
  - [DividendReinvestmentEvent](docs/DividendReinvestmentEvent.md)
941
+ - [DrawdownEvent](docs/DrawdownEvent.md)
938
942
  - [EarlyRedemptionElection](docs/EarlyRedemptionElection.md)
939
943
  - [EarlyRedemptionEvent](docs/EarlyRedemptionEvent.md)
940
944
  - [EconomicDependency](docs/EconomicDependency.md)
@@ -988,6 +992,7 @@ Class | Method | HTTP request | Description
988
992
  - [FixedLeg](docs/FixedLeg.md)
989
993
  - [FixedLegAllOfOverrides](docs/FixedLegAllOfOverrides.md)
990
994
  - [FixedSchedule](docs/FixedSchedule.md)
995
+ - [FlexibleDeposit](docs/FlexibleDeposit.md)
991
996
  - [FlexibleLoan](docs/FlexibleLoan.md)
992
997
  - [FloatSchedule](docs/FloatSchedule.md)
993
998
  - [FloatingLeg](docs/FloatingLeg.md)
@@ -1012,6 +1017,7 @@ Class | Method | HTTP request | Description
1012
1017
  - [FundingLegOptions](docs/FundingLegOptions.md)
1013
1018
  - [Future](docs/Future.md)
1014
1019
  - [FutureExpiryEvent](docs/FutureExpiryEvent.md)
1020
+ - [FutureMarkToMarketEvent](docs/FutureMarkToMarketEvent.md)
1015
1021
  - [FuturesContractDetails](docs/FuturesContractDetails.md)
1016
1022
  - [FxConventions](docs/FxConventions.md)
1017
1023
  - [FxDependency](docs/FxDependency.md)