# 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 UDFFavorite
#'
#' @description UDFFavorite Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field udf_uuid character [optional]
#'
#' @field namespace character [optional]
#'
#' @field name character [optional]
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
UDFFavorite <- R6::R6Class(
'UDFFavorite',
public = list(
`udf_uuid` = NULL,
`namespace` = NULL,
`name` = NULL,
initialize = function(
`udf_uuid`=NULL, `namespace`=NULL, `name`=NULL, ...
) {
local.optional.var <- list(...)
if (!is.null(`udf_uuid`)) {
stopifnot(is.character(`udf_uuid`), length(`udf_uuid`) == 1)
self$`udf_uuid` <- `udf_uuid`
}
if (!is.null(`namespace`)) {
stopifnot(is.character(`namespace`), length(`namespace`) == 1)
self$`namespace` <- `namespace`
}
if (!is.null(`name`)) {
stopifnot(is.character(`name`), length(`name`) == 1)
self$`name` <- `name`
}
},
toJSON = function() {
UDFFavoriteObject <- list()
if (!is.null(self$`udf_uuid`)) {
UDFFavoriteObject[['udf_uuid']] <-
self$`udf_uuid`
}
if (!is.null(self$`namespace`)) {
UDFFavoriteObject[['namespace']] <-
self$`namespace`
}
if (!is.null(self$`name`)) {
UDFFavoriteObject[['name']] <-
self$`name`
}
UDFFavoriteObject
},
fromJSON = function(UDFFavoriteJson) {
UDFFavoriteObject <- jsonlite::fromJSON(UDFFavoriteJson)
if (!is.null(UDFFavoriteObject$`udf_uuid`)) {
self$`udf_uuid` <- UDFFavoriteObject$`udf_uuid`
}
if (!is.null(UDFFavoriteObject$`namespace`)) {
self$`namespace` <- UDFFavoriteObject$`namespace`
}
if (!is.null(UDFFavoriteObject$`name`)) {
self$`name` <- UDFFavoriteObject$`name`
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`udf_uuid`)) {
sprintf(
'"udf_uuid":
"%s"
',
self$`udf_uuid`
)},
if (!is.null(self$`namespace`)) {
sprintf(
'"namespace":
"%s"
',
self$`namespace`
)},
if (!is.null(self$`name`)) {
sprintf(
'"name":
"%s"
',
self$`name`
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(UDFFavoriteJson) {
UDFFavoriteObject <- jsonlite::fromJSON(UDFFavoriteJson)
self$`udf_uuid` <- UDFFavoriteObject$`udf_uuid`
self$`namespace` <- UDFFavoriteObject$`namespace`
self$`name` <- UDFFavoriteObject$`name`
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.