move print to public method, leave commented code to lock, unlock the class (#13342)

This commit is contained in:
William Cheng 2022-09-03 14:03:03 +08:00 committed by GitHub
parent b6576d1173
commit 2bfbb87862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
89 changed files with 1691 additions and 1526 deletions

View File

@ -2,7 +2,7 @@
{{#operations}} {{#operations}}
#' @docType class #' @docType class
#' @title {{baseName}} operations #' @title {{baseName}} operations
#' @description {{{description}}} #' @description {{{description}}}{{^description}}{{{classname}}}{{/description}}
#' @format An \code{R6Class} generator object #' @format An \code{R6Class} generator object
#' @field api_client Handles the client-server communication. #' @field api_client Handles the client-server communication.
#' #'

View File

@ -151,26 +151,28 @@
) )
jsoncontent <- paste(jsoncontent, collapse = ",") jsoncontent <- paste(jsoncontent, collapse = ",")
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #{{classname}}$unlock()
{{classname}}$unlock() #
## Below is an example to define the print fnuction
#' Print the object #{{classname}}$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #{{classname}}$lock()
{{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()

View File

@ -526,25 +526,27 @@
{{/hasValidation}} {{/hasValidation}}
{{/allVars}} {{/allVars}}
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #{{classname}}$unlock()
{{classname}}$unlock() #
## Below is an example to define the print fnuction
#' Print the object #{{classname}}$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #{{classname}}$lock()
{{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()

View File

@ -199,25 +199,28 @@
) )
jsoncontent <- paste(jsoncontent, collapse = ",") jsoncontent <- paste(jsoncontent, collapse = ",")
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #{{classname}}$unlock()
{{classname}}$unlock() #
## Below is an example to define the print fnuction
#' Print the object #{{classname}}$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #{{classname}}$lock()
{{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()

View File

@ -260,26 +260,28 @@ AllofTagApiResponse <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #AllofTagApiResponse$unlock()
AllofTagApiResponse$unlock() #
## Below is an example to define the print fnuction
#' Print the object #AllofTagApiResponse$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #AllofTagApiResponse$lock()
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()

View File

@ -207,26 +207,28 @@ Animal <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Animal$unlock()
Animal$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Animal$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Animal$lock()
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()

View File

@ -156,27 +156,29 @@ AnyOfPig <- R6::R6Class(
) )
jsoncontent <- paste(jsoncontent, collapse = ",") jsoncontent <- paste(jsoncontent, collapse = ",")
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #AnyOfPig$unlock()
AnyOfPig$unlock() #
## Below is an example to define the print fnuction
#' Print the object #AnyOfPig$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #AnyOfPig$lock()
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()

View File

@ -174,26 +174,29 @@ AnyOfPrimitiveTypeTest <- R6::R6Class(
) )
jsoncontent <- paste(jsoncontent, collapse = ",") jsoncontent <- paste(jsoncontent, collapse = ",")
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #AnyOfPrimitiveTypeTest$unlock()
AnyOfPrimitiveTypeTest$unlock() #
## Below is an example to define the print fnuction
#' Print the object #AnyOfPrimitiveTypeTest$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #AnyOfPrimitiveTypeTest$lock()
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()

View File

@ -223,26 +223,28 @@ BasquePig <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #BasquePig$unlock()
BasquePig$unlock() #
## Below is an example to define the print fnuction
#' Print the object #BasquePig$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #BasquePig$lock()
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()

View File

@ -231,26 +231,28 @@ Cat <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Cat$unlock()
Cat$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Cat$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Cat$lock()
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()

View File

@ -168,26 +168,28 @@ CatAllOf <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #CatAllOf$unlock()
CatAllOf$unlock() #
## Below is an example to define the print fnuction
#' Print the object #CatAllOf$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #CatAllOf$lock()
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()

View File

@ -199,26 +199,28 @@ Category <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Category$unlock()
Category$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Category$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Category$lock()
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()

View File

@ -223,26 +223,28 @@ DanishPig <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #DanishPig$unlock()
DanishPig$unlock() #
## Below is an example to define the print fnuction
#' Print the object #DanishPig$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #DanishPig$lock()
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()

View File

@ -231,26 +231,28 @@ Dog <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Dog$unlock()
Dog$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Dog$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Dog$lock()
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()

View File

@ -168,26 +168,28 @@ DogAllOf <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #DogAllOf$unlock()
DogAllOf$unlock() #
## Below is an example to define the print fnuction
#' Print the object #DogAllOf$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #DogAllOf$lock()
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()

View File

@ -7,7 +7,7 @@
#' #'
#' @docType class #' @docType class
#' @title Fake operations #' @title Fake operations
#' @description #' @description FakeApi
#' @format An \code{R6Class} generator object #' @format An \code{R6Class} generator object
#' @field api_client Handles the client-server communication. #' @field api_client Handles the client-server communication.
#' #'

View File

@ -195,26 +195,29 @@ Mammal <- R6::R6Class(
) )
jsoncontent <- paste(jsoncontent, collapse = ",") jsoncontent <- paste(jsoncontent, collapse = ",")
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Mammal$unlock()
Mammal$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Mammal$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Mammal$lock()
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()

View File

@ -214,26 +214,28 @@ ModelApiResponse <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #ModelApiResponse$unlock()
ModelApiResponse$unlock() #
## Below is an example to define the print fnuction
#' Print the object #ModelApiResponse$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #ModelApiResponse$lock()
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()

View File

@ -193,26 +193,28 @@ NestedOneOf <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #NestedOneOf$unlock()
NestedOneOf$unlock() #
## Below is an example to define the print fnuction
#' Print the object #NestedOneOf$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #NestedOneOf$lock()
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()

View File

@ -174,26 +174,29 @@ OneOfPrimitiveTypeTest <- R6::R6Class(
) )
jsoncontent <- paste(jsoncontent, collapse = ",") jsoncontent <- paste(jsoncontent, collapse = ",")
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #OneOfPrimitiveTypeTest$unlock()
OneOfPrimitiveTypeTest$unlock() #
## Below is an example to define the print fnuction
#' Print the object #OneOfPrimitiveTypeTest$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #OneOfPrimitiveTypeTest$lock()
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()

View File

@ -283,26 +283,28 @@ Order <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Order$unlock()
Order$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Order$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Order$lock()
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()

View File

@ -320,26 +320,28 @@ Pet <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Pet$unlock()
Pet$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Pet$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Pet$lock()
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()

View File

@ -7,7 +7,7 @@
#' #'
#' @docType class #' @docType class
#' @title Pet operations #' @title Pet operations
#' @description #' @description PetApi
#' @format An \code{R6Class} generator object #' @format An \code{R6Class} generator object
#' @field api_client Handles the client-server communication. #' @field api_client Handles the client-server communication.
#' #'

View File

@ -195,26 +195,29 @@ Pig <- R6::R6Class(
) )
jsoncontent <- paste(jsoncontent, collapse = ",") jsoncontent <- paste(jsoncontent, collapse = ",")
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Pig$unlock()
Pig$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Pig$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Pig$lock()
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()

View File

@ -283,26 +283,28 @@ Special <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Special$unlock()
Special$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Special$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Special$lock()
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()

View File

@ -7,7 +7,7 @@
#' #'
#' @docType class #' @docType class
#' @title Store operations #' @title Store operations
#' @description #' @description StoreApi
#' @format An \code{R6Class} generator object #' @format An \code{R6Class} generator object
#' @field api_client Handles the client-server communication. #' @field api_client Handles the client-server communication.
#' #'

View File

@ -191,26 +191,28 @@ Tag <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Tag$unlock()
Tag$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Tag$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Tag$lock()
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()

View File

@ -192,26 +192,28 @@ UpdatePetRequest <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #UpdatePetRequest$unlock()
UpdatePetRequest$unlock() #
## Below is an example to define the print fnuction
#' Print the object #UpdatePetRequest$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #UpdatePetRequest$lock()
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()

View File

@ -329,26 +329,28 @@ User <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #User$unlock()
User$unlock() #
## Below is an example to define the print fnuction
#' Print the object #User$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #User$lock()
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()

View File

@ -7,7 +7,7 @@
#' #'
#' @docType class #' @docType class
#' @title User operations #' @title User operations
#' @description #' @description UserApi
#' @format An \code{R6Class} generator object #' @format An \code{R6Class} generator object
#' @field api_client Handles the client-server communication. #' @field api_client Handles the client-server communication.
#' #'

View File

@ -230,26 +230,28 @@ Whale <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Whale$unlock()
Whale$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Whale$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Whale$lock()
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()

View File

@ -207,26 +207,28 @@ Zebra <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Zebra$unlock()
Zebra$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Zebra$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Zebra$lock()
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()

View File

@ -9,8 +9,10 @@ t$additional_properties <- c("abc" = 849, "array" = list('a', 'b', 'c'))
t$additional_properties t$additional_properties
t$additional_properties["abc"] t$additional_properties["abc"]
t$additional_properties["array"] t$additional_properties["array"]
print(t$toJSON())
print(t$toJSONString()) print(t)
#print(t$toJSON())
#print(t$toJSONString())
print("done tag") print("done tag")

View File

@ -227,26 +227,28 @@ AllofTagApiResponse <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #AllofTagApiResponse$unlock()
AllofTagApiResponse$unlock() #
## Below is an example to define the print fnuction
#' Print the object #AllofTagApiResponse$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #AllofTagApiResponse$lock()
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()

View File

@ -174,26 +174,28 @@ Animal <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Animal$unlock()
Animal$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Animal$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Animal$lock()
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()

View File

@ -156,27 +156,29 @@ AnyOfPig <- R6::R6Class(
) )
jsoncontent <- paste(jsoncontent, collapse = ",") jsoncontent <- paste(jsoncontent, collapse = ",")
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #AnyOfPig$unlock()
AnyOfPig$unlock() #
## Below is an example to define the print fnuction
#' Print the object #AnyOfPig$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #AnyOfPig$lock()
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()

View File

@ -174,26 +174,29 @@ AnyOfPrimitiveTypeTest <- R6::R6Class(
) )
jsoncontent <- paste(jsoncontent, collapse = ",") jsoncontent <- paste(jsoncontent, collapse = ",")
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #AnyOfPrimitiveTypeTest$unlock()
AnyOfPrimitiveTypeTest$unlock() #
## Below is an example to define the print fnuction
#' Print the object #AnyOfPrimitiveTypeTest$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #AnyOfPrimitiveTypeTest$lock()
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()

View File

@ -190,26 +190,28 @@ BasquePig <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #BasquePig$unlock()
BasquePig$unlock() #
## Below is an example to define the print fnuction
#' Print the object #BasquePig$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #BasquePig$lock()
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()

View File

@ -198,26 +198,28 @@ Cat <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Cat$unlock()
Cat$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Cat$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Cat$lock()
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()

View File

@ -135,26 +135,28 @@ CatAllOf <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #CatAllOf$unlock()
CatAllOf$unlock() #
## Below is an example to define the print fnuction
#' Print the object #CatAllOf$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #CatAllOf$lock()
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()

View File

@ -166,26 +166,28 @@ Category <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Category$unlock()
Category$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Category$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Category$lock()
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()

View File

@ -190,26 +190,28 @@ DanishPig <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #DanishPig$unlock()
DanishPig$unlock() #
## Below is an example to define the print fnuction
#' Print the object #DanishPig$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #DanishPig$lock()
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()

View File

@ -198,26 +198,28 @@ Dog <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Dog$unlock()
Dog$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Dog$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Dog$lock()
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()

View File

@ -135,26 +135,28 @@ DogAllOf <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #DogAllOf$unlock()
DogAllOf$unlock() #
## Below is an example to define the print fnuction
#' Print the object #DogAllOf$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #DogAllOf$lock()
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()

View File

@ -7,7 +7,7 @@
#' #'
#' @docType class #' @docType class
#' @title Fake operations #' @title Fake operations
#' @description #' @description FakeApi
#' @format An \code{R6Class} generator object #' @format An \code{R6Class} generator object
#' @field api_client Handles the client-server communication. #' @field api_client Handles the client-server communication.
#' #'

View File

@ -172,26 +172,29 @@ Mammal <- R6::R6Class(
) )
jsoncontent <- paste(jsoncontent, collapse = ",") jsoncontent <- paste(jsoncontent, collapse = ",")
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Mammal$unlock()
Mammal$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Mammal$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Mammal$lock()
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()

View File

@ -181,26 +181,28 @@ ModelApiResponse <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #ModelApiResponse$unlock()
ModelApiResponse$unlock() #
## Below is an example to define the print fnuction
#' Print the object #ModelApiResponse$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #ModelApiResponse$lock()
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()

View File

@ -160,26 +160,28 @@ NestedOneOf <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #NestedOneOf$unlock()
NestedOneOf$unlock() #
## Below is an example to define the print fnuction
#' Print the object #NestedOneOf$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #NestedOneOf$lock()
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()

View File

@ -174,26 +174,29 @@ OneOfPrimitiveTypeTest <- R6::R6Class(
) )
jsoncontent <- paste(jsoncontent, collapse = ",") jsoncontent <- paste(jsoncontent, collapse = ",")
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #OneOfPrimitiveTypeTest$unlock()
OneOfPrimitiveTypeTest$unlock() #
## Below is an example to define the print fnuction
#' Print the object #OneOfPrimitiveTypeTest$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #OneOfPrimitiveTypeTest$lock()
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()

View File

@ -250,26 +250,28 @@ Order <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Order$unlock()
Order$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Order$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Order$lock()
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()

View File

@ -287,26 +287,28 @@ Pet <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Pet$unlock()
Pet$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Pet$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Pet$lock()
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()

View File

@ -7,7 +7,7 @@
#' #'
#' @docType class #' @docType class
#' @title Pet operations #' @title Pet operations
#' @description #' @description PetApi
#' @format An \code{R6Class} generator object #' @format An \code{R6Class} generator object
#' @field api_client Handles the client-server communication. #' @field api_client Handles the client-server communication.
#' #'

View File

@ -172,26 +172,29 @@ Pig <- R6::R6Class(
) )
jsoncontent <- paste(jsoncontent, collapse = ",") jsoncontent <- paste(jsoncontent, collapse = ",")
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Pig$unlock()
Pig$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Pig$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Pig$lock()
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()

View File

@ -250,26 +250,28 @@ Special <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Special$unlock()
Special$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Special$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Special$lock()
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()

View File

@ -7,7 +7,7 @@
#' #'
#' @docType class #' @docType class
#' @title Store operations #' @title Store operations
#' @description #' @description StoreApi
#' @format An \code{R6Class} generator object #' @format An \code{R6Class} generator object
#' @field api_client Handles the client-server communication. #' @field api_client Handles the client-server communication.
#' #'

View File

@ -158,26 +158,28 @@ Tag <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Tag$unlock()
Tag$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Tag$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Tag$lock()
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()

View File

@ -159,26 +159,28 @@ UpdatePetRequest <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #UpdatePetRequest$unlock()
UpdatePetRequest$unlock() #
## Below is an example to define the print fnuction
#' Print the object #UpdatePetRequest$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #UpdatePetRequest$lock()
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()

View File

@ -296,26 +296,28 @@ User <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #User$unlock()
User$unlock() #
## Below is an example to define the print fnuction
#' Print the object #User$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #User$lock()
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()

View File

@ -7,7 +7,7 @@
#' #'
#' @docType class #' @docType class
#' @title User operations #' @title User operations
#' @description #' @description UserApi
#' @format An \code{R6Class} generator object #' @format An \code{R6Class} generator object
#' @field api_client Handles the client-server communication. #' @field api_client Handles the client-server communication.
#' #'

View File

@ -197,26 +197,28 @@ Whale <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Whale$unlock()
Whale$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Whale$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Whale$lock()
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()

View File

@ -174,26 +174,28 @@ Zebra <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Zebra$unlock()
Zebra$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Zebra$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Zebra$lock()
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()

View File

@ -260,26 +260,28 @@ AllofTagApiResponse <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #AllofTagApiResponse$unlock()
AllofTagApiResponse$unlock() #
## Below is an example to define the print fnuction
#' Print the object #AllofTagApiResponse$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #AllofTagApiResponse$lock()
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()

View File

@ -207,26 +207,28 @@ Animal <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Animal$unlock()
Animal$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Animal$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Animal$lock()
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()

View File

@ -156,27 +156,29 @@ AnyOfPig <- R6::R6Class(
) )
jsoncontent <- paste(jsoncontent, collapse = ",") jsoncontent <- paste(jsoncontent, collapse = ",")
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #AnyOfPig$unlock()
AnyOfPig$unlock() #
## Below is an example to define the print fnuction
#' Print the object #AnyOfPig$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #AnyOfPig$lock()
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()

View File

@ -174,26 +174,29 @@ AnyOfPrimitiveTypeTest <- R6::R6Class(
) )
jsoncontent <- paste(jsoncontent, collapse = ",") jsoncontent <- paste(jsoncontent, collapse = ",")
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #AnyOfPrimitiveTypeTest$unlock()
AnyOfPrimitiveTypeTest$unlock() #
## Below is an example to define the print fnuction
#' Print the object #AnyOfPrimitiveTypeTest$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #AnyOfPrimitiveTypeTest$lock()
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()

View File

@ -223,26 +223,28 @@ BasquePig <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #BasquePig$unlock()
BasquePig$unlock() #
## Below is an example to define the print fnuction
#' Print the object #BasquePig$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #BasquePig$lock()
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()

View File

@ -231,26 +231,28 @@ Cat <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Cat$unlock()
Cat$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Cat$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Cat$lock()
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()

View File

@ -168,26 +168,28 @@ CatAllOf <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #CatAllOf$unlock()
CatAllOf$unlock() #
## Below is an example to define the print fnuction
#' Print the object #CatAllOf$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #CatAllOf$lock()
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()

View File

@ -199,26 +199,28 @@ Category <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Category$unlock()
Category$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Category$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Category$lock()
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()

View File

@ -223,26 +223,28 @@ DanishPig <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #DanishPig$unlock()
DanishPig$unlock() #
## Below is an example to define the print fnuction
#' Print the object #DanishPig$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #DanishPig$lock()
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()

View File

@ -231,26 +231,28 @@ Dog <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Dog$unlock()
Dog$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Dog$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Dog$lock()
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()

View File

@ -168,26 +168,28 @@ DogAllOf <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #DogAllOf$unlock()
DogAllOf$unlock() #
## Below is an example to define the print fnuction
#' Print the object #DogAllOf$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #DogAllOf$lock()
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()

View File

@ -7,7 +7,7 @@
#' #'
#' @docType class #' @docType class
#' @title Fake operations #' @title Fake operations
#' @description #' @description FakeApi
#' @format An \code{R6Class} generator object #' @format An \code{R6Class} generator object
#' @field api_client Handles the client-server communication. #' @field api_client Handles the client-server communication.
#' #'

View File

@ -172,26 +172,29 @@ Mammal <- R6::R6Class(
) )
jsoncontent <- paste(jsoncontent, collapse = ",") jsoncontent <- paste(jsoncontent, collapse = ",")
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Mammal$unlock()
Mammal$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Mammal$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Mammal$lock()
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()

View File

@ -214,26 +214,28 @@ ModelApiResponse <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #ModelApiResponse$unlock()
ModelApiResponse$unlock() #
## Below is an example to define the print fnuction
#' Print the object #ModelApiResponse$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #ModelApiResponse$lock()
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()

View File

@ -193,26 +193,28 @@ NestedOneOf <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #NestedOneOf$unlock()
NestedOneOf$unlock() #
## Below is an example to define the print fnuction
#' Print the object #NestedOneOf$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #NestedOneOf$lock()
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()

View File

@ -174,26 +174,29 @@ OneOfPrimitiveTypeTest <- R6::R6Class(
) )
jsoncontent <- paste(jsoncontent, collapse = ",") jsoncontent <- paste(jsoncontent, collapse = ",")
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #OneOfPrimitiveTypeTest$unlock()
OneOfPrimitiveTypeTest$unlock() #
## Below is an example to define the print fnuction
#' Print the object #OneOfPrimitiveTypeTest$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #OneOfPrimitiveTypeTest$lock()
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()

View File

@ -283,26 +283,28 @@ Order <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Order$unlock()
Order$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Order$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Order$lock()
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()

View File

@ -320,26 +320,28 @@ Pet <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Pet$unlock()
Pet$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Pet$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Pet$lock()
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()

View File

@ -7,7 +7,7 @@
#' #'
#' @docType class #' @docType class
#' @title Pet operations #' @title Pet operations
#' @description #' @description PetApi
#' @format An \code{R6Class} generator object #' @format An \code{R6Class} generator object
#' @field api_client Handles the client-server communication. #' @field api_client Handles the client-server communication.
#' #'

View File

@ -172,26 +172,29 @@ Pig <- R6::R6Class(
) )
jsoncontent <- paste(jsoncontent, collapse = ",") jsoncontent <- paste(jsoncontent, collapse = ",")
as.character(jsonlite::prettify(paste("{", jsoncontent, "}", sep = ""))) 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Pig$unlock()
Pig$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Pig$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Pig$lock()
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()

View File

@ -283,26 +283,28 @@ Special <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Special$unlock()
Special$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Special$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Special$lock()
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()

View File

@ -7,7 +7,7 @@
#' #'
#' @docType class #' @docType class
#' @title Store operations #' @title Store operations
#' @description #' @description StoreApi
#' @format An \code{R6Class} generator object #' @format An \code{R6Class} generator object
#' @field api_client Handles the client-server communication. #' @field api_client Handles the client-server communication.
#' #'

View File

@ -191,26 +191,28 @@ Tag <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Tag$unlock()
Tag$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Tag$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Tag$lock()
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()

View File

@ -192,26 +192,28 @@ UpdatePetRequest <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #UpdatePetRequest$unlock()
UpdatePetRequest$unlock() #
## Below is an example to define the print fnuction
#' Print the object #UpdatePetRequest$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #UpdatePetRequest$lock()
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()

View File

@ -329,26 +329,28 @@ User <- R6::R6Class(
getInvalidFields = function() { getInvalidFields = function() {
invalid_fields <- list() invalid_fields <- list()
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #User$unlock()
User$unlock() #
## Below is an example to define the print fnuction
#' Print the object #User$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #User$lock()
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()

View File

@ -7,7 +7,7 @@
#' #'
#' @docType class #' @docType class
#' @title User operations #' @title User operations
#' @description #' @description UserApi
#' @format An \code{R6Class} generator object #' @format An \code{R6Class} generator object
#' @field api_client Handles the client-server communication. #' @field api_client Handles the client-server communication.
#' #'

View File

@ -230,26 +230,28 @@ Whale <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Whale$unlock()
Whale$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Whale$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Whale$lock()
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()

View File

@ -207,26 +207,28 @@ Zebra <- R6::R6Class(
} }
invalid_fields invalid_fields
} },
), #' 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 the class to prevent modifications to the method or field
lock_class = TRUE lock_class = TRUE
) )
## Uncomment below to unlock the class to allow modifications of the method or field
# Unlock the class to allow modifications of the method or field #Zebra$unlock()
Zebra$unlock() #
## Below is an example to define the print fnuction
#' Print the object #Zebra$set("public", "print", function(...) {
#' # print(jsonlite::prettify(self$toJSONString()))
#' @description # invisible(self)
#' Print the object #})
#' ## Uncomment below to lock the class to prevent modifications to the method or field
#' @export #Zebra$lock()
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()