NotebookApi | R Documentation |
tiledbcloud.Notebook
An R6Class
generator object
GetNotebookServerStatus Get status of the notebook server
@param namespace character
@returnType NotebookStatus
status code : 200 | status of running notebook
return type : NotebookStatus
response headers :
status code : 202 | Notebook server is pending
response headers :
status code : 402 | Payment required
return type : Error
response headers :
status code : 404 | Notebook is not running
response headers :
status code : 0 | error response
return type : Error
response headers :
ShutdownNotebookServer Shutdown a notebook server
@param namespace character
status code : 204 | Notebook shutdown successfully
response headers :
status code : 404 | Notebook is not running
response headers :
status code : 0 | error response
return type : Error
response headers :
UpdateNotebookName update name on a notebok, moving related S3 object to new location
@param namespace character
@param array character
@param notebook.metadata ArrayInfoUpdate
status code : 204 | notebook name updated successfully
response headers :
status code : 0 | error response
return type : Error
response headers :
apiClient
Handles the client-server communication.
new()
NotebookApi$new(apiClient)
GetNotebookServerStatus()
NotebookApi$GetNotebookServerStatus(namespace, ...)
GetNotebookServerStatusWithHttpInfo()
NotebookApi$GetNotebookServerStatusWithHttpInfo(namespace, ...)
ShutdownNotebookServer()
NotebookApi$ShutdownNotebookServer(namespace, ...)
ShutdownNotebookServerWithHttpInfo()
NotebookApi$ShutdownNotebookServerWithHttpInfo(namespace, ...)
UpdateNotebookName()
NotebookApi$UpdateNotebookName(namespace, array, notebook.metadata, ...)
UpdateNotebookNameWithHttpInfo()
NotebookApi$UpdateNotebookNameWithHttpInfo( namespace, array, notebook.metadata, ... )
clone()
The objects of this class are cloneable with this method.
NotebookApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run:
#################### GetNotebookServerStatus ####################
library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace notebook is in (an organization name or user's username)
api.instance <- NotebookApi$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$GetNotebookServerStatus(var.namespace)
#################### ShutdownNotebookServer ####################
library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace notebook is in (an organization name or user's username)
api.instance <- NotebookApi$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$ShutdownNotebookServer(var.namespace)
#################### UpdateNotebookName ####################
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 notebook (array) that is url-encoded
var.notebook.metadata <- ArrayInfoUpdate$new() # ArrayInfoUpdate | notebook (array) metadata to update
api.instance <- NotebookApi$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$UpdateNotebookName(var.namespace, var.array, var.notebook.metadata)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.