# Dkube api server
#
# No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
#
# OpenAPI spec version: 2.2.1.11
#
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#' DkubeInfoRelease Class
#'
#' @field previous
#' @field current
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
DkubeInfoRelease <- R6::R6Class(
'DkubeInfoRelease',
public = list(
`previous` = NULL,
`current` = NULL,
initialize = function(`previous`, `current`){
if (!missing(`previous`)) {
stopifnot(is.character(`previous`), length(`previous`) == 1)
self$`previous` <- `previous`
}
if (!missing(`current`)) {
stopifnot(is.character(`current`), length(`current`) == 1)
self$`current` <- `current`
}
},
toJSON = function() {
DkubeInfoReleaseObject <- list()
if (!is.null(self$`previous`)) {
DkubeInfoReleaseObject[['previous']] <- self$`previous`
}
if (!is.null(self$`current`)) {
DkubeInfoReleaseObject[['current']] <- self$`current`
}
DkubeInfoReleaseObject
},
fromJSON = function(DkubeInfoReleaseJson) {
DkubeInfoReleaseObject <- jsonlite::fromJSON(DkubeInfoReleaseJson)
if (!is.null(DkubeInfoReleaseObject$`previous`)) {
self$`previous` <- DkubeInfoReleaseObject$`previous`
}
if (!is.null(DkubeInfoReleaseObject$`current`)) {
self$`current` <- DkubeInfoReleaseObject$`current`
}
},
toJSONString = function() {
sprintf(
'{
"previous": %s,
"current": %s
}',
self$`previous`,
self$`current`
)
},
fromJSONString = function(DkubeInfoReleaseJson) {
DkubeInfoReleaseObject <- jsonlite::fromJSON(DkubeInfoReleaseJson)
self$`previous` <- DkubeInfoReleaseObject$`previous`
self$`current` <- DkubeInfoReleaseObject$`current`
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.