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