# 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 MaxBufferSizes
#'
#' @description MaxBufferSizes Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field maxBufferSizes list( \link{AttributeBufferSize} ) [optional]
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
MaxBufferSizes <- R6::R6Class(
'MaxBufferSizes',
public = list(
`maxBufferSizes` = NULL,
initialize = function(
`maxBufferSizes`=NULL, ...
) {
local.optional.var <- list(...)
if (!is.null(`maxBufferSizes`)) {
stopifnot(is.vector(`maxBufferSizes`), length(`maxBufferSizes`) != 0)
sapply(`maxBufferSizes`, function(x) stopifnot(R6::is.R6(x)))
self$`maxBufferSizes` <- `maxBufferSizes`
}
},
toJSON = function() {
MaxBufferSizesObject <- list()
if (!is.null(self$`maxBufferSizes`)) {
MaxBufferSizesObject[['maxBufferSizes']] <-
lapply(self$`maxBufferSizes`, function(x) x$toJSON())
}
MaxBufferSizesObject
},
fromJSON = function(MaxBufferSizesJson) {
MaxBufferSizesObject <- jsonlite::fromJSON(MaxBufferSizesJson)
if (!is.null(MaxBufferSizesObject$`maxBufferSizes`)) {
self$`maxBufferSizes` <- ApiClient$new()$deserializeObj(MaxBufferSizesObject$`maxBufferSizes`, "array[AttributeBufferSize]", loadNamespace("tiledbcloud"))
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`maxBufferSizes`)) {
sprintf(
'"maxBufferSizes":
[%s]
',
paste(sapply(self$`maxBufferSizes`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",")
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(MaxBufferSizesJson) {
MaxBufferSizesObject <- jsonlite::fromJSON(MaxBufferSizesJson)
self$`maxBufferSizes` <- ApiClient$new()$deserializeObj(MaxBufferSizesObject$`maxBufferSizes`, "array[AttributeBufferSize]", loadNamespace("tiledbcloud"))
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.