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