lusid-sdk 2.1.347__py3-none-any.whl → 2.1.363__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/__init__.py +26 -0
- lusid/api/__init__.py +3 -1
- lusid/api/data_types_api.py +160 -0
- lusid/api/funds_api.py +9 -8
- lusid/api/workspace_api.py +3433 -0
- lusid/configuration.py +16 -7
- lusid/models/__init__.py +24 -0
- lusid/models/accept_estimate_valuation_point_response.py +100 -0
- lusid/models/accumulation_event.py +3 -3
- lusid/models/amortisation_event.py +3 -3
- lusid/models/bond_coupon_event.py +3 -3
- lusid/models/bond_default_event.py +3 -3
- lusid/models/bond_principal_event.py +3 -3
- lusid/models/capital_distribution_event.py +3 -3
- lusid/models/cash_dividend_event.py +3 -3
- lusid/models/cash_flow_event.py +3 -3
- lusid/models/close_event.py +3 -3
- lusid/models/close_period_diary_entry_request.py +1 -1
- lusid/models/diary_entry.py +1 -1
- lusid/models/diary_entry_request.py +1 -1
- lusid/models/dividend_option_event.py +3 -3
- lusid/models/dividend_reinvestment_event.py +3 -3
- lusid/models/exercise_event.py +3 -3
- lusid/models/expiry_event.py +3 -3
- lusid/models/future_expiry_event.py +3 -3
- lusid/models/fx_forward_settlement_event.py +3 -3
- lusid/models/informational_error_event.py +3 -3
- lusid/models/informational_event.py +3 -3
- lusid/models/instrument_event.py +7 -5
- lusid/models/instrument_event_type.py +2 -0
- lusid/models/instrument_resolution_detail.py +19 -5
- lusid/models/maturity_event.py +3 -3
- lusid/models/merger_event.py +3 -3
- lusid/models/open_event.py +3 -3
- lusid/models/order_update_request.py +5 -0
- lusid/models/paged_resource_list_of_workspace.py +113 -0
- lusid/models/paged_resource_list_of_workspace_item.py +113 -0
- lusid/models/raw_vendor_event.py +3 -3
- lusid/models/reset_event.py +3 -3
- lusid/models/reverse_stock_split_event.py +3 -3
- lusid/models/scrip_dividend_event.py +3 -3
- lusid/models/share_class_breakdown.py +5 -13
- lusid/models/share_class_dealing_breakdown.py +96 -0
- lusid/models/spin_off_event.py +3 -3
- lusid/models/stock_dividend_event.py +3 -3
- lusid/models/stock_split_event.py +3 -3
- lusid/models/swap_cash_flow_event.py +97 -0
- lusid/models/swap_principal_event.py +97 -0
- lusid/models/transition_event.py +3 -3
- lusid/models/trigger_event.py +3 -3
- lusid/models/valuation_point_data_response.py +1 -1
- lusid/models/workspace.py +92 -0
- lusid/models/workspace_creation_request.py +78 -0
- lusid/models/workspace_item.py +105 -0
- lusid/models/workspace_item_creation_request.py +91 -0
- lusid/models/workspace_item_update_request.py +82 -0
- lusid/models/workspace_update_request.py +69 -0
- {lusid_sdk-2.1.347.dist-info → lusid_sdk-2.1.363.dist-info}/METADATA +34 -1
- {lusid_sdk-2.1.347.dist-info → lusid_sdk-2.1.363.dist-info}/RECORD +60 -47
- {lusid_sdk-2.1.347.dist-info → lusid_sdk-2.1.363.dist-info}/WHEEL +0 -0
@@ -31,7 +31,7 @@ class ValuationPointDataResponse(BaseModel):
|
|
31
31
|
"""
|
32
32
|
href: Optional[StrictStr] = Field(None, description="The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.")
|
33
33
|
type: constr(strict=True, min_length=1) = Field(..., description="The Type of the associated Diary Entry ('PeriodBoundary','ValuationPoint','Other' or 'Adhoc' when a diary entry wasn't used).")
|
34
|
-
status: constr(strict=True, min_length=1) = Field(..., description="The
|
34
|
+
status: constr(strict=True, min_length=1) = Field(..., description="The status of a Diary Entry of Type 'ValuationPoint'. Defaults to 'Estimate' when upserting a diary entry, moves to 'Candidate' or 'Final' when a ValuationPoint is accepted, and 'Final' when it is finalised. The status of a Diary Entry becomes 'Unofficial' when a diary entry wasn't used.")
|
35
35
|
backout: Dict[str, Union[StrictFloat, StrictInt]] = Field(..., description="DEPRECATED. Bucket of detail for the Valuation Point, where data points have been 'backed out'.")
|
36
36
|
dealing: Dict[str, Union[StrictFloat, StrictInt]] = Field(..., description="DEPRECATED. Bucket of detail for any 'Dealing' that has occured inside the queried period.")
|
37
37
|
pn_l: Dict[str, Union[StrictFloat, StrictInt]] = Field(..., alias="pnL", description="DEPRECATED. Bucket of detail for 'PnL' that has occured inside the queried period.")
|
@@ -0,0 +1,92 @@
|
|
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, conlist, constr
|
23
|
+
from lusid.models.link import Link
|
24
|
+
from lusid.models.version import Version
|
25
|
+
|
26
|
+
class Workspace(BaseModel):
|
27
|
+
"""
|
28
|
+
A workspace. # noqa: E501
|
29
|
+
"""
|
30
|
+
name: constr(strict=True, min_length=1) = Field(..., description="A workspace's name; a unique identifier.")
|
31
|
+
description: constr(strict=True, max_length=6000, min_length=0) = Field(..., description="A friendly description for the workspace.")
|
32
|
+
version: Optional[Version] = None
|
33
|
+
links: Optional[conlist(Link)] = None
|
34
|
+
__properties = ["name", "description", "version", "links"]
|
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) -> Workspace:
|
51
|
+
"""Create an instance of Workspace 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 version
|
61
|
+
if self.version:
|
62
|
+
_dict['version'] = self.version.to_dict()
|
63
|
+
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
64
|
+
_items = []
|
65
|
+
if self.links:
|
66
|
+
for _item in self.links:
|
67
|
+
if _item:
|
68
|
+
_items.append(_item.to_dict())
|
69
|
+
_dict['links'] = _items
|
70
|
+
# set to None if links (nullable) is None
|
71
|
+
# and __fields_set__ contains the field
|
72
|
+
if self.links is None and "links" in self.__fields_set__:
|
73
|
+
_dict['links'] = None
|
74
|
+
|
75
|
+
return _dict
|
76
|
+
|
77
|
+
@classmethod
|
78
|
+
def from_dict(cls, obj: dict) -> Workspace:
|
79
|
+
"""Create an instance of Workspace from a dict"""
|
80
|
+
if obj is None:
|
81
|
+
return None
|
82
|
+
|
83
|
+
if not isinstance(obj, dict):
|
84
|
+
return Workspace.parse_obj(obj)
|
85
|
+
|
86
|
+
_obj = Workspace.parse_obj({
|
87
|
+
"name": obj.get("name"),
|
88
|
+
"description": obj.get("description"),
|
89
|
+
"version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
|
90
|
+
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
91
|
+
})
|
92
|
+
return _obj
|
@@ -0,0 +1,78 @@
|
|
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, constr, validator
|
23
|
+
|
24
|
+
class WorkspaceCreationRequest(BaseModel):
|
25
|
+
"""
|
26
|
+
A request to create an empty workspace. # noqa: E501
|
27
|
+
"""
|
28
|
+
name: constr(strict=True, max_length=64, min_length=1) = Field(..., description="A workspace's name; a unique identifier.")
|
29
|
+
description: constr(strict=True, max_length=6000, min_length=0) = Field(..., description="A friendly description for the workspace.")
|
30
|
+
__properties = ["name", "description"]
|
31
|
+
|
32
|
+
@validator('name')
|
33
|
+
def name_validate_regular_expression(cls, value):
|
34
|
+
"""Validates the regular expression"""
|
35
|
+
if not re.match(r"^[a-zA-Z0-9\-_]+$", value):
|
36
|
+
raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9\-_]+$/")
|
37
|
+
return value
|
38
|
+
|
39
|
+
class Config:
|
40
|
+
"""Pydantic configuration"""
|
41
|
+
allow_population_by_field_name = True
|
42
|
+
validate_assignment = True
|
43
|
+
|
44
|
+
def to_str(self) -> str:
|
45
|
+
"""Returns the string representation of the model using alias"""
|
46
|
+
return pprint.pformat(self.dict(by_alias=True))
|
47
|
+
|
48
|
+
def to_json(self) -> str:
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
50
|
+
return json.dumps(self.to_dict())
|
51
|
+
|
52
|
+
@classmethod
|
53
|
+
def from_json(cls, json_str: str) -> WorkspaceCreationRequest:
|
54
|
+
"""Create an instance of WorkspaceCreationRequest from a JSON string"""
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
56
|
+
|
57
|
+
def to_dict(self):
|
58
|
+
"""Returns the dictionary representation of the model using alias"""
|
59
|
+
_dict = self.dict(by_alias=True,
|
60
|
+
exclude={
|
61
|
+
},
|
62
|
+
exclude_none=True)
|
63
|
+
return _dict
|
64
|
+
|
65
|
+
@classmethod
|
66
|
+
def from_dict(cls, obj: dict) -> WorkspaceCreationRequest:
|
67
|
+
"""Create an instance of WorkspaceCreationRequest from a dict"""
|
68
|
+
if obj is None:
|
69
|
+
return None
|
70
|
+
|
71
|
+
if not isinstance(obj, dict):
|
72
|
+
return WorkspaceCreationRequest.parse_obj(obj)
|
73
|
+
|
74
|
+
_obj = WorkspaceCreationRequest.parse_obj({
|
75
|
+
"name": obj.get("name"),
|
76
|
+
"description": obj.get("description")
|
77
|
+
})
|
78
|
+
return _obj
|
@@ -0,0 +1,105 @@
|
|
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, StrictInt, conlist, constr, validator
|
23
|
+
from lusid.models.link import Link
|
24
|
+
from lusid.models.version import Version
|
25
|
+
|
26
|
+
class WorkspaceItem(BaseModel):
|
27
|
+
"""
|
28
|
+
An item stored in a workspace. # noqa: E501
|
29
|
+
"""
|
30
|
+
type: constr(strict=True, min_length=1) = Field(..., description="The type of the workspace item.")
|
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.")
|
33
|
+
description: constr(strict=True, max_length=1024, min_length=0) = Field(..., description="The description of a workspace item.")
|
34
|
+
content: constr(strict=True, max_length=6000, min_length=0) = Field(..., description="The content associated with a workspace item.")
|
35
|
+
version: Optional[Version] = None
|
36
|
+
links: Optional[conlist(Link)] = None
|
37
|
+
__properties = ["type", "format", "name", "description", "content", "version", "links"]
|
38
|
+
|
39
|
+
@validator('description')
|
40
|
+
def description_validate_regular_expression(cls, value):
|
41
|
+
"""Validates the regular expression"""
|
42
|
+
if not re.match(r"^[\s\S]*$", value):
|
43
|
+
raise ValueError(r"must validate the regular expression /^[\s\S]*$/")
|
44
|
+
return value
|
45
|
+
|
46
|
+
class Config:
|
47
|
+
"""Pydantic configuration"""
|
48
|
+
allow_population_by_field_name = True
|
49
|
+
validate_assignment = True
|
50
|
+
|
51
|
+
def to_str(self) -> str:
|
52
|
+
"""Returns the string representation of the model using alias"""
|
53
|
+
return pprint.pformat(self.dict(by_alias=True))
|
54
|
+
|
55
|
+
def to_json(self) -> str:
|
56
|
+
"""Returns the JSON representation of the model using alias"""
|
57
|
+
return json.dumps(self.to_dict())
|
58
|
+
|
59
|
+
@classmethod
|
60
|
+
def from_json(cls, json_str: str) -> WorkspaceItem:
|
61
|
+
"""Create an instance of WorkspaceItem from a JSON string"""
|
62
|
+
return cls.from_dict(json.loads(json_str))
|
63
|
+
|
64
|
+
def to_dict(self):
|
65
|
+
"""Returns the dictionary representation of the model using alias"""
|
66
|
+
_dict = self.dict(by_alias=True,
|
67
|
+
exclude={
|
68
|
+
},
|
69
|
+
exclude_none=True)
|
70
|
+
# override the default output from pydantic by calling `to_dict()` of version
|
71
|
+
if self.version:
|
72
|
+
_dict['version'] = self.version.to_dict()
|
73
|
+
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
74
|
+
_items = []
|
75
|
+
if self.links:
|
76
|
+
for _item in self.links:
|
77
|
+
if _item:
|
78
|
+
_items.append(_item.to_dict())
|
79
|
+
_dict['links'] = _items
|
80
|
+
# set to None if links (nullable) is None
|
81
|
+
# and __fields_set__ contains the field
|
82
|
+
if self.links is None and "links" in self.__fields_set__:
|
83
|
+
_dict['links'] = None
|
84
|
+
|
85
|
+
return _dict
|
86
|
+
|
87
|
+
@classmethod
|
88
|
+
def from_dict(cls, obj: dict) -> WorkspaceItem:
|
89
|
+
"""Create an instance of WorkspaceItem from a dict"""
|
90
|
+
if obj is None:
|
91
|
+
return None
|
92
|
+
|
93
|
+
if not isinstance(obj, dict):
|
94
|
+
return WorkspaceItem.parse_obj(obj)
|
95
|
+
|
96
|
+
_obj = WorkspaceItem.parse_obj({
|
97
|
+
"type": obj.get("type"),
|
98
|
+
"format": obj.get("format"),
|
99
|
+
"name": obj.get("name"),
|
100
|
+
"description": obj.get("description"),
|
101
|
+
"content": obj.get("content"),
|
102
|
+
"version": Version.from_dict(obj.get("version")) if obj.get("version") is not None else None,
|
103
|
+
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
104
|
+
})
|
105
|
+
return _obj
|
@@ -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
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictInt, constr, validator
|
23
|
+
|
24
|
+
class WorkspaceItemCreationRequest(BaseModel):
|
25
|
+
"""
|
26
|
+
A request to create an item in a workspace. # noqa: E501
|
27
|
+
"""
|
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.")
|
30
|
+
description: constr(strict=True, max_length=1024, min_length=0) = Field(..., description="The description of a workspace item.")
|
31
|
+
content: constr(strict=True, max_length=6000, min_length=0) = Field(..., description="The content associated with a workspace item.")
|
32
|
+
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
|
+
|
35
|
+
@validator('name')
|
36
|
+
def name_validate_regular_expression(cls, value):
|
37
|
+
"""Validates the regular expression"""
|
38
|
+
if not re.match(r"^[a-zA-Z0-9\-_]+$", value):
|
39
|
+
raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9\-_]+$/")
|
40
|
+
return value
|
41
|
+
|
42
|
+
@validator('description')
|
43
|
+
def description_validate_regular_expression(cls, value):
|
44
|
+
"""Validates the regular expression"""
|
45
|
+
if not re.match(r"^[\s\S]*$", value):
|
46
|
+
raise ValueError(r"must validate the regular expression /^[\s\S]*$/")
|
47
|
+
return value
|
48
|
+
|
49
|
+
class Config:
|
50
|
+
"""Pydantic configuration"""
|
51
|
+
allow_population_by_field_name = True
|
52
|
+
validate_assignment = True
|
53
|
+
|
54
|
+
def to_str(self) -> str:
|
55
|
+
"""Returns the string representation of the model using alias"""
|
56
|
+
return pprint.pformat(self.dict(by_alias=True))
|
57
|
+
|
58
|
+
def to_json(self) -> str:
|
59
|
+
"""Returns the JSON representation of the model using alias"""
|
60
|
+
return json.dumps(self.to_dict())
|
61
|
+
|
62
|
+
@classmethod
|
63
|
+
def from_json(cls, json_str: str) -> WorkspaceItemCreationRequest:
|
64
|
+
"""Create an instance of WorkspaceItemCreationRequest from a JSON string"""
|
65
|
+
return cls.from_dict(json.loads(json_str))
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the dictionary representation of the model using alias"""
|
69
|
+
_dict = self.dict(by_alias=True,
|
70
|
+
exclude={
|
71
|
+
},
|
72
|
+
exclude_none=True)
|
73
|
+
return _dict
|
74
|
+
|
75
|
+
@classmethod
|
76
|
+
def from_dict(cls, obj: dict) -> WorkspaceItemCreationRequest:
|
77
|
+
"""Create an instance of WorkspaceItemCreationRequest from a dict"""
|
78
|
+
if obj is None:
|
79
|
+
return None
|
80
|
+
|
81
|
+
if not isinstance(obj, dict):
|
82
|
+
return WorkspaceItemCreationRequest.parse_obj(obj)
|
83
|
+
|
84
|
+
_obj = WorkspaceItemCreationRequest.parse_obj({
|
85
|
+
"format": obj.get("format"),
|
86
|
+
"name": obj.get("name"),
|
87
|
+
"description": obj.get("description"),
|
88
|
+
"content": obj.get("content"),
|
89
|
+
"type": obj.get("type")
|
90
|
+
})
|
91
|
+
return _obj
|
@@ -0,0 +1,82 @@
|
|
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, StrictInt, constr, validator
|
23
|
+
|
24
|
+
class WorkspaceItemUpdateRequest(BaseModel):
|
25
|
+
"""
|
26
|
+
A request to update a workspace item. # noqa: E501
|
27
|
+
"""
|
28
|
+
format: StrictInt = Field(..., description="A simple integer format identifier.")
|
29
|
+
description: constr(strict=True, max_length=1024, min_length=0) = Field(..., description="The description of a workspace item.")
|
30
|
+
content: constr(strict=True, max_length=6000, min_length=0) = Field(..., description="The content associated with a workspace item.")
|
31
|
+
type: constr(strict=True, max_length=6000, min_length=0) = Field(..., description="The type of the workspace item.")
|
32
|
+
__properties = ["format", "description", "content", "type"]
|
33
|
+
|
34
|
+
@validator('description')
|
35
|
+
def description_validate_regular_expression(cls, value):
|
36
|
+
"""Validates the regular expression"""
|
37
|
+
if not re.match(r"^[\s\S]*$", value):
|
38
|
+
raise ValueError(r"must validate the regular expression /^[\s\S]*$/")
|
39
|
+
return value
|
40
|
+
|
41
|
+
class Config:
|
42
|
+
"""Pydantic configuration"""
|
43
|
+
allow_population_by_field_name = True
|
44
|
+
validate_assignment = True
|
45
|
+
|
46
|
+
def to_str(self) -> str:
|
47
|
+
"""Returns the string representation of the model using alias"""
|
48
|
+
return pprint.pformat(self.dict(by_alias=True))
|
49
|
+
|
50
|
+
def to_json(self) -> str:
|
51
|
+
"""Returns the JSON representation of the model using alias"""
|
52
|
+
return json.dumps(self.to_dict())
|
53
|
+
|
54
|
+
@classmethod
|
55
|
+
def from_json(cls, json_str: str) -> WorkspaceItemUpdateRequest:
|
56
|
+
"""Create an instance of WorkspaceItemUpdateRequest from a JSON string"""
|
57
|
+
return cls.from_dict(json.loads(json_str))
|
58
|
+
|
59
|
+
def to_dict(self):
|
60
|
+
"""Returns the dictionary representation of the model using alias"""
|
61
|
+
_dict = self.dict(by_alias=True,
|
62
|
+
exclude={
|
63
|
+
},
|
64
|
+
exclude_none=True)
|
65
|
+
return _dict
|
66
|
+
|
67
|
+
@classmethod
|
68
|
+
def from_dict(cls, obj: dict) -> WorkspaceItemUpdateRequest:
|
69
|
+
"""Create an instance of WorkspaceItemUpdateRequest from a dict"""
|
70
|
+
if obj is None:
|
71
|
+
return None
|
72
|
+
|
73
|
+
if not isinstance(obj, dict):
|
74
|
+
return WorkspaceItemUpdateRequest.parse_obj(obj)
|
75
|
+
|
76
|
+
_obj = WorkspaceItemUpdateRequest.parse_obj({
|
77
|
+
"format": obj.get("format"),
|
78
|
+
"description": obj.get("description"),
|
79
|
+
"content": obj.get("content"),
|
80
|
+
"type": obj.get("type")
|
81
|
+
})
|
82
|
+
return _obj
|
@@ -0,0 +1,69 @@
|
|
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, constr
|
23
|
+
|
24
|
+
class WorkspaceUpdateRequest(BaseModel):
|
25
|
+
"""
|
26
|
+
A request to update a workspace. # noqa: E501
|
27
|
+
"""
|
28
|
+
description: constr(strict=True, max_length=256, min_length=1) = Field(..., description="A friendly description for the workspace.")
|
29
|
+
__properties = ["description"]
|
30
|
+
|
31
|
+
class Config:
|
32
|
+
"""Pydantic configuration"""
|
33
|
+
allow_population_by_field_name = True
|
34
|
+
validate_assignment = True
|
35
|
+
|
36
|
+
def to_str(self) -> str:
|
37
|
+
"""Returns the string representation of the model using alias"""
|
38
|
+
return pprint.pformat(self.dict(by_alias=True))
|
39
|
+
|
40
|
+
def to_json(self) -> str:
|
41
|
+
"""Returns the JSON representation of the model using alias"""
|
42
|
+
return json.dumps(self.to_dict())
|
43
|
+
|
44
|
+
@classmethod
|
45
|
+
def from_json(cls, json_str: str) -> WorkspaceUpdateRequest:
|
46
|
+
"""Create an instance of WorkspaceUpdateRequest from a JSON string"""
|
47
|
+
return cls.from_dict(json.loads(json_str))
|
48
|
+
|
49
|
+
def to_dict(self):
|
50
|
+
"""Returns the dictionary representation of the model using alias"""
|
51
|
+
_dict = self.dict(by_alias=True,
|
52
|
+
exclude={
|
53
|
+
},
|
54
|
+
exclude_none=True)
|
55
|
+
return _dict
|
56
|
+
|
57
|
+
@classmethod
|
58
|
+
def from_dict(cls, obj: dict) -> WorkspaceUpdateRequest:
|
59
|
+
"""Create an instance of WorkspaceUpdateRequest from a dict"""
|
60
|
+
if obj is None:
|
61
|
+
return None
|
62
|
+
|
63
|
+
if not isinstance(obj, dict):
|
64
|
+
return WorkspaceUpdateRequest.parse_obj(obj)
|
65
|
+
|
66
|
+
_obj = WorkspaceUpdateRequest.parse_obj({
|
67
|
+
"description": obj.get("description")
|
68
|
+
})
|
69
|
+
return _obj
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lusid-sdk
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.363
|
4
4
|
Summary: LUSID API
|
5
5
|
Home-page: https://github.com/finbourne/lusid-sdk-python
|
6
6
|
License: MIT
|
@@ -200,6 +200,7 @@ Class | Method | HTTP request | Description
|
|
200
200
|
*CutLabelDefinitionsApi* | [**list_cut_label_definitions**](docs/CutLabelDefinitionsApi.md#list_cut_label_definitions) | **GET** /api/systemconfiguration/cutlabels | ListCutLabelDefinitions: List Existing Cut Labels
|
201
201
|
*CutLabelDefinitionsApi* | [**update_cut_label_definition**](docs/CutLabelDefinitionsApi.md#update_cut_label_definition) | **PUT** /api/systemconfiguration/cutlabels/{code} | UpdateCutLabelDefinition: Update a Cut Label
|
202
202
|
*DataTypesApi* | [**create_data_type**](docs/DataTypesApi.md#create_data_type) | **POST** /api/datatypes | [EARLY ACCESS] CreateDataType: Create data type definition
|
203
|
+
*DataTypesApi* | [**delete_data_type**](docs/DataTypesApi.md#delete_data_type) | **DELETE** /api/datatypes/{scope}/{code} | DeleteDataType: Delete a data type definition.
|
203
204
|
*DataTypesApi* | [**get_data_type**](docs/DataTypesApi.md#get_data_type) | **GET** /api/datatypes/{scope}/{code} | GetDataType: Get data type definition
|
204
205
|
*DataTypesApi* | [**get_units_from_data_type**](docs/DataTypesApi.md#get_units_from_data_type) | **GET** /api/datatypes/{scope}/{code}/units | [EARLY ACCESS] GetUnitsFromDataType: Get units from data type
|
205
206
|
*DataTypesApi* | [**list_data_type_summaries**](docs/DataTypesApi.md#list_data_type_summaries) | **GET** /api/datatypes | [EARLY ACCESS] ListDataTypeSummaries: List all data type summaries, without the reference data
|
@@ -572,6 +573,26 @@ Class | Method | HTTP request | Description
|
|
572
573
|
*TransactionPortfoliosApi* | [**upsert_transactions**](docs/TransactionPortfoliosApi.md#upsert_transactions) | **POST** /api/transactionportfolios/{scope}/{code}/transactions | UpsertTransactions: Upsert transactions
|
573
574
|
*TranslationApi* | [**translate_instrument_definitions**](docs/TranslationApi.md#translate_instrument_definitions) | **POST** /api/translation/instrumentdefinitions | [EXPERIMENTAL] TranslateInstrumentDefinitions: Translate instruments
|
574
575
|
*TranslationApi* | [**translate_trade_tickets**](docs/TranslationApi.md#translate_trade_tickets) | **POST** /api/translation/tradetickets | [EXPERIMENTAL] TranslateTradeTickets: Translate trade ticket
|
576
|
+
*WorkspaceApi* | [**create_personal_item**](docs/WorkspaceApi.md#create_personal_item) | **POST** /api/workspaces/personal/{workspaceName}/items | [EARLY ACCESS] CreatePersonalItem: Create a new item in a personal workspace.
|
577
|
+
*WorkspaceApi* | [**create_personal_workspace**](docs/WorkspaceApi.md#create_personal_workspace) | **POST** /api/workspaces/personal | [EARLY ACCESS] CreatePersonalWorkspace: Create a new personal workspace.
|
578
|
+
*WorkspaceApi* | [**create_shared_item**](docs/WorkspaceApi.md#create_shared_item) | **POST** /api/workspaces/shared/{workspaceName}/items | [EARLY ACCESS] CreateSharedItem: Create a new item in a shared workspace.
|
579
|
+
*WorkspaceApi* | [**create_shared_workspace**](docs/WorkspaceApi.md#create_shared_workspace) | **POST** /api/workspaces/shared | [EARLY ACCESS] CreateSharedWorkspace: Create a new shared workspace.
|
580
|
+
*WorkspaceApi* | [**delete_personal_item**](docs/WorkspaceApi.md#delete_personal_item) | **DELETE** /api/workspaces/personal/{workspaceName}/items/{itemName} | [EARLY ACCESS] DeletePersonalItem: Delete an item from a personal workspace.
|
581
|
+
*WorkspaceApi* | [**delete_personal_workspace**](docs/WorkspaceApi.md#delete_personal_workspace) | **DELETE** /api/workspaces/personal/{workspaceName} | [EARLY ACCESS] DeletePersonalWorkspace: Delete a personal workspace.
|
582
|
+
*WorkspaceApi* | [**delete_shared_item**](docs/WorkspaceApi.md#delete_shared_item) | **DELETE** /api/workspaces/shared/{workspaceName}/items/{itemName} | [EARLY ACCESS] DeleteSharedItem: Delete an item from a shared workspace.
|
583
|
+
*WorkspaceApi* | [**delete_shared_workspace**](docs/WorkspaceApi.md#delete_shared_workspace) | **DELETE** /api/workspaces/shared/{workspaceName} | [EARLY ACCESS] DeleteSharedWorkspace: Delete a shared workspace.
|
584
|
+
*WorkspaceApi* | [**get_personal_item**](docs/WorkspaceApi.md#get_personal_item) | **GET** /api/workspaces/personal/{workspaceName}/items/{itemName} | [EARLY ACCESS] GetPersonalItem: Get a single personal workspace item.
|
585
|
+
*WorkspaceApi* | [**get_personal_workspace**](docs/WorkspaceApi.md#get_personal_workspace) | **GET** /api/workspaces/personal/{workspaceName} | [EARLY ACCESS] GetPersonalWorkspace: Get a personal workspace.
|
586
|
+
*WorkspaceApi* | [**get_shared_item**](docs/WorkspaceApi.md#get_shared_item) | **GET** /api/workspaces/shared/{workspaceName}/items/{itemName} | [EARLY ACCESS] GetSharedItem: Get a single shared workspace item.
|
587
|
+
*WorkspaceApi* | [**get_shared_workspace**](docs/WorkspaceApi.md#get_shared_workspace) | **GET** /api/workspaces/shared/{workspaceName} | [EARLY ACCESS] GetSharedWorkspace: Get a shared workspace.
|
588
|
+
*WorkspaceApi* | [**list_personal_items**](docs/WorkspaceApi.md#list_personal_items) | **GET** /api/workspaces/personal/{workspaceName}/items | [EARLY ACCESS] ListPersonalItems: List the items in a personal workspace.
|
589
|
+
*WorkspaceApi* | [**list_personal_workspaces**](docs/WorkspaceApi.md#list_personal_workspaces) | **GET** /api/workspaces/personal | [EARLY ACCESS] ListPersonalWorkspaces: List personal workspaces.
|
590
|
+
*WorkspaceApi* | [**list_shared_items**](docs/WorkspaceApi.md#list_shared_items) | **GET** /api/workspaces/shared/{workspaceName}/items | [EARLY ACCESS] ListSharedItems: List the items in a shared workspace.
|
591
|
+
*WorkspaceApi* | [**list_shared_workspaces**](docs/WorkspaceApi.md#list_shared_workspaces) | **GET** /api/workspaces/shared | [EARLY ACCESS] ListSharedWorkspaces: List shared workspaces.
|
592
|
+
*WorkspaceApi* | [**update_personal_item**](docs/WorkspaceApi.md#update_personal_item) | **PUT** /api/workspaces/personal/{workspaceName}/items/{itemName} | [EARLY ACCESS] UpdatePersonalItem: Update an item in a personal workspace.
|
593
|
+
*WorkspaceApi* | [**update_personal_workspace**](docs/WorkspaceApi.md#update_personal_workspace) | **PUT** /api/workspaces/personal/{workspaceName} | [EARLY ACCESS] UpdatePersonalWorkspace: Update a personal workspace.
|
594
|
+
*WorkspaceApi* | [**update_shared_item**](docs/WorkspaceApi.md#update_shared_item) | **PUT** /api/workspaces/shared/{workspaceName}/items/{itemName} | [EARLY ACCESS] UpdateSharedItem: Update an item in a shared workspace.
|
595
|
+
*WorkspaceApi* | [**update_shared_workspace**](docs/WorkspaceApi.md#update_shared_workspace) | **PUT** /api/workspaces/shared/{workspaceName} | [EARLY ACCESS] UpdateSharedWorkspace: Update a shared workspace.
|
575
596
|
|
576
597
|
|
577
598
|
<a id="documentation-for-models"></a>
|
@@ -587,6 +608,7 @@ Class | Method | HTTP request | Description
|
|
587
608
|
- [AborConfigurationRequest](docs/AborConfigurationRequest.md)
|
588
609
|
- [AborProperties](docs/AborProperties.md)
|
589
610
|
- [AborRequest](docs/AborRequest.md)
|
611
|
+
- [AcceptEstimateValuationPointResponse](docs/AcceptEstimateValuationPointResponse.md)
|
590
612
|
- [AccessControlledAction](docs/AccessControlledAction.md)
|
591
613
|
- [AccessControlledResource](docs/AccessControlledResource.md)
|
592
614
|
- [AccessMetadataOperation](docs/AccessMetadataOperation.md)
|
@@ -1182,6 +1204,8 @@ Class | Method | HTTP request | Description
|
|
1182
1204
|
- [PagedResourceListOfTranslationScriptId](docs/PagedResourceListOfTranslationScriptId.md)
|
1183
1205
|
- [PagedResourceListOfValuationPointOverview](docs/PagedResourceListOfValuationPointOverview.md)
|
1184
1206
|
- [PagedResourceListOfVirtualRow](docs/PagedResourceListOfVirtualRow.md)
|
1207
|
+
- [PagedResourceListOfWorkspace](docs/PagedResourceListOfWorkspace.md)
|
1208
|
+
- [PagedResourceListOfWorkspaceItem](docs/PagedResourceListOfWorkspaceItem.md)
|
1185
1209
|
- [Participation](docs/Participation.md)
|
1186
1210
|
- [ParticipationRequest](docs/ParticipationRequest.md)
|
1187
1211
|
- [ParticipationSetRequest](docs/ParticipationSetRequest.md)
|
@@ -1417,6 +1441,7 @@ Class | Method | HTTP request | Description
|
|
1417
1441
|
- [ShareClassAmount](docs/ShareClassAmount.md)
|
1418
1442
|
- [ShareClassBreakdown](docs/ShareClassBreakdown.md)
|
1419
1443
|
- [ShareClassData](docs/ShareClassData.md)
|
1444
|
+
- [ShareClassDealingBreakdown](docs/ShareClassDealingBreakdown.md)
|
1420
1445
|
- [ShareClassDetails](docs/ShareClassDetails.md)
|
1421
1446
|
- [ShareClassPnlBreakdown](docs/ShareClassPnlBreakdown.md)
|
1422
1447
|
- [SideConfigurationData](docs/SideConfigurationData.md)
|
@@ -1451,6 +1476,8 @@ Class | Method | HTTP request | Description
|
|
1451
1476
|
- [StructuredResultData](docs/StructuredResultData.md)
|
1452
1477
|
- [StructuredResultDataId](docs/StructuredResultDataId.md)
|
1453
1478
|
- [SubHoldingKeyValueEquals](docs/SubHoldingKeyValueEquals.md)
|
1479
|
+
- [SwapCashFlowEvent](docs/SwapCashFlowEvent.md)
|
1480
|
+
- [SwapPrincipalEvent](docs/SwapPrincipalEvent.md)
|
1454
1481
|
- [TargetTaxLot](docs/TargetTaxLot.md)
|
1455
1482
|
- [TargetTaxLotRequest](docs/TargetTaxLotRequest.md)
|
1456
1483
|
- [TaxRule](docs/TaxRule.md)
|
@@ -1609,6 +1636,12 @@ Class | Method | HTTP request | Description
|
|
1609
1636
|
- [WeightedInstrument](docs/WeightedInstrument.md)
|
1610
1637
|
- [WeightedInstrumentInLineLookupIdentifiers](docs/WeightedInstrumentInLineLookupIdentifiers.md)
|
1611
1638
|
- [WeightedInstruments](docs/WeightedInstruments.md)
|
1639
|
+
- [Workspace](docs/Workspace.md)
|
1640
|
+
- [WorkspaceCreationRequest](docs/WorkspaceCreationRequest.md)
|
1641
|
+
- [WorkspaceItem](docs/WorkspaceItem.md)
|
1642
|
+
- [WorkspaceItemCreationRequest](docs/WorkspaceItemCreationRequest.md)
|
1643
|
+
- [WorkspaceItemUpdateRequest](docs/WorkspaceItemUpdateRequest.md)
|
1644
|
+
- [WorkspaceUpdateRequest](docs/WorkspaceUpdateRequest.md)
|
1612
1645
|
- [YieldCurveData](docs/YieldCurveData.md)
|
1613
1646
|
|
1614
1647
|
|