lusid-sdk 2.1.630__py3-none-any.whl → 2.1.632__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 +4 -10
- lusid/api/__init__.py +0 -2
- lusid/api/corporate_action_sources_api.py +6 -6
- lusid/api/timelines_api.py +363 -0
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +4 -8
- lusid/models/{risk_model_factor_set.py → closed_period.py} +47 -22
- lusid/models/create_closed_period_request.py +96 -0
- lusid/models/create_derived_property_definition_request.py +3 -3
- lusid/models/create_derived_transaction_portfolio_request.py +8 -2
- lusid/models/create_property_definition_request.py +3 -3
- lusid/models/future.py +1 -1
- lusid/models/property_definition.py +3 -3
- lusid/models/property_definition_search_result.py +3 -3
- lusid/models/property_domain.py +1 -0
- {lusid_sdk-2.1.630.dist-info → lusid_sdk-2.1.632.dist-info}/METADATA +8 -13
- {lusid_sdk-2.1.630.dist-info → lusid_sdk-2.1.632.dist-info}/RECORD +18 -21
- lusid/api/risk_model_factor_sets_api.py +0 -902
- lusid/models/create_risk_model_factor_set_request.py +0 -75
- lusid/models/paged_resource_list_of_risk_model_factor_set.py +0 -113
- lusid/models/update_risk_model_factor_set_request.py +0 -69
- {lusid_sdk-2.1.630.dist-info → lusid_sdk-2.1.632.dist-info}/WHEEL +0 -0
@@ -1,902 +0,0 @@
|
|
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
|
-
import re # noqa: F401
|
16
|
-
import io
|
17
|
-
import warnings
|
18
|
-
|
19
|
-
from pydantic.v1 import validate_arguments, ValidationError
|
20
|
-
from typing import overload, Optional, Union, Awaitable
|
21
|
-
|
22
|
-
from typing_extensions import Annotated
|
23
|
-
from datetime import datetime
|
24
|
-
|
25
|
-
from pydantic.v1 import Field, StrictStr, conint, conlist, constr, validator
|
26
|
-
|
27
|
-
from typing import Optional
|
28
|
-
|
29
|
-
from lusid.models.create_risk_model_factor_set_request import CreateRiskModelFactorSetRequest
|
30
|
-
from lusid.models.deleted_entity_response import DeletedEntityResponse
|
31
|
-
from lusid.models.paged_resource_list_of_risk_model_factor_set import PagedResourceListOfRiskModelFactorSet
|
32
|
-
from lusid.models.risk_model_factor_set import RiskModelFactorSet
|
33
|
-
from lusid.models.update_risk_model_factor_set_request import UpdateRiskModelFactorSetRequest
|
34
|
-
|
35
|
-
from lusid.api_client import ApiClient
|
36
|
-
from lusid.api_response import ApiResponse
|
37
|
-
from lusid.exceptions import ( # noqa: F401
|
38
|
-
ApiTypeError,
|
39
|
-
ApiValueError
|
40
|
-
)
|
41
|
-
from lusid.extensions.configuration_options import ConfigurationOptions
|
42
|
-
|
43
|
-
|
44
|
-
class RiskModelFactorSetsApi:
|
45
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
46
|
-
Ref: https://openapi-generator.tech
|
47
|
-
|
48
|
-
Do not edit the class manually.
|
49
|
-
"""
|
50
|
-
|
51
|
-
def __init__(self, api_client=None) -> None:
|
52
|
-
if api_client is None:
|
53
|
-
api_client = ApiClient.get_default()
|
54
|
-
self.api_client = api_client
|
55
|
-
|
56
|
-
@overload
|
57
|
-
async def create_risk_model_factor_set(self, create_risk_model_factor_set_request : Annotated[Optional[CreateRiskModelFactorSetRequest], Field(description="The request containing the details of the factor set")] = None, **kwargs) -> RiskModelFactorSet: # noqa: E501
|
58
|
-
...
|
59
|
-
|
60
|
-
@overload
|
61
|
-
def create_risk_model_factor_set(self, create_risk_model_factor_set_request : Annotated[Optional[CreateRiskModelFactorSetRequest], Field(description="The request containing the details of the factor set")] = None, async_req: Optional[bool]=True, **kwargs) -> RiskModelFactorSet: # noqa: E501
|
62
|
-
...
|
63
|
-
|
64
|
-
@validate_arguments
|
65
|
-
def create_risk_model_factor_set(self, create_risk_model_factor_set_request : Annotated[Optional[CreateRiskModelFactorSetRequest], Field(description="The request containing the details of the factor set")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[RiskModelFactorSet, Awaitable[RiskModelFactorSet]]: # noqa: E501
|
66
|
-
"""[EXPERIMENTAL] CreateRiskModelFactorSet: Create a Factor Set # noqa: E501
|
67
|
-
|
68
|
-
Creates a factor set definition with a scoped Id and Name # noqa: E501
|
69
|
-
This method makes a synchronous HTTP request by default. To make an
|
70
|
-
asynchronous HTTP request, please pass async_req=True
|
71
|
-
|
72
|
-
>>> thread = api.create_risk_model_factor_set(create_risk_model_factor_set_request, async_req=True)
|
73
|
-
>>> result = thread.get()
|
74
|
-
|
75
|
-
:param create_risk_model_factor_set_request: The request containing the details of the factor set
|
76
|
-
:type create_risk_model_factor_set_request: CreateRiskModelFactorSetRequest
|
77
|
-
:param async_req: Whether to execute the request asynchronously.
|
78
|
-
:type async_req: bool, optional
|
79
|
-
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
80
|
-
:param opts: Configuration options for this request
|
81
|
-
:type opts: ConfigurationOptions, optional
|
82
|
-
:return: Returns the result object.
|
83
|
-
If the method is called asynchronously,
|
84
|
-
returns the request thread.
|
85
|
-
:rtype: RiskModelFactorSet
|
86
|
-
"""
|
87
|
-
kwargs['_return_http_data_only'] = True
|
88
|
-
if '_preload_content' in kwargs:
|
89
|
-
message = "Error! Please call the create_risk_model_factor_set_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
90
|
-
raise ValueError(message)
|
91
|
-
if async_req is not None:
|
92
|
-
kwargs['async_req'] = async_req
|
93
|
-
return self.create_risk_model_factor_set_with_http_info(create_risk_model_factor_set_request, **kwargs) # noqa: E501
|
94
|
-
|
95
|
-
@validate_arguments
|
96
|
-
def create_risk_model_factor_set_with_http_info(self, create_risk_model_factor_set_request : Annotated[Optional[CreateRiskModelFactorSetRequest], Field(description="The request containing the details of the factor set")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
97
|
-
"""[EXPERIMENTAL] CreateRiskModelFactorSet: Create a Factor Set # noqa: E501
|
98
|
-
|
99
|
-
Creates a factor set definition with a scoped Id and Name # noqa: E501
|
100
|
-
This method makes a synchronous HTTP request by default. To make an
|
101
|
-
asynchronous HTTP request, please pass async_req=True
|
102
|
-
|
103
|
-
>>> thread = api.create_risk_model_factor_set_with_http_info(create_risk_model_factor_set_request, async_req=True)
|
104
|
-
>>> result = thread.get()
|
105
|
-
|
106
|
-
:param create_risk_model_factor_set_request: The request containing the details of the factor set
|
107
|
-
:type create_risk_model_factor_set_request: CreateRiskModelFactorSetRequest
|
108
|
-
:param async_req: Whether to execute the request asynchronously.
|
109
|
-
:type async_req: bool, optional
|
110
|
-
:param _preload_content: if False, the ApiResponse.data will
|
111
|
-
be set to none and raw_data will store the
|
112
|
-
HTTP response body without reading/decoding.
|
113
|
-
Default is True.
|
114
|
-
:type _preload_content: bool, optional
|
115
|
-
:param _return_http_data_only: response data instead of ApiResponse
|
116
|
-
object with status code, headers, etc
|
117
|
-
:type _return_http_data_only: bool, optional
|
118
|
-
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
119
|
-
:param opts: Configuration options for this request
|
120
|
-
:type opts: ConfigurationOptions, optional
|
121
|
-
:param _request_auth: set to override the auth_settings for an a single
|
122
|
-
request; this effectively ignores the authentication
|
123
|
-
in the spec for a single request.
|
124
|
-
:type _request_auth: dict, optional
|
125
|
-
:type _content_type: string, optional: force content-type for the request
|
126
|
-
:return: Returns the result object.
|
127
|
-
If the method is called asynchronously,
|
128
|
-
returns the request thread.
|
129
|
-
:rtype: tuple(RiskModelFactorSet, status_code(int), headers(HTTPHeaderDict))
|
130
|
-
"""
|
131
|
-
|
132
|
-
_params = locals()
|
133
|
-
|
134
|
-
_all_params = [
|
135
|
-
'create_risk_model_factor_set_request'
|
136
|
-
]
|
137
|
-
_all_params.extend(
|
138
|
-
[
|
139
|
-
'async_req',
|
140
|
-
'_return_http_data_only',
|
141
|
-
'_preload_content',
|
142
|
-
'_request_timeout',
|
143
|
-
'_request_auth',
|
144
|
-
'_content_type',
|
145
|
-
'_headers',
|
146
|
-
'opts'
|
147
|
-
]
|
148
|
-
)
|
149
|
-
|
150
|
-
# validate the arguments
|
151
|
-
for _key, _val in _params['kwargs'].items():
|
152
|
-
if _key not in _all_params:
|
153
|
-
raise ApiTypeError(
|
154
|
-
"Got an unexpected keyword argument '%s'"
|
155
|
-
" to method create_risk_model_factor_set" % _key
|
156
|
-
)
|
157
|
-
_params[_key] = _val
|
158
|
-
del _params['kwargs']
|
159
|
-
|
160
|
-
_collection_formats = {}
|
161
|
-
|
162
|
-
# process the path parameters
|
163
|
-
_path_params = {}
|
164
|
-
|
165
|
-
# process the query parameters
|
166
|
-
_query_params = []
|
167
|
-
# process the header parameters
|
168
|
-
_header_params = dict(_params.get('_headers', {}))
|
169
|
-
# process the form parameters
|
170
|
-
_form_params = []
|
171
|
-
_files = {}
|
172
|
-
# process the body parameter
|
173
|
-
_body_params = None
|
174
|
-
if _params['create_risk_model_factor_set_request'] is not None:
|
175
|
-
_body_params = _params['create_risk_model_factor_set_request']
|
176
|
-
|
177
|
-
# set the HTTP header `Accept`
|
178
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
179
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
180
|
-
|
181
|
-
# set the HTTP header `Content-Type`
|
182
|
-
_content_types_list = _params.get('_content_type',
|
183
|
-
self.api_client.select_header_content_type(
|
184
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
|
185
|
-
if _content_types_list:
|
186
|
-
_header_params['Content-Type'] = _content_types_list
|
187
|
-
|
188
|
-
# authentication setting
|
189
|
-
_auth_settings = ['oauth2'] # noqa: E501
|
190
|
-
|
191
|
-
_response_types_map = {
|
192
|
-
'201': "RiskModelFactorSet",
|
193
|
-
'400': "LusidValidationProblemDetails",
|
194
|
-
}
|
195
|
-
|
196
|
-
return self.api_client.call_api(
|
197
|
-
'/api/riskmodels/factorsets', 'POST',
|
198
|
-
_path_params,
|
199
|
-
_query_params,
|
200
|
-
_header_params,
|
201
|
-
body=_body_params,
|
202
|
-
post_params=_form_params,
|
203
|
-
files=_files,
|
204
|
-
response_types_map=_response_types_map,
|
205
|
-
auth_settings=_auth_settings,
|
206
|
-
async_req=_params.get('async_req'),
|
207
|
-
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
208
|
-
_preload_content=_params.get('_preload_content', True),
|
209
|
-
_request_timeout=_params.get('_request_timeout'),
|
210
|
-
opts=_params.get('opts'),
|
211
|
-
collection_formats=_collection_formats,
|
212
|
-
_request_auth=_params.get('_request_auth'))
|
213
|
-
|
214
|
-
@overload
|
215
|
-
async def delete_risk_model_factor_set(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the specified factor set.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set.")], **kwargs) -> DeletedEntityResponse: # noqa: E501
|
216
|
-
...
|
217
|
-
|
218
|
-
@overload
|
219
|
-
def delete_risk_model_factor_set(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the specified factor set.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set.")], async_req: Optional[bool]=True, **kwargs) -> DeletedEntityResponse: # noqa: E501
|
220
|
-
...
|
221
|
-
|
222
|
-
@validate_arguments
|
223
|
-
def delete_risk_model_factor_set(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the specified factor set.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set.")], async_req: Optional[bool]=None, **kwargs) -> Union[DeletedEntityResponse, Awaitable[DeletedEntityResponse]]: # noqa: E501
|
224
|
-
"""[EXPERIMENTAL] DeleteRiskModelFactorSet: Deletes a particular Factor Set # noqa: E501
|
225
|
-
|
226
|
-
The deletion will take effect from the factor set deletion datetime. i.e. will no longer exist at any asAt datetime after the asAt datetime of deletion. # noqa: E501
|
227
|
-
This method makes a synchronous HTTP request by default. To make an
|
228
|
-
asynchronous HTTP request, please pass async_req=True
|
229
|
-
|
230
|
-
>>> thread = api.delete_risk_model_factor_set(scope, code, async_req=True)
|
231
|
-
>>> result = thread.get()
|
232
|
-
|
233
|
-
:param scope: The scope of the specified factor set. (required)
|
234
|
-
:type scope: str
|
235
|
-
:param code: The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set. (required)
|
236
|
-
:type code: str
|
237
|
-
:param async_req: Whether to execute the request asynchronously.
|
238
|
-
:type async_req: bool, optional
|
239
|
-
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
240
|
-
:param opts: Configuration options for this request
|
241
|
-
:type opts: ConfigurationOptions, optional
|
242
|
-
:return: Returns the result object.
|
243
|
-
If the method is called asynchronously,
|
244
|
-
returns the request thread.
|
245
|
-
:rtype: DeletedEntityResponse
|
246
|
-
"""
|
247
|
-
kwargs['_return_http_data_only'] = True
|
248
|
-
if '_preload_content' in kwargs:
|
249
|
-
message = "Error! Please call the delete_risk_model_factor_set_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
250
|
-
raise ValueError(message)
|
251
|
-
if async_req is not None:
|
252
|
-
kwargs['async_req'] = async_req
|
253
|
-
return self.delete_risk_model_factor_set_with_http_info(scope, code, **kwargs) # noqa: E501
|
254
|
-
|
255
|
-
@validate_arguments
|
256
|
-
def delete_risk_model_factor_set_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the specified factor set.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set.")], **kwargs) -> ApiResponse: # noqa: E501
|
257
|
-
"""[EXPERIMENTAL] DeleteRiskModelFactorSet: Deletes a particular Factor Set # noqa: E501
|
258
|
-
|
259
|
-
The deletion will take effect from the factor set deletion datetime. i.e. will no longer exist at any asAt datetime after the asAt datetime of deletion. # noqa: E501
|
260
|
-
This method makes a synchronous HTTP request by default. To make an
|
261
|
-
asynchronous HTTP request, please pass async_req=True
|
262
|
-
|
263
|
-
>>> thread = api.delete_risk_model_factor_set_with_http_info(scope, code, async_req=True)
|
264
|
-
>>> result = thread.get()
|
265
|
-
|
266
|
-
:param scope: The scope of the specified factor set. (required)
|
267
|
-
:type scope: str
|
268
|
-
:param code: The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set. (required)
|
269
|
-
:type code: str
|
270
|
-
:param async_req: Whether to execute the request asynchronously.
|
271
|
-
:type async_req: bool, optional
|
272
|
-
:param _preload_content: if False, the ApiResponse.data will
|
273
|
-
be set to none and raw_data will store the
|
274
|
-
HTTP response body without reading/decoding.
|
275
|
-
Default is True.
|
276
|
-
:type _preload_content: bool, optional
|
277
|
-
:param _return_http_data_only: response data instead of ApiResponse
|
278
|
-
object with status code, headers, etc
|
279
|
-
:type _return_http_data_only: bool, optional
|
280
|
-
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
281
|
-
:param opts: Configuration options for this request
|
282
|
-
:type opts: ConfigurationOptions, optional
|
283
|
-
:param _request_auth: set to override the auth_settings for an a single
|
284
|
-
request; this effectively ignores the authentication
|
285
|
-
in the spec for a single request.
|
286
|
-
:type _request_auth: dict, optional
|
287
|
-
:type _content_type: string, optional: force content-type for the request
|
288
|
-
:return: Returns the result object.
|
289
|
-
If the method is called asynchronously,
|
290
|
-
returns the request thread.
|
291
|
-
:rtype: tuple(DeletedEntityResponse, status_code(int), headers(HTTPHeaderDict))
|
292
|
-
"""
|
293
|
-
|
294
|
-
_params = locals()
|
295
|
-
|
296
|
-
_all_params = [
|
297
|
-
'scope',
|
298
|
-
'code'
|
299
|
-
]
|
300
|
-
_all_params.extend(
|
301
|
-
[
|
302
|
-
'async_req',
|
303
|
-
'_return_http_data_only',
|
304
|
-
'_preload_content',
|
305
|
-
'_request_timeout',
|
306
|
-
'_request_auth',
|
307
|
-
'_content_type',
|
308
|
-
'_headers',
|
309
|
-
'opts'
|
310
|
-
]
|
311
|
-
)
|
312
|
-
|
313
|
-
# validate the arguments
|
314
|
-
for _key, _val in _params['kwargs'].items():
|
315
|
-
if _key not in _all_params:
|
316
|
-
raise ApiTypeError(
|
317
|
-
"Got an unexpected keyword argument '%s'"
|
318
|
-
" to method delete_risk_model_factor_set" % _key
|
319
|
-
)
|
320
|
-
_params[_key] = _val
|
321
|
-
del _params['kwargs']
|
322
|
-
|
323
|
-
_collection_formats = {}
|
324
|
-
|
325
|
-
# process the path parameters
|
326
|
-
_path_params = {}
|
327
|
-
if _params['scope']:
|
328
|
-
_path_params['scope'] = _params['scope']
|
329
|
-
|
330
|
-
if _params['code']:
|
331
|
-
_path_params['code'] = _params['code']
|
332
|
-
|
333
|
-
|
334
|
-
# process the query parameters
|
335
|
-
_query_params = []
|
336
|
-
# process the header parameters
|
337
|
-
_header_params = dict(_params.get('_headers', {}))
|
338
|
-
# process the form parameters
|
339
|
-
_form_params = []
|
340
|
-
_files = {}
|
341
|
-
# process the body parameter
|
342
|
-
_body_params = None
|
343
|
-
# set the HTTP header `Accept`
|
344
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
345
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
346
|
-
|
347
|
-
# authentication setting
|
348
|
-
_auth_settings = ['oauth2'] # noqa: E501
|
349
|
-
|
350
|
-
_response_types_map = {
|
351
|
-
'200': "DeletedEntityResponse",
|
352
|
-
'400': "LusidValidationProblemDetails",
|
353
|
-
}
|
354
|
-
|
355
|
-
return self.api_client.call_api(
|
356
|
-
'/api/riskmodels/factorsets/{scope}/{code}', 'DELETE',
|
357
|
-
_path_params,
|
358
|
-
_query_params,
|
359
|
-
_header_params,
|
360
|
-
body=_body_params,
|
361
|
-
post_params=_form_params,
|
362
|
-
files=_files,
|
363
|
-
response_types_map=_response_types_map,
|
364
|
-
auth_settings=_auth_settings,
|
365
|
-
async_req=_params.get('async_req'),
|
366
|
-
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
367
|
-
_preload_content=_params.get('_preload_content', True),
|
368
|
-
_request_timeout=_params.get('_request_timeout'),
|
369
|
-
opts=_params.get('opts'),
|
370
|
-
collection_formats=_collection_formats,
|
371
|
-
_request_auth=_params.get('_request_auth'))
|
372
|
-
|
373
|
-
@overload
|
374
|
-
async def get_risk_model_factor_set(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the specified factor set.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the factor set definition. Defaults to return the latest version of the definition if not specified.")] = None, **kwargs) -> RiskModelFactorSet: # noqa: E501
|
375
|
-
...
|
376
|
-
|
377
|
-
@overload
|
378
|
-
def get_risk_model_factor_set(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the specified factor set.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the factor set definition. Defaults to return the latest version of the definition if not specified.")] = None, async_req: Optional[bool]=True, **kwargs) -> RiskModelFactorSet: # noqa: E501
|
379
|
-
...
|
380
|
-
|
381
|
-
@validate_arguments
|
382
|
-
def get_risk_model_factor_set(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the specified factor set.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the factor set definition. Defaults to return the latest version of the definition if not specified.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[RiskModelFactorSet, Awaitable[RiskModelFactorSet]]: # noqa: E501
|
383
|
-
"""[EXPERIMENTAL] GetRiskModelFactorSet: Get a single Factor Set by scope and code. # noqa: E501
|
384
|
-
|
385
|
-
Retrieves one Factor Set by scope and code. # noqa: E501
|
386
|
-
This method makes a synchronous HTTP request by default. To make an
|
387
|
-
asynchronous HTTP request, please pass async_req=True
|
388
|
-
|
389
|
-
>>> thread = api.get_risk_model_factor_set(scope, code, as_at, async_req=True)
|
390
|
-
>>> result = thread.get()
|
391
|
-
|
392
|
-
:param scope: The scope of the specified factor set. (required)
|
393
|
-
:type scope: str
|
394
|
-
:param code: The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set. (required)
|
395
|
-
:type code: str
|
396
|
-
:param as_at: The asAt datetime at which to retrieve the factor set definition. Defaults to return the latest version of the definition if not specified.
|
397
|
-
:type as_at: datetime
|
398
|
-
:param async_req: Whether to execute the request asynchronously.
|
399
|
-
:type async_req: bool, optional
|
400
|
-
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
401
|
-
:param opts: Configuration options for this request
|
402
|
-
:type opts: ConfigurationOptions, optional
|
403
|
-
:return: Returns the result object.
|
404
|
-
If the method is called asynchronously,
|
405
|
-
returns the request thread.
|
406
|
-
:rtype: RiskModelFactorSet
|
407
|
-
"""
|
408
|
-
kwargs['_return_http_data_only'] = True
|
409
|
-
if '_preload_content' in kwargs:
|
410
|
-
message = "Error! Please call the get_risk_model_factor_set_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
411
|
-
raise ValueError(message)
|
412
|
-
if async_req is not None:
|
413
|
-
kwargs['async_req'] = async_req
|
414
|
-
return self.get_risk_model_factor_set_with_http_info(scope, code, as_at, **kwargs) # noqa: E501
|
415
|
-
|
416
|
-
@validate_arguments
|
417
|
-
def get_risk_model_factor_set_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the specified factor set.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the factor set definition. Defaults to return the latest version of the definition if not specified.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
418
|
-
"""[EXPERIMENTAL] GetRiskModelFactorSet: Get a single Factor Set by scope and code. # noqa: E501
|
419
|
-
|
420
|
-
Retrieves one Factor Set by scope and code. # noqa: E501
|
421
|
-
This method makes a synchronous HTTP request by default. To make an
|
422
|
-
asynchronous HTTP request, please pass async_req=True
|
423
|
-
|
424
|
-
>>> thread = api.get_risk_model_factor_set_with_http_info(scope, code, as_at, async_req=True)
|
425
|
-
>>> result = thread.get()
|
426
|
-
|
427
|
-
:param scope: The scope of the specified factor set. (required)
|
428
|
-
:type scope: str
|
429
|
-
:param code: The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set. (required)
|
430
|
-
:type code: str
|
431
|
-
:param as_at: The asAt datetime at which to retrieve the factor set definition. Defaults to return the latest version of the definition if not specified.
|
432
|
-
:type as_at: datetime
|
433
|
-
:param async_req: Whether to execute the request asynchronously.
|
434
|
-
:type async_req: bool, optional
|
435
|
-
:param _preload_content: if False, the ApiResponse.data will
|
436
|
-
be set to none and raw_data will store the
|
437
|
-
HTTP response body without reading/decoding.
|
438
|
-
Default is True.
|
439
|
-
:type _preload_content: bool, optional
|
440
|
-
:param _return_http_data_only: response data instead of ApiResponse
|
441
|
-
object with status code, headers, etc
|
442
|
-
:type _return_http_data_only: bool, optional
|
443
|
-
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
444
|
-
:param opts: Configuration options for this request
|
445
|
-
:type opts: ConfigurationOptions, optional
|
446
|
-
:param _request_auth: set to override the auth_settings for an a single
|
447
|
-
request; this effectively ignores the authentication
|
448
|
-
in the spec for a single request.
|
449
|
-
:type _request_auth: dict, optional
|
450
|
-
:type _content_type: string, optional: force content-type for the request
|
451
|
-
:return: Returns the result object.
|
452
|
-
If the method is called asynchronously,
|
453
|
-
returns the request thread.
|
454
|
-
:rtype: tuple(RiskModelFactorSet, status_code(int), headers(HTTPHeaderDict))
|
455
|
-
"""
|
456
|
-
|
457
|
-
_params = locals()
|
458
|
-
|
459
|
-
_all_params = [
|
460
|
-
'scope',
|
461
|
-
'code',
|
462
|
-
'as_at'
|
463
|
-
]
|
464
|
-
_all_params.extend(
|
465
|
-
[
|
466
|
-
'async_req',
|
467
|
-
'_return_http_data_only',
|
468
|
-
'_preload_content',
|
469
|
-
'_request_timeout',
|
470
|
-
'_request_auth',
|
471
|
-
'_content_type',
|
472
|
-
'_headers',
|
473
|
-
'opts'
|
474
|
-
]
|
475
|
-
)
|
476
|
-
|
477
|
-
# validate the arguments
|
478
|
-
for _key, _val in _params['kwargs'].items():
|
479
|
-
if _key not in _all_params:
|
480
|
-
raise ApiTypeError(
|
481
|
-
"Got an unexpected keyword argument '%s'"
|
482
|
-
" to method get_risk_model_factor_set" % _key
|
483
|
-
)
|
484
|
-
_params[_key] = _val
|
485
|
-
del _params['kwargs']
|
486
|
-
|
487
|
-
_collection_formats = {}
|
488
|
-
|
489
|
-
# process the path parameters
|
490
|
-
_path_params = {}
|
491
|
-
if _params['scope']:
|
492
|
-
_path_params['scope'] = _params['scope']
|
493
|
-
|
494
|
-
if _params['code']:
|
495
|
-
_path_params['code'] = _params['code']
|
496
|
-
|
497
|
-
|
498
|
-
# process the query parameters
|
499
|
-
_query_params = []
|
500
|
-
if _params.get('as_at') is not None: # noqa: E501
|
501
|
-
if isinstance(_params['as_at'], datetime):
|
502
|
-
_query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
|
503
|
-
else:
|
504
|
-
_query_params.append(('asAt', _params['as_at']))
|
505
|
-
|
506
|
-
# process the header parameters
|
507
|
-
_header_params = dict(_params.get('_headers', {}))
|
508
|
-
# process the form parameters
|
509
|
-
_form_params = []
|
510
|
-
_files = {}
|
511
|
-
# process the body parameter
|
512
|
-
_body_params = None
|
513
|
-
# set the HTTP header `Accept`
|
514
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
515
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
516
|
-
|
517
|
-
# authentication setting
|
518
|
-
_auth_settings = ['oauth2'] # noqa: E501
|
519
|
-
|
520
|
-
_response_types_map = {
|
521
|
-
'200': "RiskModelFactorSet",
|
522
|
-
'400': "LusidValidationProblemDetails",
|
523
|
-
}
|
524
|
-
|
525
|
-
return self.api_client.call_api(
|
526
|
-
'/api/riskmodels/factorsets/{scope}/{code}', 'GET',
|
527
|
-
_path_params,
|
528
|
-
_query_params,
|
529
|
-
_header_params,
|
530
|
-
body=_body_params,
|
531
|
-
post_params=_form_params,
|
532
|
-
files=_files,
|
533
|
-
response_types_map=_response_types_map,
|
534
|
-
auth_settings=_auth_settings,
|
535
|
-
async_req=_params.get('async_req'),
|
536
|
-
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
537
|
-
_preload_content=_params.get('_preload_content', True),
|
538
|
-
_request_timeout=_params.get('_request_timeout'),
|
539
|
-
opts=_params.get('opts'),
|
540
|
-
collection_formats=_collection_formats,
|
541
|
-
_request_auth=_params.get('_request_auth'))
|
542
|
-
|
543
|
-
@overload
|
544
|
-
async def list_risk_model_factor_sets(self, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the factor sets. Defaults to return the latest version of the factor sets 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 factor sets from a previous call to list factor sets. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, effectiveAt, and asAt fields must not have changed since the original request.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\"")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="Page size.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid.")] = None, **kwargs) -> PagedResourceListOfRiskModelFactorSet: # noqa: E501
|
545
|
-
...
|
546
|
-
|
547
|
-
@overload
|
548
|
-
def list_risk_model_factor_sets(self, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the factor sets. Defaults to return the latest version of the factor sets 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 factor sets from a previous call to list factor sets. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, effectiveAt, and asAt fields must not have changed since the original request.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\"")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="Page size.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid.")] = None, async_req: Optional[bool]=True, **kwargs) -> PagedResourceListOfRiskModelFactorSet: # noqa: E501
|
549
|
-
...
|
550
|
-
|
551
|
-
@validate_arguments
|
552
|
-
def list_risk_model_factor_sets(self, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the factor sets. Defaults to return the latest version of the factor sets 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 factor sets from a previous call to list factor sets. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, effectiveAt, and asAt fields must not have changed since the original request.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\"")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="Page size.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[PagedResourceListOfRiskModelFactorSet, Awaitable[PagedResourceListOfRiskModelFactorSet]]: # noqa: E501
|
553
|
-
"""[EXPERIMENTAL] ListRiskModelFactorSets: Get a set of Factor Sets # noqa: E501
|
554
|
-
|
555
|
-
Retrieves all Factor Sets (without related Factors) that fit the filter, in a specific order if sortBy is provided. Supports pagination # noqa: E501
|
556
|
-
This method makes a synchronous HTTP request by default. To make an
|
557
|
-
asynchronous HTTP request, please pass async_req=True
|
558
|
-
|
559
|
-
>>> thread = api.list_risk_model_factor_sets(as_at, page, sort_by, limit, filter, async_req=True)
|
560
|
-
>>> result = thread.get()
|
561
|
-
|
562
|
-
:param as_at: The asAt datetime at which to retrieve the factor sets. Defaults to return the latest version of the factor sets if not specified.
|
563
|
-
:type as_at: datetime
|
564
|
-
:param page: The pagination token to use to continue listing factor sets from a previous call to list factor sets. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, effectiveAt, and asAt fields must not have changed since the original request.
|
565
|
-
:type page: str
|
566
|
-
:param sort_by: A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\"
|
567
|
-
:type sort_by: List[str]
|
568
|
-
:param limit: Page size.
|
569
|
-
:type limit: int
|
570
|
-
:param filter: Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid.
|
571
|
-
:type filter: str
|
572
|
-
:param async_req: Whether to execute the request asynchronously.
|
573
|
-
:type async_req: bool, optional
|
574
|
-
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
575
|
-
:param opts: Configuration options for this request
|
576
|
-
:type opts: ConfigurationOptions, optional
|
577
|
-
:return: Returns the result object.
|
578
|
-
If the method is called asynchronously,
|
579
|
-
returns the request thread.
|
580
|
-
:rtype: PagedResourceListOfRiskModelFactorSet
|
581
|
-
"""
|
582
|
-
kwargs['_return_http_data_only'] = True
|
583
|
-
if '_preload_content' in kwargs:
|
584
|
-
message = "Error! Please call the list_risk_model_factor_sets_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
585
|
-
raise ValueError(message)
|
586
|
-
if async_req is not None:
|
587
|
-
kwargs['async_req'] = async_req
|
588
|
-
return self.list_risk_model_factor_sets_with_http_info(as_at, page, sort_by, limit, filter, **kwargs) # noqa: E501
|
589
|
-
|
590
|
-
@validate_arguments
|
591
|
-
def list_risk_model_factor_sets_with_http_info(self, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the factor sets. Defaults to return the latest version of the factor sets 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 factor sets from a previous call to list factor sets. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, effectiveAt, and asAt fields must not have changed since the original request.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\"")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="Page size.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
592
|
-
"""[EXPERIMENTAL] ListRiskModelFactorSets: Get a set of Factor Sets # noqa: E501
|
593
|
-
|
594
|
-
Retrieves all Factor Sets (without related Factors) that fit the filter, in a specific order if sortBy is provided. Supports pagination # noqa: E501
|
595
|
-
This method makes a synchronous HTTP request by default. To make an
|
596
|
-
asynchronous HTTP request, please pass async_req=True
|
597
|
-
|
598
|
-
>>> thread = api.list_risk_model_factor_sets_with_http_info(as_at, page, sort_by, limit, filter, async_req=True)
|
599
|
-
>>> result = thread.get()
|
600
|
-
|
601
|
-
:param as_at: The asAt datetime at which to retrieve the factor sets. Defaults to return the latest version of the factor sets if not specified.
|
602
|
-
:type as_at: datetime
|
603
|
-
:param page: The pagination token to use to continue listing factor sets from a previous call to list factor sets. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, effectiveAt, and asAt fields must not have changed since the original request.
|
604
|
-
:type page: str
|
605
|
-
:param sort_by: A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\"
|
606
|
-
:type sort_by: List[str]
|
607
|
-
:param limit: Page size.
|
608
|
-
:type limit: int
|
609
|
-
:param filter: Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid.
|
610
|
-
:type filter: str
|
611
|
-
:param async_req: Whether to execute the request asynchronously.
|
612
|
-
:type async_req: bool, optional
|
613
|
-
:param _preload_content: if False, the ApiResponse.data will
|
614
|
-
be set to none and raw_data will store the
|
615
|
-
HTTP response body without reading/decoding.
|
616
|
-
Default is True.
|
617
|
-
:type _preload_content: bool, optional
|
618
|
-
:param _return_http_data_only: response data instead of ApiResponse
|
619
|
-
object with status code, headers, etc
|
620
|
-
:type _return_http_data_only: bool, optional
|
621
|
-
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
622
|
-
:param opts: Configuration options for this request
|
623
|
-
:type opts: ConfigurationOptions, optional
|
624
|
-
:param _request_auth: set to override the auth_settings for an a single
|
625
|
-
request; this effectively ignores the authentication
|
626
|
-
in the spec for a single request.
|
627
|
-
:type _request_auth: dict, optional
|
628
|
-
:type _content_type: string, optional: force content-type for the request
|
629
|
-
:return: Returns the result object.
|
630
|
-
If the method is called asynchronously,
|
631
|
-
returns the request thread.
|
632
|
-
:rtype: tuple(PagedResourceListOfRiskModelFactorSet, status_code(int), headers(HTTPHeaderDict))
|
633
|
-
"""
|
634
|
-
|
635
|
-
_params = locals()
|
636
|
-
|
637
|
-
_all_params = [
|
638
|
-
'as_at',
|
639
|
-
'page',
|
640
|
-
'sort_by',
|
641
|
-
'limit',
|
642
|
-
'filter'
|
643
|
-
]
|
644
|
-
_all_params.extend(
|
645
|
-
[
|
646
|
-
'async_req',
|
647
|
-
'_return_http_data_only',
|
648
|
-
'_preload_content',
|
649
|
-
'_request_timeout',
|
650
|
-
'_request_auth',
|
651
|
-
'_content_type',
|
652
|
-
'_headers',
|
653
|
-
'opts'
|
654
|
-
]
|
655
|
-
)
|
656
|
-
|
657
|
-
# validate the arguments
|
658
|
-
for _key, _val in _params['kwargs'].items():
|
659
|
-
if _key not in _all_params:
|
660
|
-
raise ApiTypeError(
|
661
|
-
"Got an unexpected keyword argument '%s'"
|
662
|
-
" to method list_risk_model_factor_sets" % _key
|
663
|
-
)
|
664
|
-
_params[_key] = _val
|
665
|
-
del _params['kwargs']
|
666
|
-
|
667
|
-
_collection_formats = {}
|
668
|
-
|
669
|
-
# process the path parameters
|
670
|
-
_path_params = {}
|
671
|
-
|
672
|
-
# process the query parameters
|
673
|
-
_query_params = []
|
674
|
-
if _params.get('as_at') is not None: # noqa: E501
|
675
|
-
if isinstance(_params['as_at'], datetime):
|
676
|
-
_query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
|
677
|
-
else:
|
678
|
-
_query_params.append(('asAt', _params['as_at']))
|
679
|
-
|
680
|
-
if _params.get('page') is not None: # noqa: E501
|
681
|
-
_query_params.append(('page', _params['page']))
|
682
|
-
|
683
|
-
if _params.get('sort_by') is not None: # noqa: E501
|
684
|
-
_query_params.append(('sortBy', _params['sort_by']))
|
685
|
-
_collection_formats['sortBy'] = 'multi'
|
686
|
-
|
687
|
-
if _params.get('limit') is not None: # noqa: E501
|
688
|
-
_query_params.append(('limit', _params['limit']))
|
689
|
-
|
690
|
-
if _params.get('filter') is not None: # noqa: E501
|
691
|
-
_query_params.append(('filter', _params['filter']))
|
692
|
-
|
693
|
-
# process the header parameters
|
694
|
-
_header_params = dict(_params.get('_headers', {}))
|
695
|
-
# process the form parameters
|
696
|
-
_form_params = []
|
697
|
-
_files = {}
|
698
|
-
# process the body parameter
|
699
|
-
_body_params = None
|
700
|
-
# set the HTTP header `Accept`
|
701
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
702
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
703
|
-
|
704
|
-
# authentication setting
|
705
|
-
_auth_settings = ['oauth2'] # noqa: E501
|
706
|
-
|
707
|
-
_response_types_map = {
|
708
|
-
'200': "PagedResourceListOfRiskModelFactorSet",
|
709
|
-
'400': "LusidValidationProblemDetails",
|
710
|
-
}
|
711
|
-
|
712
|
-
return self.api_client.call_api(
|
713
|
-
'/api/riskmodels/factorsets', 'GET',
|
714
|
-
_path_params,
|
715
|
-
_query_params,
|
716
|
-
_header_params,
|
717
|
-
body=_body_params,
|
718
|
-
post_params=_form_params,
|
719
|
-
files=_files,
|
720
|
-
response_types_map=_response_types_map,
|
721
|
-
auth_settings=_auth_settings,
|
722
|
-
async_req=_params.get('async_req'),
|
723
|
-
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
724
|
-
_preload_content=_params.get('_preload_content', True),
|
725
|
-
_request_timeout=_params.get('_request_timeout'),
|
726
|
-
opts=_params.get('opts'),
|
727
|
-
collection_formats=_collection_formats,
|
728
|
-
_request_auth=_params.get('_request_auth'))
|
729
|
-
|
730
|
-
@overload
|
731
|
-
async def update_risk_model_factor_set_name(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the specified factor set.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set.")], update_risk_model_factor_set_request : Annotated[Optional[UpdateRiskModelFactorSetRequest], Field(description="The request containing the updated name of the factor set.")] = None, **kwargs) -> RiskModelFactorSet: # noqa: E501
|
732
|
-
...
|
733
|
-
|
734
|
-
@overload
|
735
|
-
def update_risk_model_factor_set_name(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the specified factor set.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set.")], update_risk_model_factor_set_request : Annotated[Optional[UpdateRiskModelFactorSetRequest], Field(description="The request containing the updated name of the factor set.")] = None, async_req: Optional[bool]=True, **kwargs) -> RiskModelFactorSet: # noqa: E501
|
736
|
-
...
|
737
|
-
|
738
|
-
@validate_arguments
|
739
|
-
def update_risk_model_factor_set_name(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the specified factor set.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set.")], update_risk_model_factor_set_request : Annotated[Optional[UpdateRiskModelFactorSetRequest], Field(description="The request containing the updated name of the factor set.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[RiskModelFactorSet, Awaitable[RiskModelFactorSet]]: # noqa: E501
|
740
|
-
"""[EXPERIMENTAL] UpdateRiskModelFactorSetName: Update Factor Set Display Name # noqa: E501
|
741
|
-
|
742
|
-
Overwrites an existing Factor Set as per scope and code from the route Update request has a single property - DisplayName # noqa: E501
|
743
|
-
This method makes a synchronous HTTP request by default. To make an
|
744
|
-
asynchronous HTTP request, please pass async_req=True
|
745
|
-
|
746
|
-
>>> thread = api.update_risk_model_factor_set_name(scope, code, update_risk_model_factor_set_request, async_req=True)
|
747
|
-
>>> result = thread.get()
|
748
|
-
|
749
|
-
:param scope: The scope of the specified factor set. (required)
|
750
|
-
:type scope: str
|
751
|
-
:param code: The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set. (required)
|
752
|
-
:type code: str
|
753
|
-
:param update_risk_model_factor_set_request: The request containing the updated name of the factor set.
|
754
|
-
:type update_risk_model_factor_set_request: UpdateRiskModelFactorSetRequest
|
755
|
-
:param async_req: Whether to execute the request asynchronously.
|
756
|
-
:type async_req: bool, optional
|
757
|
-
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
758
|
-
:param opts: Configuration options for this request
|
759
|
-
:type opts: ConfigurationOptions, optional
|
760
|
-
:return: Returns the result object.
|
761
|
-
If the method is called asynchronously,
|
762
|
-
returns the request thread.
|
763
|
-
:rtype: RiskModelFactorSet
|
764
|
-
"""
|
765
|
-
kwargs['_return_http_data_only'] = True
|
766
|
-
if '_preload_content' in kwargs:
|
767
|
-
message = "Error! Please call the update_risk_model_factor_set_name_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
768
|
-
raise ValueError(message)
|
769
|
-
if async_req is not None:
|
770
|
-
kwargs['async_req'] = async_req
|
771
|
-
return self.update_risk_model_factor_set_name_with_http_info(scope, code, update_risk_model_factor_set_request, **kwargs) # noqa: E501
|
772
|
-
|
773
|
-
@validate_arguments
|
774
|
-
def update_risk_model_factor_set_name_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the specified factor set.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set.")], update_risk_model_factor_set_request : Annotated[Optional[UpdateRiskModelFactorSetRequest], Field(description="The request containing the updated name of the factor set.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
775
|
-
"""[EXPERIMENTAL] UpdateRiskModelFactorSetName: Update Factor Set Display Name # noqa: E501
|
776
|
-
|
777
|
-
Overwrites an existing Factor Set as per scope and code from the route Update request has a single property - DisplayName # noqa: E501
|
778
|
-
This method makes a synchronous HTTP request by default. To make an
|
779
|
-
asynchronous HTTP request, please pass async_req=True
|
780
|
-
|
781
|
-
>>> thread = api.update_risk_model_factor_set_name_with_http_info(scope, code, update_risk_model_factor_set_request, async_req=True)
|
782
|
-
>>> result = thread.get()
|
783
|
-
|
784
|
-
:param scope: The scope of the specified factor set. (required)
|
785
|
-
:type scope: str
|
786
|
-
:param code: The code of the specified factor set. Together with the domain and scope this uniquely identifies the factor set. (required)
|
787
|
-
:type code: str
|
788
|
-
:param update_risk_model_factor_set_request: The request containing the updated name of the factor set.
|
789
|
-
:type update_risk_model_factor_set_request: UpdateRiskModelFactorSetRequest
|
790
|
-
:param async_req: Whether to execute the request asynchronously.
|
791
|
-
:type async_req: bool, optional
|
792
|
-
:param _preload_content: if False, the ApiResponse.data will
|
793
|
-
be set to none and raw_data will store the
|
794
|
-
HTTP response body without reading/decoding.
|
795
|
-
Default is True.
|
796
|
-
:type _preload_content: bool, optional
|
797
|
-
:param _return_http_data_only: response data instead of ApiResponse
|
798
|
-
object with status code, headers, etc
|
799
|
-
:type _return_http_data_only: bool, optional
|
800
|
-
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
801
|
-
:param opts: Configuration options for this request
|
802
|
-
:type opts: ConfigurationOptions, optional
|
803
|
-
:param _request_auth: set to override the auth_settings for an a single
|
804
|
-
request; this effectively ignores the authentication
|
805
|
-
in the spec for a single request.
|
806
|
-
:type _request_auth: dict, optional
|
807
|
-
:type _content_type: string, optional: force content-type for the request
|
808
|
-
:return: Returns the result object.
|
809
|
-
If the method is called asynchronously,
|
810
|
-
returns the request thread.
|
811
|
-
:rtype: tuple(RiskModelFactorSet, status_code(int), headers(HTTPHeaderDict))
|
812
|
-
"""
|
813
|
-
|
814
|
-
_params = locals()
|
815
|
-
|
816
|
-
_all_params = [
|
817
|
-
'scope',
|
818
|
-
'code',
|
819
|
-
'update_risk_model_factor_set_request'
|
820
|
-
]
|
821
|
-
_all_params.extend(
|
822
|
-
[
|
823
|
-
'async_req',
|
824
|
-
'_return_http_data_only',
|
825
|
-
'_preload_content',
|
826
|
-
'_request_timeout',
|
827
|
-
'_request_auth',
|
828
|
-
'_content_type',
|
829
|
-
'_headers',
|
830
|
-
'opts'
|
831
|
-
]
|
832
|
-
)
|
833
|
-
|
834
|
-
# validate the arguments
|
835
|
-
for _key, _val in _params['kwargs'].items():
|
836
|
-
if _key not in _all_params:
|
837
|
-
raise ApiTypeError(
|
838
|
-
"Got an unexpected keyword argument '%s'"
|
839
|
-
" to method update_risk_model_factor_set_name" % _key
|
840
|
-
)
|
841
|
-
_params[_key] = _val
|
842
|
-
del _params['kwargs']
|
843
|
-
|
844
|
-
_collection_formats = {}
|
845
|
-
|
846
|
-
# process the path parameters
|
847
|
-
_path_params = {}
|
848
|
-
if _params['scope']:
|
849
|
-
_path_params['scope'] = _params['scope']
|
850
|
-
|
851
|
-
if _params['code']:
|
852
|
-
_path_params['code'] = _params['code']
|
853
|
-
|
854
|
-
|
855
|
-
# process the query parameters
|
856
|
-
_query_params = []
|
857
|
-
# process the header parameters
|
858
|
-
_header_params = dict(_params.get('_headers', {}))
|
859
|
-
# process the form parameters
|
860
|
-
_form_params = []
|
861
|
-
_files = {}
|
862
|
-
# process the body parameter
|
863
|
-
_body_params = None
|
864
|
-
if _params['update_risk_model_factor_set_request'] is not None:
|
865
|
-
_body_params = _params['update_risk_model_factor_set_request']
|
866
|
-
|
867
|
-
# set the HTTP header `Accept`
|
868
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
869
|
-
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
870
|
-
|
871
|
-
# set the HTTP header `Content-Type`
|
872
|
-
_content_types_list = _params.get('_content_type',
|
873
|
-
self.api_client.select_header_content_type(
|
874
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
|
875
|
-
if _content_types_list:
|
876
|
-
_header_params['Content-Type'] = _content_types_list
|
877
|
-
|
878
|
-
# authentication setting
|
879
|
-
_auth_settings = ['oauth2'] # noqa: E501
|
880
|
-
|
881
|
-
_response_types_map = {
|
882
|
-
'200': "RiskModelFactorSet",
|
883
|
-
'400': "LusidValidationProblemDetails",
|
884
|
-
}
|
885
|
-
|
886
|
-
return self.api_client.call_api(
|
887
|
-
'/api/riskmodels/factorsets/{scope}/{code}', 'PUT',
|
888
|
-
_path_params,
|
889
|
-
_query_params,
|
890
|
-
_header_params,
|
891
|
-
body=_body_params,
|
892
|
-
post_params=_form_params,
|
893
|
-
files=_files,
|
894
|
-
response_types_map=_response_types_map,
|
895
|
-
auth_settings=_auth_settings,
|
896
|
-
async_req=_params.get('async_req'),
|
897
|
-
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
898
|
-
_preload_content=_params.get('_preload_content', True),
|
899
|
-
_request_timeout=_params.get('_request_timeout'),
|
900
|
-
opts=_params.get('opts'),
|
901
|
-
collection_formats=_collection_formats,
|
902
|
-
_request_auth=_params.get('_request_auth'))
|