R/storage_profile.R

#' StorageProfile
#'
#' @export
#' @format \code{\link{R6Class}} object, super class \code{\link{Profile}}.
#' @field name of type String inherited from super class \code{\link{Profile}}.
#' @field size of type int.
StorageProfile <- R6::R6Class("StorageProfile", inherit = Profile, public = list(size = NULL,
    initialize = function(json = NULL) {
        super$initialize(json = json)
    }, init = function() {
        super$init()
        self$size = 0
    }, initJson = function(json) {
        super$initJson(json)
        self$size = json$size
    }, toTson = function() {
        m = super$toTson()
        m$kind = tson.scalar("StorageProfile")
        m$size = tson.int(self$size)
        return(m)
    }))
tercen/teRcenApi documentation built on Feb. 8, 2024, 5:59 p.m.