# FireCloud
#
# FireCloud API
#
# The version of the OpenAPI document: 0.1
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title MethodResponse
#'
#' @description MethodResponse Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field managers list( character )
#'
#' @field namespace character
#'
#' @field name character
#'
#' @field snapshotId integer
#'
#' @field snapshotComment character [optional]
#'
#' @field synopsis character [optional]
#'
#' @field documentation character [optional]
#'
#' @field createDate character [optional]
#'
#' @field url character [optional]
#'
#' @field payload character [optional]
#'
#' @field entityType character [optional]
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
MethodResponse <- R6::R6Class(
'MethodResponse',
public = list(
`managers` = NULL,
`namespace` = NULL,
`name` = NULL,
`snapshotId` = NULL,
`snapshotComment` = NULL,
`synopsis` = NULL,
`documentation` = NULL,
`createDate` = NULL,
`url` = NULL,
`payload` = NULL,
`entityType` = NULL,
initialize = function(
`managers`, `namespace`, `name`, `snapshotId`, `snapshotComment`='Improved spline reticulation', `synopsis`='Quickly aligns short nucleotide sequences.', `documentation`='BWA is a software package for mapping low-divergent sequences
against a large reference genome, such as the human genome.
It consists of three algorithms: BWA-backtrack, BWA-SW and BWA-MEM.
', `createDate`=NULL, `url`=NULL, `payload`='task wc {File in_file command { cat ${in_file} | wc -l } output { Int count = read_int(stdout()) }}
', `entityType`='Task', ...
) {
local.optional.var <- list(...)
if (!missing(`managers`)) {
stopifnot(is.vector(`managers`), length(`managers`) != 0)
sapply(`managers`, function(x) stopifnot(is.character(x)))
self$`managers` <- `managers`
}
if (!missing(`namespace`)) {
stopifnot(is.character(`namespace`), length(`namespace`) == 1)
self$`namespace` <- `namespace`
}
if (!missing(`name`)) {
stopifnot(is.character(`name`), length(`name`) == 1)
self$`name` <- `name`
}
if (!missing(`snapshotId`)) {
stopifnot(is.numeric(`snapshotId`), length(`snapshotId`) == 1)
self$`snapshotId` <- `snapshotId`
}
if (!is.null(`snapshotComment`)) {
stopifnot(is.character(`snapshotComment`), length(`snapshotComment`) == 1)
self$`snapshotComment` <- `snapshotComment`
}
if (!is.null(`synopsis`)) {
stopifnot(is.character(`synopsis`), length(`synopsis`) == 1)
self$`synopsis` <- `synopsis`
}
if (!is.null(`documentation`)) {
stopifnot(is.character(`documentation`), length(`documentation`) == 1)
self$`documentation` <- `documentation`
}
if (!is.null(`createDate`)) {
stopifnot(is.character(`createDate`), length(`createDate`) == 1)
self$`createDate` <- `createDate`
}
if (!is.null(`url`)) {
stopifnot(is.character(`url`), length(`url`) == 1)
self$`url` <- `url`
}
if (!is.null(`payload`)) {
stopifnot(is.character(`payload`), length(`payload`) == 1)
self$`payload` <- `payload`
}
if (!is.null(`entityType`)) {
stopifnot(is.character(`entityType`), length(`entityType`) == 1)
self$`entityType` <- `entityType`
}
},
toJSON = function() {
MethodResponseObject <- list()
if (!is.null(self$`managers`)) {
MethodResponseObject[['managers']] <-
self$`managers`
}
if (!is.null(self$`namespace`)) {
MethodResponseObject[['namespace']] <-
self$`namespace`
}
if (!is.null(self$`name`)) {
MethodResponseObject[['name']] <-
self$`name`
}
if (!is.null(self$`snapshotId`)) {
MethodResponseObject[['snapshotId']] <-
self$`snapshotId`
}
if (!is.null(self$`snapshotComment`)) {
MethodResponseObject[['snapshotComment']] <-
self$`snapshotComment`
}
if (!is.null(self$`synopsis`)) {
MethodResponseObject[['synopsis']] <-
self$`synopsis`
}
if (!is.null(self$`documentation`)) {
MethodResponseObject[['documentation']] <-
self$`documentation`
}
if (!is.null(self$`createDate`)) {
MethodResponseObject[['createDate']] <-
self$`createDate`
}
if (!is.null(self$`url`)) {
MethodResponseObject[['url']] <-
self$`url`
}
if (!is.null(self$`payload`)) {
MethodResponseObject[['payload']] <-
self$`payload`
}
if (!is.null(self$`entityType`)) {
MethodResponseObject[['entityType']] <-
self$`entityType`
}
MethodResponseObject
},
fromJSON = function(MethodResponseJson) {
MethodResponseObject <- jsonlite::fromJSON(MethodResponseJson)
if (!is.null(MethodResponseObject$`managers`)) {
self$`managers` <- ApiClient$new()$deserializeObj(MethodResponseObject$`managers`, "array[character]", loadNamespace("openapi"))
}
if (!is.null(MethodResponseObject$`namespace`)) {
self$`namespace` <- MethodResponseObject$`namespace`
}
if (!is.null(MethodResponseObject$`name`)) {
self$`name` <- MethodResponseObject$`name`
}
if (!is.null(MethodResponseObject$`snapshotId`)) {
self$`snapshotId` <- MethodResponseObject$`snapshotId`
}
if (!is.null(MethodResponseObject$`snapshotComment`)) {
self$`snapshotComment` <- MethodResponseObject$`snapshotComment`
}
if (!is.null(MethodResponseObject$`synopsis`)) {
self$`synopsis` <- MethodResponseObject$`synopsis`
}
if (!is.null(MethodResponseObject$`documentation`)) {
self$`documentation` <- MethodResponseObject$`documentation`
}
if (!is.null(MethodResponseObject$`createDate`)) {
self$`createDate` <- MethodResponseObject$`createDate`
}
if (!is.null(MethodResponseObject$`url`)) {
self$`url` <- MethodResponseObject$`url`
}
if (!is.null(MethodResponseObject$`payload`)) {
self$`payload` <- MethodResponseObject$`payload`
}
if (!is.null(MethodResponseObject$`entityType`)) {
self$`entityType` <- MethodResponseObject$`entityType`
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`managers`)) {
sprintf(
'"managers":
[%s]
',
paste(unlist(lapply(self$`managers`, function(x) paste0('"', x, '"'))), collapse=",")
)},
if (!is.null(self$`namespace`)) {
sprintf(
'"namespace":
"%s"
',
self$`namespace`
)},
if (!is.null(self$`name`)) {
sprintf(
'"name":
"%s"
',
self$`name`
)},
if (!is.null(self$`snapshotId`)) {
sprintf(
'"snapshotId":
%d
',
self$`snapshotId`
)},
if (!is.null(self$`snapshotComment`)) {
sprintf(
'"snapshotComment":
"%s"
',
self$`snapshotComment`
)},
if (!is.null(self$`synopsis`)) {
sprintf(
'"synopsis":
"%s"
',
self$`synopsis`
)},
if (!is.null(self$`documentation`)) {
sprintf(
'"documentation":
"%s"
',
self$`documentation`
)},
if (!is.null(self$`createDate`)) {
sprintf(
'"createDate":
"%s"
',
self$`createDate`
)},
if (!is.null(self$`url`)) {
sprintf(
'"url":
"%s"
',
self$`url`
)},
if (!is.null(self$`payload`)) {
sprintf(
'"payload":
"%s"
',
self$`payload`
)},
if (!is.null(self$`entityType`)) {
sprintf(
'"entityType":
"%s"
',
self$`entityType`
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(MethodResponseJson) {
MethodResponseObject <- jsonlite::fromJSON(MethodResponseJson)
self$`managers` <- ApiClient$new()$deserializeObj(MethodResponseObject$`managers`, "array[character]", loadNamespace("openapi"))
self$`namespace` <- MethodResponseObject$`namespace`
self$`name` <- MethodResponseObject$`name`
self$`snapshotId` <- MethodResponseObject$`snapshotId`
self$`snapshotComment` <- MethodResponseObject$`snapshotComment`
self$`synopsis` <- MethodResponseObject$`synopsis`
self$`documentation` <- MethodResponseObject$`documentation`
self$`createDate` <- MethodResponseObject$`createDate`
self$`url` <- MethodResponseObject$`url`
self$`payload` <- MethodResponseObject$`payload`
self$`entityType` <- MethodResponseObject$`entityType`
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.