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

create_custom_entity_type

[EARLY ACCESS] CreateCustomEntityType: Define a new Custom Entity Type.

create_custom_entity_type_with_http_info

[EARLY ACCESS] CreateCustomEntityType: Define a new Custom Entity Type.

get_custom_entity_type

[EARLY ACCESS] GetCustomEntityType: Get a Custom Entity Type.

get_custom_entity_type_with_http_info

[EARLY ACCESS] GetCustomEntityType: Get a Custom Entity Type.

list_custom_entity_types

[EARLY ACCESS] ListCustomEntityTypes: List Custom Entity Types.

list_custom_entity_types_with_http_info

[EARLY ACCESS] ListCustomEntityTypes: List Custom Entity Types.

update_custom_entity_type

[EARLY ACCESS] UpdateCustomEntityType: Modify an existing Custom Entity Type.

update_custom_entity_type_with_http_info

[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 for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

CustomEntityType

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 for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • _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 for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

CustomEntityType

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 for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • _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 for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

PagedResourceListOfCustomEntityType

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 for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • _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 for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

CustomEntityType

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 for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • _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))