diff --git a/modules/openapi-generator/src/main/resources/r/api.mustache b/modules/openapi-generator/src/main/resources/r/api.mustache index e3aabd05c19..dba29117555 100644 --- a/modules/openapi-generator/src/main/resources/r/api.mustache +++ b/modules/openapi-generator/src/main/resources/r/api.mustache @@ -2,7 +2,7 @@ {{#operations}} #' @docType class #' @title {{baseName}} operations -#' @description {{{description}}} +#' @description {{{description}}}{{^description}}{{{classname}}}{{/description}} #' @format An \code{R6Class} generator object #' @field api_client Handles the client-server communication. #' diff --git a/modules/openapi-generator/src/main/resources/r/modelAnyOf.mustache b/modules/openapi-generator/src/main/resources/r/modelAnyOf.mustache index ea8d8c5e87e..ba288abfabd 100644 --- a/modules/openapi-generator/src/main/resources/r/modelAnyOf.mustache +++ b/modules/openapi-generator/src/main/resources/r/modelAnyOf.mustache @@ -151,26 +151,28 @@ ) jsoncontent <- paste(jsoncontent, collapse = ",") as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) } ), # 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() - +## Uncomment below to unlock the class to allow modifications of the method or field +#{{classname}}$unlock() +# +## Below is an example to define the print fnuction +#{{classname}}$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#{{classname}}$lock() diff --git a/modules/openapi-generator/src/main/resources/r/modelGeneric.mustache b/modules/openapi-generator/src/main/resources/r/modelGeneric.mustache index 09561fb0503..9abcf28e86a 100644 --- a/modules/openapi-generator/src/main/resources/r/modelGeneric.mustache +++ b/modules/openapi-generator/src/main/resources/r/modelGeneric.mustache @@ -526,25 +526,27 @@ {{/hasValidation}} {{/allVars}} invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#{{classname}}$unlock() +# +## Below is an example to define the print fnuction +#{{classname}}$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#{{classname}}$lock() diff --git a/modules/openapi-generator/src/main/resources/r/modelOneOf.mustache b/modules/openapi-generator/src/main/resources/r/modelOneOf.mustache index 5287132ea61..7211b50ed8b 100644 --- a/modules/openapi-generator/src/main/resources/r/modelOneOf.mustache +++ b/modules/openapi-generator/src/main/resources/r/modelOneOf.mustache @@ -199,25 +199,28 @@ ) jsoncontent <- paste(jsoncontent, collapse = ",") as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) } ), # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#{{classname}}$unlock() +# +## Below is an example to define the print fnuction +#{{classname}}$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#{{classname}}$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/allof_tag_api_response.R b/samples/client/petstore/R-httr2-wrapper/R/allof_tag_api_response.R index 6722a2f30d2..05d2ae0abc8 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/allof_tag_api_response.R +++ b/samples/client/petstore/R-httr2-wrapper/R/allof_tag_api_response.R @@ -260,26 +260,28 @@ AllofTagApiResponse <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#AllofTagApiResponse$unlock() +# +## Below is an example to define the print fnuction +#AllofTagApiResponse$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#AllofTagApiResponse$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/animal.R b/samples/client/petstore/R-httr2-wrapper/R/animal.R index 17c49a82569..9fe6605d7f9 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/animal.R +++ b/samples/client/petstore/R-httr2-wrapper/R/animal.R @@ -207,26 +207,28 @@ Animal <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Animal$unlock() +# +## Below is an example to define the print fnuction +#Animal$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Animal$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/any_of_pig.R b/samples/client/petstore/R-httr2-wrapper/R/any_of_pig.R index c4a46e69915..404b7104727 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/any_of_pig.R +++ b/samples/client/petstore/R-httr2-wrapper/R/any_of_pig.R @@ -156,27 +156,29 @@ AnyOfPig <- R6::R6Class( ) jsoncontent <- paste(jsoncontent, collapse = ",") as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) } ), # 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() - +## Uncomment below to unlock the class to allow modifications of the method or field +#AnyOfPig$unlock() +# +## Below is an example to define the print fnuction +#AnyOfPig$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#AnyOfPig$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/any_of_primitive_type_test.R b/samples/client/petstore/R-httr2-wrapper/R/any_of_primitive_type_test.R index ac1c68596e5..374aa8c6057 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/any_of_primitive_type_test.R +++ b/samples/client/petstore/R-httr2-wrapper/R/any_of_primitive_type_test.R @@ -174,26 +174,29 @@ AnyOfPrimitiveTypeTest <- R6::R6Class( ) jsoncontent <- paste(jsoncontent, collapse = ",") as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) } ), # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#AnyOfPrimitiveTypeTest$unlock() +# +## Below is an example to define the print fnuction +#AnyOfPrimitiveTypeTest$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#AnyOfPrimitiveTypeTest$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/basque_pig.R b/samples/client/petstore/R-httr2-wrapper/R/basque_pig.R index a15bd94c659..be3096b2447 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/basque_pig.R +++ b/samples/client/petstore/R-httr2-wrapper/R/basque_pig.R @@ -223,26 +223,28 @@ BasquePig <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#BasquePig$unlock() +# +## Below is an example to define the print fnuction +#BasquePig$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#BasquePig$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/cat.R b/samples/client/petstore/R-httr2-wrapper/R/cat.R index 882eed5a9b7..3dc1ebbf294 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/cat.R +++ b/samples/client/petstore/R-httr2-wrapper/R/cat.R @@ -231,26 +231,28 @@ Cat <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Cat$unlock() +# +## Below is an example to define the print fnuction +#Cat$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Cat$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/cat_all_of.R b/samples/client/petstore/R-httr2-wrapper/R/cat_all_of.R index 2d77430810f..6d677755caa 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/cat_all_of.R +++ b/samples/client/petstore/R-httr2-wrapper/R/cat_all_of.R @@ -168,26 +168,28 @@ CatAllOf <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#CatAllOf$unlock() +# +## Below is an example to define the print fnuction +#CatAllOf$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#CatAllOf$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/category.R b/samples/client/petstore/R-httr2-wrapper/R/category.R index 1e50799abeb..294ddfe46cd 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/category.R +++ b/samples/client/petstore/R-httr2-wrapper/R/category.R @@ -199,26 +199,28 @@ Category <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Category$unlock() +# +## Below is an example to define the print fnuction +#Category$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Category$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/danish_pig.R b/samples/client/petstore/R-httr2-wrapper/R/danish_pig.R index ae926fb8021..615ed1f465f 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/danish_pig.R +++ b/samples/client/petstore/R-httr2-wrapper/R/danish_pig.R @@ -223,26 +223,28 @@ DanishPig <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#DanishPig$unlock() +# +## Below is an example to define the print fnuction +#DanishPig$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#DanishPig$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/dog.R b/samples/client/petstore/R-httr2-wrapper/R/dog.R index 25a7d14396a..e387c368aca 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/dog.R +++ b/samples/client/petstore/R-httr2-wrapper/R/dog.R @@ -231,26 +231,28 @@ Dog <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Dog$unlock() +# +## Below is an example to define the print fnuction +#Dog$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Dog$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/dog_all_of.R b/samples/client/petstore/R-httr2-wrapper/R/dog_all_of.R index 8eb7912a406..c9408b089be 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/dog_all_of.R +++ b/samples/client/petstore/R-httr2-wrapper/R/dog_all_of.R @@ -168,26 +168,28 @@ DogAllOf <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#DogAllOf$unlock() +# +## Below is an example to define the print fnuction +#DogAllOf$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#DogAllOf$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/fake_api.R b/samples/client/petstore/R-httr2-wrapper/R/fake_api.R index c871b18de2d..f084d464bce 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/fake_api.R +++ b/samples/client/petstore/R-httr2-wrapper/R/fake_api.R @@ -7,7 +7,7 @@ #' #' @docType class #' @title Fake operations -#' @description +#' @description FakeApi #' @format An \code{R6Class} generator object #' @field api_client Handles the client-server communication. #' diff --git a/samples/client/petstore/R-httr2-wrapper/R/mammal.R b/samples/client/petstore/R-httr2-wrapper/R/mammal.R index 9c26bbed2b3..8ac1d6829dd 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/mammal.R +++ b/samples/client/petstore/R-httr2-wrapper/R/mammal.R @@ -195,26 +195,29 @@ Mammal <- R6::R6Class( ) jsoncontent <- paste(jsoncontent, collapse = ",") as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) } ), # 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 -Mammal$unlock() - -#' Print the object -#' -#' @description -#' Print the object -#' -#' @export -Mammal$set("public", "print", function(...) { - print(jsonlite::prettify(self$toJSONString())) - invisible(self) -}) - -# Lock the class to prevent modifications to the method or field -Mammal$lock() +## Uncomment below to unlock the class to allow modifications of the method or field +#Mammal$unlock() +# +## Below is an example to define the print fnuction +#Mammal$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Mammal$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/model_api_response.R b/samples/client/petstore/R-httr2-wrapper/R/model_api_response.R index ed0f63e51b8..d0ce1ebbaf1 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/model_api_response.R +++ b/samples/client/petstore/R-httr2-wrapper/R/model_api_response.R @@ -214,26 +214,28 @@ ModelApiResponse <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#ModelApiResponse$unlock() +# +## Below is an example to define the print fnuction +#ModelApiResponse$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#ModelApiResponse$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/nested_one_of.R b/samples/client/petstore/R-httr2-wrapper/R/nested_one_of.R index 4aa8162d7eb..70e9489af28 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/nested_one_of.R +++ b/samples/client/petstore/R-httr2-wrapper/R/nested_one_of.R @@ -193,26 +193,28 @@ NestedOneOf <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#NestedOneOf$unlock() +# +## Below is an example to define the print fnuction +#NestedOneOf$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#NestedOneOf$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/one_of_primitive_type_test.R b/samples/client/petstore/R-httr2-wrapper/R/one_of_primitive_type_test.R index 3696388d436..d558c0eb507 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/one_of_primitive_type_test.R +++ b/samples/client/petstore/R-httr2-wrapper/R/one_of_primitive_type_test.R @@ -174,26 +174,29 @@ OneOfPrimitiveTypeTest <- R6::R6Class( ) jsoncontent <- paste(jsoncontent, collapse = ",") as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) } ), # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#OneOfPrimitiveTypeTest$unlock() +# +## Below is an example to define the print fnuction +#OneOfPrimitiveTypeTest$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#OneOfPrimitiveTypeTest$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/order.R b/samples/client/petstore/R-httr2-wrapper/R/order.R index 706f12c60e5..d8b98bbacc7 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/order.R +++ b/samples/client/petstore/R-httr2-wrapper/R/order.R @@ -283,26 +283,28 @@ Order <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Order$unlock() +# +## Below is an example to define the print fnuction +#Order$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Order$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/pet.R b/samples/client/petstore/R-httr2-wrapper/R/pet.R index f6cb7a3d669..ce54a2dcd6f 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/pet.R +++ b/samples/client/petstore/R-httr2-wrapper/R/pet.R @@ -320,26 +320,28 @@ Pet <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Pet$unlock() +# +## Below is an example to define the print fnuction +#Pet$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Pet$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/pet_api.R b/samples/client/petstore/R-httr2-wrapper/R/pet_api.R index e2b0e92cccc..5f61c996fd3 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/pet_api.R +++ b/samples/client/petstore/R-httr2-wrapper/R/pet_api.R @@ -7,7 +7,7 @@ #' #' @docType class #' @title Pet operations -#' @description +#' @description PetApi #' @format An \code{R6Class} generator object #' @field api_client Handles the client-server communication. #' diff --git a/samples/client/petstore/R-httr2-wrapper/R/pig.R b/samples/client/petstore/R-httr2-wrapper/R/pig.R index dd2e91ffcb2..0a95e9dec70 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/pig.R +++ b/samples/client/petstore/R-httr2-wrapper/R/pig.R @@ -195,26 +195,29 @@ Pig <- R6::R6Class( ) jsoncontent <- paste(jsoncontent, collapse = ",") as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) } ), # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Pig$unlock() +# +## Below is an example to define the print fnuction +#Pig$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Pig$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/special.R b/samples/client/petstore/R-httr2-wrapper/R/special.R index 6f6a2bee918..6227f01c962 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/special.R +++ b/samples/client/petstore/R-httr2-wrapper/R/special.R @@ -283,26 +283,28 @@ Special <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Special$unlock() +# +## Below is an example to define the print fnuction +#Special$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Special$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/store_api.R b/samples/client/petstore/R-httr2-wrapper/R/store_api.R index 0eb3013af9a..679b1581ba2 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/store_api.R +++ b/samples/client/petstore/R-httr2-wrapper/R/store_api.R @@ -7,7 +7,7 @@ #' #' @docType class #' @title Store operations -#' @description +#' @description StoreApi #' @format An \code{R6Class} generator object #' @field api_client Handles the client-server communication. #' diff --git a/samples/client/petstore/R-httr2-wrapper/R/tag.R b/samples/client/petstore/R-httr2-wrapper/R/tag.R index 639c14c4dd5..eaeea9fdb0f 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/tag.R +++ b/samples/client/petstore/R-httr2-wrapper/R/tag.R @@ -191,26 +191,28 @@ Tag <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Tag$unlock() +# +## Below is an example to define the print fnuction +#Tag$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Tag$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/update_pet_request.R b/samples/client/petstore/R-httr2-wrapper/R/update_pet_request.R index 8e5d1689a4c..e0d603b7ffb 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/update_pet_request.R +++ b/samples/client/petstore/R-httr2-wrapper/R/update_pet_request.R @@ -192,26 +192,28 @@ UpdatePetRequest <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#UpdatePetRequest$unlock() +# +## Below is an example to define the print fnuction +#UpdatePetRequest$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#UpdatePetRequest$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/user.R b/samples/client/petstore/R-httr2-wrapper/R/user.R index 1be67705420..33b090fb563 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/user.R +++ b/samples/client/petstore/R-httr2-wrapper/R/user.R @@ -329,26 +329,28 @@ User <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#User$unlock() +# +## Below is an example to define the print fnuction +#User$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#User$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/user_api.R b/samples/client/petstore/R-httr2-wrapper/R/user_api.R index a799e564614..ef306b8fd22 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/user_api.R +++ b/samples/client/petstore/R-httr2-wrapper/R/user_api.R @@ -7,7 +7,7 @@ #' #' @docType class #' @title User operations -#' @description +#' @description UserApi #' @format An \code{R6Class} generator object #' @field api_client Handles the client-server communication. #' diff --git a/samples/client/petstore/R-httr2-wrapper/R/whale.R b/samples/client/petstore/R-httr2-wrapper/R/whale.R index 458f5d6f86c..2dae2424369 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/whale.R +++ b/samples/client/petstore/R-httr2-wrapper/R/whale.R @@ -230,26 +230,28 @@ Whale <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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 -Whale$unlock() - -#' Print the object -#' -#' @description -#' Print the object -#' -#' @export -Whale$set("public", "print", function(...) { - print(jsonlite::prettify(self$toJSONString())) - invisible(self) -}) - -# Lock the class to prevent modifications to the method or field -Whale$lock() +## Uncomment below to unlock the class to allow modifications of the method or field +#Whale$unlock() +# +## Below is an example to define the print fnuction +#Whale$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Whale$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/R/zebra.R b/samples/client/petstore/R-httr2-wrapper/R/zebra.R index 4250d51d39c..177f5e48fb2 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/zebra.R +++ b/samples/client/petstore/R-httr2-wrapper/R/zebra.R @@ -207,26 +207,28 @@ Zebra <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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 -Zebra$unlock() - -#' Print the object -#' -#' @description -#' Print the object -#' -#' @export -Zebra$set("public", "print", function(...) { - print(jsonlite::prettify(self$toJSONString())) - invisible(self) -}) - -# Lock the class to prevent modifications to the method or field -Zebra$lock() +## Uncomment below to unlock the class to allow modifications of the method or field +#Zebra$unlock() +# +## Below is an example to define the print fnuction +#Zebra$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Zebra$lock() diff --git a/samples/client/petstore/R-httr2-wrapper/test_petstore.R b/samples/client/petstore/R-httr2-wrapper/test_petstore.R index 6cd8b7e6f85..4fd2afd76ea 100644 --- a/samples/client/petstore/R-httr2-wrapper/test_petstore.R +++ b/samples/client/petstore/R-httr2-wrapper/test_petstore.R @@ -9,8 +9,10 @@ t$additional_properties <- c("abc" = 849, "array" = list('a', 'b', 'c')) t$additional_properties t$additional_properties["abc"] t$additional_properties["array"] -print(t$toJSON()) -print(t$toJSONString()) + +print(t) +#print(t$toJSON()) +#print(t$toJSONString()) print("done tag") diff --git a/samples/client/petstore/R-httr2/R/allof_tag_api_response.R b/samples/client/petstore/R-httr2/R/allof_tag_api_response.R index 8fc7e22529a..51266e1edce 100644 --- a/samples/client/petstore/R-httr2/R/allof_tag_api_response.R +++ b/samples/client/petstore/R-httr2/R/allof_tag_api_response.R @@ -227,26 +227,28 @@ AllofTagApiResponse <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#AllofTagApiResponse$unlock() +# +## Below is an example to define the print fnuction +#AllofTagApiResponse$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#AllofTagApiResponse$lock() diff --git a/samples/client/petstore/R-httr2/R/animal.R b/samples/client/petstore/R-httr2/R/animal.R index e750befac15..9bfa72f5a0d 100644 --- a/samples/client/petstore/R-httr2/R/animal.R +++ b/samples/client/petstore/R-httr2/R/animal.R @@ -174,26 +174,28 @@ Animal <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Animal$unlock() +# +## Below is an example to define the print fnuction +#Animal$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Animal$lock() diff --git a/samples/client/petstore/R-httr2/R/any_of_pig.R b/samples/client/petstore/R-httr2/R/any_of_pig.R index c4a46e69915..404b7104727 100644 --- a/samples/client/petstore/R-httr2/R/any_of_pig.R +++ b/samples/client/petstore/R-httr2/R/any_of_pig.R @@ -156,27 +156,29 @@ AnyOfPig <- R6::R6Class( ) jsoncontent <- paste(jsoncontent, collapse = ",") as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) } ), # 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() - +## Uncomment below to unlock the class to allow modifications of the method or field +#AnyOfPig$unlock() +# +## Below is an example to define the print fnuction +#AnyOfPig$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#AnyOfPig$lock() diff --git a/samples/client/petstore/R-httr2/R/any_of_primitive_type_test.R b/samples/client/petstore/R-httr2/R/any_of_primitive_type_test.R index ac1c68596e5..374aa8c6057 100644 --- a/samples/client/petstore/R-httr2/R/any_of_primitive_type_test.R +++ b/samples/client/petstore/R-httr2/R/any_of_primitive_type_test.R @@ -174,26 +174,29 @@ AnyOfPrimitiveTypeTest <- R6::R6Class( ) jsoncontent <- paste(jsoncontent, collapse = ",") as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) } ), # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#AnyOfPrimitiveTypeTest$unlock() +# +## Below is an example to define the print fnuction +#AnyOfPrimitiveTypeTest$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#AnyOfPrimitiveTypeTest$lock() diff --git a/samples/client/petstore/R-httr2/R/basque_pig.R b/samples/client/petstore/R-httr2/R/basque_pig.R index 8174fce65d2..727962a99f7 100644 --- a/samples/client/petstore/R-httr2/R/basque_pig.R +++ b/samples/client/petstore/R-httr2/R/basque_pig.R @@ -190,26 +190,28 @@ BasquePig <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#BasquePig$unlock() +# +## Below is an example to define the print fnuction +#BasquePig$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#BasquePig$lock() diff --git a/samples/client/petstore/R-httr2/R/cat.R b/samples/client/petstore/R-httr2/R/cat.R index fbc5f2f2560..0483948e5ee 100644 --- a/samples/client/petstore/R-httr2/R/cat.R +++ b/samples/client/petstore/R-httr2/R/cat.R @@ -198,26 +198,28 @@ Cat <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Cat$unlock() +# +## Below is an example to define the print fnuction +#Cat$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Cat$lock() diff --git a/samples/client/petstore/R-httr2/R/cat_all_of.R b/samples/client/petstore/R-httr2/R/cat_all_of.R index e0b26edae53..a30906841ed 100644 --- a/samples/client/petstore/R-httr2/R/cat_all_of.R +++ b/samples/client/petstore/R-httr2/R/cat_all_of.R @@ -135,26 +135,28 @@ CatAllOf <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#CatAllOf$unlock() +# +## Below is an example to define the print fnuction +#CatAllOf$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#CatAllOf$lock() diff --git a/samples/client/petstore/R-httr2/R/category.R b/samples/client/petstore/R-httr2/R/category.R index 405303c1a2e..881f9ad0ec4 100644 --- a/samples/client/petstore/R-httr2/R/category.R +++ b/samples/client/petstore/R-httr2/R/category.R @@ -166,26 +166,28 @@ Category <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Category$unlock() +# +## Below is an example to define the print fnuction +#Category$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Category$lock() diff --git a/samples/client/petstore/R-httr2/R/danish_pig.R b/samples/client/petstore/R-httr2/R/danish_pig.R index b876a063998..9d3377240db 100644 --- a/samples/client/petstore/R-httr2/R/danish_pig.R +++ b/samples/client/petstore/R-httr2/R/danish_pig.R @@ -190,26 +190,28 @@ DanishPig <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#DanishPig$unlock() +# +## Below is an example to define the print fnuction +#DanishPig$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#DanishPig$lock() diff --git a/samples/client/petstore/R-httr2/R/dog.R b/samples/client/petstore/R-httr2/R/dog.R index 7c2595853df..54b95afe511 100644 --- a/samples/client/petstore/R-httr2/R/dog.R +++ b/samples/client/petstore/R-httr2/R/dog.R @@ -198,26 +198,28 @@ Dog <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Dog$unlock() +# +## Below is an example to define the print fnuction +#Dog$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Dog$lock() diff --git a/samples/client/petstore/R-httr2/R/dog_all_of.R b/samples/client/petstore/R-httr2/R/dog_all_of.R index a66cddf95d8..f9172ab0dde 100644 --- a/samples/client/petstore/R-httr2/R/dog_all_of.R +++ b/samples/client/petstore/R-httr2/R/dog_all_of.R @@ -135,26 +135,28 @@ DogAllOf <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#DogAllOf$unlock() +# +## Below is an example to define the print fnuction +#DogAllOf$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#DogAllOf$lock() diff --git a/samples/client/petstore/R-httr2/R/fake_api.R b/samples/client/petstore/R-httr2/R/fake_api.R index 72aff37daa8..4b683258611 100644 --- a/samples/client/petstore/R-httr2/R/fake_api.R +++ b/samples/client/petstore/R-httr2/R/fake_api.R @@ -7,7 +7,7 @@ #' #' @docType class #' @title Fake operations -#' @description +#' @description FakeApi #' @format An \code{R6Class} generator object #' @field api_client Handles the client-server communication. #' diff --git a/samples/client/petstore/R-httr2/R/mammal.R b/samples/client/petstore/R-httr2/R/mammal.R index 14857c098e4..4b21d8564cd 100644 --- a/samples/client/petstore/R-httr2/R/mammal.R +++ b/samples/client/petstore/R-httr2/R/mammal.R @@ -172,26 +172,29 @@ Mammal <- R6::R6Class( ) jsoncontent <- paste(jsoncontent, collapse = ",") as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) } ), # 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 -Mammal$unlock() - -#' Print the object -#' -#' @description -#' Print the object -#' -#' @export -Mammal$set("public", "print", function(...) { - print(jsonlite::prettify(self$toJSONString())) - invisible(self) -}) - -# Lock the class to prevent modifications to the method or field -Mammal$lock() +## Uncomment below to unlock the class to allow modifications of the method or field +#Mammal$unlock() +# +## Below is an example to define the print fnuction +#Mammal$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Mammal$lock() diff --git a/samples/client/petstore/R-httr2/R/model_api_response.R b/samples/client/petstore/R-httr2/R/model_api_response.R index f5fbf9b1497..952d587ac0d 100644 --- a/samples/client/petstore/R-httr2/R/model_api_response.R +++ b/samples/client/petstore/R-httr2/R/model_api_response.R @@ -181,26 +181,28 @@ ModelApiResponse <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#ModelApiResponse$unlock() +# +## Below is an example to define the print fnuction +#ModelApiResponse$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#ModelApiResponse$lock() diff --git a/samples/client/petstore/R-httr2/R/nested_one_of.R b/samples/client/petstore/R-httr2/R/nested_one_of.R index 8828f09d762..e5d71f21ead 100644 --- a/samples/client/petstore/R-httr2/R/nested_one_of.R +++ b/samples/client/petstore/R-httr2/R/nested_one_of.R @@ -160,26 +160,28 @@ NestedOneOf <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#NestedOneOf$unlock() +# +## Below is an example to define the print fnuction +#NestedOneOf$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#NestedOneOf$lock() diff --git a/samples/client/petstore/R-httr2/R/one_of_primitive_type_test.R b/samples/client/petstore/R-httr2/R/one_of_primitive_type_test.R index 3696388d436..d558c0eb507 100644 --- a/samples/client/petstore/R-httr2/R/one_of_primitive_type_test.R +++ b/samples/client/petstore/R-httr2/R/one_of_primitive_type_test.R @@ -174,26 +174,29 @@ OneOfPrimitiveTypeTest <- R6::R6Class( ) jsoncontent <- paste(jsoncontent, collapse = ",") as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) } ), # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#OneOfPrimitiveTypeTest$unlock() +# +## Below is an example to define the print fnuction +#OneOfPrimitiveTypeTest$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#OneOfPrimitiveTypeTest$lock() diff --git a/samples/client/petstore/R-httr2/R/order.R b/samples/client/petstore/R-httr2/R/order.R index 0e12a88a70b..84954f95e86 100644 --- a/samples/client/petstore/R-httr2/R/order.R +++ b/samples/client/petstore/R-httr2/R/order.R @@ -250,26 +250,28 @@ Order <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Order$unlock() +# +## Below is an example to define the print fnuction +#Order$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Order$lock() diff --git a/samples/client/petstore/R-httr2/R/pet.R b/samples/client/petstore/R-httr2/R/pet.R index 1d16fed56f3..f75deb15930 100644 --- a/samples/client/petstore/R-httr2/R/pet.R +++ b/samples/client/petstore/R-httr2/R/pet.R @@ -287,26 +287,28 @@ Pet <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Pet$unlock() +# +## Below is an example to define the print fnuction +#Pet$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Pet$lock() diff --git a/samples/client/petstore/R-httr2/R/pet_api.R b/samples/client/petstore/R-httr2/R/pet_api.R index 14319ac68a3..881f520789a 100644 --- a/samples/client/petstore/R-httr2/R/pet_api.R +++ b/samples/client/petstore/R-httr2/R/pet_api.R @@ -7,7 +7,7 @@ #' #' @docType class #' @title Pet operations -#' @description +#' @description PetApi #' @format An \code{R6Class} generator object #' @field api_client Handles the client-server communication. #' diff --git a/samples/client/petstore/R-httr2/R/pig.R b/samples/client/petstore/R-httr2/R/pig.R index ee046be77ff..6cb6b568abf 100644 --- a/samples/client/petstore/R-httr2/R/pig.R +++ b/samples/client/petstore/R-httr2/R/pig.R @@ -172,26 +172,29 @@ Pig <- R6::R6Class( ) jsoncontent <- paste(jsoncontent, collapse = ",") as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) } ), # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Pig$unlock() +# +## Below is an example to define the print fnuction +#Pig$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Pig$lock() diff --git a/samples/client/petstore/R-httr2/R/special.R b/samples/client/petstore/R-httr2/R/special.R index 08f3f6b7d60..a94ef207f9f 100644 --- a/samples/client/petstore/R-httr2/R/special.R +++ b/samples/client/petstore/R-httr2/R/special.R @@ -250,26 +250,28 @@ Special <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Special$unlock() +# +## Below is an example to define the print fnuction +#Special$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Special$lock() diff --git a/samples/client/petstore/R-httr2/R/store_api.R b/samples/client/petstore/R-httr2/R/store_api.R index 8e6222a20f9..099b7ec6a1d 100644 --- a/samples/client/petstore/R-httr2/R/store_api.R +++ b/samples/client/petstore/R-httr2/R/store_api.R @@ -7,7 +7,7 @@ #' #' @docType class #' @title Store operations -#' @description +#' @description StoreApi #' @format An \code{R6Class} generator object #' @field api_client Handles the client-server communication. #' diff --git a/samples/client/petstore/R-httr2/R/tag.R b/samples/client/petstore/R-httr2/R/tag.R index 6938b12fbe8..24319868149 100644 --- a/samples/client/petstore/R-httr2/R/tag.R +++ b/samples/client/petstore/R-httr2/R/tag.R @@ -158,26 +158,28 @@ Tag <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Tag$unlock() +# +## Below is an example to define the print fnuction +#Tag$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Tag$lock() diff --git a/samples/client/petstore/R-httr2/R/update_pet_request.R b/samples/client/petstore/R-httr2/R/update_pet_request.R index 1ed8f672598..722f60be901 100644 --- a/samples/client/petstore/R-httr2/R/update_pet_request.R +++ b/samples/client/petstore/R-httr2/R/update_pet_request.R @@ -159,26 +159,28 @@ UpdatePetRequest <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#UpdatePetRequest$unlock() +# +## Below is an example to define the print fnuction +#UpdatePetRequest$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#UpdatePetRequest$lock() diff --git a/samples/client/petstore/R-httr2/R/user.R b/samples/client/petstore/R-httr2/R/user.R index 96ac826498e..08690a25fbb 100644 --- a/samples/client/petstore/R-httr2/R/user.R +++ b/samples/client/petstore/R-httr2/R/user.R @@ -296,26 +296,28 @@ User <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#User$unlock() +# +## Below is an example to define the print fnuction +#User$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#User$lock() diff --git a/samples/client/petstore/R-httr2/R/user_api.R b/samples/client/petstore/R-httr2/R/user_api.R index c18cf324825..9abfc3847bd 100644 --- a/samples/client/petstore/R-httr2/R/user_api.R +++ b/samples/client/petstore/R-httr2/R/user_api.R @@ -7,7 +7,7 @@ #' #' @docType class #' @title User operations -#' @description +#' @description UserApi #' @format An \code{R6Class} generator object #' @field api_client Handles the client-server communication. #' diff --git a/samples/client/petstore/R-httr2/R/whale.R b/samples/client/petstore/R-httr2/R/whale.R index 5f25cd494cb..1706098ddc1 100644 --- a/samples/client/petstore/R-httr2/R/whale.R +++ b/samples/client/petstore/R-httr2/R/whale.R @@ -197,26 +197,28 @@ Whale <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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 -Whale$unlock() - -#' Print the object -#' -#' @description -#' Print the object -#' -#' @export -Whale$set("public", "print", function(...) { - print(jsonlite::prettify(self$toJSONString())) - invisible(self) -}) - -# Lock the class to prevent modifications to the method or field -Whale$lock() +## Uncomment below to unlock the class to allow modifications of the method or field +#Whale$unlock() +# +## Below is an example to define the print fnuction +#Whale$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Whale$lock() diff --git a/samples/client/petstore/R-httr2/R/zebra.R b/samples/client/petstore/R-httr2/R/zebra.R index bf76abb2996..e8a2896ae4b 100644 --- a/samples/client/petstore/R-httr2/R/zebra.R +++ b/samples/client/petstore/R-httr2/R/zebra.R @@ -174,26 +174,28 @@ Zebra <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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 -Zebra$unlock() - -#' Print the object -#' -#' @description -#' Print the object -#' -#' @export -Zebra$set("public", "print", function(...) { - print(jsonlite::prettify(self$toJSONString())) - invisible(self) -}) - -# Lock the class to prevent modifications to the method or field -Zebra$lock() +## Uncomment below to unlock the class to allow modifications of the method or field +#Zebra$unlock() +# +## Below is an example to define the print fnuction +#Zebra$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Zebra$lock() diff --git a/samples/client/petstore/R/R/allof_tag_api_response.R b/samples/client/petstore/R/R/allof_tag_api_response.R index 6722a2f30d2..05d2ae0abc8 100644 --- a/samples/client/petstore/R/R/allof_tag_api_response.R +++ b/samples/client/petstore/R/R/allof_tag_api_response.R @@ -260,26 +260,28 @@ AllofTagApiResponse <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#AllofTagApiResponse$unlock() +# +## Below is an example to define the print fnuction +#AllofTagApiResponse$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#AllofTagApiResponse$lock() diff --git a/samples/client/petstore/R/R/animal.R b/samples/client/petstore/R/R/animal.R index 17c49a82569..9fe6605d7f9 100644 --- a/samples/client/petstore/R/R/animal.R +++ b/samples/client/petstore/R/R/animal.R @@ -207,26 +207,28 @@ Animal <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Animal$unlock() +# +## Below is an example to define the print fnuction +#Animal$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Animal$lock() diff --git a/samples/client/petstore/R/R/any_of_pig.R b/samples/client/petstore/R/R/any_of_pig.R index c4a46e69915..404b7104727 100644 --- a/samples/client/petstore/R/R/any_of_pig.R +++ b/samples/client/petstore/R/R/any_of_pig.R @@ -156,27 +156,29 @@ AnyOfPig <- R6::R6Class( ) jsoncontent <- paste(jsoncontent, collapse = ",") as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) } ), # 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() - +## Uncomment below to unlock the class to allow modifications of the method or field +#AnyOfPig$unlock() +# +## Below is an example to define the print fnuction +#AnyOfPig$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#AnyOfPig$lock() diff --git a/samples/client/petstore/R/R/any_of_primitive_type_test.R b/samples/client/petstore/R/R/any_of_primitive_type_test.R index ac1c68596e5..374aa8c6057 100644 --- a/samples/client/petstore/R/R/any_of_primitive_type_test.R +++ b/samples/client/petstore/R/R/any_of_primitive_type_test.R @@ -174,26 +174,29 @@ AnyOfPrimitiveTypeTest <- R6::R6Class( ) jsoncontent <- paste(jsoncontent, collapse = ",") as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) } ), # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#AnyOfPrimitiveTypeTest$unlock() +# +## Below is an example to define the print fnuction +#AnyOfPrimitiveTypeTest$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#AnyOfPrimitiveTypeTest$lock() diff --git a/samples/client/petstore/R/R/basque_pig.R b/samples/client/petstore/R/R/basque_pig.R index a15bd94c659..be3096b2447 100644 --- a/samples/client/petstore/R/R/basque_pig.R +++ b/samples/client/petstore/R/R/basque_pig.R @@ -223,26 +223,28 @@ BasquePig <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#BasquePig$unlock() +# +## Below is an example to define the print fnuction +#BasquePig$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#BasquePig$lock() diff --git a/samples/client/petstore/R/R/cat.R b/samples/client/petstore/R/R/cat.R index 882eed5a9b7..3dc1ebbf294 100644 --- a/samples/client/petstore/R/R/cat.R +++ b/samples/client/petstore/R/R/cat.R @@ -231,26 +231,28 @@ Cat <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Cat$unlock() +# +## Below is an example to define the print fnuction +#Cat$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Cat$lock() diff --git a/samples/client/petstore/R/R/cat_all_of.R b/samples/client/petstore/R/R/cat_all_of.R index 2d77430810f..6d677755caa 100644 --- a/samples/client/petstore/R/R/cat_all_of.R +++ b/samples/client/petstore/R/R/cat_all_of.R @@ -168,26 +168,28 @@ CatAllOf <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#CatAllOf$unlock() +# +## Below is an example to define the print fnuction +#CatAllOf$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#CatAllOf$lock() diff --git a/samples/client/petstore/R/R/category.R b/samples/client/petstore/R/R/category.R index 1e50799abeb..294ddfe46cd 100644 --- a/samples/client/petstore/R/R/category.R +++ b/samples/client/petstore/R/R/category.R @@ -199,26 +199,28 @@ Category <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Category$unlock() +# +## Below is an example to define the print fnuction +#Category$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Category$lock() diff --git a/samples/client/petstore/R/R/danish_pig.R b/samples/client/petstore/R/R/danish_pig.R index ae926fb8021..615ed1f465f 100644 --- a/samples/client/petstore/R/R/danish_pig.R +++ b/samples/client/petstore/R/R/danish_pig.R @@ -223,26 +223,28 @@ DanishPig <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#DanishPig$unlock() +# +## Below is an example to define the print fnuction +#DanishPig$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#DanishPig$lock() diff --git a/samples/client/petstore/R/R/dog.R b/samples/client/petstore/R/R/dog.R index 25a7d14396a..e387c368aca 100644 --- a/samples/client/petstore/R/R/dog.R +++ b/samples/client/petstore/R/R/dog.R @@ -231,26 +231,28 @@ Dog <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Dog$unlock() +# +## Below is an example to define the print fnuction +#Dog$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Dog$lock() diff --git a/samples/client/petstore/R/R/dog_all_of.R b/samples/client/petstore/R/R/dog_all_of.R index 8eb7912a406..c9408b089be 100644 --- a/samples/client/petstore/R/R/dog_all_of.R +++ b/samples/client/petstore/R/R/dog_all_of.R @@ -168,26 +168,28 @@ DogAllOf <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#DogAllOf$unlock() +# +## Below is an example to define the print fnuction +#DogAllOf$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#DogAllOf$lock() diff --git a/samples/client/petstore/R/R/fake_api.R b/samples/client/petstore/R/R/fake_api.R index dca5e1d312f..e8e9e6d9e79 100644 --- a/samples/client/petstore/R/R/fake_api.R +++ b/samples/client/petstore/R/R/fake_api.R @@ -7,7 +7,7 @@ #' #' @docType class #' @title Fake operations -#' @description +#' @description FakeApi #' @format An \code{R6Class} generator object #' @field api_client Handles the client-server communication. #' diff --git a/samples/client/petstore/R/R/mammal.R b/samples/client/petstore/R/R/mammal.R index 14857c098e4..4b21d8564cd 100644 --- a/samples/client/petstore/R/R/mammal.R +++ b/samples/client/petstore/R/R/mammal.R @@ -172,26 +172,29 @@ Mammal <- R6::R6Class( ) jsoncontent <- paste(jsoncontent, collapse = ",") as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) } ), # 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 -Mammal$unlock() - -#' Print the object -#' -#' @description -#' Print the object -#' -#' @export -Mammal$set("public", "print", function(...) { - print(jsonlite::prettify(self$toJSONString())) - invisible(self) -}) - -# Lock the class to prevent modifications to the method or field -Mammal$lock() +## Uncomment below to unlock the class to allow modifications of the method or field +#Mammal$unlock() +# +## Below is an example to define the print fnuction +#Mammal$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Mammal$lock() diff --git a/samples/client/petstore/R/R/model_api_response.R b/samples/client/petstore/R/R/model_api_response.R index ed0f63e51b8..d0ce1ebbaf1 100644 --- a/samples/client/petstore/R/R/model_api_response.R +++ b/samples/client/petstore/R/R/model_api_response.R @@ -214,26 +214,28 @@ ModelApiResponse <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#ModelApiResponse$unlock() +# +## Below is an example to define the print fnuction +#ModelApiResponse$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#ModelApiResponse$lock() diff --git a/samples/client/petstore/R/R/nested_one_of.R b/samples/client/petstore/R/R/nested_one_of.R index 4aa8162d7eb..70e9489af28 100644 --- a/samples/client/petstore/R/R/nested_one_of.R +++ b/samples/client/petstore/R/R/nested_one_of.R @@ -193,26 +193,28 @@ NestedOneOf <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#NestedOneOf$unlock() +# +## Below is an example to define the print fnuction +#NestedOneOf$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#NestedOneOf$lock() diff --git a/samples/client/petstore/R/R/one_of_primitive_type_test.R b/samples/client/petstore/R/R/one_of_primitive_type_test.R index 3696388d436..d558c0eb507 100644 --- a/samples/client/petstore/R/R/one_of_primitive_type_test.R +++ b/samples/client/petstore/R/R/one_of_primitive_type_test.R @@ -174,26 +174,29 @@ OneOfPrimitiveTypeTest <- R6::R6Class( ) jsoncontent <- paste(jsoncontent, collapse = ",") as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) } ), # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#OneOfPrimitiveTypeTest$unlock() +# +## Below is an example to define the print fnuction +#OneOfPrimitiveTypeTest$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#OneOfPrimitiveTypeTest$lock() diff --git a/samples/client/petstore/R/R/order.R b/samples/client/petstore/R/R/order.R index 706f12c60e5..d8b98bbacc7 100644 --- a/samples/client/petstore/R/R/order.R +++ b/samples/client/petstore/R/R/order.R @@ -283,26 +283,28 @@ Order <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Order$unlock() +# +## Below is an example to define the print fnuction +#Order$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Order$lock() diff --git a/samples/client/petstore/R/R/pet.R b/samples/client/petstore/R/R/pet.R index f6cb7a3d669..ce54a2dcd6f 100644 --- a/samples/client/petstore/R/R/pet.R +++ b/samples/client/petstore/R/R/pet.R @@ -320,26 +320,28 @@ Pet <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Pet$unlock() +# +## Below is an example to define the print fnuction +#Pet$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Pet$lock() diff --git a/samples/client/petstore/R/R/pet_api.R b/samples/client/petstore/R/R/pet_api.R index c107111865d..d9033386bd9 100644 --- a/samples/client/petstore/R/R/pet_api.R +++ b/samples/client/petstore/R/R/pet_api.R @@ -7,7 +7,7 @@ #' #' @docType class #' @title Pet operations -#' @description +#' @description PetApi #' @format An \code{R6Class} generator object #' @field api_client Handles the client-server communication. #' diff --git a/samples/client/petstore/R/R/pig.R b/samples/client/petstore/R/R/pig.R index ee046be77ff..6cb6b568abf 100644 --- a/samples/client/petstore/R/R/pig.R +++ b/samples/client/petstore/R/R/pig.R @@ -172,26 +172,29 @@ Pig <- R6::R6Class( ) jsoncontent <- paste(jsoncontent, collapse = ",") as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) } ), # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Pig$unlock() +# +## Below is an example to define the print fnuction +#Pig$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Pig$lock() diff --git a/samples/client/petstore/R/R/special.R b/samples/client/petstore/R/R/special.R index 6f6a2bee918..6227f01c962 100644 --- a/samples/client/petstore/R/R/special.R +++ b/samples/client/petstore/R/R/special.R @@ -283,26 +283,28 @@ Special <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Special$unlock() +# +## Below is an example to define the print fnuction +#Special$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Special$lock() diff --git a/samples/client/petstore/R/R/store_api.R b/samples/client/petstore/R/R/store_api.R index 72f71e70346..e90ba71de06 100644 --- a/samples/client/petstore/R/R/store_api.R +++ b/samples/client/petstore/R/R/store_api.R @@ -7,7 +7,7 @@ #' #' @docType class #' @title Store operations -#' @description +#' @description StoreApi #' @format An \code{R6Class} generator object #' @field api_client Handles the client-server communication. #' diff --git a/samples/client/petstore/R/R/tag.R b/samples/client/petstore/R/R/tag.R index 639c14c4dd5..eaeea9fdb0f 100644 --- a/samples/client/petstore/R/R/tag.R +++ b/samples/client/petstore/R/R/tag.R @@ -191,26 +191,28 @@ Tag <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#Tag$unlock() +# +## Below is an example to define the print fnuction +#Tag$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Tag$lock() diff --git a/samples/client/petstore/R/R/update_pet_request.R b/samples/client/petstore/R/R/update_pet_request.R index 8e5d1689a4c..e0d603b7ffb 100644 --- a/samples/client/petstore/R/R/update_pet_request.R +++ b/samples/client/petstore/R/R/update_pet_request.R @@ -192,26 +192,28 @@ UpdatePetRequest <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#UpdatePetRequest$unlock() +# +## Below is an example to define the print fnuction +#UpdatePetRequest$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#UpdatePetRequest$lock() diff --git a/samples/client/petstore/R/R/user.R b/samples/client/petstore/R/R/user.R index 1be67705420..33b090fb563 100644 --- a/samples/client/petstore/R/R/user.R +++ b/samples/client/petstore/R/R/user.R @@ -329,26 +329,28 @@ User <- R6::R6Class( getInvalidFields = function() { invalid_fields <- list() invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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() +## Uncomment below to unlock the class to allow modifications of the method or field +#User$unlock() +# +## Below is an example to define the print fnuction +#User$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#User$lock() diff --git a/samples/client/petstore/R/R/user_api.R b/samples/client/petstore/R/R/user_api.R index 32ef23ab646..c29e46736b4 100644 --- a/samples/client/petstore/R/R/user_api.R +++ b/samples/client/petstore/R/R/user_api.R @@ -7,7 +7,7 @@ #' #' @docType class #' @title User operations -#' @description +#' @description UserApi #' @format An \code{R6Class} generator object #' @field api_client Handles the client-server communication. #' diff --git a/samples/client/petstore/R/R/whale.R b/samples/client/petstore/R/R/whale.R index 458f5d6f86c..2dae2424369 100644 --- a/samples/client/petstore/R/R/whale.R +++ b/samples/client/petstore/R/R/whale.R @@ -230,26 +230,28 @@ Whale <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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 -Whale$unlock() - -#' Print the object -#' -#' @description -#' Print the object -#' -#' @export -Whale$set("public", "print", function(...) { - print(jsonlite::prettify(self$toJSONString())) - invisible(self) -}) - -# Lock the class to prevent modifications to the method or field -Whale$lock() +## Uncomment below to unlock the class to allow modifications of the method or field +#Whale$unlock() +# +## Below is an example to define the print fnuction +#Whale$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Whale$lock() diff --git a/samples/client/petstore/R/R/zebra.R b/samples/client/petstore/R/R/zebra.R index 4250d51d39c..177f5e48fb2 100644 --- a/samples/client/petstore/R/R/zebra.R +++ b/samples/client/petstore/R/R/zebra.R @@ -207,26 +207,28 @@ Zebra <- R6::R6Class( } invalid_fields - } - ), - # Lock the class to prevent modifications to the method or field - lock_class = TRUE + }, + #' Print the object + #' + #' @description + #' Print the object + #' + #' @export + print = function() { + print(jsonlite::prettify(self$toJSONString())) + invisible(self) + }), + # 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 -Zebra$unlock() - -#' Print the object -#' -#' @description -#' Print the object -#' -#' @export -Zebra$set("public", "print", function(...) { - print(jsonlite::prettify(self$toJSONString())) - invisible(self) -}) - -# Lock the class to prevent modifications to the method or field -Zebra$lock() +## Uncomment below to unlock the class to allow modifications of the method or field +#Zebra$unlock() +# +## Below is an example to define the print fnuction +#Zebra$set("public", "print", function(...) { +# print(jsonlite::prettify(self$toJSONString())) +# invisible(self) +#}) +## Uncomment below to lock the class to prevent modifications to the method or field +#Zebra$lock()