UdfApi | R Documentation |
tiledbcloud.Udf
An R6Class
generator object
DeleteUDFInfo delete a registered UDF – this will remove all sharing and can not be undone
@param namespace character
@param name character
status code : 202 | UDF delete successfully
response headers :
status code : 0 | error response
return type : Error
response headers :
GetUDFInfo get a specific UDF in the given namespace
@param namespace character
@param name character
@returnType UDFInfo
status code : 200 | UDFInfo was retrieved successfully
return type : UDFInfo
response headers :
status code : 404 | UDF not found
response headers :
status code : 0 | error response
return type : Error
response headers :
GetUDFInfoSharingPolicies Get all sharing details of the UDF
@param namespace character
@param name character
@returnType list( UDFSharing )
status code : 200 | List of all specific sharing policies
return type : array[UDFSharing]
response headers :
status code : 404 | UDF does not exist or user does not have permissions to view array-sharing policies
response headers :
status code : 0 | error response
return type : Error
response headers :
RegisterUDFInfo register a UDF in the given namespace
@param namespace character
@param name character
@param udf UDFInfoUpdate
status code : 204 | UDF registered successfully
response headers :
status code : 0 | error response
return type : Error
response headers :
ShareUDFInfo Share a UDF with a user
@param namespace character
@param name character
@param udf.sharing UDFSharing
status code : 204 | UDF shared successfully
response headers :
status code : 404 | UDF does not exist or user does not have permissions to share UDF
response headers :
status code : 0 | error response
return type : Error
response headers :
SubmitGenericUDF submit a generic UDF in the given namespace
@param namespace character
@param udf GenericUDF
@param accept.encoding character
status code : 200 | UDF completed and the UDF-type specific result is returned
return type : data.frame
response headers :
X-TILEDB-CLOUD-TASK-ID | Task ID for just completed request |
status code : 0 | error response
return type : Error
response headers :
X-TILEDB-CLOUD-TASK-ID | Task ID for just completed request |
SubmitMultiArrayUDF submit a multi-array UDF in the given namespace
@param namespace character
@param udf MultiArrayUDF
@param accept.encoding character
status code : 200 | UDF completed and the UDF-type specific result is returned
return type : data.frame
response headers :
X-TILEDB-CLOUD-TASK-ID | Task ID for just completed request |
status code : 0 | error response
return type : Error
response headers :
X-TILEDB-CLOUD-TASK-ID | Task ID for just completed request |
SubmitUDF send a UDF to run against a specified array/URI registered to a group/project
@param namespace character
@param array character
@param udf MultiArrayUDF
@param x.payer character
@param accept.encoding character
@param v2 character
status code : 200 | UDF completed and the UDF-type specific result is returned
return type : data.frame
response headers :
X-TILEDB-CLOUD-TASK-ID | Task ID for just completed request |
status code : 0 | error response
return type : Error
response headers :
X-TILEDB-CLOUD-TASK-ID | Task ID for just completed request |
UdfNamespaceArrayEndTimestampsGet retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated
@param namespace character
@param array character
@param page integer
@param per.page integer
@returnType ArrayEndTimestampData
status code : 200 | list of timestamps in milliseconds, paginated
return type : ArrayEndTimestampData
response headers :
status code : 0 | error response
return type : Error
response headers :
UpdateUDFInfo update an existing registered UDF in the given namespace
@param namespace character
@param name character
@param udf UDFInfoUpdate
status code : 204 | UDF updated successfully
response headers :
status code : 0 | error response
return type : Error
response headers :
apiClient
Handles the client-server communication.
new()
UdfApi$new(apiClient)
DeleteUDFInfo()
UdfApi$DeleteUDFInfo(namespace, name, ...)
DeleteUDFInfoWithHttpInfo()
UdfApi$DeleteUDFInfoWithHttpInfo(namespace, name, ...)
GetUDFInfo()
UdfApi$GetUDFInfo(namespace, name, ...)
GetUDFInfoWithHttpInfo()
UdfApi$GetUDFInfoWithHttpInfo(namespace, name, ...)
GetUDFInfoSharingPolicies()
UdfApi$GetUDFInfoSharingPolicies(namespace, name, ...)
GetUDFInfoSharingPoliciesWithHttpInfo()
UdfApi$GetUDFInfoSharingPoliciesWithHttpInfo(namespace, name, ...)
RegisterUDFInfo()
UdfApi$RegisterUDFInfo(namespace, name, udf, ...)
RegisterUDFInfoWithHttpInfo()
UdfApi$RegisterUDFInfoWithHttpInfo(namespace, name, udf, ...)
ShareUDFInfo()
UdfApi$ShareUDFInfo(namespace, name, udf.sharing, ...)
ShareUDFInfoWithHttpInfo()
UdfApi$ShareUDFInfoWithHttpInfo(namespace, name, udf.sharing, ...)
SubmitGenericUDF()
UdfApi$SubmitGenericUDF(namespace, udf, accept.encoding = NULL, ...)
SubmitGenericUDFWithHttpInfo()
UdfApi$SubmitGenericUDFWithHttpInfo( namespace, udf, accept.encoding = NULL, ... )
SubmitMultiArrayUDF()
UdfApi$SubmitMultiArrayUDF(namespace, udf, accept.encoding = NULL, ...)
SubmitMultiArrayUDFWithHttpInfo()
UdfApi$SubmitMultiArrayUDFWithHttpInfo( namespace, udf, accept.encoding = NULL, ... )
SubmitUDF()
UdfApi$SubmitUDF( namespace, array, udf, x.payer = NULL, accept.encoding = NULL, v2 = NULL, ... )
SubmitUDFWithHttpInfo()
UdfApi$SubmitUDFWithHttpInfo( namespace, array, udf, x.payer = NULL, accept.encoding = NULL, v2 = NULL, ... )
UdfNamespaceArrayEndTimestampsGet()
UdfApi$UdfNamespaceArrayEndTimestampsGet( namespace, array, page = NULL, per.page = NULL, ... )
UdfNamespaceArrayEndTimestampsGetWithHttpInfo()
UdfApi$UdfNamespaceArrayEndTimestampsGetWithHttpInfo( namespace, array, page = NULL, per.page = NULL, ... )
UpdateUDFInfo()
UdfApi$UpdateUDFInfo(namespace, name, udf, ...)
UpdateUDFInfoWithHttpInfo()
UdfApi$UpdateUDFInfoWithHttpInfo(namespace, name, udf, ...)
clone()
The objects of this class are cloneable with this method.
UdfApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run:
#################### DeleteUDFInfo ####################
library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.name <- 'name_example' # character | name to register UDF under
api.instance <- UdfApi$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$DeleteUDFInfo(var.namespace, var.name)
#################### GetUDFInfo ####################
library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.name <- 'name_example' # character | name to register UDF under
api.instance <- UdfApi$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$GetUDFInfo(var.namespace, var.name)
#################### GetUDFInfoSharingPolicies ####################
library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.name <- 'name_example' # character | name of UDFInfo
api.instance <- UdfApi$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$GetUDFInfoSharingPolicies(var.namespace, var.name)
#################### RegisterUDFInfo ####################
library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.name <- 'name_example' # character | name to register UDF under
var.udf <- UDFInfoUpdate$new() # UDFInfoUpdate | UDF to register
api.instance <- UdfApi$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$RegisterUDFInfo(var.namespace, var.name, var.udf)
#################### ShareUDFInfo ####################
library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.name <- 'name_example' # character | name of UDFInfo
var.udf.sharing <- UDFSharing$new() # UDFSharing | Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all.
api.instance <- UdfApi$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$ShareUDFInfo(var.namespace, var.name, var.udf.sharing)
#################### SubmitGenericUDF ####################
library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.udf <- GenericUDF$new() # GenericUDF | UDF to run
var.accept.encoding <- 'accept.encoding_example' # character | Encoding to use
api.instance <- UdfApi$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$SubmitGenericUDF(var.namespace, var.udf, accept.encoding=var.accept.encoding)
#################### SubmitMultiArrayUDF ####################
library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.udf <- MultiArrayUDF$new() # MultiArrayUDF | UDF to run
var.accept.encoding <- 'accept.encoding_example' # character | Encoding to use
api.instance <- UdfApi$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$SubmitMultiArrayUDF(var.namespace, var.udf, accept.encoding=var.accept.encoding)
#################### SubmitUDF ####################
library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.array <- 'array_example' # character | name/uri of array that is url-encoded
var.udf <- MultiArrayUDF$new() # MultiArrayUDF | UDF to run
var.x.payer <- 'x.payer_example' # character | Name of organization or user who should be charged for this request
var.accept.encoding <- 'accept.encoding_example' # character | Encoding to use
var.v2 <- 'v2_example' # character | flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs.
api.instance <- UdfApi$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$SubmitUDF(var.namespace, var.array, var.udf, x.payer=var.x.payer, accept.encoding=var.accept.encoding, v2=var.v2)
#################### UdfNamespaceArrayEndTimestampsGet ####################
library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.array <- 'array_example' # character | name/uri of array that is url-encoded
var.page <- 56 # integer | pagination offset
var.per.page <- 56 # integer | pagination limit
api.instance <- UdfApi$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$UdfNamespaceArrayEndTimestampsGet(var.namespace, var.array, page=var.page, per.page=var.per.page)
#################### UpdateUDFInfo ####################
library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.name <- 'name_example' # character | name to register UDF under
var.udf <- UDFInfoUpdate$new() # UDFInfoUpdate | UDF to update
api.instance <- UdfApi$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$UpdateUDFInfo(var.namespace, var.name, var.udf)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.