sdk.lusid.api.subscriptions_api.SubscriptionsApi
- class SubscriptionsApi(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] DeleteSubscription: Delete a Subscription, assuming that it is present.
[EARLY ACCESS] DeleteSubscription: Delete a Subscription, assuming that it is present.
[EARLY ACCESS] GetSubscription: Get Subscription # noqa: E501
[EARLY ACCESS] GetSubscription: Get Subscription # noqa: E501
[EARLY ACCESS] ListSubscriptions: List the set of Subscription definitions # noqa: E501
[EARLY ACCESS] ListSubscriptions: List the set of Subscription definitions # noqa: E501
[EARLY ACCESS] UpsertSubscription: Upsert a Subscription.
[EARLY ACCESS] UpsertSubscription: Upsert a Subscription.
- delete_subscription(scope, code, async_req=None, **kwargs)[source]
[EARLY ACCESS] DeleteSubscription: Delete a Subscription, assuming that it is present. # noqa: E501
Delete the specified Subscription definition from a single scope. The response will return either detail of the deleted item, or an explanation (failure) as to why this did not succeed. # 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_subscription(scope, code, async_req=True) >>> result = thread.get()
- Parameters:
scope (str) – The scope of the Subscription to delete. (required)
code (str) – The Subscription to delete. (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:
- delete_subscription_with_http_info(scope, code, **kwargs)[source]
[EARLY ACCESS] DeleteSubscription: Delete a Subscription, assuming that it is present. # noqa: E501
Delete the specified Subscription definition from a single scope. The response will return either detail of the deleted item, or an explanation (failure) as to why this did not succeed. # 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_subscription_with_http_info(scope, code, async_req=True) >>> result = thread.get()
- Parameters:
scope (str) – The scope of the Subscription to delete. (required)
code (str) – The Subscription 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. 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(AnnulSingleStructuredDataResponse, status_code(int), headers(HTTPHeaderDict))
- get_subscription(scope, code, as_at=None, async_req=None, **kwargs)[source]
[EARLY ACCESS] GetSubscription: Get Subscription # noqa: E501
Get a Subscription definition from a single scope. The response will return either the subscription that has been stored, or a failure explaining why the request was unsuccessful. # 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_subscription(scope, code, as_at, async_req=True) >>> result = thread.get()
- Parameters:
scope (str) – The scope of the Subscription to retrieve. (required)
code (str) – The code of the Subscription to retrieve. (required)
as_at (datetime) – The asAt datetime at which to retrieve the Subscription. Defaults to return the latest version if not specified.
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_subscription_with_http_info(scope, code, as_at=None, **kwargs)[source]
[EARLY ACCESS] GetSubscription: Get Subscription # noqa: E501
Get a Subscription definition from a single scope. The response will return either the subscription that has been stored, or a failure explaining why the request was unsuccessful. # 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_subscription_with_http_info(scope, code, as_at, async_req=True) >>> result = thread.get()
- Parameters:
scope (str) – The scope of the Subscription to retrieve. (required)
code (str) – The code of the Subscription to retrieve. (required)
as_at (datetime) – The asAt datetime at which to retrieve the Subscription. Defaults to return the latest version if not specified.
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(GetSubscriptionResponse, status_code(int), headers(HTTPHeaderDict))
- list_subscriptions(scope, as_at=None, filter=None, limit=None, page=None, async_req=None, **kwargs)[source]
[EARLY ACCESS] ListSubscriptions: List the set of Subscription definitions # noqa: E501
List the set of subscription definitions at the specified date/time and scope. # 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_subscriptions(scope, as_at, filter, limit, page, async_req=True) >>> result = thread.get()
- Parameters:
scope (str) – The scope to list subscriptions for. (required)
as_at (datetime) – The asAt datetime at which to list the subscriptions. Defaults to latest if not specified.
filter (str) – Expression to filter the result set.
limit (int) – Maximum number of results to return. Defaults to 100.
page (str) – Pagination token from a previous result to fetch the next page.
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_subscriptions_with_http_info(scope, as_at=None, filter=None, limit=None, page=None, **kwargs)[source]
[EARLY ACCESS] ListSubscriptions: List the set of Subscription definitions # noqa: E501
List the set of subscription definitions at the specified date/time and scope. # 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_subscriptions_with_http_info(scope, as_at, filter, limit, page, async_req=True) >>> result = thread.get()
- Parameters:
scope (str) – The scope to list subscriptions for. (required)
as_at (datetime) – The asAt datetime at which to list the subscriptions. Defaults to latest if not specified.
filter (str) – Expression to filter the result set.
limit (int) – Maximum number of results to return. Defaults to 100.
page (str) – Pagination token from a previous result to fetch the next page.
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(PagedResourceListOfGetSubscriptionResponse, status_code(int), headers(HTTPHeaderDict))
- upsert_subscription(upsert_subscription_request, async_req=None, **kwargs)[source]
[EARLY ACCESS] UpsertSubscription: Upsert a Subscription. This creates or updates the subscription definition in LUSID. # noqa: E501
Update or insert one Subscription definition. An item will be updated if it already exists and inserted if it does not. The referenced portfolio (and timeline, when supplied) must exist and be readable by the caller. The response will return the successfully updated or inserted subscription or failure message if unsuccessful. # 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_subscription(upsert_subscription_request, async_req=True) >>> result = thread.get()
- Parameters:
upsert_subscription_request (UpsertSubscriptionRequest) – The Subscription to update or insert (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:
- upsert_subscription_with_http_info(upsert_subscription_request, **kwargs)[source]
[EARLY ACCESS] UpsertSubscription: Upsert a Subscription. This creates or updates the subscription definition in LUSID. # noqa: E501
Update or insert one Subscription definition. An item will be updated if it already exists and inserted if it does not. The referenced portfolio (and timeline, when supplied) must exist and be readable by the caller. The response will return the successfully updated or inserted subscription or failure message if unsuccessful. # 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_subscription_with_http_info(upsert_subscription_request, async_req=True) >>> result = thread.get()
- Parameters:
upsert_subscription_request (UpsertSubscriptionRequest) – The Subscription to update or insert (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(UpsertSingleStructuredDataResponse, status_code(int), headers(HTTPHeaderDict))