Skip to content

Commit

Permalink
2.29.0.9001
Browse files Browse the repository at this point in the history
  • Loading branch information
ahjota committed Oct 26, 2022
1 parent 212e9dd commit cb4e518
Show file tree
Hide file tree
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.
Binary file modified datarobot.apicore/.DS_Store
Binary file not shown.
10 changes: 5 additions & 5 deletions datarobot.apicore/DESCRIPTION
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]>
80 changes: 38 additions & 42 deletions datarobot.apicore/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -65,30 +65,18 @@ export(ApplicationAccessPermission)
export(ApplicationCreate)
export(ApplicationCreateResponse)
export(ApplicationCreateSources)
export(ApplicationDatasetSource)
export(ApplicationDeployment)
export(ApplicationDeploymentSource)
export(ApplicationDeploymentStateUpdate)
export(ApplicationDeploymentUpdate)
export(ApplicationDuplicate)
export(ApplicationList)
export(ApplicationModelDeploymentParam)
export(ApplicationNameAndDescription)
export(ApplicationParam)
export(ApplicationRecentEvents)
export(ApplicationRetrieve)
export(ApplicationSharedRolesEntry)
export(ApplicationSharedRolesEntryUpdate)
export(ApplicationSharedRolesList)
export(ApplicationSharingUpdateOrRemove)
export(ApplicationTypeConfiguration)
export(ApplicationTypeConfigurationDeployment)
export(ApplicationTypeListResponse)
export(ApplicationTypeRetrieveResponse)
export(ApplicationTypeUsecases)
export(ApplicationTypeUsecasesDataset)
export(ApplicationTypeUsecasesListResponse)
export(ApplicationTypeUsecasesSource)
export(ApplicationUpgradeDeploymentVersion)
export(ApplicationUserRoleResponse)
export(ApprovalPolicy)
export(ApprovalPolicyAutomaticAction)
Expand All @@ -115,6 +103,7 @@ export(AutomatedDocOptions)
export(AutomatedDocOptionsResponse)
export(AutomatiActuals)
export(Autopilot)
export(AutopilotOptions)
export(AutopilotStart)
export(AverageModelMetricsField)
export(AverageModelMetricsValues)
Expand All @@ -130,7 +119,6 @@ export(BacktestStabilityPlotData)
export(BacktestStabilityPlotResponse)
export(BacktestStatusResponse)
export(Backtests)
export(BaseBlenderBuilderCreate)
export(BaseConstraintType)
export(BaseDependencyBuildMetadataResponse)
export(BasicCredentials)
Expand Down Expand Up @@ -161,6 +149,9 @@ export(BatchPredictionJobTimeSeriesSettingsHistorical)
export(BatchPredictionJobUpdate)
export(BatchPredictionStatus)
export(BiasAndFairness)
export(BiasMitigatedModelsDataResponse)
export(BiasMitigatedModelsListResponse)
export(BiasMitigationModelCreate)
export(BiasVsAccuracyInsight)
export(BiasVsAccuracyInsightRetrieve)
export(BiasVsAccuracyModels)
Expand Down Expand Up @@ -209,14 +200,6 @@ export(ChallengerScore)
export(ChallengerUpdate)
export(Challengers)
export(ChangeRequestCreate)
export(ChangeRequestCreateOneOf)
export(ChangeRequestCreateOneOf1)
export(ChangeRequestCreateOneOf2)
export(ChangeRequestCreateOneOf3)
export(ChangeRequestCreateOneOf4)
export(ChangeRequestCreateOneOf5)
export(ChangeRequestCreateOneOf6)
export(ChangeRequestCreateOneOf7)
export(ChangeRequestDiff)
export(ChangeRequestInfoListResponse)
export(ChangeRequestInfoResponse)
Expand Down Expand Up @@ -282,13 +265,6 @@ export(CredentialId)
export(CredentialsAssociationUpdate)
export(CredentialsAssociationsData)
export(CredentialsBody)
export(CredentialsBodyOneOf)
export(CredentialsBodyOneOf1)
export(CredentialsBodyOneOf2)
export(CredentialsBodyOneOf3)
export(CredentialsBodyOneOf4)
export(CredentialsBodyOneOf5)
export(CredentialsBodyOneOf6)
export(CredentialsListAssociationsResponse)
export(CredentialsListResponse)
export(CredentialsToAdd)
Expand Down Expand Up @@ -384,6 +360,7 @@ export(DataStoreTables)
export(DataStoreTablesList)
export(DataStoreTestResponse)
export(DataStoreUpdate)
export(Dataset)
export(DatasetAccessControlListResponse)
export(DatasetAccessControlResponse)
export(DatasetAccessInner)
Expand Down Expand Up @@ -439,19 +416,19 @@ export(DeletedProjectListResponse)
export(DeletedProjectOrganization)
export(DeletedProjectResponse)
export(DeletedProjectUser)
export(DemoApplication)
export(DependencyBuildLogResponse)
export(DependencyConstraint)
export(DependencyResponse)
export(DeploymentAccuracyHealthResponse)
export(DeploymentActuals)
export(DeploymentApproveChange)
export(DeploymentCapabilitiesResponse)
export(DeploymentCapabilitiesRetrieveResponse)
export(DeploymentCapability)
export(DeploymentChangeImportanceChange)
export(DeploymentChangeStatusChange)
export(DeploymentCleanupStatsChange)
export(DeploymentCreateFromLearningModel)
export(DeploymentCreateFromProjectRecommendedModel)
export(DeploymentCreateResponse)
export(DeploymentDatasetCreate)
export(DeploymentDefaultPredictionServerResponse)
Expand Down Expand Up @@ -480,14 +457,17 @@ export(DeploymentServiceHealthResponse)
export(DeploymentSettingsInfo)
export(DeploymentSettingsResponse)
export(DeploymentSettingsUpdate)
export(DeploymentStatusUpdate)
export(DeploymentTargetDriftResponse)
export(DeploymentUpdate)
export(DeploymentUpdateSecondaryDatasetConfigChange)
export(DeploymentsScoringCodeBuildPayload)
export(DeprecatedCustomModelWorkspaceItemResponse)
export(DeprecatedTrainingDataAssignment)
export(DerivedFeatures)
export(DiscardedFeaturesResponse)
export(DocTypeSpecificInfo)
export(DocumentFeature)
export(DrUserId)
export(DriverConfigurationListResponse)
export(DriverConfigurationRetrieveResponse)
Expand Down Expand Up @@ -538,6 +518,8 @@ export(FeatureDiscoveryRecipeSQLsExport)
export(FeatureDiscoverySetting)
export(FeatureDiscoverySettingResponse)
export(FeatureDrift)
export(FeatureDriftOverTimeBucket)
export(FeatureDriftOverTimeRetrieveResponse)
export(FeatureDriftUpdate)
export(FeatureEffectCreate)
export(FeatureEffects)
Expand Down Expand Up @@ -595,7 +577,6 @@ export(FromLatest)
export(FromSpecific)
export(FrozenModelCreate)
export(FrozenModelListResponse)
export(FrozenModelRetrieveResponse)
export(FullDatasetDetailsResponse)
export(GCPDataStreamer)
export(GCPIntake)
Expand Down Expand Up @@ -649,7 +630,6 @@ export(ImageAugmentationSamplesRequest)
export(ImageAugmentationSamplesResponse)
export(ImageBinsListResponse)
export(ImageEmbedding)
export(ImageEmbeddingPrediction)
export(ImageEmbeddingsComputeResponse)
export(ImageFeature)
export(ImageInsights)
Expand All @@ -658,9 +638,7 @@ export(ImageMetadataListResponse)
export(ImageMetadataResponse)
export(ImageMetadataWithBins)
export(ImagesDataQualityLogLinesResponse)
export(ImortedModelUpdatePayload)
export(ImportedModelListResponse)
export(ImportedModelRetrieveResponse)
export(InsightsPredictionField)
export(InstructionsField)
export(Int)
export(IntList)
Expand Down Expand Up @@ -696,6 +674,7 @@ export(LocalFileDataStreamer)
export(LocalFileIntake)
export(LocalFileOutput)
export(LocalFileOutputAdaptor)
export(MessagesInfo)
export(MissingReportRetrieve)
export(ModelAdvancedTuning)
export(ModelCapabilitiesRetrieveResponse)
Expand All @@ -706,14 +685,15 @@ export(ModelConfusionChartListResponse)
export(ModelConfusionChartMetadataRetrieveResponse)
export(ModelConfusionChartRetrieveResponse)
export(ModelDetailsResponse)
export(ModelExport)
export(ModelFeatureListResponse)
export(ModelJobResponse)
export(ModelLiftChartListResponse)
export(ModelLiftChartResponse)
export(ModelPacakgeScoringCodeMeta)
export(ModelPackageBiasAndFairness)
export(ModelPackageCapabilities)
export(ModelPackageCapabilitiesRetrieveResponse)
export(ModelPackageCapability)
export(ModelPackageCreateFromLearningModel)
export(ModelPackageDatasets)
export(ModelPackageImportMeta)
Expand Down Expand Up @@ -749,6 +729,7 @@ export(ModelingFeaturesCreateFromDiscardedResponse)
export(ModelingJobListResponse)
export(ModifyUsersInGroup)
export(MonetaryValue)
export(MonitoringDataDeletePayload)
export(MulticategoricalHistogram)
export(MulticategoricalHistogramItem)
export(MulticategoricalInvalidFormatErrorData)
Expand Down Expand Up @@ -805,6 +786,7 @@ export(NumIterationsTrainedResponse)
export(Numeric)
export(NumericFeature)
export(OAuthCredentials)
export(OneMessageInfo)
export(OptimizedDatetimePartitioningData)
export(OptimizedDatetimePartitioningList)
export(OptimizedDatetimePartitioningListResponse)
Expand Down Expand Up @@ -836,6 +818,8 @@ export(ParetoFrontResponse)
export(PartialDependence)
export(PartialDependenceData)
export(Partition)
export(PartitioningExtendedWarning)
export(PartitioningSingleExtendedWarning)
export(PartitioningWarning)
export(PasswordCredentials)
export(PatchDataset)
Expand All @@ -856,6 +840,8 @@ export(PerValueStatisticTextListItem)
export(PerValueStatistics)
export(PerValueStatisticsListItem)
export(Periodicity)
export(PermutationFeatureImpactCreatePayload)
export(PermutationFeatureImpactResponse)
export(PersistentModelLogsRetrieveResponse)
export(PlotDataResponse)
export(PolicyUserGroup)
Expand All @@ -869,6 +855,7 @@ export(PredictionDataSource)
export(PredictionDatasetAssignment)
export(PredictionDatasetListControllerResponse)
export(PredictionDatasetRetrieveResponse)
export(PredictionEnvironment)
export(PredictionEnvironmentResponse)
export(PredictionExplanation)
export(PredictionExplanationsCreate)
Expand Down Expand Up @@ -929,9 +916,9 @@ export(ProjectNukeJobListStatus)
export(ProjectNukeJobStatus)
export(ProjectNukeJobStatusSummary)
export(ProjectNukeJobStatusSummaryObject)
export(ProjectOptions)
export(ProjectPartitionResponse)
export(ProjectPermadeleteStatus)
export(ProjectRecommenderResponse)
export(ProjectRecover)
export(ProjectRecoverResponse)
export(ProjectRetrieveResponse)
Expand All @@ -948,9 +935,7 @@ export(RatingTableModelDetailsResponse)
export(RatingTableRetrieveResponse)
export(RatingTableUpdate)
export(Reasons)
export(RecentEventsMetadata)
export(RecommendedModelResponse)
export(Recommender)
export(Relationship)
export(RelationshipResponse)
export(RelationshipsConfigCreate)
Expand All @@ -966,6 +951,16 @@ export(ResourceUsageResponse)
export(ResponseNotification)
export(RetrainDatetimeModel)
export(RetrainModel)
export(RetrainingPolicyCreate)
export(RetrainingPolicyListResponse)
export(RetrainingPolicyRetrieve)
export(RetrainingPolicyRunListResponse)
export(RetrainingPolicyRunRetrieve)
export(RetrainingPolicyRunUpdate)
export(RetrainingPolicyUpdate)
export(RetrainingSettingsRetrieve)
export(RetrainingSettingsUpdate)
export(RetrainingUser)
export(RetrieveDataEngineQueryResponse)
export(RetrieveListPredictionMetadataObjectsResponse)
export(RetrievePredictionMetadataObject)
Expand Down Expand Up @@ -1030,6 +1025,7 @@ export(Select)
export(SeriesAccuracyCompute)
export(SeriesAccuracyRetrieveDataResponse)
export(SeriesAccuracyRetrieveResponse)
export(ServerSideEncryption)
export(ServiceStatsMetrics)
export(ServiceStatsOverTimeBucket)
export(ServiceStatsOverTimeResponse)
Expand Down Expand Up @@ -1058,7 +1054,6 @@ export(SharingListV2Response)
export(SharingRoleUpdateData)
export(SharingUpdateOrRemove)
export(SharingUpdateOrRemoveWithGrant)
export(SingleModelFilePayload)
export(SnowflakeDataStreamer)
export(SnowflakeIntake)
export(SnowflakeOutput)
Expand Down Expand Up @@ -1092,11 +1087,11 @@ export(TextFeature)
export(TimeDelta)
export(TimeRange)
export(TimeSeriesFeatureLogListControllerResponse)
export(TimeSeriesOptions)
export(TimeSeriesProperties)
export(TrainDatetimeFrozenModel)
export(TrainDatetimeModel)
export(TrainModel)
export(TrainingDataAssignment)
export(TrainingHistoryEntry)
export(TrainingInfoResponse)
export(TrainingPredictionsListResponse)
Expand All @@ -1107,6 +1102,7 @@ export(TraningPredictions)
export(Transformation)
export(TransformationParam)
export(Transformations)
export(Trigger)
export(TuningParameter)
export(TuningParameters)
export(UpdateAccessControl)
Expand Down
16 changes: 9 additions & 7 deletions datarobot.apicore/R/access_control.R
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.
#
Expand All @@ -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

Expand All @@ -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)
}
Expand Down Expand Up @@ -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`
Expand All @@ -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() {
Expand Down
Loading

0 comments on commit cb4e518

Please sign in to comment.