# TileDB Storage Platform API
#
# TileDB Storage Platform REST API
#
# The version of the OpenAPI document: 2.2.19
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title TileDBConfig
#'
#' @description TileDBConfig Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field configs named list( character ) [optional]
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
TileDBConfig <- R6::R6Class(
'TileDBConfig',
public = list(
`configs` = NULL,
initialize = function(
`configs`=NULL, ...
) {
local.optional.var <- list(...)
if (!is.null(`configs`)) {
stopifnot(is.vector(`configs`), length(`configs`) != 0)
sapply(`configs`, function(x) stopifnot(is.character(x)))
self$`configs` <- `configs`
}
},
toJSON = function() {
TileDBConfigObject <- list()
if (!is.null(self$`configs`)) {
TileDBConfigObject[['configs']] <-
self$`configs`
}
TileDBConfigObject
},
fromJSON = function(TileDBConfigJson) {
TileDBConfigObject <- jsonlite::fromJSON(TileDBConfigJson)
if (!is.null(TileDBConfigObject$`configs`)) {
self$`configs` <- ApiClient$new()$deserializeObj(TileDBConfigObject$`configs`, "map(character)", loadNamespace("tiledbcloud"))
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`configs`)) {
sprintf(
'"configs":
"%s"
',
jsonlite::toJSON(lapply(self$`configs`, function(x){ x }), auto_unbox = TRUE, digits=NA)
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(TileDBConfigJson) {
TileDBConfigObject <- jsonlite::fromJSON(TileDBConfigJson)
self$`configs` <- ApiClient$new()$deserializeObj(TileDBConfigObject$`configs`, "map(character)", loadNamespace("tiledbcloud"))
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.