LUSID C# SDK
Public Member Functions | List of all members
Lusid.Sdk.Api.IAllocationsApiAsync Interface Reference

Represents a collection of functions to interact with the API endpoints More...

Inheritance diagram for Lusid.Sdk.Api.IAllocationsApiAsync:
Inheritance graph
[legend]

Public Member Functions

System.Threading.Tasks.Task< DeletedEntityResponseDeleteAllocationAsync (string scope, string code, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 [EARLY ACCESS] Delete allocation More...
 
System.Threading.Tasks.Task< ApiResponse< DeletedEntityResponse > > DeleteAllocationWithHttpInfoAsync (string scope, string code, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 [EARLY ACCESS] Delete allocation More...
 
System.Threading.Tasks.Task< AllocationGetAllocationAsync (string scope, string code, DateTimeOffset? asAt=default(DateTimeOffset?), List< string > propertyKeys=default(List< string >), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 [EARLY ACCESS] Get Allocation More...
 
System.Threading.Tasks.Task< ApiResponse< Allocation > > GetAllocationWithHttpInfoAsync (string scope, string code, DateTimeOffset? asAt=default(DateTimeOffset?), List< string > propertyKeys=default(List< string >), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 [EARLY ACCESS] Get Allocation More...
 
System.Threading.Tasks.Task< PagedResourceListOfAllocationListAllocationsAsync (DateTimeOffset? asAt=default(DateTimeOffset?), string page=default(string), List< string > sortBy=default(List< string >), int? start=default(int?), int? limit=default(int?), string filter=default(string), List< string > propertyKeys=default(List< string >), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 [EARLY ACCESS] List Allocations More...
 
System.Threading.Tasks.Task< ApiResponse< PagedResourceListOfAllocation > > ListAllocationsWithHttpInfoAsync (DateTimeOffset? asAt=default(DateTimeOffset?), string page=default(string), List< string > sortBy=default(List< string >), int? start=default(int?), int? limit=default(int?), string filter=default(string), List< string > propertyKeys=default(List< string >), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 [EARLY ACCESS] List Allocations More...
 
System.Threading.Tasks.Task< ResourceListOfAllocationUpsertAllocationsAsync (AllocationSetRequest allocationSetRequest=default(AllocationSetRequest), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 [EARLY ACCESS] Upsert Allocations More...
 
System.Threading.Tasks.Task< ApiResponse< ResourceListOfAllocation > > UpsertAllocationsWithHttpInfoAsync (AllocationSetRequest allocationSetRequest=default(AllocationSetRequest), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 [EARLY ACCESS] Upsert Allocations More...
 
- Public Member Functions inherited from Lusid.Sdk.Client.IApiAccessor
String GetBasePath ()
 Gets the base path of the API client. More...
 

Additional Inherited Members

- Properties inherited from Lusid.Sdk.Client.IApiAccessor
IReadableConfiguration Configuration [get, set]
 Gets or sets the configuration object More...
 
ExceptionFactory ExceptionFactory [get, set]
 Provides a factory method hook for the creation of exceptions. More...
 

Detailed Description

Represents a collection of functions to interact with the API endpoints

Member Function Documentation

◆ DeleteAllocationAsync()

System.Threading.Tasks.Task<DeletedEntityResponse> Lusid.Sdk.Api.IAllocationsApiAsync.DeleteAllocationAsync ( string  scope,
string  code,
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

[EARLY ACCESS] Delete allocation

Delete an allocation. Deletion will be valid from the allocation&#39;s creation datetime. This means that the allocation will no longer exist at any effective datetime from the asAt datetime of deletion.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe allocation scope.
codeThe allocation&#39;s code. This, together with the scope uniquely identifies the allocation to delete.
cancellationTokenCancellation Token to cancel the request.
Returns
Task of DeletedEntityResponse

Implemented in Lusid.Sdk.Api.AllocationsApi.

◆ DeleteAllocationWithHttpInfoAsync()

System.Threading.Tasks.Task<ApiResponse<DeletedEntityResponse> > Lusid.Sdk.Api.IAllocationsApiAsync.DeleteAllocationWithHttpInfoAsync ( string  scope,
string  code,
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

[EARLY ACCESS] Delete allocation

Delete an allocation. Deletion will be valid from the allocation&#39;s creation datetime. This means that the allocation will no longer exist at any effective datetime from the asAt datetime of deletion.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe allocation scope.
codeThe allocation&#39;s code. This, together with the scope uniquely identifies the allocation to delete.
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ApiResponse (DeletedEntityResponse)

Implemented in Lusid.Sdk.Api.AllocationsApi.

◆ GetAllocationAsync()

System.Threading.Tasks.Task<Allocation> Lusid.Sdk.Api.IAllocationsApiAsync.GetAllocationAsync ( string  scope,
string  code,
DateTimeOffset?  asAt = default(DateTimeOffset?),
List< string >  propertyKeys = default(List< string >),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

[EARLY ACCESS] Get Allocation

Fetch an Allocation matching the provided identifier

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope to which the allocation belongs.
codeThe allocation&#39;s unique identifier.
asAtThe asAt datetime at which to retrieve the allocation. Defaults to return the latest version of the allocation if not specified. (optional)
propertyKeysA list of property keys from the &quot;Allocations&quot; domain to decorate onto the allocation. These take the format {domain}/{scope}/{code} e.g. &quot;Allocations/system/Name&quot;. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of Allocation

Implemented in Lusid.Sdk.Api.AllocationsApi.

◆ GetAllocationWithHttpInfoAsync()

System.Threading.Tasks.Task<ApiResponse<Allocation> > Lusid.Sdk.Api.IAllocationsApiAsync.GetAllocationWithHttpInfoAsync ( string  scope,
string  code,
DateTimeOffset?  asAt = default(DateTimeOffset?),
List< string >  propertyKeys = default(List< string >),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

[EARLY ACCESS] Get Allocation

Fetch an Allocation matching the provided identifier

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope to which the allocation belongs.
codeThe allocation&#39;s unique identifier.
asAtThe asAt datetime at which to retrieve the allocation. Defaults to return the latest version of the allocation if not specified. (optional)
propertyKeysA list of property keys from the &quot;Allocations&quot; domain to decorate onto the allocation. These take the format {domain}/{scope}/{code} e.g. &quot;Allocations/system/Name&quot;. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ApiResponse (Allocation)

Implemented in Lusid.Sdk.Api.AllocationsApi.

◆ ListAllocationsAsync()

System.Threading.Tasks.Task<PagedResourceListOfAllocation> Lusid.Sdk.Api.IAllocationsApiAsync.ListAllocationsAsync ( DateTimeOffset?  asAt = default(DateTimeOffset?),
string  page = default(string),
List< string >  sortBy = default(List< string >),
int?  start = default(int?),
int?  limit = default(int?),
string  filter = default(string),
List< string >  propertyKeys = default(List< string >),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

[EARLY ACCESS] List Allocations

Fetch the last pre-AsAt date version of each allocation in scope (does not fetch the entire history).

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
asAtThe asAt datetime at which to retrieve the allocation. Defaults to return the latest version of the allocation if not specified. (optional)
pageThe pagination token to use to continue listing allocations from a previous call to list allocations. 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. Also, if set, a start value cannot be provided. (optional)
sortByAllocation the results by these fields. Use use the &#39;-&#39; sign to denote descending allocation e.g. -MyFieldName. (optional)
startWhen paginating, skip this number of results. (optional)
limitWhen paginating, limit the number of returned results to this many. (optional)
filterExpression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid. (optional, default to "")
propertyKeysA list of property keys from the &quot;Allocations&quot; domain to decorate onto each allocation. These take the format {domain}/{scope}/{code} e.g. &quot;Allocations/system/Name&quot;. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of PagedResourceListOfAllocation

Implemented in Lusid.Sdk.Api.AllocationsApi.

◆ ListAllocationsWithHttpInfoAsync()

System.Threading.Tasks.Task<ApiResponse<PagedResourceListOfAllocation> > Lusid.Sdk.Api.IAllocationsApiAsync.ListAllocationsWithHttpInfoAsync ( DateTimeOffset?  asAt = default(DateTimeOffset?),
string  page = default(string),
List< string >  sortBy = default(List< string >),
int?  start = default(int?),
int?  limit = default(int?),
string  filter = default(string),
List< string >  propertyKeys = default(List< string >),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

[EARLY ACCESS] List Allocations

Fetch the last pre-AsAt date version of each allocation in scope (does not fetch the entire history).

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
asAtThe asAt datetime at which to retrieve the allocation. Defaults to return the latest version of the allocation if not specified. (optional)
pageThe pagination token to use to continue listing allocations from a previous call to list allocations. 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. Also, if set, a start value cannot be provided. (optional)
sortByAllocation the results by these fields. Use use the &#39;-&#39; sign to denote descending allocation e.g. -MyFieldName. (optional)
startWhen paginating, skip this number of results. (optional)
limitWhen paginating, limit the number of returned results to this many. (optional)
filterExpression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid. (optional, default to "")
propertyKeysA list of property keys from the &quot;Allocations&quot; domain to decorate onto each allocation. These take the format {domain}/{scope}/{code} e.g. &quot;Allocations/system/Name&quot;. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ApiResponse (PagedResourceListOfAllocation)

Implemented in Lusid.Sdk.Api.AllocationsApi.

◆ UpsertAllocationsAsync()

System.Threading.Tasks.Task<ResourceListOfAllocation> Lusid.Sdk.Api.IAllocationsApiAsync.UpsertAllocationsAsync ( AllocationSetRequest  allocationSetRequest = default(AllocationSetRequest),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

[EARLY ACCESS] Upsert Allocations

Upsert; update existing allocations with given ids, or create new allocations otherwise.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
allocationSetRequestThe collection of allocation requests. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ResourceListOfAllocation

Implemented in Lusid.Sdk.Api.AllocationsApi.

◆ UpsertAllocationsWithHttpInfoAsync()

System.Threading.Tasks.Task<ApiResponse<ResourceListOfAllocation> > Lusid.Sdk.Api.IAllocationsApiAsync.UpsertAllocationsWithHttpInfoAsync ( AllocationSetRequest  allocationSetRequest = default(AllocationSetRequest),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

[EARLY ACCESS] Upsert Allocations

Upsert; update existing allocations with given ids, or create new allocations otherwise.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
allocationSetRequestThe collection of allocation requests. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ApiResponse (ResourceListOfAllocation)

Implemented in Lusid.Sdk.Api.AllocationsApi.


The documentation for this interface was generated from the following file: