# 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
#' DatumModelHostpath Class
#'
#' @field path
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
DatumModelHostpath <- R6::R6Class(
'DatumModelHostpath',
public = list(
`path` = NULL,
initialize = function(`path`){
if (!missing(`path`)) {
stopifnot(is.character(`path`), length(`path`) == 1)
self$`path` <- `path`
}
},
toJSON = function() {
DatumModelHostpathObject <- list()
if (!is.null(self$`path`)) {
DatumModelHostpathObject[['path']] <- self$`path`
}
DatumModelHostpathObject
},
fromJSON = function(DatumModelHostpathJson) {
DatumModelHostpathObject <- jsonlite::fromJSON(DatumModelHostpathJson)
if (!is.null(DatumModelHostpathObject$`path`)) {
self$`path` <- DatumModelHostpathObject$`path`
}
},
toJSONString = function() {
sprintf(
'{
"path": %s
}',
self$`path`
)
},
fromJSONString = function(DatumModelHostpathJson) {
DatumModelHostpathObject <- jsonlite::fromJSON(DatumModelHostpathJson)
self$`path` <- DatumModelHostpathObject$`path`
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.