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