lusid-sdk 2.1.303__py3-none-any.whl → 2.1.310__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
|
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.
|
376
|
+
"Version of the API: 0.11.6741\n"\
|
377
377
|
"SDK Package Version: {package_version}".\
|
378
378
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
379
379
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lusid-sdk
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.310
|
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.
|
33
|
-
- Package version: 2.1.
|
32
|
+
- API version: 0.11.6741
|
33
|
+
- Package version: 2.1.310
|
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=
|
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=
|
71
|
+
lusid/configuration.py,sha256=RLaV9bgvbMMGLW9pOe7mwuG1eyF3mwKeaC8Ah0p98ds,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
|
@@ -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.
|
1113
|
-
lusid_sdk-2.1.
|
1114
|
-
lusid_sdk-2.1.
|
1112
|
+
lusid_sdk-2.1.310.dist-info/METADATA,sha256=OIAFBwFjeGTyB8av395xwrx1gtosbfwvyg1qaJy2XXo,193452
|
1113
|
+
lusid_sdk-2.1.310.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
1114
|
+
lusid_sdk-2.1.310.dist-info/RECORD,,
|
File without changes
|