-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4,546 changed files
with
92,229 additions
and
207,267 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
Package: datarobot.apicore | ||
Title: R Package Client for Public API | ||
Version: 0.2.0.9000 | ||
Version: 0.4.0.9000 | ||
Authors@R: person("AJ Alon", email = "[email protected]", role = c("aut", "cre")) | ||
Description: DataRobot's Public facing API | ||
URL: https://github.com/datarobot/public_api_R_client | ||
BugReports: https://github.com/datarobot/public_api_R_client/issues | ||
URL: https://github.com/datarobot/rsdk | ||
BugReports: https://github.com/datarobot/rsdk/issues | ||
Depends: R (>= 3.3) | ||
Encoding: UTF-8 | ||
License: file LICENSE | ||
Suggests: testthat | ||
Imports: jsonlite, httr, R6 | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 7.1.2 | ||
RoxygenNote: 7.2.1 | ||
NeedsCompilation: no | ||
Packaged: 2022-06-07 05:30:18 UTC; aj | ||
Packaged: 2022-10-26 01:16:17 UTC; user | ||
Author: AJ Alon [aut, cre] | ||
Maintainer: AJ Alon <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright 2021 DataRobot, Inc. and its affiliates. | ||
# Copyright 2021-2022 DataRobot, Inc. and its affiliates. | ||
# | ||
# All rights reserved. | ||
# | ||
|
@@ -11,7 +11,7 @@ | |
# | ||
# DataRobot's Public facing API | ||
# | ||
# The version of the OpenAPI document: 2.28.0 | ||
# The version of the OpenAPI document: 2.29.0 | ||
# Contact: [email protected] | ||
# Generated by: https://openapi-generator.tech | ||
|
||
|
@@ -37,10 +37,11 @@ AccessControl <- R6::R6Class( | |
"AccessControl", | ||
lock_objects = FALSE, | ||
private = list( | ||
# @description The properties of this object that are required to be set. | ||
# @description A helper function to handle assist with type validation. This function will validate class parameters with definite | ||
# types assigned to them, as well as handling validation of parameters with anyOf and oneOf types listed. These types | ||
# can themselves be other R6 objects. | ||
validateProps = function(canShare = NULL, role = NULL, userId = NULL, username = NULL) { | ||
validateProps = function(`canShare` = NULL, `role` = NULL, `userId` = NULL, `username` = NULL) { | ||
if (!is.null(`canShare`)) { | ||
stopifnot(is.logical(`canShare`), length(`canShare`) == 1) | ||
} | ||
|
@@ -69,9 +70,10 @@ AccessControl <- R6::R6Class( | |
#' @param ... Any additional keyword arguments to be passed into this object for initialization. | ||
initialize = function(`canShare` = NULL, `role` = NULL, `userId` = NULL, `username` = NULL, validateParams = FALSE, ...) { | ||
local.optional.var <- list(...) | ||
requiredProps <- list(`canShare`, `role`, `userId`, `username`) | ||
if (validateParams) { | ||
lapply(requiredProps, missing) | ||
lapply(list(`canShare`, `role`, `userId`, `username`), function(param) { | ||
stopifnot("Required param not set." = !is.null(param)) | ||
}) | ||
private$validateProps(canShare, role, userId, username) | ||
} | ||
self$`canShare` <- `canShare` | ||
|
@@ -81,9 +83,9 @@ AccessControl <- R6::R6Class( | |
}, | ||
#' @description A helper function that provides public access to the private validateProps function. This allows users the ability | ||
#' to programmatically validate objects before sending them to DataRobot. | ||
#' checking this objects set properties. | ||
validate = function() { | ||
props <- list(canShare = self$`canShare`, role = self$`role`, userId = self$`userId`, username = self$`username`) | ||
do.call(private$validateProps, props) | ||
do.call(private$validateProps, list(canShare = self$`canShare`, role = self$`role`, userId = self$`userId`, username = self$`username`)) | ||
}, | ||
#' @description A helper function that serializes this object into a JSON encoded string. | ||
toJSON = function() { | ||
|
Oops, something went wrong.