R/DatumModelHostpath.r

# 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`
    }
  )
)
riteshkarvaloc/dkubeR documentation built on Feb. 25, 2021, 9:28 p.m.