sdk.lusid.api.packages_api.PackagesApi

class PackagesApi(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

delete_package

[EXPERIMENTAL] DeletePackage: Delete package # noqa: E501

delete_package_with_http_info

[EXPERIMENTAL] DeletePackage: Delete package # noqa: E501

get_package

[EXPERIMENTAL] GetPackage: Get Package # noqa: E501

get_package_with_http_info

[EXPERIMENTAL] GetPackage: Get Package # noqa: E501

list_packages

[EXPERIMENTAL] ListPackages: List Packages # noqa: E501

list_packages_with_http_info

[EXPERIMENTAL] ListPackages: List Packages # noqa: E501

upsert_packages

[EXPERIMENTAL] UpsertPackages: Upsert Package # noqa: E501

upsert_packages_with_http_info

[EXPERIMENTAL] UpsertPackages: Upsert Package # noqa: E501

delete_package(scope, code, async_req=None, **kwargs)[source]

[EXPERIMENTAL] DeletePackage: Delete package # noqa: E501

Delete an package. Deletion will be valid from the package’s creation datetime. This means that the package will no longer exist at any effective datetime from the asAt datetime of deletion. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.delete_package(scope, code, async_req=True)
>>> result = thread.get()
Parameters:
  • scope (str) – The package scope. (required)

  • code (str) – The package’s code. This, together with the scope uniquely identifies the package to delete. (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:

DeletedEntityResponse

delete_package_with_http_info(scope, code, **kwargs)[source]

[EXPERIMENTAL] DeletePackage: Delete package # noqa: E501

Delete an package. Deletion will be valid from the package’s creation datetime. This means that the package will no longer exist at any effective datetime from the asAt datetime of deletion. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.delete_package_with_http_info(scope, code, async_req=True)
>>> result = thread.get()
Parameters:
  • scope (str) – The package scope. (required)

  • code (str) – The package’s code. This, together with the scope uniquely identifies the package to delete. (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(DeletedEntityResponse, status_code(int), headers(HTTPHeaderDict))

get_package(scope, code, as_at=None, property_keys=None, async_req=None, **kwargs)[source]

[EXPERIMENTAL] GetPackage: Get Package # noqa: E501

Fetch a Package that matches the specified identifier # 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_package(scope, code, as_at, property_keys, async_req=True)
>>> result = thread.get()
Parameters:
  • scope (str) – The scope to which the package belongs. (required)

  • code (str) – The package’s unique identifier. (required)

  • as_at (datetime) – The asAt datetime at which to retrieve the package. Defaults to return the latest version of the package if not specified.

  • property_keys (List[str]) – A list of property keys from the “Package” domain to decorate onto the package. These take the format {domain}/{scope}/{code} e.g. “Package/system/Name”.

  • 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:

Package

get_package_with_http_info(scope, code, as_at=None, property_keys=None, **kwargs)[source]

[EXPERIMENTAL] GetPackage: Get Package # noqa: E501

Fetch a Package that matches the specified identifier # 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_package_with_http_info(scope, code, as_at, property_keys, async_req=True)
>>> result = thread.get()
Parameters:
  • scope (str) – The scope to which the package belongs. (required)

  • code (str) – The package’s unique identifier. (required)

  • as_at (datetime) – The asAt datetime at which to retrieve the package. Defaults to return the latest version of the package if not specified.

  • property_keys (List[str]) – A list of property keys from the “Package” domain to decorate onto the package. These take the format {domain}/{scope}/{code} e.g. “Package/system/Name”.

  • 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(Package, status_code(int), headers(HTTPHeaderDict))

list_packages(as_at=None, page=None, sort_by=None, limit=None, filter=None, property_keys=None, async_req=None, **kwargs)[source]

[EXPERIMENTAL] ListPackages: List Packages # noqa: E501

Fetch the last pre-AsAt date version of each package in scope (does not fetch the entire history). # 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_packages(as_at, page, sort_by, limit, filter, property_keys, async_req=True)
>>> result = thread.get()
Parameters:
  • as_at (datetime) – The asAt datetime at which to retrieve the package. Defaults to return the latest version of the package if not specified.

  • page (str) – The pagination token to use to continue listing packages from a previous call to list packages. 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.

  • sort_by (List[str]) – A list of field names or properties to sort by, each suffixed by “ ASC” or “ DESC”.

  • limit (int) – When paginating, limit the number of returned results to this many.

  • filter (str) – Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid.

  • property_keys (List[str]) – A list of property keys from the “Package” domain to decorate onto each package. These take the format {domain}/{scope}/{code} e.g. “Package/system/Name”.

  • 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:

PagedResourceListOfPackage

list_packages_with_http_info(as_at=None, page=None, sort_by=None, limit=None, filter=None, property_keys=None, **kwargs)[source]

[EXPERIMENTAL] ListPackages: List Packages # noqa: E501

Fetch the last pre-AsAt date version of each package in scope (does not fetch the entire history). # 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_packages_with_http_info(as_at, page, sort_by, limit, filter, property_keys, async_req=True)
>>> result = thread.get()
Parameters:
  • as_at (datetime) – The asAt datetime at which to retrieve the package. Defaults to return the latest version of the package if not specified.

  • page (str) – The pagination token to use to continue listing packages from a previous call to list packages. 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.

  • sort_by (List[str]) – A list of field names or properties to sort by, each suffixed by “ ASC” or “ DESC”.

  • limit (int) – When paginating, limit the number of returned results to this many.

  • filter (str) – Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid.

  • property_keys (List[str]) – A list of property keys from the “Package” domain to decorate onto each package. These take the format {domain}/{scope}/{code} e.g. “Package/system/Name”.

  • 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(PagedResourceListOfPackage, status_code(int), headers(HTTPHeaderDict))

upsert_packages(package_set_request=None, async_req=None, **kwargs)[source]

[EXPERIMENTAL] UpsertPackages: Upsert Package # noqa: E501

Upsert; update existing packages with given ids, or create new packages otherwise. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.upsert_packages(package_set_request, async_req=True)
>>> result = thread.get()
Parameters:
  • package_set_request (PackageSetRequest) – The collection of package requests.

  • 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:

ResourceListOfPackage

upsert_packages_with_http_info(package_set_request=None, **kwargs)[source]

[EXPERIMENTAL] UpsertPackages: Upsert Package # noqa: E501

Upsert; update existing packages with given ids, or create new packages otherwise. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.upsert_packages_with_http_info(package_set_request, async_req=True)
>>> result = thread.get()
Parameters:
  • package_set_request (PackageSetRequest) – The collection of package requests.

  • 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(ResourceListOfPackage, status_code(int), headers(HTTPHeaderDict))