lusid-sdk 2.1.292__py3-none-any.whl → 2.1.308__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/api/scopes_api.py CHANGED
@@ -20,7 +20,9 @@ from pydantic.v1 import validate_arguments, ValidationError
20
20
  from typing import overload, Optional, Union, Awaitable
21
21
 
22
22
  from typing_extensions import Annotated
23
- from pydantic.v1 import Field, constr, validator
23
+ from datetime import datetime
24
+
25
+ from pydantic.v1 import Field, conint, constr, validator
24
26
 
25
27
  from typing import Optional
26
28
 
@@ -47,26 +49,32 @@ class ScopesApi:
47
49
  self.api_client = api_client
48
50
 
49
51
  @overload
50
- async def list_entity_scopes(self, entity_type : Annotated[constr(strict=True, max_length=100, min_length=0), Field(..., description="The entity type to list scopes for.")], **kwargs) -> ResourceListOfScopeDefinition: # noqa: E501
52
+ async def list_entity_scopes(self, entity_type : Annotated[constr(strict=True, max_length=100, min_length=0), Field(..., description="The entity type to list scopes for.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve scopes. Defaults to latest datetime if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing scopes from a previous call to list scopes. This value is returned from the previous call. If a pagination token is provided, the limit and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this number. Defaults to 100 if not specified.")] = None, **kwargs) -> ResourceListOfScopeDefinition: # noqa: E501
51
53
  ...
52
54
 
53
55
  @overload
54
- def list_entity_scopes(self, entity_type : Annotated[constr(strict=True, max_length=100, min_length=0), Field(..., description="The entity type to list scopes for.")], async_req: Optional[bool]=True, **kwargs) -> ResourceListOfScopeDefinition: # noqa: E501
56
+ def list_entity_scopes(self, entity_type : Annotated[constr(strict=True, max_length=100, min_length=0), Field(..., description="The entity type to list scopes for.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve scopes. Defaults to latest datetime if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing scopes from a previous call to list scopes. This value is returned from the previous call. If a pagination token is provided, the limit and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this number. Defaults to 100 if not specified.")] = None, async_req: Optional[bool]=True, **kwargs) -> ResourceListOfScopeDefinition: # noqa: E501
55
57
  ...
56
58
 
57
59
  @validate_arguments
58
- def list_entity_scopes(self, entity_type : Annotated[constr(strict=True, max_length=100, min_length=0), Field(..., description="The entity type to list scopes for.")], async_req: Optional[bool]=None, **kwargs) -> Union[ResourceListOfScopeDefinition, Awaitable[ResourceListOfScopeDefinition]]: # noqa: E501
60
+ def list_entity_scopes(self, entity_type : Annotated[constr(strict=True, max_length=100, min_length=0), Field(..., description="The entity type to list scopes for.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve scopes. Defaults to latest datetime if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing scopes from a previous call to list scopes. This value is returned from the previous call. If a pagination token is provided, the limit and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this number. Defaults to 100 if not specified.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ResourceListOfScopeDefinition, Awaitable[ResourceListOfScopeDefinition]]: # noqa: E501
59
61
  """ListEntityScopes: List Entity Scopes # noqa: E501
60
62
 
61
63
  List all the scopes for a given entity type that contain data. # noqa: E501
62
64
  This method makes a synchronous HTTP request by default. To make an
63
65
  asynchronous HTTP request, please pass async_req=True
64
66
 
65
- >>> thread = api.list_entity_scopes(entity_type, async_req=True)
67
+ >>> thread = api.list_entity_scopes(entity_type, as_at, page, limit, async_req=True)
66
68
  >>> result = thread.get()
67
69
 
68
70
  :param entity_type: The entity type to list scopes for. (required)
69
71
  :type entity_type: str
72
+ :param as_at: The asAt datetime at which to retrieve scopes. Defaults to latest datetime if not specified.
73
+ :type as_at: datetime
74
+ :param page: The pagination token to use to continue listing scopes from a previous call to list scopes. This value is returned from the previous call. If a pagination token is provided, the limit and asAt fields must not have changed since the original request.
75
+ :type page: str
76
+ :param limit: When paginating, limit the number of returned results to this number. Defaults to 100 if not specified.
77
+ :type limit: int
70
78
  :param async_req: Whether to execute the request asynchronously.
71
79
  :type async_req: bool, optional
72
80
  :param _request_timeout: timeout setting for this request.
@@ -84,21 +92,27 @@ class ScopesApi:
84
92
  raise ValueError(message)
85
93
  if async_req is not None:
86
94
  kwargs['async_req'] = async_req
87
- return self.list_entity_scopes_with_http_info(entity_type, **kwargs) # noqa: E501
95
+ return self.list_entity_scopes_with_http_info(entity_type, as_at, page, limit, **kwargs) # noqa: E501
88
96
 
89
97
  @validate_arguments
90
- def list_entity_scopes_with_http_info(self, entity_type : Annotated[constr(strict=True, max_length=100, min_length=0), Field(..., description="The entity type to list scopes for.")], **kwargs) -> ApiResponse: # noqa: E501
98
+ def list_entity_scopes_with_http_info(self, entity_type : Annotated[constr(strict=True, max_length=100, min_length=0), Field(..., description="The entity type to list scopes for.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve scopes. Defaults to latest datetime if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing scopes from a previous call to list scopes. This value is returned from the previous call. If a pagination token is provided, the limit and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this number. Defaults to 100 if not specified.")] = None, **kwargs) -> ApiResponse: # noqa: E501
91
99
  """ListEntityScopes: List Entity Scopes # noqa: E501
92
100
 
93
101
  List all the scopes for a given entity type that contain data. # noqa: E501
94
102
  This method makes a synchronous HTTP request by default. To make an
95
103
  asynchronous HTTP request, please pass async_req=True
96
104
 
97
- >>> thread = api.list_entity_scopes_with_http_info(entity_type, async_req=True)
105
+ >>> thread = api.list_entity_scopes_with_http_info(entity_type, as_at, page, limit, async_req=True)
98
106
  >>> result = thread.get()
99
107
 
100
108
  :param entity_type: The entity type to list scopes for. (required)
101
109
  :type entity_type: str
110
+ :param as_at: The asAt datetime at which to retrieve scopes. Defaults to latest datetime if not specified.
111
+ :type as_at: datetime
112
+ :param page: The pagination token to use to continue listing scopes from a previous call to list scopes. This value is returned from the previous call. If a pagination token is provided, the limit and asAt fields must not have changed since the original request.
113
+ :type page: str
114
+ :param limit: When paginating, limit the number of returned results to this number. Defaults to 100 if not specified.
115
+ :type limit: int
102
116
  :param async_req: Whether to execute the request asynchronously.
103
117
  :type async_req: bool, optional
104
118
  :param _preload_content: if False, the ApiResponse.data will
@@ -127,7 +141,10 @@ class ScopesApi:
127
141
  _params = locals()
128
142
 
129
143
  _all_params = [
130
- 'entity_type'
144
+ 'entity_type',
145
+ 'as_at',
146
+ 'page',
147
+ 'limit'
131
148
  ]
132
149
  _all_params.extend(
133
150
  [
@@ -161,6 +178,18 @@ class ScopesApi:
161
178
 
162
179
  # process the query parameters
163
180
  _query_params = []
181
+ if _params.get('as_at') is not None: # noqa: E501
182
+ if isinstance(_params['as_at'], datetime):
183
+ _query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
184
+ else:
185
+ _query_params.append(('asAt', _params['as_at']))
186
+
187
+ if _params.get('page') is not None: # noqa: E501
188
+ _query_params.append(('page', _params['page']))
189
+
190
+ if _params.get('limit') is not None: # noqa: E501
191
+ _query_params.append(('limit', _params['limit']))
192
+
164
193
  # process the header parameters
165
194
  _header_params = dict(_params.get('_headers', {}))
166
195
  # process the form parameters
lusid/configuration.py CHANGED
@@ -373,7 +373,7 @@ class Configuration:
373
373
  return "Python SDK Debug Report:\n"\
374
374
  "OS: {env}\n"\
375
375
  "Python Version: {pyversion}\n"\
376
- "Version of the API: 0.11.6725\n"\
376
+ "Version of the API: 0.11.6739\n"\
377
377
  "SDK Package Version: {package_version}".\
378
378
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
379
379
 
@@ -35,12 +35,12 @@ class FundConfiguration(BaseModel):
35
35
  display_name: Optional[StrictStr] = Field(None, alias="displayName", description="The name of the FundConfiguration.")
36
36
  description: Optional[StrictStr] = Field(None, description="A description for the FundConfiguration.")
37
37
  dealing_rule: Optional[ComponentRule] = Field(None, alias="dealingRule")
38
- fund_pnl_exclusion_rule: Optional[ComponentRule] = Field(None, alias="fundPnlExclusionRule")
38
+ fund_pnl_rule: Optional[ComponentRule] = Field(None, alias="fundPnlRule")
39
39
  back_out_rule: Optional[ComponentRule] = Field(None, alias="backOutRule")
40
40
  properties: Optional[Dict[str, ModelProperty]] = Field(None, description="A set of properties for the Fund Configuration.")
41
41
  version: Optional[Version] = None
42
42
  links: Optional[conlist(Link)] = None
43
- __properties = ["href", "id", "displayName", "description", "dealingRule", "fundPnlExclusionRule", "backOutRule", "properties", "version", "links"]
43
+ __properties = ["href", "id", "displayName", "description", "dealingRule", "fundPnlRule", "backOutRule", "properties", "version", "links"]
44
44
 
45
45
  class Config:
46
46
  """Pydantic configuration"""
@@ -72,9 +72,9 @@ class FundConfiguration(BaseModel):
72
72
  # override the default output from pydantic by calling `to_dict()` of dealing_rule
73
73
  if self.dealing_rule:
74
74
  _dict['dealingRule'] = self.dealing_rule.to_dict()
75
- # override the default output from pydantic by calling `to_dict()` of fund_pnl_exclusion_rule
76
- if self.fund_pnl_exclusion_rule:
77
- _dict['fundPnlExclusionRule'] = self.fund_pnl_exclusion_rule.to_dict()
75
+ # override the default output from pydantic by calling `to_dict()` of fund_pnl_rule
76
+ if self.fund_pnl_rule:
77
+ _dict['fundPnlRule'] = self.fund_pnl_rule.to_dict()
78
78
  # override the default output from pydantic by calling `to_dict()` of back_out_rule
79
79
  if self.back_out_rule:
80
80
  _dict['backOutRule'] = self.back_out_rule.to_dict()
@@ -137,7 +137,7 @@ class FundConfiguration(BaseModel):
137
137
  "display_name": obj.get("displayName"),
138
138
  "description": obj.get("description"),
139
139
  "dealing_rule": ComponentRule.from_dict(obj.get("dealingRule")) if obj.get("dealingRule") is not None else None,
140
- "fund_pnl_exclusion_rule": ComponentRule.from_dict(obj.get("fundPnlExclusionRule")) if obj.get("fundPnlExclusionRule") is not None else None,
140
+ "fund_pnl_rule": ComponentRule.from_dict(obj.get("fundPnlRule")) if obj.get("fundPnlRule") is not None else None,
141
141
  "back_out_rule": ComponentRule.from_dict(obj.get("backOutRule")) if obj.get("backOutRule") is not None else None,
142
142
  "properties": dict(
143
143
  (_k, ModelProperty.from_dict(_v))
@@ -31,10 +31,10 @@ class FundConfigurationRequest(BaseModel):
31
31
  display_name: Optional[constr(strict=True, max_length=256, min_length=1)] = Field(None, alias="displayName", description="The name of the Fund.")
32
32
  description: Optional[constr(strict=True, max_length=1024, min_length=0)] = Field(None, description="A description for the Fund.")
33
33
  dealing_rule: ComponentRule = Field(..., alias="dealingRule")
34
- fund_pnl_exclusion_rule: Optional[ComponentRule] = Field(None, alias="fundPnlExclusionRule")
34
+ fund_pnl_rule: ComponentRule = Field(..., alias="fundPnlRule")
35
35
  back_out_rule: ComponentRule = Field(..., alias="backOutRule")
36
36
  properties: Optional[Dict[str, ModelProperty]] = Field(None, description="A set of properties for the Fund Configuration.")
37
- __properties = ["code", "displayName", "description", "dealingRule", "fundPnlExclusionRule", "backOutRule", "properties"]
37
+ __properties = ["code", "displayName", "description", "dealingRule", "fundPnlRule", "backOutRule", "properties"]
38
38
 
39
39
  @validator('code')
40
40
  def code_validate_regular_expression(cls, value):
@@ -80,9 +80,9 @@ class FundConfigurationRequest(BaseModel):
80
80
  # override the default output from pydantic by calling `to_dict()` of dealing_rule
81
81
  if self.dealing_rule:
82
82
  _dict['dealingRule'] = self.dealing_rule.to_dict()
83
- # override the default output from pydantic by calling `to_dict()` of fund_pnl_exclusion_rule
84
- if self.fund_pnl_exclusion_rule:
85
- _dict['fundPnlExclusionRule'] = self.fund_pnl_exclusion_rule.to_dict()
83
+ # override the default output from pydantic by calling `to_dict()` of fund_pnl_rule
84
+ if self.fund_pnl_rule:
85
+ _dict['fundPnlRule'] = self.fund_pnl_rule.to_dict()
86
86
  # override the default output from pydantic by calling `to_dict()` of back_out_rule
87
87
  if self.back_out_rule:
88
88
  _dict['backOutRule'] = self.back_out_rule.to_dict()
@@ -124,7 +124,7 @@ class FundConfigurationRequest(BaseModel):
124
124
  "display_name": obj.get("displayName"),
125
125
  "description": obj.get("description"),
126
126
  "dealing_rule": ComponentRule.from_dict(obj.get("dealingRule")) if obj.get("dealingRule") is not None else None,
127
- "fund_pnl_exclusion_rule": ComponentRule.from_dict(obj.get("fundPnlExclusionRule")) if obj.get("fundPnlExclusionRule") is not None else None,
127
+ "fund_pnl_rule": ComponentRule.from_dict(obj.get("fundPnlRule")) if obj.get("fundPnlRule") is not None else None,
128
128
  "back_out_rule": ComponentRule.from_dict(obj.get("backOutRule")) if obj.get("backOutRule") is not None else None,
129
129
  "properties": dict(
130
130
  (_k, ModelProperty.from_dict(_v))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.292
3
+ Version: 2.1.308
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -29,8 +29,8 @@ FINBOURNE Technology
29
29
 
30
30
  This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
31
31
 
32
- - API version: 0.11.6725
33
- - Package version: 2.1.292
32
+ - API version: 0.11.6739
33
+ - Package version: 2.1.308
34
34
  - Build package: org.openapitools.codegen.languages.PythonClientCodegen
35
35
  For more information, please visit [https://www.finbourne.com](https://www.finbourne.com)
36
36
 
@@ -53,7 +53,7 @@ lusid/api/relations_api.py,sha256=ka5L0sQkPNLiQS8vXhcOk0EYkJu2LIuqInmLGnoZSLA,22
53
53
  lusid/api/relationship_definitions_api.py,sha256=30MXQITMjIYXdedMRYH7lrj-rPhkIhhJN-yfB_rWAtU,54693
54
54
  lusid/api/relationships_api.py,sha256=CkqKKRKJm39FJXIKUgMa6py12fq1HN1iLC8v9MIBf_8,19956
55
55
  lusid/api/schemas_api.py,sha256=RrFrHu6dNw060nLQ6kpWa-eRPBlv8prk-ldGi04mgEU,30928
56
- lusid/api/scopes_api.py,sha256=p8OnCyJtsYrM0I-jzmHfhMJKAXzWkl52LtGVQw5DMtc,16390
56
+ lusid/api/scopes_api.py,sha256=RZQAp2jCrG_uwd9wccrvmXs5ekoIie7WdfzARBwXRR0,21317
57
57
  lusid/api/scripted_translation_api.py,sha256=jOeKhCjDpq3M1FU9mAH-2sbW_O3NhVuirKPtJrDbEgo,84048
58
58
  lusid/api/search_api.py,sha256=Y6wgyv5H6EDEICDYERU_jXdAFmr0GPEe8r2BnM0KzXI,58533
59
59
  lusid/api/sequences_api.py,sha256=NUACzaG_zcloEMFwuIxI2c2MiQNmkBULUq7qeNvZ0GQ,37460
@@ -68,7 +68,7 @@ lusid/api/transaction_portfolios_api.py,sha256=7G5m6iTQXTKCc6ASdxnlVJjvFascHxEgD
68
68
  lusid/api/translation_api.py,sha256=xTAaKEW96JTDIZBXCjxSguCa7Gz4oVd5jdObUE2egwo,20092
69
69
  lusid/api_client.py,sha256=dF6l9RAsdxdQjf6Qn4ny6LB-QXlJmsscWiozCvyyBFA,30709
70
70
  lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
71
- lusid/configuration.py,sha256=zTVkeB_8R0K-mHNAp6n-mmbsdQFTLGQ4mL1flhQc8ms,14404
71
+ lusid/configuration.py,sha256=QzrEjTcALmtWMm6T8UFgG9n-BEJAEluQ5jISLxkQA1Q,14404
72
72
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
73
73
  lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
74
74
  lusid/extensions/api_client.py,sha256=Ob06urm4Em3MLzgP_geyeeGsPCkU225msW_1kpIeABM,30567
@@ -414,9 +414,9 @@ lusid/models/forward_rate_agreement.py,sha256=PrTWedcDD8Zr3c7_Z6UrDMKwVtwAFtq5yW
414
414
  lusid/models/from_recipe.py,sha256=paSou6poZf5CHkswKhZXc8jXmVcxj7s7kJXRw4ucbfQ,2261
415
415
  lusid/models/fund.py,sha256=4FENDtVBRDI59lTQ_LdffuIYIPGj7C-LUkL0Wtzn0cc,8958
416
416
  lusid/models/fund_amount.py,sha256=F298PikXvooYgorqtdWwwOmSclzxqNfu6Q1BUK5Yt_E,1879
417
- lusid/models/fund_configuration.py,sha256=rZYEyTyXhq4kOXiAFLGO3shzvfZKN8CXdBpwsE_x8Bs,6754
417
+ lusid/models/fund_configuration.py,sha256=LjXCL02_v9d2MlAFq_a2lHZPMwCTLQKHszt0yHSk5y0,6659
418
418
  lusid/models/fund_configuration_properties.py,sha256=hqKaBSMkSYC5UcWxkgDos41GYnm__6-Q23Z6SDsBgM4,4373
419
- lusid/models/fund_configuration_request.py,sha256=L7grtgaC97bf5rQ7IaJ4u-PRB6FrFW0kZVyXOh8smnM,5787
419
+ lusid/models/fund_configuration_request.py,sha256=pE74oPYKgMuNVGANRIqUV5I4j47VMQc7swDHIHFScNo,5681
420
420
  lusid/models/fund_previous_nav.py,sha256=Vd6qd-nvikHAMjutM1QSYA4xYGWz45NGyLyg2v8pAsE,1930
421
421
  lusid/models/fund_properties.py,sha256=f2PxknZIPrfAXR1MHSJxO1sdj_wNJfmulzYYEqdCByA,4242
422
422
  lusid/models/fund_request.py,sha256=fBU3prGytCvKWfAzP0gHj4VUANarueKwB7r9evPoIEI,8345
@@ -1109,6 +1109,6 @@ lusid/models/weighted_instruments.py,sha256=1y_y_vw4-LPsbkQx4FOzWdZc5fJnzhVkf1D3
1109
1109
  lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
1110
1110
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1111
1111
  lusid/rest.py,sha256=TNUzQ3yLNT2L053EdR7R0vNzQh2J3TlYD1T56Dye0W0,10138
1112
- lusid_sdk-2.1.292.dist-info/METADATA,sha256=yiXJcAffwQKFDPdHAjghxvQep1pQ-6FGSZlvbnXo-sw,193452
1113
- lusid_sdk-2.1.292.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1114
- lusid_sdk-2.1.292.dist-info/RECORD,,
1112
+ lusid_sdk-2.1.308.dist-info/METADATA,sha256=EXKwonmIUM9d0IrFY74n29REAcKLJc-7b1Hgup3gRoA,193452
1113
+ lusid_sdk-2.1.308.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1114
+ lusid_sdk-2.1.308.dist-info/RECORD,,