Interface ITasksClient
Namespace: FastReport.Cloud
Assembly: FastReport.Cloud.SDK.dll
Syntax
public interface ITasksClient
Methods
CreateTask(CreateTaskBaseVM)
Create a new task
Declaration
TaskBaseVM CreateTask(CreateTaskBaseVM body = null)
Parameters
Type | Name | Description |
---|---|---|
CreateTaskBaseVM | body | task's view model. You have to specify task type by placing parameter "$t": "Vm name",
|
Returns
Type | Description |
---|---|
TaskBaseVM | Task was created |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
CreateTaskAsync(CreateTaskBaseVM, System.Threading.CancellationToken)
Create a new task
Declaration
System.Threading.Tasks.Task<TaskBaseVM> CreateTaskAsync(CreateTaskBaseVM body = null, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
CreateTaskBaseVM | body | task's view model. You have to specify task type by placing parameter "$t": "Vm name",
|
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TaskBaseVM> | Task was created |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
DeleteTask(String)
Delete a task from a storage
Declaration
void DeleteTask(string taskId)
Parameters
Type | Name | Description |
---|---|---|
System.String | taskId | deleting task id |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
DeleteTaskAsync(String, System.Threading.CancellationToken)
Delete a task from a storage
Declaration
System.Threading.Tasks.Task DeleteTaskAsync(string taskId, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | taskId | deleting task id |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Task was deleted |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
Get(String)
Get a task by a specified id
Declaration
TaskBaseVM Get(string taskId)
Parameters
Type | Name | Description |
---|---|---|
System.String | taskId | a task id |
Returns
Type | Description |
---|---|
TaskBaseVM | Task was found |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
GetAsync(String, System.Threading.CancellationToken)
Get a task by a specified id
Declaration
System.Threading.Tasks.Task<TaskBaseVM> GetAsync(string taskId, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | taskId | a task id |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TaskBaseVM> | Task was found |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
GetList(Nullable<Int32>, Nullable<Int32>, String, String)
Get tasks list
Declaration
TasksVM GetList(int? skip = null, int? take = null, string subscriptionId = null, string searchPattern = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | skip | number of tasks, that have to be skipped |
System.Nullable<System.Int32> | take | number of tasks, that have to be returned |
System.String | subscriptionId | subscription id |
System.String | searchPattern |
Returns
Type | Description |
---|---|
TasksVM | Tasks were found |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
GetListAsync(Nullable<Int32>, Nullable<Int32>, String, String, System.Threading.CancellationToken)
Get tasks list
Declaration
System.Threading.Tasks.Task<TasksVM> GetListAsync(int? skip = null, int? take = null, string subscriptionId = null, string searchPattern = null, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | skip | number of tasks, that have to be skipped |
System.Nullable<System.Int32> | take | number of tasks, that have to be returned |
System.String | subscriptionId | subscription id |
System.String | searchPattern | |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TasksVM> | Tasks were found |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
GetMyPermissions(String)
Get current user's permissions to Task
Declaration
TaskPermissionCRUDVM GetMyPermissions(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | task id |
Returns
Type | Description |
---|---|
TaskPermissionCRUDVM | got permissions successfully |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
GetMyPermissionsAsync(String, System.Threading.CancellationToken)
Get current user's permissions to Task
Declaration
System.Threading.Tasks.Task<TaskPermissionCRUDVM> GetMyPermissionsAsync(string id, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | task id |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TaskPermissionCRUDVM> | got permissions successfully |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
GetPermissions(String)
Get all Task permissions
Declaration
TaskPermissionsVM GetPermissions(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | task id |
Returns
Type | Description |
---|---|
TaskPermissionsVM | Task was found |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
GetPermissionsAsync(String, System.Threading.CancellationToken)
Get all Task permissions
Declaration
System.Threading.Tasks.Task<TaskPermissionsVM> GetPermissionsAsync(string id, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | task id |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TaskPermissionsVM> | Task was found |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
RenameTask(String, String)
Rename a task
Declaration
TaskBaseVM RenameTask(string taskId, string newName = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | taskId | renaming task id |
System.String | newName | task's new Name |
Returns
Type | Description |
---|---|
TaskBaseVM | Task was found |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
RenameTaskAsync(String, String, System.Threading.CancellationToken)
Rename a task
Declaration
System.Threading.Tasks.Task<TaskBaseVM> RenameTaskAsync(string taskId, string newName = null, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | taskId | renaming task id |
System.String | newName | task's new Name |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TaskBaseVM> | Task was found |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
RunTask(RunTaskBaseVM)
Run a task from request body
Declaration
void RunTask(RunTaskBaseVM body = null)
Parameters
Type | Name | Description |
---|---|---|
RunTaskBaseVM | body | task's view model. You have to specify task type by placing parameter "$t": "Vm name",
|
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
RunTaskAsync(RunTaskBaseVM, System.Threading.CancellationToken)
Run a task from request body
Declaration
System.Threading.Tasks.Task RunTaskAsync(RunTaskBaseVM body = null, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
RunTaskBaseVM | body | task's view model. You have to specify task type by placing parameter "$t": "Vm name",
|
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Task was executed |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
RunTaskById(String)
Run a task by id
Declaration
void RunTaskById(string taskId)
Parameters
Type | Name | Description |
---|---|---|
System.String | taskId | task id |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
RunTaskByIdAsync(String, System.Threading.CancellationToken)
Run a task by id
Declaration
System.Threading.Tasks.Task RunTaskByIdAsync(string taskId, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | taskId | task id |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Task was executed |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
UpdatePermissions(String, UpdateTaskPermissionsVM)
Update permissions
Declaration
void UpdatePermissions(string id, UpdateTaskPermissionsVM body = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | task id |
UpdateTaskPermissionsVM | body | new permissions. You have to specify VM type by placing parameter "$t": "Vm name",
|
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
UpdatePermissionsAsync(String, UpdateTaskPermissionsVM, System.Threading.CancellationToken)
Update permissions
Declaration
System.Threading.Tasks.Task UpdatePermissionsAsync(string id, UpdateTaskPermissionsVM body = null, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | task id |
UpdateTaskPermissionsVM | body | new permissions. You have to specify VM type by placing parameter "$t": "Vm name",
|
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Task was updated |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
UpdateTask(String, UpdateTaskBaseVM)
Update a task
Declaration
TaskBaseVM UpdateTask(string taskId, UpdateTaskBaseVM body = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | taskId | updating task id |
UpdateTaskBaseVM | body | task's view model. You have to specify task type by placing parameter "$t": "Vm name",
|
Returns
Type | Description |
---|---|
TaskBaseVM | Success |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
UpdateTaskAsync(String, UpdateTaskBaseVM, System.Threading.CancellationToken)
Update a task
Declaration
System.Threading.Tasks.Task<TaskBaseVM> UpdateTaskAsync(string taskId, UpdateTaskBaseVM body = null, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | taskId | updating task id |
UpdateTaskBaseVM | body | task's view model. You have to specify task type by placing parameter "$t": "Vm name",
|
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TaskBaseVM> | Success |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |