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