TasksApi | R Documentation |
tiledbcloud.Tasks
An R6Class
generator object
RunSQL Run a sql query
@param namespace character
@param sql SQLParameters
@param accept.encoding character
status code : 200 | JSON results in array of objects form, if the query returns results
return type : array[object]
response headers :
X-TILEDB-CLOUD-TASK-ID | Task ID for just completed query |
status code : 204 | SQL executed successfully
response headers :
X-TILEDB-CLOUD-TASK-ID | Task ID for just completed query |
status code : 0 | error response
return type : Error
response headers :
TaskIdGet Fetch an array task
@param id character
@returnType ArrayTask
status code : 200 | Array task
return type : ArrayTask
response headers :
status code : 0 | error response
return type : Error
response headers :
TasksGet Fetch a list of all array tasks a user has access to
@param namespace character
@param created.by character
@param array character
@param start integer
@param end integer
@param page integer
@param per.page integer
@param type character
@param status character
@param search character
@param orderby character
@returnType ArrayTaskData
status code : 200 | Array of all tasks user has access too
return type : ArrayTaskData
response headers :
status code : 0 | error response
return type : Error
response headers :
apiClient
Handles the client-server communication.
new()
TasksApi$new(apiClient)
RunSQL()
TasksApi$RunSQL(namespace, sql, accept.encoding = NULL, ...)
RunSQLWithHttpInfo()
TasksApi$RunSQLWithHttpInfo(namespace, sql, accept.encoding = NULL, ...)
TaskIdGet()
TasksApi$TaskIdGet(id, ...)
TaskIdGetWithHttpInfo()
TasksApi$TaskIdGetWithHttpInfo(id, ...)
TasksGet()
TasksApi$TasksGet( namespace = NULL, created.by = NULL, array = NULL, start = NULL, end = NULL, page = NULL, per.page = NULL, type = NULL, status = NULL, search = NULL, orderby = NULL, ... )
TasksGetWithHttpInfo()
TasksApi$TasksGetWithHttpInfo( namespace = NULL, created.by = NULL, array = NULL, start = NULL, end = NULL, page = NULL, per.page = NULL, type = NULL, status = NULL, search = NULL, orderby = NULL, ... )
clone()
The objects of this class are cloneable with this method.
TasksApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run: #################### RunSQL #################### library(tiledbcloud) var.namespace <- 'namespace_example' # character | namespace to run task under is in (an organization name or user's username) var.sql <- SQLParameters$new() # SQLParameters | sql being submitted var.accept.encoding <- 'accept.encoding_example' # character | Encoding to use api.instance <- TasksApi$new() #Configure API key authorization: ApiKeyAuth api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY'; #Configure HTTP basic authorization: BasicAuth # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- api.instance$RunSQL(var.namespace, var.sql, accept.encoding=var.accept.encoding) #################### TaskIdGet #################### library(tiledbcloud) var.id <- 'id_example' # character | task id to fetch api.instance <- TasksApi$new() #Configure API key authorization: ApiKeyAuth api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY'; #Configure HTTP basic authorization: BasicAuth # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- api.instance$TaskIdGet(var.id) #################### TasksGet #################### library(tiledbcloud) var.namespace <- 'namespace_example' # character | namespace to filter var.created.by <- 'created.by_example' # character | username to filter var.array <- 'array_example' # character | name/uri of array that is url-encoded to filter var.start <- 56 # integer | start time for tasks to filter by var.end <- 56 # integer | end time for tasks to filter by var.page <- 56 # integer | pagination offset var.per.page <- 56 # integer | pagination limit var.type <- 'type_example' # character | task type, \"QUERY\", \"SQL\", \"UDF\" var.status <- 'status_example' # character | Filter to only return these statuses var.search <- 'search_example' # character | search string that will look at name, namespace or description fields var.orderby <- 'orderby_example' # character | sort by which field valid values include start_time, name api.instance <- TasksApi$new() #Configure API key authorization: ApiKeyAuth api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY'; #Configure HTTP basic authorization: BasicAuth # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- api.instance$TasksGet(namespace=var.namespace, created.by=var.created.by, array=var.array, start=var.start, end=var.end, page=var.page, per.page=var.per.page, type=var.type, status=var.status, search=var.search, orderby=var.orderby) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.