# FireCloud
#
# FireCloud API
#
# The version of the OpenAPI document: 0.1
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title PFBStatusResponse
#'
#' @description PFBStatusResponse Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field jobId character
#'
#' @field status character
#'
#' @field message character [optional]
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
PFBStatusResponse <- R6::R6Class(
'PFBStatusResponse',
public = list(
`jobId` = NULL,
`status` = NULL,
`message` = NULL,
initialize = function(
`jobId`, `status`, `message`=NULL, ...
) {
local.optional.var <- list(...)
if (!missing(`jobId`)) {
stopifnot(is.character(`jobId`), length(`jobId`) == 1)
self$`jobId` <- `jobId`
}
if (!missing(`status`)) {
stopifnot(is.character(`status`), length(`status`) == 1)
self$`status` <- `status`
}
if (!is.null(`message`)) {
stopifnot(is.character(`message`), length(`message`) == 1)
self$`message` <- `message`
}
},
toJSON = function() {
PFBStatusResponseObject <- list()
if (!is.null(self$`jobId`)) {
PFBStatusResponseObject[['jobId']] <-
self$`jobId`
}
if (!is.null(self$`status`)) {
PFBStatusResponseObject[['status']] <-
self$`status`
}
if (!is.null(self$`message`)) {
PFBStatusResponseObject[['message']] <-
self$`message`
}
PFBStatusResponseObject
},
fromJSON = function(PFBStatusResponseJson) {
PFBStatusResponseObject <- jsonlite::fromJSON(PFBStatusResponseJson)
if (!is.null(PFBStatusResponseObject$`jobId`)) {
self$`jobId` <- PFBStatusResponseObject$`jobId`
}
if (!is.null(PFBStatusResponseObject$`status`)) {
self$`status` <- PFBStatusResponseObject$`status`
}
if (!is.null(PFBStatusResponseObject$`message`)) {
self$`message` <- PFBStatusResponseObject$`message`
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`jobId`)) {
sprintf(
'"jobId":
"%s"
',
self$`jobId`
)},
if (!is.null(self$`status`)) {
sprintf(
'"status":
"%s"
',
self$`status`
)},
if (!is.null(self$`message`)) {
sprintf(
'"message":
"%s"
',
self$`message`
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(PFBStatusResponseJson) {
PFBStatusResponseObject <- jsonlite::fromJSON(PFBStatusResponseJson)
self$`jobId` <- PFBStatusResponseObject$`jobId`
self$`status` <- PFBStatusResponseObject$`status`
self$`message` <- PFBStatusResponseObject$`message`
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.