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