Skip to content

Commit

Permalink
first real release
Browse files Browse the repository at this point in the history
  • Loading branch information
jokedurnez committed Jul 14, 2020
1 parent 4de0870 commit 76835f5
Show file tree
Hide file tree
Showing 589 changed files with 72,545 additions and 2,445 deletions.
3 changes: 3 additions & 0 deletions R/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ R/search_api.R
R/search_constraints.R
R/search_details.R
R/search_result.R
R/search_result_hits.R
R/search_term.R
R/securable_principal.R
R/shuttle_api.R
Expand Down Expand Up @@ -182,6 +183,7 @@ docs/SearchApi.md
docs/SearchConstraints.md
docs/SearchDetails.md
docs/SearchResult.md
docs/SearchResultHits.md
docs/SearchTerm.md
docs/SecurablePrincipal.md
docs/ShuttleApi.md
Expand Down Expand Up @@ -274,6 +276,7 @@ tests/testthat/test_search_api.R
tests/testthat/test_search_constraints.R
tests/testthat/test_search_details.R
tests/testthat/test_search_result.R
tests/testthat/test_search_result_hits.R
tests/testthat/test_search_term.R
tests/testthat/test_securable_principal.R
tests/testthat/test_shuttle_api.R
Expand Down
14 changes: 14 additions & 0 deletions R/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ export(Acl)
export(AclData)
export(AdvancedSearch)
export(Association)
export(AssociationDefinition)
export(AssociationType)
export(Auth0userBasic)
export(Authorization)
export(AuthorizedObjectsSearchResult)
export(BulkDataCreation)
export(CollectionTemplateType)
export(Constraint)
export(ConstraintGroup)
export(DataAssociation)
Expand All @@ -31,21 +33,30 @@ export(EDMdiff)
export(EdmRequest)
export(Entity)
export(EntityDataKey)
export(EntityDefinition)
export(EntityKey)
export(EntityKeyPair)
export(EntityLinkingFeatures)
export(EntityLinkingFeedback)
export(EntityNeighborsFilter)
export(EntitySet)
export(EntitySetCollection)
export(EntitySetPropertyMetaData)
export(EntitySetSelection)
export(EntityType)
export(EntityTypeCollection)
export(EntityTypePropertyMetadata)
export(Flight)
export(FlightPlanParameters)
export(FlightPlanParametersUpdate)
export(FullQualifiedName)
export(IndexingState)
export(InlineObject)
export(InlineResponse200)
export(Integration)
export(IntegrationJob)
export(IntegrationResults)
export(IntegrationUpdate)
export(LinkingFeedback)
export(MaterializedViewAccount)
export(MetadataUpdate)
Expand All @@ -58,6 +69,7 @@ export(OrganizationExternalDatabaseTable)
export(OrganizationExternalDatabaseTableColumnsPair)
export(OrganizationMember)
export(Principal)
export(PropertyDefinition)
export(PropertyType)
export(PropertyUsageSummary)
export(Role)
Expand All @@ -75,6 +87,7 @@ export(SortDefinition)
# APIs
export(AdminApi)
export(AuthorizationsApi)
export(CollectionsApi)
export(DataApi)
export(DataIntegrationsApi)
export(DatasetApi)
Expand All @@ -85,3 +98,4 @@ export(OrganizationsApi)
export(PermissionsApi)
export(PrincipalApi)
export(SearchApi)
export(ShuttleApi)
10 changes: 2 additions & 8 deletions R/R/access_check.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@

#' @docType class
#' @title AccessCheck
#'
#' @description AccessCheck Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field aclKey list( character ) [optional]
#'
#' @field permissions list( character ) [optional]
#'
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
Expand All @@ -25,9 +23,7 @@ AccessCheck <- R6::R6Class(
public = list(
`aclKey` = NULL,
`permissions` = NULL,
initialize = function(
`aclKey`=NULL, `permissions`=NULL, ...
) {
initialize = function(`aclKey`=NULL, `permissions`=NULL, ...){
local.optional.var <- list(...)
if (!is.null(`aclKey`)) {
stopifnot(is.vector(`aclKey`))
Expand Down Expand Up @@ -61,7 +57,6 @@ AccessCheck <- R6::R6Class(
if (!is.null(AccessCheckObject$`permissions`)) {
self$`permissions` <- ApiClient$new()$deserializeObj(AccessCheckObject$`permissions`, "array[character]", loadNamespace("openlattice"))
}
self
},
toJSONString = function() {
jsoncontent <- c(
Expand Down Expand Up @@ -91,4 +86,3 @@ AccessCheck <- R6::R6Class(
}
)
)

10 changes: 2 additions & 8 deletions R/R/ace.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@

#' @docType class
#' @title Ace
#'
#' @description Ace Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field principal \link{Principal} [optional]
#'
#' @field permissions list( character ) [optional]
#'
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
Expand All @@ -25,9 +23,7 @@ Ace <- R6::R6Class(
public = list(
`principal` = NULL,
`permissions` = NULL,
initialize = function(
`principal`=NULL, `permissions`=NULL, ...
) {
initialize = function(`principal`=NULL, `permissions`=NULL, ...){
local.optional.var <- list(...)
if (!is.null(`principal`)) {
stopifnot(R6::is.R6(`principal`))
Expand Down Expand Up @@ -62,7 +58,6 @@ Ace <- R6::R6Class(
if (!is.null(AceObject$`permissions`)) {
self$`permissions` <- ApiClient$new()$deserializeObj(AceObject$`permissions`, "array[character]", loadNamespace("openlattice"))
}
self
},
toJSONString = function() {
jsoncontent <- c(
Expand Down Expand Up @@ -92,4 +87,3 @@ Ace <- R6::R6Class(
}
)
)

10 changes: 2 additions & 8 deletions R/R/acl.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@

#' @docType class
#' @title Acl
#'
#' @description Acl Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field aclKey list( character ) [optional]
#'
#' @field aces list( \link{Ace} ) [optional]
#'
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
Expand All @@ -25,9 +23,7 @@ Acl <- R6::R6Class(
public = list(
`aclKey` = NULL,
`aces` = NULL,
initialize = function(
`aclKey`=NULL, `aces`=NULL, ...
) {
initialize = function(`aclKey`=NULL, `aces`=NULL, ...){
local.optional.var <- list(...)
if (!is.null(`aclKey`)) {
stopifnot(is.vector(`aclKey`))
Expand Down Expand Up @@ -61,7 +57,6 @@ Acl <- R6::R6Class(
if (!is.null(AclObject$`aces`)) {
self$`aces` <- ApiClient$new()$deserializeObj(AclObject$`aces`, "array[Ace]", loadNamespace("openlattice"))
}
self
},
toJSONString = function() {
jsoncontent <- c(
Expand Down Expand Up @@ -91,4 +86,3 @@ Acl <- R6::R6Class(
}
)
)

10 changes: 2 additions & 8 deletions R/R/acl_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@

#' @docType class
#' @title AclData
#'
#' @description AclData Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field action character [optional]
#'
#' @field acl \link{Acl} [optional]
#'
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
Expand All @@ -25,9 +23,7 @@ AclData <- R6::R6Class(
public = list(
`action` = NULL,
`acl` = NULL,
initialize = function(
`action`=NULL, `acl`=NULL, ...
) {
initialize = function(`action`=NULL, `acl`=NULL, ...){
local.optional.var <- list(...)
if (!is.null(`action`)) {
stopifnot(is.character(`action`), length(`action`) == 1)
Expand Down Expand Up @@ -61,7 +57,6 @@ AclData <- R6::R6Class(
aclObject$fromJSON(jsonlite::toJSON(AclDataObject$acl, auto_unbox = TRUE, digits = NA))
self$`acl` <- aclObject
}
self
},
toJSONString = function() {
jsoncontent <- c(
Expand Down Expand Up @@ -91,4 +86,3 @@ AclData <- R6::R6Class(
}
)
)

4 changes: 2 additions & 2 deletions R/R/admin_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
#' #################### reindex ####################
#'
#' library(openlattice)
#' var.request_body <- NULL # list(array[character]) | A map of entity set ids to entity key ids that determines what will be reindexed. If no entity key ids are provided then all entities in an entity set are reindexed. If no entity set ids are provided then all entity sets are scheduled for reindexing.
#' var.request_body <- {'key' => array$new()} # list(array[character]) | A map of entity set ids to entity key ids that determines what will be reindexed. If no entity key ids are provided then all entities in an entity set are reindexed. If no entity set ids are provided then all entity sets are scheduled for reindexing.
#'
#' #Merge job descriptions for performing a partial or full reindex of provided entity sets.
#' api.instance <- AdminApi$new()
Expand All @@ -145,7 +145,7 @@
#' #################### update_reindex ####################
#'
#' library(openlattice)
#' var.request_body <- NULL # list(array[character]) | A map of entity set ids to entity key ids that determines what will be reindexed. If no entity key ids are provided then all entities in an entity set are reindexed. If no entity set ids are provided then all entity sets are scheduled for reindexing.
#' var.request_body <- {'key' => array$new()} # list(array[character]) | A map of entity set ids to entity key ids that determines what will be reindexed. If no entity key ids are provided then all entities in an entity set are reindexed. If no entity set ids are provided then all entity sets are scheduled for reindexing.
#'
#' #Replaces job descriptions for performing a partial or full reindex of provided entity sets.
#' api.instance <- AdminApi$new()
Expand Down
10 changes: 2 additions & 8 deletions R/R/advanced_search.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,15 @@

#' @docType class
#' @title AdvancedSearch
#'
#' @description AdvancedSearch Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field searchFields list( \link{SearchDetails} ) [optional]
#'
#' @field start integer [optional]
#'
#' @field maxHits integer [optional]
#'
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
Expand All @@ -28,9 +26,7 @@ AdvancedSearch <- R6::R6Class(
`searchFields` = NULL,
`start` = NULL,
`maxHits` = NULL,
initialize = function(
`searchFields`=NULL, `start`=NULL, `maxHits`=NULL, ...
) {
initialize = function(`searchFields`=NULL, `start`=NULL, `maxHits`=NULL, ...){
local.optional.var <- list(...)
if (!is.null(`searchFields`)) {
stopifnot(is.vector(`searchFields`))
Expand Down Expand Up @@ -74,7 +70,6 @@ AdvancedSearch <- R6::R6Class(
if (!is.null(AdvancedSearchObject$`maxHits`)) {
self$`maxHits` <- AdvancedSearchObject$`maxHits`
}
self
},
toJSONString = function() {
jsoncontent <- c(
Expand Down Expand Up @@ -112,4 +107,3 @@ AdvancedSearch <- R6::R6Class(
}
)
)

4 changes: 1 addition & 3 deletions R/R/api_client.R
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@ ApiClient <- R6::R6Class(
else if (exists(returnType, pkgEnv) && !(c(returnType) %in% primitiveTypes)) {
returnType <- get(returnType, envir = as.environment(pkgEnv))
returnObj <- returnType$new()
returnObj$fromJSON(
jsonlite::toJSON(obj, digits = NA, auto_unbox = TRUE)
)
returnObj$fromJSON(jsonlite::toJSON(obj, digits = NA))
}

# To handle primitive type
Expand Down
10 changes: 2 additions & 8 deletions R/R/association.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@

#' @docType class
#' @title Association
#'
#' @description Association Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field key \link{EntityKey} [optional]
#'
#' @field src \link{EntityKey} [optional]
Expand All @@ -21,6 +18,7 @@
#'
#' @field details named list( character ) [optional]
#'
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
Expand All @@ -31,9 +29,7 @@ Association <- R6::R6Class(
`src` = NULL,
`dst` = NULL,
`details` = NULL,
initialize = function(
`key`=NULL, `src`=NULL, `dst`=NULL, `details`=NULL, ...
) {
initialize = function(`key`=NULL, `src`=NULL, `dst`=NULL, `details`=NULL, ...){
local.optional.var <- list(...)
if (!is.null(`key`)) {
stopifnot(R6::is.R6(`key`))
Expand Down Expand Up @@ -94,7 +90,6 @@ Association <- R6::R6Class(
if (!is.null(AssociationObject$`details`)) {
self$`details` <- ApiClient$new()$deserializeObj(AssociationObject$`details`, "list(character)", loadNamespace("openlattice"))
}
self
},
toJSONString = function() {
jsoncontent <- c(
Expand Down Expand Up @@ -140,4 +135,3 @@ Association <- R6::R6Class(
}
)
)

Loading

0 comments on commit 76835f5

Please sign in to comment.