From 6f832b1066afced50dba4e6035ca8bbd2b3a0c87 Mon Sep 17 00:00:00 2001 From: jokedurnez Date: Tue, 21 Jul 2020 12:34:17 -0700 Subject: [PATCH 1/2] no unboxing --- R/R/access_check.R | 10 +- R/R/ace.R | 16 +- R/R/acl.R | 12 +- R/R/acl_data.R | 16 +- R/R/admin_api.R | 4 +- R/R/advanced_search.R | 12 +- R/R/api_client.R | 4 +- R/R/association.R | 30 +- R/R/association_definition.R | 18 +- R/R/association_type.R | 16 +- R/R/auth0user_basic.R | 10 +- R/R/authorization.R | 12 +- R/R/authorizations_api.R | 2 +- R/R/authorized_objects_search_result.R | 22 +- R/R/bulk_data_creation.R | 14 +- R/R/collection_template_type.R | 10 +- R/R/collections_api.R | 10 +- R/R/constraint.R | 24 +- R/R/constraint_group.R | 12 +- R/R/data_api.R | 22 +- R/R/data_association.R | 22 +- R/R/data_edge.R | 28 +- R/R/data_edge_data.R | 10 +- R/R/data_edge_key.R | 28 +- R/R/data_graph.R | 32 +- R/R/data_graph_ids.R | 32 +- R/R/data_integrations_api.R | 4 +- R/R/data_search_result.R | 10 +- R/R/dataset_api.R | 6 +- R/R/ed_mdiff.R | 22 +- R/R/edm.R | 18 +- R/R/edm_api.R | 1890 +++++++++++++++-- R/R/edm_request.R | 10 +- R/R/entity.R | 18 +- R/R/entity_data_key.R | 10 +- R/R/entity_definition.R | 18 +- R/R/entity_key.R | 10 +- R/R/entity_key_pair.R | 10 +- R/R/entity_linking_features.R | 18 +- R/R/entity_linking_feedback.R | 16 +- R/R/entity_neighbors_filter.R | 10 +- R/R/entity_set.R | 10 +- R/R/entity_set_collection.R | 12 +- R/R/entity_set_property_meta_data.R | 10 +- R/R/entity_set_selection.R | 10 +- R/R/entity_sets_api.R | 18 +- R/R/entity_type.R | 30 +- R/R/entity_type_collection.R | 20 +- R/R/entity_type_property_metadata.R | 10 +- R/R/flight.R | 14 +- R/R/flight_plan_parameters.R | 18 +- R/R/flight_plan_parameters_update.R | 12 +- R/R/full_qualified_name.R | 10 +- R/R/indexing_state.R | 22 +- R/R/inline_object.R | 12 +- R/R/inline_response200.R | 10 +- R/R/integration.R | 12 +- R/R/integration_job.R | 10 +- R/R/integration_results.R | 14 +- R/R/integration_update.R | 12 +- R/R/linking_api.R | 8 +- R/R/linking_feedback.R | 20 +- R/R/materialized_view_account.R | 10 +- R/R/metadata_update.R | 28 +- R/R/neighbor_entity_details.R | 46 +- R/R/neighbor_entity_ids.R | 10 +- R/R/neighbor_search_filter.R | 10 +- R/R/organization.R | 22 +- R/R/organization_external_database_column.R | 10 +- R/R/organization_external_database_table.R | 10 +- ...ion_external_database_table_columns_pair.R | 18 +- R/R/organization_member.R | 24 +- R/R/organizations_api.R | 12 +- R/R/permissions_api.R | 4 +- R/R/principal.R | 10 +- R/R/property_definition.R | 16 +- R/R/property_type.R | 18 +- R/R/property_usage_summary.R | 10 +- R/R/role.R | 16 +- R/R/schema.R | 20 +- R/R/search.R | 10 +- R/R/search_api.R | 34 +- R/R/search_constraints.R | 18 +- R/R/search_details.R | 10 +- R/R/search_result.R | 12 +- R/R/search_result_hits.R | 18 +- R/R/search_term.R | 10 +- R/R/securable_principal.R | 16 +- R/R/shuttle_api.R | 4 +- R/R/sms_entity_set_information.R | 10 +- R/R/sort_definition.R | 10 +- R/README.md | 16 + R/docs/AuthorizedObjectsSearchResult.md | 2 +- R/docs/Constraint.md | 2 +- R/docs/DataApi.md | 6 +- R/docs/DataAssociation.md | 2 +- R/docs/DataGraph.md | 4 +- R/docs/DataGraphIds.md | 4 +- R/docs/EdmApi.md | 803 ++++++- R/docs/EntityType.md | 2 +- R/docs/IndexingState.md | 2 +- R/docs/MetadataUpdate.md | 2 +- R/docs/NeighborEntityDetails.md | 4 +- R/docs/OrganizationsApi.md | 4 +- R/docs/SearchApi.md | 4 +- R/tests/testthat/test_admin_api.R | 4 +- R/tests/testthat/test_authorizations_api.R | 8 +- R/tests/testthat/test_collections_api.R | 34 +- R/tests/testthat/test_data_api.R | 76 +- R/tests/testthat/test_data_integrations_api.R | 6 +- R/tests/testthat/test_dataset_api.R | 54 +- R/tests/testthat/test_edm_api.R | 303 ++- R/tests/testthat/test_entity_sets_api.R | 46 +- R/tests/testthat/test_linking_api.R | 10 +- R/tests/testthat/test_organizations_api.R | 94 +- R/tests/testthat/test_permissions_api.R | 4 +- R/tests/testthat/test_principal_api.R | 6 +- R/tests/testthat/test_search_api.R | 50 +- R/tests/testthat/test_shuttle_api.R | 20 +- 119 files changed, 3902 insertions(+), 908 deletions(-) diff --git a/R/R/access_check.R b/R/R/access_check.R index 8c59072..c441e45 100644 --- a/R/R/access_check.R +++ b/R/R/access_check.R @@ -8,13 +8,15 @@ #' @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 @@ -23,7 +25,9 @@ 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`)) @@ -57,6 +61,7 @@ AccessCheck <- R6::R6Class( if (!is.null(AccessCheckObject$`permissions`)) { self$`permissions` <- ApiClient$new()$deserializeObj(AccessCheckObject$`permissions`, "array[character]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -86,3 +91,4 @@ AccessCheck <- R6::R6Class( } ) ) + diff --git a/R/R/ace.R b/R/R/ace.R index e96575b..e501f0a 100644 --- a/R/R/ace.R +++ b/R/R/ace.R @@ -8,13 +8,15 @@ #' @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 @@ -23,7 +25,9 @@ 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`)) @@ -52,12 +56,13 @@ Ace <- R6::R6Class( AceObject <- jsonlite::fromJSON(AceJson) if (!is.null(AceObject$`principal`)) { principalObject <- Principal$new() - principalObject$fromJSON(jsonlite::toJSON(AceObject$principal, auto_unbox = TRUE, digits = NA)) + principalObject$fromJSON(jsonlite::toJSON(AceObject$principal, auto_unbox = FALSE, digits = NA)) self$`principal` <- principalObject } if (!is.null(AceObject$`permissions`)) { self$`permissions` <- ApiClient$new()$deserializeObj(AceObject$`permissions`, "array[character]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -66,7 +71,7 @@ Ace <- R6::R6Class( '"principal": %s ', - jsonlite::toJSON(self$`principal`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`principal`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`permissions`)) { sprintf( @@ -81,9 +86,10 @@ Ace <- R6::R6Class( }, fromJSONString = function(AceJson) { AceObject <- jsonlite::fromJSON(AceJson) - self$`principal` <- Principal$new()$fromJSON(jsonlite::toJSON(AceObject$principal, auto_unbox = TRUE, digits = NA)) + self$`principal` <- Principal$new()$fromJSON(jsonlite::toJSON(AceObject$principal, auto_unbox = FALSE, digits = NA)) self$`permissions` <- ApiClient$new()$deserializeObj(AceObject$`permissions`, "array[character]", loadNamespace("openlattice")) self } ) ) + diff --git a/R/R/acl.R b/R/R/acl.R index d489c6d..ea5e0a8 100644 --- a/R/R/acl.R +++ b/R/R/acl.R @@ -8,13 +8,15 @@ #' @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 @@ -23,7 +25,9 @@ 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`)) @@ -57,6 +61,7 @@ Acl <- R6::R6Class( if (!is.null(AclObject$`aces`)) { self$`aces` <- ApiClient$new()$deserializeObj(AclObject$`aces`, "array[Ace]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -72,7 +77,7 @@ Acl <- R6::R6Class( '"aces": [%s] ', - paste(sapply(self$`aces`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`aces`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -86,3 +91,4 @@ Acl <- R6::R6Class( } ) ) + diff --git a/R/R/acl_data.R b/R/R/acl_data.R index 9c91aaa..d489a8d 100644 --- a/R/R/acl_data.R +++ b/R/R/acl_data.R @@ -8,13 +8,15 @@ #' @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 @@ -23,7 +25,9 @@ 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) @@ -54,9 +58,10 @@ AclData <- R6::R6Class( } if (!is.null(AclDataObject$`acl`)) { aclObject <- Acl$new() - aclObject$fromJSON(jsonlite::toJSON(AclDataObject$acl, auto_unbox = TRUE, digits = NA)) + aclObject$fromJSON(jsonlite::toJSON(AclDataObject$acl, auto_unbox = FALSE, digits = NA)) self$`acl` <- aclObject } + self }, toJSONString = function() { jsoncontent <- c( @@ -72,7 +77,7 @@ AclData <- R6::R6Class( '"acl": %s ', - jsonlite::toJSON(self$`acl`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`acl`$toJSON(), auto_unbox=FALSE, digits = NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -81,8 +86,9 @@ AclData <- R6::R6Class( fromJSONString = function(AclDataJson) { AclDataObject <- jsonlite::fromJSON(AclDataJson) self$`action` <- AclDataObject$`action` - self$`acl` <- Acl$new()$fromJSON(jsonlite::toJSON(AclDataObject$acl, auto_unbox = TRUE, digits = NA)) + self$`acl` <- Acl$new()$fromJSON(jsonlite::toJSON(AclDataObject$acl, auto_unbox = FALSE, digits = NA)) self } ) ) + diff --git a/R/R/admin_api.R b/R/R/admin_api.R index 5bfb1a4..0afdbb0 100644 --- a/R/R/admin_api.R +++ b/R/R/admin_api.R @@ -125,7 +125,7 @@ #' #################### reindex #################### #' #' library(openlattice) -#' 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. +#' 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. #' #' #Merge job descriptions for performing a partial or full reindex of provided entity sets. #' api.instance <- AdminApi$new() @@ -145,7 +145,7 @@ #' #################### update_reindex #################### #' #' library(openlattice) -#' 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. +#' 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. #' #' #Replaces job descriptions for performing a partial or full reindex of provided entity sets. #' api.instance <- AdminApi$new() diff --git a/R/R/advanced_search.R b/R/R/advanced_search.R index 14e639f..6698b20 100644 --- a/R/R/advanced_search.R +++ b/R/R/advanced_search.R @@ -8,15 +8,17 @@ #' @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 @@ -26,7 +28,9 @@ 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`)) @@ -70,6 +74,7 @@ AdvancedSearch <- R6::R6Class( if (!is.null(AdvancedSearchObject$`maxHits`)) { self$`maxHits` <- AdvancedSearchObject$`maxHits` } + self }, toJSONString = function() { jsoncontent <- c( @@ -78,7 +83,7 @@ AdvancedSearch <- R6::R6Class( '"searchFields": [%s] ', - paste(sapply(self$`searchFields`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`searchFields`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )}, if (!is.null(self$`start`)) { sprintf( @@ -107,3 +112,4 @@ AdvancedSearch <- R6::R6Class( } ) ) + diff --git a/R/R/api_client.R b/R/R/api_client.R index 450301f..aeba55f 100644 --- a/R/R/api_client.R +++ b/R/R/api_client.R @@ -164,7 +164,9 @@ 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)) + returnObj$fromJSON( + jsonlite::toJSON(obj, digits = NA, auto_unbox = FALSE) + ) } # To handle primitive type diff --git a/R/R/association.R b/R/R/association.R index 525eef5..e581bf1 100644 --- a/R/R/association.R +++ b/R/R/association.R @@ -8,8 +8,11 @@ #' @docType class #' @title Association +#' #' @description Association Class +#' #' @format An \code{R6Class} generator object +#' #' @field key \link{EntityKey} [optional] #' #' @field src \link{EntityKey} [optional] @@ -18,7 +21,6 @@ #' #' @field details named list( character ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -29,7 +31,9 @@ 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`)) @@ -74,22 +78,23 @@ Association <- R6::R6Class( AssociationObject <- jsonlite::fromJSON(AssociationJson) if (!is.null(AssociationObject$`key`)) { keyObject <- EntityKey$new() - keyObject$fromJSON(jsonlite::toJSON(AssociationObject$key, auto_unbox = TRUE, digits = NA)) + keyObject$fromJSON(jsonlite::toJSON(AssociationObject$key, auto_unbox = FALSE, digits = NA)) self$`key` <- keyObject } if (!is.null(AssociationObject$`src`)) { srcObject <- EntityKey$new() - srcObject$fromJSON(jsonlite::toJSON(AssociationObject$src, auto_unbox = TRUE, digits = NA)) + srcObject$fromJSON(jsonlite::toJSON(AssociationObject$src, auto_unbox = FALSE, digits = NA)) self$`src` <- srcObject } if (!is.null(AssociationObject$`dst`)) { dstObject <- EntityKey$new() - dstObject$fromJSON(jsonlite::toJSON(AssociationObject$dst, auto_unbox = TRUE, digits = NA)) + dstObject$fromJSON(jsonlite::toJSON(AssociationObject$dst, auto_unbox = FALSE, digits = NA)) self$`dst` <- dstObject } if (!is.null(AssociationObject$`details`)) { self$`details` <- ApiClient$new()$deserializeObj(AssociationObject$`details`, "list(character)", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -98,28 +103,28 @@ Association <- R6::R6Class( '"key": %s ', - jsonlite::toJSON(self$`key`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`key`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`src`)) { sprintf( '"src": %s ', - jsonlite::toJSON(self$`src`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`src`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`dst`)) { sprintf( '"dst": %s ', - jsonlite::toJSON(self$`dst`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`dst`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`details`)) { sprintf( '"details": %s ', - jsonlite::toJSON(lapply(self$`details`, function(x){ x }), auto_unbox = TRUE, digits=NA) + jsonlite::toJSON(lapply(self$`details`, function(x){ x }), auto_unbox = FALSE, digits=NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -127,11 +132,12 @@ Association <- R6::R6Class( }, fromJSONString = function(AssociationJson) { AssociationObject <- jsonlite::fromJSON(AssociationJson) - self$`key` <- EntityKey$new()$fromJSON(jsonlite::toJSON(AssociationObject$key, auto_unbox = TRUE, digits = NA)) - self$`src` <- EntityKey$new()$fromJSON(jsonlite::toJSON(AssociationObject$src, auto_unbox = TRUE, digits = NA)) - self$`dst` <- EntityKey$new()$fromJSON(jsonlite::toJSON(AssociationObject$dst, auto_unbox = TRUE, digits = NA)) + self$`key` <- EntityKey$new()$fromJSON(jsonlite::toJSON(AssociationObject$key, auto_unbox = FALSE, digits = NA)) + self$`src` <- EntityKey$new()$fromJSON(jsonlite::toJSON(AssociationObject$src, auto_unbox = FALSE, digits = NA)) + self$`dst` <- EntityKey$new()$fromJSON(jsonlite::toJSON(AssociationObject$dst, auto_unbox = FALSE, digits = NA)) self$`details` <- ApiClient$new()$deserializeObj(AssociationObject$`details`, "list(character)", loadNamespace("openlattice")) self } ) ) + diff --git a/R/R/association_definition.R b/R/R/association_definition.R index ad815b1..604b2c8 100644 --- a/R/R/association_definition.R +++ b/R/R/association_definition.R @@ -8,8 +8,11 @@ #' @docType class #' @title AssociationDefinition +#' #' @description AssociationDefinition Class +#' #' @format An \code{R6Class} generator object +#' #' @field fqn \link{FullQualifiedName} [optional] #' #' @field entitySetName character [optional] @@ -22,7 +25,6 @@ #' #' @field dst character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -35,7 +37,9 @@ AssociationDefinition <- R6::R6Class( `updateType` = NULL, `src` = NULL, `dst` = NULL, - initialize = function(`fqn`=NULL, `entitySetName`=NULL, `propertyDefinitions`=NULL, `updateType`=NULL, `src`=NULL, `dst`=NULL, ...){ + initialize = function( + `fqn`=NULL, `entitySetName`=NULL, `propertyDefinitions`=NULL, `updateType`=NULL, `src`=NULL, `dst`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`fqn`)) { stopifnot(R6::is.R6(`fqn`)) @@ -96,7 +100,7 @@ AssociationDefinition <- R6::R6Class( AssociationDefinitionObject <- jsonlite::fromJSON(AssociationDefinitionJson) if (!is.null(AssociationDefinitionObject$`fqn`)) { fqnObject <- FullQualifiedName$new() - fqnObject$fromJSON(jsonlite::toJSON(AssociationDefinitionObject$fqn, auto_unbox = TRUE, digits = NA)) + fqnObject$fromJSON(jsonlite::toJSON(AssociationDefinitionObject$fqn, auto_unbox = FALSE, digits = NA)) self$`fqn` <- fqnObject } if (!is.null(AssociationDefinitionObject$`entitySetName`)) { @@ -114,6 +118,7 @@ AssociationDefinition <- R6::R6Class( if (!is.null(AssociationDefinitionObject$`dst`)) { self$`dst` <- AssociationDefinitionObject$`dst` } + self }, toJSONString = function() { jsoncontent <- c( @@ -122,7 +127,7 @@ AssociationDefinition <- R6::R6Class( '"fqn": %s ', - jsonlite::toJSON(self$`fqn`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`fqn`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`entitySetName`)) { sprintf( @@ -136,7 +141,7 @@ AssociationDefinition <- R6::R6Class( '"propertyDefinitions": %s ', - jsonlite::toJSON(lapply(self$`propertyDefinitions`, function(x){ x$toJSON() }), auto_unbox = TRUE, digits=NA) + jsonlite::toJSON(lapply(self$`propertyDefinitions`, function(x){ x$toJSON() }), auto_unbox = FALSE, digits=NA) )}, if (!is.null(self$`updateType`)) { sprintf( @@ -165,7 +170,7 @@ AssociationDefinition <- R6::R6Class( }, fromJSONString = function(AssociationDefinitionJson) { AssociationDefinitionObject <- jsonlite::fromJSON(AssociationDefinitionJson) - self$`fqn` <- FullQualifiedName$new()$fromJSON(jsonlite::toJSON(AssociationDefinitionObject$fqn, auto_unbox = TRUE, digits = NA)) + self$`fqn` <- FullQualifiedName$new()$fromJSON(jsonlite::toJSON(AssociationDefinitionObject$fqn, auto_unbox = FALSE, digits = NA)) self$`entitySetName` <- AssociationDefinitionObject$`entitySetName` self$`propertyDefinitions` <- ApiClient$new()$deserializeObj(AssociationDefinitionObject$`propertyDefinitions`, "list(PropertyDefinition)", loadNamespace("openlattice")) self$`updateType` <- AssociationDefinitionObject$`updateType` @@ -175,3 +180,4 @@ AssociationDefinition <- R6::R6Class( } ) ) + diff --git a/R/R/association_type.R b/R/R/association_type.R index e4005e0..78a96e4 100644 --- a/R/R/association_type.R +++ b/R/R/association_type.R @@ -8,8 +8,11 @@ #' @docType class #' @title AssociationType +#' #' @description AssociationType Class +#' #' @format An \code{R6Class} generator object +#' #' @field entityType \link{EntityType} [optional] #' #' @field src list( character ) [optional] @@ -18,7 +21,6 @@ #' #' @field bidirectional character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -29,7 +31,9 @@ AssociationType <- R6::R6Class( `src` = NULL, `dst` = NULL, `bidirectional` = NULL, - initialize = function(`entityType`=NULL, `src`=NULL, `dst`=NULL, `bidirectional`=NULL, ...){ + initialize = function( + `entityType`=NULL, `src`=NULL, `dst`=NULL, `bidirectional`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`entityType`)) { stopifnot(R6::is.R6(`entityType`)) @@ -74,7 +78,7 @@ AssociationType <- R6::R6Class( AssociationTypeObject <- jsonlite::fromJSON(AssociationTypeJson) if (!is.null(AssociationTypeObject$`entityType`)) { entityTypeObject <- EntityType$new() - entityTypeObject$fromJSON(jsonlite::toJSON(AssociationTypeObject$entityType, auto_unbox = TRUE, digits = NA)) + entityTypeObject$fromJSON(jsonlite::toJSON(AssociationTypeObject$entityType, auto_unbox = FALSE, digits = NA)) self$`entityType` <- entityTypeObject } if (!is.null(AssociationTypeObject$`src`)) { @@ -86,6 +90,7 @@ AssociationType <- R6::R6Class( if (!is.null(AssociationTypeObject$`bidirectional`)) { self$`bidirectional` <- AssociationTypeObject$`bidirectional` } + self }, toJSONString = function() { jsoncontent <- c( @@ -94,7 +99,7 @@ AssociationType <- R6::R6Class( '"entityType": %s ', - jsonlite::toJSON(self$`entityType`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`entityType`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`src`)) { sprintf( @@ -123,7 +128,7 @@ AssociationType <- R6::R6Class( }, fromJSONString = function(AssociationTypeJson) { AssociationTypeObject <- jsonlite::fromJSON(AssociationTypeJson) - self$`entityType` <- EntityType$new()$fromJSON(jsonlite::toJSON(AssociationTypeObject$entityType, auto_unbox = TRUE, digits = NA)) + self$`entityType` <- EntityType$new()$fromJSON(jsonlite::toJSON(AssociationTypeObject$entityType, auto_unbox = FALSE, digits = NA)) self$`src` <- ApiClient$new()$deserializeObj(AssociationTypeObject$`src`, "array[character]", loadNamespace("openlattice")) self$`dst` <- ApiClient$new()$deserializeObj(AssociationTypeObject$`dst`, "array[character]", loadNamespace("openlattice")) self$`bidirectional` <- AssociationTypeObject$`bidirectional` @@ -131,3 +136,4 @@ AssociationType <- R6::R6Class( } ) ) + diff --git a/R/R/auth0user_basic.R b/R/R/auth0user_basic.R index b63f1be..050b161 100644 --- a/R/R/auth0user_basic.R +++ b/R/R/auth0user_basic.R @@ -8,8 +8,11 @@ #' @docType class #' @title Auth0userBasic +#' #' @description Auth0userBasic Class +#' #' @format An \code{R6Class} generator object +#' #' @field user_id character [optional] #' #' @field email character [optional] @@ -22,7 +25,6 @@ #' #' @field com/openlattice/organization list( character ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -35,7 +37,9 @@ Auth0userBasic <- R6::R6Class( `username` = NULL, `roles` = NULL, `com/openlattice/organization` = NULL, - initialize = function(`user_id`=NULL, `email`=NULL, `nickname`=NULL, `username`=NULL, `roles`=NULL, `com/openlattice/organization`=NULL, ...){ + initialize = function( + `user_id`=NULL, `email`=NULL, `nickname`=NULL, `username`=NULL, `roles`=NULL, `com/openlattice/organization`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`user_id`)) { stopifnot(is.character(`user_id`), length(`user_id`) == 1) @@ -113,6 +117,7 @@ Auth0userBasic <- R6::R6Class( if (!is.null(Auth0userBasicObject$`com/openlattice/organization`)) { self$`com/openlattice/organization` <- ApiClient$new()$deserializeObj(Auth0userBasicObject$`com/openlattice/organization`, "array[character]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -174,3 +179,4 @@ Auth0userBasic <- R6::R6Class( } ) ) + diff --git a/R/R/authorization.R b/R/R/authorization.R index 317778b..c0fe0a3 100644 --- a/R/R/authorization.R +++ b/R/R/authorization.R @@ -8,13 +8,15 @@ #' @docType class #' @title Authorization +#' #' @description Authorization Class +#' #' @format An \code{R6Class} generator object +#' #' @field aclKey list( character ) [optional] #' #' @field permissions named list( character ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ Authorization <- 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`)) @@ -57,6 +61,7 @@ Authorization <- R6::R6Class( if (!is.null(AuthorizationObject$`permissions`)) { self$`permissions` <- ApiClient$new()$deserializeObj(AuthorizationObject$`permissions`, "list(character)", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -72,7 +77,7 @@ Authorization <- R6::R6Class( '"permissions": %s ', - jsonlite::toJSON(lapply(self$`permissions`, function(x){ x }), auto_unbox = TRUE, digits=NA) + jsonlite::toJSON(lapply(self$`permissions`, function(x){ x }), auto_unbox = FALSE, digits=NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -86,3 +91,4 @@ Authorization <- R6::R6Class( } ) ) + diff --git a/R/R/authorizations_api.R b/R/R/authorizations_api.R index 3affe1e..5a769e4 100644 --- a/R/R/authorizations_api.R +++ b/R/R/authorizations_api.R @@ -141,7 +141,7 @@ AuthorizationsApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`access_check`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`access_check`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL diff --git a/R/R/authorized_objects_search_result.R b/R/R/authorized_objects_search_result.R index b1b6d1f..a06e0ce 100644 --- a/R/R/authorized_objects_search_result.R +++ b/R/R/authorized_objects_search_result.R @@ -8,12 +8,14 @@ #' @docType class #' @title AuthorizedObjectsSearchResult +#' #' @description AuthorizedObjectsSearchResult Class +#' #' @format An \code{R6Class} generator object -#' @field pagingToken character [optional] #' -#' @field authorizedObjects list( \link{array[character]} ) [optional] +#' @field pagingToken character [optional] #' +#' @field authorizedObjects list( array[character] ) [optional] #' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON @@ -23,7 +25,9 @@ AuthorizedObjectsSearchResult <- R6::R6Class( public = list( `pagingToken` = NULL, `authorizedObjects` = NULL, - initialize = function(`pagingToken`=NULL, `authorizedObjects`=NULL, ...){ + initialize = function( + `pagingToken`=NULL, `authorizedObjects`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`pagingToken`)) { stopifnot(is.character(`pagingToken`), length(`pagingToken`) == 1) @@ -31,7 +35,7 @@ AuthorizedObjectsSearchResult <- R6::R6Class( } if (!is.null(`authorizedObjects`)) { stopifnot(is.vector(`authorizedObjects`)) - sapply(`authorizedObjects`, function(x) stopifnot(R6::is.R6(x))) + sapply(`authorizedObjects`, function(x) stopifnot(is.character(x))) self$`authorizedObjects` <- `authorizedObjects` } }, @@ -43,7 +47,7 @@ AuthorizedObjectsSearchResult <- R6::R6Class( } if (!is.null(self$`authorizedObjects`)) { AuthorizedObjectsSearchResultObject[['authorizedObjects']] <- - lapply(self$`authorizedObjects`, function(x) x$toJSON()) + self$`authorizedObjects` } AuthorizedObjectsSearchResultObject @@ -56,6 +60,7 @@ AuthorizedObjectsSearchResult <- R6::R6Class( if (!is.null(AuthorizedObjectsSearchResultObject$`authorizedObjects`)) { self$`authorizedObjects` <- ApiClient$new()$deserializeObj(AuthorizedObjectsSearchResultObject$`authorizedObjects`, "array[array[character]]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -69,9 +74,9 @@ AuthorizedObjectsSearchResult <- R6::R6Class( if (!is.null(self$`authorizedObjects`)) { sprintf( '"authorizedObjects": - [%s] -', - paste(sapply(self$`authorizedObjects`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + [%s] + ', + paste(unlist(lapply(self$`authorizedObjects`, function(x) paste0('"', x, '"'))), collapse=",") )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -85,3 +90,4 @@ AuthorizedObjectsSearchResult <- R6::R6Class( } ) ) + diff --git a/R/R/bulk_data_creation.R b/R/R/bulk_data_creation.R index 56666cd..75ee3a2 100644 --- a/R/R/bulk_data_creation.R +++ b/R/R/bulk_data_creation.R @@ -8,13 +8,15 @@ #' @docType class #' @title BulkDataCreation +#' #' @description BulkDataCreation Class +#' #' @format An \code{R6Class} generator object +#' #' @field entities list( \link{Entity} ) [optional] #' #' @field associations list( \link{Association} ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ BulkDataCreation <- R6::R6Class( public = list( `entities` = NULL, `associations` = NULL, - initialize = function(`entities`=NULL, `associations`=NULL, ...){ + initialize = function( + `entities`=NULL, `associations`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`entities`)) { stopifnot(is.vector(`entities`)) @@ -57,6 +61,7 @@ BulkDataCreation <- R6::R6Class( if (!is.null(BulkDataCreationObject$`associations`)) { self$`associations` <- ApiClient$new()$deserializeObj(BulkDataCreationObject$`associations`, "array[Association]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -65,14 +70,14 @@ BulkDataCreation <- R6::R6Class( '"entities": [%s] ', - paste(sapply(self$`entities`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`entities`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )}, if (!is.null(self$`associations`)) { sprintf( '"associations": [%s] ', - paste(sapply(self$`associations`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`associations`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -86,3 +91,4 @@ BulkDataCreation <- R6::R6Class( } ) ) + diff --git a/R/R/collection_template_type.R b/R/R/collection_template_type.R index 4e7159a..ec5e9af 100644 --- a/R/R/collection_template_type.R +++ b/R/R/collection_template_type.R @@ -8,8 +8,11 @@ #' @docType class #' @title CollectionTemplateType +#' #' @description CollectionTemplateType Class +#' #' @format An \code{R6Class} generator object +#' #' @field id character [optional] #' #' @field name character [optional] @@ -20,7 +23,6 @@ #' #' @field entityTypeId character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -32,7 +34,9 @@ CollectionTemplateType <- R6::R6Class( `title` = NULL, `description` = NULL, `entityTypeId` = NULL, - initialize = function(`id`=NULL, `name`=NULL, `title`=NULL, `description`=NULL, `entityTypeId`=NULL, ...){ + initialize = function( + `id`=NULL, `name`=NULL, `title`=NULL, `description`=NULL, `entityTypeId`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`id`)) { stopifnot(is.character(`id`), length(`id`) == 1) @@ -97,6 +101,7 @@ CollectionTemplateType <- R6::R6Class( if (!is.null(CollectionTemplateTypeObject$`entityTypeId`)) { self$`entityTypeId` <- CollectionTemplateTypeObject$`entityTypeId` } + self }, toJSONString = function() { jsoncontent <- c( @@ -150,3 +155,4 @@ CollectionTemplateType <- R6::R6Class( } ) ) + diff --git a/R/R/collections_api.R b/R/R/collections_api.R index 21a49f6..8aabcdb 100644 --- a/R/R/collections_api.R +++ b/R/R/collections_api.R @@ -582,7 +582,7 @@ CollectionsApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`collection_template_type`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`collection_template_type`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -643,7 +643,7 @@ CollectionsApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`entity_set_collection`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`entity_set_collection`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -706,7 +706,7 @@ CollectionsApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`entity_type_collection`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`entity_type_collection`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -1195,7 +1195,7 @@ CollectionsApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -1325,7 +1325,7 @@ CollectionsApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL diff --git a/R/R/constraint.R b/R/R/constraint.R index 8299a13..8fddac1 100644 --- a/R/R/constraint.R +++ b/R/R/constraint.R @@ -8,8 +8,11 @@ #' @docType class #' @title Constraint +#' #' @description Constraint Class +#' #' @format An \code{R6Class} generator object +#' #' @field type character [optional] #' #' @field searchTerm character [optional] @@ -28,13 +31,12 @@ #' #' @field unit character [optional] #' -#' @field zones list( \link{array[array[numeric]]} ) [optional] +#' @field zones list( array[array[numeric]] ) [optional] #' #' @field start character [optional] #' #' @field end character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -53,7 +55,9 @@ Constraint <- R6::R6Class( `zones` = NULL, `start` = NULL, `end` = NULL, - initialize = function(`type`=NULL, `searchTerm`=NULL, `fuzzy`=NULL, `searchFields`=NULL, `propertyTypeId`=NULL, `latitude`=NULL, `longitude`=NULL, `radius`=NULL, `unit`=NULL, `zones`=NULL, `start`=NULL, `end`=NULL, ...){ + initialize = function( + `type`=NULL, `searchTerm`=NULL, `fuzzy`=NULL, `searchFields`=NULL, `propertyTypeId`=NULL, `latitude`=NULL, `longitude`=NULL, `radius`=NULL, `unit`=NULL, `zones`=NULL, `start`=NULL, `end`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`type`)) { stopifnot(is.character(`type`), length(`type`) == 1) @@ -90,7 +94,7 @@ Constraint <- R6::R6Class( } if (!is.null(`zones`)) { stopifnot(is.vector(`zones`)) - sapply(`zones`, function(x) stopifnot(R6::is.R6(x))) + sapply(`zones`, function(x) stopifnot(is.character(x))) self$`zones` <- `zones` } if (!is.null(`start`)) { @@ -142,7 +146,7 @@ Constraint <- R6::R6Class( } if (!is.null(self$`zones`)) { ConstraintObject[['zones']] <- - lapply(self$`zones`, function(x) x$toJSON()) + self$`zones` } if (!is.null(self$`start`)) { ConstraintObject[['start']] <- @@ -193,6 +197,7 @@ Constraint <- R6::R6Class( if (!is.null(ConstraintObject$`end`)) { self$`end` <- ConstraintObject$`end` } + self }, toJSONString = function() { jsoncontent <- c( @@ -222,7 +227,7 @@ Constraint <- R6::R6Class( '"searchFields": [%s] ', - paste(sapply(self$`searchFields`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`searchFields`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )}, if (!is.null(self$`propertyTypeId`)) { sprintf( @@ -262,9 +267,9 @@ Constraint <- R6::R6Class( if (!is.null(self$`zones`)) { sprintf( '"zones": - [%s] -', - paste(sapply(self$`zones`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + [%s] + ', + paste(unlist(lapply(self$`zones`, function(x) paste0('"', x, '"'))), collapse=",") )}, if (!is.null(self$`start`)) { sprintf( @@ -302,3 +307,4 @@ Constraint <- R6::R6Class( } ) ) + diff --git a/R/R/constraint_group.R b/R/R/constraint_group.R index fff75ad..4bf6614 100644 --- a/R/R/constraint_group.R +++ b/R/R/constraint_group.R @@ -8,13 +8,15 @@ #' @docType class #' @title ConstraintGroup +#' #' @description ConstraintGroup Class +#' #' @format An \code{R6Class} generator object +#' #' @field min integer [optional] #' #' @field constraints list( \link{Constraint} ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ ConstraintGroup <- R6::R6Class( public = list( `min` = NULL, `constraints` = NULL, - initialize = function(`min`=NULL, `constraints`=NULL, ...){ + initialize = function( + `min`=NULL, `constraints`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`min`)) { stopifnot(is.numeric(`min`), length(`min`) == 1) @@ -56,6 +60,7 @@ ConstraintGroup <- R6::R6Class( if (!is.null(ConstraintGroupObject$`constraints`)) { self$`constraints` <- ApiClient$new()$deserializeObj(ConstraintGroupObject$`constraints`, "array[Constraint]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -71,7 +76,7 @@ ConstraintGroup <- R6::R6Class( '"constraints": [%s] ', - paste(sapply(self$`constraints`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`constraints`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -85,3 +90,4 @@ ConstraintGroup <- R6::R6Class( } ) ) + diff --git a/R/R/data_api.R b/R/R/data_api.R index 2edd507..83f1c40 100644 --- a/R/R/data_api.R +++ b/R/R/data_api.R @@ -19,7 +19,6 @@ #' #' \itemize{ #' \item \emph{ @param } inline_object \link{InlineObject} -#' \item \emph{ @returnType } named list( \link{array} ) \cr #' #' #' \item status code : 200 | Edges @@ -52,7 +51,7 @@ #' #' \itemize{ #' \item \emph{ @param } set_id \link{character} -#' \item \emph{ @param } request_body list( \link{list(array[character])} ) +#' \item \emph{ @param } request_body list( list(array[character]) ) #' #' #' \item status code : 200 | Edges @@ -177,7 +176,6 @@ #' \itemize{ #' \item \emph{ @param } entity_set_id \link{character} #' \item \emph{ @param } entity_key_id \link{character} -#' \item \emph{ @returnType } named list( \link{array} ) \cr #' #' #' \item status code : 200 | An entity details object, with property type FQNs as keys. @@ -754,7 +752,7 @@ DataApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`inline_object`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`inline_object`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -817,7 +815,7 @@ DataApi <- R6::R6Class( ' [%s] ', - paste(sapply(`data_edge_key`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`data_edge_key`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL @@ -886,7 +884,7 @@ DataApi <- R6::R6Class( ' [%s] ', - paste(sapply(`request_body`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL @@ -949,7 +947,7 @@ DataApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`data_graph`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`data_graph`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -1078,7 +1076,7 @@ DataApi <- R6::R6Class( ' [%s] ', - paste(sapply(`request_body`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL @@ -1155,7 +1153,7 @@ DataApi <- R6::R6Class( ' [%s] ', - paste(sapply(`entity_neighbors_filter`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`entity_neighbors_filter`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL @@ -1300,7 +1298,7 @@ DataApi <- R6::R6Class( ' [%s] ', - paste(sapply(`request_body`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL @@ -1617,7 +1615,7 @@ DataApi <- R6::R6Class( ' [%s] ', - paste(sapply(`entity_set_selection`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`entity_set_selection`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL @@ -1688,7 +1686,7 @@ DataApi <- R6::R6Class( ' [%s] ', - paste(sapply(`entity_set_selection`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`entity_set_selection`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL diff --git a/R/R/data_association.R b/R/R/data_association.R index 4830dcf..b8088fb 100644 --- a/R/R/data_association.R +++ b/R/R/data_association.R @@ -8,8 +8,11 @@ #' @docType class #' @title DataAssociation +#' #' @description DataAssociation Class +#' #' @format An \code{R6Class} generator object +#' #' @field srcEntitySetId character [optional] #' #' @field srcEntityIndex character [optional] @@ -22,8 +25,7 @@ #' #' @field dstEntityKeyId character [optional] #' -#' @field data named list( \link{array[character]} ) [optional] -#' +#' @field data named list( array[character] ) [optional] #' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON @@ -38,7 +40,9 @@ DataAssociation <- R6::R6Class( `dstEntityIndex` = NULL, `dstEntityKeyId` = NULL, `data` = NULL, - initialize = function(`srcEntitySetId`=NULL, `srcEntityIndex`=NULL, `srcEntityKeyId`=NULL, `dstEntitySetId`=NULL, `dstEntityIndex`=NULL, `dstEntityKeyId`=NULL, `data`=NULL, ...){ + initialize = function( + `srcEntitySetId`=NULL, `srcEntityIndex`=NULL, `srcEntityKeyId`=NULL, `dstEntitySetId`=NULL, `dstEntityIndex`=NULL, `dstEntityKeyId`=NULL, `data`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`srcEntitySetId`)) { stopifnot(is.character(`srcEntitySetId`), length(`srcEntitySetId`) == 1) @@ -66,7 +70,7 @@ DataAssociation <- R6::R6Class( } if (!is.null(`data`)) { stopifnot(is.vector(`data`)) - sapply(`data`, function(x) stopifnot(R6::is.R6(x))) + sapply(`data`, function(x) stopifnot(is.character(x))) self$`data` <- `data` } }, @@ -98,7 +102,7 @@ DataAssociation <- R6::R6Class( } if (!is.null(self$`data`)) { DataAssociationObject[['data']] <- - lapply(self$`data`, function(x) x$toJSON()) + self$`data` } DataAssociationObject @@ -126,6 +130,7 @@ DataAssociation <- R6::R6Class( if (!is.null(DataAssociationObject$`data`)) { self$`data` <- ApiClient$new()$deserializeObj(DataAssociationObject$`data`, "list(array[character])", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -174,9 +179,9 @@ DataAssociation <- R6::R6Class( if (!is.null(self$`data`)) { sprintf( '"data": - %s -', - jsonlite::toJSON(lapply(self$`data`, function(x){ x$toJSON() }), auto_unbox = TRUE, digits=NA) + %s + ', + jsonlite::toJSON(lapply(self$`data`, function(x){ x }), auto_unbox = FALSE, digits=NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -195,3 +200,4 @@ DataAssociation <- R6::R6Class( } ) ) + diff --git a/R/R/data_edge.R b/R/R/data_edge.R index c56fb7a..4a5e87b 100644 --- a/R/R/data_edge.R +++ b/R/R/data_edge.R @@ -8,15 +8,17 @@ #' @docType class #' @title DataEdge +#' #' @description DataEdge Class +#' #' @format An \code{R6Class} generator object +#' #' @field src \link{EntityDataKey} [optional] #' #' @field dst \link{EntityDataKey} [optional] #' #' @field data \link{DataEdgeData} [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -26,7 +28,9 @@ DataEdge <- R6::R6Class( `src` = NULL, `dst` = NULL, `data` = NULL, - initialize = function(`src`=NULL, `dst`=NULL, `data`=NULL, ...){ + initialize = function( + `src`=NULL, `dst`=NULL, `data`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`src`)) { stopifnot(R6::is.R6(`src`)) @@ -62,19 +66,20 @@ DataEdge <- R6::R6Class( DataEdgeObject <- jsonlite::fromJSON(DataEdgeJson) if (!is.null(DataEdgeObject$`src`)) { srcObject <- EntityDataKey$new() - srcObject$fromJSON(jsonlite::toJSON(DataEdgeObject$src, auto_unbox = TRUE, digits = NA)) + srcObject$fromJSON(jsonlite::toJSON(DataEdgeObject$src, auto_unbox = FALSE, digits = NA)) self$`src` <- srcObject } if (!is.null(DataEdgeObject$`dst`)) { dstObject <- EntityDataKey$new() - dstObject$fromJSON(jsonlite::toJSON(DataEdgeObject$dst, auto_unbox = TRUE, digits = NA)) + dstObject$fromJSON(jsonlite::toJSON(DataEdgeObject$dst, auto_unbox = FALSE, digits = NA)) self$`dst` <- dstObject } if (!is.null(DataEdgeObject$`data`)) { dataObject <- DataEdgeData$new() - dataObject$fromJSON(jsonlite::toJSON(DataEdgeObject$data, auto_unbox = TRUE, digits = NA)) + dataObject$fromJSON(jsonlite::toJSON(DataEdgeObject$data, auto_unbox = FALSE, digits = NA)) self$`data` <- dataObject } + self }, toJSONString = function() { jsoncontent <- c( @@ -83,21 +88,21 @@ DataEdge <- R6::R6Class( '"src": %s ', - jsonlite::toJSON(self$`src`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`src`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`dst`)) { sprintf( '"dst": %s ', - jsonlite::toJSON(self$`dst`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`dst`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`data`)) { sprintf( '"data": %s ', - jsonlite::toJSON(self$`data`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`data`$toJSON(), auto_unbox=FALSE, digits = NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -105,10 +110,11 @@ DataEdge <- R6::R6Class( }, fromJSONString = function(DataEdgeJson) { DataEdgeObject <- jsonlite::fromJSON(DataEdgeJson) - self$`src` <- EntityDataKey$new()$fromJSON(jsonlite::toJSON(DataEdgeObject$src, auto_unbox = TRUE, digits = NA)) - self$`dst` <- EntityDataKey$new()$fromJSON(jsonlite::toJSON(DataEdgeObject$dst, auto_unbox = TRUE, digits = NA)) - self$`data` <- DataEdgeData$new()$fromJSON(jsonlite::toJSON(DataEdgeObject$data, auto_unbox = TRUE, digits = NA)) + self$`src` <- EntityDataKey$new()$fromJSON(jsonlite::toJSON(DataEdgeObject$src, auto_unbox = FALSE, digits = NA)) + self$`dst` <- EntityDataKey$new()$fromJSON(jsonlite::toJSON(DataEdgeObject$dst, auto_unbox = FALSE, digits = NA)) + self$`data` <- DataEdgeData$new()$fromJSON(jsonlite::toJSON(DataEdgeObject$data, auto_unbox = FALSE, digits = NA)) self } ) ) + diff --git a/R/R/data_edge_data.R b/R/R/data_edge_data.R index a5d30a2..1539fa9 100644 --- a/R/R/data_edge_data.R +++ b/R/R/data_edge_data.R @@ -8,10 +8,12 @@ #' @docType class #' @title DataEdgeData +#' #' @description DataEdgeData Class +#' #' @format An \code{R6Class} generator object -#' @field additionalProperties list( character ) [optional] #' +#' @field additionalProperties list( character ) [optional] #' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON @@ -20,7 +22,9 @@ DataEdgeData <- R6::R6Class( 'DataEdgeData', public = list( `additionalProperties` = NULL, - initialize = function(`additionalProperties`=NULL, ...){ + initialize = function( + `additionalProperties`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`additionalProperties`)) { stopifnot(is.vector(`additionalProperties`)) @@ -42,6 +46,7 @@ DataEdgeData <- R6::R6Class( if (!is.null(DataEdgeDataObject$`additionalProperties`)) { self$`additionalProperties` <- ApiClient$new()$deserializeObj(DataEdgeDataObject$`additionalProperties`, "array[character]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -63,3 +68,4 @@ DataEdgeData <- R6::R6Class( } ) ) + diff --git a/R/R/data_edge_key.R b/R/R/data_edge_key.R index 850a0c7..8ba2998 100644 --- a/R/R/data_edge_key.R +++ b/R/R/data_edge_key.R @@ -8,15 +8,17 @@ #' @docType class #' @title DataEdgeKey +#' #' @description DataEdgeKey Class +#' #' @format An \code{R6Class} generator object +#' #' @field src \link{EntityDataKey} [optional] #' #' @field dst \link{EntityDataKey} [optional] #' #' @field edge \link{EntityDataKey} [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -26,7 +28,9 @@ DataEdgeKey <- R6::R6Class( `src` = NULL, `dst` = NULL, `edge` = NULL, - initialize = function(`src`=NULL, `dst`=NULL, `edge`=NULL, ...){ + initialize = function( + `src`=NULL, `dst`=NULL, `edge`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`src`)) { stopifnot(R6::is.R6(`src`)) @@ -62,19 +66,20 @@ DataEdgeKey <- R6::R6Class( DataEdgeKeyObject <- jsonlite::fromJSON(DataEdgeKeyJson) if (!is.null(DataEdgeKeyObject$`src`)) { srcObject <- EntityDataKey$new() - srcObject$fromJSON(jsonlite::toJSON(DataEdgeKeyObject$src, auto_unbox = TRUE, digits = NA)) + srcObject$fromJSON(jsonlite::toJSON(DataEdgeKeyObject$src, auto_unbox = FALSE, digits = NA)) self$`src` <- srcObject } if (!is.null(DataEdgeKeyObject$`dst`)) { dstObject <- EntityDataKey$new() - dstObject$fromJSON(jsonlite::toJSON(DataEdgeKeyObject$dst, auto_unbox = TRUE, digits = NA)) + dstObject$fromJSON(jsonlite::toJSON(DataEdgeKeyObject$dst, auto_unbox = FALSE, digits = NA)) self$`dst` <- dstObject } if (!is.null(DataEdgeKeyObject$`edge`)) { edgeObject <- EntityDataKey$new() - edgeObject$fromJSON(jsonlite::toJSON(DataEdgeKeyObject$edge, auto_unbox = TRUE, digits = NA)) + edgeObject$fromJSON(jsonlite::toJSON(DataEdgeKeyObject$edge, auto_unbox = FALSE, digits = NA)) self$`edge` <- edgeObject } + self }, toJSONString = function() { jsoncontent <- c( @@ -83,21 +88,21 @@ DataEdgeKey <- R6::R6Class( '"src": %s ', - jsonlite::toJSON(self$`src`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`src`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`dst`)) { sprintf( '"dst": %s ', - jsonlite::toJSON(self$`dst`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`dst`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`edge`)) { sprintf( '"edge": %s ', - jsonlite::toJSON(self$`edge`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`edge`$toJSON(), auto_unbox=FALSE, digits = NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -105,10 +110,11 @@ DataEdgeKey <- R6::R6Class( }, fromJSONString = function(DataEdgeKeyJson) { DataEdgeKeyObject <- jsonlite::fromJSON(DataEdgeKeyJson) - self$`src` <- EntityDataKey$new()$fromJSON(jsonlite::toJSON(DataEdgeKeyObject$src, auto_unbox = TRUE, digits = NA)) - self$`dst` <- EntityDataKey$new()$fromJSON(jsonlite::toJSON(DataEdgeKeyObject$dst, auto_unbox = TRUE, digits = NA)) - self$`edge` <- EntityDataKey$new()$fromJSON(jsonlite::toJSON(DataEdgeKeyObject$edge, auto_unbox = TRUE, digits = NA)) + self$`src` <- EntityDataKey$new()$fromJSON(jsonlite::toJSON(DataEdgeKeyObject$src, auto_unbox = FALSE, digits = NA)) + self$`dst` <- EntityDataKey$new()$fromJSON(jsonlite::toJSON(DataEdgeKeyObject$dst, auto_unbox = FALSE, digits = NA)) + self$`edge` <- EntityDataKey$new()$fromJSON(jsonlite::toJSON(DataEdgeKeyObject$edge, auto_unbox = FALSE, digits = NA)) self } ) ) + diff --git a/R/R/data_graph.R b/R/R/data_graph.R index 7f8ac9b..4c558ef 100644 --- a/R/R/data_graph.R +++ b/R/R/data_graph.R @@ -8,12 +8,14 @@ #' @docType class #' @title DataGraph +#' #' @description DataGraph Class +#' #' @format An \code{R6Class} generator object -#' @field entities named list( \link{array[list(array[character])]} ) [optional] #' -#' @field associations named list( \link{array[DataAssociation]} ) [optional] +#' @field entities named list( array[list(array[character])] ) [optional] #' +#' @field associations named list( array[DataAssociation] ) [optional] #' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON @@ -23,16 +25,18 @@ DataGraph <- R6::R6Class( public = list( `entities` = NULL, `associations` = NULL, - initialize = function(`entities`=NULL, `associations`=NULL, ...){ + initialize = function( + `entities`=NULL, `associations`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`entities`)) { stopifnot(is.vector(`entities`)) - sapply(`entities`, function(x) stopifnot(R6::is.R6(x))) + sapply(`entities`, function(x) stopifnot(is.character(x))) self$`entities` <- `entities` } if (!is.null(`associations`)) { stopifnot(is.vector(`associations`)) - sapply(`associations`, function(x) stopifnot(R6::is.R6(x))) + sapply(`associations`, function(x) stopifnot(is.character(x))) self$`associations` <- `associations` } }, @@ -40,11 +44,11 @@ DataGraph <- R6::R6Class( DataGraphObject <- list() if (!is.null(self$`entities`)) { DataGraphObject[['entities']] <- - lapply(self$`entities`, function(x) x$toJSON()) + self$`entities` } if (!is.null(self$`associations`)) { DataGraphObject[['associations']] <- - lapply(self$`associations`, function(x) x$toJSON()) + self$`associations` } DataGraphObject @@ -57,22 +61,23 @@ DataGraph <- R6::R6Class( if (!is.null(DataGraphObject$`associations`)) { self$`associations` <- ApiClient$new()$deserializeObj(DataGraphObject$`associations`, "list(array[DataAssociation])", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( if (!is.null(self$`entities`)) { sprintf( '"entities": - %s -', - jsonlite::toJSON(lapply(self$`entities`, function(x){ x$toJSON() }), auto_unbox = TRUE, digits=NA) + %s + ', + jsonlite::toJSON(lapply(self$`entities`, function(x){ x }), auto_unbox = FALSE, digits=NA) )}, if (!is.null(self$`associations`)) { sprintf( '"associations": - %s -', - jsonlite::toJSON(lapply(self$`associations`, function(x){ x$toJSON() }), auto_unbox = TRUE, digits=NA) + %s + ', + jsonlite::toJSON(lapply(self$`associations`, function(x){ x }), auto_unbox = FALSE, digits=NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -86,3 +91,4 @@ DataGraph <- R6::R6Class( } ) ) + diff --git a/R/R/data_graph_ids.R b/R/R/data_graph_ids.R index 7faa0c6..42597a1 100644 --- a/R/R/data_graph_ids.R +++ b/R/R/data_graph_ids.R @@ -8,12 +8,14 @@ #' @docType class #' @title DataGraphIds +#' #' @description DataGraphIds Class +#' #' @format An \code{R6Class} generator object -#' @field entityKeyIds named list( \link{array[character]} ) [optional] #' -#' @field entitySetIds named list( \link{array[character]} ) [optional] +#' @field entityKeyIds named list( array[character] ) [optional] #' +#' @field entitySetIds named list( array[character] ) [optional] #' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON @@ -23,16 +25,18 @@ DataGraphIds <- R6::R6Class( public = list( `entityKeyIds` = NULL, `entitySetIds` = NULL, - initialize = function(`entityKeyIds`=NULL, `entitySetIds`=NULL, ...){ + initialize = function( + `entityKeyIds`=NULL, `entitySetIds`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`entityKeyIds`)) { stopifnot(is.vector(`entityKeyIds`)) - sapply(`entityKeyIds`, function(x) stopifnot(R6::is.R6(x))) + sapply(`entityKeyIds`, function(x) stopifnot(is.character(x))) self$`entityKeyIds` <- `entityKeyIds` } if (!is.null(`entitySetIds`)) { stopifnot(is.vector(`entitySetIds`)) - sapply(`entitySetIds`, function(x) stopifnot(R6::is.R6(x))) + sapply(`entitySetIds`, function(x) stopifnot(is.character(x))) self$`entitySetIds` <- `entitySetIds` } }, @@ -40,11 +44,11 @@ DataGraphIds <- R6::R6Class( DataGraphIdsObject <- list() if (!is.null(self$`entityKeyIds`)) { DataGraphIdsObject[['entityKeyIds']] <- - lapply(self$`entityKeyIds`, function(x) x$toJSON()) + self$`entityKeyIds` } if (!is.null(self$`entitySetIds`)) { DataGraphIdsObject[['entitySetIds']] <- - lapply(self$`entitySetIds`, function(x) x$toJSON()) + self$`entitySetIds` } DataGraphIdsObject @@ -57,22 +61,23 @@ DataGraphIds <- R6::R6Class( if (!is.null(DataGraphIdsObject$`entitySetIds`)) { self$`entitySetIds` <- ApiClient$new()$deserializeObj(DataGraphIdsObject$`entitySetIds`, "list(array[character])", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( if (!is.null(self$`entityKeyIds`)) { sprintf( '"entityKeyIds": - %s -', - jsonlite::toJSON(lapply(self$`entityKeyIds`, function(x){ x$toJSON() }), auto_unbox = TRUE, digits=NA) + %s + ', + jsonlite::toJSON(lapply(self$`entityKeyIds`, function(x){ x }), auto_unbox = FALSE, digits=NA) )}, if (!is.null(self$`entitySetIds`)) { sprintf( '"entitySetIds": - %s -', - jsonlite::toJSON(lapply(self$`entitySetIds`, function(x){ x$toJSON() }), auto_unbox = TRUE, digits=NA) + %s + ', + jsonlite::toJSON(lapply(self$`entitySetIds`, function(x){ x }), auto_unbox = FALSE, digits=NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -86,3 +91,4 @@ DataGraphIds <- R6::R6Class( } ) ) + diff --git a/R/R/data_integrations_api.R b/R/R/data_integrations_api.R index 09f128e..fb21084 100644 --- a/R/R/data_integrations_api.R +++ b/R/R/data_integrations_api.R @@ -138,7 +138,7 @@ DataIntegrationsApi <- R6::R6Class( ' [%s] ', - paste(sapply(`entity_key`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`entity_key`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL @@ -207,7 +207,7 @@ DataIntegrationsApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`bulk_data_creation`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`bulk_data_creation`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL diff --git a/R/R/data_search_result.R b/R/R/data_search_result.R index 24d99cb..febbc00 100644 --- a/R/R/data_search_result.R +++ b/R/R/data_search_result.R @@ -8,13 +8,15 @@ #' @docType class #' @title DataSearchResult +#' #' @description DataSearchResult Class +#' #' @format An \code{R6Class} generator object +#' #' @field numHits integer [optional] #' #' @field hits list( list(array[character]) ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ DataSearchResult <- R6::R6Class( public = list( `numHits` = NULL, `hits` = NULL, - initialize = function(`numHits`=NULL, `hits`=NULL, ...){ + initialize = function( + `numHits`=NULL, `hits`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`numHits`)) { stopifnot(is.numeric(`numHits`), length(`numHits`) == 1) @@ -56,6 +60,7 @@ DataSearchResult <- R6::R6Class( if (!is.null(DataSearchResultObject$`hits`)) { self$`hits` <- ApiClient$new()$deserializeObj(DataSearchResultObject$`hits`, "array[list(array[character])]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -85,3 +90,4 @@ DataSearchResult <- R6::R6Class( } ) ) + diff --git a/R/R/dataset_api.R b/R/R/dataset_api.R index 80073d9..bddef51 100644 --- a/R/R/dataset_api.R +++ b/R/R/dataset_api.R @@ -717,7 +717,7 @@ DatasetApi <- R6::R6Class( ' [%s] ', - paste(sapply(`request_body`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL @@ -1166,7 +1166,7 @@ DatasetApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -1243,7 +1243,7 @@ DatasetApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL diff --git a/R/R/ed_mdiff.R b/R/R/ed_mdiff.R index 9699f09..f3f1e4e 100644 --- a/R/R/ed_mdiff.R +++ b/R/R/ed_mdiff.R @@ -8,13 +8,15 @@ #' @docType class #' @title EDMdiff +#' #' @description EDMdiff Class +#' #' @format An \code{R6Class} generator object +#' #' @field conflicts \link{EDM} [optional] #' #' @field diff \link{EDM} [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ EDMdiff <- R6::R6Class( public = list( `conflicts` = NULL, `diff` = NULL, - initialize = function(`conflicts`=NULL, `diff`=NULL, ...){ + initialize = function( + `conflicts`=NULL, `diff`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`conflicts`)) { stopifnot(R6::is.R6(`conflicts`)) @@ -51,14 +55,15 @@ EDMdiff <- R6::R6Class( EDMdiffObject <- jsonlite::fromJSON(EDMdiffJson) if (!is.null(EDMdiffObject$`conflicts`)) { conflictsObject <- EDM$new() - conflictsObject$fromJSON(jsonlite::toJSON(EDMdiffObject$conflicts, auto_unbox = TRUE, digits = NA)) + conflictsObject$fromJSON(jsonlite::toJSON(EDMdiffObject$conflicts, auto_unbox = FALSE, digits = NA)) self$`conflicts` <- conflictsObject } if (!is.null(EDMdiffObject$`diff`)) { diffObject <- EDM$new() - diffObject$fromJSON(jsonlite::toJSON(EDMdiffObject$diff, auto_unbox = TRUE, digits = NA)) + diffObject$fromJSON(jsonlite::toJSON(EDMdiffObject$diff, auto_unbox = FALSE, digits = NA)) self$`diff` <- diffObject } + self }, toJSONString = function() { jsoncontent <- c( @@ -67,14 +72,14 @@ EDMdiff <- R6::R6Class( '"conflicts": %s ', - jsonlite::toJSON(self$`conflicts`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`conflicts`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`diff`)) { sprintf( '"diff": %s ', - jsonlite::toJSON(self$`diff`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`diff`$toJSON(), auto_unbox=FALSE, digits = NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -82,9 +87,10 @@ EDMdiff <- R6::R6Class( }, fromJSONString = function(EDMdiffJson) { EDMdiffObject <- jsonlite::fromJSON(EDMdiffJson) - self$`conflicts` <- EDM$new()$fromJSON(jsonlite::toJSON(EDMdiffObject$conflicts, auto_unbox = TRUE, digits = NA)) - self$`diff` <- EDM$new()$fromJSON(jsonlite::toJSON(EDMdiffObject$diff, auto_unbox = TRUE, digits = NA)) + self$`conflicts` <- EDM$new()$fromJSON(jsonlite::toJSON(EDMdiffObject$conflicts, auto_unbox = FALSE, digits = NA)) + self$`diff` <- EDM$new()$fromJSON(jsonlite::toJSON(EDMdiffObject$diff, auto_unbox = FALSE, digits = NA)) self } ) ) + diff --git a/R/R/edm.R b/R/R/edm.R index 9bde7b0..3bf268d 100644 --- a/R/R/edm.R +++ b/R/R/edm.R @@ -8,8 +8,11 @@ #' @docType class #' @title EDM +#' #' @description EDM Class +#' #' @format An \code{R6Class} generator object +#' #' @field namespaces list( character ) [optional] #' #' @field schemas list( \link{Schema} ) [optional] @@ -20,7 +23,6 @@ #' #' @field associationTypes list( \link{AssociationType} ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -32,7 +34,9 @@ EDM <- R6::R6Class( `propertyTypes` = NULL, `entityTypes` = NULL, `associationTypes` = NULL, - initialize = function(`namespaces`=NULL, `schemas`=NULL, `propertyTypes`=NULL, `entityTypes`=NULL, `associationTypes`=NULL, ...){ + initialize = function( + `namespaces`=NULL, `schemas`=NULL, `propertyTypes`=NULL, `entityTypes`=NULL, `associationTypes`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`namespaces`)) { stopifnot(is.vector(`namespaces`)) @@ -102,6 +106,7 @@ EDM <- R6::R6Class( if (!is.null(EDMObject$`associationTypes`)) { self$`associationTypes` <- ApiClient$new()$deserializeObj(EDMObject$`associationTypes`, "array[AssociationType]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -117,28 +122,28 @@ EDM <- R6::R6Class( '"schemas": [%s] ', - paste(sapply(self$`schemas`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`schemas`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )}, if (!is.null(self$`propertyTypes`)) { sprintf( '"propertyTypes": [%s] ', - paste(sapply(self$`propertyTypes`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`propertyTypes`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )}, if (!is.null(self$`entityTypes`)) { sprintf( '"entityTypes": [%s] ', - paste(sapply(self$`entityTypes`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`entityTypes`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )}, if (!is.null(self$`associationTypes`)) { sprintf( '"associationTypes": [%s] ', - paste(sapply(self$`associationTypes`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`associationTypes`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -155,3 +160,4 @@ EDM <- R6::R6Class( } ) ) + diff --git a/R/R/edm_api.R b/R/R/edm_api.R index 69f82ce..9188176 100644 --- a/R/R/edm_api.R +++ b/R/R/edm_api.R @@ -31,6 +31,40 @@ #' } #' } #' +#' \strong{ add_entity_sets_to_linking_entity_set } \emph{ Adds the entity sets as linked entity sets to the linking entity set } +#' +#' +#' \itemize{ +#' \item \emph{ @param } linking_entity_set_id \link{character} +#' \item \emph{ @param } request_body list( character ) +#' +#' +#' \item status code : 200 | Success +#' +#' \item return type : integer +#' \item response headers : +#' +#' \tabular{ll}{ +#' } +#' } +#' +#' \strong{ add_entity_sets_to_linking_entity_sets } \emph{ Adds the entity sets as linked entity sets to the linking entity sets } +#' +#' +#' \itemize{ +#' \item \emph{ @param } linking_entity_set_id character +#' \item \emph{ @param } request_body named list( \link{list(array[character])} ) +#' +#' +#' \item status code : 200 | Success +#' +#' \item return type : integer +#' \item response headers : +#' +#' \tabular{ll}{ +#' } +#' } +#' #' \strong{ add_primary_key_to_entity_type } \emph{ Adds a primary key with a given ID to an entity type with a given ID. } #' #' @@ -115,6 +149,22 @@ #' } #' } #' +#' \strong{ create_entity_sets } \emph{ Creates new EntitySet definitions if they don't exist. } +#' +#' +#' \itemize{ +#' \item \emph{ @param } entity_set list( \link{EntitySet} ) +#' +#' +#' \item status code : 200 | Success +#' +#' +#' \item response headers : +#' +#' \tabular{ll}{ +#' } +#' } +#' #' \strong{ create_entity_type } \emph{ Creates a new EntityType definition, if it doesn't exist. } #' #' @@ -179,6 +229,22 @@ #' } #' } #' +#' \strong{ delete_entity_set } \emph{ Deletes the EntitySet definition for the given EntitySet UUID. } +#' +#' +#' \itemize{ +#' \item \emph{ @param } entity_set_id \link{character} +#' +#' +#' \item status code : 200 | Success +#' +#' +#' \item response headers : +#' +#' \tabular{ll}{ +#' } +#' } +#' #' \strong{ delete_entity_type } \emph{ Deletes the EntityType definition for the given EntityType UUID. } #' #' @@ -277,6 +343,39 @@ #' } #' } #' +#' \strong{ get_all_entity_set_property_metadata } \emph{ Get all entity set property metadata. } +#' +#' +#' \itemize{ +#' \item \emph{ @param } entity_set_id \link{character} +#' \item \emph{ @returnType } named list( \link{EntitySetPropertyMetaData} ) \cr +#' +#' +#' \item status code : 200 | Success +#' +#' \item return type : list(EntitySetPropertyMetaData) +#' \item response headers : +#' +#' \tabular{ll}{ +#' } +#' } +#' +#' \strong{ get_all_entity_sets } \emph{ Get all EntitySet definitions. } +#' +#' +#' \itemize{ +#' \item \emph{ @returnType } list( \link{EntitySet} ) \cr +#' +#' +#' \item status code : 200 | Success +#' +#' \item return type : array[EntitySet] +#' \item response headers : +#' +#' \tabular{ll}{ +#' } +#' } +#' #' \strong{ get_all_entity_type_property_metadata } \emph{ Get all EntityType propertyType metadata } #' #' @@ -426,6 +525,73 @@ #' } #' } #' +#' \strong{ get_entity_set } \emph{ Get the EntitySet definition for the given EntitySet UUID. } +#' +#' +#' \itemize{ +#' \item \emph{ @param } entity_set_id \link{character} +#' \item \emph{ @returnType } \link{EntitySet} \cr +#' +#' +#' \item status code : 200 | An Entity Set definition +#' +#' \item return type : EntitySet +#' \item response headers : +#' +#' \tabular{ll}{ +#' } +#' } +#' +#' \strong{ get_entity_set_id } \emph{ Gets the EntitySet UUID for the given EntitySet name. } +#' +#' +#' \itemize{ +#' \item \emph{ @param } entity_set_name character +#' +#' +#' \item status code : 200 | Success +#' +#' \item return type : character +#' \item response headers : +#' +#' \tabular{ll}{ +#' } +#' } +#' +#' \strong{ get_entity_set_ids } \emph{ Get IDs for entity sets given their names. } +#' +#' +#' \itemize{ +#' \item \emph{ @param } request_body list( character ) +#' +#' +#' \item status code : 200 | Success +#' +#' \item return type : list(character) +#' \item response headers : +#' +#' \tabular{ll}{ +#' } +#' } +#' +#' \strong{ get_entity_set_property_metadata } \emph{ Get specified property type metadata for an entity set. } +#' +#' +#' \itemize{ +#' \item \emph{ @param } entity_set_id \link{character} +#' \item \emph{ @param } property_type_id \link{character} +#' \item \emph{ @returnType } \link{EntitySetPropertyMetaData} \cr +#' +#' +#' \item status code : 200 | Success +#' +#' \item return type : EntitySetPropertyMetaData +#' \item response headers : +#' +#' \tabular{ll}{ +#' } +#' } +#' #' \strong{ get_entity_type } \emph{ Gets the EntityType definition for the given EntityType UUID. } #' #' @@ -494,6 +660,22 @@ #' } #' } #' +#' \strong{ get_property_metadata_for_entity_sets } \emph{ Get property metadata for entity sets. } +#' +#' +#' \itemize{ +#' \item \emph{ @param } request_body list( character ) +#' +#' +#' \item status code : 200 | EntitySetPropertyMetaData +#' +#' \item return type : list(list(EntitySetPropertyMetaData)) +#' \item response headers : +#' +#' \tabular{ll}{ +#' } +#' } +#' #' \strong{ get_property_type } \emph{ Gets the PropertyType definition for the given PropertyType UUID. } #' #' @@ -528,6 +710,23 @@ #' } #' } #' +#' \strong{ get_property_types_for_entity_set } \emph{ Get all Property Types for entity set } +#' +#' +#' \itemize{ +#' \item \emph{ @param } entity_set_id \link{character} +#' \item \emph{ @returnType } named list( \link{PropertyType} ) \cr +#' +#' +#' \item status code : 200 | Success +#' +#' \item return type : list(PropertyType) +#' \item response headers : +#' +#' \tabular{ll}{ +#' } +#' } +#' #' \strong{ get_property_usage_summary } \emph{ Get Property Usage Summary for property with given ID. } #' #' @@ -614,6 +813,40 @@ #' } #' } #' +#' \strong{ remove_entity_sets_from_linking_entity_set } \emph{ Removes/unlinks the linked entity sets from the linking entity set } +#' +#' +#' \itemize{ +#' \item \emph{ @param } linking_entity_set_id character +#' \item \emph{ @param } request_body list( character ) +#' +#' +#' \item status code : 200 | Success +#' +#' \item return type : integer +#' \item response headers : +#' +#' \tabular{ll}{ +#' } +#' } +#' +#' \strong{ remove_entity_sets_from_linking_entity_sets } \emph{ Removes/unlinks the linked entity sets from the linking entity set } +#' +#' +#' \itemize{ +#' \item \emph{ @param } linking_entity_set_id \link{character} +#' \item \emph{ @param } request_body named list( \link{list(array[character])} ) +#' +#' +#' \item status code : 200 | Success +#' +#' \item return type : integer +#' \item response headers : +#' +#' \tabular{ll}{ +#' } +#' } +#' #' \strong{ remove_primary_key_from_entity_type } \emph{ Removes a primary key with a given ID from an entity type with a given ID. } #' #' @@ -698,6 +931,41 @@ #' } #' } #' +#' \strong{ update_entity_set_meta_data } \emph{ Updates the EntitySet definition for the given EntitySet UUID with the given metadata. } +#' +#' +#' \itemize{ +#' \item \emph{ @param } entity_set_id \link{character} +#' \item \emph{ @param } metadata_update \link{MetadataUpdate} +#' +#' +#' \item status code : 200 | Success +#' +#' \item return type : integer +#' \item response headers : +#' +#' \tabular{ll}{ +#' } +#' } +#' +#' \strong{ update_entity_set_property_metadata } \emph{ Updates the property type metadata for the given entity set. } +#' +#' +#' \itemize{ +#' \item \emph{ @param } entity_set_id \link{character} +#' \item \emph{ @param } property_type_id \link{character} +#' \item \emph{ @param } metadata_update \link{MetadataUpdate} +#' +#' +#' \item status code : 200 | Success +#' +#' +#' \item response headers : +#' +#' \tabular{ll}{ +#' } +#' } +#' #' \strong{ update_entity_type_meta_data } \emph{ Updates the EntityType definition for the given EntityType UUID with the given metadata. } #' #' @@ -793,6 +1061,48 @@ #' result <- api.instance$add_dst_entity_type_to_association_type(var.association_type_id, var.entity_type_id) #' #' +#' #################### add_entity_sets_to_linking_entity_set #################### +#' +#' library(openlattice) +#' var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | +#' var.request_body <- list('request_body_example') # array[character] | +#' +#' #Adds the entity sets as linked entity sets to the linking entity set +#' api.instance <- EdmApi$new() +#' +#' #Configure HTTP basic authorization: http_auth +#' # provide your username in the user-serial format +#' api.instance$apiClient$username <- ''; +#' # provide your api key generated using the developer portal +#' api.instance$apiClient$password <- ''; +#' +#' #Configure API key authorization: openlattice_auth +#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +#' +#' result <- api.instance$add_entity_sets_to_linking_entity_set(var.linking_entity_set_id, request_body=var.request_body) +#' +#' +#' #################### add_entity_sets_to_linking_entity_sets #################### +#' +#' library(openlattice) +#' var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | +#' var.request_body <- NULL # list(array[character]) | +#' +#' #Adds the entity sets as linked entity sets to the linking entity sets +#' api.instance <- EdmApi$new() +#' +#' #Configure HTTP basic authorization: http_auth +#' # provide your username in the user-serial format +#' api.instance$apiClient$username <- ''; +#' # provide your api key generated using the developer portal +#' api.instance$apiClient$password <- ''; +#' +#' #Configure API key authorization: openlattice_auth +#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +#' +#' result <- api.instance$add_entity_sets_to_linking_entity_sets(var.linking_entity_set_id, var.request_body) +#' +#' #' #################### add_primary_key_to_entity_type #################### #' #' library(openlattice) @@ -888,16 +1198,36 @@ #' result <- api.instance$create_empty_schema(var.namespace, var.name) #' #' -#' #################### create_entity_type #################### +#' #################### create_entity_sets #################### #' #' library(openlattice) -#' var.entity_type <- EntityType$new() # EntityType | +#' var.entity_set <- list(EntitySet$new()) # array[EntitySet] | #' -#' #Creates a new EntityType definition, if it doesn't exist. +#' #Creates new EntitySet definitions if they don't exist. #' api.instance <- EdmApi$new() #' -#' result <- api.instance$create_entity_type(var.entity_type) -#' +#' #Configure HTTP basic authorization: http_auth +#' # provide your username in the user-serial format +#' api.instance$apiClient$username <- ''; +#' # provide your api key generated using the developer portal +#' api.instance$apiClient$password <- ''; +#' +#' #Configure API key authorization: openlattice_auth +#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +#' +#' result <- api.instance$create_entity_sets(var.entity_set) +#' +#' +#' #################### create_entity_type #################### +#' +#' library(openlattice) +#' var.entity_type <- EntityType$new() # EntityType | +#' +#' #Creates a new EntityType definition, if it doesn't exist. +#' api.instance <- EdmApi$new() +#' +#' result <- api.instance$create_entity_type(var.entity_type) +#' #' #' #################### create_property_type #################### #' @@ -950,6 +1280,26 @@ #' result <- api.instance$delete_association_type(var.association_type_id) #' #' +#' #################### delete_entity_set #################### +#' +#' library(openlattice) +#' var.entity_set_id <- 'entity_set_id_example' # character | +#' +#' #Deletes the EntitySet definition for the given EntitySet UUID. +#' api.instance <- EdmApi$new() +#' +#' #Configure HTTP basic authorization: http_auth +#' # provide your username in the user-serial format +#' api.instance$apiClient$username <- ''; +#' # provide your api key generated using the developer portal +#' api.instance$apiClient$password <- ''; +#' +#' #Configure API key authorization: openlattice_auth +#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +#' +#' result <- api.instance$delete_entity_set(var.entity_set_id) +#' +#' #' #################### delete_entity_type #################### #' #' library(openlattice) @@ -1061,6 +1411,45 @@ #' result <- api.instance$get_all_available_association_types(var.association_type_id) #' #' +#' #################### get_all_entity_set_property_metadata #################### +#' +#' library(openlattice) +#' var.entity_set_id <- 'entity_set_id_example' # character | +#' +#' #Get all entity set property metadata. +#' api.instance <- EdmApi$new() +#' +#' #Configure HTTP basic authorization: http_auth +#' # provide your username in the user-serial format +#' api.instance$apiClient$username <- ''; +#' # provide your api key generated using the developer portal +#' api.instance$apiClient$password <- ''; +#' +#' #Configure API key authorization: openlattice_auth +#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +#' +#' result <- api.instance$get_all_entity_set_property_metadata(var.entity_set_id) +#' +#' +#' #################### get_all_entity_sets #################### +#' +#' library(openlattice) +#' +#' #Get all EntitySet definitions. +#' api.instance <- EdmApi$new() +#' +#' #Configure HTTP basic authorization: http_auth +#' # provide your username in the user-serial format +#' api.instance$apiClient$username <- ''; +#' # provide your api key generated using the developer portal +#' api.instance$apiClient$password <- ''; +#' +#' #Configure API key authorization: openlattice_auth +#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +#' +#' result <- api.instance$get_all_entity_sets() +#' +#' #' #################### get_all_entity_type_property_metadata #################### #' #' library(openlattice) @@ -1228,6 +1617,87 @@ #' result <- api.instance$get_entity_data_model_diff(var.ed_mdiff) #' #' +#' #################### get_entity_set #################### +#' +#' library(openlattice) +#' var.entity_set_id <- 'entity_set_id_example' # character | +#' +#' #Get the EntitySet definition for the given EntitySet UUID. +#' api.instance <- EdmApi$new() +#' +#' #Configure HTTP basic authorization: http_auth +#' # provide your username in the user-serial format +#' api.instance$apiClient$username <- ''; +#' # provide your api key generated using the developer portal +#' api.instance$apiClient$password <- ''; +#' +#' #Configure API key authorization: openlattice_auth +#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +#' +#' result <- api.instance$get_entity_set(var.entity_set_id) +#' +#' +#' #################### get_entity_set_id #################### +#' +#' library(openlattice) +#' var.entity_set_name <- 'entity_set_name_example' # character | +#' +#' #Gets the EntitySet UUID for the given EntitySet name. +#' api.instance <- EdmApi$new() +#' +#' #Configure HTTP basic authorization: http_auth +#' # provide your username in the user-serial format +#' api.instance$apiClient$username <- ''; +#' # provide your api key generated using the developer portal +#' api.instance$apiClient$password <- ''; +#' +#' #Configure API key authorization: openlattice_auth +#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +#' +#' result <- api.instance$get_entity_set_id(var.entity_set_name) +#' +#' +#' #################### get_entity_set_ids #################### +#' +#' library(openlattice) +#' var.request_body <- list('request_body_example') # array[character] | +#' +#' #Get IDs for entity sets given their names. +#' api.instance <- EdmApi$new() +#' +#' #Configure HTTP basic authorization: http_auth +#' # provide your username in the user-serial format +#' api.instance$apiClient$username <- ''; +#' # provide your api key generated using the developer portal +#' api.instance$apiClient$password <- ''; +#' +#' #Configure API key authorization: openlattice_auth +#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +#' +#' result <- api.instance$get_entity_set_ids(request_body=var.request_body) +#' +#' +#' #################### get_entity_set_property_metadata #################### +#' +#' library(openlattice) +#' var.entity_set_id <- 'entity_set_id_example' # character | +#' var.property_type_id <- 'property_type_id_example' # character | +#' +#' #Get specified property type metadata for an entity set. +#' api.instance <- EdmApi$new() +#' +#' #Configure HTTP basic authorization: http_auth +#' # provide your username in the user-serial format +#' api.instance$apiClient$username <- ''; +#' # provide your api key generated using the developer portal +#' api.instance$apiClient$password <- ''; +#' +#' #Configure API key authorization: openlattice_auth +#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +#' +#' result <- api.instance$get_entity_set_property_metadata(var.entity_set_id, var.property_type_id) +#' +#' #' #################### get_entity_type #################### #' #' library(openlattice) @@ -1301,6 +1771,26 @@ #' result <- api.instance$get_entity_type_property_metadata(var.entity_type_id, var.property_type_id) #' #' +#' #################### get_property_metadata_for_entity_sets #################### +#' +#' library(openlattice) +#' var.request_body <- list('request_body_example') # array[character] | +#' +#' #Get property metadata for entity sets. +#' api.instance <- EdmApi$new() +#' +#' #Configure HTTP basic authorization: http_auth +#' # provide your username in the user-serial format +#' api.instance$apiClient$username <- ''; +#' # provide your api key generated using the developer portal +#' api.instance$apiClient$password <- ''; +#' +#' #Configure API key authorization: openlattice_auth +#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +#' +#' result <- api.instance$get_property_metadata_for_entity_sets(request_body=var.request_body) +#' +#' #' #################### get_property_type #################### #' #' library(openlattice) @@ -1342,6 +1832,26 @@ #' result <- api.instance$get_property_type_id(var.namespace, var.name) #' #' +#' #################### get_property_types_for_entity_set #################### +#' +#' library(openlattice) +#' var.entity_set_id <- 'entity_set_id_example' # character | +#' +#' #Get all Property Types for entity set +#' api.instance <- EdmApi$new() +#' +#' #Configure HTTP basic authorization: http_auth +#' # provide your username in the user-serial format +#' api.instance$apiClient$username <- ''; +#' # provide your api key generated using the developer portal +#' api.instance$apiClient$password <- ''; +#' +#' #Configure API key authorization: openlattice_auth +#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +#' +#' result <- api.instance$get_property_types_for_entity_set(var.entity_set_id) +#' +#' #' #################### get_property_usage_summary #################### #' #' library(openlattice) @@ -1444,6 +1954,48 @@ #' result <- api.instance$remove_dst_entity_type_from_association_type(var.association_type_id, var.entity_type_id) #' #' +#' #################### remove_entity_sets_from_linking_entity_set #################### +#' +#' library(openlattice) +#' var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | +#' var.request_body <- list('request_body_example') # array[character] | +#' +#' #Removes/unlinks the linked entity sets from the linking entity set +#' api.instance <- EdmApi$new() +#' +#' #Configure HTTP basic authorization: http_auth +#' # provide your username in the user-serial format +#' api.instance$apiClient$username <- ''; +#' # provide your api key generated using the developer portal +#' api.instance$apiClient$password <- ''; +#' +#' #Configure API key authorization: openlattice_auth +#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +#' +#' result <- api.instance$remove_entity_sets_from_linking_entity_set(var.linking_entity_set_id, request_body=var.request_body) +#' +#' +#' #################### remove_entity_sets_from_linking_entity_sets #################### +#' +#' library(openlattice) +#' var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | +#' var.request_body <- NULL # list(array[character]) | +#' +#' #Removes/unlinks the linked entity sets from the linking entity set +#' api.instance <- EdmApi$new() +#' +#' #Configure HTTP basic authorization: http_auth +#' # provide your username in the user-serial format +#' api.instance$apiClient$username <- ''; +#' # provide your api key generated using the developer portal +#' api.instance$apiClient$password <- ''; +#' +#' #Configure API key authorization: openlattice_auth +#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +#' +#' result <- api.instance$remove_entity_sets_from_linking_entity_sets(var.linking_entity_set_id, var.request_body) +#' +#' #' #################### remove_primary_key_from_entity_type #################### #' #' library(openlattice) @@ -1548,6 +2100,49 @@ #' result <- api.instance$update_entity_data_model(var.EDM) #' #' +#' #################### update_entity_set_meta_data #################### +#' +#' library(openlattice) +#' var.entity_set_id <- 'entity_set_id_example' # character | +#' var.metadata_update <- MetadataUpdate$new() # MetadataUpdate | +#' +#' #Updates the EntitySet definition for the given EntitySet UUID with the given metadata. +#' api.instance <- EdmApi$new() +#' +#' #Configure HTTP basic authorization: http_auth +#' # provide your username in the user-serial format +#' api.instance$apiClient$username <- ''; +#' # provide your api key generated using the developer portal +#' api.instance$apiClient$password <- ''; +#' +#' #Configure API key authorization: openlattice_auth +#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +#' +#' result <- api.instance$update_entity_set_meta_data(var.entity_set_id, var.metadata_update) +#' +#' +#' #################### update_entity_set_property_metadata #################### +#' +#' library(openlattice) +#' var.entity_set_id <- 'entity_set_id_example' # character | +#' var.property_type_id <- 'property_type_id_example' # character | +#' var.metadata_update <- MetadataUpdate$new() # MetadataUpdate | +#' +#' #Updates the property type metadata for the given entity set. +#' api.instance <- EdmApi$new() +#' +#' #Configure HTTP basic authorization: http_auth +#' # provide your username in the user-serial format +#' api.instance$apiClient$username <- ''; +#' # provide your api key generated using the developer portal +#' api.instance$apiClient$password <- ''; +#' +#' #Configure API key authorization: openlattice_auth +#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +#' +#' result <- api.instance$update_entity_set_property_metadata(var.entity_set_id, var.property_type_id, var.metadata_update) +#' +#' #' #################### update_entity_type_meta_data #################### #' #' library(openlattice) @@ -1707,8 +2302,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - add_primary_key_to_entity_type = function(entity_type_id, property_type_id, ...){ - apiResponse <- self$add_primary_key_to_entity_typeWithHttpInfo(entity_type_id, property_type_id, ...) + add_entity_sets_to_linking_entity_set = function(linking_entity_set_id, request_body=NULL, ...){ + apiResponse <- self$add_entity_sets_to_linking_entity_setWithHttpInfo(linking_entity_set_id, request_body, ...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -1721,26 +2316,29 @@ EdmApi <- R6::R6Class( } }, - add_primary_key_to_entity_typeWithHttpInfo = function(entity_type_id, property_type_id, ...){ + add_entity_sets_to_linking_entity_setWithHttpInfo = function(linking_entity_set_id, request_body=NULL, ...){ args <- list(...) queryParams <- list() headerParams <- c() - if (missing(`entity_type_id`)) { - stop("Missing required parameter `entity_type_id`.") - } - - if (missing(`property_type_id`)) { - stop("Missing required parameter `property_type_id`.") + if (missing(`linking_entity_set_id`)) { + stop("Missing required parameter `linking_entity_set_id`.") } - urlPath <- "/datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId}" - if (!missing(`entity_type_id`)) { - urlPath <- gsub(paste0("\\{", "entityTypeId", "\\}"), URLencode(as.character(`entity_type_id`), reserved = TRUE), urlPath) + if (!missing(`request_body`)) { + body <- sprintf( + ' + [%s] +', + paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") + ) + } else { + body <- NULL } - if (!missing(`property_type_id`)) { - urlPath <- gsub(paste0("\\{", "propertyTypeId", "\\}"), URLencode(as.character(`property_type_id`), reserved = TRUE), urlPath) + urlPath <- "/datastore/entity-sets/linking/{linkingEntitySetId}" + if (!missing(`linking_entity_set_id`)) { + urlPath <- gsub(paste0("\\{", "linkingEntitySetId", "\\}"), URLencode(as.character(`linking_entity_set_id`), reserved = TRUE), urlPath) } # API key authentication @@ -1749,18 +2347,153 @@ EdmApi <- R6::R6Class( } resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "PUT", + method = "POST", queryParams = queryParams, headerParams = headerParams, body = body, ...) if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - ApiResponse$new(NULL, resp) - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - ApiResponse$new("API client error", resp) + deserializedRespObj <- tryCatch( + self$apiClient$deserialize(resp, "integer", loadNamespace("openlattice")), + error = function(e){ + stop("Failed to deserialize response") + } + ) + ApiResponse$new(deserializedRespObj, resp) + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + ApiResponse$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + ApiResponse$new("API server error", resp) + } + }, + add_entity_sets_to_linking_entity_sets = function(linking_entity_set_id, request_body, ...){ + apiResponse <- self$add_entity_sets_to_linking_entity_setsWithHttpInfo(linking_entity_set_id, request_body, ...) + resp <- apiResponse$response + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + apiResponse$content + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + apiResponse + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + apiResponse + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + apiResponse + } + }, + + add_entity_sets_to_linking_entity_setsWithHttpInfo = function(linking_entity_set_id, request_body, ...){ + args <- list(...) + queryParams <- list() + headerParams <- c() + + if (missing(`linking_entity_set_id`)) { + stop("Missing required parameter `linking_entity_set_id`.") + } + + if (missing(`request_body`)) { + stop("Missing required parameter `request_body`.") + } + + if (!missing(`request_body`)) { + body <- sprintf( + ' + %s +', + jsonlite::toJSON(`request_body`, digits=NA) + ) + } else { + body <- NULL + } + + urlPath <- "/datastore/entity-sets/linking/" + if (!missing(`linking_entity_set_id`)) { + urlPath <- gsub(paste0("\\{", "linkingEntitySetId", "\\}"), URLencode(as.character(`linking_entity_set_id`), reserved = TRUE), urlPath) + } + + # API key authentication + if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { + headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') + } + + resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), + method = "PUT", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + deserializedRespObj <- tryCatch( + self$apiClient$deserialize(resp, "integer", loadNamespace("openlattice")), + error = function(e){ + stop("Failed to deserialize response") + } + ) + ApiResponse$new(deserializedRespObj, resp) + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + ApiResponse$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + ApiResponse$new("API server error", resp) + } + }, + add_primary_key_to_entity_type = function(entity_type_id, property_type_id, ...){ + apiResponse <- self$add_primary_key_to_entity_typeWithHttpInfo(entity_type_id, property_type_id, ...) + resp <- apiResponse$response + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + apiResponse$content + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + apiResponse + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + apiResponse + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + apiResponse + } + }, + + add_primary_key_to_entity_typeWithHttpInfo = function(entity_type_id, property_type_id, ...){ + args <- list(...) + queryParams <- list() + headerParams <- c() + + if (missing(`entity_type_id`)) { + stop("Missing required parameter `entity_type_id`.") + } + + if (missing(`property_type_id`)) { + stop("Missing required parameter `property_type_id`.") + } + + urlPath <- "/datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId}" + if (!missing(`entity_type_id`)) { + urlPath <- gsub(paste0("\\{", "entityTypeId", "\\}"), URLencode(as.character(`entity_type_id`), reserved = TRUE), urlPath) + } + + if (!missing(`property_type_id`)) { + urlPath <- gsub(paste0("\\{", "propertyTypeId", "\\}"), URLencode(as.character(`property_type_id`), reserved = TRUE), urlPath) + } + + # API key authentication + if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { + headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') + } + + resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), + method = "PUT", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + ApiResponse$new(NULL, resp) + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + ApiResponse$new("API client error", resp) } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { ApiResponse$new("API server error", resp) } @@ -1909,7 +2642,7 @@ EdmApi <- R6::R6Class( ' [%s] ', - paste(sapply(`association_type`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`association_type`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL @@ -1992,6 +2725,63 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, + create_entity_sets = function(entity_set, ...){ + apiResponse <- self$create_entity_setsWithHttpInfo(entity_set, ...) + resp <- apiResponse$response + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + apiResponse$content + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + apiResponse + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + apiResponse + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + apiResponse + } + }, + + create_entity_setsWithHttpInfo = function(entity_set, ...){ + args <- list(...) + queryParams <- list() + headerParams <- c() + + if (missing(`entity_set`)) { + stop("Missing required parameter `entity_set`.") + } + + if (!missing(`entity_set`)) { + body <- sprintf( + ' + [%s] +', + paste(sapply(`entity_set`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") + ) + } else { + body <- NULL + } + + urlPath <- "/datastore/entity-sets" + # API key authentication + if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { + headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') + } + + resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), + method = "POST", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + ApiResponse$new(NULL, resp) + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + ApiResponse$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + ApiResponse$new("API server error", resp) + } + }, create_entity_type = function(entity_type, ...){ apiResponse <- self$create_entity_typeWithHttpInfo(entity_type, ...) resp <- apiResponse$response @@ -2020,7 +2810,7 @@ EdmApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`entity_type`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`entity_type`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -2073,7 +2863,7 @@ EdmApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`property_type`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`property_type`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -2130,7 +2920,7 @@ EdmApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`schema`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`schema`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -2188,6 +2978,56 @@ EdmApi <- R6::R6Class( } + resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), + method = "DELETE", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + ApiResponse$new(NULL, resp) + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + ApiResponse$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + ApiResponse$new("API server error", resp) + } + }, + delete_entity_set = function(entity_set_id, ...){ + apiResponse <- self$delete_entity_setWithHttpInfo(entity_set_id, ...) + resp <- apiResponse$response + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + apiResponse$content + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + apiResponse + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + apiResponse + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + apiResponse + } + }, + + delete_entity_setWithHttpInfo = function(entity_set_id, ...){ + args <- list(...) + queryParams <- list() + headerParams <- c() + + if (missing(`entity_set_id`)) { + stop("Missing required parameter `entity_set_id`.") + } + + urlPath <- "/datastore/entity-sets/all/{entitySetId}" + if (!missing(`entity_set_id`)) { + urlPath <- gsub(paste0("\\{", "entitySetId", "\\}"), URLencode(as.character(`entity_set_id`), reserved = TRUE), urlPath) + } + + # API key authentication + if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { + headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') + } + resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), method = "DELETE", queryParams = queryParams, @@ -2513,8 +3353,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_all_entity_type_property_metadata = function(entity_type_id, ...){ - apiResponse <- self$get_all_entity_type_property_metadataWithHttpInfo(entity_type_id, ...) + get_all_entity_set_property_metadata = function(entity_set_id, ...){ + apiResponse <- self$get_all_entity_set_property_metadataWithHttpInfo(entity_set_id, ...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -2527,18 +3367,18 @@ EdmApi <- R6::R6Class( } }, - get_all_entity_type_property_metadataWithHttpInfo = function(entity_type_id, ...){ + get_all_entity_set_property_metadataWithHttpInfo = function(entity_set_id, ...){ args <- list(...) queryParams <- list() headerParams <- c() - if (missing(`entity_type_id`)) { - stop("Missing required parameter `entity_type_id`.") + if (missing(`entity_set_id`)) { + stop("Missing required parameter `entity_set_id`.") } - urlPath <- "/datastore/edm/entity/type/{entityTypeId}/property/type" - if (!missing(`entity_type_id`)) { - urlPath <- gsub(paste0("\\{", "entityTypeId", "\\}"), URLencode(as.character(`entity_type_id`), reserved = TRUE), urlPath) + urlPath <- "/datastore/entity-sets/all/{entitySetId}/metadata" + if (!missing(`entity_set_id`)) { + urlPath <- gsub(paste0("\\{", "entitySetId", "\\}"), URLencode(as.character(`entity_set_id`), reserved = TRUE), urlPath) } # API key authentication @@ -2555,7 +3395,7 @@ EdmApi <- R6::R6Class( if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "list(EntityTypePropertyMetadata)", loadNamespace("openlattice")), + self$apiClient$deserialize(resp, "list(EntitySetPropertyMetaData)", loadNamespace("openlattice")), error = function(e){ stop("Failed to deserialize response") } @@ -2569,8 +3409,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_all_entity_types = function(...){ - apiResponse <- self$get_all_entity_typesWithHttpInfo(...) + get_all_entity_sets = function(...){ + apiResponse <- self$get_all_entity_setsWithHttpInfo(...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -2583,12 +3423,12 @@ EdmApi <- R6::R6Class( } }, - get_all_entity_typesWithHttpInfo = function(...){ + get_all_entity_setsWithHttpInfo = function(...){ args <- list(...) queryParams <- list() headerParams <- c() - urlPath <- "/datastore/edm/entity/type/" + urlPath <- "/datastore/entity-sets" # API key authentication if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') @@ -2603,7 +3443,7 @@ EdmApi <- R6::R6Class( if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "array[EntityType]", loadNamespace("openlattice")), + self$apiClient$deserialize(resp, "array[EntitySet]", loadNamespace("openlattice")), error = function(e){ stop("Failed to deserialize response") } @@ -2617,8 +3457,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_all_property_types = function(...){ - apiResponse <- self$get_all_property_typesWithHttpInfo(...) + get_all_entity_type_property_metadata = function(entity_type_id, ...){ + apiResponse <- self$get_all_entity_type_property_metadataWithHttpInfo(entity_type_id, ...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -2631,12 +3471,20 @@ EdmApi <- R6::R6Class( } }, - get_all_property_typesWithHttpInfo = function(...){ + get_all_entity_type_property_metadataWithHttpInfo = function(entity_type_id, ...){ args <- list(...) queryParams <- list() headerParams <- c() - urlPath <- "/datastore/edm/property/type/" + if (missing(`entity_type_id`)) { + stop("Missing required parameter `entity_type_id`.") + } + + urlPath <- "/datastore/edm/entity/type/{entityTypeId}/property/type" + if (!missing(`entity_type_id`)) { + urlPath <- gsub(paste0("\\{", "entityTypeId", "\\}"), URLencode(as.character(`entity_type_id`), reserved = TRUE), urlPath) + } + # API key authentication if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') @@ -2651,7 +3499,7 @@ EdmApi <- R6::R6Class( if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "array[PropertyType]", loadNamespace("openlattice")), + self$apiClient$deserialize(resp, "list(EntityTypePropertyMetadata)", loadNamespace("openlattice")), error = function(e){ stop("Failed to deserialize response") } @@ -2665,8 +3513,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_all_property_types_in_namespace = function(namespace, ...){ - apiResponse <- self$get_all_property_types_in_namespaceWithHttpInfo(namespace, ...) + get_all_entity_types = function(...){ + apiResponse <- self$get_all_entity_typesWithHttpInfo(...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -2679,13 +3527,109 @@ EdmApi <- R6::R6Class( } }, - get_all_property_types_in_namespaceWithHttpInfo = function(namespace, ...){ + get_all_entity_typesWithHttpInfo = function(...){ args <- list(...) queryParams <- list() headerParams <- c() - if (missing(`namespace`)) { - stop("Missing required parameter `namespace`.") + urlPath <- "/datastore/edm/entity/type/" + # API key authentication + if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { + headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') + } + + resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), + method = "GET", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + deserializedRespObj <- tryCatch( + self$apiClient$deserialize(resp, "array[EntityType]", loadNamespace("openlattice")), + error = function(e){ + stop("Failed to deserialize response") + } + ) + ApiResponse$new(deserializedRespObj, resp) + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + ApiResponse$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + ApiResponse$new("API server error", resp) + } + }, + get_all_property_types = function(...){ + apiResponse <- self$get_all_property_typesWithHttpInfo(...) + resp <- apiResponse$response + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + apiResponse$content + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + apiResponse + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + apiResponse + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + apiResponse + } + }, + + get_all_property_typesWithHttpInfo = function(...){ + args <- list(...) + queryParams <- list() + headerParams <- c() + + urlPath <- "/datastore/edm/property/type/" + # API key authentication + if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { + headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') + } + + resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), + method = "GET", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + deserializedRespObj <- tryCatch( + self$apiClient$deserialize(resp, "array[PropertyType]", loadNamespace("openlattice")), + error = function(e){ + stop("Failed to deserialize response") + } + ) + ApiResponse$new(deserializedRespObj, resp) + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + ApiResponse$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + ApiResponse$new("API server error", resp) + } + }, + get_all_property_types_in_namespace = function(namespace, ...){ + apiResponse <- self$get_all_property_types_in_namespaceWithHttpInfo(namespace, ...) + resp <- apiResponse$response + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + apiResponse$content + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + apiResponse + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + apiResponse + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + apiResponse + } + }, + + get_all_property_types_in_namespaceWithHttpInfo = function(namespace, ...){ + args <- list(...) + queryParams <- list() + headerParams <- c() + + if (missing(`namespace`)) { + stop("Missing required parameter `namespace`.") } urlPath <- "/datastore/edm/property/type/namespace/{namespace}" @@ -2953,7 +3897,7 @@ EdmApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`ed_mdiff`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`ed_mdiff`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -2988,8 +3932,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_entity_type = function(entity_type_id, ...){ - apiResponse <- self$get_entity_typeWithHttpInfo(entity_type_id, ...) + get_entity_set = function(entity_set_id, ...){ + apiResponse <- self$get_entity_setWithHttpInfo(entity_set_id, ...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -3002,20 +3946,24 @@ EdmApi <- R6::R6Class( } }, - get_entity_typeWithHttpInfo = function(entity_type_id, ...){ + get_entity_setWithHttpInfo = function(entity_set_id, ...){ args <- list(...) queryParams <- list() headerParams <- c() - if (missing(`entity_type_id`)) { - stop("Missing required parameter `entity_type_id`.") + if (missing(`entity_set_id`)) { + stop("Missing required parameter `entity_set_id`.") } - urlPath <- "/datastore/edm/entity/type/{entityTypeId}" - if (!missing(`entity_type_id`)) { - urlPath <- gsub(paste0("\\{", "entityTypeId", "\\}"), URLencode(as.character(`entity_type_id`), reserved = TRUE), urlPath) + urlPath <- "/datastore/entity-sets/all/{entitySetId}" + if (!missing(`entity_set_id`)) { + urlPath <- gsub(paste0("\\{", "entitySetId", "\\}"), URLencode(as.character(`entity_set_id`), reserved = TRUE), urlPath) } + # API key authentication + if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { + headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') + } resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), method = "GET", @@ -3026,7 +3974,7 @@ EdmApi <- R6::R6Class( if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "EntityType", loadNamespace("openlattice")), + self$apiClient$deserialize(resp, "EntitySet", loadNamespace("openlattice")), error = function(e){ stop("Failed to deserialize response") } @@ -3040,8 +3988,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_entity_type_hierarchy = function(entity_type_id, ...){ - apiResponse <- self$get_entity_type_hierarchyWithHttpInfo(entity_type_id, ...) + get_entity_set_id = function(entity_set_name, ...){ + apiResponse <- self$get_entity_set_idWithHttpInfo(entity_set_name, ...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -3054,18 +4002,18 @@ EdmApi <- R6::R6Class( } }, - get_entity_type_hierarchyWithHttpInfo = function(entity_type_id, ...){ + get_entity_set_idWithHttpInfo = function(entity_set_name, ...){ args <- list(...) queryParams <- list() headerParams <- c() - if (missing(`entity_type_id`)) { - stop("Missing required parameter `entity_type_id`.") + if (missing(`entity_set_name`)) { + stop("Missing required parameter `entity_set_name`.") } - urlPath <- "/datastore/edm/entity/type/{entityTypeId}/hierarchy" - if (!missing(`entity_type_id`)) { - urlPath <- gsub(paste0("\\{", "entityTypeId", "\\}"), URLencode(as.character(`entity_type_id`), reserved = TRUE), urlPath) + urlPath <- "/datastore/entity-sets/ids/{entitySetName}" + if (!missing(`entity_set_name`)) { + urlPath <- gsub(paste0("\\{", "entitySetName", "\\}"), URLencode(as.character(`entity_set_name`), reserved = TRUE), urlPath) } # API key authentication @@ -3074,14 +4022,20 @@ EdmApi <- R6::R6Class( } resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "PATCH", + method = "GET", queryParams = queryParams, headerParams = headerParams, body = body, ...) if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - ApiResponse$new(NULL, resp) + deserializedRespObj <- tryCatch( + self$apiClient$deserialize(resp, "character", loadNamespace("openlattice")), + error = function(e){ + stop("Failed to deserialize response") + } + ) + ApiResponse$new(deserializedRespObj, resp) } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { @@ -3090,8 +4044,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_entity_type_id = function(namespace, name, ...){ - apiResponse <- self$get_entity_type_idWithHttpInfo(namespace, name, ...) + get_entity_set_ids = function(request_body=NULL, ...){ + apiResponse <- self$get_entity_set_idsWithHttpInfo(request_body, ...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -3104,35 +4058,30 @@ EdmApi <- R6::R6Class( } }, - get_entity_type_idWithHttpInfo = function(namespace, name, ...){ + get_entity_set_idsWithHttpInfo = function(request_body=NULL, ...){ args <- list(...) queryParams <- list() headerParams <- c() - if (missing(`namespace`)) { - stop("Missing required parameter `namespace`.") - } - - if (missing(`name`)) { - stop("Missing required parameter `name`.") - } - - urlPath <- "/datastore/edm/ids/entity/type/{namespace}/{name}" - if (!missing(`namespace`)) { - urlPath <- gsub(paste0("\\{", "namespace", "\\}"), URLencode(as.character(`namespace`), reserved = TRUE), urlPath) - } - - if (!missing(`name`)) { - urlPath <- gsub(paste0("\\{", "name", "\\}"), URLencode(as.character(`name`), reserved = TRUE), urlPath) + if (!missing(`request_body`)) { + body <- sprintf( + ' + [%s] +', + paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") + ) + } else { + body <- NULL } + urlPath <- "/datastore/entity-sets/ids/" # API key authentication if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') } resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "GET", + method = "POST", queryParams = queryParams, headerParams = headerParams, body = body, @@ -3140,7 +4089,7 @@ EdmApi <- R6::R6Class( if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "character", loadNamespace("openlattice")), + self$apiClient$deserialize(resp, "list(character)", loadNamespace("openlattice")), error = function(e){ stop("Failed to deserialize response") } @@ -3154,8 +4103,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_entity_type_property_metadata = function(entity_type_id, property_type_id, ...){ - apiResponse <- self$get_entity_type_property_metadataWithHttpInfo(entity_type_id, property_type_id, ...) + get_entity_set_property_metadata = function(entity_set_id, property_type_id, ...){ + apiResponse <- self$get_entity_set_property_metadataWithHttpInfo(entity_set_id, property_type_id, ...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -3168,22 +4117,22 @@ EdmApi <- R6::R6Class( } }, - get_entity_type_property_metadataWithHttpInfo = function(entity_type_id, property_type_id, ...){ + get_entity_set_property_metadataWithHttpInfo = function(entity_set_id, property_type_id, ...){ args <- list(...) queryParams <- list() headerParams <- c() - if (missing(`entity_type_id`)) { - stop("Missing required parameter `entity_type_id`.") + if (missing(`entity_set_id`)) { + stop("Missing required parameter `entity_set_id`.") } if (missing(`property_type_id`)) { stop("Missing required parameter `property_type_id`.") } - urlPath <- "/datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId}" - if (!missing(`entity_type_id`)) { - urlPath <- gsub(paste0("\\{", "entityTypeId", "\\}"), URLencode(as.character(`entity_type_id`), reserved = TRUE), urlPath) + urlPath <- "/datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/" + if (!missing(`entity_set_id`)) { + urlPath <- gsub(paste0("\\{", "entitySetId", "\\}"), URLencode(as.character(`entity_set_id`), reserved = TRUE), urlPath) } if (!missing(`property_type_id`)) { @@ -3204,7 +4153,7 @@ EdmApi <- R6::R6Class( if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "EntityTypePropertyMetadata", loadNamespace("openlattice")), + self$apiClient$deserialize(resp, "EntitySetPropertyMetaData", loadNamespace("openlattice")), error = function(e){ stop("Failed to deserialize response") } @@ -3218,8 +4167,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_property_type = function(property_type_id, ...){ - apiResponse <- self$get_property_typeWithHttpInfo(property_type_id, ...) + get_entity_type = function(entity_type_id, ...){ + apiResponse <- self$get_entity_typeWithHttpInfo(entity_type_id, ...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -3232,24 +4181,20 @@ EdmApi <- R6::R6Class( } }, - get_property_typeWithHttpInfo = function(property_type_id, ...){ + get_entity_typeWithHttpInfo = function(entity_type_id, ...){ args <- list(...) queryParams <- list() headerParams <- c() - if (missing(`property_type_id`)) { - stop("Missing required parameter `property_type_id`.") + if (missing(`entity_type_id`)) { + stop("Missing required parameter `entity_type_id`.") } - urlPath <- "/datastore/edm/property/type/{propertyTypeId}" - if (!missing(`property_type_id`)) { - urlPath <- gsub(paste0("\\{", "propertyTypeId", "\\}"), URLencode(as.character(`property_type_id`), reserved = TRUE), urlPath) + urlPath <- "/datastore/edm/entity/type/{entityTypeId}" + if (!missing(`entity_type_id`)) { + urlPath <- gsub(paste0("\\{", "entityTypeId", "\\}"), URLencode(as.character(`entity_type_id`), reserved = TRUE), urlPath) } - # API key authentication - if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { - headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') - } resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), method = "GET", @@ -3260,7 +4205,7 @@ EdmApi <- R6::R6Class( if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "PropertyType", loadNamespace("openlattice")), + self$apiClient$deserialize(resp, "EntityType", loadNamespace("openlattice")), error = function(e){ stop("Failed to deserialize response") } @@ -3274,8 +4219,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_property_type_id = function(namespace, name, ...){ - apiResponse <- self$get_property_type_idWithHttpInfo(namespace, name, ...) + get_entity_type_hierarchy = function(entity_type_id, ...){ + apiResponse <- self$get_entity_type_hierarchyWithHttpInfo(entity_type_id, ...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -3288,26 +4233,18 @@ EdmApi <- R6::R6Class( } }, - get_property_type_idWithHttpInfo = function(namespace, name, ...){ + get_entity_type_hierarchyWithHttpInfo = function(entity_type_id, ...){ args <- list(...) queryParams <- list() headerParams <- c() - if (missing(`namespace`)) { - stop("Missing required parameter `namespace`.") - } - - if (missing(`name`)) { - stop("Missing required parameter `name`.") - } - - urlPath <- "/datastore/edm/ids/property/type/{namespace}/{name}" - if (!missing(`namespace`)) { - urlPath <- gsub(paste0("\\{", "namespace", "\\}"), URLencode(as.character(`namespace`), reserved = TRUE), urlPath) + if (missing(`entity_type_id`)) { + stop("Missing required parameter `entity_type_id`.") } - if (!missing(`name`)) { - urlPath <- gsub(paste0("\\{", "name", "\\}"), URLencode(as.character(`name`), reserved = TRUE), urlPath) + urlPath <- "/datastore/edm/entity/type/{entityTypeId}/hierarchy" + if (!missing(`entity_type_id`)) { + urlPath <- gsub(paste0("\\{", "entityTypeId", "\\}"), URLencode(as.character(`entity_type_id`), reserved = TRUE), urlPath) } # API key authentication @@ -3316,20 +4253,14 @@ EdmApi <- R6::R6Class( } resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "GET", + method = "PATCH", queryParams = queryParams, headerParams = headerParams, body = body, ...) if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "character", loadNamespace("openlattice")), - error = function(e){ - stop("Failed to deserialize response") - } - ) - ApiResponse$new(deserializedRespObj, resp) + ApiResponse$new(NULL, resp) } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { @@ -3338,8 +4269,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_property_usage_summary = function(property_type_id, ...){ - apiResponse <- self$get_property_usage_summaryWithHttpInfo(property_type_id, ...) + get_entity_type_id = function(namespace, name, ...){ + apiResponse <- self$get_entity_type_idWithHttpInfo(namespace, name, ...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -3352,18 +4283,26 @@ EdmApi <- R6::R6Class( } }, - get_property_usage_summaryWithHttpInfo = function(property_type_id, ...){ + get_entity_type_idWithHttpInfo = function(namespace, name, ...){ args <- list(...) queryParams <- list() headerParams <- c() - if (missing(`property_type_id`)) { - stop("Missing required parameter `property_type_id`.") + if (missing(`namespace`)) { + stop("Missing required parameter `namespace`.") } - urlPath <- "/datastore/edm/summary/{propertyTypeId}" - if (!missing(`property_type_id`)) { - urlPath <- gsub(paste0("\\{", "propertyTypeId", "\\}"), URLencode(as.character(`property_type_id`), reserved = TRUE), urlPath) + if (missing(`name`)) { + stop("Missing required parameter `name`.") + } + + urlPath <- "/datastore/edm/ids/entity/type/{namespace}/{name}" + if (!missing(`namespace`)) { + urlPath <- gsub(paste0("\\{", "namespace", "\\}"), URLencode(as.character(`namespace`), reserved = TRUE), urlPath) + } + + if (!missing(`name`)) { + urlPath <- gsub(paste0("\\{", "name", "\\}"), URLencode(as.character(`name`), reserved = TRUE), urlPath) } # API key authentication @@ -3380,7 +4319,7 @@ EdmApi <- R6::R6Class( if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "array[PropertyUsageSummary]", loadNamespace("openlattice")), + self$apiClient$deserialize(resp, "character", loadNamespace("openlattice")), error = function(e){ stop("Failed to deserialize response") } @@ -3394,8 +4333,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_schema_contents = function(namespace, name, file_type='yaml', ...){ - apiResponse <- self$get_schema_contentsWithHttpInfo(namespace, name, file_type, ...) + get_entity_type_property_metadata = function(entity_type_id, property_type_id, ...){ + apiResponse <- self$get_entity_type_property_metadataWithHttpInfo(entity_type_id, property_type_id, ...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -3408,13 +4347,368 @@ EdmApi <- R6::R6Class( } }, - get_schema_contentsWithHttpInfo = function(namespace, name, file_type='yaml', ...){ + get_entity_type_property_metadataWithHttpInfo = function(entity_type_id, property_type_id, ...){ args <- list(...) queryParams <- list() headerParams <- c() - if (missing(`namespace`)) { - stop("Missing required parameter `namespace`.") + if (missing(`entity_type_id`)) { + stop("Missing required parameter `entity_type_id`.") + } + + if (missing(`property_type_id`)) { + stop("Missing required parameter `property_type_id`.") + } + + urlPath <- "/datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId}" + if (!missing(`entity_type_id`)) { + urlPath <- gsub(paste0("\\{", "entityTypeId", "\\}"), URLencode(as.character(`entity_type_id`), reserved = TRUE), urlPath) + } + + if (!missing(`property_type_id`)) { + urlPath <- gsub(paste0("\\{", "propertyTypeId", "\\}"), URLencode(as.character(`property_type_id`), reserved = TRUE), urlPath) + } + + # API key authentication + if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { + headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') + } + + resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), + method = "GET", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + deserializedRespObj <- tryCatch( + self$apiClient$deserialize(resp, "EntityTypePropertyMetadata", loadNamespace("openlattice")), + error = function(e){ + stop("Failed to deserialize response") + } + ) + ApiResponse$new(deserializedRespObj, resp) + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + ApiResponse$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + ApiResponse$new("API server error", resp) + } + }, + get_property_metadata_for_entity_sets = function(request_body=NULL, ...){ + apiResponse <- self$get_property_metadata_for_entity_setsWithHttpInfo(request_body, ...) + resp <- apiResponse$response + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + apiResponse$content + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + apiResponse + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + apiResponse + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + apiResponse + } + }, + + get_property_metadata_for_entity_setsWithHttpInfo = function(request_body=NULL, ...){ + args <- list(...) + queryParams <- list() + headerParams <- c() + + if (!missing(`request_body`)) { + body <- sprintf( + ' + [%s] +', + paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") + ) + } else { + body <- NULL + } + + urlPath <- "/datastore/entity-sets/all/metadata" + # API key authentication + if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { + headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') + } + + resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), + method = "POST", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + deserializedRespObj <- tryCatch( + self$apiClient$deserialize(resp, "list(list(EntitySetPropertyMetaData))", loadNamespace("openlattice")), + error = function(e){ + stop("Failed to deserialize response") + } + ) + ApiResponse$new(deserializedRespObj, resp) + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + ApiResponse$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + ApiResponse$new("API server error", resp) + } + }, + get_property_type = function(property_type_id, ...){ + apiResponse <- self$get_property_typeWithHttpInfo(property_type_id, ...) + resp <- apiResponse$response + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + apiResponse$content + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + apiResponse + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + apiResponse + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + apiResponse + } + }, + + get_property_typeWithHttpInfo = function(property_type_id, ...){ + args <- list(...) + queryParams <- list() + headerParams <- c() + + if (missing(`property_type_id`)) { + stop("Missing required parameter `property_type_id`.") + } + + urlPath <- "/datastore/edm/property/type/{propertyTypeId}" + if (!missing(`property_type_id`)) { + urlPath <- gsub(paste0("\\{", "propertyTypeId", "\\}"), URLencode(as.character(`property_type_id`), reserved = TRUE), urlPath) + } + + # API key authentication + if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { + headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') + } + + resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), + method = "GET", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + deserializedRespObj <- tryCatch( + self$apiClient$deserialize(resp, "PropertyType", loadNamespace("openlattice")), + error = function(e){ + stop("Failed to deserialize response") + } + ) + ApiResponse$new(deserializedRespObj, resp) + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + ApiResponse$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + ApiResponse$new("API server error", resp) + } + }, + get_property_type_id = function(namespace, name, ...){ + apiResponse <- self$get_property_type_idWithHttpInfo(namespace, name, ...) + resp <- apiResponse$response + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + apiResponse$content + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + apiResponse + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + apiResponse + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + apiResponse + } + }, + + get_property_type_idWithHttpInfo = function(namespace, name, ...){ + args <- list(...) + queryParams <- list() + headerParams <- c() + + if (missing(`namespace`)) { + stop("Missing required parameter `namespace`.") + } + + if (missing(`name`)) { + stop("Missing required parameter `name`.") + } + + urlPath <- "/datastore/edm/ids/property/type/{namespace}/{name}" + if (!missing(`namespace`)) { + urlPath <- gsub(paste0("\\{", "namespace", "\\}"), URLencode(as.character(`namespace`), reserved = TRUE), urlPath) + } + + if (!missing(`name`)) { + urlPath <- gsub(paste0("\\{", "name", "\\}"), URLencode(as.character(`name`), reserved = TRUE), urlPath) + } + + # API key authentication + if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { + headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') + } + + resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), + method = "GET", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + deserializedRespObj <- tryCatch( + self$apiClient$deserialize(resp, "character", loadNamespace("openlattice")), + error = function(e){ + stop("Failed to deserialize response") + } + ) + ApiResponse$new(deserializedRespObj, resp) + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + ApiResponse$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + ApiResponse$new("API server error", resp) + } + }, + get_property_types_for_entity_set = function(entity_set_id, ...){ + apiResponse <- self$get_property_types_for_entity_setWithHttpInfo(entity_set_id, ...) + resp <- apiResponse$response + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + apiResponse$content + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + apiResponse + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + apiResponse + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + apiResponse + } + }, + + get_property_types_for_entity_setWithHttpInfo = function(entity_set_id, ...){ + args <- list(...) + queryParams <- list() + headerParams <- c() + + if (missing(`entity_set_id`)) { + stop("Missing required parameter `entity_set_id`.") + } + + urlPath <- "/datastore/entity-sets/all/{entitySetId}/properties" + if (!missing(`entity_set_id`)) { + urlPath <- gsub(paste0("\\{", "entitySetId", "\\}"), URLencode(as.character(`entity_set_id`), reserved = TRUE), urlPath) + } + + # API key authentication + if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { + headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') + } + + resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), + method = "GET", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + deserializedRespObj <- tryCatch( + self$apiClient$deserialize(resp, "list(PropertyType)", loadNamespace("openlattice")), + error = function(e){ + stop("Failed to deserialize response") + } + ) + ApiResponse$new(deserializedRespObj, resp) + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + ApiResponse$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + ApiResponse$new("API server error", resp) + } + }, + get_property_usage_summary = function(property_type_id, ...){ + apiResponse <- self$get_property_usage_summaryWithHttpInfo(property_type_id, ...) + resp <- apiResponse$response + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + apiResponse$content + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + apiResponse + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + apiResponse + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + apiResponse + } + }, + + get_property_usage_summaryWithHttpInfo = function(property_type_id, ...){ + args <- list(...) + queryParams <- list() + headerParams <- c() + + if (missing(`property_type_id`)) { + stop("Missing required parameter `property_type_id`.") + } + + urlPath <- "/datastore/edm/summary/{propertyTypeId}" + if (!missing(`property_type_id`)) { + urlPath <- gsub(paste0("\\{", "propertyTypeId", "\\}"), URLencode(as.character(`property_type_id`), reserved = TRUE), urlPath) + } + + # API key authentication + if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { + headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') + } + + resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), + method = "GET", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + deserializedRespObj <- tryCatch( + self$apiClient$deserialize(resp, "array[PropertyUsageSummary]", loadNamespace("openlattice")), + error = function(e){ + stop("Failed to deserialize response") + } + ) + ApiResponse$new(deserializedRespObj, resp) + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + ApiResponse$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + ApiResponse$new("API server error", resp) + } + }, + get_schema_contents = function(namespace, name, file_type='yaml', ...){ + apiResponse <- self$get_schema_contentsWithHttpInfo(namespace, name, file_type, ...) + resp <- apiResponse$response + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + apiResponse$content + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + apiResponse + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + apiResponse + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + apiResponse + } + }, + + get_schema_contentsWithHttpInfo = function(namespace, name, file_type='yaml', ...){ + args <- list(...) + queryParams <- list() + headerParams <- c() + + if (missing(`namespace`)) { + stop("Missing required parameter `namespace`.") } if (missing(`name`)) { @@ -3622,6 +4916,144 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, + remove_entity_sets_from_linking_entity_set = function(linking_entity_set_id, request_body=NULL, ...){ + apiResponse <- self$remove_entity_sets_from_linking_entity_setWithHttpInfo(linking_entity_set_id, request_body, ...) + resp <- apiResponse$response + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + apiResponse$content + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + apiResponse + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + apiResponse + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + apiResponse + } + }, + + remove_entity_sets_from_linking_entity_setWithHttpInfo = function(linking_entity_set_id, request_body=NULL, ...){ + args <- list(...) + queryParams <- list() + headerParams <- c() + + if (missing(`linking_entity_set_id`)) { + stop("Missing required parameter `linking_entity_set_id`.") + } + + if (!missing(`request_body`)) { + body <- sprintf( + ' + [%s] +', + paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") + ) + } else { + body <- NULL + } + + urlPath <- "/datastore/entity-sets/linking/{linkingEntitySetId}" + if (!missing(`linking_entity_set_id`)) { + urlPath <- gsub(paste0("\\{", "linkingEntitySetId", "\\}"), URLencode(as.character(`linking_entity_set_id`), reserved = TRUE), urlPath) + } + + # API key authentication + if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { + headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') + } + + resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), + method = "DELETE", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + deserializedRespObj <- tryCatch( + self$apiClient$deserialize(resp, "integer", loadNamespace("openlattice")), + error = function(e){ + stop("Failed to deserialize response") + } + ) + ApiResponse$new(deserializedRespObj, resp) + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + ApiResponse$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + ApiResponse$new("API server error", resp) + } + }, + remove_entity_sets_from_linking_entity_sets = function(linking_entity_set_id, request_body, ...){ + apiResponse <- self$remove_entity_sets_from_linking_entity_setsWithHttpInfo(linking_entity_set_id, request_body, ...) + resp <- apiResponse$response + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + apiResponse$content + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + apiResponse + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + apiResponse + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + apiResponse + } + }, + + remove_entity_sets_from_linking_entity_setsWithHttpInfo = function(linking_entity_set_id, request_body, ...){ + args <- list(...) + queryParams <- list() + headerParams <- c() + + if (missing(`linking_entity_set_id`)) { + stop("Missing required parameter `linking_entity_set_id`.") + } + + if (missing(`request_body`)) { + stop("Missing required parameter `request_body`.") + } + + if (!missing(`request_body`)) { + body <- sprintf( + ' + %s +', + jsonlite::toJSON(`request_body`, digits=NA) + ) + } else { + body <- NULL + } + + urlPath <- "/datastore/entity-sets/linking/" + if (!missing(`linking_entity_set_id`)) { + urlPath <- gsub(paste0("\\{", "linkingEntitySetId", "\\}"), URLencode(as.character(`linking_entity_set_id`), reserved = TRUE), urlPath) + } + + # API key authentication + if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { + headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') + } + + resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), + method = "DELETE", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + deserializedRespObj <- tryCatch( + self$apiClient$deserialize(resp, "integer", loadNamespace("openlattice")), + error = function(e){ + stop("Failed to deserialize response") + } + ) + ApiResponse$new(deserializedRespObj, resp) + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + ApiResponse$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + ApiResponse$new("API server error", resp) + } + }, remove_primary_key_from_entity_type = function(entity_type_id, property_type_id, ...){ apiResponse <- self$remove_primary_key_from_entity_typeWithHttpInfo(entity_type_id, property_type_id, ...) resp <- apiResponse$response @@ -3882,7 +5314,7 @@ EdmApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`EDM`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`EDM`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -3911,6 +5343,150 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, + update_entity_set_meta_data = function(entity_set_id, metadata_update, ...){ + apiResponse <- self$update_entity_set_meta_dataWithHttpInfo(entity_set_id, metadata_update, ...) + resp <- apiResponse$response + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + apiResponse$content + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + apiResponse + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + apiResponse + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + apiResponse + } + }, + + update_entity_set_meta_dataWithHttpInfo = function(entity_set_id, metadata_update, ...){ + args <- list(...) + queryParams <- list() + headerParams <- c() + + if (missing(`entity_set_id`)) { + stop("Missing required parameter `entity_set_id`.") + } + + if (missing(`metadata_update`)) { + stop("Missing required parameter `metadata_update`.") + } + + if (!missing(`metadata_update`)) { + body <- sprintf( + ' + %s + ', + jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=FALSE, digits = NA) + ) + } else { + body <- NULL + } + + urlPath <- "/datastore/entity-sets/all/{entitySetId}/metadata/" + if (!missing(`entity_set_id`)) { + urlPath <- gsub(paste0("\\{", "entitySetId", "\\}"), URLencode(as.character(`entity_set_id`), reserved = TRUE), urlPath) + } + + # API key authentication + if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { + headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') + } + + resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), + method = "PATCH", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + deserializedRespObj <- tryCatch( + self$apiClient$deserialize(resp, "integer", loadNamespace("openlattice")), + error = function(e){ + stop("Failed to deserialize response") + } + ) + ApiResponse$new(deserializedRespObj, resp) + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + ApiResponse$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + ApiResponse$new("API server error", resp) + } + }, + update_entity_set_property_metadata = function(entity_set_id, property_type_id, metadata_update, ...){ + apiResponse <- self$update_entity_set_property_metadataWithHttpInfo(entity_set_id, property_type_id, metadata_update, ...) + resp <- apiResponse$response + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + apiResponse$content + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + apiResponse + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + apiResponse + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + apiResponse + } + }, + + update_entity_set_property_metadataWithHttpInfo = function(entity_set_id, property_type_id, metadata_update, ...){ + args <- list(...) + queryParams <- list() + headerParams <- c() + + if (missing(`entity_set_id`)) { + stop("Missing required parameter `entity_set_id`.") + } + + if (missing(`property_type_id`)) { + stop("Missing required parameter `property_type_id`.") + } + + if (missing(`metadata_update`)) { + stop("Missing required parameter `metadata_update`.") + } + + if (!missing(`metadata_update`)) { + body <- sprintf( + ' + %s + ', + jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=FALSE, digits = NA) + ) + } else { + body <- NULL + } + + urlPath <- "/datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/" + if (!missing(`entity_set_id`)) { + urlPath <- gsub(paste0("\\{", "entitySetId", "\\}"), URLencode(as.character(`entity_set_id`), reserved = TRUE), urlPath) + } + + if (!missing(`property_type_id`)) { + urlPath <- gsub(paste0("\\{", "propertyTypeId", "\\}"), URLencode(as.character(`property_type_id`), reserved = TRUE), urlPath) + } + + # API key authentication + if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { + headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') + } + + resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), + method = "POST", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + ApiResponse$new(NULL, resp) + } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { + ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + ApiResponse$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + ApiResponse$new("API server error", resp) + } + }, update_entity_type_meta_data = function(entity_type_id, metadata_update, ...){ apiResponse <- self$update_entity_type_meta_dataWithHttpInfo(entity_type_id, metadata_update, ...) resp <- apiResponse$response @@ -3943,7 +5519,7 @@ EdmApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -4066,7 +5642,7 @@ EdmApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -4135,7 +5711,7 @@ EdmApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`edm_request`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`edm_request`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL diff --git a/R/R/edm_request.R b/R/R/edm_request.R index 59dfe31..91be355 100644 --- a/R/R/edm_request.R +++ b/R/R/edm_request.R @@ -8,15 +8,17 @@ #' @docType class #' @title EdmRequest +#' #' @description EdmRequest Class +#' #' @format An \code{R6Class} generator object +#' #' @field action character [optional] #' #' @field propertyTypes list( character ) [optional] #' #' @field entityTypes list( character ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -26,7 +28,9 @@ EdmRequest <- R6::R6Class( `action` = NULL, `propertyTypes` = NULL, `entityTypes` = NULL, - initialize = function(`action`=NULL, `propertyTypes`=NULL, `entityTypes`=NULL, ...){ + initialize = function( + `action`=NULL, `propertyTypes`=NULL, `entityTypes`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`action`)) { stopifnot(is.character(`action`), length(`action`) == 1) @@ -71,6 +75,7 @@ EdmRequest <- R6::R6Class( if (!is.null(EdmRequestObject$`entityTypes`)) { self$`entityTypes` <- ApiClient$new()$deserializeObj(EdmRequestObject$`entityTypes`, "array[character]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -108,3 +113,4 @@ EdmRequest <- R6::R6Class( } ) ) + diff --git a/R/R/entity.R b/R/R/entity.R index a7a9963..d024ca6 100644 --- a/R/R/entity.R +++ b/R/R/entity.R @@ -8,13 +8,15 @@ #' @docType class #' @title Entity +#' #' @description Entity Class +#' #' @format An \code{R6Class} generator object +#' #' @field key \link{EntityKey} [optional] #' #' @field details named list( character ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ Entity <- R6::R6Class( public = list( `key` = NULL, `details` = NULL, - initialize = function(`key`=NULL, `details`=NULL, ...){ + initialize = function( + `key`=NULL, `details`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`key`)) { stopifnot(R6::is.R6(`key`)) @@ -52,12 +56,13 @@ Entity <- R6::R6Class( EntityObject <- jsonlite::fromJSON(EntityJson) if (!is.null(EntityObject$`key`)) { keyObject <- EntityKey$new() - keyObject$fromJSON(jsonlite::toJSON(EntityObject$key, auto_unbox = TRUE, digits = NA)) + keyObject$fromJSON(jsonlite::toJSON(EntityObject$key, auto_unbox = FALSE, digits = NA)) self$`key` <- keyObject } if (!is.null(EntityObject$`details`)) { self$`details` <- ApiClient$new()$deserializeObj(EntityObject$`details`, "list(character)", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -66,14 +71,14 @@ Entity <- R6::R6Class( '"key": %s ', - jsonlite::toJSON(self$`key`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`key`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`details`)) { sprintf( '"details": %s ', - jsonlite::toJSON(lapply(self$`details`, function(x){ x }), auto_unbox = TRUE, digits=NA) + jsonlite::toJSON(lapply(self$`details`, function(x){ x }), auto_unbox = FALSE, digits=NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -81,9 +86,10 @@ Entity <- R6::R6Class( }, fromJSONString = function(EntityJson) { EntityObject <- jsonlite::fromJSON(EntityJson) - self$`key` <- EntityKey$new()$fromJSON(jsonlite::toJSON(EntityObject$key, auto_unbox = TRUE, digits = NA)) + self$`key` <- EntityKey$new()$fromJSON(jsonlite::toJSON(EntityObject$key, auto_unbox = FALSE, digits = NA)) self$`details` <- ApiClient$new()$deserializeObj(EntityObject$`details`, "list(character)", loadNamespace("openlattice")) self } ) ) + diff --git a/R/R/entity_data_key.R b/R/R/entity_data_key.R index 846d443..a681ae2 100644 --- a/R/R/entity_data_key.R +++ b/R/R/entity_data_key.R @@ -8,13 +8,15 @@ #' @docType class #' @title EntityDataKey +#' #' @description EntityDataKey Class +#' #' @format An \code{R6Class} generator object +#' #' @field entitySetId character [optional] #' #' @field entityKeyId character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ EntityDataKey <- R6::R6Class( public = list( `entitySetId` = NULL, `entityKeyId` = NULL, - initialize = function(`entitySetId`=NULL, `entityKeyId`=NULL, ...){ + initialize = function( + `entitySetId`=NULL, `entityKeyId`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`entitySetId`)) { stopifnot(is.character(`entitySetId`), length(`entitySetId`) == 1) @@ -55,6 +59,7 @@ EntityDataKey <- R6::R6Class( if (!is.null(EntityDataKeyObject$`entityKeyId`)) { self$`entityKeyId` <- EntityDataKeyObject$`entityKeyId` } + self }, toJSONString = function() { jsoncontent <- c( @@ -84,3 +89,4 @@ EntityDataKey <- R6::R6Class( } ) ) + diff --git a/R/R/entity_definition.R b/R/R/entity_definition.R index a6e04fe..24ad9be 100644 --- a/R/R/entity_definition.R +++ b/R/R/entity_definition.R @@ -8,8 +8,11 @@ #' @docType class #' @title EntityDefinition +#' #' @description EntityDefinition Class +#' #' @format An \code{R6Class} generator object +#' #' @field fqn \link{FullQualifiedName} [optional] #' #' @field entitySetName character [optional] @@ -18,7 +21,6 @@ #' #' @field updateType character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -29,7 +31,9 @@ EntityDefinition <- R6::R6Class( `entitySetName` = NULL, `propertyDefinitions` = NULL, `updateType` = NULL, - initialize = function(`fqn`=NULL, `entitySetName`=NULL, `propertyDefinitions`=NULL, `updateType`=NULL, ...){ + initialize = function( + `fqn`=NULL, `entitySetName`=NULL, `propertyDefinitions`=NULL, `updateType`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`fqn`)) { stopifnot(R6::is.R6(`fqn`)) @@ -74,7 +78,7 @@ EntityDefinition <- R6::R6Class( EntityDefinitionObject <- jsonlite::fromJSON(EntityDefinitionJson) if (!is.null(EntityDefinitionObject$`fqn`)) { fqnObject <- FullQualifiedName$new() - fqnObject$fromJSON(jsonlite::toJSON(EntityDefinitionObject$fqn, auto_unbox = TRUE, digits = NA)) + fqnObject$fromJSON(jsonlite::toJSON(EntityDefinitionObject$fqn, auto_unbox = FALSE, digits = NA)) self$`fqn` <- fqnObject } if (!is.null(EntityDefinitionObject$`entitySetName`)) { @@ -86,6 +90,7 @@ EntityDefinition <- R6::R6Class( if (!is.null(EntityDefinitionObject$`updateType`)) { self$`updateType` <- EntityDefinitionObject$`updateType` } + self }, toJSONString = function() { jsoncontent <- c( @@ -94,7 +99,7 @@ EntityDefinition <- R6::R6Class( '"fqn": %s ', - jsonlite::toJSON(self$`fqn`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`fqn`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`entitySetName`)) { sprintf( @@ -108,7 +113,7 @@ EntityDefinition <- R6::R6Class( '"propertyDefinitions": %s ', - jsonlite::toJSON(lapply(self$`propertyDefinitions`, function(x){ x$toJSON() }), auto_unbox = TRUE, digits=NA) + jsonlite::toJSON(lapply(self$`propertyDefinitions`, function(x){ x$toJSON() }), auto_unbox = FALSE, digits=NA) )}, if (!is.null(self$`updateType`)) { sprintf( @@ -123,7 +128,7 @@ EntityDefinition <- R6::R6Class( }, fromJSONString = function(EntityDefinitionJson) { EntityDefinitionObject <- jsonlite::fromJSON(EntityDefinitionJson) - self$`fqn` <- FullQualifiedName$new()$fromJSON(jsonlite::toJSON(EntityDefinitionObject$fqn, auto_unbox = TRUE, digits = NA)) + self$`fqn` <- FullQualifiedName$new()$fromJSON(jsonlite::toJSON(EntityDefinitionObject$fqn, auto_unbox = FALSE, digits = NA)) self$`entitySetName` <- EntityDefinitionObject$`entitySetName` self$`propertyDefinitions` <- ApiClient$new()$deserializeObj(EntityDefinitionObject$`propertyDefinitions`, "list(PropertyDefinition)", loadNamespace("openlattice")) self$`updateType` <- EntityDefinitionObject$`updateType` @@ -131,3 +136,4 @@ EntityDefinition <- R6::R6Class( } ) ) + diff --git a/R/R/entity_key.R b/R/R/entity_key.R index 455d8ef..0129c94 100644 --- a/R/R/entity_key.R +++ b/R/R/entity_key.R @@ -8,13 +8,15 @@ #' @docType class #' @title EntityKey +#' #' @description EntityKey Class +#' #' @format An \code{R6Class} generator object +#' #' @field entitySetId character [optional] #' #' @field entityId character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ EntityKey <- R6::R6Class( public = list( `entitySetId` = NULL, `entityId` = NULL, - initialize = function(`entitySetId`=NULL, `entityId`=NULL, ...){ + initialize = function( + `entitySetId`=NULL, `entityId`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`entitySetId`)) { stopifnot(is.character(`entitySetId`), length(`entitySetId`) == 1) @@ -55,6 +59,7 @@ EntityKey <- R6::R6Class( if (!is.null(EntityKeyObject$`entityId`)) { self$`entityId` <- EntityKeyObject$`entityId` } + self }, toJSONString = function() { jsoncontent <- c( @@ -84,3 +89,4 @@ EntityKey <- R6::R6Class( } ) ) + diff --git a/R/R/entity_key_pair.R b/R/R/entity_key_pair.R index 0382255..1acc4ce 100644 --- a/R/R/entity_key_pair.R +++ b/R/R/entity_key_pair.R @@ -8,13 +8,15 @@ #' @docType class #' @title EntityKeyPair +#' #' @description EntityKeyPair Class +#' #' @format An \code{R6Class} generator object +#' #' @field first character [optional] #' #' @field second character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ EntityKeyPair <- R6::R6Class( public = list( `first` = NULL, `second` = NULL, - initialize = function(`first`=NULL, `second`=NULL, ...){ + initialize = function( + `first`=NULL, `second`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`first`)) { stopifnot(is.character(`first`), length(`first`) == 1) @@ -55,6 +59,7 @@ EntityKeyPair <- R6::R6Class( if (!is.null(EntityKeyPairObject$`second`)) { self$`second` <- EntityKeyPairObject$`second` } + self }, toJSONString = function() { jsoncontent <- c( @@ -84,3 +89,4 @@ EntityKeyPair <- R6::R6Class( } ) ) + diff --git a/R/R/entity_linking_features.R b/R/R/entity_linking_features.R index dcc0633..548bef2 100644 --- a/R/R/entity_linking_features.R +++ b/R/R/entity_linking_features.R @@ -8,13 +8,15 @@ #' @docType class #' @title EntityLinkingFeatures +#' #' @description EntityLinkingFeatures Class +#' #' @format An \code{R6Class} generator object +#' #' @field entityLinkingFeedback \link{EntityLinkingFeedback} [optional] #' #' @field features named list( numeric ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ EntityLinkingFeatures <- R6::R6Class( public = list( `entityLinkingFeedback` = NULL, `features` = NULL, - initialize = function(`entityLinkingFeedback`=NULL, `features`=NULL, ...){ + initialize = function( + `entityLinkingFeedback`=NULL, `features`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`entityLinkingFeedback`)) { stopifnot(R6::is.R6(`entityLinkingFeedback`)) @@ -52,12 +56,13 @@ EntityLinkingFeatures <- R6::R6Class( EntityLinkingFeaturesObject <- jsonlite::fromJSON(EntityLinkingFeaturesJson) if (!is.null(EntityLinkingFeaturesObject$`entityLinkingFeedback`)) { entityLinkingFeedbackObject <- EntityLinkingFeedback$new() - entityLinkingFeedbackObject$fromJSON(jsonlite::toJSON(EntityLinkingFeaturesObject$entityLinkingFeedback, auto_unbox = TRUE, digits = NA)) + entityLinkingFeedbackObject$fromJSON(jsonlite::toJSON(EntityLinkingFeaturesObject$entityLinkingFeedback, auto_unbox = FALSE, digits = NA)) self$`entityLinkingFeedback` <- entityLinkingFeedbackObject } if (!is.null(EntityLinkingFeaturesObject$`features`)) { self$`features` <- ApiClient$new()$deserializeObj(EntityLinkingFeaturesObject$`features`, "list(numeric)", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -66,14 +71,14 @@ EntityLinkingFeatures <- R6::R6Class( '"entityLinkingFeedback": %s ', - jsonlite::toJSON(self$`entityLinkingFeedback`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`entityLinkingFeedback`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`features`)) { sprintf( '"features": %s ', - jsonlite::toJSON(lapply(self$`features`, function(x){ x }), auto_unbox = TRUE, digits=NA) + jsonlite::toJSON(lapply(self$`features`, function(x){ x }), auto_unbox = FALSE, digits=NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -81,9 +86,10 @@ EntityLinkingFeatures <- R6::R6Class( }, fromJSONString = function(EntityLinkingFeaturesJson) { EntityLinkingFeaturesObject <- jsonlite::fromJSON(EntityLinkingFeaturesJson) - self$`entityLinkingFeedback` <- EntityLinkingFeedback$new()$fromJSON(jsonlite::toJSON(EntityLinkingFeaturesObject$entityLinkingFeedback, auto_unbox = TRUE, digits = NA)) + self$`entityLinkingFeedback` <- EntityLinkingFeedback$new()$fromJSON(jsonlite::toJSON(EntityLinkingFeaturesObject$entityLinkingFeedback, auto_unbox = FALSE, digits = NA)) self$`features` <- ApiClient$new()$deserializeObj(EntityLinkingFeaturesObject$`features`, "list(numeric)", loadNamespace("openlattice")) self } ) ) + diff --git a/R/R/entity_linking_feedback.R b/R/R/entity_linking_feedback.R index 4b09147..00220f0 100644 --- a/R/R/entity_linking_feedback.R +++ b/R/R/entity_linking_feedback.R @@ -8,13 +8,15 @@ #' @docType class #' @title EntityLinkingFeedback +#' #' @description EntityLinkingFeedback Class +#' #' @format An \code{R6Class} generator object +#' #' @field entityKeyPair \link{EntityKeyPair} [optional] #' #' @field linked character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ EntityLinkingFeedback <- R6::R6Class( public = list( `entityKeyPair` = NULL, `linked` = NULL, - initialize = function(`entityKeyPair`=NULL, `linked`=NULL, ...){ + initialize = function( + `entityKeyPair`=NULL, `linked`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`entityKeyPair`)) { stopifnot(R6::is.R6(`entityKeyPair`)) @@ -50,12 +54,13 @@ EntityLinkingFeedback <- R6::R6Class( EntityLinkingFeedbackObject <- jsonlite::fromJSON(EntityLinkingFeedbackJson) if (!is.null(EntityLinkingFeedbackObject$`entityKeyPair`)) { entityKeyPairObject <- EntityKeyPair$new() - entityKeyPairObject$fromJSON(jsonlite::toJSON(EntityLinkingFeedbackObject$entityKeyPair, auto_unbox = TRUE, digits = NA)) + entityKeyPairObject$fromJSON(jsonlite::toJSON(EntityLinkingFeedbackObject$entityKeyPair, auto_unbox = FALSE, digits = NA)) self$`entityKeyPair` <- entityKeyPairObject } if (!is.null(EntityLinkingFeedbackObject$`linked`)) { self$`linked` <- EntityLinkingFeedbackObject$`linked` } + self }, toJSONString = function() { jsoncontent <- c( @@ -64,7 +69,7 @@ EntityLinkingFeedback <- R6::R6Class( '"entityKeyPair": %s ', - jsonlite::toJSON(self$`entityKeyPair`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`entityKeyPair`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`linked`)) { sprintf( @@ -79,9 +84,10 @@ EntityLinkingFeedback <- R6::R6Class( }, fromJSONString = function(EntityLinkingFeedbackJson) { EntityLinkingFeedbackObject <- jsonlite::fromJSON(EntityLinkingFeedbackJson) - self$`entityKeyPair` <- EntityKeyPair$new()$fromJSON(jsonlite::toJSON(EntityLinkingFeedbackObject$entityKeyPair, auto_unbox = TRUE, digits = NA)) + self$`entityKeyPair` <- EntityKeyPair$new()$fromJSON(jsonlite::toJSON(EntityLinkingFeedbackObject$entityKeyPair, auto_unbox = FALSE, digits = NA)) self$`linked` <- EntityLinkingFeedbackObject$`linked` self } ) ) + diff --git a/R/R/entity_neighbors_filter.R b/R/R/entity_neighbors_filter.R index e78b821..ef47619 100644 --- a/R/R/entity_neighbors_filter.R +++ b/R/R/entity_neighbors_filter.R @@ -8,8 +8,11 @@ #' @docType class #' @title EntityNeighborsFilter +#' #' @description EntityNeighborsFilter Class +#' #' @format An \code{R6Class} generator object +#' #' @field entityKeyIds list( character ) [optional] #' #' @field src list( character ) [optional] @@ -18,7 +21,6 @@ #' #' @field edge list( character ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -29,7 +31,9 @@ EntityNeighborsFilter <- R6::R6Class( `src` = NULL, `dst` = NULL, `edge` = NULL, - initialize = function(`entityKeyIds`=NULL, `src`=NULL, `dst`=NULL, `edge`=NULL, ...){ + initialize = function( + `entityKeyIds`=NULL, `src`=NULL, `dst`=NULL, `edge`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`entityKeyIds`)) { stopifnot(is.vector(`entityKeyIds`)) @@ -87,6 +91,7 @@ EntityNeighborsFilter <- R6::R6Class( if (!is.null(EntityNeighborsFilterObject$`edge`)) { self$`edge` <- ApiClient$new()$deserializeObj(EntityNeighborsFilterObject$`edge`, "array[character]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -132,3 +137,4 @@ EntityNeighborsFilter <- R6::R6Class( } ) ) + diff --git a/R/R/entity_set.R b/R/R/entity_set.R index 26d8c0f..7a3c5eb 100644 --- a/R/R/entity_set.R +++ b/R/R/entity_set.R @@ -8,8 +8,11 @@ #' @docType class #' @title EntitySet +#' #' @description EntitySet Class +#' #' @format An \code{R6Class} generator object +#' #' @field id character [optional] #' #' @field entityTypeId character [optional] @@ -32,7 +35,6 @@ #' #' @field partitions list( integer ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -50,7 +52,9 @@ EntitySet <- R6::R6Class( `organizationId` = NULL, `flags` = NULL, `partitions` = NULL, - initialize = function(`id`=NULL, `entityTypeId`=NULL, `name`=NULL, `title`=NULL, `description`=NULL, `contacts`=NULL, `linking`=NULL, `linkedEntitySets`=NULL, `organizationId`=NULL, `flags`=NULL, `partitions`=NULL, ...){ + initialize = function( + `id`=NULL, `entityTypeId`=NULL, `name`=NULL, `title`=NULL, `description`=NULL, `contacts`=NULL, `linking`=NULL, `linkedEntitySets`=NULL, `organizationId`=NULL, `flags`=NULL, `partitions`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`id`)) { stopifnot(is.character(`id`), length(`id`) == 1) @@ -184,6 +188,7 @@ EntitySet <- R6::R6Class( if (!is.null(EntitySetObject$`partitions`)) { self$`partitions` <- ApiClient$new()$deserializeObj(EntitySetObject$`partitions`, "array[integer]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -285,3 +290,4 @@ EntitySet <- R6::R6Class( } ) ) + diff --git a/R/R/entity_set_collection.R b/R/R/entity_set_collection.R index aeaab43..14c26d0 100644 --- a/R/R/entity_set_collection.R +++ b/R/R/entity_set_collection.R @@ -8,8 +8,11 @@ #' @docType class #' @title EntitySetCollection +#' #' @description EntitySetCollection Class +#' #' @format An \code{R6Class} generator object +#' #' @field id character [optional] #' #' @field name character [optional] @@ -26,7 +29,6 @@ #' #' @field organizationId character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -41,7 +43,9 @@ EntitySetCollection <- R6::R6Class( `template` = NULL, `contacts` = NULL, `organizationId` = NULL, - initialize = function(`id`=NULL, `name`=NULL, `title`=NULL, `description`=NULL, `entityTypeCollectionId`=NULL, `template`=NULL, `contacts`=NULL, `organizationId`=NULL, ...){ + initialize = function( + `id`=NULL, `name`=NULL, `title`=NULL, `description`=NULL, `entityTypeCollectionId`=NULL, `template`=NULL, `contacts`=NULL, `organizationId`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`id`)) { stopifnot(is.character(`id`), length(`id`) == 1) @@ -141,6 +145,7 @@ EntitySetCollection <- R6::R6Class( if (!is.null(EntitySetCollectionObject$`organizationId`)) { self$`organizationId` <- EntitySetCollectionObject$`organizationId` } + self }, toJSONString = function() { jsoncontent <- c( @@ -184,7 +189,7 @@ EntitySetCollection <- R6::R6Class( '"template": %s ', - jsonlite::toJSON(lapply(self$`template`, function(x){ x }), auto_unbox = TRUE, digits=NA) + jsonlite::toJSON(lapply(self$`template`, function(x){ x }), auto_unbox = FALSE, digits=NA) )}, if (!is.null(self$`contacts`)) { sprintf( @@ -218,3 +223,4 @@ EntitySetCollection <- R6::R6Class( } ) ) + diff --git a/R/R/entity_set_property_meta_data.R b/R/R/entity_set_property_meta_data.R index 04d43cc..1b02f4f 100644 --- a/R/R/entity_set_property_meta_data.R +++ b/R/R/entity_set_property_meta_data.R @@ -8,8 +8,11 @@ #' @docType class #' @title EntitySetPropertyMetaData +#' #' @description EntitySetPropertyMetaData Class +#' #' @format An \code{R6Class} generator object +#' #' @field title character [optional] #' #' @field description character [optional] @@ -18,7 +21,6 @@ #' #' @field defaultShow character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -29,7 +31,9 @@ EntitySetPropertyMetaData <- R6::R6Class( `description` = NULL, `propertyTags` = NULL, `defaultShow` = NULL, - initialize = function(`title`=NULL, `description`=NULL, `propertyTags`=NULL, `defaultShow`=NULL, ...){ + initialize = function( + `title`=NULL, `description`=NULL, `propertyTags`=NULL, `defaultShow`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`title`)) { stopifnot(is.character(`title`), length(`title`) == 1) @@ -83,6 +87,7 @@ EntitySetPropertyMetaData <- R6::R6Class( if (!is.null(EntitySetPropertyMetaDataObject$`defaultShow`)) { self$`defaultShow` <- EntitySetPropertyMetaDataObject$`defaultShow` } + self }, toJSONString = function() { jsoncontent <- c( @@ -128,3 +133,4 @@ EntitySetPropertyMetaData <- R6::R6Class( } ) ) + diff --git a/R/R/entity_set_selection.R b/R/R/entity_set_selection.R index 73f1cc2..85dfba2 100644 --- a/R/R/entity_set_selection.R +++ b/R/R/entity_set_selection.R @@ -8,13 +8,15 @@ #' @docType class #' @title EntitySetSelection +#' #' @description EntitySetSelection Class +#' #' @format An \code{R6Class} generator object +#' #' @field ids list( character ) [optional] #' #' @field properties list( character ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ EntitySetSelection <- R6::R6Class( public = list( `ids` = NULL, `properties` = NULL, - initialize = function(`ids`=NULL, `properties`=NULL, ...){ + initialize = function( + `ids`=NULL, `properties`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`ids`)) { stopifnot(is.vector(`ids`)) @@ -57,6 +61,7 @@ EntitySetSelection <- R6::R6Class( if (!is.null(EntitySetSelectionObject$`properties`)) { self$`properties` <- ApiClient$new()$deserializeObj(EntitySetSelectionObject$`properties`, "array[character]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -86,3 +91,4 @@ EntitySetSelection <- R6::R6Class( } ) ) + diff --git a/R/R/entity_sets_api.R b/R/R/entity_sets_api.R index 0452c88..cf327fd 100644 --- a/R/R/entity_sets_api.R +++ b/R/R/entity_sets_api.R @@ -312,7 +312,7 @@ #' #' library(openlattice) #' var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | -#' var.request_body <- {'key' => array$new()} # list(array[character]) | +#' var.request_body <- NULL # list(array[character]) | #' #' #Adds the entity sets as linked entity sets to the linking entity sets #' api.instance <- EntitySetsApi$new() @@ -554,7 +554,7 @@ #' #' library(openlattice) #' var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | -#' var.request_body <- {'key' => array$new()} # list(array[character]) | +#' var.request_body <- NULL # list(array[character]) | #' #' #Removes/unlinks the linked entity sets from the linking entity set #' api.instance <- EntitySetsApi$new() @@ -658,7 +658,7 @@ EntitySetsApi <- R6::R6Class( ' [%s] ', - paste(sapply(`request_body`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL @@ -796,7 +796,7 @@ EntitySetsApi <- R6::R6Class( ' [%s] ', - paste(sapply(`entity_set`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`entity_set`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL @@ -1115,7 +1115,7 @@ EntitySetsApi <- R6::R6Class( ' [%s] ', - paste(sapply(`request_body`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL @@ -1238,7 +1238,7 @@ EntitySetsApi <- R6::R6Class( ' [%s] ', - paste(sapply(`request_body`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL @@ -1357,7 +1357,7 @@ EntitySetsApi <- R6::R6Class( ' [%s] ', - paste(sapply(`request_body`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL @@ -1499,7 +1499,7 @@ EntitySetsApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -1574,7 +1574,7 @@ EntitySetsApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL diff --git a/R/R/entity_type.R b/R/R/entity_type.R index 297a329..f905297 100644 --- a/R/R/entity_type.R +++ b/R/R/entity_type.R @@ -8,8 +8,11 @@ #' @docType class #' @title EntityType +#' #' @description EntityType Class +#' #' @format An \code{R6Class} generator object +#' #' @field title character [optional] #' #' @field description character [optional] @@ -24,13 +27,12 @@ #' #' @field properties list( character ) [optional] #' -#' @field propertyTags named list( \link{array[character]} ) [optional] +#' @field propertyTags named list( array[character] ) [optional] #' #' @field basetype character [optional] #' #' @field category character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -47,7 +49,9 @@ EntityType <- R6::R6Class( `propertyTags` = NULL, `basetype` = NULL, `category` = NULL, - initialize = function(`title`=NULL, `description`=NULL, `id`=NULL, `type`=NULL, `schemas`=NULL, `key`=NULL, `properties`=NULL, `propertyTags`=NULL, `basetype`=NULL, `category`=NULL, ...){ + initialize = function( + `title`=NULL, `description`=NULL, `id`=NULL, `type`=NULL, `schemas`=NULL, `key`=NULL, `properties`=NULL, `propertyTags`=NULL, `basetype`=NULL, `category`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`title`)) { stopifnot(is.character(`title`), length(`title`) == 1) @@ -82,7 +86,7 @@ EntityType <- R6::R6Class( } if (!is.null(`propertyTags`)) { stopifnot(is.vector(`propertyTags`)) - sapply(`propertyTags`, function(x) stopifnot(R6::is.R6(x))) + sapply(`propertyTags`, function(x) stopifnot(is.character(x))) self$`propertyTags` <- `propertyTags` } if (!is.null(`basetype`)) { @@ -126,7 +130,7 @@ EntityType <- R6::R6Class( } if (!is.null(self$`propertyTags`)) { EntityTypeObject[['propertyTags']] <- - lapply(self$`propertyTags`, function(x) x$toJSON()) + self$`propertyTags` } if (!is.null(self$`basetype`)) { EntityTypeObject[['basetype']] <- @@ -152,7 +156,7 @@ EntityType <- R6::R6Class( } if (!is.null(EntityTypeObject$`type`)) { typeObject <- FullQualifiedName$new() - typeObject$fromJSON(jsonlite::toJSON(EntityTypeObject$type, auto_unbox = TRUE, digits = NA)) + typeObject$fromJSON(jsonlite::toJSON(EntityTypeObject$type, auto_unbox = FALSE, digits = NA)) self$`type` <- typeObject } if (!is.null(EntityTypeObject$`schemas`)) { @@ -173,6 +177,7 @@ EntityType <- R6::R6Class( if (!is.null(EntityTypeObject$`category`)) { self$`category` <- EntityTypeObject$`category` } + self }, toJSONString = function() { jsoncontent <- c( @@ -202,14 +207,14 @@ EntityType <- R6::R6Class( '"type": %s ', - jsonlite::toJSON(self$`type`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`type`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`schemas`)) { sprintf( '"schemas": [%s] ', - paste(sapply(self$`schemas`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`schemas`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )}, if (!is.null(self$`key`)) { sprintf( @@ -228,9 +233,9 @@ EntityType <- R6::R6Class( if (!is.null(self$`propertyTags`)) { sprintf( '"propertyTags": - %s -', - jsonlite::toJSON(lapply(self$`propertyTags`, function(x){ x$toJSON() }), auto_unbox = TRUE, digits=NA) + %s + ', + jsonlite::toJSON(lapply(self$`propertyTags`, function(x){ x }), auto_unbox = FALSE, digits=NA) )}, if (!is.null(self$`basetype`)) { sprintf( @@ -255,7 +260,7 @@ EntityType <- R6::R6Class( self$`title` <- EntityTypeObject$`title` self$`description` <- EntityTypeObject$`description` self$`id` <- EntityTypeObject$`id` - self$`type` <- FullQualifiedName$new()$fromJSON(jsonlite::toJSON(EntityTypeObject$type, auto_unbox = TRUE, digits = NA)) + self$`type` <- FullQualifiedName$new()$fromJSON(jsonlite::toJSON(EntityTypeObject$type, auto_unbox = FALSE, digits = NA)) self$`schemas` <- ApiClient$new()$deserializeObj(EntityTypeObject$`schemas`, "array[FullQualifiedName]", loadNamespace("openlattice")) self$`key` <- ApiClient$new()$deserializeObj(EntityTypeObject$`key`, "array[character]", loadNamespace("openlattice")) self$`properties` <- ApiClient$new()$deserializeObj(EntityTypeObject$`properties`, "array[character]", loadNamespace("openlattice")) @@ -266,3 +271,4 @@ EntityType <- R6::R6Class( } ) ) + diff --git a/R/R/entity_type_collection.R b/R/R/entity_type_collection.R index 2a4dd1c..a1f6cb3 100644 --- a/R/R/entity_type_collection.R +++ b/R/R/entity_type_collection.R @@ -8,8 +8,11 @@ #' @docType class #' @title EntityTypeCollection +#' #' @description EntityTypeCollection Class +#' #' @format An \code{R6Class} generator object +#' #' @field id character [optional] #' #' @field type \link{FullQualifiedName} [optional] @@ -22,7 +25,6 @@ #' #' @field template list( \link{CollectionTemplateType} ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -35,7 +37,9 @@ EntityTypeCollection <- R6::R6Class( `description` = NULL, `schemas` = NULL, `template` = NULL, - initialize = function(`id`=NULL, `type`=NULL, `title`=NULL, `description`=NULL, `schemas`=NULL, `template`=NULL, ...){ + initialize = function( + `id`=NULL, `type`=NULL, `title`=NULL, `description`=NULL, `schemas`=NULL, `template`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`id`)) { stopifnot(is.character(`id`), length(`id`) == 1) @@ -100,7 +104,7 @@ EntityTypeCollection <- R6::R6Class( } if (!is.null(EntityTypeCollectionObject$`type`)) { typeObject <- FullQualifiedName$new() - typeObject$fromJSON(jsonlite::toJSON(EntityTypeCollectionObject$type, auto_unbox = TRUE, digits = NA)) + typeObject$fromJSON(jsonlite::toJSON(EntityTypeCollectionObject$type, auto_unbox = FALSE, digits = NA)) self$`type` <- typeObject } if (!is.null(EntityTypeCollectionObject$`title`)) { @@ -115,6 +119,7 @@ EntityTypeCollection <- R6::R6Class( if (!is.null(EntityTypeCollectionObject$`template`)) { self$`template` <- ApiClient$new()$deserializeObj(EntityTypeCollectionObject$`template`, "array[CollectionTemplateType]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -130,7 +135,7 @@ EntityTypeCollection <- R6::R6Class( '"type": %s ', - jsonlite::toJSON(self$`type`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`type`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`title`)) { sprintf( @@ -151,14 +156,14 @@ EntityTypeCollection <- R6::R6Class( '"schemas": [%s] ', - paste(sapply(self$`schemas`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`schemas`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )}, if (!is.null(self$`template`)) { sprintf( '"template": [%s] ', - paste(sapply(self$`template`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`template`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -167,7 +172,7 @@ EntityTypeCollection <- R6::R6Class( fromJSONString = function(EntityTypeCollectionJson) { EntityTypeCollectionObject <- jsonlite::fromJSON(EntityTypeCollectionJson) self$`id` <- EntityTypeCollectionObject$`id` - self$`type` <- FullQualifiedName$new()$fromJSON(jsonlite::toJSON(EntityTypeCollectionObject$type, auto_unbox = TRUE, digits = NA)) + self$`type` <- FullQualifiedName$new()$fromJSON(jsonlite::toJSON(EntityTypeCollectionObject$type, auto_unbox = FALSE, digits = NA)) self$`title` <- EntityTypeCollectionObject$`title` self$`description` <- EntityTypeCollectionObject$`description` self$`schemas` <- ApiClient$new()$deserializeObj(EntityTypeCollectionObject$`schemas`, "array[FullQualifiedName]", loadNamespace("openlattice")) @@ -176,3 +181,4 @@ EntityTypeCollection <- R6::R6Class( } ) ) + diff --git a/R/R/entity_type_property_metadata.R b/R/R/entity_type_property_metadata.R index a895c3e..98e4d17 100644 --- a/R/R/entity_type_property_metadata.R +++ b/R/R/entity_type_property_metadata.R @@ -8,13 +8,15 @@ #' @docType class #' @title EntityTypePropertyMetadata +#' #' @description EntityTypePropertyMetadata Class +#' #' @format An \code{R6Class} generator object +#' #' @field title character [optional] #' #' @field description character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ EntityTypePropertyMetadata <- R6::R6Class( public = list( `title` = NULL, `description` = NULL, - initialize = function(`title`=NULL, `description`=NULL, ...){ + initialize = function( + `title`=NULL, `description`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`title`)) { stopifnot(is.character(`title`), length(`title`) == 1) @@ -55,6 +59,7 @@ EntityTypePropertyMetadata <- R6::R6Class( if (!is.null(EntityTypePropertyMetadataObject$`description`)) { self$`description` <- EntityTypePropertyMetadataObject$`description` } + self }, toJSONString = function() { jsoncontent <- c( @@ -84,3 +89,4 @@ EntityTypePropertyMetadata <- R6::R6Class( } ) ) + diff --git a/R/R/flight.R b/R/R/flight.R index 62aa2ad..69b79b6 100644 --- a/R/R/flight.R +++ b/R/R/flight.R @@ -8,8 +8,11 @@ #' @docType class #' @title Flight +#' #' @description Flight Class +#' #' @format An \code{R6Class} generator object +#' #' @field name character [optional] #' #' @field tags list( character ) [optional] @@ -20,7 +23,6 @@ #' #' @field associationDefinitions named list( \link{AssociationDefinition} ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -32,7 +34,9 @@ Flight <- R6::R6Class( `organizationId` = NULL, `entityDefinitions` = NULL, `associationDefinitions` = NULL, - initialize = function(`name`=NULL, `tags`=NULL, `organizationId`=NULL, `entityDefinitions`=NULL, `associationDefinitions`=NULL, ...){ + initialize = function( + `name`=NULL, `tags`=NULL, `organizationId`=NULL, `entityDefinitions`=NULL, `associationDefinitions`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`name`)) { stopifnot(is.character(`name`), length(`name`) == 1) @@ -100,6 +104,7 @@ Flight <- R6::R6Class( if (!is.null(FlightObject$`associationDefinitions`)) { self$`associationDefinitions` <- ApiClient$new()$deserializeObj(FlightObject$`associationDefinitions`, "list(AssociationDefinition)", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -129,14 +134,14 @@ Flight <- R6::R6Class( '"entityDefinitions": %s ', - jsonlite::toJSON(lapply(self$`entityDefinitions`, function(x){ x$toJSON() }), auto_unbox = TRUE, digits=NA) + jsonlite::toJSON(lapply(self$`entityDefinitions`, function(x){ x$toJSON() }), auto_unbox = FALSE, digits=NA) )}, if (!is.null(self$`associationDefinitions`)) { sprintf( '"associationDefinitions": %s ', - jsonlite::toJSON(lapply(self$`associationDefinitions`, function(x){ x$toJSON() }), auto_unbox = TRUE, digits=NA) + jsonlite::toJSON(lapply(self$`associationDefinitions`, function(x){ x$toJSON() }), auto_unbox = FALSE, digits=NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -153,3 +158,4 @@ Flight <- R6::R6Class( } ) ) + diff --git a/R/R/flight_plan_parameters.R b/R/R/flight_plan_parameters.R index f8faba2..9340d58 100644 --- a/R/R/flight_plan_parameters.R +++ b/R/R/flight_plan_parameters.R @@ -8,8 +8,11 @@ #' @docType class #' @title FlightPlanParameters +#' #' @description FlightPlanParameters Class +#' #' @format An \code{R6Class} generator object +#' #' @field sql character [optional] #' #' @field src named list( character ) [optional] @@ -20,7 +23,6 @@ #' #' @field flight \link{Flight} [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -32,7 +34,9 @@ FlightPlanParameters <- R6::R6Class( `srcPrimaryKeyColumns` = NULL, `path` = NULL, `flight` = NULL, - initialize = function(`sql`=NULL, `src`=NULL, `srcPrimaryKeyColumns`=NULL, `path`=NULL, `flight`=NULL, ...){ + initialize = function( + `sql`=NULL, `src`=NULL, `srcPrimaryKeyColumns`=NULL, `path`=NULL, `flight`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`sql`)) { stopifnot(is.character(`sql`), length(`sql`) == 1) @@ -98,9 +102,10 @@ FlightPlanParameters <- R6::R6Class( } if (!is.null(FlightPlanParametersObject$`flight`)) { flightObject <- Flight$new() - flightObject$fromJSON(jsonlite::toJSON(FlightPlanParametersObject$flight, auto_unbox = TRUE, digits = NA)) + flightObject$fromJSON(jsonlite::toJSON(FlightPlanParametersObject$flight, auto_unbox = FALSE, digits = NA)) self$`flight` <- flightObject } + self }, toJSONString = function() { jsoncontent <- c( @@ -116,7 +121,7 @@ FlightPlanParameters <- R6::R6Class( '"src": %s ', - jsonlite::toJSON(lapply(self$`src`, function(x){ x }), auto_unbox = TRUE, digits=NA) + jsonlite::toJSON(lapply(self$`src`, function(x){ x }), auto_unbox = FALSE, digits=NA) )}, if (!is.null(self$`srcPrimaryKeyColumns`)) { sprintf( @@ -137,7 +142,7 @@ FlightPlanParameters <- R6::R6Class( '"flight": %s ', - jsonlite::toJSON(self$`flight`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`flight`$toJSON(), auto_unbox=FALSE, digits = NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -149,8 +154,9 @@ FlightPlanParameters <- R6::R6Class( self$`src` <- ApiClient$new()$deserializeObj(FlightPlanParametersObject$`src`, "list(character)", loadNamespace("openlattice")) self$`srcPrimaryKeyColumns` <- ApiClient$new()$deserializeObj(FlightPlanParametersObject$`srcPrimaryKeyColumns`, "array[character]", loadNamespace("openlattice")) self$`path` <- FlightPlanParametersObject$`path` - self$`flight` <- Flight$new()$fromJSON(jsonlite::toJSON(FlightPlanParametersObject$flight, auto_unbox = TRUE, digits = NA)) + self$`flight` <- Flight$new()$fromJSON(jsonlite::toJSON(FlightPlanParametersObject$flight, auto_unbox = FALSE, digits = NA)) self } ) ) + diff --git a/R/R/flight_plan_parameters_update.R b/R/R/flight_plan_parameters_update.R index fdf1197..358e1be 100644 --- a/R/R/flight_plan_parameters_update.R +++ b/R/R/flight_plan_parameters_update.R @@ -8,8 +8,11 @@ #' @docType class #' @title FlightPlanParametersUpdate +#' #' @description FlightPlanParametersUpdate Class +#' #' @format An \code{R6Class} generator object +#' #' @field sql character [optional] #' #' @field src named list( character ) [optional] @@ -18,7 +21,6 @@ #' #' @field path character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -29,7 +31,9 @@ FlightPlanParametersUpdate <- R6::R6Class( `src` = NULL, `srcPrimaryKeyColumns` = NULL, `path` = NULL, - initialize = function(`sql`=NULL, `src`=NULL, `srcPrimaryKeyColumns`=NULL, `path`=NULL, ...){ + initialize = function( + `sql`=NULL, `src`=NULL, `srcPrimaryKeyColumns`=NULL, `path`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`sql`)) { stopifnot(is.character(`sql`), length(`sql`) == 1) @@ -85,6 +89,7 @@ FlightPlanParametersUpdate <- R6::R6Class( if (!is.null(FlightPlanParametersUpdateObject$`path`)) { self$`path` <- FlightPlanParametersUpdateObject$`path` } + self }, toJSONString = function() { jsoncontent <- c( @@ -100,7 +105,7 @@ FlightPlanParametersUpdate <- R6::R6Class( '"src": %s ', - jsonlite::toJSON(lapply(self$`src`, function(x){ x }), auto_unbox = TRUE, digits=NA) + jsonlite::toJSON(lapply(self$`src`, function(x){ x }), auto_unbox = FALSE, digits=NA) )}, if (!is.null(self$`srcPrimaryKeyColumns`)) { sprintf( @@ -130,3 +135,4 @@ FlightPlanParametersUpdate <- R6::R6Class( } ) ) + diff --git a/R/R/full_qualified_name.R b/R/R/full_qualified_name.R index c790219..e18133f 100644 --- a/R/R/full_qualified_name.R +++ b/R/R/full_qualified_name.R @@ -8,13 +8,15 @@ #' @docType class #' @title FullQualifiedName +#' #' @description FullQualifiedName Class +#' #' @format An \code{R6Class} generator object +#' #' @field name character [optional] #' #' @field namespace character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ FullQualifiedName <- R6::R6Class( public = list( `name` = NULL, `namespace` = NULL, - initialize = function(`name`=NULL, `namespace`=NULL, ...){ + initialize = function( + `name`=NULL, `namespace`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`name`)) { stopifnot(is.character(`name`), length(`name`) == 1) @@ -55,6 +59,7 @@ FullQualifiedName <- R6::R6Class( if (!is.null(FullQualifiedNameObject$`namespace`)) { self$`namespace` <- FullQualifiedNameObject$`namespace` } + self }, toJSONString = function() { jsoncontent <- c( @@ -84,3 +89,4 @@ FullQualifiedName <- R6::R6Class( } ) ) + diff --git a/R/R/indexing_state.R b/R/R/indexing_state.R index 6f59342..203f35f 100644 --- a/R/R/indexing_state.R +++ b/R/R/indexing_state.R @@ -8,9 +8,12 @@ #' @docType class #' @title IndexingState +#' #' @description IndexingState Class +#' #' @format An \code{R6Class} generator object -#' @field indexing named list( \link{array[character]} ) [optional] +#' +#' @field indexing named list( array[character] ) [optional] #' #' @field queue list( character ) [optional] #' @@ -20,7 +23,6 @@ #' #' @field count integer [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -32,11 +34,13 @@ IndexingState <- R6::R6Class( `currentEntitySet` = NULL, `queueSize` = NULL, `count` = NULL, - initialize = function(`indexing`=NULL, `queue`=NULL, `currentEntitySet`=NULL, `queueSize`=NULL, `count`=NULL, ...){ + initialize = function( + `indexing`=NULL, `queue`=NULL, `currentEntitySet`=NULL, `queueSize`=NULL, `count`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`indexing`)) { stopifnot(is.vector(`indexing`)) - sapply(`indexing`, function(x) stopifnot(R6::is.R6(x))) + sapply(`indexing`, function(x) stopifnot(is.character(x))) self$`indexing` <- `indexing` } if (!is.null(`queue`)) { @@ -61,7 +65,7 @@ IndexingState <- R6::R6Class( IndexingStateObject <- list() if (!is.null(self$`indexing`)) { IndexingStateObject[['indexing']] <- - lapply(self$`indexing`, function(x) x$toJSON()) + self$`indexing` } if (!is.null(self$`queue`)) { IndexingStateObject[['queue']] <- @@ -99,15 +103,16 @@ IndexingState <- R6::R6Class( if (!is.null(IndexingStateObject$`count`)) { self$`count` <- IndexingStateObject$`count` } + self }, toJSONString = function() { jsoncontent <- c( if (!is.null(self$`indexing`)) { sprintf( '"indexing": - %s -', - jsonlite::toJSON(lapply(self$`indexing`, function(x){ x$toJSON() }), auto_unbox = TRUE, digits=NA) + %s + ', + jsonlite::toJSON(lapply(self$`indexing`, function(x){ x }), auto_unbox = FALSE, digits=NA) )}, if (!is.null(self$`queue`)) { sprintf( @@ -152,3 +157,4 @@ IndexingState <- R6::R6Class( } ) ) + diff --git a/R/R/inline_object.R b/R/R/inline_object.R index a2b6667..0077051 100644 --- a/R/R/inline_object.R +++ b/R/R/inline_object.R @@ -8,10 +8,12 @@ #' @docType class #' @title InlineObject +#' #' @description InlineObject Class +#' #' @format An \code{R6Class} generator object -#' @field additionalProperties list( \link{DataEdge} ) [optional] #' +#' @field additionalProperties list( \link{DataEdge} ) [optional] #' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON @@ -20,7 +22,9 @@ InlineObject <- R6::R6Class( 'InlineObject', public = list( `additionalProperties` = NULL, - initialize = function(`additionalProperties`=NULL, ...){ + initialize = function( + `additionalProperties`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`additionalProperties`)) { stopifnot(is.vector(`additionalProperties`)) @@ -42,6 +46,7 @@ InlineObject <- R6::R6Class( if (!is.null(InlineObjectObject$`additionalProperties`)) { self$`additionalProperties` <- ApiClient$new()$deserializeObj(InlineObjectObject$`additionalProperties`, "array[DataEdge]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -50,7 +55,7 @@ InlineObject <- R6::R6Class( '"additionalProperties": [%s] ', - paste(sapply(self$`additionalProperties`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`additionalProperties`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -63,3 +68,4 @@ InlineObject <- R6::R6Class( } ) ) + diff --git a/R/R/inline_response200.R b/R/R/inline_response200.R index 2431786..76b7cce 100644 --- a/R/R/inline_response200.R +++ b/R/R/inline_response200.R @@ -8,13 +8,15 @@ #' @docType class #' @title InlineResponse200 +#' #' @description InlineResponse200 Class +#' #' @format An \code{R6Class} generator object +#' #' @field user character [optional] #' #' @field credential character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ InlineResponse200 <- R6::R6Class( public = list( `user` = NULL, `credential` = NULL, - initialize = function(`user`=NULL, `credential`=NULL, ...){ + initialize = function( + `user`=NULL, `credential`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`user`)) { stopifnot(is.character(`user`), length(`user`) == 1) @@ -55,6 +59,7 @@ InlineResponse200 <- R6::R6Class( if (!is.null(InlineResponse200Object$`credential`)) { self$`credential` <- InlineResponse200Object$`credential` } + self }, toJSONString = function() { jsoncontent <- c( @@ -84,3 +89,4 @@ InlineResponse200 <- R6::R6Class( } ) ) + diff --git a/R/R/integration.R b/R/R/integration.R index b4eabad..17a945f 100644 --- a/R/R/integration.R +++ b/R/R/integration.R @@ -8,8 +8,11 @@ #' @docType class #' @title Integration +#' #' @description Integration Class +#' #' @format An \code{R6Class} generator object +#' #' @field key character [optional] #' #' @field environment character [optional] @@ -28,7 +31,6 @@ #' #' @field flightPlanParameters named list( \link{FlightPlanParameters} ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -44,7 +46,9 @@ Integration <- R6::R6Class( `maxConnections` = NULL, `callback` = NULL, `flightPlanParameters` = NULL, - initialize = function(`key`=NULL, `environment`=NULL, `s3Bucket`=NULL, `contacts`=NULL, `organizationId`=NULL, `entitySetId`=NULL, `maxConnections`=NULL, `callback`=NULL, `flightPlanParameters`=NULL, ...){ + initialize = function( + `key`=NULL, `environment`=NULL, `s3Bucket`=NULL, `contacts`=NULL, `organizationId`=NULL, `entitySetId`=NULL, `maxConnections`=NULL, `callback`=NULL, `flightPlanParameters`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`key`)) { stopifnot(is.character(`key`), length(`key`) == 1) @@ -156,6 +160,7 @@ Integration <- R6::R6Class( if (!is.null(IntegrationObject$`flightPlanParameters`)) { self$`flightPlanParameters` <- ApiClient$new()$deserializeObj(IntegrationObject$`flightPlanParameters`, "list(FlightPlanParameters)", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -220,7 +225,7 @@ Integration <- R6::R6Class( '"flightPlanParameters": %s ', - jsonlite::toJSON(lapply(self$`flightPlanParameters`, function(x){ x$toJSON() }), auto_unbox = TRUE, digits=NA) + jsonlite::toJSON(lapply(self$`flightPlanParameters`, function(x){ x$toJSON() }), auto_unbox = FALSE, digits=NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -241,3 +246,4 @@ Integration <- R6::R6Class( } ) ) + diff --git a/R/R/integration_job.R b/R/R/integration_job.R index 7968db7..5962772 100644 --- a/R/R/integration_job.R +++ b/R/R/integration_job.R @@ -8,13 +8,15 @@ #' @docType class #' @title IntegrationJob +#' #' @description IntegrationJob Class +#' #' @format An \code{R6Class} generator object +#' #' @field name character [optional] #' #' @field status character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ IntegrationJob <- R6::R6Class( public = list( `name` = NULL, `status` = NULL, - initialize = function(`name`=NULL, `status`=NULL, ...){ + initialize = function( + `name`=NULL, `status`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`name`)) { stopifnot(is.character(`name`), length(`name`) == 1) @@ -55,6 +59,7 @@ IntegrationJob <- R6::R6Class( if (!is.null(IntegrationJobObject$`status`)) { self$`status` <- IntegrationJobObject$`status` } + self }, toJSONString = function() { jsoncontent <- c( @@ -84,3 +89,4 @@ IntegrationJob <- R6::R6Class( } ) ) + diff --git a/R/R/integration_results.R b/R/R/integration_results.R index 92de05b..e12c061 100644 --- a/R/R/integration_results.R +++ b/R/R/integration_results.R @@ -8,8 +8,11 @@ #' @docType class #' @title IntegrationResults +#' #' @description IntegrationResults Class +#' #' @format An \code{R6Class} generator object +#' #' @field entityCount integer [optional] #' #' @field associationCount integer [optional] @@ -18,7 +21,6 @@ #' #' @field entitySetsEntityKeyMappings named list( list(character) ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -29,7 +31,9 @@ IntegrationResults <- R6::R6Class( `associationCount` = NULL, `associationsEntityKeyMappings` = NULL, `entitySetsEntityKeyMappings` = NULL, - initialize = function(`entityCount`=NULL, `associationCount`=NULL, `associationsEntityKeyMappings`=NULL, `entitySetsEntityKeyMappings`=NULL, ...){ + initialize = function( + `entityCount`=NULL, `associationCount`=NULL, `associationsEntityKeyMappings`=NULL, `entitySetsEntityKeyMappings`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`entityCount`)) { stopifnot(is.numeric(`entityCount`), length(`entityCount`) == 1) @@ -85,6 +89,7 @@ IntegrationResults <- R6::R6Class( if (!is.null(IntegrationResultsObject$`entitySetsEntityKeyMappings`)) { self$`entitySetsEntityKeyMappings` <- ApiClient$new()$deserializeObj(IntegrationResultsObject$`entitySetsEntityKeyMappings`, "list(list(character))", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -107,14 +112,14 @@ IntegrationResults <- R6::R6Class( '"associationsEntityKeyMappings": %s ', - jsonlite::toJSON(lapply(self$`associationsEntityKeyMappings`, function(x){ x }), auto_unbox = TRUE, digits=NA) + jsonlite::toJSON(lapply(self$`associationsEntityKeyMappings`, function(x){ x }), auto_unbox = FALSE, digits=NA) )}, if (!is.null(self$`entitySetsEntityKeyMappings`)) { sprintf( '"entitySetsEntityKeyMappings": %s ', - jsonlite::toJSON(lapply(self$`entitySetsEntityKeyMappings`, function(x){ x }), auto_unbox = TRUE, digits=NA) + jsonlite::toJSON(lapply(self$`entitySetsEntityKeyMappings`, function(x){ x }), auto_unbox = FALSE, digits=NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -130,3 +135,4 @@ IntegrationResults <- R6::R6Class( } ) ) + diff --git a/R/R/integration_update.R b/R/R/integration_update.R index d6c6a44..971938b 100644 --- a/R/R/integration_update.R +++ b/R/R/integration_update.R @@ -8,8 +8,11 @@ #' @docType class #' @title IntegrationUpdate +#' #' @description IntegrationUpdate Class +#' #' @format An \code{R6Class} generator object +#' #' @field environment character [optional] #' #' @field s3Bucket character [optional] @@ -24,7 +27,6 @@ #' #' @field flightPlanParameters named list( \link{FlightPlanParametersUpdate} ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -38,7 +40,9 @@ IntegrationUpdate <- R6::R6Class( `maxConnections` = NULL, `callbackUrls` = NULL, `flightPlanParameters` = NULL, - initialize = function(`environment`=NULL, `s3Bucket`=NULL, `contacts`=NULL, `organizationId`=NULL, `maxConnections`=NULL, `callbackUrls`=NULL, `flightPlanParameters`=NULL, ...){ + initialize = function( + `environment`=NULL, `s3Bucket`=NULL, `contacts`=NULL, `organizationId`=NULL, `maxConnections`=NULL, `callbackUrls`=NULL, `flightPlanParameters`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`environment`)) { stopifnot(is.character(`environment`), length(`environment`) == 1) @@ -128,6 +132,7 @@ IntegrationUpdate <- R6::R6Class( if (!is.null(IntegrationUpdateObject$`flightPlanParameters`)) { self$`flightPlanParameters` <- ApiClient$new()$deserializeObj(IntegrationUpdateObject$`flightPlanParameters`, "list(FlightPlanParametersUpdate)", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -178,7 +183,7 @@ IntegrationUpdate <- R6::R6Class( '"flightPlanParameters": %s ', - jsonlite::toJSON(lapply(self$`flightPlanParameters`, function(x){ x$toJSON() }), auto_unbox = TRUE, digits=NA) + jsonlite::toJSON(lapply(self$`flightPlanParameters`, function(x){ x$toJSON() }), auto_unbox = FALSE, digits=NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -197,3 +202,4 @@ IntegrationUpdate <- R6::R6Class( } ) ) + diff --git a/R/R/linking_api.R b/R/R/linking_api.R index d462e66..150d33b 100644 --- a/R/R/linking_api.R +++ b/R/R/linking_api.R @@ -275,7 +275,7 @@ LinkingApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`linking_feedback`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`linking_feedback`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -338,7 +338,7 @@ LinkingApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`entity_key_pair`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`entity_key_pair`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -497,7 +497,7 @@ LinkingApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`entity_key_pair`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`entity_key_pair`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -566,7 +566,7 @@ LinkingApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`entity_data_key`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`entity_data_key`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL diff --git a/R/R/linking_feedback.R b/R/R/linking_feedback.R index 055120f..1b30483 100644 --- a/R/R/linking_feedback.R +++ b/R/R/linking_feedback.R @@ -8,15 +8,17 @@ #' @docType class #' @title LinkingFeedback +#' #' @description LinkingFeedback Class +#' #' @format An \code{R6Class} generator object +#' #' @field linkingEntity \link{EntityDataKey} [optional] #' #' @field link list( \link{EntityDataKey} ) [optional] #' #' @field unlink list( \link{EntityDataKey} ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -26,7 +28,9 @@ LinkingFeedback <- R6::R6Class( `linkingEntity` = NULL, `link` = NULL, `unlink` = NULL, - initialize = function(`linkingEntity`=NULL, `link`=NULL, `unlink`=NULL, ...){ + initialize = function( + `linkingEntity`=NULL, `link`=NULL, `unlink`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`linkingEntity`)) { stopifnot(R6::is.R6(`linkingEntity`)) @@ -64,7 +68,7 @@ LinkingFeedback <- R6::R6Class( LinkingFeedbackObject <- jsonlite::fromJSON(LinkingFeedbackJson) if (!is.null(LinkingFeedbackObject$`linkingEntity`)) { linkingEntityObject <- EntityDataKey$new() - linkingEntityObject$fromJSON(jsonlite::toJSON(LinkingFeedbackObject$linkingEntity, auto_unbox = TRUE, digits = NA)) + linkingEntityObject$fromJSON(jsonlite::toJSON(LinkingFeedbackObject$linkingEntity, auto_unbox = FALSE, digits = NA)) self$`linkingEntity` <- linkingEntityObject } if (!is.null(LinkingFeedbackObject$`link`)) { @@ -73,6 +77,7 @@ LinkingFeedback <- R6::R6Class( if (!is.null(LinkingFeedbackObject$`unlink`)) { self$`unlink` <- ApiClient$new()$deserializeObj(LinkingFeedbackObject$`unlink`, "array[EntityDataKey]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -81,21 +86,21 @@ LinkingFeedback <- R6::R6Class( '"linkingEntity": %s ', - jsonlite::toJSON(self$`linkingEntity`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`linkingEntity`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`link`)) { sprintf( '"link": [%s] ', - paste(sapply(self$`link`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`link`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )}, if (!is.null(self$`unlink`)) { sprintf( '"unlink": [%s] ', - paste(sapply(self$`unlink`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`unlink`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -103,10 +108,11 @@ LinkingFeedback <- R6::R6Class( }, fromJSONString = function(LinkingFeedbackJson) { LinkingFeedbackObject <- jsonlite::fromJSON(LinkingFeedbackJson) - self$`linkingEntity` <- EntityDataKey$new()$fromJSON(jsonlite::toJSON(LinkingFeedbackObject$linkingEntity, auto_unbox = TRUE, digits = NA)) + self$`linkingEntity` <- EntityDataKey$new()$fromJSON(jsonlite::toJSON(LinkingFeedbackObject$linkingEntity, auto_unbox = FALSE, digits = NA)) self$`link` <- ApiClient$new()$deserializeObj(LinkingFeedbackObject$`link`, "array[EntityDataKey]", loadNamespace("openlattice")) self$`unlink` <- ApiClient$new()$deserializeObj(LinkingFeedbackObject$`unlink`, "array[EntityDataKey]", loadNamespace("openlattice")) self } ) ) + diff --git a/R/R/materialized_view_account.R b/R/R/materialized_view_account.R index 36dd8d5..1d95b95 100644 --- a/R/R/materialized_view_account.R +++ b/R/R/materialized_view_account.R @@ -8,13 +8,15 @@ #' @docType class #' @title MaterializedViewAccount +#' #' @description MaterializedViewAccount Class +#' #' @format An \code{R6Class} generator object +#' #' @field username character [optional] #' #' @field credential character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ MaterializedViewAccount <- R6::R6Class( public = list( `username` = NULL, `credential` = NULL, - initialize = function(`username`=NULL, `credential`=NULL, ...){ + initialize = function( + `username`=NULL, `credential`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`username`)) { stopifnot(is.character(`username`), length(`username`) == 1) @@ -55,6 +59,7 @@ MaterializedViewAccount <- R6::R6Class( if (!is.null(MaterializedViewAccountObject$`credential`)) { self$`credential` <- MaterializedViewAccountObject$`credential` } + self }, toJSONString = function() { jsoncontent <- c( @@ -84,3 +89,4 @@ MaterializedViewAccount <- R6::R6Class( } ) ) + diff --git a/R/R/metadata_update.R b/R/R/metadata_update.R index 9f15de5..46b9976 100644 --- a/R/R/metadata_update.R +++ b/R/R/metadata_update.R @@ -8,8 +8,11 @@ #' @docType class #' @title MetadataUpdate +#' #' @description MetadataUpdate Class +#' #' @format An \code{R6Class} generator object +#' #' @field title character [optional] #' #' @field description character [optional] @@ -26,7 +29,7 @@ #' #' @field url character [optional] #' -#' @field propertyTags named list( \link{array[character]} ) [optional] +#' @field propertyTags named list( array[character] ) [optional] #' #' @field indexType character [optional] #' @@ -36,7 +39,6 @@ #' #' @field enumValues list( character ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -56,7 +58,9 @@ MetadataUpdate <- R6::R6Class( `organizationId` = NULL, `partitions` = NULL, `enumValues` = NULL, - initialize = function(`title`=NULL, `description`=NULL, `name`=NULL, `contacts`=NULL, `type`=NULL, `pii`=NULL, `defaultShow`=NULL, `url`=NULL, `propertyTags`=NULL, `indexType`=NULL, `organizationId`=NULL, `partitions`=NULL, `enumValues`=NULL, ...){ + initialize = function( + `title`=NULL, `description`=NULL, `name`=NULL, `contacts`=NULL, `type`=NULL, `pii`=NULL, `defaultShow`=NULL, `url`=NULL, `propertyTags`=NULL, `indexType`=NULL, `organizationId`=NULL, `partitions`=NULL, `enumValues`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`title`)) { stopifnot(is.character(`title`), length(`title`) == 1) @@ -91,7 +95,7 @@ MetadataUpdate <- R6::R6Class( } if (!is.null(`propertyTags`)) { stopifnot(is.vector(`propertyTags`)) - sapply(`propertyTags`, function(x) stopifnot(R6::is.R6(x))) + sapply(`propertyTags`, function(x) stopifnot(is.character(x))) self$`propertyTags` <- `propertyTags` } if (!is.null(`indexType`)) { @@ -149,7 +153,7 @@ MetadataUpdate <- R6::R6Class( } if (!is.null(self$`propertyTags`)) { MetadataUpdateObject[['propertyTags']] <- - lapply(self$`propertyTags`, function(x) x$toJSON()) + self$`propertyTags` } if (!is.null(self$`indexType`)) { MetadataUpdateObject[['indexType']] <- @@ -186,7 +190,7 @@ MetadataUpdate <- R6::R6Class( } if (!is.null(MetadataUpdateObject$`type`)) { typeObject <- FullQualifiedName$new() - typeObject$fromJSON(jsonlite::toJSON(MetadataUpdateObject$type, auto_unbox = TRUE, digits = NA)) + typeObject$fromJSON(jsonlite::toJSON(MetadataUpdateObject$type, auto_unbox = FALSE, digits = NA)) self$`type` <- typeObject } if (!is.null(MetadataUpdateObject$`pii`)) { @@ -213,6 +217,7 @@ MetadataUpdate <- R6::R6Class( if (!is.null(MetadataUpdateObject$`enumValues`)) { self$`enumValues` <- ApiClient$new()$deserializeObj(MetadataUpdateObject$`enumValues`, "array[character]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -249,7 +254,7 @@ MetadataUpdate <- R6::R6Class( '"type": %s ', - jsonlite::toJSON(self$`type`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`type`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`pii`)) { sprintf( @@ -275,9 +280,9 @@ MetadataUpdate <- R6::R6Class( if (!is.null(self$`propertyTags`)) { sprintf( '"propertyTags": - %s -', - jsonlite::toJSON(lapply(self$`propertyTags`, function(x){ x$toJSON() }), auto_unbox = TRUE, digits=NA) + %s + ', + jsonlite::toJSON(lapply(self$`propertyTags`, function(x){ x }), auto_unbox = FALSE, digits=NA) )}, if (!is.null(self$`indexType`)) { sprintf( @@ -317,7 +322,7 @@ MetadataUpdate <- R6::R6Class( self$`description` <- MetadataUpdateObject$`description` self$`name` <- MetadataUpdateObject$`name` self$`contacts` <- ApiClient$new()$deserializeObj(MetadataUpdateObject$`contacts`, "array[character]", loadNamespace("openlattice")) - self$`type` <- FullQualifiedName$new()$fromJSON(jsonlite::toJSON(MetadataUpdateObject$type, auto_unbox = TRUE, digits = NA)) + self$`type` <- FullQualifiedName$new()$fromJSON(jsonlite::toJSON(MetadataUpdateObject$type, auto_unbox = FALSE, digits = NA)) self$`pii` <- MetadataUpdateObject$`pii` self$`defaultShow` <- MetadataUpdateObject$`defaultShow` self$`url` <- MetadataUpdateObject$`url` @@ -330,3 +335,4 @@ MetadataUpdate <- R6::R6Class( } ) ) + diff --git a/R/R/neighbor_entity_details.R b/R/R/neighbor_entity_details.R index 9667679..b5dbbd8 100644 --- a/R/R/neighbor_entity_details.R +++ b/R/R/neighbor_entity_details.R @@ -8,18 +8,20 @@ #' @docType class #' @title NeighborEntityDetails +#' #' @description NeighborEntityDetails Class +#' #' @format An \code{R6Class} generator object +#' #' @field associationEntitySet \link{EntitySet} [optional] #' -#' @field associationDetails named list( \link{array[character]} ) [optional] +#' @field associationDetails named list( array[character] ) [optional] #' #' @field neighborEntitySet \link{EntitySet} [optional] #' #' @field neighborId character [optional] #' -#' @field neighborDetails named list( \link{array[character]} ) [optional] -#' +#' @field neighborDetails named list( array[character] ) [optional] #' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON @@ -32,7 +34,9 @@ NeighborEntityDetails <- R6::R6Class( `neighborEntitySet` = NULL, `neighborId` = NULL, `neighborDetails` = NULL, - initialize = function(`associationEntitySet`=NULL, `associationDetails`=NULL, `neighborEntitySet`=NULL, `neighborId`=NULL, `neighborDetails`=NULL, ...){ + initialize = function( + `associationEntitySet`=NULL, `associationDetails`=NULL, `neighborEntitySet`=NULL, `neighborId`=NULL, `neighborDetails`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`associationEntitySet`)) { stopifnot(R6::is.R6(`associationEntitySet`)) @@ -40,7 +44,7 @@ NeighborEntityDetails <- R6::R6Class( } if (!is.null(`associationDetails`)) { stopifnot(is.vector(`associationDetails`)) - sapply(`associationDetails`, function(x) stopifnot(R6::is.R6(x))) + sapply(`associationDetails`, function(x) stopifnot(is.character(x))) self$`associationDetails` <- `associationDetails` } if (!is.null(`neighborEntitySet`)) { @@ -53,7 +57,7 @@ NeighborEntityDetails <- R6::R6Class( } if (!is.null(`neighborDetails`)) { stopifnot(is.vector(`neighborDetails`)) - sapply(`neighborDetails`, function(x) stopifnot(R6::is.R6(x))) + sapply(`neighborDetails`, function(x) stopifnot(is.character(x))) self$`neighborDetails` <- `neighborDetails` } }, @@ -65,7 +69,7 @@ NeighborEntityDetails <- R6::R6Class( } if (!is.null(self$`associationDetails`)) { NeighborEntityDetailsObject[['associationDetails']] <- - lapply(self$`associationDetails`, function(x) x$toJSON()) + self$`associationDetails` } if (!is.null(self$`neighborEntitySet`)) { NeighborEntityDetailsObject[['neighborEntitySet']] <- @@ -77,7 +81,7 @@ NeighborEntityDetails <- R6::R6Class( } if (!is.null(self$`neighborDetails`)) { NeighborEntityDetailsObject[['neighborDetails']] <- - lapply(self$`neighborDetails`, function(x) x$toJSON()) + self$`neighborDetails` } NeighborEntityDetailsObject @@ -86,7 +90,7 @@ NeighborEntityDetails <- R6::R6Class( NeighborEntityDetailsObject <- jsonlite::fromJSON(NeighborEntityDetailsJson) if (!is.null(NeighborEntityDetailsObject$`associationEntitySet`)) { associationEntitySetObject <- EntitySet$new() - associationEntitySetObject$fromJSON(jsonlite::toJSON(NeighborEntityDetailsObject$associationEntitySet, auto_unbox = TRUE, digits = NA)) + associationEntitySetObject$fromJSON(jsonlite::toJSON(NeighborEntityDetailsObject$associationEntitySet, auto_unbox = FALSE, digits = NA)) self$`associationEntitySet` <- associationEntitySetObject } if (!is.null(NeighborEntityDetailsObject$`associationDetails`)) { @@ -94,7 +98,7 @@ NeighborEntityDetails <- R6::R6Class( } if (!is.null(NeighborEntityDetailsObject$`neighborEntitySet`)) { neighborEntitySetObject <- EntitySet$new() - neighborEntitySetObject$fromJSON(jsonlite::toJSON(NeighborEntityDetailsObject$neighborEntitySet, auto_unbox = TRUE, digits = NA)) + neighborEntitySetObject$fromJSON(jsonlite::toJSON(NeighborEntityDetailsObject$neighborEntitySet, auto_unbox = FALSE, digits = NA)) self$`neighborEntitySet` <- neighborEntitySetObject } if (!is.null(NeighborEntityDetailsObject$`neighborId`)) { @@ -103,6 +107,7 @@ NeighborEntityDetails <- R6::R6Class( if (!is.null(NeighborEntityDetailsObject$`neighborDetails`)) { self$`neighborDetails` <- ApiClient$new()$deserializeObj(NeighborEntityDetailsObject$`neighborDetails`, "list(array[character])", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -111,21 +116,21 @@ NeighborEntityDetails <- R6::R6Class( '"associationEntitySet": %s ', - jsonlite::toJSON(self$`associationEntitySet`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`associationEntitySet`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`associationDetails`)) { sprintf( '"associationDetails": - %s -', - jsonlite::toJSON(lapply(self$`associationDetails`, function(x){ x$toJSON() }), auto_unbox = TRUE, digits=NA) + %s + ', + jsonlite::toJSON(lapply(self$`associationDetails`, function(x){ x }), auto_unbox = FALSE, digits=NA) )}, if (!is.null(self$`neighborEntitySet`)) { sprintf( '"neighborEntitySet": %s ', - jsonlite::toJSON(self$`neighborEntitySet`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`neighborEntitySet`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`neighborId`)) { sprintf( @@ -137,9 +142,9 @@ NeighborEntityDetails <- R6::R6Class( if (!is.null(self$`neighborDetails`)) { sprintf( '"neighborDetails": - %s -', - jsonlite::toJSON(lapply(self$`neighborDetails`, function(x){ x$toJSON() }), auto_unbox = TRUE, digits=NA) + %s + ', + jsonlite::toJSON(lapply(self$`neighborDetails`, function(x){ x }), auto_unbox = FALSE, digits=NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -147,12 +152,13 @@ NeighborEntityDetails <- R6::R6Class( }, fromJSONString = function(NeighborEntityDetailsJson) { NeighborEntityDetailsObject <- jsonlite::fromJSON(NeighborEntityDetailsJson) - self$`associationEntitySet` <- EntitySet$new()$fromJSON(jsonlite::toJSON(NeighborEntityDetailsObject$associationEntitySet, auto_unbox = TRUE, digits = NA)) + self$`associationEntitySet` <- EntitySet$new()$fromJSON(jsonlite::toJSON(NeighborEntityDetailsObject$associationEntitySet, auto_unbox = FALSE, digits = NA)) self$`associationDetails` <- ApiClient$new()$deserializeObj(NeighborEntityDetailsObject$`associationDetails`, "list(array[character])", loadNamespace("openlattice")) - self$`neighborEntitySet` <- EntitySet$new()$fromJSON(jsonlite::toJSON(NeighborEntityDetailsObject$neighborEntitySet, auto_unbox = TRUE, digits = NA)) + self$`neighborEntitySet` <- EntitySet$new()$fromJSON(jsonlite::toJSON(NeighborEntityDetailsObject$neighborEntitySet, auto_unbox = FALSE, digits = NA)) self$`neighborId` <- NeighborEntityDetailsObject$`neighborId` self$`neighborDetails` <- ApiClient$new()$deserializeObj(NeighborEntityDetailsObject$`neighborDetails`, "list(array[character])", loadNamespace("openlattice")) self } ) ) + diff --git a/R/R/neighbor_entity_ids.R b/R/R/neighbor_entity_ids.R index c0bc5a9..3fc4be3 100644 --- a/R/R/neighbor_entity_ids.R +++ b/R/R/neighbor_entity_ids.R @@ -8,15 +8,17 @@ #' @docType class #' @title NeighborEntityIds +#' #' @description NeighborEntityIds Class +#' #' @format An \code{R6Class} generator object +#' #' @field associationId character [optional] #' #' @field neighborId character [optional] #' #' @field src character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -26,7 +28,9 @@ NeighborEntityIds <- R6::R6Class( `associationId` = NULL, `neighborId` = NULL, `src` = NULL, - initialize = function(`associationId`=NULL, `neighborId`=NULL, `src`=NULL, ...){ + initialize = function( + `associationId`=NULL, `neighborId`=NULL, `src`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`associationId`)) { stopifnot(is.character(`associationId`), length(`associationId`) == 1) @@ -68,6 +72,7 @@ NeighborEntityIds <- R6::R6Class( if (!is.null(NeighborEntityIdsObject$`src`)) { self$`src` <- NeighborEntityIdsObject$`src` } + self }, toJSONString = function() { jsoncontent <- c( @@ -105,3 +110,4 @@ NeighborEntityIds <- R6::R6Class( } ) ) + diff --git a/R/R/neighbor_search_filter.R b/R/R/neighbor_search_filter.R index 8b1325c..a704787 100644 --- a/R/R/neighbor_search_filter.R +++ b/R/R/neighbor_search_filter.R @@ -8,8 +8,11 @@ #' @docType class #' @title NeighborSearchFilter +#' #' @description NeighborSearchFilter Class +#' #' @format An \code{R6Class} generator object +#' #' @field entityKeyIds list( character ) [optional] #' #' @field src list( character ) [optional] @@ -18,7 +21,6 @@ #' #' @field edge list( character ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -29,7 +31,9 @@ NeighborSearchFilter <- R6::R6Class( `src` = NULL, `dst` = NULL, `edge` = NULL, - initialize = function(`entityKeyIds`=NULL, `src`=NULL, `dst`=NULL, `edge`=NULL, ...){ + initialize = function( + `entityKeyIds`=NULL, `src`=NULL, `dst`=NULL, `edge`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`entityKeyIds`)) { stopifnot(is.vector(`entityKeyIds`)) @@ -87,6 +91,7 @@ NeighborSearchFilter <- R6::R6Class( if (!is.null(NeighborSearchFilterObject$`edge`)) { self$`edge` <- ApiClient$new()$deserializeObj(NeighborSearchFilterObject$`edge`, "array[character]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -132,3 +137,4 @@ NeighborSearchFilter <- R6::R6Class( } ) ) + diff --git a/R/R/organization.R b/R/R/organization.R index 50fefb0..2cd0b4f 100644 --- a/R/R/organization.R +++ b/R/R/organization.R @@ -8,8 +8,11 @@ #' @docType class #' @title Organization +#' #' @description Organization Class +#' #' @format An \code{R6Class} generator object +#' #' @field id character [optional] #' #' @field principal \link{Principal} [optional] @@ -30,7 +33,6 @@ #' #' @field partitions list( integer ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -47,7 +49,9 @@ Organization <- R6::R6Class( `apps` = NULL, `smsEntitySetInfo` = NULL, `partitions` = NULL, - initialize = function(`id`=NULL, `principal`=NULL, `title`=NULL, `description`=NULL, `emails`=NULL, `members`=NULL, `roles`=NULL, `apps`=NULL, `smsEntitySetInfo`=NULL, `partitions`=NULL, ...){ + initialize = function( + `id`=NULL, `principal`=NULL, `title`=NULL, `description`=NULL, `emails`=NULL, `members`=NULL, `roles`=NULL, `apps`=NULL, `smsEntitySetInfo`=NULL, `partitions`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`id`)) { stopifnot(is.character(`id`), length(`id`) == 1) @@ -148,7 +152,7 @@ Organization <- R6::R6Class( } if (!is.null(OrganizationObject$`principal`)) { principalObject <- Principal$new() - principalObject$fromJSON(jsonlite::toJSON(OrganizationObject$principal, auto_unbox = TRUE, digits = NA)) + principalObject$fromJSON(jsonlite::toJSON(OrganizationObject$principal, auto_unbox = FALSE, digits = NA)) self$`principal` <- principalObject } if (!is.null(OrganizationObject$`title`)) { @@ -175,6 +179,7 @@ Organization <- R6::R6Class( if (!is.null(OrganizationObject$`partitions`)) { self$`partitions` <- ApiClient$new()$deserializeObj(OrganizationObject$`partitions`, "array[integer]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -190,7 +195,7 @@ Organization <- R6::R6Class( '"principal": %s ', - jsonlite::toJSON(self$`principal`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`principal`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`title`)) { sprintf( @@ -218,14 +223,14 @@ Organization <- R6::R6Class( '"members": [%s] ', - paste(sapply(self$`members`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`members`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )}, if (!is.null(self$`roles`)) { sprintf( '"roles": [%s] ', - paste(sapply(self$`roles`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`roles`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )}, if (!is.null(self$`apps`)) { sprintf( @@ -239,7 +244,7 @@ Organization <- R6::R6Class( '"smsEntitySetInfo": [%s] ', - paste(sapply(self$`smsEntitySetInfo`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`smsEntitySetInfo`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )}, if (!is.null(self$`partitions`)) { sprintf( @@ -255,7 +260,7 @@ Organization <- R6::R6Class( fromJSONString = function(OrganizationJson) { OrganizationObject <- jsonlite::fromJSON(OrganizationJson) self$`id` <- OrganizationObject$`id` - self$`principal` <- Principal$new()$fromJSON(jsonlite::toJSON(OrganizationObject$principal, auto_unbox = TRUE, digits = NA)) + self$`principal` <- Principal$new()$fromJSON(jsonlite::toJSON(OrganizationObject$principal, auto_unbox = FALSE, digits = NA)) self$`title` <- OrganizationObject$`title` self$`description` <- OrganizationObject$`description` self$`emails` <- ApiClient$new()$deserializeObj(OrganizationObject$`emails`, "array[character]", loadNamespace("openlattice")) @@ -268,3 +273,4 @@ Organization <- R6::R6Class( } ) ) + diff --git a/R/R/organization_external_database_column.R b/R/R/organization_external_database_column.R index a56f94d..3f506fe 100644 --- a/R/R/organization_external_database_column.R +++ b/R/R/organization_external_database_column.R @@ -8,8 +8,11 @@ #' @docType class #' @title OrganizationExternalDatabaseColumn +#' #' @description OrganizationExternalDatabaseColumn Class +#' #' @format An \code{R6Class} generator object +#' #' @field id character [optional] #' #' @field name character [optional] @@ -28,7 +31,6 @@ #' #' @field ordinalPosition integer [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -44,7 +46,9 @@ OrganizationExternalDatabaseColumn <- R6::R6Class( `dataType` = NULL, `primaryKey` = NULL, `ordinalPosition` = NULL, - initialize = function(`id`=NULL, `name`=NULL, `title`=NULL, `description`=NULL, `tableId`=NULL, `organizationId`=NULL, `dataType`=NULL, `primaryKey`=NULL, `ordinalPosition`=NULL, ...){ + initialize = function( + `id`=NULL, `name`=NULL, `title`=NULL, `description`=NULL, `tableId`=NULL, `organizationId`=NULL, `dataType`=NULL, `primaryKey`=NULL, `ordinalPosition`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`id`)) { stopifnot(is.character(`id`), length(`id`) == 1) @@ -152,6 +156,7 @@ OrganizationExternalDatabaseColumn <- R6::R6Class( if (!is.null(OrganizationExternalDatabaseColumnObject$`ordinalPosition`)) { self$`ordinalPosition` <- OrganizationExternalDatabaseColumnObject$`ordinalPosition` } + self }, toJSONString = function() { jsoncontent <- c( @@ -237,3 +242,4 @@ OrganizationExternalDatabaseColumn <- R6::R6Class( } ) ) + diff --git a/R/R/organization_external_database_table.R b/R/R/organization_external_database_table.R index 1cf4d7d..72342e8 100644 --- a/R/R/organization_external_database_table.R +++ b/R/R/organization_external_database_table.R @@ -8,8 +8,11 @@ #' @docType class #' @title OrganizationExternalDatabaseTable +#' #' @description OrganizationExternalDatabaseTable Class +#' #' @format An \code{R6Class} generator object +#' #' @field id character [optional] #' #' @field name character [optional] @@ -20,7 +23,6 @@ #' #' @field organizationId character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -32,7 +34,9 @@ OrganizationExternalDatabaseTable <- R6::R6Class( `title` = NULL, `description` = NULL, `organizationId` = NULL, - initialize = function(`id`=NULL, `name`=NULL, `title`=NULL, `description`=NULL, `organizationId`=NULL, ...){ + initialize = function( + `id`=NULL, `name`=NULL, `title`=NULL, `description`=NULL, `organizationId`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`id`)) { stopifnot(is.character(`id`), length(`id`) == 1) @@ -97,6 +101,7 @@ OrganizationExternalDatabaseTable <- R6::R6Class( if (!is.null(OrganizationExternalDatabaseTableObject$`organizationId`)) { self$`organizationId` <- OrganizationExternalDatabaseTableObject$`organizationId` } + self }, toJSONString = function() { jsoncontent <- c( @@ -150,3 +155,4 @@ OrganizationExternalDatabaseTable <- R6::R6Class( } ) ) + diff --git a/R/R/organization_external_database_table_columns_pair.R b/R/R/organization_external_database_table_columns_pair.R index d0f2376..333b7f8 100644 --- a/R/R/organization_external_database_table_columns_pair.R +++ b/R/R/organization_external_database_table_columns_pair.R @@ -8,13 +8,15 @@ #' @docType class #' @title OrganizationExternalDatabaseTableColumnsPair +#' #' @description OrganizationExternalDatabaseTableColumnsPair Class +#' #' @format An \code{R6Class} generator object +#' #' @field table \link{OrganizationExternalDatabaseTable} [optional] #' #' @field columns list( \link{OrganizationExternalDatabaseColumn} ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ OrganizationExternalDatabaseTableColumnsPair <- R6::R6Class( public = list( `table` = NULL, `columns` = NULL, - initialize = function(`table`=NULL, `columns`=NULL, ...){ + initialize = function( + `table`=NULL, `columns`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`table`)) { stopifnot(R6::is.R6(`table`)) @@ -52,12 +56,13 @@ OrganizationExternalDatabaseTableColumnsPair <- R6::R6Class( OrganizationExternalDatabaseTableColumnsPairObject <- jsonlite::fromJSON(OrganizationExternalDatabaseTableColumnsPairJson) if (!is.null(OrganizationExternalDatabaseTableColumnsPairObject$`table`)) { tableObject <- OrganizationExternalDatabaseTable$new() - tableObject$fromJSON(jsonlite::toJSON(OrganizationExternalDatabaseTableColumnsPairObject$table, auto_unbox = TRUE, digits = NA)) + tableObject$fromJSON(jsonlite::toJSON(OrganizationExternalDatabaseTableColumnsPairObject$table, auto_unbox = FALSE, digits = NA)) self$`table` <- tableObject } if (!is.null(OrganizationExternalDatabaseTableColumnsPairObject$`columns`)) { self$`columns` <- ApiClient$new()$deserializeObj(OrganizationExternalDatabaseTableColumnsPairObject$`columns`, "array[OrganizationExternalDatabaseColumn]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -66,14 +71,14 @@ OrganizationExternalDatabaseTableColumnsPair <- R6::R6Class( '"table": %s ', - jsonlite::toJSON(self$`table`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`table`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`columns`)) { sprintf( '"columns": [%s] ', - paste(sapply(self$`columns`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`columns`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -81,9 +86,10 @@ OrganizationExternalDatabaseTableColumnsPair <- R6::R6Class( }, fromJSONString = function(OrganizationExternalDatabaseTableColumnsPairJson) { OrganizationExternalDatabaseTableColumnsPairObject <- jsonlite::fromJSON(OrganizationExternalDatabaseTableColumnsPairJson) - self$`table` <- OrganizationExternalDatabaseTable$new()$fromJSON(jsonlite::toJSON(OrganizationExternalDatabaseTableColumnsPairObject$table, auto_unbox = TRUE, digits = NA)) + self$`table` <- OrganizationExternalDatabaseTable$new()$fromJSON(jsonlite::toJSON(OrganizationExternalDatabaseTableColumnsPairObject$table, auto_unbox = FALSE, digits = NA)) self$`columns` <- ApiClient$new()$deserializeObj(OrganizationExternalDatabaseTableColumnsPairObject$`columns`, "array[OrganizationExternalDatabaseColumn]", loadNamespace("openlattice")) self } ) ) + diff --git a/R/R/organization_member.R b/R/R/organization_member.R index 6ac7494..53bfac6 100644 --- a/R/R/organization_member.R +++ b/R/R/organization_member.R @@ -8,15 +8,17 @@ #' @docType class #' @title OrganizationMember +#' #' @description OrganizationMember Class +#' #' @format An \code{R6Class} generator object +#' #' @field principal \link{SecurablePrincipal} [optional] #' #' @field profile \link{Auth0userBasic} [optional] #' #' @field roles list( \link{SecurablePrincipal} ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -26,7 +28,9 @@ OrganizationMember <- R6::R6Class( `principal` = NULL, `profile` = NULL, `roles` = NULL, - initialize = function(`principal`=NULL, `profile`=NULL, `roles`=NULL, ...){ + initialize = function( + `principal`=NULL, `profile`=NULL, `roles`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`principal`)) { stopifnot(R6::is.R6(`principal`)) @@ -63,17 +67,18 @@ OrganizationMember <- R6::R6Class( OrganizationMemberObject <- jsonlite::fromJSON(OrganizationMemberJson) if (!is.null(OrganizationMemberObject$`principal`)) { principalObject <- SecurablePrincipal$new() - principalObject$fromJSON(jsonlite::toJSON(OrganizationMemberObject$principal, auto_unbox = TRUE, digits = NA)) + principalObject$fromJSON(jsonlite::toJSON(OrganizationMemberObject$principal, auto_unbox = FALSE, digits = NA)) self$`principal` <- principalObject } if (!is.null(OrganizationMemberObject$`profile`)) { profileObject <- Auth0userBasic$new() - profileObject$fromJSON(jsonlite::toJSON(OrganizationMemberObject$profile, auto_unbox = TRUE, digits = NA)) + profileObject$fromJSON(jsonlite::toJSON(OrganizationMemberObject$profile, auto_unbox = FALSE, digits = NA)) self$`profile` <- profileObject } if (!is.null(OrganizationMemberObject$`roles`)) { self$`roles` <- ApiClient$new()$deserializeObj(OrganizationMemberObject$`roles`, "array[SecurablePrincipal]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -82,21 +87,21 @@ OrganizationMember <- R6::R6Class( '"principal": %s ', - jsonlite::toJSON(self$`principal`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`principal`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`profile`)) { sprintf( '"profile": %s ', - jsonlite::toJSON(self$`profile`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`profile`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`roles`)) { sprintf( '"roles": [%s] ', - paste(sapply(self$`roles`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`roles`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -104,10 +109,11 @@ OrganizationMember <- R6::R6Class( }, fromJSONString = function(OrganizationMemberJson) { OrganizationMemberObject <- jsonlite::fromJSON(OrganizationMemberJson) - self$`principal` <- SecurablePrincipal$new()$fromJSON(jsonlite::toJSON(OrganizationMemberObject$principal, auto_unbox = TRUE, digits = NA)) - self$`profile` <- Auth0userBasic$new()$fromJSON(jsonlite::toJSON(OrganizationMemberObject$profile, auto_unbox = TRUE, digits = NA)) + self$`principal` <- SecurablePrincipal$new()$fromJSON(jsonlite::toJSON(OrganizationMemberObject$principal, auto_unbox = FALSE, digits = NA)) + self$`profile` <- Auth0userBasic$new()$fromJSON(jsonlite::toJSON(OrganizationMemberObject$profile, auto_unbox = FALSE, digits = NA)) self$`roles` <- ApiClient$new()$deserializeObj(OrganizationMemberObject$`roles`, "array[SecurablePrincipal]", loadNamespace("openlattice")) self } ) ) + diff --git a/R/R/organizations_api.R b/R/R/organizations_api.R index 474c7a5..a9ca935 100644 --- a/R/R/organizations_api.R +++ b/R/R/organizations_api.R @@ -55,7 +55,6 @@ #' \itemize{ #' \item \emph{ @param } organization_id \link{character} #' \item \emph{ @param } request_body named list( \link{list(integer)} ) -#' \item \emph{ @returnType } named list( \link{array} ) \cr #' #' #' \item status code : 200 | Success @@ -222,7 +221,6 @@ #' #' \itemize{ #' \item \emph{ @param } organization_id \link{character} -#' \item \emph{ @returnType } named list( \link{array} ) \cr #' #' #' \item status code : 200 | Success @@ -670,7 +668,7 @@ #' #' library(openlattice) #' var.organization_id <- 'organization_id_example' # character | -#' var.request_body <- {'key' => array$new()} # list(array[character]) | +#' var.request_body <- NULL # list(array[character]) | #' #' #Get the entity sets for an organization for a certain flag #' api.instance <- OrganizationsApi$new() @@ -1279,7 +1277,7 @@ OrganizationsApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`organization`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`organization`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -1342,7 +1340,7 @@ OrganizationsApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`role`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`role`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -2158,7 +2156,7 @@ OrganizationsApi <- R6::R6Class( ' [%s] ', - paste(sapply(`request_body`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL @@ -2347,7 +2345,7 @@ OrganizationsApi <- R6::R6Class( ' [%s] ', - paste(sapply(`request_body`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL diff --git a/R/R/permissions_api.R b/R/R/permissions_api.R index 356c3e9..160daa8 100644 --- a/R/R/permissions_api.R +++ b/R/R/permissions_api.R @@ -136,7 +136,7 @@ PermissionsApi <- R6::R6Class( ' [%s] ', - paste(sapply(`request_body`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL @@ -199,7 +199,7 @@ PermissionsApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`acl_data`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`acl_data`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL diff --git a/R/R/principal.R b/R/R/principal.R index 4bdfe1f..837782f 100644 --- a/R/R/principal.R +++ b/R/R/principal.R @@ -8,13 +8,15 @@ #' @docType class #' @title Principal +#' #' @description Principal Class +#' #' @format An \code{R6Class} generator object +#' #' @field type character [optional] #' #' @field id character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ Principal <- R6::R6Class( public = list( `type` = NULL, `id` = NULL, - initialize = function(`type`=NULL, `id`=NULL, ...){ + initialize = function( + `type`=NULL, `id`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`type`)) { stopifnot(is.character(`type`), length(`type`) == 1) @@ -55,6 +59,7 @@ Principal <- R6::R6Class( if (!is.null(PrincipalObject$`id`)) { self$`id` <- PrincipalObject$`id` } + self }, toJSONString = function() { jsoncontent <- c( @@ -84,3 +89,4 @@ Principal <- R6::R6Class( } ) ) + diff --git a/R/R/property_definition.R b/R/R/property_definition.R index 4780859..0afe52b 100644 --- a/R/R/property_definition.R +++ b/R/R/property_definition.R @@ -8,13 +8,15 @@ #' @docType class #' @title PropertyDefinition +#' #' @description PropertyDefinition Class +#' #' @format An \code{R6Class} generator object +#' #' @field type \link{FullQualifiedName} [optional] #' #' @field column character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ PropertyDefinition <- R6::R6Class( public = list( `type` = NULL, `column` = NULL, - initialize = function(`type`=NULL, `column`=NULL, ...){ + initialize = function( + `type`=NULL, `column`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`type`)) { stopifnot(R6::is.R6(`type`)) @@ -51,12 +55,13 @@ PropertyDefinition <- R6::R6Class( PropertyDefinitionObject <- jsonlite::fromJSON(PropertyDefinitionJson) if (!is.null(PropertyDefinitionObject$`type`)) { typeObject <- FullQualifiedName$new() - typeObject$fromJSON(jsonlite::toJSON(PropertyDefinitionObject$type, auto_unbox = TRUE, digits = NA)) + typeObject$fromJSON(jsonlite::toJSON(PropertyDefinitionObject$type, auto_unbox = FALSE, digits = NA)) self$`type` <- typeObject } if (!is.null(PropertyDefinitionObject$`column`)) { self$`column` <- PropertyDefinitionObject$`column` } + self }, toJSONString = function() { jsoncontent <- c( @@ -65,7 +70,7 @@ PropertyDefinition <- R6::R6Class( '"type": %s ', - jsonlite::toJSON(self$`type`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`type`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`column`)) { sprintf( @@ -80,9 +85,10 @@ PropertyDefinition <- R6::R6Class( }, fromJSONString = function(PropertyDefinitionJson) { PropertyDefinitionObject <- jsonlite::fromJSON(PropertyDefinitionJson) - self$`type` <- FullQualifiedName$new()$fromJSON(jsonlite::toJSON(PropertyDefinitionObject$type, auto_unbox = TRUE, digits = NA)) + self$`type` <- FullQualifiedName$new()$fromJSON(jsonlite::toJSON(PropertyDefinitionObject$type, auto_unbox = FALSE, digits = NA)) self$`column` <- PropertyDefinitionObject$`column` self } ) ) + diff --git a/R/R/property_type.R b/R/R/property_type.R index 70b7337..dbae0f1 100644 --- a/R/R/property_type.R +++ b/R/R/property_type.R @@ -8,8 +8,11 @@ #' @docType class #' @title PropertyType +#' #' @description PropertyType Class +#' #' @format An \code{R6Class} generator object +#' #' @field title character [optional] #' #' @field id character [optional] @@ -32,7 +35,6 @@ #' #' @field indexType character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -50,7 +52,9 @@ PropertyType <- R6::R6Class( `analyzer` = NULL, `enumValues` = NULL, `indexType` = NULL, - initialize = function(`title`=NULL, `id`=NULL, `type`=NULL, `description`=NULL, `schemas`=NULL, `datatype`=NULL, `pii`=NULL, `multiValued`=NULL, `analyzer`=NULL, `enumValues`=NULL, `indexType`=NULL, ...){ + initialize = function( + `title`=NULL, `id`=NULL, `type`=NULL, `description`=NULL, `schemas`=NULL, `datatype`=NULL, `pii`=NULL, `multiValued`=NULL, `analyzer`=NULL, `enumValues`=NULL, `indexType`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`title`)) { stopifnot(is.character(`title`), length(`title`) == 1) @@ -156,7 +160,7 @@ PropertyType <- R6::R6Class( } if (!is.null(PropertyTypeObject$`type`)) { typeObject <- FullQualifiedName$new() - typeObject$fromJSON(jsonlite::toJSON(PropertyTypeObject$type, auto_unbox = TRUE, digits = NA)) + typeObject$fromJSON(jsonlite::toJSON(PropertyTypeObject$type, auto_unbox = FALSE, digits = NA)) self$`type` <- typeObject } if (!is.null(PropertyTypeObject$`description`)) { @@ -183,6 +187,7 @@ PropertyType <- R6::R6Class( if (!is.null(PropertyTypeObject$`indexType`)) { self$`indexType` <- PropertyTypeObject$`indexType` } + self }, toJSONString = function() { jsoncontent <- c( @@ -205,7 +210,7 @@ PropertyType <- R6::R6Class( '"type": %s ', - jsonlite::toJSON(self$`type`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`type`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`description`)) { sprintf( @@ -219,7 +224,7 @@ PropertyType <- R6::R6Class( '"schemas": [%s] ', - paste(sapply(self$`schemas`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`schemas`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )}, if (!is.null(self$`datatype`)) { sprintf( @@ -271,7 +276,7 @@ PropertyType <- R6::R6Class( PropertyTypeObject <- jsonlite::fromJSON(PropertyTypeJson) self$`title` <- PropertyTypeObject$`title` self$`id` <- PropertyTypeObject$`id` - self$`type` <- FullQualifiedName$new()$fromJSON(jsonlite::toJSON(PropertyTypeObject$type, auto_unbox = TRUE, digits = NA)) + self$`type` <- FullQualifiedName$new()$fromJSON(jsonlite::toJSON(PropertyTypeObject$type, auto_unbox = FALSE, digits = NA)) self$`description` <- PropertyTypeObject$`description` self$`schemas` <- ApiClient$new()$deserializeObj(PropertyTypeObject$`schemas`, "array[FullQualifiedName]", loadNamespace("openlattice")) self$`datatype` <- PropertyTypeObject$`datatype` @@ -284,3 +289,4 @@ PropertyType <- R6::R6Class( } ) ) + diff --git a/R/R/property_usage_summary.R b/R/R/property_usage_summary.R index 8a16c8a..7482adb 100644 --- a/R/R/property_usage_summary.R +++ b/R/R/property_usage_summary.R @@ -8,8 +8,11 @@ #' @docType class #' @title PropertyUsageSummary +#' #' @description PropertyUsageSummary Class +#' #' @format An \code{R6Class} generator object +#' #' @field entityTypeId character [optional] #' #' @field entitySetId character [optional] @@ -18,7 +21,6 @@ #' #' @field count integer [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -29,7 +31,9 @@ PropertyUsageSummary <- R6::R6Class( `entitySetId` = NULL, `entitySetName` = NULL, `count` = NULL, - initialize = function(`entityTypeId`=NULL, `entitySetId`=NULL, `entitySetName`=NULL, `count`=NULL, ...){ + initialize = function( + `entityTypeId`=NULL, `entitySetId`=NULL, `entitySetName`=NULL, `count`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`entityTypeId`)) { stopifnot(is.character(`entityTypeId`), length(`entityTypeId`) == 1) @@ -83,6 +87,7 @@ PropertyUsageSummary <- R6::R6Class( if (!is.null(PropertyUsageSummaryObject$`count`)) { self$`count` <- PropertyUsageSummaryObject$`count` } + self }, toJSONString = function() { jsoncontent <- c( @@ -128,3 +133,4 @@ PropertyUsageSummary <- R6::R6Class( } ) ) + diff --git a/R/R/role.R b/R/R/role.R index 4299eff..7019285 100644 --- a/R/R/role.R +++ b/R/R/role.R @@ -8,8 +8,11 @@ #' @docType class #' @title Role +#' #' @description Role Class +#' #' @format An \code{R6Class} generator object +#' #' @field id character [optional] #' #' @field organizationId character [optional] @@ -20,7 +23,6 @@ #' #' @field description character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -32,7 +34,9 @@ Role <- R6::R6Class( `principal` = NULL, `title` = NULL, `description` = NULL, - initialize = function(`id`=NULL, `organizationId`=NULL, `principal`=NULL, `title`=NULL, `description`=NULL, ...){ + initialize = function( + `id`=NULL, `organizationId`=NULL, `principal`=NULL, `title`=NULL, `description`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`id`)) { stopifnot(is.character(`id`), length(`id`) == 1) @@ -90,7 +94,7 @@ Role <- R6::R6Class( } if (!is.null(RoleObject$`principal`)) { principalObject <- Principal$new() - principalObject$fromJSON(jsonlite::toJSON(RoleObject$principal, auto_unbox = TRUE, digits = NA)) + principalObject$fromJSON(jsonlite::toJSON(RoleObject$principal, auto_unbox = FALSE, digits = NA)) self$`principal` <- principalObject } if (!is.null(RoleObject$`title`)) { @@ -99,6 +103,7 @@ Role <- R6::R6Class( if (!is.null(RoleObject$`description`)) { self$`description` <- RoleObject$`description` } + self }, toJSONString = function() { jsoncontent <- c( @@ -121,7 +126,7 @@ Role <- R6::R6Class( '"principal": %s ', - jsonlite::toJSON(self$`principal`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`principal`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`title`)) { sprintf( @@ -145,10 +150,11 @@ Role <- R6::R6Class( RoleObject <- jsonlite::fromJSON(RoleJson) self$`id` <- RoleObject$`id` self$`organizationId` <- RoleObject$`organizationId` - self$`principal` <- Principal$new()$fromJSON(jsonlite::toJSON(RoleObject$principal, auto_unbox = TRUE, digits = NA)) + self$`principal` <- Principal$new()$fromJSON(jsonlite::toJSON(RoleObject$principal, auto_unbox = FALSE, digits = NA)) self$`title` <- RoleObject$`title` self$`description` <- RoleObject$`description` self } ) ) + diff --git a/R/R/schema.R b/R/R/schema.R index df61ff6..9627589 100644 --- a/R/R/schema.R +++ b/R/R/schema.R @@ -8,15 +8,17 @@ #' @docType class #' @title Schema +#' #' @description Schema Class +#' #' @format An \code{R6Class} generator object +#' #' @field entityTypes list( \link{EntityType} ) [optional] #' #' @field propertyTypes list( \link{PropertyType} ) [optional] #' #' @field fqn \link{FullQualifiedName} [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -26,7 +28,9 @@ Schema <- R6::R6Class( `entityTypes` = NULL, `propertyTypes` = NULL, `fqn` = NULL, - initialize = function(`entityTypes`=NULL, `propertyTypes`=NULL, `fqn`=NULL, ...){ + initialize = function( + `entityTypes`=NULL, `propertyTypes`=NULL, `fqn`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`entityTypes`)) { stopifnot(is.vector(`entityTypes`)) @@ -70,9 +74,10 @@ Schema <- R6::R6Class( } if (!is.null(SchemaObject$`fqn`)) { fqnObject <- FullQualifiedName$new() - fqnObject$fromJSON(jsonlite::toJSON(SchemaObject$fqn, auto_unbox = TRUE, digits = NA)) + fqnObject$fromJSON(jsonlite::toJSON(SchemaObject$fqn, auto_unbox = FALSE, digits = NA)) self$`fqn` <- fqnObject } + self }, toJSONString = function() { jsoncontent <- c( @@ -81,21 +86,21 @@ Schema <- R6::R6Class( '"entityTypes": [%s] ', - paste(sapply(self$`entityTypes`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`entityTypes`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )}, if (!is.null(self$`propertyTypes`)) { sprintf( '"propertyTypes": [%s] ', - paste(sapply(self$`propertyTypes`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`propertyTypes`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )}, if (!is.null(self$`fqn`)) { sprintf( '"fqn": %s ', - jsonlite::toJSON(self$`fqn`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`fqn`$toJSON(), auto_unbox=FALSE, digits = NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -105,8 +110,9 @@ Schema <- R6::R6Class( SchemaObject <- jsonlite::fromJSON(SchemaJson) self$`entityTypes` <- ApiClient$new()$deserializeObj(SchemaObject$`entityTypes`, "array[EntityType]", loadNamespace("openlattice")) self$`propertyTypes` <- ApiClient$new()$deserializeObj(SchemaObject$`propertyTypes`, "array[PropertyType]", loadNamespace("openlattice")) - self$`fqn` <- FullQualifiedName$new()$fromJSON(jsonlite::toJSON(SchemaObject$fqn, auto_unbox = TRUE, digits = NA)) + self$`fqn` <- FullQualifiedName$new()$fromJSON(jsonlite::toJSON(SchemaObject$fqn, auto_unbox = FALSE, digits = NA)) self } ) ) + diff --git a/R/R/search.R b/R/R/search.R index 16ecf64..fa0c828 100644 --- a/R/R/search.R +++ b/R/R/search.R @@ -8,8 +8,11 @@ #' @docType class #' @title Search +#' #' @description Search Class +#' #' @format An \code{R6Class} generator object +#' #' @field keyword character [optional] #' #' @field entityTypeId character [optional] @@ -20,7 +23,6 @@ #' #' @field maxHits integer [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -32,7 +34,9 @@ Search <- R6::R6Class( `propertyTypeIds` = NULL, `start` = NULL, `maxHits` = NULL, - initialize = function(`keyword`=NULL, `entityTypeId`=NULL, `propertyTypeIds`=NULL, `start`=NULL, `maxHits`=NULL, ...){ + initialize = function( + `keyword`=NULL, `entityTypeId`=NULL, `propertyTypeIds`=NULL, `start`=NULL, `maxHits`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`keyword`)) { stopifnot(is.character(`keyword`), length(`keyword`) == 1) @@ -98,6 +102,7 @@ Search <- R6::R6Class( if (!is.null(SearchObject$`maxHits`)) { self$`maxHits` <- SearchObject$`maxHits` } + self }, toJSONString = function() { jsoncontent <- c( @@ -151,3 +156,4 @@ Search <- R6::R6Class( } ) ) + diff --git a/R/R/search_api.R b/R/R/search_api.R index 78fe4ce..756c4ac 100644 --- a/R/R/search_api.R +++ b/R/R/search_api.R @@ -107,7 +107,6 @@ #' \itemize{ #' \item \emph{ @param } entity_set_id \link{character} #' \item \emph{ @param } request_body list( character ) -#' \item \emph{ @returnType } named list( \link{array} ) \cr #' #' #' \item status code : 200 | A list of objects containing information about the neighbor and association. @@ -228,7 +227,6 @@ #' \itemize{ #' \item \emph{ @param } entity_set_id \link{character} #' \item \emph{ @param } neighbor_search_filter \link{NeighborSearchFilter} -#' \item \emph{ @returnType } named list( \link{array} ) \cr #' #' #' \item status code : 200 | A list of objects containing information about the neighbor and association. @@ -781,7 +779,7 @@ SearchApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`advanced_search`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`advanced_search`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -848,7 +846,7 @@ SearchApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -911,7 +909,7 @@ SearchApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -974,7 +972,7 @@ SearchApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -1105,7 +1103,7 @@ SearchApi <- R6::R6Class( ' [%s] ', - paste(sapply(`request_body`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") ) } else { body <- NULL @@ -1172,7 +1170,7 @@ SearchApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -1239,7 +1237,7 @@ SearchApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -1306,7 +1304,7 @@ SearchApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`search`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`search`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -1369,7 +1367,7 @@ SearchApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -1432,7 +1430,7 @@ SearchApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -1499,7 +1497,7 @@ SearchApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`neighbor_search_filter`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`neighbor_search_filter`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -1570,7 +1568,7 @@ SearchApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`neighbor_search_filter`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`neighbor_search_filter`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -1637,7 +1635,7 @@ SearchApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -1700,7 +1698,7 @@ SearchApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -1763,7 +1761,7 @@ SearchApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`search_term`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -1938,7 +1936,7 @@ SearchApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`search_constraints`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`search_constraints`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL diff --git a/R/R/search_constraints.R b/R/R/search_constraints.R index fe3da96..02f1045 100644 --- a/R/R/search_constraints.R +++ b/R/R/search_constraints.R @@ -8,8 +8,11 @@ #' @docType class #' @title SearchConstraints +#' #' @description SearchConstraints Class +#' #' @format An \code{R6Class} generator object +#' #' @field entitySetIds list( character ) [optional] #' #' @field start integer [optional] @@ -20,7 +23,6 @@ #' #' @field sort \link{SortDefinition} [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -32,7 +34,9 @@ SearchConstraints <- R6::R6Class( `maxHits` = NULL, `constraints` = NULL, `sort` = NULL, - initialize = function(`entitySetIds`=NULL, `start`=NULL, `maxHits`=NULL, `constraints`=NULL, `sort`=NULL, ...){ + initialize = function( + `entitySetIds`=NULL, `start`=NULL, `maxHits`=NULL, `constraints`=NULL, `sort`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`entitySetIds`)) { stopifnot(is.vector(`entitySetIds`)) @@ -98,9 +102,10 @@ SearchConstraints <- R6::R6Class( } if (!is.null(SearchConstraintsObject$`sort`)) { sortObject <- SortDefinition$new() - sortObject$fromJSON(jsonlite::toJSON(SearchConstraintsObject$sort, auto_unbox = TRUE, digits = NA)) + sortObject$fromJSON(jsonlite::toJSON(SearchConstraintsObject$sort, auto_unbox = FALSE, digits = NA)) self$`sort` <- sortObject } + self }, toJSONString = function() { jsoncontent <- c( @@ -130,14 +135,14 @@ SearchConstraints <- R6::R6Class( '"constraints": [%s] ', - paste(sapply(self$`constraints`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`constraints`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )}, if (!is.null(self$`sort`)) { sprintf( '"sort": %s ', - jsonlite::toJSON(self$`sort`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`sort`$toJSON(), auto_unbox=FALSE, digits = NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -149,8 +154,9 @@ SearchConstraints <- R6::R6Class( self$`start` <- SearchConstraintsObject$`start` self$`maxHits` <- SearchConstraintsObject$`maxHits` self$`constraints` <- ApiClient$new()$deserializeObj(SearchConstraintsObject$`constraints`, "array[ConstraintGroup]", loadNamespace("openlattice")) - self$`sort` <- SortDefinition$new()$fromJSON(jsonlite::toJSON(SearchConstraintsObject$sort, auto_unbox = TRUE, digits = NA)) + self$`sort` <- SortDefinition$new()$fromJSON(jsonlite::toJSON(SearchConstraintsObject$sort, auto_unbox = FALSE, digits = NA)) self } ) ) + diff --git a/R/R/search_details.R b/R/R/search_details.R index fa2e3ef..87bf0ed 100644 --- a/R/R/search_details.R +++ b/R/R/search_details.R @@ -8,15 +8,17 @@ #' @docType class #' @title SearchDetails +#' #' @description SearchDetails Class +#' #' @format An \code{R6Class} generator object +#' #' @field searchTerm character [optional] #' #' @field property character [optional] #' #' @field exact character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -26,7 +28,9 @@ SearchDetails <- R6::R6Class( `searchTerm` = NULL, `property` = NULL, `exact` = NULL, - initialize = function(`searchTerm`=NULL, `property`=NULL, `exact`=NULL, ...){ + initialize = function( + `searchTerm`=NULL, `property`=NULL, `exact`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`searchTerm`)) { stopifnot(is.character(`searchTerm`), length(`searchTerm`) == 1) @@ -68,6 +72,7 @@ SearchDetails <- R6::R6Class( if (!is.null(SearchDetailsObject$`exact`)) { self$`exact` <- SearchDetailsObject$`exact` } + self }, toJSONString = function() { jsoncontent <- c( @@ -105,3 +110,4 @@ SearchDetails <- R6::R6Class( } ) ) + diff --git a/R/R/search_result.R b/R/R/search_result.R index bc0f5d5..5e02ab8 100644 --- a/R/R/search_result.R +++ b/R/R/search_result.R @@ -8,13 +8,15 @@ #' @docType class #' @title SearchResult +#' #' @description SearchResult Class +#' #' @format An \code{R6Class} generator object +#' #' @field numHits integer [optional] #' #' @field hits list( \link{SearchResultHits} ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ SearchResult <- R6::R6Class( public = list( `numHits` = NULL, `hits` = NULL, - initialize = function(`numHits`=NULL, `hits`=NULL, ...){ + initialize = function( + `numHits`=NULL, `hits`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`numHits`)) { stopifnot(is.numeric(`numHits`), length(`numHits`) == 1) @@ -56,6 +60,7 @@ SearchResult <- R6::R6Class( if (!is.null(SearchResultObject$`hits`)) { self$`hits` <- ApiClient$new()$deserializeObj(SearchResultObject$`hits`, "array[SearchResultHits]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -71,7 +76,7 @@ SearchResult <- R6::R6Class( '"hits": [%s] ', - paste(sapply(self$`hits`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`hits`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -85,3 +90,4 @@ SearchResult <- R6::R6Class( } ) ) + diff --git a/R/R/search_result_hits.R b/R/R/search_result_hits.R index dd16864..5bf3dd0 100644 --- a/R/R/search_result_hits.R +++ b/R/R/search_result_hits.R @@ -8,13 +8,15 @@ #' @docType class #' @title SearchResultHits +#' #' @description SearchResultHits Class +#' #' @format An \code{R6Class} generator object +#' #' @field propertyTypes list( \link{PropertyType} ) [optional] #' #' @field entitySet \link{EntitySet} [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -23,7 +25,9 @@ SearchResultHits <- R6::R6Class( public = list( `propertyTypes` = NULL, `entitySet` = NULL, - initialize = function(`propertyTypes`=NULL, `entitySet`=NULL, ...){ + initialize = function( + `propertyTypes`=NULL, `entitySet`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`propertyTypes`)) { stopifnot(is.vector(`propertyTypes`)) @@ -55,9 +59,10 @@ SearchResultHits <- R6::R6Class( } if (!is.null(SearchResultHitsObject$`entitySet`)) { entitySetObject <- EntitySet$new() - entitySetObject$fromJSON(jsonlite::toJSON(SearchResultHitsObject$entitySet, auto_unbox = TRUE, digits = NA)) + entitySetObject$fromJSON(jsonlite::toJSON(SearchResultHitsObject$entitySet, auto_unbox = FALSE, digits = NA)) self$`entitySet` <- entitySetObject } + self }, toJSONString = function() { jsoncontent <- c( @@ -66,14 +71,14 @@ SearchResultHits <- R6::R6Class( '"propertyTypes": [%s] ', - paste(sapply(self$`propertyTypes`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",") + paste(sapply(self$`propertyTypes`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)), collapse=",") )}, if (!is.null(self$`entitySet`)) { sprintf( '"entitySet": %s ', - jsonlite::toJSON(self$`entitySet`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`entitySet`$toJSON(), auto_unbox=FALSE, digits = NA) )} ) jsoncontent <- paste(jsoncontent, collapse = ",") @@ -82,8 +87,9 @@ SearchResultHits <- R6::R6Class( fromJSONString = function(SearchResultHitsJson) { SearchResultHitsObject <- jsonlite::fromJSON(SearchResultHitsJson) self$`propertyTypes` <- ApiClient$new()$deserializeObj(SearchResultHitsObject$`propertyTypes`, "array[PropertyType]", loadNamespace("openlattice")) - self$`entitySet` <- EntitySet$new()$fromJSON(jsonlite::toJSON(SearchResultHitsObject$entitySet, auto_unbox = TRUE, digits = NA)) + self$`entitySet` <- EntitySet$new()$fromJSON(jsonlite::toJSON(SearchResultHitsObject$entitySet, auto_unbox = FALSE, digits = NA)) self } ) ) + diff --git a/R/R/search_term.R b/R/R/search_term.R index d78f8bb..cede2bb 100644 --- a/R/R/search_term.R +++ b/R/R/search_term.R @@ -8,8 +8,11 @@ #' @docType class #' @title SearchTerm +#' #' @description SearchTerm Class +#' #' @format An \code{R6Class} generator object +#' #' @field searchTerm character [optional] #' #' @field start integer [optional] @@ -18,7 +21,6 @@ #' #' @field fuzzy character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -29,7 +31,9 @@ SearchTerm <- R6::R6Class( `start` = NULL, `maxHits` = NULL, `fuzzy` = NULL, - initialize = function(`searchTerm`=NULL, `start`=NULL, `maxHits`=NULL, `fuzzy`=NULL, ...){ + initialize = function( + `searchTerm`=NULL, `start`=NULL, `maxHits`=NULL, `fuzzy`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`searchTerm`)) { stopifnot(is.character(`searchTerm`), length(`searchTerm`) == 1) @@ -82,6 +86,7 @@ SearchTerm <- R6::R6Class( if (!is.null(SearchTermObject$`fuzzy`)) { self$`fuzzy` <- SearchTermObject$`fuzzy` } + self }, toJSONString = function() { jsoncontent <- c( @@ -127,3 +132,4 @@ SearchTerm <- R6::R6Class( } ) ) + diff --git a/R/R/securable_principal.R b/R/R/securable_principal.R index 3b3701c..3777cef 100644 --- a/R/R/securable_principal.R +++ b/R/R/securable_principal.R @@ -8,8 +8,11 @@ #' @docType class #' @title SecurablePrincipal +#' #' @description SecurablePrincipal Class +#' #' @format An \code{R6Class} generator object +#' #' @field id character [optional] #' #' @field principal \link{Principal} [optional] @@ -18,7 +21,6 @@ #' #' @field description character [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -29,7 +31,9 @@ SecurablePrincipal <- R6::R6Class( `principal` = NULL, `title` = NULL, `description` = NULL, - initialize = function(`id`=NULL, `principal`=NULL, `title`=NULL, `description`=NULL, ...){ + initialize = function( + `id`=NULL, `principal`=NULL, `title`=NULL, `description`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`id`)) { stopifnot(is.character(`id`), length(`id`) == 1) @@ -76,7 +80,7 @@ SecurablePrincipal <- R6::R6Class( } if (!is.null(SecurablePrincipalObject$`principal`)) { principalObject <- Principal$new() - principalObject$fromJSON(jsonlite::toJSON(SecurablePrincipalObject$principal, auto_unbox = TRUE, digits = NA)) + principalObject$fromJSON(jsonlite::toJSON(SecurablePrincipalObject$principal, auto_unbox = FALSE, digits = NA)) self$`principal` <- principalObject } if (!is.null(SecurablePrincipalObject$`title`)) { @@ -85,6 +89,7 @@ SecurablePrincipal <- R6::R6Class( if (!is.null(SecurablePrincipalObject$`description`)) { self$`description` <- SecurablePrincipalObject$`description` } + self }, toJSONString = function() { jsoncontent <- c( @@ -100,7 +105,7 @@ SecurablePrincipal <- R6::R6Class( '"principal": %s ', - jsonlite::toJSON(self$`principal`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(self$`principal`$toJSON(), auto_unbox=FALSE, digits = NA) )}, if (!is.null(self$`title`)) { sprintf( @@ -123,10 +128,11 @@ SecurablePrincipal <- R6::R6Class( fromJSONString = function(SecurablePrincipalJson) { SecurablePrincipalObject <- jsonlite::fromJSON(SecurablePrincipalJson) self$`id` <- SecurablePrincipalObject$`id` - self$`principal` <- Principal$new()$fromJSON(jsonlite::toJSON(SecurablePrincipalObject$principal, auto_unbox = TRUE, digits = NA)) + self$`principal` <- Principal$new()$fromJSON(jsonlite::toJSON(SecurablePrincipalObject$principal, auto_unbox = FALSE, digits = NA)) self$`title` <- SecurablePrincipalObject$`title` self$`description` <- SecurablePrincipalObject$`description` self } ) ) + diff --git a/R/R/shuttle_api.R b/R/R/shuttle_api.R index f46255c..07181e7 100644 --- a/R/R/shuttle_api.R +++ b/R/R/shuttle_api.R @@ -361,7 +361,7 @@ ShuttleApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`integration`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`integration`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL @@ -756,7 +756,7 @@ ShuttleApi <- R6::R6Class( ' %s ', - jsonlite::toJSON(`integration_update`$toJSON(), auto_unbox=TRUE, digits = NA) + jsonlite::toJSON(`integration_update`$toJSON(), auto_unbox=FALSE, digits = NA) ) } else { body <- NULL diff --git a/R/R/sms_entity_set_information.R b/R/R/sms_entity_set_information.R index 0a78d22..abf34f0 100644 --- a/R/R/sms_entity_set_information.R +++ b/R/R/sms_entity_set_information.R @@ -8,8 +8,11 @@ #' @docType class #' @title SmsEntitySetInformation +#' #' @description SmsEntitySetInformation Class +#' #' @format An \code{R6Class} generator object +#' #' @field phoneNumber character [optional] #' #' @field organizationId character [optional] @@ -18,7 +21,6 @@ #' #' @field tags list( character ) [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -29,7 +31,9 @@ SmsEntitySetInformation <- R6::R6Class( `organizationId` = NULL, `entitysetIds` = NULL, `tags` = NULL, - initialize = function(`phoneNumber`=NULL, `organizationId`=NULL, `entitysetIds`=NULL, `tags`=NULL, ...){ + initialize = function( + `phoneNumber`=NULL, `organizationId`=NULL, `entitysetIds`=NULL, `tags`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`phoneNumber`)) { stopifnot(is.character(`phoneNumber`), length(`phoneNumber`) == 1) @@ -85,6 +89,7 @@ SmsEntitySetInformation <- R6::R6Class( if (!is.null(SmsEntitySetInformationObject$`tags`)) { self$`tags` <- ApiClient$new()$deserializeObj(SmsEntitySetInformationObject$`tags`, "array[character]", loadNamespace("openlattice")) } + self }, toJSONString = function() { jsoncontent <- c( @@ -130,3 +135,4 @@ SmsEntitySetInformation <- R6::R6Class( } ) ) + diff --git a/R/R/sort_definition.R b/R/R/sort_definition.R index acab572..dceebb8 100644 --- a/R/R/sort_definition.R +++ b/R/R/sort_definition.R @@ -8,8 +8,11 @@ #' @docType class #' @title SortDefinition +#' #' @description SortDefinition Class +#' #' @format An \code{R6Class} generator object +#' #' @field type character [optional] #' #' @field descending character [optional] @@ -20,7 +23,6 @@ #' #' @field longitude numeric [optional] #' -#' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export @@ -32,7 +34,9 @@ SortDefinition <- R6::R6Class( `propertyTypeId` = NULL, `latitude` = NULL, `longitude` = NULL, - initialize = function(`type`=NULL, `descending`=NULL, `propertyTypeId`=NULL, `latitude`=NULL, `longitude`=NULL, ...){ + initialize = function( + `type`=NULL, `descending`=NULL, `propertyTypeId`=NULL, `latitude`=NULL, `longitude`=NULL, ... + ) { local.optional.var <- list(...) if (!is.null(`type`)) { stopifnot(is.character(`type`), length(`type`) == 1) @@ -94,6 +98,7 @@ SortDefinition <- R6::R6Class( if (!is.null(SortDefinitionObject$`longitude`)) { self$`longitude` <- SortDefinitionObject$`longitude` } + self }, toJSONString = function() { jsoncontent <- c( @@ -147,3 +152,4 @@ SortDefinition <- R6::R6Class( } ) ) + diff --git a/R/README.md b/R/README.md index 48017f2..73f216a 100644 --- a/R/README.md +++ b/R/README.md @@ -109,21 +109,27 @@ Class | Method | HTTP request | Description *DatasetApi* | [**update_external_database_column**](docs/DatasetApi.md#update_external_database_column) | **PATCH** /datastore/organization-database/{organizationId}/{tableName}/{columnName}/external-database-column | Updates an OrganizationExternalDatabaseTableColumn object's fields that are included within the given metadata. *DatasetApi* | [**update_external_database_table**](docs/DatasetApi.md#update_external_database_table) | **PATCH** /datastore/organization-database/{organizationId}/{tableName}/external-database-table | Updates an OrganizationExternalDatabaseTable object's fields that are included within the given metadata. *EdmApi* | [**add_dst_entity_type_to_association_type**](docs/EdmApi.md#add_dst_entity_type_to_association_type) | **PUT** /datastore/edm/association/type/{associationTypeId}/dst/{entityTypeId} | Update the AssociationType dst entity types for the given AssociationType UUID by adding the given EntityType UUID. +*EdmApi* | [**add_entity_sets_to_linking_entity_set**](docs/EdmApi.md#add_entity_sets_to_linking_entity_set) | **POST** /datastore/entity-sets/linking/{linkingEntitySetId} | Adds the entity sets as linked entity sets to the linking entity set +*EdmApi* | [**add_entity_sets_to_linking_entity_sets**](docs/EdmApi.md#add_entity_sets_to_linking_entity_sets) | **PUT** /datastore/entity-sets/linking/ | Adds the entity sets as linked entity sets to the linking entity sets *EdmApi* | [**add_primary_key_to_entity_type**](docs/EdmApi.md#add_primary_key_to_entity_type) | **PUT** /datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId} | Adds a primary key with a given ID to an entity type with a given ID. *EdmApi* | [**add_property_type_to_entity_type**](docs/EdmApi.md#add_property_type_to_entity_type) | **PUT** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. *EdmApi* | [**add_src_entity_type_to_association_type**](docs/EdmApi.md#add_src_entity_type_to_association_type) | **PUT** /datastore/edm/association/type/{associationTypeId}/src/{entityTypeId} | Update the AssociationType src entity types for the given AssociationType UUID by adding the given EntityType UUID. *EdmApi* | [**create_association_type**](docs/EdmApi.md#create_association_type) | **POST** /datastore/edm/association/type/ | Creates a new AssociationType definition, if it doesn't exist. *EdmApi* | [**create_empty_schema**](docs/EdmApi.md#create_empty_schema) | **PUT** /datastore/edm/schema/{namespace}/{name} | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. +*EdmApi* | [**create_entity_sets**](docs/EdmApi.md#create_entity_sets) | **POST** /datastore/entity-sets | Creates new EntitySet definitions if they don't exist. *EdmApi* | [**create_entity_type**](docs/EdmApi.md#create_entity_type) | **POST** /datastore/edm/entity/type/ | Creates a new EntityType definition, if it doesn't exist. *EdmApi* | [**create_property_type**](docs/EdmApi.md#create_property_type) | **POST** /datastore/edm/property/type/ | Creates a new PropertyType definition, if it doesn\"t exist. *EdmApi* | [**create_schema_if_not_exists**](docs/EdmApi.md#create_schema_if_not_exists) | **POST** /datastore/edm/schema | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. *EdmApi* | [**delete_association_type**](docs/EdmApi.md#delete_association_type) | **DELETE** /datastore/edm/association/type/{associationTypeId} | Deletes the AssociationType definition for the given AssociationType UUID. +*EdmApi* | [**delete_entity_set**](docs/EdmApi.md#delete_entity_set) | **DELETE** /datastore/entity-sets/all/{entitySetId} | Deletes the EntitySet definition for the given EntitySet UUID. *EdmApi* | [**delete_entity_type**](docs/EdmApi.md#delete_entity_type) | **DELETE** /datastore/edm/entity/type/{entityTypeId} | Deletes the EntityType definition for the given EntityType UUID. *EdmApi* | [**delete_property_type**](docs/EdmApi.md#delete_property_type) | **DELETE** /datastore/edm/property/type/{propertyTypeId} | Deletes the PropertyType definition for the given PropertyType UUID. *EdmApi* | [**force_delete_property_type**](docs/EdmApi.md#force_delete_property_type) | **DELETE** /datastore/edm/property/type/{propertyTypeId}/force | Deletes the PropertyType definition for the given PropertyType UUID regardless of whether or not there is data associated with it. *EdmApi* | [**force_remove_property_type_from_entity_type**](docs/EdmApi.md#force_remove_property_type_from_entity_type) | **DELETE** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId}/force | Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID, regardless of whether or not there is data associated with the entity type. *EdmApi* | [**get_all_association_entity_types**](docs/EdmApi.md#get_all_association_entity_types) | **GET** /datastore/edm/association/type/ | Gets all association EntityType definitions. *EdmApi* | [**get_all_available_association_types**](docs/EdmApi.md#get_all_available_association_types) | **GET** /datastore/edm/association/type/{associationTypeId}/available | Get all available associations for the given AssociationType UUID. +*EdmApi* | [**get_all_entity_set_property_metadata**](docs/EdmApi.md#get_all_entity_set_property_metadata) | **GET** /datastore/entity-sets/all/{entitySetId}/metadata | Get all entity set property metadata. +*EdmApi* | [**get_all_entity_sets**](docs/EdmApi.md#get_all_entity_sets) | **GET** /datastore/entity-sets | Get all EntitySet definitions. *EdmApi* | [**get_all_entity_type_property_metadata**](docs/EdmApi.md#get_all_entity_type_property_metadata) | **GET** /datastore/edm/entity/type/{entityTypeId}/property/type | Get all EntityType propertyType metadata *EdmApi* | [**get_all_entity_types**](docs/EdmApi.md#get_all_entity_types) | **GET** /datastore/edm/entity/type/ | Gets all EntityType definitions. *EdmApi* | [**get_all_property_types**](docs/EdmApi.md#get_all_property_types) | **GET** /datastore/edm/property/type/ | Gets all PropertyType definitions. @@ -133,22 +139,32 @@ Class | Method | HTTP request | Description *EdmApi* | [**get_association_type_details**](docs/EdmApi.md#get_association_type_details) | **GET** /datastore/edm/association/type/{associationTypeId}/detailed | Get details about the AssociationType for the given AssociationType UUID. *EdmApi* | [**get_entity_data_model**](docs/EdmApi.md#get_entity_data_model) | **GET** /datastore/edm/ | Gets the entity data model, including namespaces, schemas, entity types, association types, and property types. *EdmApi* | [**get_entity_data_model_diff**](docs/EdmApi.md#get_entity_data_model_diff) | **POST** /datastore/edm/diff/ | Gets the changes between the existing entity data model and the entity data model passed in, including schemas, association types, entity types, and property types. +*EdmApi* | [**get_entity_set**](docs/EdmApi.md#get_entity_set) | **GET** /datastore/entity-sets/all/{entitySetId} | Get the EntitySet definition for the given EntitySet UUID. +*EdmApi* | [**get_entity_set_id**](docs/EdmApi.md#get_entity_set_id) | **GET** /datastore/entity-sets/ids/{entitySetName} | Gets the EntitySet UUID for the given EntitySet name. +*EdmApi* | [**get_entity_set_ids**](docs/EdmApi.md#get_entity_set_ids) | **POST** /datastore/entity-sets/ids/ | Get IDs for entity sets given their names. +*EdmApi* | [**get_entity_set_property_metadata**](docs/EdmApi.md#get_entity_set_property_metadata) | **GET** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Get specified property type metadata for an entity set. *EdmApi* | [**get_entity_type**](docs/EdmApi.md#get_entity_type) | **GET** /datastore/edm/entity/type/{entityTypeId} | Gets the EntityType definition for the given EntityType UUID. *EdmApi* | [**get_entity_type_hierarchy**](docs/EdmApi.md#get_entity_type_hierarchy) | **PATCH** /datastore/edm/entity/type/{entityTypeId}/hierarchy | Get the EntityType hierarchy for the given EntityType UUID. *EdmApi* | [**get_entity_type_id**](docs/EdmApi.md#get_entity_type_id) | **GET** /datastore/edm/ids/entity/type/{namespace}/{name} | Gets the EntityType UUID for the given EntityType FQN. *EdmApi* | [**get_entity_type_property_metadata**](docs/EdmApi.md#get_entity_type_property_metadata) | **GET** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Get EntityType propertyType metadata +*EdmApi* | [**get_property_metadata_for_entity_sets**](docs/EdmApi.md#get_property_metadata_for_entity_sets) | **POST** /datastore/entity-sets/all/metadata | Get property metadata for entity sets. *EdmApi* | [**get_property_type**](docs/EdmApi.md#get_property_type) | **GET** /datastore/edm/property/type/{propertyTypeId} | Gets the PropertyType definition for the given PropertyType UUID. *EdmApi* | [**get_property_type_id**](docs/EdmApi.md#get_property_type_id) | **GET** /datastore/edm/ids/property/type/{namespace}/{name} | Gets the PropertyType UUID for the given PropertyType FQN. +*EdmApi* | [**get_property_types_for_entity_set**](docs/EdmApi.md#get_property_types_for_entity_set) | **GET** /datastore/entity-sets/all/{entitySetId}/properties | Get all Property Types for entity set *EdmApi* | [**get_property_usage_summary**](docs/EdmApi.md#get_property_usage_summary) | **GET** /datastore/edm/summary/{propertyTypeId} | Get Property Usage Summary for property with given ID. *EdmApi* | [**get_schema_contents**](docs/EdmApi.md#get_schema_contents) | **GET** /datastore/edm/schema/{namespace}/{name} | Gets the schema contents for a corresponding namespace and name. *EdmApi* | [**get_schemas**](docs/EdmApi.md#get_schemas) | **GET** /datastore/edm/schema | Gets all schemas. *EdmApi* | [**get_schemas_in_namespace**](docs/EdmApi.md#get_schemas_in_namespace) | **GET** /datastore/edm/schema/{namespace} | Gets all schemas associated with a given namespace and accessible by the caller. *EdmApi* | [**remove_dst_entity_type_from_association_type**](docs/EdmApi.md#remove_dst_entity_type_from_association_type) | **DELETE** /datastore/edm/association/type/{associationTypeId}/dst/{entityTypeId} | Updates the AssociationType dst entity types for the given AssociationType UUID by removing the given EntityType UUID. +*EdmApi* | [**remove_entity_sets_from_linking_entity_set**](docs/EdmApi.md#remove_entity_sets_from_linking_entity_set) | **DELETE** /datastore/entity-sets/linking/{linkingEntitySetId} | Removes/unlinks the linked entity sets from the linking entity set +*EdmApi* | [**remove_entity_sets_from_linking_entity_sets**](docs/EdmApi.md#remove_entity_sets_from_linking_entity_sets) | **DELETE** /datastore/entity-sets/linking/ | Removes/unlinks the linked entity sets from the linking entity set *EdmApi* | [**remove_primary_key_from_entity_type**](docs/EdmApi.md#remove_primary_key_from_entity_type) | **DELETE** /datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId} | Removes a primary key with a given ID from an entity type with a given ID. *EdmApi* | [**remove_property_type_from_entity_type**](docs/EdmApi.md#remove_property_type_from_entity_type) | **DELETE** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. *EdmApi* | [**remove_src_entity_type_from_association_type**](docs/EdmApi.md#remove_src_entity_type_from_association_type) | **DELETE** /datastore/edm/association/type/{associationTypeId}/src/{entityTypeId} | Updates the AssociationType src entity types for the given AssociationType UUID by removing the given EntityType UUID. *EdmApi* | [**reorder_property_types_in_entity_type**](docs/EdmApi.md#reorder_property_types_in_entity_type) | **PATCH** /datastore/edm/entity/type/{entityTypeId}/property/type | Updates the EntityType definition for the given EntityType UUID by reordering its properties as specified by the provided list. *EdmApi* | [**update_entity_data_model**](docs/EdmApi.md#update_entity_data_model) | **PATCH** /datastore/edm/ | Updates the entity data model, including schemas, entity types, association types, and property types. +*EdmApi* | [**update_entity_set_meta_data**](docs/EdmApi.md#update_entity_set_meta_data) | **PATCH** /datastore/entity-sets/all/{entitySetId}/metadata/ | Updates the EntitySet definition for the given EntitySet UUID with the given metadata. +*EdmApi* | [**update_entity_set_property_metadata**](docs/EdmApi.md#update_entity_set_property_metadata) | **POST** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Updates the property type metadata for the given entity set. *EdmApi* | [**update_entity_type_meta_data**](docs/EdmApi.md#update_entity_type_meta_data) | **PATCH** /datastore/edm/entity/type/{entityTypeId} | Updates the EntityType definition for the given EntityType UUID with the given metadata. *EdmApi* | [**update_entity_type_property_metadata**](docs/EdmApi.md#update_entity_type_property_metadata) | **POST** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Update EntityType Property metadata *EdmApi* | [**update_property_type_meta_data**](docs/EdmApi.md#update_property_type_meta_data) | **PATCH** /datastore/edm/property/type/{propertyTypeId} | Updates the PropertyType definition for the given PropertyType UUID with the given metadata. diff --git a/R/docs/AuthorizedObjectsSearchResult.md b/R/docs/AuthorizedObjectsSearchResult.md index 150e321..4a64b16 100644 --- a/R/docs/AuthorizedObjectsSearchResult.md +++ b/R/docs/AuthorizedObjectsSearchResult.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **pagingToken** | **character** | | [optional] -**authorizedObjects** | [**array[array[character]]**](array.md) | | [optional] +**authorizedObjects** | **array[array[character]]** | | [optional] diff --git a/R/docs/Constraint.md b/R/docs/Constraint.md index 7d7d6c8..522f2a5 100644 --- a/R/docs/Constraint.md +++ b/R/docs/Constraint.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **longitude** | **numeric** | | [optional] **radius** | **numeric** | | [optional] **unit** | **character** | | [optional] -**zones** | [**array[array[array[numeric]]]**](array.md) | | [optional] +**zones** | **array[array[array[numeric]]]** | | [optional] **start** | **character** | | [optional] **end** | **character** | | [optional] diff --git a/R/docs/DataApi.md b/R/docs/DataApi.md index 9e7807a..e0154e5 100644 --- a/R/docs/DataApi.md +++ b/R/docs/DataApi.md @@ -54,7 +54,7 @@ Name | Type | Description | Notes ### Return type -[**list(array[character])**](array.md) +**list(array[character])** ### Authorization @@ -144,7 +144,7 @@ dput(result) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **set_id** | [**character**](.md)| | - **request_body** | list( [**list(array[character])**](list.md) )| | + **request_body** | list( **list(array[character])** )| | ### Return type @@ -489,7 +489,7 @@ Name | Type | Description | Notes ### Return type -[**list(array[character])**](array.md) +**list(array[character])** ### Authorization diff --git a/R/docs/DataAssociation.md b/R/docs/DataAssociation.md index 8e7e2f2..37c6979 100644 --- a/R/docs/DataAssociation.md +++ b/R/docs/DataAssociation.md @@ -9,6 +9,6 @@ Name | Type | Description | Notes **dstEntitySetId** | **character** | the ID of the dst entity set | [optional] **dstEntityIndex** | **character** | The index of an entity | [optional] **dstEntityKeyId** | **character** | An existing entityKeyId | [optional] -**data** | [**list(array[character])**](array.md) | data | [optional] +**data** | **list(array[character])** | data | [optional] diff --git a/R/docs/DataGraph.md b/R/docs/DataGraph.md index 085d48e..372cc33 100644 --- a/R/docs/DataGraph.md +++ b/R/docs/DataGraph.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**entities** | [**list(array[list(array[character])])**](array.md) | | [optional] -**associations** | [**list(array[DataAssociation])**](array.md) | | [optional] +**entities** | **list(array[list(array[character])])** | | [optional] +**associations** | **list(array[DataAssociation])** | | [optional] diff --git a/R/docs/DataGraphIds.md b/R/docs/DataGraphIds.md index d343f33..0fe2437 100644 --- a/R/docs/DataGraphIds.md +++ b/R/docs/DataGraphIds.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**entityKeyIds** | [**list(array[character])**](array.md) | | [optional] -**entitySetIds** | [**list(array[character])**](array.md) | | [optional] +**entityKeyIds** | **list(array[character])** | | [optional] +**entitySetIds** | **list(array[character])** | | [optional] diff --git a/R/docs/EdmApi.md b/R/docs/EdmApi.md index 7a1b12c..321aa98 100644 --- a/R/docs/EdmApi.md +++ b/R/docs/EdmApi.md @@ -5,21 +5,27 @@ All URIs are relative to *https://api.openlattice.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**add_dst_entity_type_to_association_type**](EdmApi.md#add_dst_entity_type_to_association_type) | **PUT** /datastore/edm/association/type/{associationTypeId}/dst/{entityTypeId} | Update the AssociationType dst entity types for the given AssociationType UUID by adding the given EntityType UUID. +[**add_entity_sets_to_linking_entity_set**](EdmApi.md#add_entity_sets_to_linking_entity_set) | **POST** /datastore/entity-sets/linking/{linkingEntitySetId} | Adds the entity sets as linked entity sets to the linking entity set +[**add_entity_sets_to_linking_entity_sets**](EdmApi.md#add_entity_sets_to_linking_entity_sets) | **PUT** /datastore/entity-sets/linking/ | Adds the entity sets as linked entity sets to the linking entity sets [**add_primary_key_to_entity_type**](EdmApi.md#add_primary_key_to_entity_type) | **PUT** /datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId} | Adds a primary key with a given ID to an entity type with a given ID. [**add_property_type_to_entity_type**](EdmApi.md#add_property_type_to_entity_type) | **PUT** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. [**add_src_entity_type_to_association_type**](EdmApi.md#add_src_entity_type_to_association_type) | **PUT** /datastore/edm/association/type/{associationTypeId}/src/{entityTypeId} | Update the AssociationType src entity types for the given AssociationType UUID by adding the given EntityType UUID. [**create_association_type**](EdmApi.md#create_association_type) | **POST** /datastore/edm/association/type/ | Creates a new AssociationType definition, if it doesn't exist. [**create_empty_schema**](EdmApi.md#create_empty_schema) | **PUT** /datastore/edm/schema/{namespace}/{name} | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. +[**create_entity_sets**](EdmApi.md#create_entity_sets) | **POST** /datastore/entity-sets | Creates new EntitySet definitions if they don't exist. [**create_entity_type**](EdmApi.md#create_entity_type) | **POST** /datastore/edm/entity/type/ | Creates a new EntityType definition, if it doesn't exist. [**create_property_type**](EdmApi.md#create_property_type) | **POST** /datastore/edm/property/type/ | Creates a new PropertyType definition, if it doesn\"t exist. [**create_schema_if_not_exists**](EdmApi.md#create_schema_if_not_exists) | **POST** /datastore/edm/schema | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. [**delete_association_type**](EdmApi.md#delete_association_type) | **DELETE** /datastore/edm/association/type/{associationTypeId} | Deletes the AssociationType definition for the given AssociationType UUID. +[**delete_entity_set**](EdmApi.md#delete_entity_set) | **DELETE** /datastore/entity-sets/all/{entitySetId} | Deletes the EntitySet definition for the given EntitySet UUID. [**delete_entity_type**](EdmApi.md#delete_entity_type) | **DELETE** /datastore/edm/entity/type/{entityTypeId} | Deletes the EntityType definition for the given EntityType UUID. [**delete_property_type**](EdmApi.md#delete_property_type) | **DELETE** /datastore/edm/property/type/{propertyTypeId} | Deletes the PropertyType definition for the given PropertyType UUID. [**force_delete_property_type**](EdmApi.md#force_delete_property_type) | **DELETE** /datastore/edm/property/type/{propertyTypeId}/force | Deletes the PropertyType definition for the given PropertyType UUID regardless of whether or not there is data associated with it. [**force_remove_property_type_from_entity_type**](EdmApi.md#force_remove_property_type_from_entity_type) | **DELETE** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId}/force | Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID, regardless of whether or not there is data associated with the entity type. [**get_all_association_entity_types**](EdmApi.md#get_all_association_entity_types) | **GET** /datastore/edm/association/type/ | Gets all association EntityType definitions. [**get_all_available_association_types**](EdmApi.md#get_all_available_association_types) | **GET** /datastore/edm/association/type/{associationTypeId}/available | Get all available associations for the given AssociationType UUID. +[**get_all_entity_set_property_metadata**](EdmApi.md#get_all_entity_set_property_metadata) | **GET** /datastore/entity-sets/all/{entitySetId}/metadata | Get all entity set property metadata. +[**get_all_entity_sets**](EdmApi.md#get_all_entity_sets) | **GET** /datastore/entity-sets | Get all EntitySet definitions. [**get_all_entity_type_property_metadata**](EdmApi.md#get_all_entity_type_property_metadata) | **GET** /datastore/edm/entity/type/{entityTypeId}/property/type | Get all EntityType propertyType metadata [**get_all_entity_types**](EdmApi.md#get_all_entity_types) | **GET** /datastore/edm/entity/type/ | Gets all EntityType definitions. [**get_all_property_types**](EdmApi.md#get_all_property_types) | **GET** /datastore/edm/property/type/ | Gets all PropertyType definitions. @@ -29,22 +35,32 @@ Method | HTTP request | Description [**get_association_type_details**](EdmApi.md#get_association_type_details) | **GET** /datastore/edm/association/type/{associationTypeId}/detailed | Get details about the AssociationType for the given AssociationType UUID. [**get_entity_data_model**](EdmApi.md#get_entity_data_model) | **GET** /datastore/edm/ | Gets the entity data model, including namespaces, schemas, entity types, association types, and property types. [**get_entity_data_model_diff**](EdmApi.md#get_entity_data_model_diff) | **POST** /datastore/edm/diff/ | Gets the changes between the existing entity data model and the entity data model passed in, including schemas, association types, entity types, and property types. +[**get_entity_set**](EdmApi.md#get_entity_set) | **GET** /datastore/entity-sets/all/{entitySetId} | Get the EntitySet definition for the given EntitySet UUID. +[**get_entity_set_id**](EdmApi.md#get_entity_set_id) | **GET** /datastore/entity-sets/ids/{entitySetName} | Gets the EntitySet UUID for the given EntitySet name. +[**get_entity_set_ids**](EdmApi.md#get_entity_set_ids) | **POST** /datastore/entity-sets/ids/ | Get IDs for entity sets given their names. +[**get_entity_set_property_metadata**](EdmApi.md#get_entity_set_property_metadata) | **GET** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Get specified property type metadata for an entity set. [**get_entity_type**](EdmApi.md#get_entity_type) | **GET** /datastore/edm/entity/type/{entityTypeId} | Gets the EntityType definition for the given EntityType UUID. [**get_entity_type_hierarchy**](EdmApi.md#get_entity_type_hierarchy) | **PATCH** /datastore/edm/entity/type/{entityTypeId}/hierarchy | Get the EntityType hierarchy for the given EntityType UUID. [**get_entity_type_id**](EdmApi.md#get_entity_type_id) | **GET** /datastore/edm/ids/entity/type/{namespace}/{name} | Gets the EntityType UUID for the given EntityType FQN. [**get_entity_type_property_metadata**](EdmApi.md#get_entity_type_property_metadata) | **GET** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Get EntityType propertyType metadata +[**get_property_metadata_for_entity_sets**](EdmApi.md#get_property_metadata_for_entity_sets) | **POST** /datastore/entity-sets/all/metadata | Get property metadata for entity sets. [**get_property_type**](EdmApi.md#get_property_type) | **GET** /datastore/edm/property/type/{propertyTypeId} | Gets the PropertyType definition for the given PropertyType UUID. [**get_property_type_id**](EdmApi.md#get_property_type_id) | **GET** /datastore/edm/ids/property/type/{namespace}/{name} | Gets the PropertyType UUID for the given PropertyType FQN. +[**get_property_types_for_entity_set**](EdmApi.md#get_property_types_for_entity_set) | **GET** /datastore/entity-sets/all/{entitySetId}/properties | Get all Property Types for entity set [**get_property_usage_summary**](EdmApi.md#get_property_usage_summary) | **GET** /datastore/edm/summary/{propertyTypeId} | Get Property Usage Summary for property with given ID. [**get_schema_contents**](EdmApi.md#get_schema_contents) | **GET** /datastore/edm/schema/{namespace}/{name} | Gets the schema contents for a corresponding namespace and name. [**get_schemas**](EdmApi.md#get_schemas) | **GET** /datastore/edm/schema | Gets all schemas. [**get_schemas_in_namespace**](EdmApi.md#get_schemas_in_namespace) | **GET** /datastore/edm/schema/{namespace} | Gets all schemas associated with a given namespace and accessible by the caller. [**remove_dst_entity_type_from_association_type**](EdmApi.md#remove_dst_entity_type_from_association_type) | **DELETE** /datastore/edm/association/type/{associationTypeId}/dst/{entityTypeId} | Updates the AssociationType dst entity types for the given AssociationType UUID by removing the given EntityType UUID. +[**remove_entity_sets_from_linking_entity_set**](EdmApi.md#remove_entity_sets_from_linking_entity_set) | **DELETE** /datastore/entity-sets/linking/{linkingEntitySetId} | Removes/unlinks the linked entity sets from the linking entity set +[**remove_entity_sets_from_linking_entity_sets**](EdmApi.md#remove_entity_sets_from_linking_entity_sets) | **DELETE** /datastore/entity-sets/linking/ | Removes/unlinks the linked entity sets from the linking entity set [**remove_primary_key_from_entity_type**](EdmApi.md#remove_primary_key_from_entity_type) | **DELETE** /datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId} | Removes a primary key with a given ID from an entity type with a given ID. [**remove_property_type_from_entity_type**](EdmApi.md#remove_property_type_from_entity_type) | **DELETE** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. [**remove_src_entity_type_from_association_type**](EdmApi.md#remove_src_entity_type_from_association_type) | **DELETE** /datastore/edm/association/type/{associationTypeId}/src/{entityTypeId} | Updates the AssociationType src entity types for the given AssociationType UUID by removing the given EntityType UUID. [**reorder_property_types_in_entity_type**](EdmApi.md#reorder_property_types_in_entity_type) | **PATCH** /datastore/edm/entity/type/{entityTypeId}/property/type | Updates the EntityType definition for the given EntityType UUID by reordering its properties as specified by the provided list. [**update_entity_data_model**](EdmApi.md#update_entity_data_model) | **PATCH** /datastore/edm/ | Updates the entity data model, including schemas, entity types, association types, and property types. +[**update_entity_set_meta_data**](EdmApi.md#update_entity_set_meta_data) | **PATCH** /datastore/entity-sets/all/{entitySetId}/metadata/ | Updates the EntitySet definition for the given EntitySet UUID with the given metadata. +[**update_entity_set_property_metadata**](EdmApi.md#update_entity_set_property_metadata) | **POST** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Updates the property type metadata for the given entity set. [**update_entity_type_meta_data**](EdmApi.md#update_entity_type_meta_data) | **PATCH** /datastore/edm/entity/type/{entityTypeId} | Updates the EntityType definition for the given EntityType UUID with the given metadata. [**update_entity_type_property_metadata**](EdmApi.md#update_entity_type_property_metadata) | **POST** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Update EntityType Property metadata [**update_property_type_meta_data**](EdmApi.md#update_property_type_meta_data) | **PATCH** /datastore/edm/property/type/{propertyTypeId} | Updates the PropertyType definition for the given PropertyType UUID with the given metadata. @@ -98,6 +114,102 @@ void (empty response body) |-------------|-------------|------------------| | **200** | Success | - | +# **add_entity_sets_to_linking_entity_set** +> integer add_entity_sets_to_linking_entity_set(linking_entity_set_id, request_body=var.request_body) + +Adds the entity sets as linked entity sets to the linking entity set + +### Example +```R +library(openlattice) + +var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | +var.request_body <- list("property_example") # array[character] | + +#Adds the entity sets as linked entity sets to the linking entity set +api.instance <- EdmApi$new() +# Configure HTTP basic authorization: http_auth +api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; +api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; +# Configure API key authorization: openlattice_auth +api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +result <- api.instance$add_entity_sets_to_linking_entity_set(var.linking_entity_set_id, request_body=var.request_body) +dput(result) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **linking_entity_set_id** | [**character**](.md)| | + **request_body** | list( **character** )| | [optional] + +### Return type + +**integer** + +### Authorization + +[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + +# **add_entity_sets_to_linking_entity_sets** +> integer add_entity_sets_to_linking_entity_sets(linking_entity_set_id, request_body) + +Adds the entity sets as linked entity sets to the linking entity sets + +### Example +```R +library(openlattice) + +var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | +var.request_body <- TODO # list(array[character]) | + +#Adds the entity sets as linked entity sets to the linking entity sets +api.instance <- EdmApi$new() +# Configure HTTP basic authorization: http_auth +api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; +api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; +# Configure API key authorization: openlattice_auth +api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +result <- api.instance$add_entity_sets_to_linking_entity_sets(var.linking_entity_set_id, var.request_body) +dput(result) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **linking_entity_set_id** | **character**| | + **request_body** | named list( [**list(array[character])**](array.md) )| | + +### Return type + +**integer** + +### Authorization + +[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + # **add_primary_key_to_entity_type** > add_primary_key_to_entity_type(entity_type_id, property_type_id) @@ -326,6 +438,51 @@ void (empty response body) |-------------|-------------|------------------| | **200** | Success | - | +# **create_entity_sets** +> create_entity_sets(entity_set) + +Creates new EntitySet definitions if they don't exist. + +### Example +```R +library(openlattice) + +var.entity_set <- list(EntitySet$new("id_example", "entityTypeId_example", "name_example", "title_example", "description_example", list("contacts_example"), "linking_example", list("linkedEntitySets_example"), "organizationId_example", list("flags_example"), list(123))) # array[EntitySet] | + +#Creates new EntitySet definitions if they don't exist. +api.instance <- EdmApi$new() +# Configure HTTP basic authorization: http_auth +api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; +api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; +# Configure API key authorization: openlattice_auth +api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +api.instance$create_entity_sets(var.entity_set) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **entity_set** | list( [**EntitySet**](EntitySet.md) )| | + +### Return type + +void (empty response body) + +### Authorization + +[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + # **create_entity_type** > create_entity_type(entity_type) @@ -496,6 +653,51 @@ No authorization required |-------------|-------------|------------------| | **200** | Success | - | +# **delete_entity_set** +> delete_entity_set(entity_set_id) + +Deletes the EntitySet definition for the given EntitySet UUID. + +### Example +```R +library(openlattice) + +var.entity_set_id <- 'entity_set_id_example' # character | + +#Deletes the EntitySet definition for the given EntitySet UUID. +api.instance <- EdmApi$new() +# Configure HTTP basic authorization: http_auth +api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; +api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; +# Configure API key authorization: openlattice_auth +api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +api.instance$delete_entity_set(var.entity_set_id) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **entity_set_id** | [**character**](.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + # **delete_entity_type** > delete_entity_type(entity_type_id) @@ -761,6 +963,94 @@ Name | Type | Description | Notes |-------------|-------------|------------------| | **200** | Success | - | +# **get_all_entity_set_property_metadata** +> list(EntitySetPropertyMetaData) get_all_entity_set_property_metadata(entity_set_id) + +Get all entity set property metadata. + +### Example +```R +library(openlattice) + +var.entity_set_id <- 'entity_set_id_example' # character | + +#Get all entity set property metadata. +api.instance <- EdmApi$new() +# Configure HTTP basic authorization: http_auth +api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; +api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; +# Configure API key authorization: openlattice_auth +api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +result <- api.instance$get_all_entity_set_property_metadata(var.entity_set_id) +dput(result) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **entity_set_id** | [**character**](.md)| | + +### Return type + +[**list(EntitySetPropertyMetaData)**](EntitySetPropertyMetaData.md) + +### Authorization + +[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + +# **get_all_entity_sets** +> array[EntitySet] get_all_entity_sets() + +Get all EntitySet definitions. + +### Example +```R +library(openlattice) + + +#Get all EntitySet definitions. +api.instance <- EdmApi$new() +# Configure HTTP basic authorization: http_auth +api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; +api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; +# Configure API key authorization: openlattice_auth +api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +result <- api.instance$get_all_entity_sets() +dput(result) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**array[EntitySet]**](EntitySet.md) + +### Authorization + +[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + # **get_all_entity_type_property_metadata** > list(EntityTypePropertyMetadata) get_all_entity_type_property_metadata(entity_type_id) @@ -1154,20 +1444,25 @@ Name | Type | Description | Notes |-------------|-------------|------------------| | **200** | Success | - | -# **get_entity_type** -> EntityType get_entity_type(entity_type_id) +# **get_entity_set** +> EntitySet get_entity_set(entity_set_id) -Gets the EntityType definition for the given EntityType UUID. +Get the EntitySet definition for the given EntitySet UUID. ### Example ```R library(openlattice) -var.entity_type_id <- 'entity_type_id_example' # character | +var.entity_set_id <- 'entity_set_id_example' # character | -#Gets the EntityType definition for the given EntityType UUID. +#Get the EntitySet definition for the given EntitySet UUID. api.instance <- EdmApi$new() -result <- api.instance$get_entity_type(var.entity_type_id) +# Configure HTTP basic authorization: http_auth +api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; +api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; +# Configure API key authorization: openlattice_auth +api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +result <- api.instance$get_entity_set(var.entity_set_id) dput(result) ``` @@ -1175,15 +1470,15 @@ dput(result) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entity_type_id** | [**character**](.md)| | + **entity_set_id** | [**character**](.md)| | ### Return type -[**EntityType**](EntityType.md) +[**EntitySet**](EntitySet.md) ### Authorization -No authorization required +[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) ### HTTP request headers @@ -1193,38 +1488,39 @@ No authorization required ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | +| **200** | An Entity Set definition | - | -# **get_entity_type_hierarchy** -> get_entity_type_hierarchy(entity_type_id) +# **get_entity_set_id** +> character get_entity_set_id(entity_set_name) -Get the EntityType hierarchy for the given EntityType UUID. +Gets the EntitySet UUID for the given EntitySet name. ### Example ```R library(openlattice) -var.entity_type_id <- 'entity_type_id_example' # character | +var.entity_set_name <- 'entity_set_name_example' # character | -#Get the EntityType hierarchy for the given EntityType UUID. +#Gets the EntitySet UUID for the given EntitySet name. api.instance <- EdmApi$new() # Configure HTTP basic authorization: http_auth api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; # Configure API key authorization: openlattice_auth api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -api.instance$get_entity_type_hierarchy(var.entity_type_id) +result <- api.instance$get_entity_set_id(var.entity_set_name) +dput(result) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entity_type_id** | [**character**](.md)| | + **entity_set_name** | **character**| | ### Return type -void (empty response body) +**character** ### Authorization @@ -1233,15 +1529,195 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | - | -# **get_entity_type_id** -> character get_entity_type_id(namespace, name) +# **get_entity_set_ids** +> list(character) get_entity_set_ids(request_body=var.request_body) + +Get IDs for entity sets given their names. + +### Example +```R +library(openlattice) + +var.request_body <- list("property_example") # array[character] | + +#Get IDs for entity sets given their names. +api.instance <- EdmApi$new() +# Configure HTTP basic authorization: http_auth +api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; +api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; +# Configure API key authorization: openlattice_auth +api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +result <- api.instance$get_entity_set_ids(request_body=var.request_body) +dput(result) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request_body** | list( **character** )| | [optional] + +### Return type + +**list(character)** + +### Authorization + +[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + +# **get_entity_set_property_metadata** +> EntitySetPropertyMetaData get_entity_set_property_metadata(entity_set_id, property_type_id) + +Get specified property type metadata for an entity set. + +### Example +```R +library(openlattice) + +var.entity_set_id <- 'entity_set_id_example' # character | +var.property_type_id <- 'property_type_id_example' # character | + +#Get specified property type metadata for an entity set. +api.instance <- EdmApi$new() +# Configure HTTP basic authorization: http_auth +api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; +api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; +# Configure API key authorization: openlattice_auth +api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +result <- api.instance$get_entity_set_property_metadata(var.entity_set_id, var.property_type_id) +dput(result) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **entity_set_id** | [**character**](.md)| | + **property_type_id** | [**character**](.md)| | + +### Return type + +[**EntitySetPropertyMetaData**](EntitySetPropertyMetaData.md) + +### Authorization + +[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + +# **get_entity_type** +> EntityType get_entity_type(entity_type_id) + +Gets the EntityType definition for the given EntityType UUID. + +### Example +```R +library(openlattice) + +var.entity_type_id <- 'entity_type_id_example' # character | + +#Gets the EntityType definition for the given EntityType UUID. +api.instance <- EdmApi$new() +result <- api.instance$get_entity_type(var.entity_type_id) +dput(result) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **entity_type_id** | [**character**](.md)| | + +### Return type + +[**EntityType**](EntityType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + +# **get_entity_type_hierarchy** +> get_entity_type_hierarchy(entity_type_id) + +Get the EntityType hierarchy for the given EntityType UUID. + +### Example +```R +library(openlattice) + +var.entity_type_id <- 'entity_type_id_example' # character | + +#Get the EntityType hierarchy for the given EntityType UUID. +api.instance <- EdmApi$new() +# Configure HTTP basic authorization: http_auth +api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; +api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; +# Configure API key authorization: openlattice_auth +api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +api.instance$get_entity_type_hierarchy(var.entity_type_id) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **entity_type_id** | [**character**](.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + +# **get_entity_type_id** +> character get_entity_type_id(namespace, name) Gets the EntityType UUID for the given EntityType FQN. @@ -1336,6 +1812,52 @@ Name | Type | Description | Notes |-------------|-------------|------------------| | **200** | Success | - | +# **get_property_metadata_for_entity_sets** +> list(list(EntitySetPropertyMetaData)) get_property_metadata_for_entity_sets(request_body=var.request_body) + +Get property metadata for entity sets. + +### Example +```R +library(openlattice) + +var.request_body <- list("property_example") # array[character] | + +#Get property metadata for entity sets. +api.instance <- EdmApi$new() +# Configure HTTP basic authorization: http_auth +api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; +api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; +# Configure API key authorization: openlattice_auth +api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +result <- api.instance$get_property_metadata_for_entity_sets(request_body=var.request_body) +dput(result) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request_body** | list( **character** )| | [optional] + +### Return type + +**list(list(EntitySetPropertyMetaData))** + +### Authorization + +[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | EntitySetPropertyMetaData | - | + # **get_property_type** > PropertyType get_property_type(property_type_id) @@ -1430,6 +1952,52 @@ Name | Type | Description | Notes |-------------|-------------|------------------| | **200** | Success | - | +# **get_property_types_for_entity_set** +> list(PropertyType) get_property_types_for_entity_set(entity_set_id) + +Get all Property Types for entity set + +### Example +```R +library(openlattice) + +var.entity_set_id <- 'entity_set_id_example' # character | + +#Get all Property Types for entity set +api.instance <- EdmApi$new() +# Configure HTTP basic authorization: http_auth +api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; +api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; +# Configure API key authorization: openlattice_auth +api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +result <- api.instance$get_property_types_for_entity_set(var.entity_set_id) +dput(result) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **entity_set_id** | [**character**](.md)| | + +### Return type + +[**list(PropertyType)**](PropertyType.md) + +### Authorization + +[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + # **get_property_usage_summary** > array[PropertyUsageSummary] get_property_usage_summary(property_type_id) @@ -1661,6 +2229,102 @@ void (empty response body) |-------------|-------------|------------------| | **200** | Success | - | +# **remove_entity_sets_from_linking_entity_set** +> integer remove_entity_sets_from_linking_entity_set(linking_entity_set_id, request_body=var.request_body) + +Removes/unlinks the linked entity sets from the linking entity set + +### Example +```R +library(openlattice) + +var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | +var.request_body <- list("property_example") # array[character] | + +#Removes/unlinks the linked entity sets from the linking entity set +api.instance <- EdmApi$new() +# Configure HTTP basic authorization: http_auth +api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; +api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; +# Configure API key authorization: openlattice_auth +api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +result <- api.instance$remove_entity_sets_from_linking_entity_set(var.linking_entity_set_id, request_body=var.request_body) +dput(result) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **linking_entity_set_id** | **character**| | + **request_body** | list( **character** )| | [optional] + +### Return type + +**integer** + +### Authorization + +[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + +# **remove_entity_sets_from_linking_entity_sets** +> integer remove_entity_sets_from_linking_entity_sets(linking_entity_set_id, request_body) + +Removes/unlinks the linked entity sets from the linking entity set + +### Example +```R +library(openlattice) + +var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | +var.request_body <- TODO # list(array[character]) | + +#Removes/unlinks the linked entity sets from the linking entity set +api.instance <- EdmApi$new() +# Configure HTTP basic authorization: http_auth +api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; +api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; +# Configure API key authorization: openlattice_auth +api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +result <- api.instance$remove_entity_sets_from_linking_entity_sets(var.linking_entity_set_id, var.request_body) +dput(result) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **linking_entity_set_id** | [**character**](.md)| | + **request_body** | named list( [**list(array[character])**](array.md) )| | + +### Return type + +**integer** + +### Authorization + +[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + # **remove_primary_key_from_entity_type** > remove_primary_key_from_entity_type(entity_type_id, property_type_id) @@ -1894,6 +2558,103 @@ void (empty response body) |-------------|-------------|------------------| | **200** | Success | - | +# **update_entity_set_meta_data** +> integer update_entity_set_meta_data(entity_set_id, metadata_update) + +Updates the EntitySet definition for the given EntitySet UUID with the given metadata. + +### Example +```R +library(openlattice) + +var.entity_set_id <- 'entity_set_id_example' # character | +var.metadata_update <- MetadataUpdate$new("title_example", "description_example", "name_example", list("contacts_example"), FullQualifiedName$new("name_example", "namespace_example"), "pii_example", "defaultShow_example", "url_example", TODO, "indexType_example", "organizationId_example", list(123), list("enumValues_example")) # MetadataUpdate | + +#Updates the EntitySet definition for the given EntitySet UUID with the given metadata. +api.instance <- EdmApi$new() +# Configure HTTP basic authorization: http_auth +api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; +api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; +# Configure API key authorization: openlattice_auth +api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +result <- api.instance$update_entity_set_meta_data(var.entity_set_id, var.metadata_update) +dput(result) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **entity_set_id** | [**character**](.md)| | + **metadata_update** | [**MetadataUpdate**](MetadataUpdate.md)| | + +### Return type + +**integer** + +### Authorization + +[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + +# **update_entity_set_property_metadata** +> update_entity_set_property_metadata(entity_set_id, property_type_id, metadata_update) + +Updates the property type metadata for the given entity set. + +### Example +```R +library(openlattice) + +var.entity_set_id <- 'entity_set_id_example' # character | +var.property_type_id <- 'property_type_id_example' # character | +var.metadata_update <- MetadataUpdate$new("title_example", "description_example", "name_example", list("contacts_example"), FullQualifiedName$new("name_example", "namespace_example"), "pii_example", "defaultShow_example", "url_example", TODO, "indexType_example", "organizationId_example", list(123), list("enumValues_example")) # MetadataUpdate | + +#Updates the property type metadata for the given entity set. +api.instance <- EdmApi$new() +# Configure HTTP basic authorization: http_auth +api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; +api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; +# Configure API key authorization: openlattice_auth +api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; +api.instance$update_entity_set_property_metadata(var.entity_set_id, var.property_type_id, var.metadata_update) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **entity_set_id** | [**character**](.md)| | + **property_type_id** | [**character**](.md)| | + **metadata_update** | [**MetadataUpdate**](MetadataUpdate.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + # **update_entity_type_meta_data** > update_entity_type_meta_data(entity_type_id, metadata_update) diff --git a/R/docs/EntityType.md b/R/docs/EntityType.md index 2323aeb..839722a 100644 --- a/R/docs/EntityType.md +++ b/R/docs/EntityType.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **schemas** | [**array[FullQualifiedName]**](FullQualifiedName.md) | | [optional] **key** | **array[character]** | | [optional] **properties** | **array[character]** | | [optional] -**propertyTags** | [**list(array[character])**](array.md) | | [optional] +**propertyTags** | **list(array[character])** | | [optional] **basetype** | **character** | | [optional] **category** | **character** | | [optional] diff --git a/R/docs/IndexingState.md b/R/docs/IndexingState.md index 4ab9d50..da0a75b 100644 --- a/R/docs/IndexingState.md +++ b/R/docs/IndexingState.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**indexing** | [**list(array[character])**](array.md) | | [optional] +**indexing** | **list(array[character])** | | [optional] **queue** | **array[character]** | | [optional] **currentEntitySet** | **character** | | [optional] **queueSize** | **integer** | | [optional] diff --git a/R/docs/MetadataUpdate.md b/R/docs/MetadataUpdate.md index f111cff..94abcc2 100644 --- a/R/docs/MetadataUpdate.md +++ b/R/docs/MetadataUpdate.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **pii** | **character** | | [optional] **defaultShow** | **character** | | [optional] **url** | **character** | | [optional] -**propertyTags** | [**list(array[character])**](array.md) | | [optional] +**propertyTags** | **list(array[character])** | | [optional] **indexType** | **character** | | [optional] **organizationId** | **character** | | [optional] **partitions** | **array[integer]** | | [optional] diff --git a/R/docs/NeighborEntityDetails.md b/R/docs/NeighborEntityDetails.md index 06d03a9..8ee41d6 100644 --- a/R/docs/NeighborEntityDetails.md +++ b/R/docs/NeighborEntityDetails.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **associationEntitySet** | [**EntitySet**](EntitySet.md) | | [optional] -**associationDetails** | [**list(array[character])**](array.md) | | [optional] +**associationDetails** | **list(array[character])** | | [optional] **neighborEntitySet** | [**EntitySet**](EntitySet.md) | | [optional] **neighborId** | **character** | | [optional] -**neighborDetails** | [**list(array[character])**](array.md) | | [optional] +**neighborDetails** | **list(array[character])** | | [optional] diff --git a/R/docs/OrganizationsApi.md b/R/docs/OrganizationsApi.md index 4031c44..b31c389 100644 --- a/R/docs/OrganizationsApi.md +++ b/R/docs/OrganizationsApi.md @@ -161,7 +161,7 @@ Name | Type | Description | Notes ### Return type -[**list(array[character])**](array.md) +**list(array[character])** ### Authorization @@ -625,7 +625,7 @@ Name | Type | Description | Notes ### Return type -[**list(array[character])**](array.md) +**list(array[character])** ### Authorization diff --git a/R/docs/SearchApi.md b/R/docs/SearchApi.md index eb66580..c9baef4 100644 --- a/R/docs/SearchApi.md +++ b/R/docs/SearchApi.md @@ -291,7 +291,7 @@ Name | Type | Description | Notes ### Return type -[**list(array[NeighborEntityDetails])**](array.md) +**list(array[NeighborEntityDetails])** ### Authorization @@ -619,7 +619,7 @@ Name | Type | Description | Notes ### Return type -[**list(array[NeighborEntityDetails])**](array.md) +**list(array[NeighborEntityDetails])** ### Authorization diff --git a/R/tests/testthat/test_admin_api.R b/R/tests/testthat/test_admin_api.R index 414d2b3..ab61bf9 100644 --- a/R/tests/testthat/test_admin_api.R +++ b/R/tests/testthat/test_admin_api.R @@ -29,7 +29,7 @@ test_that("reindex", { # tests for reindex # base path: https://api.openlattice.com # Merge job descriptions for performing a partial or full reindex of provided entity sets. - # @param list(array[character]) request_body 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. + # @param request_body 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. # @return [IndexingState] # uncomment below to test the operation @@ -40,7 +40,7 @@ test_that("update_reindex", { # tests for update_reindex # base path: https://api.openlattice.com # Replaces job descriptions for performing a partial or full reindex of provided entity sets. - # @param list(array[character]) request_body 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. + # @param request_body 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. # @return [IndexingState] # uncomment below to test the operation diff --git a/R/tests/testthat/test_authorizations_api.R b/R/tests/testthat/test_authorizations_api.R index ec854cd..8da348a 100644 --- a/R/tests/testthat/test_authorizations_api.R +++ b/R/tests/testthat/test_authorizations_api.R @@ -9,7 +9,7 @@ test_that("check_authorizations", { # tests for check_authorizations # base path: https://api.openlattice.com # Check authorizations - # @param AccessCheck access_check + # @param access_check AccessCheck # @return [array[Authorization]] # uncomment below to test the operation @@ -20,9 +20,9 @@ test_that("get_accessible_objects", { # tests for get_accessible_objects # base path: https://api.openlattice.com # Returns paged results for all authorized objects of specified objectType, that the current user has specified permission for. - # @param character object_type (optional) - # @param character permission (optional) - # @param character paging_token (optional) + # @param object_type character (optional) + # @param permission character (optional) + # @param paging_token character (optional) # @return [AuthorizedObjectsSearchResult] # uncomment below to test the operation diff --git a/R/tests/testthat/test_collections_api.R b/R/tests/testthat/test_collections_api.R index 3f3b6f1..8ba00b8 100644 --- a/R/tests/testthat/test_collections_api.R +++ b/R/tests/testthat/test_collections_api.R @@ -9,8 +9,8 @@ test_that("add_type_to_entity_type_collection_template", { # tests for add_type_to_entity_type_collection_template # base path: https://api.openlattice.com # Appends type to template of the specified EntityTypeCollection - # @param character entity_type_collection_id - # @param CollectionTemplateType collection_template_type + # @param entity_type_collection_id character + # @param collection_template_type CollectionTemplateType # @return [Void] # uncomment below to test the operation @@ -21,7 +21,7 @@ test_that("create_entity_set_collection", { # tests for create_entity_set_collection # base path: https://api.openlattice.com # Creates a new EntitySetCollection - # @param EntitySetCollection entity_set_collection + # @param entity_set_collection EntitySetCollection # @return [character] # uncomment below to test the operation @@ -32,7 +32,7 @@ test_that("create_entity_type_collection", { # tests for create_entity_type_collection # base path: https://api.openlattice.com # Creates a new EntityTypeCollection - # @param EntityTypeCollection entity_type_collection + # @param entity_type_collection EntityTypeCollection # @return [character] # uncomment below to test the operation @@ -43,7 +43,7 @@ test_that("delete_entity_set_collection", { # tests for delete_entity_set_collection # base path: https://api.openlattice.com # Deletes the specified EntitySetCollection - # @param character entity_set_collection_id + # @param entity_set_collection_id character # @return [Void] # uncomment below to test the operation @@ -54,7 +54,7 @@ test_that("delete_entity_type_collection", { # tests for delete_entity_type_collection # base path: https://api.openlattice.com # Deletes the specified EntityTypeCollection - # @param character entity_type_collection_id + # @param entity_type_collection_id character # @return [Void] # uncomment below to test the operation @@ -85,7 +85,7 @@ test_that("get_entity_set_collection", { # tests for get_entity_set_collection # base path: https://api.openlattice.com # Returns the EntitySetCollection object for a given id - # @param character entity_set_collection_id + # @param entity_set_collection_id character # @return [EntitySetCollection] # uncomment below to test the operation @@ -96,7 +96,7 @@ test_that("get_entity_set_collections_of_type", { # tests for get_entity_set_collections_of_type # base path: https://api.openlattice.com # Returns all authorized EntitySetCollections for a given EntityTypeCollection id - # @param character entity_set_collection_id + # @param entity_set_collection_id character # @return [array[EntitySetCollection]] # uncomment below to test the operation @@ -107,7 +107,7 @@ test_that("get_entity_type_collection", { # tests for get_entity_type_collection # base path: https://api.openlattice.com # Returns the EntityTypeCollection object for a given id - # @param character entity_type_collection_id + # @param entity_type_collection_id character # @return [EntityTypeCollection] # uncomment below to test the operation @@ -118,8 +118,8 @@ test_that("remove_type_from_entity_type_collection_template", { # tests for remove_type_from_entity_type_collection_template # base path: https://api.openlattice.com # Removes a key from an EntityTypeCollection template - # @param character entity_type_collection_id - # @param character type_id + # @param entity_type_collection_id character + # @param type_id character # @return [Void] # uncomment below to test the operation @@ -130,8 +130,8 @@ test_that("update_entity_set_collection_metadata", { # tests for update_entity_set_collection_metadata # base path: https://api.openlattice.com # Updates metadata of the specified EntitySetCollection - # @param character entity_set_collection_id - # @param MetadataUpdate metadata_update + # @param entity_set_collection_id character + # @param metadata_update MetadataUpdate # @return [Void] # uncomment below to test the operation @@ -142,8 +142,8 @@ test_that("update_entity_set_collection_template", { # tests for update_entity_set_collection_template # base path: https://api.openlattice.com # Updates template of the specified EntitySetCollection - # @param character entity_set_collection_id - # @param list(character) request_body + # @param entity_set_collection_id character + # @param request_body list(character) # @return [Void] # uncomment below to test the operation @@ -154,8 +154,8 @@ test_that("update_entity_type_collection_metadata", { # tests for update_entity_type_collection_metadata # base path: https://api.openlattice.com # Updates metadata of the specified EntityTypeCollection - # @param character entity_type_collection_id - # @param MetadataUpdate metadata_update + # @param entity_type_collection_id character + # @param metadata_update MetadataUpdate # @return [Void] # uncomment below to test the operation diff --git a/R/tests/testthat/test_data_api.R b/R/tests/testthat/test_data_api.R index ae29147..1e67000 100644 --- a/R/tests/testthat/test_data_api.R +++ b/R/tests/testthat/test_data_api.R @@ -9,7 +9,7 @@ test_that("create_associations", { # tests for create_associations # base path: https://api.openlattice.com # Creates a new set of associations. - # @param InlineObject inline_object + # @param inline_object InlineObject # @return [list(array[character])] # uncomment below to test the operation @@ -20,7 +20,7 @@ test_that("create_edges", { # tests for create_edges # base path: https://api.openlattice.com # Creates a new set of associations. - # @param array[DataEdgeKey] data_edge_key + # @param data_edge_key array[DataEdgeKey] # @return [integer] # uncomment below to test the operation @@ -31,8 +31,8 @@ test_that("create_entities", { # tests for create_entities # base path: https://api.openlattice.com # Creates a new set of entities. - # @param character set_id - # @param array[list(array[character])] request_body + # @param set_id character + # @param request_body array[list(array[character])] # @return [array[character]] # uncomment below to test the operation @@ -43,7 +43,7 @@ test_that("create_entity_and_association_data", { # tests for create_entity_and_association_data # base path: https://api.openlattice.com # Creates entities and assocations - # @param DataGraph data_graph + # @param data_graph DataGraph # @return [DataGraphIds] # uncomment below to test the operation @@ -54,8 +54,8 @@ test_that("delete_all_entities_from_entity_set", { # tests for delete_all_entities_from_entity_set # base path: https://api.openlattice.com # Clears the Entity matching the given Entity id and all of its neighbor Entities - # @param character entity_set_id - # @param character type + # @param entity_set_id character + # @param type character # @return [Void] # uncomment below to test the operation @@ -66,9 +66,9 @@ test_that("delete_entities", { # tests for delete_entities # base path: https://api.openlattice.com # Deletes multiple entities from an entity set. - # @param character entity_set_id - # @param character type - # @param array[character] request_body + # @param entity_set_id character + # @param type character + # @param request_body array[character] # @return [integer] # uncomment below to test the operation @@ -79,9 +79,9 @@ test_that("delete_entities_and_neighbors", { # tests for delete_entities_and_neighbors # base path: https://api.openlattice.com # Deletes the entities matching the given entity ids and all of its neighbor entities provided in the filter. - # @param character entity_set_id - # @param character type - # @param array[EntityNeighborsFilter] entity_neighbors_filter + # @param entity_set_id character + # @param type character + # @param entity_neighbors_filter array[EntityNeighborsFilter] # @return [integer] # uncomment below to test the operation @@ -92,9 +92,9 @@ test_that("delete_entity", { # tests for delete_entity # base path: https://api.openlattice.com # Deletes a single entity from an entity set. - # @param character entity_set_id - # @param character entity_key_id - # @param character type + # @param entity_set_id character + # @param entity_key_id character + # @param type character # @return [Void] # uncomment below to test the operation @@ -105,10 +105,10 @@ test_that("delete_entity_properties", { # tests for delete_entity_properties # base path: https://api.openlattice.com # Deletes properties from an entity. - # @param character entity_set_id - # @param character entity_key_id - # @param character type - # @param array[character] request_body + # @param entity_set_id character + # @param entity_key_id character + # @param type character + # @param request_body array[character] # @return [Void] # uncomment below to test the operation @@ -119,8 +119,8 @@ test_that("get_entity", { # tests for get_entity # base path: https://api.openlattice.com # Loads a single entity by its entityKeyId and entitySetId - # @param character entity_set_id - # @param character entity_key_id + # @param entity_set_id character + # @param entity_key_id character # @return [list(array[character])] # uncomment below to test the operation @@ -131,9 +131,9 @@ test_that("get_entity_property_values", { # tests for get_entity_property_values # base path: https://api.openlattice.com # Loads property values for a single entity by its entityKeyId, entitySetId and propertyTypeId - # @param character entity_set_id - # @param character entity_key_id - # @param character property_type_id + # @param entity_set_id character + # @param entity_key_id character + # @param property_type_id character # @return [array[character]] # uncomment below to test the operation @@ -144,7 +144,7 @@ test_that("get_entity_set_size", { # tests for get_entity_set_size # base path: https://api.openlattice.com # Gets the number of entities in an entity set. - # @param character entity_set_id + # @param entity_set_id character # @return [integer] # uncomment below to test the operation @@ -155,7 +155,7 @@ test_that("load_entity_set_data", { # tests for load_entity_set_data # base path: https://api.openlattice.com # Gets an iterable containing the entity data, using property type FQNs as key - # @param character entity_set_id + # @param entity_set_id character # @return [array[list(array[character])]] # uncomment below to test the operation @@ -166,8 +166,8 @@ test_that("load_linked_entity_set_breakdown", { # tests for load_linked_entity_set_breakdown # base path: https://api.openlattice.com # Loads a linked entity set breakdown with the selected linked entities and properties. - # @param character linked_entity_set_id - # @param array[EntitySetSelection] entity_set_selection + # @param linked_entity_set_id character + # @param entity_set_selection array[EntitySetSelection] # @return [list(list(list(list(array[character]))))] # uncomment below to test the operation @@ -178,8 +178,8 @@ test_that("load_selected_entity_set_data", { # tests for load_selected_entity_set_data # base path: https://api.openlattice.com # Gets a list of entities by UUIDs - # @param character entity_set_id - # @param array[EntitySetSelection] entity_set_selection + # @param entity_set_id character + # @param entity_set_selection array[EntitySetSelection] # @return [array[list(array[character])]] # uncomment below to test the operation @@ -190,8 +190,8 @@ test_that("replace_association_data", { # tests for replace_association_data # base path: https://api.openlattice.com # Replaces Association Data - # @param character partial - # @param list(list(DataEdge)) request_body + # @param partial character + # @param request_body list(list(DataEdge)) # @return [integer] # uncomment below to test the operation @@ -202,8 +202,8 @@ test_that("replace_entity_properties", { # tests for replace_entity_properties # base path: https://api.openlattice.com # Replaces Entity Properties - # @param character entity_set_id - # @param list(list(array[list(character)])) request_body + # @param entity_set_id character + # @param request_body list(list(array[list(character)])) # @return [integer] # uncomment below to test the operation @@ -214,9 +214,9 @@ test_that("update_entities_in_entity_set", { # tests for update_entities_in_entity_set # base path: https://api.openlattice.com # Perform one of the following bulk update operations on entities (type = Merge) adds new properties without affecting existing data, (type = PartialReplace) replaces all values for supplied property types, but does not not affect other property types for an entity, (type = Replace) replaces all entity data with the supplied properties. - # @param character entity_set_id - # @param character type - # @param list(list(array[character])) request_body + # @param entity_set_id character + # @param type character + # @param request_body list(list(array[character])) # @return [integer] # uncomment below to test the operation diff --git a/R/tests/testthat/test_data_integrations_api.R b/R/tests/testthat/test_data_integrations_api.R index 8d50f73..192c1ce 100644 --- a/R/tests/testthat/test_data_integrations_api.R +++ b/R/tests/testthat/test_data_integrations_api.R @@ -9,7 +9,7 @@ test_that("get_entity_key_ids", { # tests for get_entity_key_ids # base path: https://api.openlattice.com # Get entity key IDs - # @param array[EntityKey] entity_key + # @param entity_key array[EntityKey] # @return [array[character]] # uncomment below to test the operation @@ -20,8 +20,8 @@ test_that("integrate_entity_and_association_data", { # tests for integrate_entity_and_association_data # base path: https://api.openlattice.com # Integrate entity and association data - # @param character detailed_results - # @param BulkDataCreation bulk_data_creation + # @param detailed_results character + # @param bulk_data_creation BulkDataCreation # @return [IntegrationResults] # uncomment below to test the operation diff --git a/R/tests/testthat/test_dataset_api.R b/R/tests/testthat/test_dataset_api.R index 31f21cf..12ded78 100644 --- a/R/tests/testthat/test_dataset_api.R +++ b/R/tests/testthat/test_dataset_api.R @@ -9,9 +9,9 @@ test_that("delete_external_database_column", { # tests for delete_external_database_column # base path: https://api.openlattice.com # Deletes an OrganizationExternalDatabaseColumn object, which represents an organization's column in an external database. This deletes both the object and the column in the database. It is a hard delete. - # @param character organization_id - # @param character table_name - # @param character column_name + # @param organization_id character + # @param table_name character + # @param column_name character # @return [Void] # uncomment below to test the operation @@ -22,8 +22,8 @@ test_that("delete_external_database_columns", { # tests for delete_external_database_columns # base path: https://api.openlattice.com # Deletes multiple OrganizationExternalDatabaseColumn objects and the columns they represent within an organization's table in an external database. It is a hard delete - # @param character organization_id - # @param character table_name + # @param organization_id character + # @param table_name character # @return [Void] # uncomment below to test the operation @@ -34,8 +34,8 @@ test_that("delete_external_database_table", { # tests for delete_external_database_table # base path: https://api.openlattice.com # Deletes an OrganizationExternalDatabaseTable object, which represents an organization's table in an external database. This deletes both the object and the table in the database. It is a hard delete. - # @param character organization_id - # @param character table_name + # @param organization_id character + # @param table_name character # @return [Void] # uncomment below to test the operation @@ -46,8 +46,8 @@ test_that("delete_external_database_tables", { # tests for delete_external_database_tables # base path: https://api.openlattice.com # Deletes multiple OrganizationExternalDatabaseTable objects and the tables they represent in the database. It is a hard delete. - # @param character organization_id - # @param array[character] request_body + # @param organization_id character + # @param request_body array[character] # @return [Void] # uncomment below to test the operation @@ -58,8 +58,8 @@ test_that("get_authorized_external_db_tables_with_column_metadata", { # tests for get_authorized_external_db_tables_with_column_metadata # base path: https://api.openlattice.com # Gets a map of all OrganizationExternalDatabaseTable objects to OrganizationExternalDatabase columns that are contained within each table. - # @param character organization_id - # @param character permission + # @param organization_id character + # @param permission character # @return [array[OrganizationExternalDatabaseTableColumnsPair]] # uncomment below to test the operation @@ -70,9 +70,9 @@ test_that("get_external_database_column", { # tests for get_external_database_column # base path: https://api.openlattice.com # Gets an OrganizationExternalDatabaseColumn object, which represents a column within an organization's table in an external database. - # @param character organization_id - # @param character table_name - # @param character column_name + # @param organization_id character + # @param table_name character + # @param column_name character # @return [OrganizationExternalDatabaseColumn] # uncomment below to test the operation @@ -83,8 +83,8 @@ test_that("get_external_database_table", { # tests for get_external_database_table # base path: https://api.openlattice.com # Gets an OrganizationExternalDatabaseTable object, which represents an organization's table in an external database. - # @param character organization_id - # @param character table_name + # @param organization_id character + # @param table_name character # @return [OrganizationExternalDatabaseTable] # uncomment below to test the operation @@ -95,8 +95,8 @@ test_that("get_external_database_table_with_column_metadata", { # tests for get_external_database_table_with_column_metadata # base path: https://api.openlattice.com # Gets an object containing an OrganizationExternalDatabaseTable object and its OrganizationExternalDatabase columns for an organization - # @param character organization_id - # @param character table_id + # @param organization_id character + # @param table_id character # @return [OrganizationExternalDatabaseTableColumnsPair] # uncomment below to test the operation @@ -107,7 +107,7 @@ test_that("get_external_database_tables", { # tests for get_external_database_tables # base path: https://api.openlattice.com # Gets all OrganizationExternalDatabaseTable objects for an organization - # @param character organization_id + # @param organization_id character # @return [array[OrganizationExternalDatabaseTable]] # uncomment below to test the operation @@ -118,7 +118,7 @@ test_that("get_external_database_tables_with_column_metadata", { # tests for get_external_database_tables_with_column_metadata # base path: https://api.openlattice.com # Gets a map of all OrganizationExternalDatabaseTable objects to OrganizationExternalDatabase columns that are contained within each table. - # @param character organization_id + # @param organization_id character # @return [array[OrganizationExternalDatabaseTableColumnsPair]] # uncomment below to test the operation @@ -129,10 +129,10 @@ test_that("update_external_database_column", { # tests for update_external_database_column # base path: https://api.openlattice.com # Updates an OrganizationExternalDatabaseTableColumn object's fields that are included within the given metadata. - # @param character organization_id - # @param character table_name - # @param character column_name - # @param MetadataUpdate metadata_update + # @param organization_id character + # @param table_name character + # @param column_name character + # @param metadata_update MetadataUpdate # @return [Void] # uncomment below to test the operation @@ -143,9 +143,9 @@ test_that("update_external_database_table", { # tests for update_external_database_table # base path: https://api.openlattice.com # Updates an OrganizationExternalDatabaseTable object's fields that are included within the given metadata. - # @param character organization_id - # @param character table_name - # @param MetadataUpdate metadata_update + # @param organization_id character + # @param table_name character + # @param metadata_update MetadataUpdate # @return [Void] # uncomment below to test the operation diff --git a/R/tests/testthat/test_edm_api.R b/R/tests/testthat/test_edm_api.R index 169ee78..74a2c85 100644 --- a/R/tests/testthat/test_edm_api.R +++ b/R/tests/testthat/test_edm_api.R @@ -9,20 +9,44 @@ test_that("add_dst_entity_type_to_association_type", { # tests for add_dst_entity_type_to_association_type # base path: https://api.openlattice.com # Update the AssociationType dst entity types for the given AssociationType UUID by adding the given EntityType UUID. - # @param character association_type_id - # @param character entity_type_id + # @param association_type_id character + # @param entity_type_id character # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) +test_that("add_entity_sets_to_linking_entity_set", { + # tests for add_entity_sets_to_linking_entity_set + # base path: https://api.openlattice.com + # Adds the entity sets as linked entity sets to the linking entity set + # @param linking_entity_set_id character + # @param request_body array[character] (optional) + # @return [integer] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("add_entity_sets_to_linking_entity_sets", { + # tests for add_entity_sets_to_linking_entity_sets + # base path: https://api.openlattice.com + # Adds the entity sets as linked entity sets to the linking entity sets + # @param linking_entity_set_id character + # @param request_body list(array[character]) + # @return [integer] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + test_that("add_primary_key_to_entity_type", { # tests for add_primary_key_to_entity_type # base path: https://api.openlattice.com # Adds a primary key with a given ID to an entity type with a given ID. - # @param character entity_type_id - # @param character property_type_id + # @param entity_type_id character + # @param property_type_id character # @return [Void] # uncomment below to test the operation @@ -33,8 +57,8 @@ test_that("add_property_type_to_entity_type", { # tests for add_property_type_to_entity_type # base path: https://api.openlattice.com # Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. - # @param character entity_type_id - # @param character property_type_id + # @param entity_type_id character + # @param property_type_id character # @return [Void] # uncomment below to test the operation @@ -45,8 +69,8 @@ test_that("add_src_entity_type_to_association_type", { # tests for add_src_entity_type_to_association_type # base path: https://api.openlattice.com # Update the AssociationType src entity types for the given AssociationType UUID by adding the given EntityType UUID. - # @param character association_type_id - # @param character entity_type_id + # @param association_type_id character + # @param entity_type_id character # @return [Void] # uncomment below to test the operation @@ -57,7 +81,7 @@ test_that("create_association_type", { # tests for create_association_type # base path: https://api.openlattice.com # Creates a new AssociationType definition, if it doesn't exist. - # @param array[AssociationType] association_type + # @param association_type array[AssociationType] # @return [Void] # uncomment below to test the operation @@ -68,8 +92,19 @@ test_that("create_empty_schema", { # tests for create_empty_schema # base path: https://api.openlattice.com # Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. - # @param character namespace - # @param character name + # @param namespace character + # @param name character + # @return [Void] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("create_entity_sets", { + # tests for create_entity_sets + # base path: https://api.openlattice.com + # Creates new EntitySet definitions if they don't exist. + # @param entity_set array[EntitySet] # @return [Void] # uncomment below to test the operation @@ -80,7 +115,7 @@ test_that("create_entity_type", { # tests for create_entity_type # base path: https://api.openlattice.com # Creates a new EntityType definition, if it doesn't exist. - # @param EntityType entity_type + # @param entity_type EntityType # @return [Void] # uncomment below to test the operation @@ -91,7 +126,7 @@ test_that("create_property_type", { # tests for create_property_type # base path: https://api.openlattice.com # Creates a new PropertyType definition, if it doesn\"t exist. - # @param PropertyType property_type + # @param property_type PropertyType # @return [Void] # uncomment below to test the operation @@ -102,7 +137,7 @@ test_that("create_schema_if_not_exists", { # tests for create_schema_if_not_exists # base path: https://api.openlattice.com # Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. - # @param Schema schema + # @param schema Schema # @return [Void] # uncomment below to test the operation @@ -113,7 +148,18 @@ test_that("delete_association_type", { # tests for delete_association_type # base path: https://api.openlattice.com # Deletes the AssociationType definition for the given AssociationType UUID. - # @param character association_type_id + # @param association_type_id character + # @return [Void] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("delete_entity_set", { + # tests for delete_entity_set + # base path: https://api.openlattice.com + # Deletes the EntitySet definition for the given EntitySet UUID. + # @param entity_set_id character # @return [Void] # uncomment below to test the operation @@ -124,7 +170,7 @@ test_that("delete_entity_type", { # tests for delete_entity_type # base path: https://api.openlattice.com # Deletes the EntityType definition for the given EntityType UUID. - # @param character entity_type_id + # @param entity_type_id character # @return [Void] # uncomment below to test the operation @@ -135,7 +181,7 @@ test_that("delete_property_type", { # tests for delete_property_type # base path: https://api.openlattice.com # Deletes the PropertyType definition for the given PropertyType UUID. - # @param character property_type_id + # @param property_type_id character # @return [Void] # uncomment below to test the operation @@ -146,7 +192,7 @@ test_that("force_delete_property_type", { # tests for force_delete_property_type # base path: https://api.openlattice.com # Deletes the PropertyType definition for the given PropertyType UUID regardless of whether or not there is data associated with it. - # @param character property_type_id + # @param property_type_id character # @return [Void] # uncomment below to test the operation @@ -157,8 +203,8 @@ test_that("force_remove_property_type_from_entity_type", { # tests for force_remove_property_type_from_entity_type # base path: https://api.openlattice.com # Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID, regardless of whether or not there is data associated with the entity type. - # @param character entity_type_id - # @param character property_type_id + # @param entity_type_id character + # @param property_type_id character # @return [Void] # uncomment below to test the operation @@ -179,18 +225,39 @@ test_that("get_all_available_association_types", { # tests for get_all_available_association_types # base path: https://api.openlattice.com # Get all available associations for the given AssociationType UUID. - # @param character association_type_id + # @param association_type_id character # @return [array[AssociationType]] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) +test_that("get_all_entity_set_property_metadata", { + # tests for get_all_entity_set_property_metadata + # base path: https://api.openlattice.com + # Get all entity set property metadata. + # @param entity_set_id character + # @return [list(EntitySetPropertyMetaData)] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("get_all_entity_sets", { + # tests for get_all_entity_sets + # base path: https://api.openlattice.com + # Get all EntitySet definitions. + # @return [array[EntitySet]] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + test_that("get_all_entity_type_property_metadata", { # tests for get_all_entity_type_property_metadata # base path: https://api.openlattice.com # Get all EntityType propertyType metadata - # @param character entity_type_id + # @param entity_type_id character # @return [list(EntityTypePropertyMetadata)] # uncomment below to test the operation @@ -221,7 +288,7 @@ test_that("get_all_property_types_in_namespace", { # tests for get_all_property_types_in_namespace # base path: https://api.openlattice.com # Gets all PropertyType definitions under the given namespace. - # @param character namespace + # @param namespace character # @return [array[PropertyType]] # uncomment below to test the operation @@ -242,7 +309,7 @@ test_that("get_association_type", { # tests for get_association_type # base path: https://api.openlattice.com # Get the AssociationType definition for the given AssociationType UUID. - # @param character association_type_id + # @param association_type_id character # @return [AssociationType] # uncomment below to test the operation @@ -253,7 +320,7 @@ test_that("get_association_type_details", { # tests for get_association_type_details # base path: https://api.openlattice.com # Get details about the AssociationType for the given AssociationType UUID. - # @param character association_type_id + # @param association_type_id character # @return [AssociationType] # uncomment below to test the operation @@ -274,18 +341,63 @@ test_that("get_entity_data_model_diff", { # tests for get_entity_data_model_diff # base path: https://api.openlattice.com # Gets the changes between the existing entity data model and the entity data model passed in, including schemas, association types, entity types, and property types. - # @param EDMdiff ed_mdiff + # @param ed_mdiff EDMdiff # @return [EDMdiff] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) +test_that("get_entity_set", { + # tests for get_entity_set + # base path: https://api.openlattice.com + # Get the EntitySet definition for the given EntitySet UUID. + # @param entity_set_id character + # @return [EntitySet] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("get_entity_set_id", { + # tests for get_entity_set_id + # base path: https://api.openlattice.com + # Gets the EntitySet UUID for the given EntitySet name. + # @param entity_set_name character + # @return [character] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("get_entity_set_ids", { + # tests for get_entity_set_ids + # base path: https://api.openlattice.com + # Get IDs for entity sets given their names. + # @param request_body array[character] (optional) + # @return [list(character)] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("get_entity_set_property_metadata", { + # tests for get_entity_set_property_metadata + # base path: https://api.openlattice.com + # Get specified property type metadata for an entity set. + # @param entity_set_id character + # @param property_type_id character + # @return [EntitySetPropertyMetaData] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + test_that("get_entity_type", { # tests for get_entity_type # base path: https://api.openlattice.com # Gets the EntityType definition for the given EntityType UUID. - # @param character entity_type_id + # @param entity_type_id character # @return [EntityType] # uncomment below to test the operation @@ -296,7 +408,7 @@ test_that("get_entity_type_hierarchy", { # tests for get_entity_type_hierarchy # base path: https://api.openlattice.com # Get the EntityType hierarchy for the given EntityType UUID. - # @param character entity_type_id + # @param entity_type_id character # @return [Void] # uncomment below to test the operation @@ -307,8 +419,8 @@ test_that("get_entity_type_id", { # tests for get_entity_type_id # base path: https://api.openlattice.com # Gets the EntityType UUID for the given EntityType FQN. - # @param character namespace - # @param character name + # @param namespace character + # @param name character # @return [character] # uncomment below to test the operation @@ -319,19 +431,30 @@ test_that("get_entity_type_property_metadata", { # tests for get_entity_type_property_metadata # base path: https://api.openlattice.com # Get EntityType propertyType metadata - # @param character entity_type_id - # @param character property_type_id + # @param entity_type_id character + # @param property_type_id character # @return [EntityTypePropertyMetadata] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) +test_that("get_property_metadata_for_entity_sets", { + # tests for get_property_metadata_for_entity_sets + # base path: https://api.openlattice.com + # Get property metadata for entity sets. + # @param request_body array[character] (optional) + # @return [list(list(EntitySetPropertyMetaData))] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + test_that("get_property_type", { # tests for get_property_type # base path: https://api.openlattice.com # Gets the PropertyType definition for the given PropertyType UUID. - # @param character property_type_id + # @param property_type_id character # @return [PropertyType] # uncomment below to test the operation @@ -342,19 +465,30 @@ test_that("get_property_type_id", { # tests for get_property_type_id # base path: https://api.openlattice.com # Gets the PropertyType UUID for the given PropertyType FQN. - # @param character namespace - # @param character name + # @param namespace character + # @param name character # @return [character] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) +test_that("get_property_types_for_entity_set", { + # tests for get_property_types_for_entity_set + # base path: https://api.openlattice.com + # Get all Property Types for entity set + # @param entity_set_id character + # @return [list(PropertyType)] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + test_that("get_property_usage_summary", { # tests for get_property_usage_summary # base path: https://api.openlattice.com # Get Property Usage Summary for property with given ID. - # @param character property_type_id + # @param property_type_id character # @return [array[PropertyUsageSummary]] # uncomment below to test the operation @@ -365,9 +499,9 @@ test_that("get_schema_contents", { # tests for get_schema_contents # base path: https://api.openlattice.com # Gets the schema contents for a corresponding namespace and name. - # @param character namespace - # @param character name - # @param character file_type (optional) + # @param namespace character + # @param name character + # @param file_type character (optional) # @return [Schema] # uncomment below to test the operation @@ -388,7 +522,7 @@ test_that("get_schemas_in_namespace", { # tests for get_schemas_in_namespace # base path: https://api.openlattice.com # Gets all schemas associated with a given namespace and accessible by the caller. - # @param character namespace + # @param namespace character # @return [array[Schema]] # uncomment below to test the operation @@ -399,20 +533,44 @@ test_that("remove_dst_entity_type_from_association_type", { # tests for remove_dst_entity_type_from_association_type # base path: https://api.openlattice.com # Updates the AssociationType dst entity types for the given AssociationType UUID by removing the given EntityType UUID. - # @param character association_type_id - # @param character entity_type_id + # @param association_type_id character + # @param entity_type_id character # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) +test_that("remove_entity_sets_from_linking_entity_set", { + # tests for remove_entity_sets_from_linking_entity_set + # base path: https://api.openlattice.com + # Removes/unlinks the linked entity sets from the linking entity set + # @param linking_entity_set_id character + # @param request_body array[character] (optional) + # @return [integer] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("remove_entity_sets_from_linking_entity_sets", { + # tests for remove_entity_sets_from_linking_entity_sets + # base path: https://api.openlattice.com + # Removes/unlinks the linked entity sets from the linking entity set + # @param linking_entity_set_id character + # @param request_body list(array[character]) + # @return [integer] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + test_that("remove_primary_key_from_entity_type", { # tests for remove_primary_key_from_entity_type # base path: https://api.openlattice.com # Removes a primary key with a given ID from an entity type with a given ID. - # @param character entity_type_id - # @param character property_type_id + # @param entity_type_id character + # @param property_type_id character # @return [Void] # uncomment below to test the operation @@ -423,8 +581,8 @@ test_that("remove_property_type_from_entity_type", { # tests for remove_property_type_from_entity_type # base path: https://api.openlattice.com # Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. - # @param character entity_type_id - # @param character property_type_id + # @param entity_type_id character + # @param property_type_id character # @return [Void] # uncomment below to test the operation @@ -435,8 +593,8 @@ test_that("remove_src_entity_type_from_association_type", { # tests for remove_src_entity_type_from_association_type # base path: https://api.openlattice.com # Updates the AssociationType src entity types for the given AssociationType UUID by removing the given EntityType UUID. - # @param character association_type_id - # @param character entity_type_id + # @param association_type_id character + # @param entity_type_id character # @return [Void] # uncomment below to test the operation @@ -447,8 +605,8 @@ test_that("reorder_property_types_in_entity_type", { # tests for reorder_property_types_in_entity_type # base path: https://api.openlattice.com # Updates the EntityType definition for the given EntityType UUID by reordering its properties as specified by the provided list. - # @param character entity_type_id - # @param array[character] property_type_ids + # @param entity_type_id character + # @param property_type_ids array[character] # @return [Void] # uncomment below to test the operation @@ -459,7 +617,32 @@ test_that("update_entity_data_model", { # tests for update_entity_data_model # base path: https://api.openlattice.com # Updates the entity data model, including schemas, entity types, association types, and property types. - # @param EDM EDM + # @param EDM EDM + # @return [Void] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("update_entity_set_meta_data", { + # tests for update_entity_set_meta_data + # base path: https://api.openlattice.com + # Updates the EntitySet definition for the given EntitySet UUID with the given metadata. + # @param entity_set_id character + # @param metadata_update MetadataUpdate + # @return [integer] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("update_entity_set_property_metadata", { + # tests for update_entity_set_property_metadata + # base path: https://api.openlattice.com + # Updates the property type metadata for the given entity set. + # @param entity_set_id character + # @param property_type_id character + # @param metadata_update MetadataUpdate # @return [Void] # uncomment below to test the operation @@ -470,8 +653,8 @@ test_that("update_entity_type_meta_data", { # tests for update_entity_type_meta_data # base path: https://api.openlattice.com # Updates the EntityType definition for the given EntityType UUID with the given metadata. - # @param character entity_type_id - # @param MetadataUpdate metadata_update + # @param entity_type_id character + # @param metadata_update MetadataUpdate # @return [Void] # uncomment below to test the operation @@ -482,8 +665,8 @@ test_that("update_entity_type_property_metadata", { # tests for update_entity_type_property_metadata # base path: https://api.openlattice.com # Update EntityType Property metadata - # @param character entity_type_id - # @param character property_type_id + # @param entity_type_id character + # @param property_type_id character # @return [Void] # uncomment below to test the operation @@ -494,8 +677,8 @@ test_that("update_property_type_meta_data", { # tests for update_property_type_meta_data # base path: https://api.openlattice.com # Updates the PropertyType definition for the given PropertyType UUID with the given metadata. - # @param character property_type_id - # @param MetadataUpdate metadata_update + # @param property_type_id character + # @param metadata_update MetadataUpdate # @return [Void] # uncomment below to test the operation @@ -506,9 +689,9 @@ test_that("update_schema", { # tests for update_schema # base path: https://api.openlattice.com # Edits the schema contents for a corresponding namespace and name. - # @param character namespace - # @param character name - # @param EdmRequest edm_request + # @param namespace character + # @param name character + # @param edm_request EdmRequest # @return [Void] # uncomment below to test the operation diff --git a/R/tests/testthat/test_entity_sets_api.R b/R/tests/testthat/test_entity_sets_api.R index 89e5972..3032a31 100644 --- a/R/tests/testthat/test_entity_sets_api.R +++ b/R/tests/testthat/test_entity_sets_api.R @@ -9,8 +9,8 @@ test_that("add_entity_sets_to_linking_entity_set", { # tests for add_entity_sets_to_linking_entity_set # base path: https://api.openlattice.com # Adds the entity sets as linked entity sets to the linking entity set - # @param character linking_entity_set_id - # @param array[character] request_body (optional) + # @param linking_entity_set_id character + # @param request_body array[character] (optional) # @return [integer] # uncomment below to test the operation @@ -21,8 +21,8 @@ test_that("add_entity_sets_to_linking_entity_sets", { # tests for add_entity_sets_to_linking_entity_sets # base path: https://api.openlattice.com # Adds the entity sets as linked entity sets to the linking entity sets - # @param character linking_entity_set_id - # @param list(array[character]) request_body + # @param linking_entity_set_id character + # @param request_body list(array[character]) # @return [integer] # uncomment below to test the operation @@ -33,7 +33,7 @@ test_that("create_entity_sets", { # tests for create_entity_sets # base path: https://api.openlattice.com # Creates new EntitySet definitions if they don't exist. - # @param array[EntitySet] entity_set + # @param entity_set array[EntitySet] # @return [Void] # uncomment below to test the operation @@ -44,7 +44,7 @@ test_that("delete_entity_set", { # tests for delete_entity_set # base path: https://api.openlattice.com # Deletes the EntitySet definition for the given EntitySet UUID. - # @param character entity_set_id + # @param entity_set_id character # @return [Void] # uncomment below to test the operation @@ -55,7 +55,7 @@ test_that("get_all_entity_set_property_metadata", { # tests for get_all_entity_set_property_metadata # base path: https://api.openlattice.com # Get all entity set property metadata. - # @param character entity_set_id + # @param entity_set_id character # @return [list(EntitySetPropertyMetaData)] # uncomment below to test the operation @@ -76,7 +76,7 @@ test_that("get_entity_set", { # tests for get_entity_set # base path: https://api.openlattice.com # Get the EntitySet definition for the given EntitySet UUID. - # @param character entity_set_id + # @param entity_set_id character # @return [EntitySet] # uncomment below to test the operation @@ -87,7 +87,7 @@ test_that("get_entity_set_id", { # tests for get_entity_set_id # base path: https://api.openlattice.com # Gets the EntitySet UUID for the given EntitySet name. - # @param character entity_set_name + # @param entity_set_name character # @return [character] # uncomment below to test the operation @@ -98,7 +98,7 @@ test_that("get_entity_set_ids", { # tests for get_entity_set_ids # base path: https://api.openlattice.com # Get IDs for entity sets given their names. - # @param array[character] request_body (optional) + # @param request_body array[character] (optional) # @return [list(character)] # uncomment below to test the operation @@ -109,8 +109,8 @@ test_that("get_entity_set_property_metadata", { # tests for get_entity_set_property_metadata # base path: https://api.openlattice.com # Get specified property type metadata for an entity set. - # @param character entity_set_id - # @param character property_type_id + # @param entity_set_id character + # @param property_type_id character # @return [EntitySetPropertyMetaData] # uncomment below to test the operation @@ -121,7 +121,7 @@ test_that("get_property_metadata_for_entity_sets", { # tests for get_property_metadata_for_entity_sets # base path: https://api.openlattice.com # Get property metadata for entity sets. - # @param array[character] request_body (optional) + # @param request_body array[character] (optional) # @return [list(list(EntitySetPropertyMetaData))] # uncomment below to test the operation @@ -132,7 +132,7 @@ test_that("get_property_types_for_entity_set", { # tests for get_property_types_for_entity_set # base path: https://api.openlattice.com # Get all Property Types for entity set - # @param character entity_set_id + # @param entity_set_id character # @return [list(PropertyType)] # uncomment below to test the operation @@ -143,8 +143,8 @@ test_that("remove_entity_sets_from_linking_entity_set", { # tests for remove_entity_sets_from_linking_entity_set # base path: https://api.openlattice.com # Removes/unlinks the linked entity sets from the linking entity set - # @param character linking_entity_set_id - # @param array[character] request_body (optional) + # @param linking_entity_set_id character + # @param request_body array[character] (optional) # @return [integer] # uncomment below to test the operation @@ -155,8 +155,8 @@ test_that("remove_entity_sets_from_linking_entity_sets", { # tests for remove_entity_sets_from_linking_entity_sets # base path: https://api.openlattice.com # Removes/unlinks the linked entity sets from the linking entity set - # @param character linking_entity_set_id - # @param list(array[character]) request_body + # @param linking_entity_set_id character + # @param request_body list(array[character]) # @return [integer] # uncomment below to test the operation @@ -167,8 +167,8 @@ test_that("update_entity_set_meta_data", { # tests for update_entity_set_meta_data # base path: https://api.openlattice.com # Updates the EntitySet definition for the given EntitySet UUID with the given metadata. - # @param character entity_set_id - # @param MetadataUpdate metadata_update + # @param entity_set_id character + # @param metadata_update MetadataUpdate # @return [integer] # uncomment below to test the operation @@ -179,9 +179,9 @@ test_that("update_entity_set_property_metadata", { # tests for update_entity_set_property_metadata # base path: https://api.openlattice.com # Updates the property type metadata for the given entity set. - # @param character entity_set_id - # @param character property_type_id - # @param MetadataUpdate metadata_update + # @param entity_set_id character + # @param property_type_id character + # @param metadata_update MetadataUpdate # @return [Void] # uncomment below to test the operation diff --git a/R/tests/testthat/test_linking_api.R b/R/tests/testthat/test_linking_api.R index ba17770..15c1c32 100644 --- a/R/tests/testthat/test_linking_api.R +++ b/R/tests/testthat/test_linking_api.R @@ -9,7 +9,7 @@ test_that("add_linking_feedback", { # tests for add_linking_feedback # base path: https://api.openlattice.com # Submits feedbacks for a given linking entity set and linking id in a batch format. - # @param LinkingFeedback linking_feedback + # @param linking_feedback LinkingFeedback # @return [integer] # uncomment below to test the operation @@ -20,7 +20,7 @@ test_that("delete_linking_feedback", { # tests for delete_linking_feedback # base path: https://api.openlattice.com # Deletes linking feedback - # @param EntityKeyPair entity_key_pair + # @param entity_key_pair EntityKeyPair # @return [integer] # uncomment below to test the operation @@ -51,7 +51,7 @@ test_that("get_linking_feedback_with_features", { # tests for get_linking_feedback_with_features # base path: https://api.openlattice.com # Returns the feedback on the given entity pair along with their features - # @param EntityKeyPair entity_key_pair + # @param entity_key_pair EntityKeyPair # @return [EntityLinkingFeatures] # uncomment below to test the operation @@ -62,8 +62,8 @@ test_that("get_linking_feedbacks_on_entity", { # tests for get_linking_feedbacks_on_entity # base path: https://api.openlattice.com # Returns positive/negative/all linking feedbacks on the given entity. - # @param character feedback_type - # @param EntityDataKey entity_data_key + # @param feedback_type character + # @param entity_data_key EntityDataKey # @return [array[EntityLinkingFeedback]] # uncomment below to test the operation diff --git a/R/tests/testthat/test_organizations_api.R b/R/tests/testthat/test_organizations_api.R index 86a227c..3ed096b 100644 --- a/R/tests/testthat/test_organizations_api.R +++ b/R/tests/testthat/test_organizations_api.R @@ -9,8 +9,8 @@ test_that("add_member", { # tests for add_member # base path: https://api.openlattice.com # Add member to an organization - # @param character organization_id - # @param character user_id + # @param organization_id character + # @param user_id character # @return [Void] # uncomment below to test the operation @@ -21,9 +21,9 @@ test_that("add_role_to_user", { # tests for add_role_to_user # base path: https://api.openlattice.com # Add a role to a user - # @param character organization_id - # @param character role_id - # @param character user_id + # @param organization_id character + # @param role_id character + # @param user_id character # @return [Void] # uncomment below to test the operation @@ -34,8 +34,8 @@ test_that("assemble_entity_sets", { # tests for assemble_entity_sets # base path: https://api.openlattice.com # Materializes entity sets into the organization database. - # @param character organization_id - # @param list(integer) request_body + # @param organization_id character + # @param request_body list(integer) # @return [list(array[character])] # uncomment below to test the operation @@ -46,7 +46,7 @@ test_that("create_organization_if_not_exists", { # tests for create_organization_if_not_exists # base path: https://api.openlattice.com # Creates an organization if it doesn't exist. - # @param Organization organization + # @param organization Organization # @return [character] # uncomment below to test the operation @@ -57,7 +57,7 @@ test_that("create_role", { # tests for create_role # base path: https://api.openlattice.com # Creates role - # @param Role role + # @param role Role # @return [character] # uncomment below to test the operation @@ -68,8 +68,8 @@ test_that("delete_role", { # tests for delete_role # base path: https://api.openlattice.com # Remove role for an organization - # @param character organization_id - # @param character role_id + # @param organization_id character + # @param role_id character # @return [Void] # uncomment below to test the operation @@ -80,7 +80,7 @@ test_that("destroy_organization", { # tests for destroy_organization # base path: https://api.openlattice.com # Remove an organization from the organizationId - # @param character organization_id + # @param organization_id character # @return [Void] # uncomment below to test the operation @@ -91,8 +91,8 @@ test_that("get_all_users_of_role", { # tests for get_all_users_of_role # base path: https://api.openlattice.com # Get members of a role for an organization from a roleId - # @param character organization_id - # @param character role_id + # @param organization_id character + # @param role_id character # @return [array[Auth0userBasic]] # uncomment below to test the operation @@ -103,7 +103,7 @@ test_that("get_auto_approved_email_domains", { # tests for get_auto_approved_email_domains # base path: https://api.openlattice.com # Get auto-approved email domains - # @param character organization_id + # @param organization_id character # @return [array[character]] # uncomment below to test the operation @@ -114,8 +114,8 @@ test_that("get_flagged_organization_entity_sets", { # tests for get_flagged_organization_entity_sets # base path: https://api.openlattice.com # Get the entity sets for an organization for a certain flag - # @param character organization_id - # @param list(array[character]) request_body + # @param organization_id character + # @param request_body list(array[character]) # @return [array[list(array[character])]] # uncomment below to test the operation @@ -126,7 +126,7 @@ test_that("get_members", { # tests for get_members # base path: https://api.openlattice.com # Get members of a certain organization - # @param character organization_id + # @param organization_id character # @return [array[OrganizationMember]] # uncomment below to test the operation @@ -137,7 +137,7 @@ test_that("get_organization", { # tests for get_organization # base path: https://api.openlattice.com # Get an organization from the organizationId - # @param character organization_id + # @param organization_id character # @return [Organization] # uncomment below to test the operation @@ -148,7 +148,7 @@ test_that("get_organization_entity_sets", { # tests for get_organization_entity_sets # base path: https://api.openlattice.com # Get the entity sets for an organization for a certain filter - # @param character organization_id + # @param organization_id character # @return [list(array[character])] # uncomment below to test the operation @@ -159,7 +159,7 @@ test_that("get_organization_integration_account", { # tests for get_organization_integration_account # base path: https://api.openlattice.com # Get the integrations account for an organization from the organizationId - # @param character organization_id + # @param organization_id character # @return [InlineResponse200] # uncomment below to test the operation @@ -180,8 +180,8 @@ test_that("get_role", { # tests for get_role # base path: https://api.openlattice.com # Get role for an organization from a roleId - # @param character organization_id - # @param character role_id + # @param organization_id character + # @param role_id character # @return [Role] # uncomment below to test the operation @@ -192,7 +192,7 @@ test_that("get_roles", { # tests for get_roles # base path: https://api.openlattice.com # Get roles for an organization - # @param character organization_id + # @param organization_id character # @return [array[Role]] # uncomment below to test the operation @@ -203,8 +203,8 @@ test_that("refresh_data_changes", { # tests for refresh_data_changes # base path: https://api.openlattice.com # Refreshes the requested materialized entity set with data changes in the organization. - # @param character organization_id - # @param character entity_set_id + # @param organization_id character + # @param entity_set_id character # @return [Void] # uncomment below to test the operation @@ -215,8 +215,8 @@ test_that("remove_auto_approved_email_domains", { # tests for remove_auto_approved_email_domains # base path: https://api.openlattice.com # Remove auto-approved email domains - # @param character organization_id - # @param array[character] request_body + # @param organization_id character + # @param request_body array[character] # @return [Void] # uncomment below to test the operation @@ -227,8 +227,8 @@ test_that("remove_member", { # tests for remove_member # base path: https://api.openlattice.com # Remove member from an organization - # @param character organization_id - # @param character user_id + # @param organization_id character + # @param user_id character # @return [Void] # uncomment below to test the operation @@ -239,9 +239,9 @@ test_that("remove_role_from_user", { # tests for remove_role_from_user # base path: https://api.openlattice.com # Remove a role from a user - # @param character organization_id - # @param character role_id - # @param character user_id + # @param organization_id character + # @param role_id character + # @param user_id character # @return [Void] # uncomment below to test the operation @@ -252,8 +252,8 @@ test_that("set_auto_approved_email_domain", { # tests for set_auto_approved_email_domain # base path: https://api.openlattice.com # Set auto-approved email domains - # @param character organization_id - # @param array[character] request_body + # @param organization_id character + # @param request_body array[character] # @return [Void] # uncomment below to test the operation @@ -264,8 +264,8 @@ test_that("synchronize_edm_changes", { # tests for synchronize_edm_changes # base path: https://api.openlattice.com # Synchronizes EDM changes to the requested materialized entity set in the organization. - # @param character organization_id - # @param character entity_set_id + # @param organization_id character + # @param entity_set_id character # @return [Void] # uncomment below to test the operation @@ -276,8 +276,8 @@ test_that("update_description", { # tests for update_description # base path: https://api.openlattice.com # Update the organization description - # @param character organization_id - # @param character body + # @param organization_id character + # @param body character # @return [Void] # uncomment below to test the operation @@ -288,9 +288,9 @@ test_that("update_role_description", { # tests for update_role_description # base path: https://api.openlattice.com # Update role description for an organization from a roleId - # @param character organization_id - # @param character role_id - # @param character body + # @param organization_id character + # @param role_id character + # @param body character # @return [Void] # uncomment below to test the operation @@ -301,9 +301,9 @@ test_that("update_role_title", { # tests for update_role_title # base path: https://api.openlattice.com # Update role title for an organization from a roleId - # @param character organization_id - # @param character role_id - # @param character body + # @param organization_id character + # @param role_id character + # @param body character # @return [Void] # uncomment below to test the operation @@ -314,8 +314,8 @@ test_that("update_title", { # tests for update_title # base path: https://api.openlattice.com # Update the organization title - # @param character organization_id - # @param character body + # @param organization_id character + # @param body character # @return [Void] # uncomment below to test the operation diff --git a/R/tests/testthat/test_permissions_api.R b/R/tests/testthat/test_permissions_api.R index aefd4a0..656dcd7 100644 --- a/R/tests/testthat/test_permissions_api.R +++ b/R/tests/testthat/test_permissions_api.R @@ -9,7 +9,7 @@ test_that("get_acl", { # tests for get_acl # base path: https://api.openlattice.com # Get the ACL for the given ACL Key, only if the user is the owner of the ACL Key. - # @param array[character] request_body + # @param request_body array[character] # @return [Acl] # uncomment below to test the operation @@ -20,7 +20,7 @@ test_that("update_acl", { # tests for update_acl # base path: https://api.openlattice.com # Updates the ACL for a particular ACL Key, only if the user is the owner of the ACL Key. - # @param AclData acl_data + # @param acl_data AclData # @return [Void] # uncomment below to test the operation diff --git a/R/tests/testthat/test_principal_api.R b/R/tests/testthat/test_principal_api.R index 6d82b99..c861a73 100644 --- a/R/tests/testthat/test_principal_api.R +++ b/R/tests/testthat/test_principal_api.R @@ -39,7 +39,7 @@ test_that("get_user", { # tests for get_user # base path: https://api.openlattice.com # Get the user for the given id. - # @param character user_id + # @param user_id character # @return [Auth0userBasic] # uncomment below to test the operation @@ -50,7 +50,7 @@ test_that("search_all_users", { # tests for search_all_users # base path: https://api.openlattice.com # Get the user id for the given search. - # @param character search_query + # @param search_query character # @return [list(Auth0userBasic)] # uncomment below to test the operation @@ -61,7 +61,7 @@ test_that("search_all_users_by_email", { # tests for search_all_users_by_email # base path: https://api.openlattice.com # Get the user id for the given email address. - # @param character email_address + # @param email_address character # @return [list(Auth0userBasic)] # uncomment below to test the operation diff --git a/R/tests/testthat/test_search_api.R b/R/tests/testthat/test_search_api.R index 9cfbf92..32e0bc7 100644 --- a/R/tests/testthat/test_search_api.R +++ b/R/tests/testthat/test_search_api.R @@ -9,8 +9,8 @@ test_that("execute_advanced_entity_set_data_query", { # tests for execute_advanced_entity_set_data_query # base path: https://api.openlattice.com # Executes a search over the data of a given entity set to find rows that match the search term - # @param character entity_set_id - # @param AdvancedSearch advanced_search + # @param entity_set_id character + # @param advanced_search AdvancedSearch # @return [DataSearchResult] # uncomment below to test the operation @@ -21,7 +21,7 @@ test_that("execute_app_search", { # tests for execute_app_search # base path: https://api.openlattice.com # Executes a search over all apps to find ones that match the given search term - # @param SearchTerm search_term + # @param search_term SearchTerm # @return [SearchResult] # uncomment below to test the operation @@ -32,7 +32,7 @@ test_that("execute_app_type_search", { # tests for execute_app_type_search # base path: https://api.openlattice.com # Executes a search over all app types to find ones that match the given search term - # @param SearchTerm search_term + # @param search_term SearchTerm # @return [SearchResult] # uncomment below to test the operation @@ -43,7 +43,7 @@ test_that("execute_association_type_search", { # tests for execute_association_type_search # base path: https://api.openlattice.com # Executes a search over all association types to find ones that match the given search term - # @param SearchTerm search_term + # @param search_term SearchTerm # @return [SearchResult] # uncomment below to test the operation @@ -54,8 +54,8 @@ test_that("execute_entity_neighbor_search", { # tests for execute_entity_neighbor_search # base path: https://api.openlattice.com # Executes a search for all neighbors of an entity that are connected by an association - # @param character entity_set_id - # @param character entity_key_id + # @param entity_set_id character + # @param entity_key_id character # @return [array[NeighborEntityDetails]] # uncomment below to test the operation @@ -66,8 +66,8 @@ test_that("execute_entity_neighbor_search_bulk", { # tests for execute_entity_neighbor_search_bulk # base path: https://api.openlattice.com # Executes a search for all neighbors of multiple entities of the same entity set that are connected by an association - # @param character entity_set_id - # @param array[character] request_body + # @param entity_set_id character + # @param request_body array[character] # @return [list(array[NeighborEntityDetails])] # uncomment below to test the operation @@ -78,7 +78,7 @@ test_that("execute_entity_set_collection_search", { # tests for execute_entity_set_collection_search # base path: https://api.openlattice.com # Executes a search over all EntitySetCollections to find ones that match the given search term - # @param SearchTerm search_term + # @param search_term SearchTerm # @return [SearchResult] # uncomment below to test the operation @@ -89,8 +89,8 @@ test_that("execute_entity_set_data_query", { # tests for execute_entity_set_data_query # base path: https://api.openlattice.com # Executes a search over the data of a given entity set to find rows that match the search term - # @param character entity_set_id - # @param SearchTerm search_term A JSON object that contains three parameters, \"start\", which specifies the hit number to start returning results on for paging, \"maxHits\", which specifies the maximum number of hits to return, and \"searchTerm\", which is the search term results will match on. + # @param entity_set_id character + # @param search_term SearchTerm A JSON object that contains three parameters, \"start\", which specifies the hit number to start returning results on for paging, \"maxHits\", which specifies the maximum number of hits to return, and \"searchTerm\", which is the search term results will match on. # @return [DataSearchResult] # uncomment below to test the operation @@ -101,7 +101,7 @@ test_that("execute_entity_set_keyword_query", { # tests for execute_entity_set_keyword_query # base path: https://api.openlattice.com # The query, entityType, and propertyTypes params are all optional, but at least one must be specified otherwise an error will be thrown. All specified params are required to be present in each entity set returned. If entityType and propertyTypes are both specified, the propertyTypes param will be ignored. - # @param Search search + # @param search Search # @return [SearchResult] # uncomment below to test the operation @@ -112,7 +112,7 @@ test_that("execute_entity_type_collection_search", { # tests for execute_entity_type_collection_search # base path: https://api.openlattice.com # Executes a search over all EntityTypeCollections to find ones that match the given search term - # @param SearchTerm search_term + # @param search_term SearchTerm # @return [SearchResult] # uncomment below to test the operation @@ -123,7 +123,7 @@ test_that("execute_entity_type_search", { # tests for execute_entity_type_search # base path: https://api.openlattice.com # Executes a search over all entity types to find ones that match the given search term - # @param SearchTerm search_term + # @param search_term SearchTerm # @return [SearchResult] # uncomment below to test the operation @@ -134,8 +134,8 @@ test_that("execute_filtered_entity_neighbor_id_search", { # tests for execute_filtered_entity_neighbor_id_search # base path: https://api.openlattice.com # Executes a search for all neighbors of multiple entities of the same entity set that are connected by an association and returns a simple version of the neighborDetails - # @param character entity_set_id - # @param NeighborSearchFilter neighbor_search_filter + # @param entity_set_id character + # @param neighbor_search_filter NeighborSearchFilter # @return [list(list(list(array[NeighborEntityIds])))] # uncomment below to test the operation @@ -146,8 +146,8 @@ test_that("execute_filtered_entity_neighbor_search", { # tests for execute_filtered_entity_neighbor_search # base path: https://api.openlattice.com # Executes a search for all neighbors of multiple entities of the same entity set that are connected by an association - # @param character entity_set_id - # @param NeighborSearchFilter neighbor_search_filter + # @param entity_set_id character + # @param neighbor_search_filter NeighborSearchFilter # @return [list(array[NeighborEntityDetails])] # uncomment below to test the operation @@ -158,7 +158,7 @@ test_that("execute_fqn_property_type_search", { # tests for execute_fqn_property_type_search # base path: https://api.openlattice.com # Executes a search over all property types to find ones that match the given name and namespace, including partial matches - # @param SearchTerm search_term + # @param search_term SearchTerm # @return [SearchResult] # uncomment below to test the operation @@ -169,7 +169,7 @@ test_that("execute_organization_search", { # tests for execute_organization_search # base path: https://api.openlattice.com # Executes a search over all organizations to find ones that match the given search term - # @param SearchTerm search_term + # @param search_term SearchTerm # @return [SearchResult] # uncomment below to test the operation @@ -180,7 +180,7 @@ test_that("execute_property_type_search", { # tests for execute_property_type_search # base path: https://api.openlattice.com # Executes a search over all property types to find ones that match the given search term - # @param SearchTerm search_term + # @param search_term SearchTerm # @return [SearchResult] # uncomment below to test the operation @@ -191,8 +191,8 @@ test_that("get_entity_sets", { # tests for get_entity_sets # base path: https://api.openlattice.com # Executes a search over all existing entity sets to populate the home page. The path parameters instruct which page to return and how large the page should be. - # @param integer start The first result number to return - # @param integer num_results The total number of results to return + # @param start integer The first result number to return + # @param num_results integer The total number of results to return # @return [array[SearchResult]] # uncomment below to test the operation @@ -213,7 +213,7 @@ test_that("search_entity_set_data", { # tests for search_entity_set_data # base path: https://api.openlattice.com # Executes a search over the data of a given entity set to find rows that match the search term - # @param SearchConstraints search_constraints + # @param search_constraints SearchConstraints # @return [DataSearchResult] # uncomment below to test the operation diff --git a/R/tests/testthat/test_shuttle_api.R b/R/tests/testthat/test_shuttle_api.R index 45d26d2..ceea950 100644 --- a/R/tests/testthat/test_shuttle_api.R +++ b/R/tests/testthat/test_shuttle_api.R @@ -9,8 +9,8 @@ test_that("create_integration_definition", { # tests for create_integration_definition # base path: https://api.openlattice.com # Creates a new integration definition for running recurring integrations - # @param character integration_name - # @param Integration integration + # @param integration_name character + # @param integration Integration # @return [character] # uncomment below to test the operation @@ -21,7 +21,7 @@ test_that("delete_integration_definition", { # tests for delete_integration_definition # base path: https://api.openlattice.com # Replaces any number of fields within an existing integration definition - # @param character integration_name + # @param integration_name character # @return [Void] # uncomment below to test the operation @@ -32,7 +32,7 @@ test_that("delete_integration_job_status", { # tests for delete_integration_job_status # base path: https://api.openlattice.com # Deletes an integration job status from the integrationJobs map - # @param character job_id the unique id of the integration job + # @param job_id character the unique id of the integration job # @return [Void] # uncomment below to test the operation @@ -43,8 +43,8 @@ test_that("enqueue_integration", { # tests for enqueue_integration # base path: https://api.openlattice.com # Enqueues an integration on Shuttle Server for a given integration - # @param character integration_name the name of the integration to be run - # @param character integration_key the unique id used to authenticate an integration run + # @param integration_name character the name of the integration to be run + # @param integration_key character the unique id used to authenticate an integration run # @return [character] # uncomment below to test the operation @@ -65,7 +65,7 @@ test_that("poll_integration", { # tests for poll_integration # base path: https://api.openlattice.com # Polls the status of an integration - # @param character job_id the unique id of the integration job + # @param job_id character the unique id of the integration job # @return [character] # uncomment below to test the operation @@ -76,7 +76,7 @@ test_that("read_integration_definition", { # tests for read_integration_definition # base path: https://api.openlattice.com # Gets an existing integration definition - # @param character integration_name + # @param integration_name character # @return [Integration] # uncomment below to test the operation @@ -87,8 +87,8 @@ test_that("update_integration_definition", { # tests for update_integration_definition # base path: https://api.openlattice.com # Replaces any number of fields within an existing integration definition - # @param character integration_name - # @param IntegrationUpdate integration_update + # @param integration_name character + # @param integration_update IntegrationUpdate # @return [Void] # uncomment below to test the operation From dfe5d043f2220b9594342eff45faeda55eda3516 Mon Sep 17 00:00:00 2001 From: jokedurnez Date: Fri, 31 Jul 2020 14:01:21 -0700 Subject: [PATCH 2/2] bugfix search --- R/DESCRIPTION | 2 +- R/R/api_client.R | 2 +- R/R/edm_api.R | 1712 +---------------- R/R/principal_api.R | 2 +- R/README.md | 24 +- R/docs/EdmApi.md | 803 +------- R/docs/PrincipalApi.md | 2 +- R/tests/testthat/test_edm_api.R | 183 -- android/README.md | 2 +- android/docs/PrincipalApi.md | 2 +- .../openapitools/client/api/PrincipalApi.java | 4 +- go/README.md | 4 +- go/api/openapi.yaml | 2 +- go/api_principal.go | 2 +- go/configuration.go | 2 +- go/docs/PrincipalApi.md | 2 +- javascript/README.md | 2 +- javascript/docs/PrincipalApi.md | 2 +- javascript/src/api/PrincipalApi.js | 2 +- python/README.md | 4 +- python/docs/PrincipalApi.md | 2 +- python/openlattice/__init__.py | 2 +- python/openlattice/api/principal_api.py | 2 +- python/openlattice/api_client.py | 2 +- python/openlattice/configuration.py | 48 +- python/setup.py | 2 +- ruby/README.md | 2 +- ruby/docs/PrincipalApi.md | 2 +- ruby/lib/openapi_client/api/principal_api.rb | 2 +- 29 files changed, 161 insertions(+), 2663 deletions(-) diff --git a/R/DESCRIPTION b/R/DESCRIPTION index 0a6b312..cc3dc72 100644 --- a/R/DESCRIPTION +++ b/R/DESCRIPTION @@ -1,6 +1,6 @@ Package: openlattice Title: R Package Client for OpenLattice API -Version: 0.1.1 +Version: 0.1.2 Authors@R: person("OpenAPI Generator community", email = "support@openlattice.com", role = c("aut", "cre")) Description: OpenLattice API URL: https://github.com/GIT_USER_ID/GIT_REPO_ID diff --git a/R/R/api_client.R b/R/R/api_client.R index aeba55f..6ef082d 100644 --- a/R/R/api_client.R +++ b/R/R/api_client.R @@ -39,7 +39,7 @@ ApiClient <- R6::R6Class( # base path of all requests basePath = "https://api.openlattice.com", # user agent in the HTTP request - userAgent = "OpenAPI-Generator/0.1.1/r", + userAgent = "OpenAPI-Generator/0.1.2/r", # default headers in the HTTP request defaultHeaders = NULL, # username (HTTP basic authentication) diff --git a/R/R/edm_api.R b/R/R/edm_api.R index 9188176..03ffdd8 100644 --- a/R/R/edm_api.R +++ b/R/R/edm_api.R @@ -31,40 +31,6 @@ #' } #' } #' -#' \strong{ add_entity_sets_to_linking_entity_set } \emph{ Adds the entity sets as linked entity sets to the linking entity set } -#' -#' -#' \itemize{ -#' \item \emph{ @param } linking_entity_set_id \link{character} -#' \item \emph{ @param } request_body list( character ) -#' -#' -#' \item status code : 200 | Success -#' -#' \item return type : integer -#' \item response headers : -#' -#' \tabular{ll}{ -#' } -#' } -#' -#' \strong{ add_entity_sets_to_linking_entity_sets } \emph{ Adds the entity sets as linked entity sets to the linking entity sets } -#' -#' -#' \itemize{ -#' \item \emph{ @param } linking_entity_set_id character -#' \item \emph{ @param } request_body named list( \link{list(array[character])} ) -#' -#' -#' \item status code : 200 | Success -#' -#' \item return type : integer -#' \item response headers : -#' -#' \tabular{ll}{ -#' } -#' } -#' #' \strong{ add_primary_key_to_entity_type } \emph{ Adds a primary key with a given ID to an entity type with a given ID. } #' #' @@ -149,22 +115,6 @@ #' } #' } #' -#' \strong{ create_entity_sets } \emph{ Creates new EntitySet definitions if they don't exist. } -#' -#' -#' \itemize{ -#' \item \emph{ @param } entity_set list( \link{EntitySet} ) -#' -#' -#' \item status code : 200 | Success -#' -#' -#' \item response headers : -#' -#' \tabular{ll}{ -#' } -#' } -#' #' \strong{ create_entity_type } \emph{ Creates a new EntityType definition, if it doesn't exist. } #' #' @@ -229,22 +179,6 @@ #' } #' } #' -#' \strong{ delete_entity_set } \emph{ Deletes the EntitySet definition for the given EntitySet UUID. } -#' -#' -#' \itemize{ -#' \item \emph{ @param } entity_set_id \link{character} -#' -#' -#' \item status code : 200 | Success -#' -#' -#' \item response headers : -#' -#' \tabular{ll}{ -#' } -#' } -#' #' \strong{ delete_entity_type } \emph{ Deletes the EntityType definition for the given EntityType UUID. } #' #' @@ -343,39 +277,6 @@ #' } #' } #' -#' \strong{ get_all_entity_set_property_metadata } \emph{ Get all entity set property metadata. } -#' -#' -#' \itemize{ -#' \item \emph{ @param } entity_set_id \link{character} -#' \item \emph{ @returnType } named list( \link{EntitySetPropertyMetaData} ) \cr -#' -#' -#' \item status code : 200 | Success -#' -#' \item return type : list(EntitySetPropertyMetaData) -#' \item response headers : -#' -#' \tabular{ll}{ -#' } -#' } -#' -#' \strong{ get_all_entity_sets } \emph{ Get all EntitySet definitions. } -#' -#' -#' \itemize{ -#' \item \emph{ @returnType } list( \link{EntitySet} ) \cr -#' -#' -#' \item status code : 200 | Success -#' -#' \item return type : array[EntitySet] -#' \item response headers : -#' -#' \tabular{ll}{ -#' } -#' } -#' #' \strong{ get_all_entity_type_property_metadata } \emph{ Get all EntityType propertyType metadata } #' #' @@ -525,73 +426,6 @@ #' } #' } #' -#' \strong{ get_entity_set } \emph{ Get the EntitySet definition for the given EntitySet UUID. } -#' -#' -#' \itemize{ -#' \item \emph{ @param } entity_set_id \link{character} -#' \item \emph{ @returnType } \link{EntitySet} \cr -#' -#' -#' \item status code : 200 | An Entity Set definition -#' -#' \item return type : EntitySet -#' \item response headers : -#' -#' \tabular{ll}{ -#' } -#' } -#' -#' \strong{ get_entity_set_id } \emph{ Gets the EntitySet UUID for the given EntitySet name. } -#' -#' -#' \itemize{ -#' \item \emph{ @param } entity_set_name character -#' -#' -#' \item status code : 200 | Success -#' -#' \item return type : character -#' \item response headers : -#' -#' \tabular{ll}{ -#' } -#' } -#' -#' \strong{ get_entity_set_ids } \emph{ Get IDs for entity sets given their names. } -#' -#' -#' \itemize{ -#' \item \emph{ @param } request_body list( character ) -#' -#' -#' \item status code : 200 | Success -#' -#' \item return type : list(character) -#' \item response headers : -#' -#' \tabular{ll}{ -#' } -#' } -#' -#' \strong{ get_entity_set_property_metadata } \emph{ Get specified property type metadata for an entity set. } -#' -#' -#' \itemize{ -#' \item \emph{ @param } entity_set_id \link{character} -#' \item \emph{ @param } property_type_id \link{character} -#' \item \emph{ @returnType } \link{EntitySetPropertyMetaData} \cr -#' -#' -#' \item status code : 200 | Success -#' -#' \item return type : EntitySetPropertyMetaData -#' \item response headers : -#' -#' \tabular{ll}{ -#' } -#' } -#' #' \strong{ get_entity_type } \emph{ Gets the EntityType definition for the given EntityType UUID. } #' #' @@ -660,22 +494,6 @@ #' } #' } #' -#' \strong{ get_property_metadata_for_entity_sets } \emph{ Get property metadata for entity sets. } -#' -#' -#' \itemize{ -#' \item \emph{ @param } request_body list( character ) -#' -#' -#' \item status code : 200 | EntitySetPropertyMetaData -#' -#' \item return type : list(list(EntitySetPropertyMetaData)) -#' \item response headers : -#' -#' \tabular{ll}{ -#' } -#' } -#' #' \strong{ get_property_type } \emph{ Gets the PropertyType definition for the given PropertyType UUID. } #' #' @@ -710,23 +528,6 @@ #' } #' } #' -#' \strong{ get_property_types_for_entity_set } \emph{ Get all Property Types for entity set } -#' -#' -#' \itemize{ -#' \item \emph{ @param } entity_set_id \link{character} -#' \item \emph{ @returnType } named list( \link{PropertyType} ) \cr -#' -#' -#' \item status code : 200 | Success -#' -#' \item return type : list(PropertyType) -#' \item response headers : -#' -#' \tabular{ll}{ -#' } -#' } -#' #' \strong{ get_property_usage_summary } \emph{ Get Property Usage Summary for property with given ID. } #' #' @@ -813,40 +614,6 @@ #' } #' } #' -#' \strong{ remove_entity_sets_from_linking_entity_set } \emph{ Removes/unlinks the linked entity sets from the linking entity set } -#' -#' -#' \itemize{ -#' \item \emph{ @param } linking_entity_set_id character -#' \item \emph{ @param } request_body list( character ) -#' -#' -#' \item status code : 200 | Success -#' -#' \item return type : integer -#' \item response headers : -#' -#' \tabular{ll}{ -#' } -#' } -#' -#' \strong{ remove_entity_sets_from_linking_entity_sets } \emph{ Removes/unlinks the linked entity sets from the linking entity set } -#' -#' -#' \itemize{ -#' \item \emph{ @param } linking_entity_set_id \link{character} -#' \item \emph{ @param } request_body named list( \link{list(array[character])} ) -#' -#' -#' \item status code : 200 | Success -#' -#' \item return type : integer -#' \item response headers : -#' -#' \tabular{ll}{ -#' } -#' } -#' #' \strong{ remove_primary_key_from_entity_type } \emph{ Removes a primary key with a given ID from an entity type with a given ID. } #' #' @@ -931,41 +698,6 @@ #' } #' } #' -#' \strong{ update_entity_set_meta_data } \emph{ Updates the EntitySet definition for the given EntitySet UUID with the given metadata. } -#' -#' -#' \itemize{ -#' \item \emph{ @param } entity_set_id \link{character} -#' \item \emph{ @param } metadata_update \link{MetadataUpdate} -#' -#' -#' \item status code : 200 | Success -#' -#' \item return type : integer -#' \item response headers : -#' -#' \tabular{ll}{ -#' } -#' } -#' -#' \strong{ update_entity_set_property_metadata } \emph{ Updates the property type metadata for the given entity set. } -#' -#' -#' \itemize{ -#' \item \emph{ @param } entity_set_id \link{character} -#' \item \emph{ @param } property_type_id \link{character} -#' \item \emph{ @param } metadata_update \link{MetadataUpdate} -#' -#' -#' \item status code : 200 | Success -#' -#' -#' \item response headers : -#' -#' \tabular{ll}{ -#' } -#' } -#' #' \strong{ update_entity_type_meta_data } \emph{ Updates the EntityType definition for the given EntityType UUID with the given metadata. } #' #' @@ -1061,48 +793,6 @@ #' result <- api.instance$add_dst_entity_type_to_association_type(var.association_type_id, var.entity_type_id) #' #' -#' #################### add_entity_sets_to_linking_entity_set #################### -#' -#' library(openlattice) -#' var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | -#' var.request_body <- list('request_body_example') # array[character] | -#' -#' #Adds the entity sets as linked entity sets to the linking entity set -#' api.instance <- EdmApi$new() -#' -#' #Configure HTTP basic authorization: http_auth -#' # provide your username in the user-serial format -#' api.instance$apiClient$username <- ''; -#' # provide your api key generated using the developer portal -#' api.instance$apiClient$password <- ''; -#' -#' #Configure API key authorization: openlattice_auth -#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -#' -#' result <- api.instance$add_entity_sets_to_linking_entity_set(var.linking_entity_set_id, request_body=var.request_body) -#' -#' -#' #################### add_entity_sets_to_linking_entity_sets #################### -#' -#' library(openlattice) -#' var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | -#' var.request_body <- NULL # list(array[character]) | -#' -#' #Adds the entity sets as linked entity sets to the linking entity sets -#' api.instance <- EdmApi$new() -#' -#' #Configure HTTP basic authorization: http_auth -#' # provide your username in the user-serial format -#' api.instance$apiClient$username <- ''; -#' # provide your api key generated using the developer portal -#' api.instance$apiClient$password <- ''; -#' -#' #Configure API key authorization: openlattice_auth -#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -#' -#' result <- api.instance$add_entity_sets_to_linking_entity_sets(var.linking_entity_set_id, var.request_body) -#' -#' #' #################### add_primary_key_to_entity_type #################### #' #' library(openlattice) @@ -1198,35 +888,15 @@ #' result <- api.instance$create_empty_schema(var.namespace, var.name) #' #' -#' #################### create_entity_sets #################### +#' #################### create_entity_type #################### #' #' library(openlattice) -#' var.entity_set <- list(EntitySet$new()) # array[EntitySet] | +#' var.entity_type <- EntityType$new() # EntityType | #' -#' #Creates new EntitySet definitions if they don't exist. +#' #Creates a new EntityType definition, if it doesn't exist. #' api.instance <- EdmApi$new() #' -#' #Configure HTTP basic authorization: http_auth -#' # provide your username in the user-serial format -#' api.instance$apiClient$username <- ''; -#' # provide your api key generated using the developer portal -#' api.instance$apiClient$password <- ''; -#' -#' #Configure API key authorization: openlattice_auth -#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -#' -#' result <- api.instance$create_entity_sets(var.entity_set) -#' -#' -#' #################### create_entity_type #################### -#' -#' library(openlattice) -#' var.entity_type <- EntityType$new() # EntityType | -#' -#' #Creates a new EntityType definition, if it doesn't exist. -#' api.instance <- EdmApi$new() -#' -#' result <- api.instance$create_entity_type(var.entity_type) +#' result <- api.instance$create_entity_type(var.entity_type) #' #' #' #################### create_property_type #################### @@ -1280,26 +950,6 @@ #' result <- api.instance$delete_association_type(var.association_type_id) #' #' -#' #################### delete_entity_set #################### -#' -#' library(openlattice) -#' var.entity_set_id <- 'entity_set_id_example' # character | -#' -#' #Deletes the EntitySet definition for the given EntitySet UUID. -#' api.instance <- EdmApi$new() -#' -#' #Configure HTTP basic authorization: http_auth -#' # provide your username in the user-serial format -#' api.instance$apiClient$username <- ''; -#' # provide your api key generated using the developer portal -#' api.instance$apiClient$password <- ''; -#' -#' #Configure API key authorization: openlattice_auth -#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -#' -#' result <- api.instance$delete_entity_set(var.entity_set_id) -#' -#' #' #################### delete_entity_type #################### #' #' library(openlattice) @@ -1411,45 +1061,6 @@ #' result <- api.instance$get_all_available_association_types(var.association_type_id) #' #' -#' #################### get_all_entity_set_property_metadata #################### -#' -#' library(openlattice) -#' var.entity_set_id <- 'entity_set_id_example' # character | -#' -#' #Get all entity set property metadata. -#' api.instance <- EdmApi$new() -#' -#' #Configure HTTP basic authorization: http_auth -#' # provide your username in the user-serial format -#' api.instance$apiClient$username <- ''; -#' # provide your api key generated using the developer portal -#' api.instance$apiClient$password <- ''; -#' -#' #Configure API key authorization: openlattice_auth -#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -#' -#' result <- api.instance$get_all_entity_set_property_metadata(var.entity_set_id) -#' -#' -#' #################### get_all_entity_sets #################### -#' -#' library(openlattice) -#' -#' #Get all EntitySet definitions. -#' api.instance <- EdmApi$new() -#' -#' #Configure HTTP basic authorization: http_auth -#' # provide your username in the user-serial format -#' api.instance$apiClient$username <- ''; -#' # provide your api key generated using the developer portal -#' api.instance$apiClient$password <- ''; -#' -#' #Configure API key authorization: openlattice_auth -#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -#' -#' result <- api.instance$get_all_entity_sets() -#' -#' #' #################### get_all_entity_type_property_metadata #################### #' #' library(openlattice) @@ -1617,87 +1228,6 @@ #' result <- api.instance$get_entity_data_model_diff(var.ed_mdiff) #' #' -#' #################### get_entity_set #################### -#' -#' library(openlattice) -#' var.entity_set_id <- 'entity_set_id_example' # character | -#' -#' #Get the EntitySet definition for the given EntitySet UUID. -#' api.instance <- EdmApi$new() -#' -#' #Configure HTTP basic authorization: http_auth -#' # provide your username in the user-serial format -#' api.instance$apiClient$username <- ''; -#' # provide your api key generated using the developer portal -#' api.instance$apiClient$password <- ''; -#' -#' #Configure API key authorization: openlattice_auth -#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -#' -#' result <- api.instance$get_entity_set(var.entity_set_id) -#' -#' -#' #################### get_entity_set_id #################### -#' -#' library(openlattice) -#' var.entity_set_name <- 'entity_set_name_example' # character | -#' -#' #Gets the EntitySet UUID for the given EntitySet name. -#' api.instance <- EdmApi$new() -#' -#' #Configure HTTP basic authorization: http_auth -#' # provide your username in the user-serial format -#' api.instance$apiClient$username <- ''; -#' # provide your api key generated using the developer portal -#' api.instance$apiClient$password <- ''; -#' -#' #Configure API key authorization: openlattice_auth -#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -#' -#' result <- api.instance$get_entity_set_id(var.entity_set_name) -#' -#' -#' #################### get_entity_set_ids #################### -#' -#' library(openlattice) -#' var.request_body <- list('request_body_example') # array[character] | -#' -#' #Get IDs for entity sets given their names. -#' api.instance <- EdmApi$new() -#' -#' #Configure HTTP basic authorization: http_auth -#' # provide your username in the user-serial format -#' api.instance$apiClient$username <- ''; -#' # provide your api key generated using the developer portal -#' api.instance$apiClient$password <- ''; -#' -#' #Configure API key authorization: openlattice_auth -#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -#' -#' result <- api.instance$get_entity_set_ids(request_body=var.request_body) -#' -#' -#' #################### get_entity_set_property_metadata #################### -#' -#' library(openlattice) -#' var.entity_set_id <- 'entity_set_id_example' # character | -#' var.property_type_id <- 'property_type_id_example' # character | -#' -#' #Get specified property type metadata for an entity set. -#' api.instance <- EdmApi$new() -#' -#' #Configure HTTP basic authorization: http_auth -#' # provide your username in the user-serial format -#' api.instance$apiClient$username <- ''; -#' # provide your api key generated using the developer portal -#' api.instance$apiClient$password <- ''; -#' -#' #Configure API key authorization: openlattice_auth -#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -#' -#' result <- api.instance$get_entity_set_property_metadata(var.entity_set_id, var.property_type_id) -#' -#' #' #################### get_entity_type #################### #' #' library(openlattice) @@ -1771,26 +1301,6 @@ #' result <- api.instance$get_entity_type_property_metadata(var.entity_type_id, var.property_type_id) #' #' -#' #################### get_property_metadata_for_entity_sets #################### -#' -#' library(openlattice) -#' var.request_body <- list('request_body_example') # array[character] | -#' -#' #Get property metadata for entity sets. -#' api.instance <- EdmApi$new() -#' -#' #Configure HTTP basic authorization: http_auth -#' # provide your username in the user-serial format -#' api.instance$apiClient$username <- ''; -#' # provide your api key generated using the developer portal -#' api.instance$apiClient$password <- ''; -#' -#' #Configure API key authorization: openlattice_auth -#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -#' -#' result <- api.instance$get_property_metadata_for_entity_sets(request_body=var.request_body) -#' -#' #' #################### get_property_type #################### #' #' library(openlattice) @@ -1832,26 +1342,6 @@ #' result <- api.instance$get_property_type_id(var.namespace, var.name) #' #' -#' #################### get_property_types_for_entity_set #################### -#' -#' library(openlattice) -#' var.entity_set_id <- 'entity_set_id_example' # character | -#' -#' #Get all Property Types for entity set -#' api.instance <- EdmApi$new() -#' -#' #Configure HTTP basic authorization: http_auth -#' # provide your username in the user-serial format -#' api.instance$apiClient$username <- ''; -#' # provide your api key generated using the developer portal -#' api.instance$apiClient$password <- ''; -#' -#' #Configure API key authorization: openlattice_auth -#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -#' -#' result <- api.instance$get_property_types_for_entity_set(var.entity_set_id) -#' -#' #' #################### get_property_usage_summary #################### #' #' library(openlattice) @@ -1954,48 +1444,6 @@ #' result <- api.instance$remove_dst_entity_type_from_association_type(var.association_type_id, var.entity_type_id) #' #' -#' #################### remove_entity_sets_from_linking_entity_set #################### -#' -#' library(openlattice) -#' var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | -#' var.request_body <- list('request_body_example') # array[character] | -#' -#' #Removes/unlinks the linked entity sets from the linking entity set -#' api.instance <- EdmApi$new() -#' -#' #Configure HTTP basic authorization: http_auth -#' # provide your username in the user-serial format -#' api.instance$apiClient$username <- ''; -#' # provide your api key generated using the developer portal -#' api.instance$apiClient$password <- ''; -#' -#' #Configure API key authorization: openlattice_auth -#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -#' -#' result <- api.instance$remove_entity_sets_from_linking_entity_set(var.linking_entity_set_id, request_body=var.request_body) -#' -#' -#' #################### remove_entity_sets_from_linking_entity_sets #################### -#' -#' library(openlattice) -#' var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | -#' var.request_body <- NULL # list(array[character]) | -#' -#' #Removes/unlinks the linked entity sets from the linking entity set -#' api.instance <- EdmApi$new() -#' -#' #Configure HTTP basic authorization: http_auth -#' # provide your username in the user-serial format -#' api.instance$apiClient$username <- ''; -#' # provide your api key generated using the developer portal -#' api.instance$apiClient$password <- ''; -#' -#' #Configure API key authorization: openlattice_auth -#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -#' -#' result <- api.instance$remove_entity_sets_from_linking_entity_sets(var.linking_entity_set_id, var.request_body) -#' -#' #' #################### remove_primary_key_from_entity_type #################### #' #' library(openlattice) @@ -2100,49 +1548,6 @@ #' result <- api.instance$update_entity_data_model(var.EDM) #' #' -#' #################### update_entity_set_meta_data #################### -#' -#' library(openlattice) -#' var.entity_set_id <- 'entity_set_id_example' # character | -#' var.metadata_update <- MetadataUpdate$new() # MetadataUpdate | -#' -#' #Updates the EntitySet definition for the given EntitySet UUID with the given metadata. -#' api.instance <- EdmApi$new() -#' -#' #Configure HTTP basic authorization: http_auth -#' # provide your username in the user-serial format -#' api.instance$apiClient$username <- ''; -#' # provide your api key generated using the developer portal -#' api.instance$apiClient$password <- ''; -#' -#' #Configure API key authorization: openlattice_auth -#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -#' -#' result <- api.instance$update_entity_set_meta_data(var.entity_set_id, var.metadata_update) -#' -#' -#' #################### update_entity_set_property_metadata #################### -#' -#' library(openlattice) -#' var.entity_set_id <- 'entity_set_id_example' # character | -#' var.property_type_id <- 'property_type_id_example' # character | -#' var.metadata_update <- MetadataUpdate$new() # MetadataUpdate | -#' -#' #Updates the property type metadata for the given entity set. -#' api.instance <- EdmApi$new() -#' -#' #Configure HTTP basic authorization: http_auth -#' # provide your username in the user-serial format -#' api.instance$apiClient$username <- ''; -#' # provide your api key generated using the developer portal -#' api.instance$apiClient$password <- ''; -#' -#' #Configure API key authorization: openlattice_auth -#' api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -#' -#' result <- api.instance$update_entity_set_property_metadata(var.entity_set_id, var.property_type_id, var.metadata_update) -#' -#' #' #################### update_entity_type_meta_data #################### #' #' library(openlattice) @@ -2302,8 +1707,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - add_entity_sets_to_linking_entity_set = function(linking_entity_set_id, request_body=NULL, ...){ - apiResponse <- self$add_entity_sets_to_linking_entity_setWithHttpInfo(linking_entity_set_id, request_body, ...) + add_primary_key_to_entity_type = function(entity_type_id, property_type_id, ...){ + apiResponse <- self$add_primary_key_to_entity_typeWithHttpInfo(entity_type_id, property_type_id, ...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -2316,29 +1721,26 @@ EdmApi <- R6::R6Class( } }, - add_entity_sets_to_linking_entity_setWithHttpInfo = function(linking_entity_set_id, request_body=NULL, ...){ + add_primary_key_to_entity_typeWithHttpInfo = function(entity_type_id, property_type_id, ...){ args <- list(...) queryParams <- list() headerParams <- c() - if (missing(`linking_entity_set_id`)) { - stop("Missing required parameter `linking_entity_set_id`.") + if (missing(`entity_type_id`)) { + stop("Missing required parameter `entity_type_id`.") } - if (!missing(`request_body`)) { - body <- sprintf( - ' - [%s] -', - paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") - ) - } else { - body <- NULL + if (missing(`property_type_id`)) { + stop("Missing required parameter `property_type_id`.") } - urlPath <- "/datastore/entity-sets/linking/{linkingEntitySetId}" - if (!missing(`linking_entity_set_id`)) { - urlPath <- gsub(paste0("\\{", "linkingEntitySetId", "\\}"), URLencode(as.character(`linking_entity_set_id`), reserved = TRUE), urlPath) + urlPath <- "/datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId}" + if (!missing(`entity_type_id`)) { + urlPath <- gsub(paste0("\\{", "entityTypeId", "\\}"), URLencode(as.character(`entity_type_id`), reserved = TRUE), urlPath) + } + + if (!missing(`property_type_id`)) { + urlPath <- gsub(paste0("\\{", "propertyTypeId", "\\}"), URLencode(as.character(`property_type_id`), reserved = TRUE), urlPath) } # API key authentication @@ -2347,149 +1749,14 @@ EdmApi <- R6::R6Class( } resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "POST", + method = "PUT", queryParams = queryParams, headerParams = headerParams, body = body, ...) if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "integer", loadNamespace("openlattice")), - error = function(e){ - stop("Failed to deserialize response") - } - ) - ApiResponse$new(deserializedRespObj, resp) - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - ApiResponse$new("API client error", resp) - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - ApiResponse$new("API server error", resp) - } - }, - add_entity_sets_to_linking_entity_sets = function(linking_entity_set_id, request_body, ...){ - apiResponse <- self$add_entity_sets_to_linking_entity_setsWithHttpInfo(linking_entity_set_id, request_body, ...) - resp <- apiResponse$response - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - apiResponse$content - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - apiResponse - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - apiResponse - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - apiResponse - } - }, - - add_entity_sets_to_linking_entity_setsWithHttpInfo = function(linking_entity_set_id, request_body, ...){ - args <- list(...) - queryParams <- list() - headerParams <- c() - - if (missing(`linking_entity_set_id`)) { - stop("Missing required parameter `linking_entity_set_id`.") - } - - if (missing(`request_body`)) { - stop("Missing required parameter `request_body`.") - } - - if (!missing(`request_body`)) { - body <- sprintf( - ' - %s -', - jsonlite::toJSON(`request_body`, digits=NA) - ) - } else { - body <- NULL - } - - urlPath <- "/datastore/entity-sets/linking/" - if (!missing(`linking_entity_set_id`)) { - urlPath <- gsub(paste0("\\{", "linkingEntitySetId", "\\}"), URLencode(as.character(`linking_entity_set_id`), reserved = TRUE), urlPath) - } - - # API key authentication - if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { - headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') - } - - resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "PUT", - queryParams = queryParams, - headerParams = headerParams, - body = body, - ...) - - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "integer", loadNamespace("openlattice")), - error = function(e){ - stop("Failed to deserialize response") - } - ) - ApiResponse$new(deserializedRespObj, resp) - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - ApiResponse$new("API client error", resp) - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - ApiResponse$new("API server error", resp) - } - }, - add_primary_key_to_entity_type = function(entity_type_id, property_type_id, ...){ - apiResponse <- self$add_primary_key_to_entity_typeWithHttpInfo(entity_type_id, property_type_id, ...) - resp <- apiResponse$response - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - apiResponse$content - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - apiResponse - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - apiResponse - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - apiResponse - } - }, - - add_primary_key_to_entity_typeWithHttpInfo = function(entity_type_id, property_type_id, ...){ - args <- list(...) - queryParams <- list() - headerParams <- c() - - if (missing(`entity_type_id`)) { - stop("Missing required parameter `entity_type_id`.") - } - - if (missing(`property_type_id`)) { - stop("Missing required parameter `property_type_id`.") - } - - urlPath <- "/datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId}" - if (!missing(`entity_type_id`)) { - urlPath <- gsub(paste0("\\{", "entityTypeId", "\\}"), URLencode(as.character(`entity_type_id`), reserved = TRUE), urlPath) - } - - if (!missing(`property_type_id`)) { - urlPath <- gsub(paste0("\\{", "propertyTypeId", "\\}"), URLencode(as.character(`property_type_id`), reserved = TRUE), urlPath) - } - - # API key authentication - if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { - headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') - } - - resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "PUT", - queryParams = queryParams, - headerParams = headerParams, - body = body, - ...) - - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - ApiResponse$new(NULL, resp) + ApiResponse$new(NULL, resp) } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { @@ -2725,63 +1992,6 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - create_entity_sets = function(entity_set, ...){ - apiResponse <- self$create_entity_setsWithHttpInfo(entity_set, ...) - resp <- apiResponse$response - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - apiResponse$content - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - apiResponse - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - apiResponse - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - apiResponse - } - }, - - create_entity_setsWithHttpInfo = function(entity_set, ...){ - args <- list(...) - queryParams <- list() - headerParams <- c() - - if (missing(`entity_set`)) { - stop("Missing required parameter `entity_set`.") - } - - if (!missing(`entity_set`)) { - body <- sprintf( - ' - [%s] -', - paste(sapply(`entity_set`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") - ) - } else { - body <- NULL - } - - urlPath <- "/datastore/entity-sets" - # API key authentication - if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { - headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') - } - - resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "POST", - queryParams = queryParams, - headerParams = headerParams, - body = body, - ...) - - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - ApiResponse$new(NULL, resp) - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - ApiResponse$new("API client error", resp) - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - ApiResponse$new("API server error", resp) - } - }, create_entity_type = function(entity_type, ...){ apiResponse <- self$create_entity_typeWithHttpInfo(entity_type, ...) resp <- apiResponse$response @@ -2978,56 +2188,6 @@ EdmApi <- R6::R6Class( } - resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "DELETE", - queryParams = queryParams, - headerParams = headerParams, - body = body, - ...) - - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - ApiResponse$new(NULL, resp) - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - ApiResponse$new("API client error", resp) - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - ApiResponse$new("API server error", resp) - } - }, - delete_entity_set = function(entity_set_id, ...){ - apiResponse <- self$delete_entity_setWithHttpInfo(entity_set_id, ...) - resp <- apiResponse$response - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - apiResponse$content - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - apiResponse - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - apiResponse - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - apiResponse - } - }, - - delete_entity_setWithHttpInfo = function(entity_set_id, ...){ - args <- list(...) - queryParams <- list() - headerParams <- c() - - if (missing(`entity_set_id`)) { - stop("Missing required parameter `entity_set_id`.") - } - - urlPath <- "/datastore/entity-sets/all/{entitySetId}" - if (!missing(`entity_set_id`)) { - urlPath <- gsub(paste0("\\{", "entitySetId", "\\}"), URLencode(as.character(`entity_set_id`), reserved = TRUE), urlPath) - } - - # API key authentication - if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { - headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') - } - resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), method = "DELETE", queryParams = queryParams, @@ -3353,8 +2513,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_all_entity_set_property_metadata = function(entity_set_id, ...){ - apiResponse <- self$get_all_entity_set_property_metadataWithHttpInfo(entity_set_id, ...) + get_all_entity_type_property_metadata = function(entity_type_id, ...){ + apiResponse <- self$get_all_entity_type_property_metadataWithHttpInfo(entity_type_id, ...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -3367,18 +2527,18 @@ EdmApi <- R6::R6Class( } }, - get_all_entity_set_property_metadataWithHttpInfo = function(entity_set_id, ...){ + get_all_entity_type_property_metadataWithHttpInfo = function(entity_type_id, ...){ args <- list(...) queryParams <- list() headerParams <- c() - if (missing(`entity_set_id`)) { - stop("Missing required parameter `entity_set_id`.") + if (missing(`entity_type_id`)) { + stop("Missing required parameter `entity_type_id`.") } - urlPath <- "/datastore/entity-sets/all/{entitySetId}/metadata" - if (!missing(`entity_set_id`)) { - urlPath <- gsub(paste0("\\{", "entitySetId", "\\}"), URLencode(as.character(`entity_set_id`), reserved = TRUE), urlPath) + urlPath <- "/datastore/edm/entity/type/{entityTypeId}/property/type" + if (!missing(`entity_type_id`)) { + urlPath <- gsub(paste0("\\{", "entityTypeId", "\\}"), URLencode(as.character(`entity_type_id`), reserved = TRUE), urlPath) } # API key authentication @@ -3395,7 +2555,7 @@ EdmApi <- R6::R6Class( if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "list(EntitySetPropertyMetaData)", loadNamespace("openlattice")), + self$apiClient$deserialize(resp, "list(EntityTypePropertyMetadata)", loadNamespace("openlattice")), error = function(e){ stop("Failed to deserialize response") } @@ -3409,8 +2569,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_all_entity_sets = function(...){ - apiResponse <- self$get_all_entity_setsWithHttpInfo(...) + get_all_entity_types = function(...){ + apiResponse <- self$get_all_entity_typesWithHttpInfo(...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -3423,12 +2583,12 @@ EdmApi <- R6::R6Class( } }, - get_all_entity_setsWithHttpInfo = function(...){ + get_all_entity_typesWithHttpInfo = function(...){ args <- list(...) queryParams <- list() headerParams <- c() - urlPath <- "/datastore/entity-sets" + urlPath <- "/datastore/edm/entity/type/" # API key authentication if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') @@ -3443,7 +2603,7 @@ EdmApi <- R6::R6Class( if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "array[EntitySet]", loadNamespace("openlattice")), + self$apiClient$deserialize(resp, "array[EntityType]", loadNamespace("openlattice")), error = function(e){ stop("Failed to deserialize response") } @@ -3457,8 +2617,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_all_entity_type_property_metadata = function(entity_type_id, ...){ - apiResponse <- self$get_all_entity_type_property_metadataWithHttpInfo(entity_type_id, ...) + get_all_property_types = function(...){ + apiResponse <- self$get_all_property_typesWithHttpInfo(...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -3471,20 +2631,12 @@ EdmApi <- R6::R6Class( } }, - get_all_entity_type_property_metadataWithHttpInfo = function(entity_type_id, ...){ + get_all_property_typesWithHttpInfo = function(...){ args <- list(...) queryParams <- list() headerParams <- c() - if (missing(`entity_type_id`)) { - stop("Missing required parameter `entity_type_id`.") - } - - urlPath <- "/datastore/edm/entity/type/{entityTypeId}/property/type" - if (!missing(`entity_type_id`)) { - urlPath <- gsub(paste0("\\{", "entityTypeId", "\\}"), URLencode(as.character(`entity_type_id`), reserved = TRUE), urlPath) - } - + urlPath <- "/datastore/edm/property/type/" # API key authentication if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') @@ -3499,7 +2651,7 @@ EdmApi <- R6::R6Class( if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "list(EntityTypePropertyMetadata)", loadNamespace("openlattice")), + self$apiClient$deserialize(resp, "array[PropertyType]", loadNamespace("openlattice")), error = function(e){ stop("Failed to deserialize response") } @@ -3513,8 +2665,8 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_all_entity_types = function(...){ - apiResponse <- self$get_all_entity_typesWithHttpInfo(...) + get_all_property_types_in_namespace = function(namespace, ...){ + apiResponse <- self$get_all_property_types_in_namespaceWithHttpInfo(namespace, ...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -3527,12 +2679,20 @@ EdmApi <- R6::R6Class( } }, - get_all_entity_typesWithHttpInfo = function(...){ + get_all_property_types_in_namespaceWithHttpInfo = function(namespace, ...){ args <- list(...) queryParams <- list() headerParams <- c() - urlPath <- "/datastore/edm/entity/type/" + if (missing(`namespace`)) { + stop("Missing required parameter `namespace`.") + } + + urlPath <- "/datastore/edm/property/type/namespace/{namespace}" + if (!missing(`namespace`)) { + urlPath <- gsub(paste0("\\{", "namespace", "\\}"), URLencode(as.character(`namespace`), reserved = TRUE), urlPath) + } + # API key authentication if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') @@ -3547,111 +2707,7 @@ EdmApi <- R6::R6Class( if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "array[EntityType]", loadNamespace("openlattice")), - error = function(e){ - stop("Failed to deserialize response") - } - ) - ApiResponse$new(deserializedRespObj, resp) - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - ApiResponse$new("API client error", resp) - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - ApiResponse$new("API server error", resp) - } - }, - get_all_property_types = function(...){ - apiResponse <- self$get_all_property_typesWithHttpInfo(...) - resp <- apiResponse$response - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - apiResponse$content - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - apiResponse - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - apiResponse - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - apiResponse - } - }, - - get_all_property_typesWithHttpInfo = function(...){ - args <- list(...) - queryParams <- list() - headerParams <- c() - - urlPath <- "/datastore/edm/property/type/" - # API key authentication - if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { - headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') - } - - resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "GET", - queryParams = queryParams, - headerParams = headerParams, - body = body, - ...) - - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "array[PropertyType]", loadNamespace("openlattice")), - error = function(e){ - stop("Failed to deserialize response") - } - ) - ApiResponse$new(deserializedRespObj, resp) - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - ApiResponse$new("API client error", resp) - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - ApiResponse$new("API server error", resp) - } - }, - get_all_property_types_in_namespace = function(namespace, ...){ - apiResponse <- self$get_all_property_types_in_namespaceWithHttpInfo(namespace, ...) - resp <- apiResponse$response - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - apiResponse$content - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - apiResponse - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - apiResponse - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - apiResponse - } - }, - - get_all_property_types_in_namespaceWithHttpInfo = function(namespace, ...){ - args <- list(...) - queryParams <- list() - headerParams <- c() - - if (missing(`namespace`)) { - stop("Missing required parameter `namespace`.") - } - - urlPath <- "/datastore/edm/property/type/namespace/{namespace}" - if (!missing(`namespace`)) { - urlPath <- gsub(paste0("\\{", "namespace", "\\}"), URLencode(as.character(`namespace`), reserved = TRUE), urlPath) - } - - # API key authentication - if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { - headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') - } - - resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "GET", - queryParams = queryParams, - headerParams = headerParams, - body = body, - ...) - - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "array[PropertyType]", loadNamespace("openlattice")), + self$apiClient$deserialize(resp, "array[PropertyType]", loadNamespace("openlattice")), error = function(e){ stop("Failed to deserialize response") } @@ -3932,241 +2988,6 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_entity_set = function(entity_set_id, ...){ - apiResponse <- self$get_entity_setWithHttpInfo(entity_set_id, ...) - resp <- apiResponse$response - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - apiResponse$content - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - apiResponse - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - apiResponse - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - apiResponse - } - }, - - get_entity_setWithHttpInfo = function(entity_set_id, ...){ - args <- list(...) - queryParams <- list() - headerParams <- c() - - if (missing(`entity_set_id`)) { - stop("Missing required parameter `entity_set_id`.") - } - - urlPath <- "/datastore/entity-sets/all/{entitySetId}" - if (!missing(`entity_set_id`)) { - urlPath <- gsub(paste0("\\{", "entitySetId", "\\}"), URLencode(as.character(`entity_set_id`), reserved = TRUE), urlPath) - } - - # API key authentication - if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { - headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') - } - - resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "GET", - queryParams = queryParams, - headerParams = headerParams, - body = body, - ...) - - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "EntitySet", loadNamespace("openlattice")), - error = function(e){ - stop("Failed to deserialize response") - } - ) - ApiResponse$new(deserializedRespObj, resp) - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - ApiResponse$new("API client error", resp) - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - ApiResponse$new("API server error", resp) - } - }, - get_entity_set_id = function(entity_set_name, ...){ - apiResponse <- self$get_entity_set_idWithHttpInfo(entity_set_name, ...) - resp <- apiResponse$response - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - apiResponse$content - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - apiResponse - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - apiResponse - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - apiResponse - } - }, - - get_entity_set_idWithHttpInfo = function(entity_set_name, ...){ - args <- list(...) - queryParams <- list() - headerParams <- c() - - if (missing(`entity_set_name`)) { - stop("Missing required parameter `entity_set_name`.") - } - - urlPath <- "/datastore/entity-sets/ids/{entitySetName}" - if (!missing(`entity_set_name`)) { - urlPath <- gsub(paste0("\\{", "entitySetName", "\\}"), URLencode(as.character(`entity_set_name`), reserved = TRUE), urlPath) - } - - # API key authentication - if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { - headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') - } - - resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "GET", - queryParams = queryParams, - headerParams = headerParams, - body = body, - ...) - - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "character", loadNamespace("openlattice")), - error = function(e){ - stop("Failed to deserialize response") - } - ) - ApiResponse$new(deserializedRespObj, resp) - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - ApiResponse$new("API client error", resp) - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - ApiResponse$new("API server error", resp) - } - }, - get_entity_set_ids = function(request_body=NULL, ...){ - apiResponse <- self$get_entity_set_idsWithHttpInfo(request_body, ...) - resp <- apiResponse$response - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - apiResponse$content - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - apiResponse - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - apiResponse - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - apiResponse - } - }, - - get_entity_set_idsWithHttpInfo = function(request_body=NULL, ...){ - args <- list(...) - queryParams <- list() - headerParams <- c() - - if (!missing(`request_body`)) { - body <- sprintf( - ' - [%s] -', - paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") - ) - } else { - body <- NULL - } - - urlPath <- "/datastore/entity-sets/ids/" - # API key authentication - if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { - headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') - } - - resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "POST", - queryParams = queryParams, - headerParams = headerParams, - body = body, - ...) - - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "list(character)", loadNamespace("openlattice")), - error = function(e){ - stop("Failed to deserialize response") - } - ) - ApiResponse$new(deserializedRespObj, resp) - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - ApiResponse$new("API client error", resp) - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - ApiResponse$new("API server error", resp) - } - }, - get_entity_set_property_metadata = function(entity_set_id, property_type_id, ...){ - apiResponse <- self$get_entity_set_property_metadataWithHttpInfo(entity_set_id, property_type_id, ...) - resp <- apiResponse$response - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - apiResponse$content - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - apiResponse - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - apiResponse - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - apiResponse - } - }, - - get_entity_set_property_metadataWithHttpInfo = function(entity_set_id, property_type_id, ...){ - args <- list(...) - queryParams <- list() - headerParams <- c() - - if (missing(`entity_set_id`)) { - stop("Missing required parameter `entity_set_id`.") - } - - if (missing(`property_type_id`)) { - stop("Missing required parameter `property_type_id`.") - } - - urlPath <- "/datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/" - if (!missing(`entity_set_id`)) { - urlPath <- gsub(paste0("\\{", "entitySetId", "\\}"), URLencode(as.character(`entity_set_id`), reserved = TRUE), urlPath) - } - - if (!missing(`property_type_id`)) { - urlPath <- gsub(paste0("\\{", "propertyTypeId", "\\}"), URLencode(as.character(`property_type_id`), reserved = TRUE), urlPath) - } - - # API key authentication - if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { - headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') - } - - resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "GET", - queryParams = queryParams, - headerParams = headerParams, - body = body, - ...) - - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "EntitySetPropertyMetaData", loadNamespace("openlattice")), - error = function(e){ - stop("Failed to deserialize response") - } - ) - ApiResponse$new(deserializedRespObj, resp) - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - ApiResponse$new("API client error", resp) - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - ApiResponse$new("API server error", resp) - } - }, get_entity_type = function(entity_type_id, ...){ apiResponse <- self$get_entity_typeWithHttpInfo(entity_type_id, ...) resp <- apiResponse$response @@ -4397,65 +3218,6 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - get_property_metadata_for_entity_sets = function(request_body=NULL, ...){ - apiResponse <- self$get_property_metadata_for_entity_setsWithHttpInfo(request_body, ...) - resp <- apiResponse$response - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - apiResponse$content - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - apiResponse - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - apiResponse - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - apiResponse - } - }, - - get_property_metadata_for_entity_setsWithHttpInfo = function(request_body=NULL, ...){ - args <- list(...) - queryParams <- list() - headerParams <- c() - - if (!missing(`request_body`)) { - body <- sprintf( - ' - [%s] -', - paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") - ) - } else { - body <- NULL - } - - urlPath <- "/datastore/entity-sets/all/metadata" - # API key authentication - if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { - headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') - } - - resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "POST", - queryParams = queryParams, - headerParams = headerParams, - body = body, - ...) - - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "list(list(EntitySetPropertyMetaData))", loadNamespace("openlattice")), - error = function(e){ - stop("Failed to deserialize response") - } - ) - ApiResponse$new(deserializedRespObj, resp) - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - ApiResponse$new("API client error", resp) - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - ApiResponse$new("API server error", resp) - } - }, get_property_type = function(property_type_id, ...){ apiResponse <- self$get_property_typeWithHttpInfo(property_type_id, ...) resp <- apiResponse$response @@ -4513,71 +3275,7 @@ EdmApi <- R6::R6Class( } }, get_property_type_id = function(namespace, name, ...){ - apiResponse <- self$get_property_type_idWithHttpInfo(namespace, name, ...) - resp <- apiResponse$response - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - apiResponse$content - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - apiResponse - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - apiResponse - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - apiResponse - } - }, - - get_property_type_idWithHttpInfo = function(namespace, name, ...){ - args <- list(...) - queryParams <- list() - headerParams <- c() - - if (missing(`namespace`)) { - stop("Missing required parameter `namespace`.") - } - - if (missing(`name`)) { - stop("Missing required parameter `name`.") - } - - urlPath <- "/datastore/edm/ids/property/type/{namespace}/{name}" - if (!missing(`namespace`)) { - urlPath <- gsub(paste0("\\{", "namespace", "\\}"), URLencode(as.character(`namespace`), reserved = TRUE), urlPath) - } - - if (!missing(`name`)) { - urlPath <- gsub(paste0("\\{", "name", "\\}"), URLencode(as.character(`name`), reserved = TRUE), urlPath) - } - - # API key authentication - if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { - headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') - } - - resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "GET", - queryParams = queryParams, - headerParams = headerParams, - body = body, - ...) - - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "character", loadNamespace("openlattice")), - error = function(e){ - stop("Failed to deserialize response") - } - ) - ApiResponse$new(deserializedRespObj, resp) - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - ApiResponse$new("API client error", resp) - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - ApiResponse$new("API server error", resp) - } - }, - get_property_types_for_entity_set = function(entity_set_id, ...){ - apiResponse <- self$get_property_types_for_entity_setWithHttpInfo(entity_set_id, ...) + apiResponse <- self$get_property_type_idWithHttpInfo(namespace, name, ...) resp <- apiResponse$response if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { apiResponse$content @@ -4590,18 +3288,26 @@ EdmApi <- R6::R6Class( } }, - get_property_types_for_entity_setWithHttpInfo = function(entity_set_id, ...){ + get_property_type_idWithHttpInfo = function(namespace, name, ...){ args <- list(...) queryParams <- list() headerParams <- c() - if (missing(`entity_set_id`)) { - stop("Missing required parameter `entity_set_id`.") + if (missing(`namespace`)) { + stop("Missing required parameter `namespace`.") + } + + if (missing(`name`)) { + stop("Missing required parameter `name`.") + } + + urlPath <- "/datastore/edm/ids/property/type/{namespace}/{name}" + if (!missing(`namespace`)) { + urlPath <- gsub(paste0("\\{", "namespace", "\\}"), URLencode(as.character(`namespace`), reserved = TRUE), urlPath) } - urlPath <- "/datastore/entity-sets/all/{entitySetId}/properties" - if (!missing(`entity_set_id`)) { - urlPath <- gsub(paste0("\\{", "entitySetId", "\\}"), URLencode(as.character(`entity_set_id`), reserved = TRUE), urlPath) + if (!missing(`name`)) { + urlPath <- gsub(paste0("\\{", "name", "\\}"), URLencode(as.character(`name`), reserved = TRUE), urlPath) } # API key authentication @@ -4618,7 +3324,7 @@ EdmApi <- R6::R6Class( if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "list(PropertyType)", loadNamespace("openlattice")), + self$apiClient$deserialize(resp, "character", loadNamespace("openlattice")), error = function(e){ stop("Failed to deserialize response") } @@ -4916,144 +3622,6 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - remove_entity_sets_from_linking_entity_set = function(linking_entity_set_id, request_body=NULL, ...){ - apiResponse <- self$remove_entity_sets_from_linking_entity_setWithHttpInfo(linking_entity_set_id, request_body, ...) - resp <- apiResponse$response - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - apiResponse$content - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - apiResponse - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - apiResponse - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - apiResponse - } - }, - - remove_entity_sets_from_linking_entity_setWithHttpInfo = function(linking_entity_set_id, request_body=NULL, ...){ - args <- list(...) - queryParams <- list() - headerParams <- c() - - if (missing(`linking_entity_set_id`)) { - stop("Missing required parameter `linking_entity_set_id`.") - } - - if (!missing(`request_body`)) { - body <- sprintf( - ' - [%s] -', - paste(sapply(`request_body`, function(x) { if (is.null(names(x) )) {paste0('"', x, '"')} else {jsonlite::toJSON(x$toJSON(), auto_unbox=FALSE, digits = NA)}}), collapse=",") - ) - } else { - body <- NULL - } - - urlPath <- "/datastore/entity-sets/linking/{linkingEntitySetId}" - if (!missing(`linking_entity_set_id`)) { - urlPath <- gsub(paste0("\\{", "linkingEntitySetId", "\\}"), URLencode(as.character(`linking_entity_set_id`), reserved = TRUE), urlPath) - } - - # API key authentication - if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { - headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') - } - - resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "DELETE", - queryParams = queryParams, - headerParams = headerParams, - body = body, - ...) - - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "integer", loadNamespace("openlattice")), - error = function(e){ - stop("Failed to deserialize response") - } - ) - ApiResponse$new(deserializedRespObj, resp) - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - ApiResponse$new("API client error", resp) - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - ApiResponse$new("API server error", resp) - } - }, - remove_entity_sets_from_linking_entity_sets = function(linking_entity_set_id, request_body, ...){ - apiResponse <- self$remove_entity_sets_from_linking_entity_setsWithHttpInfo(linking_entity_set_id, request_body, ...) - resp <- apiResponse$response - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - apiResponse$content - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - apiResponse - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - apiResponse - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - apiResponse - } - }, - - remove_entity_sets_from_linking_entity_setsWithHttpInfo = function(linking_entity_set_id, request_body, ...){ - args <- list(...) - queryParams <- list() - headerParams <- c() - - if (missing(`linking_entity_set_id`)) { - stop("Missing required parameter `linking_entity_set_id`.") - } - - if (missing(`request_body`)) { - stop("Missing required parameter `request_body`.") - } - - if (!missing(`request_body`)) { - body <- sprintf( - ' - %s -', - jsonlite::toJSON(`request_body`, digits=NA) - ) - } else { - body <- NULL - } - - urlPath <- "/datastore/entity-sets/linking/" - if (!missing(`linking_entity_set_id`)) { - urlPath <- gsub(paste0("\\{", "linkingEntitySetId", "\\}"), URLencode(as.character(`linking_entity_set_id`), reserved = TRUE), urlPath) - } - - # API key authentication - if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { - headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') - } - - resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "DELETE", - queryParams = queryParams, - headerParams = headerParams, - body = body, - ...) - - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "integer", loadNamespace("openlattice")), - error = function(e){ - stop("Failed to deserialize response") - } - ) - ApiResponse$new(deserializedRespObj, resp) - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - ApiResponse$new("API client error", resp) - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - ApiResponse$new("API server error", resp) - } - }, remove_primary_key_from_entity_type = function(entity_type_id, property_type_id, ...){ apiResponse <- self$remove_primary_key_from_entity_typeWithHttpInfo(entity_type_id, property_type_id, ...) resp <- apiResponse$response @@ -5343,150 +3911,6 @@ EdmApi <- R6::R6Class( ApiResponse$new("API server error", resp) } }, - update_entity_set_meta_data = function(entity_set_id, metadata_update, ...){ - apiResponse <- self$update_entity_set_meta_dataWithHttpInfo(entity_set_id, metadata_update, ...) - resp <- apiResponse$response - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - apiResponse$content - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - apiResponse - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - apiResponse - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - apiResponse - } - }, - - update_entity_set_meta_dataWithHttpInfo = function(entity_set_id, metadata_update, ...){ - args <- list(...) - queryParams <- list() - headerParams <- c() - - if (missing(`entity_set_id`)) { - stop("Missing required parameter `entity_set_id`.") - } - - if (missing(`metadata_update`)) { - stop("Missing required parameter `metadata_update`.") - } - - if (!missing(`metadata_update`)) { - body <- sprintf( - ' - %s - ', - jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=FALSE, digits = NA) - ) - } else { - body <- NULL - } - - urlPath <- "/datastore/entity-sets/all/{entitySetId}/metadata/" - if (!missing(`entity_set_id`)) { - urlPath <- gsub(paste0("\\{", "entitySetId", "\\}"), URLencode(as.character(`entity_set_id`), reserved = TRUE), urlPath) - } - - # API key authentication - if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { - headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') - } - - resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "PATCH", - queryParams = queryParams, - headerParams = headerParams, - body = body, - ...) - - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - deserializedRespObj <- tryCatch( - self$apiClient$deserialize(resp, "integer", loadNamespace("openlattice")), - error = function(e){ - stop("Failed to deserialize response") - } - ) - ApiResponse$new(deserializedRespObj, resp) - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - ApiResponse$new("API client error", resp) - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - ApiResponse$new("API server error", resp) - } - }, - update_entity_set_property_metadata = function(entity_set_id, property_type_id, metadata_update, ...){ - apiResponse <- self$update_entity_set_property_metadataWithHttpInfo(entity_set_id, property_type_id, metadata_update, ...) - resp <- apiResponse$response - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - apiResponse$content - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - apiResponse - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - apiResponse - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - apiResponse - } - }, - - update_entity_set_property_metadataWithHttpInfo = function(entity_set_id, property_type_id, metadata_update, ...){ - args <- list(...) - queryParams <- list() - headerParams <- c() - - if (missing(`entity_set_id`)) { - stop("Missing required parameter `entity_set_id`.") - } - - if (missing(`property_type_id`)) { - stop("Missing required parameter `property_type_id`.") - } - - if (missing(`metadata_update`)) { - stop("Missing required parameter `metadata_update`.") - } - - if (!missing(`metadata_update`)) { - body <- sprintf( - ' - %s - ', - jsonlite::toJSON(`metadata_update`$toJSON(), auto_unbox=FALSE, digits = NA) - ) - } else { - body <- NULL - } - - urlPath <- "/datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/" - if (!missing(`entity_set_id`)) { - urlPath <- gsub(paste0("\\{", "entitySetId", "\\}"), URLencode(as.character(`entity_set_id`), reserved = TRUE), urlPath) - } - - if (!missing(`property_type_id`)) { - urlPath <- gsub(paste0("\\{", "propertyTypeId", "\\}"), URLencode(as.character(`property_type_id`), reserved = TRUE), urlPath) - } - - # API key authentication - if ("Authorization" %in% names(self$apiClient$apiKeys) && nchar(self$apiClient$apiKeys["Authorization"]) > 0) { - headerParams['Authorization'] <- paste(unlist(self$apiClient$apiKeys["Authorization"]), collapse='') - } - - resp <- self$apiClient$CallApi(url = paste0(self$apiClient$basePath, urlPath), - method = "POST", - queryParams = queryParams, - headerParams = headerParams, - body = body, - ...) - - if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - ApiResponse$new(NULL, resp) - } else if (httr::status_code(resp) >= 300 && httr::status_code(resp) <= 399) { - ApiResponse$new(paste("Server returned " , httr::status_code(resp) , " response status code."), resp) - } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { - ApiResponse$new("API client error", resp) - } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { - ApiResponse$new("API server error", resp) - } - }, update_entity_type_meta_data = function(entity_type_id, metadata_update, ...){ apiResponse <- self$update_entity_type_meta_dataWithHttpInfo(entity_type_id, metadata_update, ...) resp <- apiResponse$response diff --git a/R/R/principal_api.R b/R/R/principal_api.R index 5d799b9..cd58858 100644 --- a/R/R/principal_api.R +++ b/R/R/principal_api.R @@ -508,7 +508,7 @@ PrincipalApi <- R6::R6Class( stop("Missing required parameter `search_query`.") } - urlPath <- "/datastore/principals/users/search/"{searchQuery}"" + urlPath <- "/datastore/principals/users/search/{searchQuery}" if (!missing(`search_query`)) { urlPath <- gsub(paste0("\\{", "searchQuery", "\\}"), URLencode(as.character(`search_query`), reserved = TRUE), urlPath) } diff --git a/R/README.md b/R/README.md index 73f216a..0e1d3f3 100644 --- a/R/README.md +++ b/R/README.md @@ -6,7 +6,7 @@ OpenLattice API This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI spec](https://openapis.org) from a remote server, you can easily generate an API client. - API version: 0.0.1 -- Package version: 0.1.1 +- Package version: 0.1.2 - Build package: org.openapitools.codegen.languages.RClientCodegen ## Installation @@ -27,8 +27,8 @@ install.packages("base64enc") git clone https://github.com/GIT_USER_ID/GIT_REPO_ID cd GIT_REPO_ID R CMD build . -R CMD check openlattice_0.1.1.tar.gz -R CMD INSTALL openlattice_0.1.1.tar.gz +R CMD check openlattice_0.1.2.tar.gz +R CMD INSTALL openlattice_0.1.2.tar.gz ``` ### Install the package @@ -109,27 +109,21 @@ Class | Method | HTTP request | Description *DatasetApi* | [**update_external_database_column**](docs/DatasetApi.md#update_external_database_column) | **PATCH** /datastore/organization-database/{organizationId}/{tableName}/{columnName}/external-database-column | Updates an OrganizationExternalDatabaseTableColumn object's fields that are included within the given metadata. *DatasetApi* | [**update_external_database_table**](docs/DatasetApi.md#update_external_database_table) | **PATCH** /datastore/organization-database/{organizationId}/{tableName}/external-database-table | Updates an OrganizationExternalDatabaseTable object's fields that are included within the given metadata. *EdmApi* | [**add_dst_entity_type_to_association_type**](docs/EdmApi.md#add_dst_entity_type_to_association_type) | **PUT** /datastore/edm/association/type/{associationTypeId}/dst/{entityTypeId} | Update the AssociationType dst entity types for the given AssociationType UUID by adding the given EntityType UUID. -*EdmApi* | [**add_entity_sets_to_linking_entity_set**](docs/EdmApi.md#add_entity_sets_to_linking_entity_set) | **POST** /datastore/entity-sets/linking/{linkingEntitySetId} | Adds the entity sets as linked entity sets to the linking entity set -*EdmApi* | [**add_entity_sets_to_linking_entity_sets**](docs/EdmApi.md#add_entity_sets_to_linking_entity_sets) | **PUT** /datastore/entity-sets/linking/ | Adds the entity sets as linked entity sets to the linking entity sets *EdmApi* | [**add_primary_key_to_entity_type**](docs/EdmApi.md#add_primary_key_to_entity_type) | **PUT** /datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId} | Adds a primary key with a given ID to an entity type with a given ID. *EdmApi* | [**add_property_type_to_entity_type**](docs/EdmApi.md#add_property_type_to_entity_type) | **PUT** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. *EdmApi* | [**add_src_entity_type_to_association_type**](docs/EdmApi.md#add_src_entity_type_to_association_type) | **PUT** /datastore/edm/association/type/{associationTypeId}/src/{entityTypeId} | Update the AssociationType src entity types for the given AssociationType UUID by adding the given EntityType UUID. *EdmApi* | [**create_association_type**](docs/EdmApi.md#create_association_type) | **POST** /datastore/edm/association/type/ | Creates a new AssociationType definition, if it doesn't exist. *EdmApi* | [**create_empty_schema**](docs/EdmApi.md#create_empty_schema) | **PUT** /datastore/edm/schema/{namespace}/{name} | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. -*EdmApi* | [**create_entity_sets**](docs/EdmApi.md#create_entity_sets) | **POST** /datastore/entity-sets | Creates new EntitySet definitions if they don't exist. *EdmApi* | [**create_entity_type**](docs/EdmApi.md#create_entity_type) | **POST** /datastore/edm/entity/type/ | Creates a new EntityType definition, if it doesn't exist. *EdmApi* | [**create_property_type**](docs/EdmApi.md#create_property_type) | **POST** /datastore/edm/property/type/ | Creates a new PropertyType definition, if it doesn\"t exist. *EdmApi* | [**create_schema_if_not_exists**](docs/EdmApi.md#create_schema_if_not_exists) | **POST** /datastore/edm/schema | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. *EdmApi* | [**delete_association_type**](docs/EdmApi.md#delete_association_type) | **DELETE** /datastore/edm/association/type/{associationTypeId} | Deletes the AssociationType definition for the given AssociationType UUID. -*EdmApi* | [**delete_entity_set**](docs/EdmApi.md#delete_entity_set) | **DELETE** /datastore/entity-sets/all/{entitySetId} | Deletes the EntitySet definition for the given EntitySet UUID. *EdmApi* | [**delete_entity_type**](docs/EdmApi.md#delete_entity_type) | **DELETE** /datastore/edm/entity/type/{entityTypeId} | Deletes the EntityType definition for the given EntityType UUID. *EdmApi* | [**delete_property_type**](docs/EdmApi.md#delete_property_type) | **DELETE** /datastore/edm/property/type/{propertyTypeId} | Deletes the PropertyType definition for the given PropertyType UUID. *EdmApi* | [**force_delete_property_type**](docs/EdmApi.md#force_delete_property_type) | **DELETE** /datastore/edm/property/type/{propertyTypeId}/force | Deletes the PropertyType definition for the given PropertyType UUID regardless of whether or not there is data associated with it. *EdmApi* | [**force_remove_property_type_from_entity_type**](docs/EdmApi.md#force_remove_property_type_from_entity_type) | **DELETE** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId}/force | Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID, regardless of whether or not there is data associated with the entity type. *EdmApi* | [**get_all_association_entity_types**](docs/EdmApi.md#get_all_association_entity_types) | **GET** /datastore/edm/association/type/ | Gets all association EntityType definitions. *EdmApi* | [**get_all_available_association_types**](docs/EdmApi.md#get_all_available_association_types) | **GET** /datastore/edm/association/type/{associationTypeId}/available | Get all available associations for the given AssociationType UUID. -*EdmApi* | [**get_all_entity_set_property_metadata**](docs/EdmApi.md#get_all_entity_set_property_metadata) | **GET** /datastore/entity-sets/all/{entitySetId}/metadata | Get all entity set property metadata. -*EdmApi* | [**get_all_entity_sets**](docs/EdmApi.md#get_all_entity_sets) | **GET** /datastore/entity-sets | Get all EntitySet definitions. *EdmApi* | [**get_all_entity_type_property_metadata**](docs/EdmApi.md#get_all_entity_type_property_metadata) | **GET** /datastore/edm/entity/type/{entityTypeId}/property/type | Get all EntityType propertyType metadata *EdmApi* | [**get_all_entity_types**](docs/EdmApi.md#get_all_entity_types) | **GET** /datastore/edm/entity/type/ | Gets all EntityType definitions. *EdmApi* | [**get_all_property_types**](docs/EdmApi.md#get_all_property_types) | **GET** /datastore/edm/property/type/ | Gets all PropertyType definitions. @@ -139,32 +133,22 @@ Class | Method | HTTP request | Description *EdmApi* | [**get_association_type_details**](docs/EdmApi.md#get_association_type_details) | **GET** /datastore/edm/association/type/{associationTypeId}/detailed | Get details about the AssociationType for the given AssociationType UUID. *EdmApi* | [**get_entity_data_model**](docs/EdmApi.md#get_entity_data_model) | **GET** /datastore/edm/ | Gets the entity data model, including namespaces, schemas, entity types, association types, and property types. *EdmApi* | [**get_entity_data_model_diff**](docs/EdmApi.md#get_entity_data_model_diff) | **POST** /datastore/edm/diff/ | Gets the changes between the existing entity data model and the entity data model passed in, including schemas, association types, entity types, and property types. -*EdmApi* | [**get_entity_set**](docs/EdmApi.md#get_entity_set) | **GET** /datastore/entity-sets/all/{entitySetId} | Get the EntitySet definition for the given EntitySet UUID. -*EdmApi* | [**get_entity_set_id**](docs/EdmApi.md#get_entity_set_id) | **GET** /datastore/entity-sets/ids/{entitySetName} | Gets the EntitySet UUID for the given EntitySet name. -*EdmApi* | [**get_entity_set_ids**](docs/EdmApi.md#get_entity_set_ids) | **POST** /datastore/entity-sets/ids/ | Get IDs for entity sets given their names. -*EdmApi* | [**get_entity_set_property_metadata**](docs/EdmApi.md#get_entity_set_property_metadata) | **GET** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Get specified property type metadata for an entity set. *EdmApi* | [**get_entity_type**](docs/EdmApi.md#get_entity_type) | **GET** /datastore/edm/entity/type/{entityTypeId} | Gets the EntityType definition for the given EntityType UUID. *EdmApi* | [**get_entity_type_hierarchy**](docs/EdmApi.md#get_entity_type_hierarchy) | **PATCH** /datastore/edm/entity/type/{entityTypeId}/hierarchy | Get the EntityType hierarchy for the given EntityType UUID. *EdmApi* | [**get_entity_type_id**](docs/EdmApi.md#get_entity_type_id) | **GET** /datastore/edm/ids/entity/type/{namespace}/{name} | Gets the EntityType UUID for the given EntityType FQN. *EdmApi* | [**get_entity_type_property_metadata**](docs/EdmApi.md#get_entity_type_property_metadata) | **GET** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Get EntityType propertyType metadata -*EdmApi* | [**get_property_metadata_for_entity_sets**](docs/EdmApi.md#get_property_metadata_for_entity_sets) | **POST** /datastore/entity-sets/all/metadata | Get property metadata for entity sets. *EdmApi* | [**get_property_type**](docs/EdmApi.md#get_property_type) | **GET** /datastore/edm/property/type/{propertyTypeId} | Gets the PropertyType definition for the given PropertyType UUID. *EdmApi* | [**get_property_type_id**](docs/EdmApi.md#get_property_type_id) | **GET** /datastore/edm/ids/property/type/{namespace}/{name} | Gets the PropertyType UUID for the given PropertyType FQN. -*EdmApi* | [**get_property_types_for_entity_set**](docs/EdmApi.md#get_property_types_for_entity_set) | **GET** /datastore/entity-sets/all/{entitySetId}/properties | Get all Property Types for entity set *EdmApi* | [**get_property_usage_summary**](docs/EdmApi.md#get_property_usage_summary) | **GET** /datastore/edm/summary/{propertyTypeId} | Get Property Usage Summary for property with given ID. *EdmApi* | [**get_schema_contents**](docs/EdmApi.md#get_schema_contents) | **GET** /datastore/edm/schema/{namespace}/{name} | Gets the schema contents for a corresponding namespace and name. *EdmApi* | [**get_schemas**](docs/EdmApi.md#get_schemas) | **GET** /datastore/edm/schema | Gets all schemas. *EdmApi* | [**get_schemas_in_namespace**](docs/EdmApi.md#get_schemas_in_namespace) | **GET** /datastore/edm/schema/{namespace} | Gets all schemas associated with a given namespace and accessible by the caller. *EdmApi* | [**remove_dst_entity_type_from_association_type**](docs/EdmApi.md#remove_dst_entity_type_from_association_type) | **DELETE** /datastore/edm/association/type/{associationTypeId}/dst/{entityTypeId} | Updates the AssociationType dst entity types for the given AssociationType UUID by removing the given EntityType UUID. -*EdmApi* | [**remove_entity_sets_from_linking_entity_set**](docs/EdmApi.md#remove_entity_sets_from_linking_entity_set) | **DELETE** /datastore/entity-sets/linking/{linkingEntitySetId} | Removes/unlinks the linked entity sets from the linking entity set -*EdmApi* | [**remove_entity_sets_from_linking_entity_sets**](docs/EdmApi.md#remove_entity_sets_from_linking_entity_sets) | **DELETE** /datastore/entity-sets/linking/ | Removes/unlinks the linked entity sets from the linking entity set *EdmApi* | [**remove_primary_key_from_entity_type**](docs/EdmApi.md#remove_primary_key_from_entity_type) | **DELETE** /datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId} | Removes a primary key with a given ID from an entity type with a given ID. *EdmApi* | [**remove_property_type_from_entity_type**](docs/EdmApi.md#remove_property_type_from_entity_type) | **DELETE** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. *EdmApi* | [**remove_src_entity_type_from_association_type**](docs/EdmApi.md#remove_src_entity_type_from_association_type) | **DELETE** /datastore/edm/association/type/{associationTypeId}/src/{entityTypeId} | Updates the AssociationType src entity types for the given AssociationType UUID by removing the given EntityType UUID. *EdmApi* | [**reorder_property_types_in_entity_type**](docs/EdmApi.md#reorder_property_types_in_entity_type) | **PATCH** /datastore/edm/entity/type/{entityTypeId}/property/type | Updates the EntityType definition for the given EntityType UUID by reordering its properties as specified by the provided list. *EdmApi* | [**update_entity_data_model**](docs/EdmApi.md#update_entity_data_model) | **PATCH** /datastore/edm/ | Updates the entity data model, including schemas, entity types, association types, and property types. -*EdmApi* | [**update_entity_set_meta_data**](docs/EdmApi.md#update_entity_set_meta_data) | **PATCH** /datastore/entity-sets/all/{entitySetId}/metadata/ | Updates the EntitySet definition for the given EntitySet UUID with the given metadata. -*EdmApi* | [**update_entity_set_property_metadata**](docs/EdmApi.md#update_entity_set_property_metadata) | **POST** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Updates the property type metadata for the given entity set. *EdmApi* | [**update_entity_type_meta_data**](docs/EdmApi.md#update_entity_type_meta_data) | **PATCH** /datastore/edm/entity/type/{entityTypeId} | Updates the EntityType definition for the given EntityType UUID with the given metadata. *EdmApi* | [**update_entity_type_property_metadata**](docs/EdmApi.md#update_entity_type_property_metadata) | **POST** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Update EntityType Property metadata *EdmApi* | [**update_property_type_meta_data**](docs/EdmApi.md#update_property_type_meta_data) | **PATCH** /datastore/edm/property/type/{propertyTypeId} | Updates the PropertyType definition for the given PropertyType UUID with the given metadata. @@ -224,7 +208,7 @@ Class | Method | HTTP request | Description *PrincipalApi* | [**get_current_roles**](docs/PrincipalApi.md#get_current_roles) | **GET** /datastore/principals/roles/current/ | Get current roles. *PrincipalApi* | [**get_materialized_view_account**](docs/PrincipalApi.md#get_materialized_view_account) | **GET** /datastore/principals/db | Get the db access credentials. *PrincipalApi* | [**get_user**](docs/PrincipalApi.md#get_user) | **GET** /datastore/principals/users/{userId} | Get the user for the given id. -*PrincipalApi* | [**search_all_users**](docs/PrincipalApi.md#search_all_users) | **GET** /datastore/principals/users/search/"{searchQuery}" | Get the user id for the given search. +*PrincipalApi* | [**search_all_users**](docs/PrincipalApi.md#search_all_users) | **GET** /datastore/principals/users/search/{searchQuery} | Get the user id for the given search. *PrincipalApi* | [**search_all_users_by_email**](docs/PrincipalApi.md#search_all_users_by_email) | **GET** /datastore/principals/users/search/email/"{emailAddress}" | Get the user id for the given email address. *PrincipalApi* | [**sync_calling_user**](docs/PrincipalApi.md#sync_calling_user) | **GET** /datastore/principals/sync/ | Activates a user in the OpenLattice system. This call must be made once before a user will be available for use in authorization policies. *SearchApi* | [**execute_advanced_entity_set_data_query**](docs/SearchApi.md#execute_advanced_entity_set_data_query) | **POST** /datastore/search/advanced/{entitySetId} | Executes a search over the data of a given entity set to find rows that match the search term diff --git a/R/docs/EdmApi.md b/R/docs/EdmApi.md index 321aa98..7a1b12c 100644 --- a/R/docs/EdmApi.md +++ b/R/docs/EdmApi.md @@ -5,27 +5,21 @@ All URIs are relative to *https://api.openlattice.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**add_dst_entity_type_to_association_type**](EdmApi.md#add_dst_entity_type_to_association_type) | **PUT** /datastore/edm/association/type/{associationTypeId}/dst/{entityTypeId} | Update the AssociationType dst entity types for the given AssociationType UUID by adding the given EntityType UUID. -[**add_entity_sets_to_linking_entity_set**](EdmApi.md#add_entity_sets_to_linking_entity_set) | **POST** /datastore/entity-sets/linking/{linkingEntitySetId} | Adds the entity sets as linked entity sets to the linking entity set -[**add_entity_sets_to_linking_entity_sets**](EdmApi.md#add_entity_sets_to_linking_entity_sets) | **PUT** /datastore/entity-sets/linking/ | Adds the entity sets as linked entity sets to the linking entity sets [**add_primary_key_to_entity_type**](EdmApi.md#add_primary_key_to_entity_type) | **PUT** /datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId} | Adds a primary key with a given ID to an entity type with a given ID. [**add_property_type_to_entity_type**](EdmApi.md#add_property_type_to_entity_type) | **PUT** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. [**add_src_entity_type_to_association_type**](EdmApi.md#add_src_entity_type_to_association_type) | **PUT** /datastore/edm/association/type/{associationTypeId}/src/{entityTypeId} | Update the AssociationType src entity types for the given AssociationType UUID by adding the given EntityType UUID. [**create_association_type**](EdmApi.md#create_association_type) | **POST** /datastore/edm/association/type/ | Creates a new AssociationType definition, if it doesn't exist. [**create_empty_schema**](EdmApi.md#create_empty_schema) | **PUT** /datastore/edm/schema/{namespace}/{name} | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. -[**create_entity_sets**](EdmApi.md#create_entity_sets) | **POST** /datastore/entity-sets | Creates new EntitySet definitions if they don't exist. [**create_entity_type**](EdmApi.md#create_entity_type) | **POST** /datastore/edm/entity/type/ | Creates a new EntityType definition, if it doesn't exist. [**create_property_type**](EdmApi.md#create_property_type) | **POST** /datastore/edm/property/type/ | Creates a new PropertyType definition, if it doesn\"t exist. [**create_schema_if_not_exists**](EdmApi.md#create_schema_if_not_exists) | **POST** /datastore/edm/schema | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. [**delete_association_type**](EdmApi.md#delete_association_type) | **DELETE** /datastore/edm/association/type/{associationTypeId} | Deletes the AssociationType definition for the given AssociationType UUID. -[**delete_entity_set**](EdmApi.md#delete_entity_set) | **DELETE** /datastore/entity-sets/all/{entitySetId} | Deletes the EntitySet definition for the given EntitySet UUID. [**delete_entity_type**](EdmApi.md#delete_entity_type) | **DELETE** /datastore/edm/entity/type/{entityTypeId} | Deletes the EntityType definition for the given EntityType UUID. [**delete_property_type**](EdmApi.md#delete_property_type) | **DELETE** /datastore/edm/property/type/{propertyTypeId} | Deletes the PropertyType definition for the given PropertyType UUID. [**force_delete_property_type**](EdmApi.md#force_delete_property_type) | **DELETE** /datastore/edm/property/type/{propertyTypeId}/force | Deletes the PropertyType definition for the given PropertyType UUID regardless of whether or not there is data associated with it. [**force_remove_property_type_from_entity_type**](EdmApi.md#force_remove_property_type_from_entity_type) | **DELETE** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId}/force | Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID, regardless of whether or not there is data associated with the entity type. [**get_all_association_entity_types**](EdmApi.md#get_all_association_entity_types) | **GET** /datastore/edm/association/type/ | Gets all association EntityType definitions. [**get_all_available_association_types**](EdmApi.md#get_all_available_association_types) | **GET** /datastore/edm/association/type/{associationTypeId}/available | Get all available associations for the given AssociationType UUID. -[**get_all_entity_set_property_metadata**](EdmApi.md#get_all_entity_set_property_metadata) | **GET** /datastore/entity-sets/all/{entitySetId}/metadata | Get all entity set property metadata. -[**get_all_entity_sets**](EdmApi.md#get_all_entity_sets) | **GET** /datastore/entity-sets | Get all EntitySet definitions. [**get_all_entity_type_property_metadata**](EdmApi.md#get_all_entity_type_property_metadata) | **GET** /datastore/edm/entity/type/{entityTypeId}/property/type | Get all EntityType propertyType metadata [**get_all_entity_types**](EdmApi.md#get_all_entity_types) | **GET** /datastore/edm/entity/type/ | Gets all EntityType definitions. [**get_all_property_types**](EdmApi.md#get_all_property_types) | **GET** /datastore/edm/property/type/ | Gets all PropertyType definitions. @@ -35,32 +29,22 @@ Method | HTTP request | Description [**get_association_type_details**](EdmApi.md#get_association_type_details) | **GET** /datastore/edm/association/type/{associationTypeId}/detailed | Get details about the AssociationType for the given AssociationType UUID. [**get_entity_data_model**](EdmApi.md#get_entity_data_model) | **GET** /datastore/edm/ | Gets the entity data model, including namespaces, schemas, entity types, association types, and property types. [**get_entity_data_model_diff**](EdmApi.md#get_entity_data_model_diff) | **POST** /datastore/edm/diff/ | Gets the changes between the existing entity data model and the entity data model passed in, including schemas, association types, entity types, and property types. -[**get_entity_set**](EdmApi.md#get_entity_set) | **GET** /datastore/entity-sets/all/{entitySetId} | Get the EntitySet definition for the given EntitySet UUID. -[**get_entity_set_id**](EdmApi.md#get_entity_set_id) | **GET** /datastore/entity-sets/ids/{entitySetName} | Gets the EntitySet UUID for the given EntitySet name. -[**get_entity_set_ids**](EdmApi.md#get_entity_set_ids) | **POST** /datastore/entity-sets/ids/ | Get IDs for entity sets given their names. -[**get_entity_set_property_metadata**](EdmApi.md#get_entity_set_property_metadata) | **GET** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Get specified property type metadata for an entity set. [**get_entity_type**](EdmApi.md#get_entity_type) | **GET** /datastore/edm/entity/type/{entityTypeId} | Gets the EntityType definition for the given EntityType UUID. [**get_entity_type_hierarchy**](EdmApi.md#get_entity_type_hierarchy) | **PATCH** /datastore/edm/entity/type/{entityTypeId}/hierarchy | Get the EntityType hierarchy for the given EntityType UUID. [**get_entity_type_id**](EdmApi.md#get_entity_type_id) | **GET** /datastore/edm/ids/entity/type/{namespace}/{name} | Gets the EntityType UUID for the given EntityType FQN. [**get_entity_type_property_metadata**](EdmApi.md#get_entity_type_property_metadata) | **GET** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Get EntityType propertyType metadata -[**get_property_metadata_for_entity_sets**](EdmApi.md#get_property_metadata_for_entity_sets) | **POST** /datastore/entity-sets/all/metadata | Get property metadata for entity sets. [**get_property_type**](EdmApi.md#get_property_type) | **GET** /datastore/edm/property/type/{propertyTypeId} | Gets the PropertyType definition for the given PropertyType UUID. [**get_property_type_id**](EdmApi.md#get_property_type_id) | **GET** /datastore/edm/ids/property/type/{namespace}/{name} | Gets the PropertyType UUID for the given PropertyType FQN. -[**get_property_types_for_entity_set**](EdmApi.md#get_property_types_for_entity_set) | **GET** /datastore/entity-sets/all/{entitySetId}/properties | Get all Property Types for entity set [**get_property_usage_summary**](EdmApi.md#get_property_usage_summary) | **GET** /datastore/edm/summary/{propertyTypeId} | Get Property Usage Summary for property with given ID. [**get_schema_contents**](EdmApi.md#get_schema_contents) | **GET** /datastore/edm/schema/{namespace}/{name} | Gets the schema contents for a corresponding namespace and name. [**get_schemas**](EdmApi.md#get_schemas) | **GET** /datastore/edm/schema | Gets all schemas. [**get_schemas_in_namespace**](EdmApi.md#get_schemas_in_namespace) | **GET** /datastore/edm/schema/{namespace} | Gets all schemas associated with a given namespace and accessible by the caller. [**remove_dst_entity_type_from_association_type**](EdmApi.md#remove_dst_entity_type_from_association_type) | **DELETE** /datastore/edm/association/type/{associationTypeId}/dst/{entityTypeId} | Updates the AssociationType dst entity types for the given AssociationType UUID by removing the given EntityType UUID. -[**remove_entity_sets_from_linking_entity_set**](EdmApi.md#remove_entity_sets_from_linking_entity_set) | **DELETE** /datastore/entity-sets/linking/{linkingEntitySetId} | Removes/unlinks the linked entity sets from the linking entity set -[**remove_entity_sets_from_linking_entity_sets**](EdmApi.md#remove_entity_sets_from_linking_entity_sets) | **DELETE** /datastore/entity-sets/linking/ | Removes/unlinks the linked entity sets from the linking entity set [**remove_primary_key_from_entity_type**](EdmApi.md#remove_primary_key_from_entity_type) | **DELETE** /datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId} | Removes a primary key with a given ID from an entity type with a given ID. [**remove_property_type_from_entity_type**](EdmApi.md#remove_property_type_from_entity_type) | **DELETE** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. [**remove_src_entity_type_from_association_type**](EdmApi.md#remove_src_entity_type_from_association_type) | **DELETE** /datastore/edm/association/type/{associationTypeId}/src/{entityTypeId} | Updates the AssociationType src entity types for the given AssociationType UUID by removing the given EntityType UUID. [**reorder_property_types_in_entity_type**](EdmApi.md#reorder_property_types_in_entity_type) | **PATCH** /datastore/edm/entity/type/{entityTypeId}/property/type | Updates the EntityType definition for the given EntityType UUID by reordering its properties as specified by the provided list. [**update_entity_data_model**](EdmApi.md#update_entity_data_model) | **PATCH** /datastore/edm/ | Updates the entity data model, including schemas, entity types, association types, and property types. -[**update_entity_set_meta_data**](EdmApi.md#update_entity_set_meta_data) | **PATCH** /datastore/entity-sets/all/{entitySetId}/metadata/ | Updates the EntitySet definition for the given EntitySet UUID with the given metadata. -[**update_entity_set_property_metadata**](EdmApi.md#update_entity_set_property_metadata) | **POST** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Updates the property type metadata for the given entity set. [**update_entity_type_meta_data**](EdmApi.md#update_entity_type_meta_data) | **PATCH** /datastore/edm/entity/type/{entityTypeId} | Updates the EntityType definition for the given EntityType UUID with the given metadata. [**update_entity_type_property_metadata**](EdmApi.md#update_entity_type_property_metadata) | **POST** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Update EntityType Property metadata [**update_property_type_meta_data**](EdmApi.md#update_property_type_meta_data) | **PATCH** /datastore/edm/property/type/{propertyTypeId} | Updates the PropertyType definition for the given PropertyType UUID with the given metadata. @@ -114,102 +98,6 @@ void (empty response body) |-------------|-------------|------------------| | **200** | Success | - | -# **add_entity_sets_to_linking_entity_set** -> integer add_entity_sets_to_linking_entity_set(linking_entity_set_id, request_body=var.request_body) - -Adds the entity sets as linked entity sets to the linking entity set - -### Example -```R -library(openlattice) - -var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | -var.request_body <- list("property_example") # array[character] | - -#Adds the entity sets as linked entity sets to the linking entity set -api.instance <- EdmApi$new() -# Configure HTTP basic authorization: http_auth -api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; -api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; -# Configure API key authorization: openlattice_auth -api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -result <- api.instance$add_entity_sets_to_linking_entity_set(var.linking_entity_set_id, request_body=var.request_body) -dput(result) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **linking_entity_set_id** | [**character**](.md)| | - **request_body** | list( **character** )| | [optional] - -### Return type - -**integer** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - -# **add_entity_sets_to_linking_entity_sets** -> integer add_entity_sets_to_linking_entity_sets(linking_entity_set_id, request_body) - -Adds the entity sets as linked entity sets to the linking entity sets - -### Example -```R -library(openlattice) - -var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | -var.request_body <- TODO # list(array[character]) | - -#Adds the entity sets as linked entity sets to the linking entity sets -api.instance <- EdmApi$new() -# Configure HTTP basic authorization: http_auth -api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; -api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; -# Configure API key authorization: openlattice_auth -api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -result <- api.instance$add_entity_sets_to_linking_entity_sets(var.linking_entity_set_id, var.request_body) -dput(result) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **linking_entity_set_id** | **character**| | - **request_body** | named list( [**list(array[character])**](array.md) )| | - -### Return type - -**integer** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - # **add_primary_key_to_entity_type** > add_primary_key_to_entity_type(entity_type_id, property_type_id) @@ -438,51 +326,6 @@ void (empty response body) |-------------|-------------|------------------| | **200** | Success | - | -# **create_entity_sets** -> create_entity_sets(entity_set) - -Creates new EntitySet definitions if they don't exist. - -### Example -```R -library(openlattice) - -var.entity_set <- list(EntitySet$new("id_example", "entityTypeId_example", "name_example", "title_example", "description_example", list("contacts_example"), "linking_example", list("linkedEntitySets_example"), "organizationId_example", list("flags_example"), list(123))) # array[EntitySet] | - -#Creates new EntitySet definitions if they don't exist. -api.instance <- EdmApi$new() -# Configure HTTP basic authorization: http_auth -api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; -api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; -# Configure API key authorization: openlattice_auth -api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -api.instance$create_entity_sets(var.entity_set) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_set** | list( [**EntitySet**](EntitySet.md) )| | - -### Return type - -void (empty response body) - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - # **create_entity_type** > create_entity_type(entity_type) @@ -653,51 +496,6 @@ No authorization required |-------------|-------------|------------------| | **200** | Success | - | -# **delete_entity_set** -> delete_entity_set(entity_set_id) - -Deletes the EntitySet definition for the given EntitySet UUID. - -### Example -```R -library(openlattice) - -var.entity_set_id <- 'entity_set_id_example' # character | - -#Deletes the EntitySet definition for the given EntitySet UUID. -api.instance <- EdmApi$new() -# Configure HTTP basic authorization: http_auth -api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; -api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; -# Configure API key authorization: openlattice_auth -api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -api.instance$delete_entity_set(var.entity_set_id) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**character**](.md)| | - -### Return type - -void (empty response body) - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - # **delete_entity_type** > delete_entity_type(entity_type_id) @@ -963,94 +761,6 @@ Name | Type | Description | Notes |-------------|-------------|------------------| | **200** | Success | - | -# **get_all_entity_set_property_metadata** -> list(EntitySetPropertyMetaData) get_all_entity_set_property_metadata(entity_set_id) - -Get all entity set property metadata. - -### Example -```R -library(openlattice) - -var.entity_set_id <- 'entity_set_id_example' # character | - -#Get all entity set property metadata. -api.instance <- EdmApi$new() -# Configure HTTP basic authorization: http_auth -api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; -api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; -# Configure API key authorization: openlattice_auth -api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -result <- api.instance$get_all_entity_set_property_metadata(var.entity_set_id) -dput(result) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**character**](.md)| | - -### Return type - -[**list(EntitySetPropertyMetaData)**](EntitySetPropertyMetaData.md) - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - -# **get_all_entity_sets** -> array[EntitySet] get_all_entity_sets() - -Get all EntitySet definitions. - -### Example -```R -library(openlattice) - - -#Get all EntitySet definitions. -api.instance <- EdmApi$new() -# Configure HTTP basic authorization: http_auth -api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; -api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; -# Configure API key authorization: openlattice_auth -api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -result <- api.instance$get_all_entity_sets() -dput(result) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**array[EntitySet]**](EntitySet.md) - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - # **get_all_entity_type_property_metadata** > list(EntityTypePropertyMetadata) get_all_entity_type_property_metadata(entity_type_id) @@ -1444,25 +1154,20 @@ Name | Type | Description | Notes |-------------|-------------|------------------| | **200** | Success | - | -# **get_entity_set** -> EntitySet get_entity_set(entity_set_id) +# **get_entity_type** +> EntityType get_entity_type(entity_type_id) -Get the EntitySet definition for the given EntitySet UUID. +Gets the EntityType definition for the given EntityType UUID. ### Example ```R library(openlattice) -var.entity_set_id <- 'entity_set_id_example' # character | +var.entity_type_id <- 'entity_type_id_example' # character | -#Get the EntitySet definition for the given EntitySet UUID. +#Gets the EntityType definition for the given EntityType UUID. api.instance <- EdmApi$new() -# Configure HTTP basic authorization: http_auth -api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; -api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; -# Configure API key authorization: openlattice_auth -api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -result <- api.instance$get_entity_set(var.entity_set_id) +result <- api.instance$get_entity_type(var.entity_type_id) dput(result) ``` @@ -1470,15 +1175,15 @@ dput(result) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**character**](.md)| | + **entity_type_id** | [**character**](.md)| | ### Return type -[**EntitySet**](EntitySet.md) +[**EntityType**](EntityType.md) ### Authorization -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) +No authorization required ### HTTP request headers @@ -1488,39 +1193,38 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | An Entity Set definition | - | +| **200** | Success | - | -# **get_entity_set_id** -> character get_entity_set_id(entity_set_name) +# **get_entity_type_hierarchy** +> get_entity_type_hierarchy(entity_type_id) -Gets the EntitySet UUID for the given EntitySet name. +Get the EntityType hierarchy for the given EntityType UUID. ### Example ```R library(openlattice) -var.entity_set_name <- 'entity_set_name_example' # character | +var.entity_type_id <- 'entity_type_id_example' # character | -#Gets the EntitySet UUID for the given EntitySet name. +#Get the EntityType hierarchy for the given EntityType UUID. api.instance <- EdmApi$new() # Configure HTTP basic authorization: http_auth api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; # Configure API key authorization: openlattice_auth api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -result <- api.instance$get_entity_set_id(var.entity_set_name) -dput(result) +api.instance$get_entity_type_hierarchy(var.entity_type_id) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entity_set_name** | **character**| | + **entity_type_id** | [**character**](.md)| | ### Return type -**character** +void (empty response body) ### Authorization @@ -1529,195 +1233,15 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: Not defined ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | - | -# **get_entity_set_ids** -> list(character) get_entity_set_ids(request_body=var.request_body) - -Get IDs for entity sets given their names. - -### Example -```R -library(openlattice) - -var.request_body <- list("property_example") # array[character] | - -#Get IDs for entity sets given their names. -api.instance <- EdmApi$new() -# Configure HTTP basic authorization: http_auth -api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; -api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; -# Configure API key authorization: openlattice_auth -api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -result <- api.instance$get_entity_set_ids(request_body=var.request_body) -dput(result) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request_body** | list( **character** )| | [optional] - -### Return type - -**list(character)** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - -# **get_entity_set_property_metadata** -> EntitySetPropertyMetaData get_entity_set_property_metadata(entity_set_id, property_type_id) - -Get specified property type metadata for an entity set. - -### Example -```R -library(openlattice) - -var.entity_set_id <- 'entity_set_id_example' # character | -var.property_type_id <- 'property_type_id_example' # character | - -#Get specified property type metadata for an entity set. -api.instance <- EdmApi$new() -# Configure HTTP basic authorization: http_auth -api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; -api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; -# Configure API key authorization: openlattice_auth -api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -result <- api.instance$get_entity_set_property_metadata(var.entity_set_id, var.property_type_id) -dput(result) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**character**](.md)| | - **property_type_id** | [**character**](.md)| | - -### Return type - -[**EntitySetPropertyMetaData**](EntitySetPropertyMetaData.md) - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - -# **get_entity_type** -> EntityType get_entity_type(entity_type_id) - -Gets the EntityType definition for the given EntityType UUID. - -### Example -```R -library(openlattice) - -var.entity_type_id <- 'entity_type_id_example' # character | - -#Gets the EntityType definition for the given EntityType UUID. -api.instance <- EdmApi$new() -result <- api.instance$get_entity_type(var.entity_type_id) -dput(result) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_type_id** | [**character**](.md)| | - -### Return type - -[**EntityType**](EntityType.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - -# **get_entity_type_hierarchy** -> get_entity_type_hierarchy(entity_type_id) - -Get the EntityType hierarchy for the given EntityType UUID. - -### Example -```R -library(openlattice) - -var.entity_type_id <- 'entity_type_id_example' # character | - -#Get the EntityType hierarchy for the given EntityType UUID. -api.instance <- EdmApi$new() -# Configure HTTP basic authorization: http_auth -api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; -api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; -# Configure API key authorization: openlattice_auth -api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -api.instance$get_entity_type_hierarchy(var.entity_type_id) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_type_id** | [**character**](.md)| | - -### Return type - -void (empty response body) - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - -# **get_entity_type_id** -> character get_entity_type_id(namespace, name) +# **get_entity_type_id** +> character get_entity_type_id(namespace, name) Gets the EntityType UUID for the given EntityType FQN. @@ -1812,52 +1336,6 @@ Name | Type | Description | Notes |-------------|-------------|------------------| | **200** | Success | - | -# **get_property_metadata_for_entity_sets** -> list(list(EntitySetPropertyMetaData)) get_property_metadata_for_entity_sets(request_body=var.request_body) - -Get property metadata for entity sets. - -### Example -```R -library(openlattice) - -var.request_body <- list("property_example") # array[character] | - -#Get property metadata for entity sets. -api.instance <- EdmApi$new() -# Configure HTTP basic authorization: http_auth -api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; -api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; -# Configure API key authorization: openlattice_auth -api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -result <- api.instance$get_property_metadata_for_entity_sets(request_body=var.request_body) -dput(result) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request_body** | list( **character** )| | [optional] - -### Return type - -**list(list(EntitySetPropertyMetaData))** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | EntitySetPropertyMetaData | - | - # **get_property_type** > PropertyType get_property_type(property_type_id) @@ -1952,52 +1430,6 @@ Name | Type | Description | Notes |-------------|-------------|------------------| | **200** | Success | - | -# **get_property_types_for_entity_set** -> list(PropertyType) get_property_types_for_entity_set(entity_set_id) - -Get all Property Types for entity set - -### Example -```R -library(openlattice) - -var.entity_set_id <- 'entity_set_id_example' # character | - -#Get all Property Types for entity set -api.instance <- EdmApi$new() -# Configure HTTP basic authorization: http_auth -api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; -api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; -# Configure API key authorization: openlattice_auth -api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -result <- api.instance$get_property_types_for_entity_set(var.entity_set_id) -dput(result) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**character**](.md)| | - -### Return type - -[**list(PropertyType)**](PropertyType.md) - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - # **get_property_usage_summary** > array[PropertyUsageSummary] get_property_usage_summary(property_type_id) @@ -2229,102 +1661,6 @@ void (empty response body) |-------------|-------------|------------------| | **200** | Success | - | -# **remove_entity_sets_from_linking_entity_set** -> integer remove_entity_sets_from_linking_entity_set(linking_entity_set_id, request_body=var.request_body) - -Removes/unlinks the linked entity sets from the linking entity set - -### Example -```R -library(openlattice) - -var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | -var.request_body <- list("property_example") # array[character] | - -#Removes/unlinks the linked entity sets from the linking entity set -api.instance <- EdmApi$new() -# Configure HTTP basic authorization: http_auth -api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; -api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; -# Configure API key authorization: openlattice_auth -api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -result <- api.instance$remove_entity_sets_from_linking_entity_set(var.linking_entity_set_id, request_body=var.request_body) -dput(result) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **linking_entity_set_id** | **character**| | - **request_body** | list( **character** )| | [optional] - -### Return type - -**integer** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - -# **remove_entity_sets_from_linking_entity_sets** -> integer remove_entity_sets_from_linking_entity_sets(linking_entity_set_id, request_body) - -Removes/unlinks the linked entity sets from the linking entity set - -### Example -```R -library(openlattice) - -var.linking_entity_set_id <- 'linking_entity_set_id_example' # character | -var.request_body <- TODO # list(array[character]) | - -#Removes/unlinks the linked entity sets from the linking entity set -api.instance <- EdmApi$new() -# Configure HTTP basic authorization: http_auth -api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; -api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; -# Configure API key authorization: openlattice_auth -api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -result <- api.instance$remove_entity_sets_from_linking_entity_sets(var.linking_entity_set_id, var.request_body) -dput(result) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **linking_entity_set_id** | [**character**](.md)| | - **request_body** | named list( [**list(array[character])**](array.md) )| | - -### Return type - -**integer** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - # **remove_primary_key_from_entity_type** > remove_primary_key_from_entity_type(entity_type_id, property_type_id) @@ -2558,103 +1894,6 @@ void (empty response body) |-------------|-------------|------------------| | **200** | Success | - | -# **update_entity_set_meta_data** -> integer update_entity_set_meta_data(entity_set_id, metadata_update) - -Updates the EntitySet definition for the given EntitySet UUID with the given metadata. - -### Example -```R -library(openlattice) - -var.entity_set_id <- 'entity_set_id_example' # character | -var.metadata_update <- MetadataUpdate$new("title_example", "description_example", "name_example", list("contacts_example"), FullQualifiedName$new("name_example", "namespace_example"), "pii_example", "defaultShow_example", "url_example", TODO, "indexType_example", "organizationId_example", list(123), list("enumValues_example")) # MetadataUpdate | - -#Updates the EntitySet definition for the given EntitySet UUID with the given metadata. -api.instance <- EdmApi$new() -# Configure HTTP basic authorization: http_auth -api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; -api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; -# Configure API key authorization: openlattice_auth -api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -result <- api.instance$update_entity_set_meta_data(var.entity_set_id, var.metadata_update) -dput(result) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**character**](.md)| | - **metadata_update** | [**MetadataUpdate**](MetadataUpdate.md)| | - -### Return type - -**integer** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - -# **update_entity_set_property_metadata** -> update_entity_set_property_metadata(entity_set_id, property_type_id, metadata_update) - -Updates the property type metadata for the given entity set. - -### Example -```R -library(openlattice) - -var.entity_set_id <- 'entity_set_id_example' # character | -var.property_type_id <- 'property_type_id_example' # character | -var.metadata_update <- MetadataUpdate$new("title_example", "description_example", "name_example", list("contacts_example"), FullQualifiedName$new("name_example", "namespace_example"), "pii_example", "defaultShow_example", "url_example", TODO, "indexType_example", "organizationId_example", list(123), list("enumValues_example")) # MetadataUpdate | - -#Updates the property type metadata for the given entity set. -api.instance <- EdmApi$new() -# Configure HTTP basic authorization: http_auth -api.instance$apiClient$username <- 'TODO_YOUR_USERNAME'; -api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD'; -# Configure API key authorization: openlattice_auth -api.instance$apiClient$apiKeys['Authorization'] <- 'TODO_YOUR_API_KEY'; -api.instance$update_entity_set_property_metadata(var.entity_set_id, var.property_type_id, var.metadata_update) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**character**](.md)| | - **property_type_id** | [**character**](.md)| | - **metadata_update** | [**MetadataUpdate**](MetadataUpdate.md)| | - -### Return type - -void (empty response body) - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - # **update_entity_type_meta_data** > update_entity_type_meta_data(entity_type_id, metadata_update) diff --git a/R/docs/PrincipalApi.md b/R/docs/PrincipalApi.md index 4b5752c..72be70c 100644 --- a/R/docs/PrincipalApi.md +++ b/R/docs/PrincipalApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description [**get_current_roles**](PrincipalApi.md#get_current_roles) | **GET** /datastore/principals/roles/current/ | Get current roles. [**get_materialized_view_account**](PrincipalApi.md#get_materialized_view_account) | **GET** /datastore/principals/db | Get the db access credentials. [**get_user**](PrincipalApi.md#get_user) | **GET** /datastore/principals/users/{userId} | Get the user for the given id. -[**search_all_users**](PrincipalApi.md#search_all_users) | **GET** /datastore/principals/users/search/"{searchQuery}" | Get the user id for the given search. +[**search_all_users**](PrincipalApi.md#search_all_users) | **GET** /datastore/principals/users/search/{searchQuery} | Get the user id for the given search. [**search_all_users_by_email**](PrincipalApi.md#search_all_users_by_email) | **GET** /datastore/principals/users/search/email/"{emailAddress}" | Get the user id for the given email address. [**sync_calling_user**](PrincipalApi.md#sync_calling_user) | **GET** /datastore/principals/sync/ | Activates a user in the OpenLattice system. This call must be made once before a user will be available for use in authorization policies. diff --git a/R/tests/testthat/test_edm_api.R b/R/tests/testthat/test_edm_api.R index 74a2c85..55167ea 100644 --- a/R/tests/testthat/test_edm_api.R +++ b/R/tests/testthat/test_edm_api.R @@ -17,30 +17,6 @@ test_that("add_dst_entity_type_to_association_type", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("add_entity_sets_to_linking_entity_set", { - # tests for add_entity_sets_to_linking_entity_set - # base path: https://api.openlattice.com - # Adds the entity sets as linked entity sets to the linking entity set - # @param linking_entity_set_id character - # @param request_body array[character] (optional) - # @return [integer] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - -test_that("add_entity_sets_to_linking_entity_sets", { - # tests for add_entity_sets_to_linking_entity_sets - # base path: https://api.openlattice.com - # Adds the entity sets as linked entity sets to the linking entity sets - # @param linking_entity_set_id character - # @param request_body list(array[character]) - # @return [integer] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - test_that("add_primary_key_to_entity_type", { # tests for add_primary_key_to_entity_type # base path: https://api.openlattice.com @@ -100,17 +76,6 @@ test_that("create_empty_schema", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("create_entity_sets", { - # tests for create_entity_sets - # base path: https://api.openlattice.com - # Creates new EntitySet definitions if they don't exist. - # @param entity_set array[EntitySet] - # @return [Void] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - test_that("create_entity_type", { # tests for create_entity_type # base path: https://api.openlattice.com @@ -155,17 +120,6 @@ test_that("delete_association_type", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("delete_entity_set", { - # tests for delete_entity_set - # base path: https://api.openlattice.com - # Deletes the EntitySet definition for the given EntitySet UUID. - # @param entity_set_id character - # @return [Void] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - test_that("delete_entity_type", { # tests for delete_entity_type # base path: https://api.openlattice.com @@ -232,27 +186,6 @@ test_that("get_all_available_association_types", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("get_all_entity_set_property_metadata", { - # tests for get_all_entity_set_property_metadata - # base path: https://api.openlattice.com - # Get all entity set property metadata. - # @param entity_set_id character - # @return [list(EntitySetPropertyMetaData)] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - -test_that("get_all_entity_sets", { - # tests for get_all_entity_sets - # base path: https://api.openlattice.com - # Get all EntitySet definitions. - # @return [array[EntitySet]] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - test_that("get_all_entity_type_property_metadata", { # tests for get_all_entity_type_property_metadata # base path: https://api.openlattice.com @@ -348,51 +281,6 @@ test_that("get_entity_data_model_diff", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("get_entity_set", { - # tests for get_entity_set - # base path: https://api.openlattice.com - # Get the EntitySet definition for the given EntitySet UUID. - # @param entity_set_id character - # @return [EntitySet] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - -test_that("get_entity_set_id", { - # tests for get_entity_set_id - # base path: https://api.openlattice.com - # Gets the EntitySet UUID for the given EntitySet name. - # @param entity_set_name character - # @return [character] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - -test_that("get_entity_set_ids", { - # tests for get_entity_set_ids - # base path: https://api.openlattice.com - # Get IDs for entity sets given their names. - # @param request_body array[character] (optional) - # @return [list(character)] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - -test_that("get_entity_set_property_metadata", { - # tests for get_entity_set_property_metadata - # base path: https://api.openlattice.com - # Get specified property type metadata for an entity set. - # @param entity_set_id character - # @param property_type_id character - # @return [EntitySetPropertyMetaData] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - test_that("get_entity_type", { # tests for get_entity_type # base path: https://api.openlattice.com @@ -439,17 +327,6 @@ test_that("get_entity_type_property_metadata", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("get_property_metadata_for_entity_sets", { - # tests for get_property_metadata_for_entity_sets - # base path: https://api.openlattice.com - # Get property metadata for entity sets. - # @param request_body array[character] (optional) - # @return [list(list(EntitySetPropertyMetaData))] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - test_that("get_property_type", { # tests for get_property_type # base path: https://api.openlattice.com @@ -473,17 +350,6 @@ test_that("get_property_type_id", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("get_property_types_for_entity_set", { - # tests for get_property_types_for_entity_set - # base path: https://api.openlattice.com - # Get all Property Types for entity set - # @param entity_set_id character - # @return [list(PropertyType)] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - test_that("get_property_usage_summary", { # tests for get_property_usage_summary # base path: https://api.openlattice.com @@ -541,30 +407,6 @@ test_that("remove_dst_entity_type_from_association_type", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("remove_entity_sets_from_linking_entity_set", { - # tests for remove_entity_sets_from_linking_entity_set - # base path: https://api.openlattice.com - # Removes/unlinks the linked entity sets from the linking entity set - # @param linking_entity_set_id character - # @param request_body array[character] (optional) - # @return [integer] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - -test_that("remove_entity_sets_from_linking_entity_sets", { - # tests for remove_entity_sets_from_linking_entity_sets - # base path: https://api.openlattice.com - # Removes/unlinks the linked entity sets from the linking entity set - # @param linking_entity_set_id character - # @param request_body list(array[character]) - # @return [integer] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - test_that("remove_primary_key_from_entity_type", { # tests for remove_primary_key_from_entity_type # base path: https://api.openlattice.com @@ -624,31 +466,6 @@ test_that("update_entity_data_model", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("update_entity_set_meta_data", { - # tests for update_entity_set_meta_data - # base path: https://api.openlattice.com - # Updates the EntitySet definition for the given EntitySet UUID with the given metadata. - # @param entity_set_id character - # @param metadata_update MetadataUpdate - # @return [integer] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - -test_that("update_entity_set_property_metadata", { - # tests for update_entity_set_property_metadata - # base path: https://api.openlattice.com - # Updates the property type metadata for the given entity set. - # @param entity_set_id character - # @param property_type_id character - # @param metadata_update MetadataUpdate - # @return [Void] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - test_that("update_entity_type_meta_data", { # tests for update_entity_type_meta_data # base path: https://api.openlattice.com diff --git a/android/README.md b/android/README.md index 9fa3839..24023e7 100644 --- a/android/README.md +++ b/android/README.md @@ -234,7 +234,7 @@ Class | Method | HTTP request | Description *PrincipalApi* | [**getCurrentRoles**](docs/PrincipalApi.md#getCurrentRoles) | **GET** /datastore/principals/roles/current/ | Get current roles. *PrincipalApi* | [**getMaterializedViewAccount**](docs/PrincipalApi.md#getMaterializedViewAccount) | **GET** /datastore/principals/db | Get the db access credentials. *PrincipalApi* | [**getUser**](docs/PrincipalApi.md#getUser) | **GET** /datastore/principals/users/{userId} | Get the user for the given id. -*PrincipalApi* | [**searchAllUsers**](docs/PrincipalApi.md#searchAllUsers) | **GET** /datastore/principals/users/search/"{searchQuery}" | Get the user id for the given search. +*PrincipalApi* | [**searchAllUsers**](docs/PrincipalApi.md#searchAllUsers) | **GET** /datastore/principals/users/search/{searchQuery} | Get the user id for the given search. *PrincipalApi* | [**searchAllUsersByEmail**](docs/PrincipalApi.md#searchAllUsersByEmail) | **GET** /datastore/principals/users/search/email/"{emailAddress}" | Get the user id for the given email address. *PrincipalApi* | [**syncCallingUser**](docs/PrincipalApi.md#syncCallingUser) | **GET** /datastore/principals/sync/ | Activates a user in the OpenLattice system. This call must be made once before a user will be available for use in authorization policies. *SearchApi* | [**executeAdvancedEntitySetDataQuery**](docs/SearchApi.md#executeAdvancedEntitySetDataQuery) | **POST** /datastore/search/advanced/{entitySetId} | Executes a search over the data of a given entity set to find rows that match the search term diff --git a/android/docs/PrincipalApi.md b/android/docs/PrincipalApi.md index 376d3aa..d0b8909 100644 --- a/android/docs/PrincipalApi.md +++ b/android/docs/PrincipalApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description [**getCurrentRoles**](PrincipalApi.md#getCurrentRoles) | **GET** /datastore/principals/roles/current/ | Get current roles. [**getMaterializedViewAccount**](PrincipalApi.md#getMaterializedViewAccount) | **GET** /datastore/principals/db | Get the db access credentials. [**getUser**](PrincipalApi.md#getUser) | **GET** /datastore/principals/users/{userId} | Get the user for the given id. -[**searchAllUsers**](PrincipalApi.md#searchAllUsers) | **GET** /datastore/principals/users/search/"{searchQuery}" | Get the user id for the given search. +[**searchAllUsers**](PrincipalApi.md#searchAllUsers) | **GET** /datastore/principals/users/search/{searchQuery} | Get the user id for the given search. [**searchAllUsersByEmail**](PrincipalApi.md#searchAllUsersByEmail) | **GET** /datastore/principals/users/search/email/"{emailAddress}" | Get the user id for the given email address. [**syncCallingUser**](PrincipalApi.md#syncCallingUser) | **GET** /datastore/principals/sync/ | Activates a user in the OpenLattice system. This call must be made once before a user will be available for use in authorization policies. diff --git a/android/src/main/java/org/openapitools/client/api/PrincipalApi.java b/android/src/main/java/org/openapitools/client/api/PrincipalApi.java index bc3facc..6c7c2c3 100644 --- a/android/src/main/java/org/openapitools/client/api/PrincipalApi.java +++ b/android/src/main/java/org/openapitools/client/api/PrincipalApi.java @@ -547,7 +547,7 @@ public Map searchAllUsers (String searchQuery) throws Ti } // create path and map variables - String path = "/datastore/principals/users/search/"{searchQuery}"".replaceAll("\\{" + "searchQuery" + "\\}", apiInvoker.escapeString(searchQuery.toString())); + String path = "/datastore/principals/users/search/{searchQuery}".replaceAll("\\{" + "searchQuery" + "\\}", apiInvoker.escapeString(searchQuery.toString())); // query params List queryParams = new ArrayList(); @@ -609,7 +609,7 @@ public void searchAllUsers (String searchQuery, final Response.Listener queryParams = new ArrayList(); diff --git a/go/README.md b/go/README.md index bf671e2..cfdb40d 100644 --- a/go/README.md +++ b/go/README.md @@ -6,7 +6,7 @@ OpenLattice API This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 0.0.1 -- Package version: 0.1.1 +- Package version: 0.1.2 - Build package: org.openapitools.codegen.languages.GoClientCodegen ## Installation @@ -184,7 +184,7 @@ Class | Method | HTTP request | Description *PrincipalApi* | [**GetCurrentRoles**](docs/PrincipalApi.md#getcurrentroles) | **Get** /datastore/principals/roles/current/ | Get current roles. *PrincipalApi* | [**GetMaterializedViewAccount**](docs/PrincipalApi.md#getmaterializedviewaccount) | **Get** /datastore/principals/db | Get the db access credentials. *PrincipalApi* | [**GetUser**](docs/PrincipalApi.md#getuser) | **Get** /datastore/principals/users/{userId} | Get the user for the given id. -*PrincipalApi* | [**SearchAllUsers**](docs/PrincipalApi.md#searchallusers) | **Get** /datastore/principals/users/search/"{searchQuery}" | Get the user id for the given search. +*PrincipalApi* | [**SearchAllUsers**](docs/PrincipalApi.md#searchallusers) | **Get** /datastore/principals/users/search/{searchQuery} | Get the user id for the given search. *PrincipalApi* | [**SearchAllUsersByEmail**](docs/PrincipalApi.md#searchallusersbyemail) | **Get** /datastore/principals/users/search/email/"{emailAddress}" | Get the user id for the given email address. *PrincipalApi* | [**SyncCallingUser**](docs/PrincipalApi.md#synccallinguser) | **Get** /datastore/principals/sync/ | Activates a user in the OpenLattice system. This call must be made once before a user will be available for use in authorization policies. *SearchApi* | [**ExecuteAdvancedEntitySetDataQuery**](docs/SearchApi.md#executeadvancedentitysetdataquery) | **Post** /datastore/search/advanced/{entitySetId} | Executes a search over the data of a given entity set to find rows that match the search term diff --git a/go/api/openapi.yaml b/go/api/openapi.yaml index bda3a26..bad7ed6 100644 --- a/go/api/openapi.yaml +++ b/go/api/openapi.yaml @@ -3310,7 +3310,7 @@ paths: summary: Get the user id for the given email address. tags: - principal - /datastore/principals/users/search/"{searchQuery}": + /datastore/principals/users/search/{searchQuery}: get: operationId: searchAllUsers parameters: diff --git a/go/api_principal.go b/go/api_principal.go index d340293..4b2a196 100644 --- a/go/api_principal.go +++ b/go/api_principal.go @@ -390,7 +390,7 @@ func (a *PrincipalApiService) SearchAllUsers(ctx _context.Context, searchQuery s ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/principals/users/search/"{searchQuery}"" + localVarPath := a.client.cfg.BasePath + "/datastore/principals/users/search/{searchQuery}" localVarPath = strings.Replace(localVarPath, "{"+"searchQuery"+"}", _neturl.PathEscape(parameterToString(searchQuery, "")) , -1) localVarHeaderParams := make(map[string]string) diff --git a/go/configuration.go b/go/configuration.go index 9f645df..e8f18fb 100644 --- a/go/configuration.go +++ b/go/configuration.go @@ -85,7 +85,7 @@ func NewConfiguration() *Configuration { cfg := &Configuration{ BasePath: "https://api.openlattice.com", DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/0.1.1/go", + UserAgent: "OpenAPI-Generator/0.1.2/go", Debug: false, Servers: []ServerConfiguration{ { diff --git a/go/docs/PrincipalApi.md b/go/docs/PrincipalApi.md index 4241083..e963059 100644 --- a/go/docs/PrincipalApi.md +++ b/go/docs/PrincipalApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description [**GetCurrentRoles**](PrincipalApi.md#GetCurrentRoles) | **Get** /datastore/principals/roles/current/ | Get current roles. [**GetMaterializedViewAccount**](PrincipalApi.md#GetMaterializedViewAccount) | **Get** /datastore/principals/db | Get the db access credentials. [**GetUser**](PrincipalApi.md#GetUser) | **Get** /datastore/principals/users/{userId} | Get the user for the given id. -[**SearchAllUsers**](PrincipalApi.md#SearchAllUsers) | **Get** /datastore/principals/users/search/"{searchQuery}" | Get the user id for the given search. +[**SearchAllUsers**](PrincipalApi.md#SearchAllUsers) | **Get** /datastore/principals/users/search/{searchQuery} | Get the user id for the given search. [**SearchAllUsersByEmail**](PrincipalApi.md#SearchAllUsersByEmail) | **Get** /datastore/principals/users/search/email/"{emailAddress}" | Get the user id for the given email address. [**SyncCallingUser**](PrincipalApi.md#SyncCallingUser) | **Get** /datastore/principals/sync/ | Activates a user in the OpenLattice system. This call must be made once before a user will be available for use in authorization policies. diff --git a/javascript/README.md b/javascript/README.md index a3e07ff..b53477f 100644 --- a/javascript/README.md +++ b/javascript/README.md @@ -280,7 +280,7 @@ Class | Method | HTTP request | Description *OpenLatticeApi.PrincipalApi* | [**getCurrentRoles**](docs/PrincipalApi.md#getCurrentRoles) | **GET** /datastore/principals/roles/current/ | Get current roles. *OpenLatticeApi.PrincipalApi* | [**getMaterializedViewAccount**](docs/PrincipalApi.md#getMaterializedViewAccount) | **GET** /datastore/principals/db | Get the db access credentials. *OpenLatticeApi.PrincipalApi* | [**getUser**](docs/PrincipalApi.md#getUser) | **GET** /datastore/principals/users/{userId} | Get the user for the given id. -*OpenLatticeApi.PrincipalApi* | [**searchAllUsers**](docs/PrincipalApi.md#searchAllUsers) | **GET** /datastore/principals/users/search/"{searchQuery}" | Get the user id for the given search. +*OpenLatticeApi.PrincipalApi* | [**searchAllUsers**](docs/PrincipalApi.md#searchAllUsers) | **GET** /datastore/principals/users/search/{searchQuery} | Get the user id for the given search. *OpenLatticeApi.PrincipalApi* | [**searchAllUsersByEmail**](docs/PrincipalApi.md#searchAllUsersByEmail) | **GET** /datastore/principals/users/search/email/"{emailAddress}" | Get the user id for the given email address. *OpenLatticeApi.PrincipalApi* | [**syncCallingUser**](docs/PrincipalApi.md#syncCallingUser) | **GET** /datastore/principals/sync/ | Activates a user in the OpenLattice system. This call must be made once before a user will be available for use in authorization policies. *OpenLatticeApi.SearchApi* | [**executeAdvancedEntitySetDataQuery**](docs/SearchApi.md#executeAdvancedEntitySetDataQuery) | **POST** /datastore/search/advanced/{entitySetId} | Executes a search over the data of a given entity set to find rows that match the search term diff --git a/javascript/docs/PrincipalApi.md b/javascript/docs/PrincipalApi.md index b8a8e50..8f8927b 100644 --- a/javascript/docs/PrincipalApi.md +++ b/javascript/docs/PrincipalApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description [**getCurrentRoles**](PrincipalApi.md#getCurrentRoles) | **GET** /datastore/principals/roles/current/ | Get current roles. [**getMaterializedViewAccount**](PrincipalApi.md#getMaterializedViewAccount) | **GET** /datastore/principals/db | Get the db access credentials. [**getUser**](PrincipalApi.md#getUser) | **GET** /datastore/principals/users/{userId} | Get the user for the given id. -[**searchAllUsers**](PrincipalApi.md#searchAllUsers) | **GET** /datastore/principals/users/search/"{searchQuery}" | Get the user id for the given search. +[**searchAllUsers**](PrincipalApi.md#searchAllUsers) | **GET** /datastore/principals/users/search/{searchQuery} | Get the user id for the given search. [**searchAllUsersByEmail**](PrincipalApi.md#searchAllUsersByEmail) | **GET** /datastore/principals/users/search/email/"{emailAddress}" | Get the user id for the given email address. [**syncCallingUser**](PrincipalApi.md#syncCallingUser) | **GET** /datastore/principals/sync/ | Activates a user in the OpenLattice system. This call must be made once before a user will be available for use in authorization policies. diff --git a/javascript/src/api/PrincipalApi.js b/javascript/src/api/PrincipalApi.js index a692008..b957710 100644 --- a/javascript/src/api/PrincipalApi.js +++ b/javascript/src/api/PrincipalApi.js @@ -222,7 +222,7 @@ export default class PrincipalApi { let accepts = ['application/json']; let returnType = {'String': Auth0userBasic}; return this.apiClient.callApi( - '/datastore/principals/users/search/"{searchQuery}"', 'GET', + '/datastore/principals/users/search/{searchQuery}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); diff --git a/python/README.md b/python/README.md index 7a3d671..87c847a 100644 --- a/python/README.md +++ b/python/README.md @@ -4,7 +4,7 @@ OpenLattice API This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 0.0.1 -- Package version: 0.1.1 +- Package version: 0.1.2 - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. @@ -251,7 +251,7 @@ Class | Method | HTTP request | Description *PrincipalApi* | [**get_current_roles**](docs/PrincipalApi.md#get_current_roles) | **GET** /datastore/principals/roles/current/ | Get current roles. *PrincipalApi* | [**get_materialized_view_account**](docs/PrincipalApi.md#get_materialized_view_account) | **GET** /datastore/principals/db | Get the db access credentials. *PrincipalApi* | [**get_user**](docs/PrincipalApi.md#get_user) | **GET** /datastore/principals/users/{userId} | Get the user for the given id. -*PrincipalApi* | [**search_all_users**](docs/PrincipalApi.md#search_all_users) | **GET** /datastore/principals/users/search/"{searchQuery}" | Get the user id for the given search. +*PrincipalApi* | [**search_all_users**](docs/PrincipalApi.md#search_all_users) | **GET** /datastore/principals/users/search/{searchQuery} | Get the user id for the given search. *PrincipalApi* | [**search_all_users_by_email**](docs/PrincipalApi.md#search_all_users_by_email) | **GET** /datastore/principals/users/search/email/"{emailAddress}" | Get the user id for the given email address. *PrincipalApi* | [**sync_calling_user**](docs/PrincipalApi.md#sync_calling_user) | **GET** /datastore/principals/sync/ | Activates a user in the OpenLattice system. This call must be made once before a user will be available for use in authorization policies. *SearchApi* | [**execute_advanced_entity_set_data_query**](docs/SearchApi.md#execute_advanced_entity_set_data_query) | **POST** /datastore/search/advanced/{entitySetId} | Executes a search over the data of a given entity set to find rows that match the search term diff --git a/python/docs/PrincipalApi.md b/python/docs/PrincipalApi.md index 94a76b9..3b4d6d6 100644 --- a/python/docs/PrincipalApi.md +++ b/python/docs/PrincipalApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description [**get_current_roles**](PrincipalApi.md#get_current_roles) | **GET** /datastore/principals/roles/current/ | Get current roles. [**get_materialized_view_account**](PrincipalApi.md#get_materialized_view_account) | **GET** /datastore/principals/db | Get the db access credentials. [**get_user**](PrincipalApi.md#get_user) | **GET** /datastore/principals/users/{userId} | Get the user for the given id. -[**search_all_users**](PrincipalApi.md#search_all_users) | **GET** /datastore/principals/users/search/"{searchQuery}" | Get the user id for the given search. +[**search_all_users**](PrincipalApi.md#search_all_users) | **GET** /datastore/principals/users/search/{searchQuery} | Get the user id for the given search. [**search_all_users_by_email**](PrincipalApi.md#search_all_users_by_email) | **GET** /datastore/principals/users/search/email/"{emailAddress}" | Get the user id for the given email address. [**sync_calling_user**](PrincipalApi.md#sync_calling_user) | **GET** /datastore/principals/sync/ | Activates a user in the OpenLattice system. This call must be made once before a user will be available for use in authorization policies. diff --git a/python/openlattice/__init__.py b/python/openlattice/__init__.py index a969fd6..a478409 100644 --- a/python/openlattice/__init__.py +++ b/python/openlattice/__init__.py @@ -15,7 +15,7 @@ from __future__ import absolute_import -__version__ = "0.1.1" +__version__ = "0.1.2" # import apis into sdk package from openlattice.api.admin_api import AdminApi diff --git a/python/openlattice/api/principal_api.py b/python/openlattice/api/principal_api.py index 06be248..d1da1a1 100644 --- a/python/openlattice/api/principal_api.py +++ b/python/openlattice/api/principal_api.py @@ -633,7 +633,7 @@ def search_all_users_with_http_info(self, search_query, **kwargs): # noqa: E501 auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 return self.api_client.call_api( - '/datastore/principals/users/search/"{searchQuery}"', 'GET', + '/datastore/principals/users/search/{searchQuery}', 'GET', path_params, query_params, header_params, diff --git a/python/openlattice/api_client.py b/python/openlattice/api_client.py index 45a1b17..cd80b23 100644 --- a/python/openlattice/api_client.py +++ b/python/openlattice/api_client.py @@ -79,7 +79,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/0.1.1/python' + self.user_agent = 'OpenAPI-Generator/0.1.2/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/python/openlattice/configuration.py b/python/openlattice/configuration.py index 41b142f..da6a706 100644 --- a/python/openlattice/configuration.py +++ b/python/openlattice/configuration.py @@ -70,6 +70,15 @@ class Configuration(object): disabled. This can be useful to troubleshoot data validation problem, such as when the OpenAPI document validation rules do not match the actual API data received by the server. + :param server_index: Index to servers configuration. + :param server_variables: Mapping with string values to replace variables in + templated server configuration. The validation of enums is performed for + variables with defined enum values before. + :param server_operation_index: Mapping from operation ID to an index to server + configuration. + :param server_operation_variables: Mapping from operation ID to a mapping with + string values to replace variables in templated server configuration. + The validation of enums is performed for variables with defined enum values before. :Example: @@ -95,17 +104,27 @@ class Configuration(object): _default = None - def __init__(self, host="https://api.openlattice.com", + def __init__(self, host=None, api_key=None, api_key_prefix=None, username=None, password=None, discard_unknown_keys=False, disabled_client_side_validations="", + server_index=None, server_variables=None, + server_operation_index=None, server_operation_variables=None, ): """Constructor """ - self.host = host + self._base_path = "https://api.openlattice.com" if host is None else host """Default Base url """ + self.server_index = 0 if server_index is None and host is None else server_index + self.server_operation_index = server_operation_index or {} + """Default server index + """ + self.server_variables = server_variables or {} + self.server_operation_variables = server_operation_variables or {} + """Default server variables + """ self.temp_folder_path = None """Temp file folder for downloading files """ @@ -190,7 +209,7 @@ def __init__(self, host="https://api.openlattice.com", self.retries = None """Adding retries to override urllib3 default value 3 """ - # Disable client side validation + # Enable client side validation self.client_side_validation = True def __deepcopy__(self, memo): @@ -393,7 +412,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 0.0.1\n"\ - "SDK Package Version: 0.1.1".\ + "SDK Package Version: 0.1.2".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): @@ -416,14 +435,18 @@ def get_host_settings(self): } ] - def get_host_from_settings(self, index, variables=None): + def get_host_from_settings(self, index, variables=None, servers=None): """Gets host URL based on the index and variables :param index: array index of the host settings :param variables: hash of variable and the corresponding value + :param servers: an array of host settings or None :return: URL based on host settings """ + if index is None: + return self._base_path + variables = {} if variables is None else variables - servers = self.get_host_settings() + servers = self.get_host_settings() if servers is None else servers try: server = servers[index] @@ -435,7 +458,7 @@ def get_host_from_settings(self, index, variables=None): url = server['url'] # go through variables and replace placeholders - for variable_name, variable in server['variables'].items(): + for variable_name, variable in server.get('variables', {}).items(): used_value = variables.get( variable_name, variable['default_value']) @@ -450,3 +473,14 @@ def get_host_from_settings(self, index, variables=None): url = url.replace("{" + variable_name + "}", used_value) return url + + @property + def host(self): + """Return generated host.""" + return self.get_host_from_settings(self.server_index, variables=self.server_variables) + + @host.setter + def host(self, value): + """Fix base path.""" + self._base_path = value + self.server_index = None diff --git a/python/setup.py b/python/setup.py index 1b73b87..471da19 100644 --- a/python/setup.py +++ b/python/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "openlattice" -VERSION = "0.1.1" +VERSION = "0.1.2" # To install the library, run the following # # python setup.py install diff --git a/ruby/README.md b/ruby/README.md index ab3f801..0a6551a 100644 --- a/ruby/README.md +++ b/ruby/README.md @@ -237,7 +237,7 @@ Class | Method | HTTP request | Description *OpenapiClient::PrincipalApi* | [**get_current_roles**](docs/PrincipalApi.md#get_current_roles) | **GET** /datastore/principals/roles/current/ | Get current roles. *OpenapiClient::PrincipalApi* | [**get_materialized_view_account**](docs/PrincipalApi.md#get_materialized_view_account) | **GET** /datastore/principals/db | Get the db access credentials. *OpenapiClient::PrincipalApi* | [**get_user**](docs/PrincipalApi.md#get_user) | **GET** /datastore/principals/users/{userId} | Get the user for the given id. -*OpenapiClient::PrincipalApi* | [**search_all_users**](docs/PrincipalApi.md#search_all_users) | **GET** /datastore/principals/users/search/"{searchQuery}" | Get the user id for the given search. +*OpenapiClient::PrincipalApi* | [**search_all_users**](docs/PrincipalApi.md#search_all_users) | **GET** /datastore/principals/users/search/{searchQuery} | Get the user id for the given search. *OpenapiClient::PrincipalApi* | [**search_all_users_by_email**](docs/PrincipalApi.md#search_all_users_by_email) | **GET** /datastore/principals/users/search/email/"{emailAddress}" | Get the user id for the given email address. *OpenapiClient::PrincipalApi* | [**sync_calling_user**](docs/PrincipalApi.md#sync_calling_user) | **GET** /datastore/principals/sync/ | Activates a user in the OpenLattice system. This call must be made once before a user will be available for use in authorization policies. *OpenapiClient::SearchApi* | [**execute_advanced_entity_set_data_query**](docs/SearchApi.md#execute_advanced_entity_set_data_query) | **POST** /datastore/search/advanced/{entitySetId} | Executes a search over the data of a given entity set to find rows that match the search term diff --git a/ruby/docs/PrincipalApi.md b/ruby/docs/PrincipalApi.md index ae47877..4a43ed1 100644 --- a/ruby/docs/PrincipalApi.md +++ b/ruby/docs/PrincipalApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description [**get_current_roles**](PrincipalApi.md#get_current_roles) | **GET** /datastore/principals/roles/current/ | Get current roles. [**get_materialized_view_account**](PrincipalApi.md#get_materialized_view_account) | **GET** /datastore/principals/db | Get the db access credentials. [**get_user**](PrincipalApi.md#get_user) | **GET** /datastore/principals/users/{userId} | Get the user for the given id. -[**search_all_users**](PrincipalApi.md#search_all_users) | **GET** /datastore/principals/users/search/"{searchQuery}" | Get the user id for the given search. +[**search_all_users**](PrincipalApi.md#search_all_users) | **GET** /datastore/principals/users/search/{searchQuery} | Get the user id for the given search. [**search_all_users_by_email**](PrincipalApi.md#search_all_users_by_email) | **GET** /datastore/principals/users/search/email/"{emailAddress}" | Get the user id for the given email address. [**sync_calling_user**](PrincipalApi.md#sync_calling_user) | **GET** /datastore/principals/sync/ | Activates a user in the OpenLattice system. This call must be made once before a user will be available for use in authorization policies. diff --git a/ruby/lib/openapi_client/api/principal_api.rb b/ruby/lib/openapi_client/api/principal_api.rb index 013780f..c72de6a 100644 --- a/ruby/lib/openapi_client/api/principal_api.rb +++ b/ruby/lib/openapi_client/api/principal_api.rb @@ -263,7 +263,7 @@ def search_all_users_with_http_info(search_query, opts = {}) fail ArgumentError, "Missing the required parameter 'search_query' when calling PrincipalApi.search_all_users" end # resource path - local_var_path = '/datastore/principals/users/search/"{searchQuery}"'.sub('{' + 'searchQuery' + '}', CGI.escape(search_query.to_s)) + local_var_path = '/datastore/principals/users/search/{searchQuery}'.sub('{' + 'searchQuery' + '}', CGI.escape(search_query.to_s)) # query parameters query_params = opts[:query_params] || {}