forked from loafle/openapi-generator-original
[R] override print
, lock classes (#13300)
* override print, add lock * add print, lock class to anyof/oneof
This commit is contained in:
parent
0d68f29d71
commit
a582c38aa1
@ -152,5 +152,25 @@
|
||||
jsoncontent <- paste(jsoncontent, collapse = ",")
|
||||
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = "")))
|
||||
}
|
||||
)
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
{{classname}}$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
{{classname}}$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
{{classname}}$lock()
|
||||
|
||||
|
@ -479,5 +479,24 @@
|
||||
{{/allVars}}
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
{{classname}}$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
{{classname}}$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
{{classname}}$lock()
|
||||
|
@ -167,5 +167,24 @@
|
||||
jsoncontent <- paste(jsoncontent, collapse = ",")
|
||||
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = "")))
|
||||
}
|
||||
)
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
{{classname}}$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
{{classname}}$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
{{classname}}$lock()
|
||||
|
@ -229,6 +229,25 @@ AllofTagApiResponse <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
AllofTagApiResponse$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
AllofTagApiResponse$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
AllofTagApiResponse$lock()
|
||||
|
||||
|
@ -176,6 +176,25 @@ Animal <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Animal$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Animal$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Animal$lock()
|
||||
|
||||
|
@ -157,5 +157,26 @@ AnyOfPig <- R6::R6Class(
|
||||
jsoncontent <- paste(jsoncontent, collapse = ",")
|
||||
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = "")))
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
AnyOfPig$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
AnyOfPig$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
AnyOfPig$lock()
|
||||
|
||||
|
||||
|
@ -175,5 +175,25 @@ AnyOfPrimitiveTypeTest <- R6::R6Class(
|
||||
jsoncontent <- paste(jsoncontent, collapse = ",")
|
||||
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = "")))
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
AnyOfPrimitiveTypeTest$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
AnyOfPrimitiveTypeTest$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
AnyOfPrimitiveTypeTest$lock()
|
||||
|
||||
|
@ -192,6 +192,25 @@ BasquePig <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
BasquePig$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
BasquePig$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
BasquePig$lock()
|
||||
|
||||
|
@ -200,6 +200,25 @@ Cat <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Cat$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Cat$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Cat$lock()
|
||||
|
||||
|
@ -137,6 +137,25 @@ CatAllOf <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
CatAllOf$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
CatAllOf$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
CatAllOf$lock()
|
||||
|
||||
|
@ -168,6 +168,25 @@ Category <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Category$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Category$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Category$lock()
|
||||
|
||||
|
@ -192,6 +192,25 @@ DanishPig <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
DanishPig$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
DanishPig$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
DanishPig$lock()
|
||||
|
||||
|
@ -200,6 +200,25 @@ Dog <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Dog$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Dog$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Dog$lock()
|
||||
|
||||
|
@ -137,6 +137,25 @@ DogAllOf <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
DogAllOf$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
DogAllOf$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
DogAllOf$lock()
|
||||
|
||||
|
@ -183,6 +183,25 @@ ModelApiResponse <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
ModelApiResponse$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
ModelApiResponse$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
ModelApiResponse$lock()
|
||||
|
||||
|
@ -162,6 +162,25 @@ NestedOneOf <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
NestedOneOf$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
NestedOneOf$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
NestedOneOf$lock()
|
||||
|
||||
|
@ -175,5 +175,25 @@ OneOfPrimitiveTypeTest <- R6::R6Class(
|
||||
jsoncontent <- paste(jsoncontent, collapse = ",")
|
||||
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = "")))
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
OneOfPrimitiveTypeTest$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
OneOfPrimitiveTypeTest$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
OneOfPrimitiveTypeTest$lock()
|
||||
|
||||
|
@ -252,6 +252,25 @@ Order <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Order$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Order$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Order$lock()
|
||||
|
||||
|
@ -289,6 +289,25 @@ Pet <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Pet$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Pet$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Pet$lock()
|
||||
|
||||
|
@ -173,5 +173,25 @@ Pig <- R6::R6Class(
|
||||
jsoncontent <- paste(jsoncontent, collapse = ",")
|
||||
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = "")))
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Pig$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Pig$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Pig$lock()
|
||||
|
||||
|
@ -252,6 +252,25 @@ Special <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Special$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Special$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Special$lock()
|
||||
|
||||
|
@ -160,6 +160,25 @@ Tag <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Tag$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Tag$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Tag$lock()
|
||||
|
||||
|
@ -161,6 +161,25 @@ UpdatePetRequest <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
UpdatePetRequest$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
UpdatePetRequest$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
UpdatePetRequest$lock()
|
||||
|
||||
|
@ -298,6 +298,25 @@ User <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
User$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
User$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
User$lock()
|
||||
|
||||
|
@ -19,7 +19,9 @@ cat(api_wrapper$pet_api$api_client$password)
|
||||
print("DONE")
|
||||
|
||||
var_pet <- Pet$new("name_example", list("photoUrls_example"), 56, Category$new(56, "name_example"), list(Tag$new(56, "name_example")), "available") # Pet | Pet object that needs to be added to the store
|
||||
print(var_pet)
|
||||
|
||||
print("DONE print")
|
||||
#Add a new pet to the store
|
||||
api_instance <- PetApi$new()
|
||||
# Configure OAuth2 access token for authorization: petstore_auth
|
||||
|
@ -21,10 +21,11 @@ pet_api$api_client$username <- "username123"
|
||||
pet_api$api_client$password <- "password123"
|
||||
result <- pet_api$add_pet(pet)
|
||||
|
||||
test_that("Test toJSON toJSONString fromJSON fromJSONString", {
|
||||
test_that("Test toJSON toJSONString fromJSON fromJSONString print", {
|
||||
# test pet
|
||||
expect_equal(pet_id, 123321)
|
||||
expect_equal(pet$toJSONString(), '{"id":123321,"category":{"id":450,"name":"test_cat"},"name":"name_test","photoUrls":["photo_test","second test"],"tags":[{"id":123,"name":"tag_test"},{"id":456,"name":"unknown"}],"status":"available"}')
|
||||
print(pet) # should not return anything and output the result to the console
|
||||
|
||||
# tests for other pet objects
|
||||
pet0 <- Pet$new()
|
||||
|
@ -229,6 +229,25 @@ AllofTagApiResponse <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
AllofTagApiResponse$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
AllofTagApiResponse$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
AllofTagApiResponse$lock()
|
||||
|
||||
|
@ -176,6 +176,25 @@ Animal <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Animal$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Animal$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Animal$lock()
|
||||
|
||||
|
@ -157,5 +157,26 @@ AnyOfPig <- R6::R6Class(
|
||||
jsoncontent <- paste(jsoncontent, collapse = ",")
|
||||
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = "")))
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
AnyOfPig$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
AnyOfPig$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
AnyOfPig$lock()
|
||||
|
||||
|
||||
|
@ -175,5 +175,25 @@ AnyOfPrimitiveTypeTest <- R6::R6Class(
|
||||
jsoncontent <- paste(jsoncontent, collapse = ",")
|
||||
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = "")))
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
AnyOfPrimitiveTypeTest$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
AnyOfPrimitiveTypeTest$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
AnyOfPrimitiveTypeTest$lock()
|
||||
|
||||
|
@ -192,6 +192,25 @@ BasquePig <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
BasquePig$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
BasquePig$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
BasquePig$lock()
|
||||
|
||||
|
@ -200,6 +200,25 @@ Cat <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Cat$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Cat$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Cat$lock()
|
||||
|
||||
|
@ -137,6 +137,25 @@ CatAllOf <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
CatAllOf$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
CatAllOf$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
CatAllOf$lock()
|
||||
|
||||
|
@ -168,6 +168,25 @@ Category <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Category$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Category$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Category$lock()
|
||||
|
||||
|
@ -192,6 +192,25 @@ DanishPig <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
DanishPig$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
DanishPig$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
DanishPig$lock()
|
||||
|
||||
|
@ -200,6 +200,25 @@ Dog <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Dog$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Dog$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Dog$lock()
|
||||
|
||||
|
@ -137,6 +137,25 @@ DogAllOf <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
DogAllOf$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
DogAllOf$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
DogAllOf$lock()
|
||||
|
||||
|
@ -183,6 +183,25 @@ ModelApiResponse <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
ModelApiResponse$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
ModelApiResponse$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
ModelApiResponse$lock()
|
||||
|
||||
|
@ -162,6 +162,25 @@ NestedOneOf <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
NestedOneOf$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
NestedOneOf$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
NestedOneOf$lock()
|
||||
|
||||
|
@ -175,5 +175,25 @@ OneOfPrimitiveTypeTest <- R6::R6Class(
|
||||
jsoncontent <- paste(jsoncontent, collapse = ",")
|
||||
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = "")))
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
OneOfPrimitiveTypeTest$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
OneOfPrimitiveTypeTest$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
OneOfPrimitiveTypeTest$lock()
|
||||
|
||||
|
@ -252,6 +252,25 @@ Order <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Order$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Order$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Order$lock()
|
||||
|
||||
|
@ -289,6 +289,25 @@ Pet <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Pet$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Pet$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Pet$lock()
|
||||
|
||||
|
@ -173,5 +173,25 @@ Pig <- R6::R6Class(
|
||||
jsoncontent <- paste(jsoncontent, collapse = ",")
|
||||
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = "")))
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Pig$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Pig$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Pig$lock()
|
||||
|
||||
|
@ -252,6 +252,25 @@ Special <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Special$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Special$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Special$lock()
|
||||
|
||||
|
@ -160,6 +160,25 @@ Tag <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Tag$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Tag$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Tag$lock()
|
||||
|
||||
|
@ -161,6 +161,25 @@ UpdatePetRequest <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
UpdatePetRequest$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
UpdatePetRequest$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
UpdatePetRequest$lock()
|
||||
|
||||
|
@ -298,6 +298,25 @@ User <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
User$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
User$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
User$lock()
|
||||
|
||||
|
@ -5,10 +5,11 @@ library(jsonlite)
|
||||
|
||||
t <- OneOfPrimitiveTypeTest$new()
|
||||
|
||||
t$fromJSONString("[1,2,3]")
|
||||
#t$fromJSONString("[1,2,3]")
|
||||
|
||||
|
||||
###var_pet <- Pet$new("name_example", list("photoUrls_example"), 56, Category$new(56, "name_example"), list(Tag$new(56, "name_example")), "available") # Pet | Pet object that needs to be added to the store
|
||||
var_pet <- Pet$new("name_example", list("photoUrls_example"), 56, Category$new(56, "name_example"), list(Tag$new(56, "name_example")), "available") # Pet | Pet object that needs to be added to the store
|
||||
print(var_pet)
|
||||
###
|
||||
####Add a new pet to the store
|
||||
###api_instance <- PetApi$new()
|
||||
|
@ -229,6 +229,25 @@ AllofTagApiResponse <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
AllofTagApiResponse$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
AllofTagApiResponse$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
AllofTagApiResponse$lock()
|
||||
|
||||
|
@ -176,6 +176,25 @@ Animal <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Animal$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Animal$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Animal$lock()
|
||||
|
||||
|
@ -157,5 +157,26 @@ AnyOfPig <- R6::R6Class(
|
||||
jsoncontent <- paste(jsoncontent, collapse = ",")
|
||||
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = "")))
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
AnyOfPig$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
AnyOfPig$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
AnyOfPig$lock()
|
||||
|
||||
|
||||
|
@ -175,5 +175,25 @@ AnyOfPrimitiveTypeTest <- R6::R6Class(
|
||||
jsoncontent <- paste(jsoncontent, collapse = ",")
|
||||
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = "")))
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
AnyOfPrimitiveTypeTest$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
AnyOfPrimitiveTypeTest$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
AnyOfPrimitiveTypeTest$lock()
|
||||
|
||||
|
@ -192,6 +192,25 @@ BasquePig <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
BasquePig$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
BasquePig$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
BasquePig$lock()
|
||||
|
||||
|
@ -200,6 +200,25 @@ Cat <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Cat$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Cat$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Cat$lock()
|
||||
|
||||
|
@ -137,6 +137,25 @@ CatAllOf <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
CatAllOf$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
CatAllOf$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
CatAllOf$lock()
|
||||
|
||||
|
@ -168,6 +168,25 @@ Category <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Category$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Category$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Category$lock()
|
||||
|
||||
|
@ -192,6 +192,25 @@ DanishPig <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
DanishPig$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
DanishPig$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
DanishPig$lock()
|
||||
|
||||
|
@ -200,6 +200,25 @@ Dog <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Dog$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Dog$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Dog$lock()
|
||||
|
||||
|
@ -137,6 +137,25 @@ DogAllOf <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
DogAllOf$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
DogAllOf$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
DogAllOf$lock()
|
||||
|
||||
|
@ -183,6 +183,25 @@ ModelApiResponse <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
ModelApiResponse$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
ModelApiResponse$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
ModelApiResponse$lock()
|
||||
|
||||
|
@ -162,6 +162,25 @@ NestedOneOf <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
NestedOneOf$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
NestedOneOf$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
NestedOneOf$lock()
|
||||
|
||||
|
@ -175,5 +175,25 @@ OneOfPrimitiveTypeTest <- R6::R6Class(
|
||||
jsoncontent <- paste(jsoncontent, collapse = ",")
|
||||
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = "")))
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
OneOfPrimitiveTypeTest$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
OneOfPrimitiveTypeTest$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
OneOfPrimitiveTypeTest$lock()
|
||||
|
||||
|
@ -252,6 +252,25 @@ Order <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Order$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Order$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Order$lock()
|
||||
|
||||
|
@ -289,6 +289,25 @@ Pet <- R6::R6Class(
|
||||
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Pet$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Pet$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Pet$lock()
|
||||
|
||||
|
@ -173,5 +173,25 @@ Pig <- R6::R6Class(
|
||||
jsoncontent <- paste(jsoncontent, collapse = ",")
|
||||
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = "")))
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Pig$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Pig$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Pig$lock()
|
||||
|
||||
|
@ -252,6 +252,25 @@ Special <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Special$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Special$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Special$lock()
|
||||
|
||||
|
@ -160,6 +160,25 @@ Tag <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
Tag$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
Tag$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
Tag$lock()
|
||||
|
||||
|
@ -161,6 +161,25 @@ UpdatePetRequest <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
UpdatePetRequest$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
UpdatePetRequest$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
UpdatePetRequest$lock()
|
||||
|
||||
|
@ -298,6 +298,25 @@ User <- R6::R6Class(
|
||||
invalid_fields <- list()
|
||||
invalid_fields
|
||||
}
|
||||
)
|
||||
),
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
lock_class = TRUE
|
||||
)
|
||||
|
||||
# Unlock the class to allow modifications of the method or field
|
||||
User$unlock()
|
||||
|
||||
#' Print the object
|
||||
#'
|
||||
#' @description
|
||||
#' Print the object
|
||||
#'
|
||||
#' @export
|
||||
User$set("public", "print", function(...) {
|
||||
print(jsonlite::prettify(self$toJSONString()))
|
||||
invisible(self)
|
||||
})
|
||||
|
||||
# Lock the class to prevent modifications to the method or field
|
||||
User$lock()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user