# 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
#' InlineResponse200 Class
#'
#' @field response
#' @field components
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
InlineResponse200 <- R6::R6Class(
'InlineResponse200',
public = list(
`response` = NULL,
`components` = NULL,
initialize = function(`response`, `components`){
if (!missing(`response`)) {
stopifnot(R6::is.R6(`response`))
self$`response` <- `response`
}
if (!missing(`components`)) {
stopifnot(R6::is.R6(`components`))
self$`components` <- `components`
}
},
toJSON = function() {
InlineResponse200Object <- list()
if (!is.null(self$`response`)) {
InlineResponse200Object[['response']] <- self$`response`$toJSON()
}
if (!is.null(self$`components`)) {
InlineResponse200Object[['components']] <- self$`components`$toJSON()
}
InlineResponse200Object
},
fromJSON = function(InlineResponse200Json) {
InlineResponse200Object <- jsonlite::fromJSON(InlineResponse200Json)
if (!is.null(InlineResponse200Object$`response`)) {
responseObject <- ApiResponse$new()
responseObject$fromJSON(jsonlite::toJSON(InlineResponse200Object$response, auto_unbox = TRUE))
self$`response` <- responseObject
}
if (!is.null(InlineResponse200Object$`components`)) {
componentsObject <- ClusterStatus$new()
componentsObject$fromJSON(jsonlite::toJSON(InlineResponse200Object$components, auto_unbox = TRUE))
self$`components` <- componentsObject
}
},
toJSONString = function() {
sprintf(
'{
"response": %s,
"components": %s
}',
self$`response`$toJSON(),
self$`components`$toJSON()
)
},
fromJSONString = function(InlineResponse200Json) {
InlineResponse200Object <- jsonlite::fromJSON(InlineResponse200Json)
ApiResponseObject <- ApiResponse$new()
self$`response` <- ApiResponseObject$fromJSON(jsonlite::toJSON(InlineResponse200Object$response, auto_unbox = TRUE))
ClusterStatusObject <- ClusterStatus$new()
self$`components` <- ClusterStatusObject$fromJSON(jsonlite::toJSON(InlineResponse200Object$components, auto_unbox = TRUE))
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.