sdk.lusid.api.custom_entity_types_api.CustomEntityTypesApi
- class CustomEntityTypesApi(api_client=None)[source]
NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech
Do not edit the class manually.
Methods
[EARLY ACCESS] CreateCustomEntityType: Define a new Custom Entity Type.
[EARLY ACCESS] CreateCustomEntityType: Define a new Custom Entity Type.
[EARLY ACCESS] GetCustomEntityType: Get a Custom Entity Type.
[EARLY ACCESS] GetCustomEntityType: Get a Custom Entity Type.
[EARLY ACCESS] ListCustomEntityTypes: List Custom Entity Types.
[EARLY ACCESS] ListCustomEntityTypes: List Custom Entity Types.
[EARLY ACCESS] UpdateCustomEntityType: Modify an existing Custom Entity Type.
[EARLY ACCESS] UpdateCustomEntityType: Modify an existing Custom Entity Type.
- create_custom_entity_type(create_custom_entity_type_request, async_req=None, **kwargs)[source]
[EARLY ACCESS] CreateCustomEntityType: Define a new Custom Entity Type. # noqa: E501
The API will return a Bad Request if the Custom Entity Type already exists. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_custom_entity_type(create_custom_entity_type_request, async_req=True) >>> result = thread.get()
- Parameters:
create_custom_entity_type_request (CreateCustomEntityTypeRequest) – The payload containing the description of the Custom Entity Type. (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_request_timeout – Timeout setting. Do not use - use the opts parameter instead
opts (ConfigurationOptions, optional) – Configuration options for this request
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- create_custom_entity_type_with_http_info(create_custom_entity_type_request, **kwargs)[source]
[EARLY ACCESS] CreateCustomEntityType: Define a new Custom Entity Type. # noqa: E501
The API will return a Bad Request if the Custom Entity Type already exists. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_custom_entity_type_with_http_info(create_custom_entity_type_request, async_req=True) >>> result = thread.get()
- Parameters:
create_custom_entity_type_request (CreateCustomEntityTypeRequest) – The payload containing the description of the Custom Entity Type. (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.
_return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc
_request_timeout – Timeout setting. Do not use - use the opts parameter instead
opts (ConfigurationOptions, optional) – Configuration options for this request
_request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
tuple(CustomEntityType, status_code(int), headers(HTTPHeaderDict))
- get_custom_entity_type(entity_type, as_at=None, async_req=None, **kwargs)[source]
[EARLY ACCESS] GetCustomEntityType: Get a Custom Entity Type. # noqa: E501
Retrieve a specific Custom Entity Type at a point in AsAt time. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_custom_entity_type(entity_type, as_at, async_req=True) >>> result = thread.get()
- Parameters:
entity_type (str) – The identifier for the Custom Entity Type, derived from the “entityTypeName” provided on creation. (required)
as_at (datetime) – The AsAt datetime at which to retrieve the definition.
async_req (bool, optional) – Whether to execute the request asynchronously.
_request_timeout – Timeout setting. Do not use - use the opts parameter instead
opts (ConfigurationOptions, optional) – Configuration options for this request
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- get_custom_entity_type_with_http_info(entity_type, as_at=None, **kwargs)[source]
[EARLY ACCESS] GetCustomEntityType: Get a Custom Entity Type. # noqa: E501
Retrieve a specific Custom Entity Type at a point in AsAt time. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_custom_entity_type_with_http_info(entity_type, as_at, async_req=True) >>> result = thread.get()
- Parameters:
entity_type (str) – The identifier for the Custom Entity Type, derived from the “entityTypeName” provided on creation. (required)
as_at (datetime) – The AsAt datetime at which to retrieve the definition.
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.
_return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc
_request_timeout – Timeout setting. Do not use - use the opts parameter instead
opts (ConfigurationOptions, optional) – Configuration options for this request
_request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
tuple(CustomEntityType, status_code(int), headers(HTTPHeaderDict))
- list_custom_entity_types(as_at=None, limit=None, filter=None, sort_by=None, page=None, async_req=None, **kwargs)[source]
[EARLY ACCESS] ListCustomEntityTypes: List Custom Entity Types. # noqa: E501
List all Custom Entity Types matching particular criteria. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_custom_entity_types(as_at, limit, filter, sort_by, page, async_req=True) >>> result = thread.get()
- Parameters:
as_at (datetime) – The asAt datetime at which to list the entities. Defaults to returning the latest version of each Custom Entity Type if not specified.
limit (int) – When paginating, limit the results to this number. Defaults to 100 if not specified.
filter (str) – Expression to filter the results. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.
sort_by (List[str]) – A list of field names to sort by, each suffixed by “ ASC” or “ DESC”
page (str) – The pagination token to use to continue listing entities; this value is returned from the previous call. If a pagination token is provided, the filter, limit, sortBy, and asAt fields must not have changed since the original request.
async_req (bool, optional) – Whether to execute the request asynchronously.
_request_timeout – Timeout setting. Do not use - use the opts parameter instead
opts (ConfigurationOptions, optional) – Configuration options for this request
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- list_custom_entity_types_with_http_info(as_at=None, limit=None, filter=None, sort_by=None, page=None, **kwargs)[source]
[EARLY ACCESS] ListCustomEntityTypes: List Custom Entity Types. # noqa: E501
List all Custom Entity Types matching particular criteria. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_custom_entity_types_with_http_info(as_at, limit, filter, sort_by, page, async_req=True) >>> result = thread.get()
- Parameters:
as_at (datetime) – The asAt datetime at which to list the entities. Defaults to returning the latest version of each Custom Entity Type if not specified.
limit (int) – When paginating, limit the results to this number. Defaults to 100 if not specified.
filter (str) – Expression to filter the results. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.
sort_by (List[str]) – A list of field names to sort by, each suffixed by “ ASC” or “ DESC”
page (str) – The pagination token to use to continue listing entities; this value is returned from the previous call. If a pagination token is provided, the filter, limit, sortBy, and asAt fields must not have changed since the original request.
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.
_return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc
_request_timeout – Timeout setting. Do not use - use the opts parameter instead
opts (ConfigurationOptions, optional) – Configuration options for this request
_request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
tuple(PagedResourceListOfCustomEntityType, status_code(int), headers(HTTPHeaderDict))
- update_custom_entity_type(entity_type, update_custom_entity_type_request, async_req=None, **kwargs)[source]
[EARLY ACCESS] UpdateCustomEntityType: Modify an existing Custom Entity Type. # noqa: E501
The API will return a Bad Request if the Custom Entity Type does not exist. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_custom_entity_type(entity_type, update_custom_entity_type_request, async_req=True) >>> result = thread.get()
- Parameters:
entity_type (str) – The identifier for the Custom Entity Type, derived from the “entityTypeName” provided on creation. (required)
update_custom_entity_type_request (UpdateCustomEntityTypeRequest) – The payload containing the description of the Custom Entity Type. (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_request_timeout – Timeout setting. Do not use - use the opts parameter instead
opts (ConfigurationOptions, optional) – Configuration options for this request
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- update_custom_entity_type_with_http_info(entity_type, update_custom_entity_type_request, **kwargs)[source]
[EARLY ACCESS] UpdateCustomEntityType: Modify an existing Custom Entity Type. # noqa: E501
The API will return a Bad Request if the Custom Entity Type does not exist. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_custom_entity_type_with_http_info(entity_type, update_custom_entity_type_request, async_req=True) >>> result = thread.get()
- Parameters:
entity_type (str) – The identifier for the Custom Entity Type, derived from the “entityTypeName” provided on creation. (required)
update_custom_entity_type_request (UpdateCustomEntityTypeRequest) – The payload containing the description of the Custom Entity Type. (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.
_return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc
_request_timeout – Timeout setting. Do not use - use the opts parameter instead
opts (ConfigurationOptions, optional) – Configuration options for this request
_request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
tuple(CustomEntityType, status_code(int), headers(HTTPHeaderDict))