diff --git a/R/R/edm_api.R b/R/R/edm_api.R index 5c09b0a..69f82ce 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 <- {'key' => array$new()} # 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 <- {'key' => array$new()} # 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) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, 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) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, 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) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, 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) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, 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) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, 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=TRUE, 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=TRUE, 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/README.md b/R/README.md index 73f216a..48017f2 100644 --- a/R/README.md +++ b/R/README.md @@ -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. 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/tests/testthat/test_edm_api.R b/R/tests/testthat/test_edm_api.R index cc5ff1f..169ee78 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 character linking_entity_set_id - # @param array[character] request_body (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 character linking_entity_set_id - # @param list(array[character]) request_body - # @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 array[EntitySet] entity_set - # @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 character entity_set_id - # @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 character entity_set_id - # @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 character entity_set_id - # @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 character entity_set_name - # @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 array[character] request_body (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 character entity_set_id - # @param character property_type_id - # @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 array[character] request_body (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 character entity_set_id - # @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 character linking_entity_set_id - # @param array[character] request_body (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 character linking_entity_set_id - # @param list(array[character]) request_body - # @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 character entity_set_id - # @param MetadataUpdate metadata_update - # @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 character entity_set_id - # @param character property_type_id - # @param MetadataUpdate metadata_update - # @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 62b3142..9fa3839 100644 --- a/android/README.md +++ b/android/README.md @@ -135,27 +135,21 @@ Class | Method | HTTP request | Description *DatasetApi* | [**updateExternalDatabaseColumn**](docs/DatasetApi.md#updateExternalDatabaseColumn) | **PATCH** /datastore/organization-database/{organizationId}/{tableName}/{columnName}/external-database-column | Updates an OrganizationExternalDatabaseTableColumn object's fields that are included within the given metadata. *DatasetApi* | [**updateExternalDatabaseTable**](docs/DatasetApi.md#updateExternalDatabaseTable) | **PATCH** /datastore/organization-database/{organizationId}/{tableName}/external-database-table | Updates an OrganizationExternalDatabaseTable object's fields that are included within the given metadata. *EdmApi* | [**addDstEntityTypeToAssociationType**](docs/EdmApi.md#addDstEntityTypeToAssociationType) | **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* | [**addEntitySetsToLinkingEntitySet**](docs/EdmApi.md#addEntitySetsToLinkingEntitySet) | **POST** /datastore/entity-sets/linking/{linkingEntitySetId} | Adds the entity sets as linked entity sets to the linking entity set -*EdmApi* | [**addEntitySetsToLinkingEntitySets**](docs/EdmApi.md#addEntitySetsToLinkingEntitySets) | **PUT** /datastore/entity-sets/linking/ | Adds the entity sets as linked entity sets to the linking entity sets *EdmApi* | [**addPrimaryKeyToEntityType**](docs/EdmApi.md#addPrimaryKeyToEntityType) | **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* | [**addPropertyTypeToEntityType**](docs/EdmApi.md#addPropertyTypeToEntityType) | **PUT** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. *EdmApi* | [**addSrcEntityTypeToAssociationType**](docs/EdmApi.md#addSrcEntityTypeToAssociationType) | **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* | [**createAssociationType**](docs/EdmApi.md#createAssociationType) | **POST** /datastore/edm/association/type/ | Creates a new AssociationType definition, if it doesn't exist. *EdmApi* | [**createEmptySchema**](docs/EdmApi.md#createEmptySchema) | **PUT** /datastore/edm/schema/{namespace}/{name} | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. -*EdmApi* | [**createEntitySets**](docs/EdmApi.md#createEntitySets) | **POST** /datastore/entity-sets | Creates new EntitySet definitions if they don't exist. *EdmApi* | [**createEntityType**](docs/EdmApi.md#createEntityType) | **POST** /datastore/edm/entity/type/ | Creates a new EntityType definition, if it doesn't exist. *EdmApi* | [**createPropertyType**](docs/EdmApi.md#createPropertyType) | **POST** /datastore/edm/property/type/ | Creates a new PropertyType definition, if it doesn\"t exist. *EdmApi* | [**createSchemaIfNotExists**](docs/EdmApi.md#createSchemaIfNotExists) | **POST** /datastore/edm/schema | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. *EdmApi* | [**deleteAssociationType**](docs/EdmApi.md#deleteAssociationType) | **DELETE** /datastore/edm/association/type/{associationTypeId} | Deletes the AssociationType definition for the given AssociationType UUID. -*EdmApi* | [**deleteEntitySet**](docs/EdmApi.md#deleteEntitySet) | **DELETE** /datastore/entity-sets/all/{entitySetId} | Deletes the EntitySet definition for the given EntitySet UUID. *EdmApi* | [**deleteEntityType**](docs/EdmApi.md#deleteEntityType) | **DELETE** /datastore/edm/entity/type/{entityTypeId} | Deletes the EntityType definition for the given EntityType UUID. *EdmApi* | [**deletePropertyType**](docs/EdmApi.md#deletePropertyType) | **DELETE** /datastore/edm/property/type/{propertyTypeId} | Deletes the PropertyType definition for the given PropertyType UUID. *EdmApi* | [**forceDeletePropertyType**](docs/EdmApi.md#forceDeletePropertyType) | **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* | [**forceRemovePropertyTypeFromEntityType**](docs/EdmApi.md#forceRemovePropertyTypeFromEntityType) | **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* | [**getAllAssociationEntityTypes**](docs/EdmApi.md#getAllAssociationEntityTypes) | **GET** /datastore/edm/association/type/ | Gets all association EntityType definitions. *EdmApi* | [**getAllAvailableAssociationTypes**](docs/EdmApi.md#getAllAvailableAssociationTypes) | **GET** /datastore/edm/association/type/{associationTypeId}/available | Get all available associations for the given AssociationType UUID. -*EdmApi* | [**getAllEntitySetPropertyMetadata**](docs/EdmApi.md#getAllEntitySetPropertyMetadata) | **GET** /datastore/entity-sets/all/{entitySetId}/metadata | Get all entity set property metadata. -*EdmApi* | [**getAllEntitySets**](docs/EdmApi.md#getAllEntitySets) | **GET** /datastore/entity-sets | Get all EntitySet definitions. *EdmApi* | [**getAllEntityTypePropertyMetadata**](docs/EdmApi.md#getAllEntityTypePropertyMetadata) | **GET** /datastore/edm/entity/type/{entityTypeId}/property/type | Get all EntityType propertyType metadata *EdmApi* | [**getAllEntityTypes**](docs/EdmApi.md#getAllEntityTypes) | **GET** /datastore/edm/entity/type/ | Gets all EntityType definitions. *EdmApi* | [**getAllPropertyTypes**](docs/EdmApi.md#getAllPropertyTypes) | **GET** /datastore/edm/property/type/ | Gets all PropertyType definitions. @@ -165,32 +159,22 @@ Class | Method | HTTP request | Description *EdmApi* | [**getAssociationTypeDetails**](docs/EdmApi.md#getAssociationTypeDetails) | **GET** /datastore/edm/association/type/{associationTypeId}/detailed | Get details about the AssociationType for the given AssociationType UUID. *EdmApi* | [**getEntityDataModel**](docs/EdmApi.md#getEntityDataModel) | **GET** /datastore/edm/ | Gets the entity data model, including namespaces, schemas, entity types, association types, and property types. *EdmApi* | [**getEntityDataModelDiff**](docs/EdmApi.md#getEntityDataModelDiff) | **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* | [**getEntitySet**](docs/EdmApi.md#getEntitySet) | **GET** /datastore/entity-sets/all/{entitySetId} | Get the EntitySet definition for the given EntitySet UUID. -*EdmApi* | [**getEntitySetId**](docs/EdmApi.md#getEntitySetId) | **GET** /datastore/entity-sets/ids/{entitySetName} | Gets the EntitySet UUID for the given EntitySet name. -*EdmApi* | [**getEntitySetIds**](docs/EdmApi.md#getEntitySetIds) | **POST** /datastore/entity-sets/ids/ | Get IDs for entity sets given their names. -*EdmApi* | [**getEntitySetPropertyMetadata**](docs/EdmApi.md#getEntitySetPropertyMetadata) | **GET** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Get specified property type metadata for an entity set. *EdmApi* | [**getEntityType**](docs/EdmApi.md#getEntityType) | **GET** /datastore/edm/entity/type/{entityTypeId} | Gets the EntityType definition for the given EntityType UUID. *EdmApi* | [**getEntityTypeHierarchy**](docs/EdmApi.md#getEntityTypeHierarchy) | **PATCH** /datastore/edm/entity/type/{entityTypeId}/hierarchy | Get the EntityType hierarchy for the given EntityType UUID. *EdmApi* | [**getEntityTypeId**](docs/EdmApi.md#getEntityTypeId) | **GET** /datastore/edm/ids/entity/type/{namespace}/{name} | Gets the EntityType UUID for the given EntityType FQN. *EdmApi* | [**getEntityTypePropertyMetadata**](docs/EdmApi.md#getEntityTypePropertyMetadata) | **GET** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Get EntityType propertyType metadata -*EdmApi* | [**getPropertyMetadataForEntitySets**](docs/EdmApi.md#getPropertyMetadataForEntitySets) | **POST** /datastore/entity-sets/all/metadata | Get property metadata for entity sets. *EdmApi* | [**getPropertyType**](docs/EdmApi.md#getPropertyType) | **GET** /datastore/edm/property/type/{propertyTypeId} | Gets the PropertyType definition for the given PropertyType UUID. *EdmApi* | [**getPropertyTypeId**](docs/EdmApi.md#getPropertyTypeId) | **GET** /datastore/edm/ids/property/type/{namespace}/{name} | Gets the PropertyType UUID for the given PropertyType FQN. -*EdmApi* | [**getPropertyTypesForEntitySet**](docs/EdmApi.md#getPropertyTypesForEntitySet) | **GET** /datastore/entity-sets/all/{entitySetId}/properties | Get all Property Types for entity set *EdmApi* | [**getPropertyUsageSummary**](docs/EdmApi.md#getPropertyUsageSummary) | **GET** /datastore/edm/summary/{propertyTypeId} | Get Property Usage Summary for property with given ID. *EdmApi* | [**getSchemaContents**](docs/EdmApi.md#getSchemaContents) | **GET** /datastore/edm/schema/{namespace}/{name} | Gets the schema contents for a corresponding namespace and name. *EdmApi* | [**getSchemas**](docs/EdmApi.md#getSchemas) | **GET** /datastore/edm/schema | Gets all schemas. *EdmApi* | [**getSchemasInNamespace**](docs/EdmApi.md#getSchemasInNamespace) | **GET** /datastore/edm/schema/{namespace} | Gets all schemas associated with a given namespace and accessible by the caller. *EdmApi* | [**removeDstEntityTypeFromAssociationType**](docs/EdmApi.md#removeDstEntityTypeFromAssociationType) | **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* | [**removeEntitySetsFromLinkingEntitySet**](docs/EdmApi.md#removeEntitySetsFromLinkingEntitySet) | **DELETE** /datastore/entity-sets/linking/{linkingEntitySetId} | Removes/unlinks the linked entity sets from the linking entity set -*EdmApi* | [**removeEntitySetsFromLinkingEntitySets**](docs/EdmApi.md#removeEntitySetsFromLinkingEntitySets) | **DELETE** /datastore/entity-sets/linking/ | Removes/unlinks the linked entity sets from the linking entity set *EdmApi* | [**removePrimaryKeyFromEntityType**](docs/EdmApi.md#removePrimaryKeyFromEntityType) | **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* | [**removePropertyTypeFromEntityType**](docs/EdmApi.md#removePropertyTypeFromEntityType) | **DELETE** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. *EdmApi* | [**removeSrcEntityTypeFromAssociationType**](docs/EdmApi.md#removeSrcEntityTypeFromAssociationType) | **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* | [**reorderPropertyTypesInEntityType**](docs/EdmApi.md#reorderPropertyTypesInEntityType) | **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* | [**updateEntityDataModel**](docs/EdmApi.md#updateEntityDataModel) | **PATCH** /datastore/edm/ | Updates the entity data model, including schemas, entity types, association types, and property types. -*EdmApi* | [**updateEntitySetMetaData**](docs/EdmApi.md#updateEntitySetMetaData) | **PATCH** /datastore/entity-sets/all/{entitySetId}/metadata/ | Updates the EntitySet definition for the given EntitySet UUID with the given metadata. -*EdmApi* | [**updateEntitySetPropertyMetadata**](docs/EdmApi.md#updateEntitySetPropertyMetadata) | **POST** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Updates the property type metadata for the given entity set. *EdmApi* | [**updateEntityTypeMetaData**](docs/EdmApi.md#updateEntityTypeMetaData) | **PATCH** /datastore/edm/entity/type/{entityTypeId} | Updates the EntityType definition for the given EntityType UUID with the given metadata. *EdmApi* | [**updateEntityTypePropertyMetadata**](docs/EdmApi.md#updateEntityTypePropertyMetadata) | **POST** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Update EntityType Property metadata *EdmApi* | [**updatePropertyTypeMetaData**](docs/EdmApi.md#updatePropertyTypeMetaData) | **PATCH** /datastore/edm/property/type/{propertyTypeId} | Updates the PropertyType definition for the given PropertyType UUID with the given metadata. diff --git a/android/docs/EdmApi.md b/android/docs/EdmApi.md index 865dd8f..2741233 100644 --- a/android/docs/EdmApi.md +++ b/android/docs/EdmApi.md @@ -5,27 +5,21 @@ All URIs are relative to *https://api.openlattice.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**addDstEntityTypeToAssociationType**](EdmApi.md#addDstEntityTypeToAssociationType) | **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. -[**addEntitySetsToLinkingEntitySet**](EdmApi.md#addEntitySetsToLinkingEntitySet) | **POST** /datastore/entity-sets/linking/{linkingEntitySetId} | Adds the entity sets as linked entity sets to the linking entity set -[**addEntitySetsToLinkingEntitySets**](EdmApi.md#addEntitySetsToLinkingEntitySets) | **PUT** /datastore/entity-sets/linking/ | Adds the entity sets as linked entity sets to the linking entity sets [**addPrimaryKeyToEntityType**](EdmApi.md#addPrimaryKeyToEntityType) | **PUT** /datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId} | Adds a primary key with a given ID to an entity type with a given ID. [**addPropertyTypeToEntityType**](EdmApi.md#addPropertyTypeToEntityType) | **PUT** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. [**addSrcEntityTypeToAssociationType**](EdmApi.md#addSrcEntityTypeToAssociationType) | **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. [**createAssociationType**](EdmApi.md#createAssociationType) | **POST** /datastore/edm/association/type/ | Creates a new AssociationType definition, if it doesn't exist. [**createEmptySchema**](EdmApi.md#createEmptySchema) | **PUT** /datastore/edm/schema/{namespace}/{name} | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. -[**createEntitySets**](EdmApi.md#createEntitySets) | **POST** /datastore/entity-sets | Creates new EntitySet definitions if they don't exist. [**createEntityType**](EdmApi.md#createEntityType) | **POST** /datastore/edm/entity/type/ | Creates a new EntityType definition, if it doesn't exist. [**createPropertyType**](EdmApi.md#createPropertyType) | **POST** /datastore/edm/property/type/ | Creates a new PropertyType definition, if it doesn\"t exist. [**createSchemaIfNotExists**](EdmApi.md#createSchemaIfNotExists) | **POST** /datastore/edm/schema | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. [**deleteAssociationType**](EdmApi.md#deleteAssociationType) | **DELETE** /datastore/edm/association/type/{associationTypeId} | Deletes the AssociationType definition for the given AssociationType UUID. -[**deleteEntitySet**](EdmApi.md#deleteEntitySet) | **DELETE** /datastore/entity-sets/all/{entitySetId} | Deletes the EntitySet definition for the given EntitySet UUID. [**deleteEntityType**](EdmApi.md#deleteEntityType) | **DELETE** /datastore/edm/entity/type/{entityTypeId} | Deletes the EntityType definition for the given EntityType UUID. [**deletePropertyType**](EdmApi.md#deletePropertyType) | **DELETE** /datastore/edm/property/type/{propertyTypeId} | Deletes the PropertyType definition for the given PropertyType UUID. [**forceDeletePropertyType**](EdmApi.md#forceDeletePropertyType) | **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. [**forceRemovePropertyTypeFromEntityType**](EdmApi.md#forceRemovePropertyTypeFromEntityType) | **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. [**getAllAssociationEntityTypes**](EdmApi.md#getAllAssociationEntityTypes) | **GET** /datastore/edm/association/type/ | Gets all association EntityType definitions. [**getAllAvailableAssociationTypes**](EdmApi.md#getAllAvailableAssociationTypes) | **GET** /datastore/edm/association/type/{associationTypeId}/available | Get all available associations for the given AssociationType UUID. -[**getAllEntitySetPropertyMetadata**](EdmApi.md#getAllEntitySetPropertyMetadata) | **GET** /datastore/entity-sets/all/{entitySetId}/metadata | Get all entity set property metadata. -[**getAllEntitySets**](EdmApi.md#getAllEntitySets) | **GET** /datastore/entity-sets | Get all EntitySet definitions. [**getAllEntityTypePropertyMetadata**](EdmApi.md#getAllEntityTypePropertyMetadata) | **GET** /datastore/edm/entity/type/{entityTypeId}/property/type | Get all EntityType propertyType metadata [**getAllEntityTypes**](EdmApi.md#getAllEntityTypes) | **GET** /datastore/edm/entity/type/ | Gets all EntityType definitions. [**getAllPropertyTypes**](EdmApi.md#getAllPropertyTypes) | **GET** /datastore/edm/property/type/ | Gets all PropertyType definitions. @@ -35,32 +29,22 @@ Method | HTTP request | Description [**getAssociationTypeDetails**](EdmApi.md#getAssociationTypeDetails) | **GET** /datastore/edm/association/type/{associationTypeId}/detailed | Get details about the AssociationType for the given AssociationType UUID. [**getEntityDataModel**](EdmApi.md#getEntityDataModel) | **GET** /datastore/edm/ | Gets the entity data model, including namespaces, schemas, entity types, association types, and property types. [**getEntityDataModelDiff**](EdmApi.md#getEntityDataModelDiff) | **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. -[**getEntitySet**](EdmApi.md#getEntitySet) | **GET** /datastore/entity-sets/all/{entitySetId} | Get the EntitySet definition for the given EntitySet UUID. -[**getEntitySetId**](EdmApi.md#getEntitySetId) | **GET** /datastore/entity-sets/ids/{entitySetName} | Gets the EntitySet UUID for the given EntitySet name. -[**getEntitySetIds**](EdmApi.md#getEntitySetIds) | **POST** /datastore/entity-sets/ids/ | Get IDs for entity sets given their names. -[**getEntitySetPropertyMetadata**](EdmApi.md#getEntitySetPropertyMetadata) | **GET** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Get specified property type metadata for an entity set. [**getEntityType**](EdmApi.md#getEntityType) | **GET** /datastore/edm/entity/type/{entityTypeId} | Gets the EntityType definition for the given EntityType UUID. [**getEntityTypeHierarchy**](EdmApi.md#getEntityTypeHierarchy) | **PATCH** /datastore/edm/entity/type/{entityTypeId}/hierarchy | Get the EntityType hierarchy for the given EntityType UUID. [**getEntityTypeId**](EdmApi.md#getEntityTypeId) | **GET** /datastore/edm/ids/entity/type/{namespace}/{name} | Gets the EntityType UUID for the given EntityType FQN. [**getEntityTypePropertyMetadata**](EdmApi.md#getEntityTypePropertyMetadata) | **GET** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Get EntityType propertyType metadata -[**getPropertyMetadataForEntitySets**](EdmApi.md#getPropertyMetadataForEntitySets) | **POST** /datastore/entity-sets/all/metadata | Get property metadata for entity sets. [**getPropertyType**](EdmApi.md#getPropertyType) | **GET** /datastore/edm/property/type/{propertyTypeId} | Gets the PropertyType definition for the given PropertyType UUID. [**getPropertyTypeId**](EdmApi.md#getPropertyTypeId) | **GET** /datastore/edm/ids/property/type/{namespace}/{name} | Gets the PropertyType UUID for the given PropertyType FQN. -[**getPropertyTypesForEntitySet**](EdmApi.md#getPropertyTypesForEntitySet) | **GET** /datastore/entity-sets/all/{entitySetId}/properties | Get all Property Types for entity set [**getPropertyUsageSummary**](EdmApi.md#getPropertyUsageSummary) | **GET** /datastore/edm/summary/{propertyTypeId} | Get Property Usage Summary for property with given ID. [**getSchemaContents**](EdmApi.md#getSchemaContents) | **GET** /datastore/edm/schema/{namespace}/{name} | Gets the schema contents for a corresponding namespace and name. [**getSchemas**](EdmApi.md#getSchemas) | **GET** /datastore/edm/schema | Gets all schemas. [**getSchemasInNamespace**](EdmApi.md#getSchemasInNamespace) | **GET** /datastore/edm/schema/{namespace} | Gets all schemas associated with a given namespace and accessible by the caller. [**removeDstEntityTypeFromAssociationType**](EdmApi.md#removeDstEntityTypeFromAssociationType) | **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. -[**removeEntitySetsFromLinkingEntitySet**](EdmApi.md#removeEntitySetsFromLinkingEntitySet) | **DELETE** /datastore/entity-sets/linking/{linkingEntitySetId} | Removes/unlinks the linked entity sets from the linking entity set -[**removeEntitySetsFromLinkingEntitySets**](EdmApi.md#removeEntitySetsFromLinkingEntitySets) | **DELETE** /datastore/entity-sets/linking/ | Removes/unlinks the linked entity sets from the linking entity set [**removePrimaryKeyFromEntityType**](EdmApi.md#removePrimaryKeyFromEntityType) | **DELETE** /datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId} | Removes a primary key with a given ID from an entity type with a given ID. [**removePropertyTypeFromEntityType**](EdmApi.md#removePropertyTypeFromEntityType) | **DELETE** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. [**removeSrcEntityTypeFromAssociationType**](EdmApi.md#removeSrcEntityTypeFromAssociationType) | **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. [**reorderPropertyTypesInEntityType**](EdmApi.md#reorderPropertyTypesInEntityType) | **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. [**updateEntityDataModel**](EdmApi.md#updateEntityDataModel) | **PATCH** /datastore/edm/ | Updates the entity data model, including schemas, entity types, association types, and property types. -[**updateEntitySetMetaData**](EdmApi.md#updateEntitySetMetaData) | **PATCH** /datastore/entity-sets/all/{entitySetId}/metadata/ | Updates the EntitySet definition for the given EntitySet UUID with the given metadata. -[**updateEntitySetPropertyMetadata**](EdmApi.md#updateEntitySetPropertyMetadata) | **POST** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Updates the property type metadata for the given entity set. [**updateEntityTypeMetaData**](EdmApi.md#updateEntityTypeMetaData) | **PATCH** /datastore/edm/entity/type/{entityTypeId} | Updates the EntityType definition for the given EntityType UUID with the given metadata. [**updateEntityTypePropertyMetadata**](EdmApi.md#updateEntityTypePropertyMetadata) | **POST** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Update EntityType Property metadata [**updatePropertyTypeMetaData**](EdmApi.md#updatePropertyTypeMetaData) | **PATCH** /datastore/edm/property/type/{propertyTypeId} | Updates the PropertyType definition for the given PropertyType UUID with the given metadata. @@ -113,98 +97,6 @@ null (empty response body) - **Accept**: Not defined -## addEntitySetsToLinkingEntitySet - -> Integer addEntitySetsToLinkingEntitySet(linkingEntitySetId, UUID) - -Adds the entity sets as linked entity sets to the linking entity set - -### Example - -```java -// Import classes: -//import org.openapitools.client.api.EdmApi; - -EdmApi apiInstance = new EdmApi(); -UUID linkingEntitySetId = null; // UUID | -List UUID = Arrays.asList(new UUID()); // List | -try { - Integer result = apiInstance.addEntitySetsToLinkingEntitySet(linkingEntitySetId, UUID); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EdmApi#addEntitySetsToLinkingEntitySet"); - e.printStackTrace(); -} -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **linkingEntitySetId** | [**UUID**](.md)| | [default to null] - **UUID** | [**List<UUID>**](UUID.md)| | [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 - - -## addEntitySetsToLinkingEntitySets - -> Integer addEntitySetsToLinkingEntitySets(linkingEntitySetId, requestBody) - -Adds the entity sets as linked entity sets to the linking entity sets - -### Example - -```java -// Import classes: -//import org.openapitools.client.api.EdmApi; - -EdmApi apiInstance = new EdmApi(); -String linkingEntitySetId = null; // String | -Map> requestBody = new HashMap(); // Map> | -try { - Integer result = apiInstance.addEntitySetsToLinkingEntitySets(linkingEntitySetId, requestBody); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EdmApi#addEntitySetsToLinkingEntitySets"); - e.printStackTrace(); -} -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **linkingEntitySetId** | **String**| | [default to null] - **requestBody** | [**Map<String, List<UUID>>**](List.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 - - ## addPrimaryKeyToEntityType > addPrimaryKeyToEntityType(entityTypeId, propertyTypeId) @@ -428,49 +320,6 @@ null (empty response body) - **Accept**: Not defined -## createEntitySets - -> createEntitySets(entitySet) - -Creates new EntitySet definitions if they don't exist. - -### Example - -```java -// Import classes: -//import org.openapitools.client.api.EdmApi; - -EdmApi apiInstance = new EdmApi(); -List entitySet = Arrays.asList(new EntitySet()); // List | -try { - apiInstance.createEntitySets(entitySet); -} catch (ApiException e) { - System.err.println("Exception when calling EdmApi#createEntitySets"); - e.printStackTrace(); -} -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entitySet** | [**List<EntitySet>**](EntitySet.md)| | - -### Return type - -null (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 - - ## createEntityType > createEntityType(entityType) @@ -643,49 +492,6 @@ No authorization required - **Accept**: Not defined -## deleteEntitySet - -> deleteEntitySet(entitySetId) - -Deletes the EntitySet definition for the given EntitySet UUID. - -### Example - -```java -// Import classes: -//import org.openapitools.client.api.EdmApi; - -EdmApi apiInstance = new EdmApi(); -UUID entitySetId = null; // UUID | -try { - apiInstance.deleteEntitySet(entitySetId); -} catch (ApiException e) { - System.err.println("Exception when calling EdmApi#deleteEntitySet"); - e.printStackTrace(); -} -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entitySetId** | [**UUID**](.md)| | [default to null] - -### Return type - -null (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 - - ## deleteEntityType > deleteEntityType(entityTypeId) @@ -944,90 +750,6 @@ Name | Type | Description | Notes - **Accept**: application/json -## getAllEntitySetPropertyMetadata - -> Map<String, EntitySetPropertyMetaData> getAllEntitySetPropertyMetadata(entitySetId) - -Get all entity set property metadata. - -### Example - -```java -// Import classes: -//import org.openapitools.client.api.EdmApi; - -EdmApi apiInstance = new EdmApi(); -UUID entitySetId = null; // UUID | -try { - Map result = apiInstance.getAllEntitySetPropertyMetadata(entitySetId); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EdmApi#getAllEntitySetPropertyMetadata"); - e.printStackTrace(); -} -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entitySetId** | [**UUID**](.md)| | [default to null] - -### Return type - -[**Map<String, 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 - - -## getAllEntitySets - -> List<EntitySet> getAllEntitySets() - -Get all EntitySet definitions. - -### Example - -```java -// Import classes: -//import org.openapitools.client.api.EdmApi; - -EdmApi apiInstance = new EdmApi(); -try { - List result = apiInstance.getAllEntitySets(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EdmApi#getAllEntitySets"); - e.printStackTrace(); -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**List<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 - - ## getAllEntityTypePropertyMetadata > Map<String, EntityTypePropertyMetadata> getAllEntityTypePropertyMetadata(entityTypeId) @@ -1408,11 +1130,11 @@ Name | Type | Description | Notes - **Accept**: application/json -## getEntitySet +## getEntityType -> EntitySet getEntitySet(entitySetId) +> EntityType getEntityType(entityTypeId) -Get the EntitySet definition for the given EntitySet UUID. +Gets the EntityType definition for the given EntityType UUID. ### Example @@ -1421,12 +1143,12 @@ Get the EntitySet definition for the given EntitySet UUID. //import org.openapitools.client.api.EdmApi; EdmApi apiInstance = new EdmApi(); -UUID entitySetId = null; // UUID | +UUID entityTypeId = null; // UUID | try { - EntitySet result = apiInstance.getEntitySet(entitySetId); + EntityType result = apiInstance.getEntityType(entityTypeId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling EdmApi#getEntitySet"); + System.err.println("Exception when calling EdmApi#getEntityType"); e.printStackTrace(); } ``` @@ -1436,15 +1158,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entitySetId** | [**UUID**](.md)| | [default to null] + **entityTypeId** | [**UUID**](.md)| | [default to null] ### 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 @@ -1452,11 +1174,11 @@ Name | Type | Description | Notes - **Accept**: application/json -## getEntitySetId +## getEntityTypeHierarchy -> UUID getEntitySetId(entitySetName) +> getEntityTypeHierarchy(entityTypeId) -Gets the EntitySet UUID for the given EntitySet name. +Get the EntityType hierarchy for the given EntityType UUID. ### Example @@ -1465,12 +1187,11 @@ Gets the EntitySet UUID for the given EntitySet name. //import org.openapitools.client.api.EdmApi; EdmApi apiInstance = new EdmApi(); -String entitySetName = null; // String | +UUID entityTypeId = null; // UUID | try { - UUID result = apiInstance.getEntitySetId(entitySetName); - System.out.println(result); + apiInstance.getEntityTypeHierarchy(entityTypeId); } catch (ApiException e) { - System.err.println("Exception when calling EdmApi#getEntitySetId"); + System.err.println("Exception when calling EdmApi#getEntityTypeHierarchy"); e.printStackTrace(); } ``` @@ -1480,11 +1201,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entitySetName** | **String**| | [default to null] + **entityTypeId** | [**UUID**](.md)| | [default to null] ### Return type -[**UUID**](UUID.md) +null (empty response body) ### Authorization @@ -1493,14 +1214,14 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: Not defined -## getEntitySetIds +## getEntityTypeId -> Map<String, UUID> getEntitySetIds(requestBody) +> UUID getEntityTypeId(namespace, name) -Get IDs for entity sets given their names. +Gets the EntityType UUID for the given EntityType FQN. ### Example @@ -1509,12 +1230,13 @@ Get IDs for entity sets given their names. //import org.openapitools.client.api.EdmApi; EdmApi apiInstance = new EdmApi(); -List requestBody = Arrays.asList("requestBody_example"); // List | +String namespace = openlattice; // String | +String name = myentitytype; // String | try { - Map result = apiInstance.getEntitySetIds(requestBody); + UUID result = apiInstance.getEntityTypeId(namespace, name); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling EdmApi#getEntitySetIds"); + System.err.println("Exception when calling EdmApi#getEntityTypeId"); e.printStackTrace(); } ``` @@ -1524,11 +1246,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**List<String>**](String.md)| | [optional] + **namespace** | **String**| | [default to null] + **name** | **String**| | [default to null] ### Return type -[**Map<String, UUID>**](UUID.md) +[**UUID**](UUID.md) ### Authorization @@ -1536,15 +1259,15 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## getEntitySetPropertyMetadata +## getEntityTypePropertyMetadata -> EntitySetPropertyMetaData getEntitySetPropertyMetadata(entitySetId, propertyTypeId) +> EntityTypePropertyMetadata getEntityTypePropertyMetadata(entityTypeId, propertyTypeId) -Get specified property type metadata for an entity set. +Get EntityType propertyType metadata ### Example @@ -1553,13 +1276,13 @@ Get specified property type metadata for an entity set. //import org.openapitools.client.api.EdmApi; EdmApi apiInstance = new EdmApi(); -UUID entitySetId = null; // UUID | +UUID entityTypeId = null; // UUID | UUID propertyTypeId = null; // UUID | try { - EntitySetPropertyMetaData result = apiInstance.getEntitySetPropertyMetadata(entitySetId, propertyTypeId); + EntityTypePropertyMetadata result = apiInstance.getEntityTypePropertyMetadata(entityTypeId, propertyTypeId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling EdmApi#getEntitySetPropertyMetadata"); + System.err.println("Exception when calling EdmApi#getEntityTypePropertyMetadata"); e.printStackTrace(); } ``` @@ -1569,12 +1292,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entitySetId** | [**UUID**](.md)| | [default to null] + **entityTypeId** | [**UUID**](.md)| | [default to null] **propertyTypeId** | [**UUID**](.md)| | [default to null] ### Return type -[**EntitySetPropertyMetaData**](EntitySetPropertyMetaData.md) +[**EntityTypePropertyMetadata**](EntityTypePropertyMetadata.md) ### Authorization @@ -1586,229 +1309,6 @@ Name | Type | Description | Notes - **Accept**: application/json -## getEntityType - -> EntityType getEntityType(entityTypeId) - -Gets the EntityType definition for the given EntityType UUID. - -### Example - -```java -// Import classes: -//import org.openapitools.client.api.EdmApi; - -EdmApi apiInstance = new EdmApi(); -UUID entityTypeId = null; // UUID | -try { - EntityType result = apiInstance.getEntityType(entityTypeId); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EdmApi#getEntityType"); - e.printStackTrace(); -} -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entityTypeId** | [**UUID**](.md)| | [default to null] - -### Return type - -[**EntityType**](EntityType.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getEntityTypeHierarchy - -> getEntityTypeHierarchy(entityTypeId) - -Get the EntityType hierarchy for the given EntityType UUID. - -### Example - -```java -// Import classes: -//import org.openapitools.client.api.EdmApi; - -EdmApi apiInstance = new EdmApi(); -UUID entityTypeId = null; // UUID | -try { - apiInstance.getEntityTypeHierarchy(entityTypeId); -} catch (ApiException e) { - System.err.println("Exception when calling EdmApi#getEntityTypeHierarchy"); - e.printStackTrace(); -} -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entityTypeId** | [**UUID**](.md)| | [default to null] - -### Return type - -null (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 - - -## getEntityTypeId - -> UUID getEntityTypeId(namespace, name) - -Gets the EntityType UUID for the given EntityType FQN. - -### Example - -```java -// Import classes: -//import org.openapitools.client.api.EdmApi; - -EdmApi apiInstance = new EdmApi(); -String namespace = openlattice; // String | -String name = myentitytype; // String | -try { - UUID result = apiInstance.getEntityTypeId(namespace, name); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EdmApi#getEntityTypeId"); - e.printStackTrace(); -} -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| | [default to null] - **name** | **String**| | [default to null] - -### Return type - -[**UUID**](UUID.md) - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getEntityTypePropertyMetadata - -> EntityTypePropertyMetadata getEntityTypePropertyMetadata(entityTypeId, propertyTypeId) - -Get EntityType propertyType metadata - -### Example - -```java -// Import classes: -//import org.openapitools.client.api.EdmApi; - -EdmApi apiInstance = new EdmApi(); -UUID entityTypeId = null; // UUID | -UUID propertyTypeId = null; // UUID | -try { - EntityTypePropertyMetadata result = apiInstance.getEntityTypePropertyMetadata(entityTypeId, propertyTypeId); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EdmApi#getEntityTypePropertyMetadata"); - e.printStackTrace(); -} -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entityTypeId** | [**UUID**](.md)| | [default to null] - **propertyTypeId** | [**UUID**](.md)| | [default to null] - -### Return type - -[**EntityTypePropertyMetadata**](EntityTypePropertyMetadata.md) - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPropertyMetadataForEntitySets - -> Map<String, Map<String, EntitySetPropertyMetaData>> getPropertyMetadataForEntitySets(requestBody) - -Get property metadata for entity sets. - -### Example - -```java -// Import classes: -//import org.openapitools.client.api.EdmApi; - -EdmApi apiInstance = new EdmApi(); -List requestBody = Arrays.asList("requestBody_example"); // List | -try { - Map> result = apiInstance.getPropertyMetadataForEntitySets(requestBody); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EdmApi#getPropertyMetadataForEntitySets"); - e.printStackTrace(); -} -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **requestBody** | [**List<String>**](String.md)| | [optional] - -### Return type - -[**Map<String, Map<String, EntitySetPropertyMetaData>>**](Map.md) - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - ## getPropertyType > PropertyType getPropertyType(propertyTypeId) @@ -1899,50 +1399,6 @@ Name | Type | Description | Notes - **Accept**: application/json -## getPropertyTypesForEntitySet - -> Map<String, PropertyType> getPropertyTypesForEntitySet(entitySetId) - -Get all Property Types for entity set - -### Example - -```java -// Import classes: -//import org.openapitools.client.api.EdmApi; - -EdmApi apiInstance = new EdmApi(); -UUID entitySetId = null; // UUID | -try { - Map result = apiInstance.getPropertyTypesForEntitySet(entitySetId); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EdmApi#getPropertyTypesForEntitySet"); - e.printStackTrace(); -} -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entitySetId** | [**UUID**](.md)| | [default to null] - -### Return type - -[**Map<String, 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 - - ## getPropertyUsageSummary > List<PropertyUsageSummary> getPropertyUsageSummary(propertyTypeId) @@ -2164,98 +1620,6 @@ null (empty response body) - **Accept**: Not defined -## removeEntitySetsFromLinkingEntitySet - -> Integer removeEntitySetsFromLinkingEntitySet(linkingEntitySetId, UUID) - -Removes/unlinks the linked entity sets from the linking entity set - -### Example - -```java -// Import classes: -//import org.openapitools.client.api.EdmApi; - -EdmApi apiInstance = new EdmApi(); -String linkingEntitySetId = null; // String | -List UUID = Arrays.asList(new UUID()); // List | -try { - Integer result = apiInstance.removeEntitySetsFromLinkingEntitySet(linkingEntitySetId, UUID); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EdmApi#removeEntitySetsFromLinkingEntitySet"); - e.printStackTrace(); -} -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **linkingEntitySetId** | **String**| | [default to null] - **UUID** | [**List<UUID>**](UUID.md)| | [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 - - -## removeEntitySetsFromLinkingEntitySets - -> Integer removeEntitySetsFromLinkingEntitySets(linkingEntitySetId, requestBody) - -Removes/unlinks the linked entity sets from the linking entity set - -### Example - -```java -// Import classes: -//import org.openapitools.client.api.EdmApi; - -EdmApi apiInstance = new EdmApi(); -UUID linkingEntitySetId = null; // UUID | -Map> requestBody = new HashMap(); // Map> | -try { - Integer result = apiInstance.removeEntitySetsFromLinkingEntitySets(linkingEntitySetId, requestBody); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EdmApi#removeEntitySetsFromLinkingEntitySets"); - e.printStackTrace(); -} -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **linkingEntitySetId** | [**UUID**](.md)| | [default to null] - **requestBody** | [**Map<String, List<UUID>>**](List.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 - - ## removePrimaryKeyFromEntityType > removePrimaryKeyFromEntityType(entityTypeId, propertyTypeId) @@ -2479,99 +1843,6 @@ null (empty response body) - **Accept**: Not defined -## updateEntitySetMetaData - -> Integer updateEntitySetMetaData(entitySetId, metadataUpdate) - -Updates the EntitySet definition for the given EntitySet UUID with the given metadata. - -### Example - -```java -// Import classes: -//import org.openapitools.client.api.EdmApi; - -EdmApi apiInstance = new EdmApi(); -UUID entitySetId = null; // UUID | -MetadataUpdate metadataUpdate = new MetadataUpdate(); // MetadataUpdate | -try { - Integer result = apiInstance.updateEntitySetMetaData(entitySetId, metadataUpdate); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EdmApi#updateEntitySetMetaData"); - e.printStackTrace(); -} -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entitySetId** | [**UUID**](.md)| | [default to null] - **metadataUpdate** | [**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 - - -## updateEntitySetPropertyMetadata - -> updateEntitySetPropertyMetadata(entitySetId, propertyTypeId, metadataUpdate) - -Updates the property type metadata for the given entity set. - -### Example - -```java -// Import classes: -//import org.openapitools.client.api.EdmApi; - -EdmApi apiInstance = new EdmApi(); -UUID entitySetId = null; // UUID | -UUID propertyTypeId = null; // UUID | -MetadataUpdate metadataUpdate = new MetadataUpdate(); // MetadataUpdate | -try { - apiInstance.updateEntitySetPropertyMetadata(entitySetId, propertyTypeId, metadataUpdate); -} catch (ApiException e) { - System.err.println("Exception when calling EdmApi#updateEntitySetPropertyMetadata"); - e.printStackTrace(); -} -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entitySetId** | [**UUID**](.md)| | [default to null] - **propertyTypeId** | [**UUID**](.md)| | [default to null] - **metadataUpdate** | [**MetadataUpdate**](MetadataUpdate.md)| | - -### Return type - -null (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 - - ## updateEntityTypeMetaData > updateEntityTypeMetaData(entityTypeId, metadataUpdate) diff --git a/android/src/main/java/org/openapitools/client/api/EdmApi.java b/android/src/main/java/org/openapitools/client/api/EdmApi.java index a01366a..9ef9775 100644 --- a/android/src/main/java/org/openapitools/client/api/EdmApi.java +++ b/android/src/main/java/org/openapitools/client/api/EdmApi.java @@ -27,12 +27,9 @@ import org.openapitools.client.model.EDM; import org.openapitools.client.model.EDMdiff; import org.openapitools.client.model.EdmRequest; -import org.openapitools.client.model.EntitySet; -import org.openapitools.client.model.EntitySetPropertyMetaData; import org.openapitools.client.model.EntityType; import org.openapitools.client.model.EntityTypePropertyMetadata; import java.util.*; -import java.util.Map; import org.openapitools.client.model.MetadataUpdate; import org.openapitools.client.model.PropertyType; import org.openapitools.client.model.PropertyUsageSummary; @@ -204,274 +201,6 @@ public void onErrorResponse(VolleyError error) { } } /** - * Adds the entity sets as linked entity sets to the linking entity set - * - * @param linkingEntitySetId - * @param UUID - * @return Integer - */ - public Integer addEntitySetsToLinkingEntitySet (UUID linkingEntitySetId, List UUID) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = UUID; - // verify the required parameter 'linkingEntitySetId' is set - if (linkingEntitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'linkingEntitySetId' when calling addEntitySetsToLinkingEntitySet", - new ApiException(400, "Missing the required parameter 'linkingEntitySetId' when calling addEntitySetsToLinkingEntitySet")); - } - - // create path and map variables - String path = "/datastore/entity-sets/linking/{linkingEntitySetId}".replaceAll("\\{" + "linkingEntitySetId" + "\\}", apiInvoker.escapeString(linkingEntitySetId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - String[] contentTypes = { - "application/json" - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "POST", queryParams, postBody, headerParams, formParams, contentType, authNames); - if (localVarResponse != null) { - return (Integer) ApiInvoker.deserialize(localVarResponse, "", Integer.class); - } else { - return null; - } - } catch (ApiException ex) { - throw ex; - } catch (InterruptedException ex) { - throw ex; - } catch (ExecutionException ex) { - if (ex.getCause() instanceof VolleyError) { - VolleyError volleyError = (VolleyError)ex.getCause(); - if (volleyError.networkResponse != null) { - throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage()); - } - } - throw ex; - } catch (TimeoutException ex) { - throw ex; - } - } - - /** - * Adds the entity sets as linked entity sets to the linking entity set - * - * @param linkingEntitySetId * @param UUID - */ - public void addEntitySetsToLinkingEntitySet (UUID linkingEntitySetId, List UUID, final Response.Listener responseListener, final Response.ErrorListener errorListener) { - Object postBody = UUID; - - // verify the required parameter 'linkingEntitySetId' is set - if (linkingEntitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'linkingEntitySetId' when calling addEntitySetsToLinkingEntitySet", - new ApiException(400, "Missing the required parameter 'linkingEntitySetId' when calling addEntitySetsToLinkingEntitySet")); - } - - // create path and map variables - String path = "/datastore/entity-sets/linking/{linkingEntitySetId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "linkingEntitySetId" + "\\}", apiInvoker.escapeString(linkingEntitySetId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - - - - String[] contentTypes = { - "application/json" - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - - - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - apiInvoker.invokeAPI(basePath, path, "POST", queryParams, postBody, headerParams, formParams, contentType, authNames, - new Response.Listener() { - @Override - public void onResponse(String localVarResponse) { - try { - responseListener.onResponse((Integer) ApiInvoker.deserialize(localVarResponse, "", Integer.class)); - } catch (ApiException exception) { - errorListener.onErrorResponse(new VolleyError(exception)); - } - } - }, new Response.ErrorListener() { - @Override - public void onErrorResponse(VolleyError error) { - errorListener.onErrorResponse(error); - } - }); - } catch (ApiException ex) { - errorListener.onErrorResponse(new VolleyError(ex)); - } - } - /** - * Adds the entity sets as linked entity sets to the linking entity sets - * - * @param linkingEntitySetId - * @param requestBody - * @return Integer - */ - public Integer addEntitySetsToLinkingEntitySets (String linkingEntitySetId, Map> requestBody) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = requestBody; - // verify the required parameter 'linkingEntitySetId' is set - if (linkingEntitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'linkingEntitySetId' when calling addEntitySetsToLinkingEntitySets", - new ApiException(400, "Missing the required parameter 'linkingEntitySetId' when calling addEntitySetsToLinkingEntitySets")); - } - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - VolleyError error = new VolleyError("Missing the required parameter 'requestBody' when calling addEntitySetsToLinkingEntitySets", - new ApiException(400, "Missing the required parameter 'requestBody' when calling addEntitySetsToLinkingEntitySets")); - } - - // create path and map variables - String path = "/datastore/entity-sets/linking/".replaceAll("\\{" + "linkingEntitySetId" + "\\}", apiInvoker.escapeString(linkingEntitySetId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - String[] contentTypes = { - "application/json" - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "PUT", queryParams, postBody, headerParams, formParams, contentType, authNames); - if (localVarResponse != null) { - return (Integer) ApiInvoker.deserialize(localVarResponse, "", Integer.class); - } else { - return null; - } - } catch (ApiException ex) { - throw ex; - } catch (InterruptedException ex) { - throw ex; - } catch (ExecutionException ex) { - if (ex.getCause() instanceof VolleyError) { - VolleyError volleyError = (VolleyError)ex.getCause(); - if (volleyError.networkResponse != null) { - throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage()); - } - } - throw ex; - } catch (TimeoutException ex) { - throw ex; - } - } - - /** - * Adds the entity sets as linked entity sets to the linking entity sets - * - * @param linkingEntitySetId * @param requestBody - */ - public void addEntitySetsToLinkingEntitySets (String linkingEntitySetId, Map> requestBody, final Response.Listener responseListener, final Response.ErrorListener errorListener) { - Object postBody = requestBody; - - // verify the required parameter 'linkingEntitySetId' is set - if (linkingEntitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'linkingEntitySetId' when calling addEntitySetsToLinkingEntitySets", - new ApiException(400, "Missing the required parameter 'linkingEntitySetId' when calling addEntitySetsToLinkingEntitySets")); - } - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - VolleyError error = new VolleyError("Missing the required parameter 'requestBody' when calling addEntitySetsToLinkingEntitySets", - new ApiException(400, "Missing the required parameter 'requestBody' when calling addEntitySetsToLinkingEntitySets")); - } - - // create path and map variables - String path = "/datastore/entity-sets/linking/".replaceAll("\\{format\\}","json").replaceAll("\\{" + "linkingEntitySetId" + "\\}", apiInvoker.escapeString(linkingEntitySetId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - - - - String[] contentTypes = { - "application/json" - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - - - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - apiInvoker.invokeAPI(basePath, path, "PUT", queryParams, postBody, headerParams, formParams, contentType, authNames, - new Response.Listener() { - @Override - public void onResponse(String localVarResponse) { - try { - responseListener.onResponse((Integer) ApiInvoker.deserialize(localVarResponse, "", Integer.class)); - } catch (ApiException exception) { - errorListener.onErrorResponse(new VolleyError(exception)); - } - } - }, new Response.ErrorListener() { - @Override - public void onErrorResponse(VolleyError error) { - errorListener.onErrorResponse(error); - } - }); - } catch (ApiException ex) { - errorListener.onErrorResponse(new VolleyError(ex)); - } - } - /** * Adds a primary key with a given ID to an entity type with a given ID. * * @param entityTypeId @@ -1132,21 +861,21 @@ public void onErrorResponse(VolleyError error) { } } /** - * Creates new EntitySet definitions if they don't exist. + * Creates a new EntityType definition, if it doesn't exist. * - * @param entitySet + * @param entityType * @return void */ - public void createEntitySets (List entitySet) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = entitySet; - // verify the required parameter 'entitySet' is set - if (entitySet == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySet' when calling createEntitySets", - new ApiException(400, "Missing the required parameter 'entitySet' when calling createEntitySets")); + public void createEntityType (EntityType entityType) throws TimeoutException, ExecutionException, InterruptedException, ApiException { + Object postBody = entityType; + // verify the required parameter 'entityType' is set + if (entityType == null) { + VolleyError error = new VolleyError("Missing the required parameter 'entityType' when calling createEntityType", + new ApiException(400, "Missing the required parameter 'entityType' when calling createEntityType")); } // create path and map variables - String path = "/datastore/entity-sets"; + String path = "/datastore/edm/entity/type/"; // query params List queryParams = new ArrayList(); @@ -1168,7 +897,7 @@ public void createEntitySets (List entitySet) throws TimeoutException // normal form params } - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; + String[] authNames = new String[] { }; try { String localVarResponse = apiInvoker.invokeAPI (basePath, path, "POST", queryParams, postBody, headerParams, formParams, contentType, authNames); @@ -1195,21 +924,21 @@ public void createEntitySets (List entitySet) throws TimeoutException } /** - * Creates new EntitySet definitions if they don't exist. + * Creates a new EntityType definition, if it doesn't exist. * - * @param entitySet + * @param entityType */ - public void createEntitySets (List entitySet, final Response.Listener responseListener, final Response.ErrorListener errorListener) { - Object postBody = entitySet; + public void createEntityType (EntityType entityType, final Response.Listener responseListener, final Response.ErrorListener errorListener) { + Object postBody = entityType; - // verify the required parameter 'entitySet' is set - if (entitySet == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySet' when calling createEntitySets", - new ApiException(400, "Missing the required parameter 'entitySet' when calling createEntitySets")); + // verify the required parameter 'entityType' is set + if (entityType == null) { + VolleyError error = new VolleyError("Missing the required parameter 'entityType' when calling createEntityType", + new ApiException(400, "Missing the required parameter 'entityType' when calling createEntityType")); } // create path and map variables - String path = "/datastore/entity-sets".replaceAll("\\{format\\}","json"); + String path = "/datastore/edm/entity/type/".replaceAll("\\{format\\}","json"); // query params List queryParams = new ArrayList(); @@ -1236,7 +965,7 @@ public void createEntitySets (List entitySet, final Response.Listener // normal form params } - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; + String[] authNames = new String[] { }; try { apiInvoker.invokeAPI(basePath, path, "POST", queryParams, postBody, headerParams, formParams, contentType, authNames, @@ -1256,141 +985,17 @@ public void onErrorResponse(VolleyError error) { } } /** - * Creates a new EntityType definition, if it doesn't exist. + * Creates a new PropertyType definition, if it doesn\"t exist. * - * @param entityType + * @param propertyType * @return void */ - public void createEntityType (EntityType entityType) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = entityType; - // verify the required parameter 'entityType' is set - if (entityType == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entityType' when calling createEntityType", - new ApiException(400, "Missing the required parameter 'entityType' when calling createEntityType")); - } - - // create path and map variables - String path = "/datastore/edm/entity/type/"; - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - String[] contentTypes = { - "application/json" - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { }; - - try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "POST", queryParams, postBody, headerParams, formParams, contentType, authNames); - if (localVarResponse != null) { - return ; - } else { - return ; - } - } catch (ApiException ex) { - throw ex; - } catch (InterruptedException ex) { - throw ex; - } catch (ExecutionException ex) { - if (ex.getCause() instanceof VolleyError) { - VolleyError volleyError = (VolleyError)ex.getCause(); - if (volleyError.networkResponse != null) { - throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage()); - } - } - throw ex; - } catch (TimeoutException ex) { - throw ex; - } - } - - /** - * Creates a new EntityType definition, if it doesn't exist. - * - * @param entityType - */ - public void createEntityType (EntityType entityType, final Response.Listener responseListener, final Response.ErrorListener errorListener) { - Object postBody = entityType; - - // verify the required parameter 'entityType' is set - if (entityType == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entityType' when calling createEntityType", - new ApiException(400, "Missing the required parameter 'entityType' when calling createEntityType")); - } - - // create path and map variables - String path = "/datastore/edm/entity/type/".replaceAll("\\{format\\}","json"); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - - - - String[] contentTypes = { - "application/json" - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - - - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { }; - - try { - apiInvoker.invokeAPI(basePath, path, "POST", queryParams, postBody, headerParams, formParams, contentType, authNames, - new Response.Listener() { - @Override - public void onResponse(String localVarResponse) { - responseListener.onResponse(localVarResponse); - } - }, new Response.ErrorListener() { - @Override - public void onErrorResponse(VolleyError error) { - errorListener.onErrorResponse(error); - } - }); - } catch (ApiException ex) { - errorListener.onErrorResponse(new VolleyError(ex)); - } - } - /** - * Creates a new PropertyType definition, if it doesn\"t exist. - * - * @param propertyType - * @return void - */ - public void createPropertyType (PropertyType propertyType) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = propertyType; - // verify the required parameter 'propertyType' is set - if (propertyType == null) { - VolleyError error = new VolleyError("Missing the required parameter 'propertyType' when calling createPropertyType", - new ApiException(400, "Missing the required parameter 'propertyType' when calling createPropertyType")); + public void createPropertyType (PropertyType propertyType) throws TimeoutException, ExecutionException, InterruptedException, ApiException { + Object postBody = propertyType; + // verify the required parameter 'propertyType' is set + if (propertyType == null) { + VolleyError error = new VolleyError("Missing the required parameter 'propertyType' when calling createPropertyType", + new ApiException(400, "Missing the required parameter 'propertyType' when calling createPropertyType")); } // create path and map variables @@ -1751,129 +1356,6 @@ public void onErrorResponse(VolleyError error) { } } /** - * Deletes the EntitySet definition for the given EntitySet UUID. - * - * @param entitySetId - * @return void - */ - public void deleteEntitySet (UUID entitySetId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = null; - // verify the required parameter 'entitySetId' is set - if (entitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySetId' when calling deleteEntitySet", - new ApiException(400, "Missing the required parameter 'entitySetId' when calling deleteEntitySet")); - } - - // create path and map variables - String path = "/datastore/entity-sets/all/{entitySetId}".replaceAll("\\{" + "entitySetId" + "\\}", apiInvoker.escapeString(entitySetId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - String[] contentTypes = { - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "DELETE", queryParams, postBody, headerParams, formParams, contentType, authNames); - if (localVarResponse != null) { - return ; - } else { - return ; - } - } catch (ApiException ex) { - throw ex; - } catch (InterruptedException ex) { - throw ex; - } catch (ExecutionException ex) { - if (ex.getCause() instanceof VolleyError) { - VolleyError volleyError = (VolleyError)ex.getCause(); - if (volleyError.networkResponse != null) { - throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage()); - } - } - throw ex; - } catch (TimeoutException ex) { - throw ex; - } - } - - /** - * Deletes the EntitySet definition for the given EntitySet UUID. - * - * @param entitySetId - */ - public void deleteEntitySet (UUID entitySetId, final Response.Listener responseListener, final Response.ErrorListener errorListener) { - Object postBody = null; - - // verify the required parameter 'entitySetId' is set - if (entitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySetId' when calling deleteEntitySet", - new ApiException(400, "Missing the required parameter 'entitySetId' when calling deleteEntitySet")); - } - - // create path and map variables - String path = "/datastore/entity-sets/all/{entitySetId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "entitySetId" + "\\}", apiInvoker.escapeString(entitySetId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - - - - String[] contentTypes = { - - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - - - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - apiInvoker.invokeAPI(basePath, path, "DELETE", queryParams, postBody, headerParams, formParams, contentType, authNames, - new Response.Listener() { - @Override - public void onResponse(String localVarResponse) { - responseListener.onResponse(localVarResponse); - } - }, new Response.ErrorListener() { - @Override - public void onErrorResponse(VolleyError error) { - errorListener.onErrorResponse(error); - } - }); - } catch (ApiException ex) { - errorListener.onErrorResponse(new VolleyError(ex)); - } - } - /** * Deletes the EntityType definition for the given EntityType UUID. * * @param entityTypeId @@ -2620,21 +2102,21 @@ public void onErrorResponse(VolleyError error) { } } /** - * Get all entity set property metadata. + * Get all EntityType propertyType metadata * - * @param entitySetId - * @return Map + * @param entityTypeId + * @return Map */ - public Map getAllEntitySetPropertyMetadata (UUID entitySetId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { + public Map getAllEntityTypePropertyMetadata (UUID entityTypeId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { Object postBody = null; - // verify the required parameter 'entitySetId' is set - if (entitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySetId' when calling getAllEntitySetPropertyMetadata", - new ApiException(400, "Missing the required parameter 'entitySetId' when calling getAllEntitySetPropertyMetadata")); + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling getAllEntityTypePropertyMetadata", + new ApiException(400, "Missing the required parameter 'entityTypeId' when calling getAllEntityTypePropertyMetadata")); } // create path and map variables - String path = "/datastore/entity-sets/all/{entitySetId}/metadata".replaceAll("\\{" + "entitySetId" + "\\}", apiInvoker.escapeString(entitySetId.toString())); + String path = "/datastore/edm/entity/type/{entityTypeId}/property/type".replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())); // query params List queryParams = new ArrayList(); @@ -2660,7 +2142,7 @@ public Map getAllEntitySetPropertyMetadata (U try { String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); if (localVarResponse != null) { - return (Map) ApiInvoker.deserialize(localVarResponse, "map", EntitySetPropertyMetaData.class); + return (Map) ApiInvoker.deserialize(localVarResponse, "map", EntityTypePropertyMetadata.class); } else { return null; } @@ -2682,21 +2164,21 @@ public Map getAllEntitySetPropertyMetadata (U } /** - * Get all entity set property metadata. + * Get all EntityType propertyType metadata * - * @param entitySetId + * @param entityTypeId */ - public void getAllEntitySetPropertyMetadata (UUID entitySetId, final Response.Listener> responseListener, final Response.ErrorListener errorListener) { + public void getAllEntityTypePropertyMetadata (UUID entityTypeId, final Response.Listener> responseListener, final Response.ErrorListener errorListener) { Object postBody = null; - // verify the required parameter 'entitySetId' is set - if (entitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySetId' when calling getAllEntitySetPropertyMetadata", - new ApiException(400, "Missing the required parameter 'entitySetId' when calling getAllEntitySetPropertyMetadata")); + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling getAllEntityTypePropertyMetadata", + new ApiException(400, "Missing the required parameter 'entityTypeId' when calling getAllEntityTypePropertyMetadata")); } // create path and map variables - String path = "/datastore/entity-sets/all/{entitySetId}/metadata".replaceAll("\\{format\\}","json").replaceAll("\\{" + "entitySetId" + "\\}", apiInvoker.escapeString(entitySetId.toString())); + String path = "/datastore/edm/entity/type/{entityTypeId}/property/type".replaceAll("\\{format\\}","json").replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())); // query params List queryParams = new ArrayList(); @@ -2731,7 +2213,7 @@ public void getAllEntitySetPropertyMetadata (UUID entitySetId, final Response.Li @Override public void onResponse(String localVarResponse) { try { - responseListener.onResponse((Map) ApiInvoker.deserialize(localVarResponse, "map", EntitySetPropertyMetaData.class)); + responseListener.onResponse((Map) ApiInvoker.deserialize(localVarResponse, "map", EntityTypePropertyMetadata.class)); } catch (ApiException exception) { errorListener.onErrorResponse(new VolleyError(exception)); } @@ -2747,15 +2229,15 @@ public void onErrorResponse(VolleyError error) { } } /** - * Get all EntitySet definitions. + * Gets all EntityType definitions. * - * @return List + * @return List */ - public List getAllEntitySets () throws TimeoutException, ExecutionException, InterruptedException, ApiException { + public List getAllEntityTypes () throws TimeoutException, ExecutionException, InterruptedException, ApiException { Object postBody = null; // create path and map variables - String path = "/datastore/entity-sets"; + String path = "/datastore/edm/entity/type/"; // query params List queryParams = new ArrayList(); @@ -2781,7 +2263,7 @@ public List getAllEntitySets () throws TimeoutException, ExecutionExc try { String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); if (localVarResponse != null) { - return (List) ApiInvoker.deserialize(localVarResponse, "array", EntitySet.class); + return (List) ApiInvoker.deserialize(localVarResponse, "array", EntityType.class); } else { return null; } @@ -2803,254 +2285,11 @@ public List getAllEntitySets () throws TimeoutException, ExecutionExc } /** - * Get all EntitySet definitions. + * Gets all EntityType definitions. * */ - public void getAllEntitySets (final Response.Listener> responseListener, final Response.ErrorListener errorListener) { - Object postBody = null; - - - // create path and map variables - String path = "/datastore/entity-sets".replaceAll("\\{format\\}","json"); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - - - - String[] contentTypes = { - - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - - - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames, - new Response.Listener() { - @Override - public void onResponse(String localVarResponse) { - try { - responseListener.onResponse((List) ApiInvoker.deserialize(localVarResponse, "array", EntitySet.class)); - } catch (ApiException exception) { - errorListener.onErrorResponse(new VolleyError(exception)); - } - } - }, new Response.ErrorListener() { - @Override - public void onErrorResponse(VolleyError error) { - errorListener.onErrorResponse(error); - } - }); - } catch (ApiException ex) { - errorListener.onErrorResponse(new VolleyError(ex)); - } - } - /** - * Get all EntityType propertyType metadata - * - * @param entityTypeId - * @return Map - */ - public Map getAllEntityTypePropertyMetadata (UUID entityTypeId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = null; - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling getAllEntityTypePropertyMetadata", - new ApiException(400, "Missing the required parameter 'entityTypeId' when calling getAllEntityTypePropertyMetadata")); - } - - // create path and map variables - String path = "/datastore/edm/entity/type/{entityTypeId}/property/type".replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - String[] contentTypes = { - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); - if (localVarResponse != null) { - return (Map) ApiInvoker.deserialize(localVarResponse, "map", EntityTypePropertyMetadata.class); - } else { - return null; - } - } catch (ApiException ex) { - throw ex; - } catch (InterruptedException ex) { - throw ex; - } catch (ExecutionException ex) { - if (ex.getCause() instanceof VolleyError) { - VolleyError volleyError = (VolleyError)ex.getCause(); - if (volleyError.networkResponse != null) { - throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage()); - } - } - throw ex; - } catch (TimeoutException ex) { - throw ex; - } - } - - /** - * Get all EntityType propertyType metadata - * - * @param entityTypeId - */ - public void getAllEntityTypePropertyMetadata (UUID entityTypeId, final Response.Listener> responseListener, final Response.ErrorListener errorListener) { - Object postBody = null; - - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling getAllEntityTypePropertyMetadata", - new ApiException(400, "Missing the required parameter 'entityTypeId' when calling getAllEntityTypePropertyMetadata")); - } - - // create path and map variables - String path = "/datastore/edm/entity/type/{entityTypeId}/property/type".replaceAll("\\{format\\}","json").replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - - - - String[] contentTypes = { - - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - - - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames, - new Response.Listener() { - @Override - public void onResponse(String localVarResponse) { - try { - responseListener.onResponse((Map) ApiInvoker.deserialize(localVarResponse, "map", EntityTypePropertyMetadata.class)); - } catch (ApiException exception) { - errorListener.onErrorResponse(new VolleyError(exception)); - } - } - }, new Response.ErrorListener() { - @Override - public void onErrorResponse(VolleyError error) { - errorListener.onErrorResponse(error); - } - }); - } catch (ApiException ex) { - errorListener.onErrorResponse(new VolleyError(ex)); - } - } - /** - * Gets all EntityType definitions. - * - * @return List - */ - public List getAllEntityTypes () throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = null; - - // create path and map variables - String path = "/datastore/edm/entity/type/"; - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - String[] contentTypes = { - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); - if (localVarResponse != null) { - return (List) ApiInvoker.deserialize(localVarResponse, "array", EntityType.class); - } else { - return null; - } - } catch (ApiException ex) { - throw ex; - } catch (InterruptedException ex) { - throw ex; - } catch (ExecutionException ex) { - if (ex.getCause() instanceof VolleyError) { - VolleyError volleyError = (VolleyError)ex.getCause(); - if (volleyError.networkResponse != null) { - throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage()); - } - } - throw ex; - } catch (TimeoutException ex) { - throw ex; - } - } - - /** - * Gets all EntityType definitions. - * - - */ - public void getAllEntityTypes (final Response.Listener> responseListener, final Response.ErrorListener errorListener) { + public void getAllEntityTypes (final Response.Listener> responseListener, final Response.ErrorListener errorListener) { Object postBody = null; @@ -3963,21 +3202,21 @@ public void onErrorResponse(VolleyError error) { } } /** - * Get the EntitySet definition for the given EntitySet UUID. + * Gets the EntityType definition for the given EntityType UUID. * - * @param entitySetId - * @return EntitySet + * @param entityTypeId + * @return EntityType */ - public EntitySet getEntitySet (UUID entitySetId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { + public EntityType getEntityType (UUID entityTypeId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { Object postBody = null; - // verify the required parameter 'entitySetId' is set - if (entitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySetId' when calling getEntitySet", - new ApiException(400, "Missing the required parameter 'entitySetId' when calling getEntitySet")); + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling getEntityType", + new ApiException(400, "Missing the required parameter 'entityTypeId' when calling getEntityType")); } // create path and map variables - String path = "/datastore/entity-sets/all/{entitySetId}".replaceAll("\\{" + "entitySetId" + "\\}", apiInvoker.escapeString(entitySetId.toString())); + String path = "/datastore/edm/entity/type/{entityTypeId}".replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())); // query params List queryParams = new ArrayList(); @@ -3998,12 +3237,12 @@ public EntitySet getEntitySet (UUID entitySetId) throws TimeoutException, Execut // normal form params } - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; + String[] authNames = new String[] { }; try { String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); if (localVarResponse != null) { - return (EntitySet) ApiInvoker.deserialize(localVarResponse, "", EntitySet.class); + return (EntityType) ApiInvoker.deserialize(localVarResponse, "", EntityType.class); } else { return null; } @@ -4025,930 +3264,21 @@ public EntitySet getEntitySet (UUID entitySetId) throws TimeoutException, Execut } /** - * Get the EntitySet definition for the given EntitySet UUID. + * Gets the EntityType definition for the given EntityType UUID. * - * @param entitySetId + * @param entityTypeId */ - public void getEntitySet (UUID entitySetId, final Response.Listener responseListener, final Response.ErrorListener errorListener) { - Object postBody = null; - - // verify the required parameter 'entitySetId' is set - if (entitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySetId' when calling getEntitySet", - new ApiException(400, "Missing the required parameter 'entitySetId' when calling getEntitySet")); - } - - // create path and map variables - String path = "/datastore/entity-sets/all/{entitySetId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "entitySetId" + "\\}", apiInvoker.escapeString(entitySetId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - - - - String[] contentTypes = { - - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - - - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames, - new Response.Listener() { - @Override - public void onResponse(String localVarResponse) { - try { - responseListener.onResponse((EntitySet) ApiInvoker.deserialize(localVarResponse, "", EntitySet.class)); - } catch (ApiException exception) { - errorListener.onErrorResponse(new VolleyError(exception)); - } - } - }, new Response.ErrorListener() { - @Override - public void onErrorResponse(VolleyError error) { - errorListener.onErrorResponse(error); - } - }); - } catch (ApiException ex) { - errorListener.onErrorResponse(new VolleyError(ex)); - } - } - /** - * Gets the EntitySet UUID for the given EntitySet name. - * - * @param entitySetName - * @return UUID - */ - public UUID getEntitySetId (String entitySetName) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = null; - // verify the required parameter 'entitySetName' is set - if (entitySetName == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySetName' when calling getEntitySetId", - new ApiException(400, "Missing the required parameter 'entitySetName' when calling getEntitySetId")); - } - - // create path and map variables - String path = "/datastore/entity-sets/ids/{entitySetName}".replaceAll("\\{" + "entitySetName" + "\\}", apiInvoker.escapeString(entitySetName.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - String[] contentTypes = { - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); - if (localVarResponse != null) { - return (UUID) ApiInvoker.deserialize(localVarResponse, "", UUID.class); - } else { - return null; - } - } catch (ApiException ex) { - throw ex; - } catch (InterruptedException ex) { - throw ex; - } catch (ExecutionException ex) { - if (ex.getCause() instanceof VolleyError) { - VolleyError volleyError = (VolleyError)ex.getCause(); - if (volleyError.networkResponse != null) { - throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage()); - } - } - throw ex; - } catch (TimeoutException ex) { - throw ex; - } - } - - /** - * Gets the EntitySet UUID for the given EntitySet name. - * - * @param entitySetName - */ - public void getEntitySetId (String entitySetName, final Response.Listener responseListener, final Response.ErrorListener errorListener) { - Object postBody = null; - - // verify the required parameter 'entitySetName' is set - if (entitySetName == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySetName' when calling getEntitySetId", - new ApiException(400, "Missing the required parameter 'entitySetName' when calling getEntitySetId")); - } - - // create path and map variables - String path = "/datastore/entity-sets/ids/{entitySetName}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "entitySetName" + "\\}", apiInvoker.escapeString(entitySetName.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - - - - String[] contentTypes = { - - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - - - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames, - new Response.Listener() { - @Override - public void onResponse(String localVarResponse) { - try { - responseListener.onResponse((UUID) ApiInvoker.deserialize(localVarResponse, "", UUID.class)); - } catch (ApiException exception) { - errorListener.onErrorResponse(new VolleyError(exception)); - } - } - }, new Response.ErrorListener() { - @Override - public void onErrorResponse(VolleyError error) { - errorListener.onErrorResponse(error); - } - }); - } catch (ApiException ex) { - errorListener.onErrorResponse(new VolleyError(ex)); - } - } - /** - * Get IDs for entity sets given their names. - * - * @param requestBody - * @return Map - */ - public Map getEntitySetIds (List requestBody) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = requestBody; - - // create path and map variables - String path = "/datastore/entity-sets/ids/"; - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - String[] contentTypes = { - "application/json" - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "POST", queryParams, postBody, headerParams, formParams, contentType, authNames); - if (localVarResponse != null) { - return (Map) ApiInvoker.deserialize(localVarResponse, "map", UUID.class); - } else { - return null; - } - } catch (ApiException ex) { - throw ex; - } catch (InterruptedException ex) { - throw ex; - } catch (ExecutionException ex) { - if (ex.getCause() instanceof VolleyError) { - VolleyError volleyError = (VolleyError)ex.getCause(); - if (volleyError.networkResponse != null) { - throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage()); - } - } - throw ex; - } catch (TimeoutException ex) { - throw ex; - } - } - - /** - * Get IDs for entity sets given their names. - * - * @param requestBody - */ - public void getEntitySetIds (List requestBody, final Response.Listener> responseListener, final Response.ErrorListener errorListener) { - Object postBody = requestBody; - - - // create path and map variables - String path = "/datastore/entity-sets/ids/".replaceAll("\\{format\\}","json"); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - - - - String[] contentTypes = { - "application/json" - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - - - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - apiInvoker.invokeAPI(basePath, path, "POST", queryParams, postBody, headerParams, formParams, contentType, authNames, - new Response.Listener() { - @Override - public void onResponse(String localVarResponse) { - try { - responseListener.onResponse((Map) ApiInvoker.deserialize(localVarResponse, "map", UUID.class)); - } catch (ApiException exception) { - errorListener.onErrorResponse(new VolleyError(exception)); - } - } - }, new Response.ErrorListener() { - @Override - public void onErrorResponse(VolleyError error) { - errorListener.onErrorResponse(error); - } - }); - } catch (ApiException ex) { - errorListener.onErrorResponse(new VolleyError(ex)); - } - } - /** - * Get specified property type metadata for an entity set. - * - * @param entitySetId - * @param propertyTypeId - * @return EntitySetPropertyMetaData - */ - public EntitySetPropertyMetaData getEntitySetPropertyMetadata (UUID entitySetId, UUID propertyTypeId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = null; - // verify the required parameter 'entitySetId' is set - if (entitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySetId' when calling getEntitySetPropertyMetadata", - new ApiException(400, "Missing the required parameter 'entitySetId' when calling getEntitySetPropertyMetadata")); - } - // verify the required parameter 'propertyTypeId' is set - if (propertyTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'propertyTypeId' when calling getEntitySetPropertyMetadata", - new ApiException(400, "Missing the required parameter 'propertyTypeId' when calling getEntitySetPropertyMetadata")); - } - - // create path and map variables - String path = "/datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/".replaceAll("\\{" + "entitySetId" + "\\}", apiInvoker.escapeString(entitySetId.toString())).replaceAll("\\{" + "propertyTypeId" + "\\}", apiInvoker.escapeString(propertyTypeId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - String[] contentTypes = { - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); - if (localVarResponse != null) { - return (EntitySetPropertyMetaData) ApiInvoker.deserialize(localVarResponse, "", EntitySetPropertyMetaData.class); - } else { - return null; - } - } catch (ApiException ex) { - throw ex; - } catch (InterruptedException ex) { - throw ex; - } catch (ExecutionException ex) { - if (ex.getCause() instanceof VolleyError) { - VolleyError volleyError = (VolleyError)ex.getCause(); - if (volleyError.networkResponse != null) { - throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage()); - } - } - throw ex; - } catch (TimeoutException ex) { - throw ex; - } - } - - /** - * Get specified property type metadata for an entity set. - * - * @param entitySetId * @param propertyTypeId - */ - public void getEntitySetPropertyMetadata (UUID entitySetId, UUID propertyTypeId, final Response.Listener responseListener, final Response.ErrorListener errorListener) { - Object postBody = null; - - // verify the required parameter 'entitySetId' is set - if (entitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySetId' when calling getEntitySetPropertyMetadata", - new ApiException(400, "Missing the required parameter 'entitySetId' when calling getEntitySetPropertyMetadata")); - } - // verify the required parameter 'propertyTypeId' is set - if (propertyTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'propertyTypeId' when calling getEntitySetPropertyMetadata", - new ApiException(400, "Missing the required parameter 'propertyTypeId' when calling getEntitySetPropertyMetadata")); - } - - // create path and map variables - String path = "/datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/".replaceAll("\\{format\\}","json").replaceAll("\\{" + "entitySetId" + "\\}", apiInvoker.escapeString(entitySetId.toString())).replaceAll("\\{" + "propertyTypeId" + "\\}", apiInvoker.escapeString(propertyTypeId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - - - - String[] contentTypes = { - - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - - - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames, - new Response.Listener() { - @Override - public void onResponse(String localVarResponse) { - try { - responseListener.onResponse((EntitySetPropertyMetaData) ApiInvoker.deserialize(localVarResponse, "", EntitySetPropertyMetaData.class)); - } catch (ApiException exception) { - errorListener.onErrorResponse(new VolleyError(exception)); - } - } - }, new Response.ErrorListener() { - @Override - public void onErrorResponse(VolleyError error) { - errorListener.onErrorResponse(error); - } - }); - } catch (ApiException ex) { - errorListener.onErrorResponse(new VolleyError(ex)); - } - } - /** - * Gets the EntityType definition for the given EntityType UUID. - * - * @param entityTypeId - * @return EntityType - */ - public EntityType getEntityType (UUID entityTypeId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = null; - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling getEntityType", - new ApiException(400, "Missing the required parameter 'entityTypeId' when calling getEntityType")); - } - - // create path and map variables - String path = "/datastore/edm/entity/type/{entityTypeId}".replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - String[] contentTypes = { - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { }; - - try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); - if (localVarResponse != null) { - return (EntityType) ApiInvoker.deserialize(localVarResponse, "", EntityType.class); - } else { - return null; - } - } catch (ApiException ex) { - throw ex; - } catch (InterruptedException ex) { - throw ex; - } catch (ExecutionException ex) { - if (ex.getCause() instanceof VolleyError) { - VolleyError volleyError = (VolleyError)ex.getCause(); - if (volleyError.networkResponse != null) { - throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage()); - } - } - throw ex; - } catch (TimeoutException ex) { - throw ex; - } - } - - /** - * Gets the EntityType definition for the given EntityType UUID. - * - * @param entityTypeId - */ - public void getEntityType (UUID entityTypeId, final Response.Listener responseListener, final Response.ErrorListener errorListener) { - Object postBody = null; - - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling getEntityType", - new ApiException(400, "Missing the required parameter 'entityTypeId' when calling getEntityType")); - } - - // create path and map variables - String path = "/datastore/edm/entity/type/{entityTypeId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - - - - String[] contentTypes = { - - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - - - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { }; - - try { - apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames, - new Response.Listener() { - @Override - public void onResponse(String localVarResponse) { - try { - responseListener.onResponse((EntityType) ApiInvoker.deserialize(localVarResponse, "", EntityType.class)); - } catch (ApiException exception) { - errorListener.onErrorResponse(new VolleyError(exception)); - } - } - }, new Response.ErrorListener() { - @Override - public void onErrorResponse(VolleyError error) { - errorListener.onErrorResponse(error); - } - }); - } catch (ApiException ex) { - errorListener.onErrorResponse(new VolleyError(ex)); - } - } - /** - * Get the EntityType hierarchy for the given EntityType UUID. - * - * @param entityTypeId - * @return void - */ - public void getEntityTypeHierarchy (UUID entityTypeId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = null; - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling getEntityTypeHierarchy", - new ApiException(400, "Missing the required parameter 'entityTypeId' when calling getEntityTypeHierarchy")); - } - - // create path and map variables - String path = "/datastore/edm/entity/type/{entityTypeId}/hierarchy".replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - String[] contentTypes = { - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "PATCH", queryParams, postBody, headerParams, formParams, contentType, authNames); - if (localVarResponse != null) { - return ; - } else { - return ; - } - } catch (ApiException ex) { - throw ex; - } catch (InterruptedException ex) { - throw ex; - } catch (ExecutionException ex) { - if (ex.getCause() instanceof VolleyError) { - VolleyError volleyError = (VolleyError)ex.getCause(); - if (volleyError.networkResponse != null) { - throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage()); - } - } - throw ex; - } catch (TimeoutException ex) { - throw ex; - } - } - - /** - * Get the EntityType hierarchy for the given EntityType UUID. - * - * @param entityTypeId - */ - public void getEntityTypeHierarchy (UUID entityTypeId, final Response.Listener responseListener, final Response.ErrorListener errorListener) { - Object postBody = null; - - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling getEntityTypeHierarchy", - new ApiException(400, "Missing the required parameter 'entityTypeId' when calling getEntityTypeHierarchy")); - } - - // create path and map variables - String path = "/datastore/edm/entity/type/{entityTypeId}/hierarchy".replaceAll("\\{format\\}","json").replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - - - - String[] contentTypes = { - - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - - - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - apiInvoker.invokeAPI(basePath, path, "PATCH", queryParams, postBody, headerParams, formParams, contentType, authNames, - new Response.Listener() { - @Override - public void onResponse(String localVarResponse) { - responseListener.onResponse(localVarResponse); - } - }, new Response.ErrorListener() { - @Override - public void onErrorResponse(VolleyError error) { - errorListener.onErrorResponse(error); - } - }); - } catch (ApiException ex) { - errorListener.onErrorResponse(new VolleyError(ex)); - } - } - /** - * Gets the EntityType UUID for the given EntityType FQN. - * - * @param namespace - * @param name - * @return UUID - */ - public UUID getEntityTypeId (String namespace, String name) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = null; - // verify the required parameter 'namespace' is set - if (namespace == null) { - VolleyError error = new VolleyError("Missing the required parameter 'namespace' when calling getEntityTypeId", - new ApiException(400, "Missing the required parameter 'namespace' when calling getEntityTypeId")); - } - // verify the required parameter 'name' is set - if (name == null) { - VolleyError error = new VolleyError("Missing the required parameter 'name' when calling getEntityTypeId", - new ApiException(400, "Missing the required parameter 'name' when calling getEntityTypeId")); - } - - // create path and map variables - String path = "/datastore/edm/ids/entity/type/{namespace}/{name}".replaceAll("\\{" + "namespace" + "\\}", apiInvoker.escapeString(namespace.toString())).replaceAll("\\{" + "name" + "\\}", apiInvoker.escapeString(name.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - String[] contentTypes = { - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); - if (localVarResponse != null) { - return (UUID) ApiInvoker.deserialize(localVarResponse, "", UUID.class); - } else { - return null; - } - } catch (ApiException ex) { - throw ex; - } catch (InterruptedException ex) { - throw ex; - } catch (ExecutionException ex) { - if (ex.getCause() instanceof VolleyError) { - VolleyError volleyError = (VolleyError)ex.getCause(); - if (volleyError.networkResponse != null) { - throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage()); - } - } - throw ex; - } catch (TimeoutException ex) { - throw ex; - } - } - - /** - * Gets the EntityType UUID for the given EntityType FQN. - * - * @param namespace * @param name - */ - public void getEntityTypeId (String namespace, String name, final Response.Listener responseListener, final Response.ErrorListener errorListener) { - Object postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == null) { - VolleyError error = new VolleyError("Missing the required parameter 'namespace' when calling getEntityTypeId", - new ApiException(400, "Missing the required parameter 'namespace' when calling getEntityTypeId")); - } - // verify the required parameter 'name' is set - if (name == null) { - VolleyError error = new VolleyError("Missing the required parameter 'name' when calling getEntityTypeId", - new ApiException(400, "Missing the required parameter 'name' when calling getEntityTypeId")); - } - - // create path and map variables - String path = "/datastore/edm/ids/entity/type/{namespace}/{name}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "namespace" + "\\}", apiInvoker.escapeString(namespace.toString())).replaceAll("\\{" + "name" + "\\}", apiInvoker.escapeString(name.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - - - - String[] contentTypes = { - - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - - - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames, - new Response.Listener() { - @Override - public void onResponse(String localVarResponse) { - try { - responseListener.onResponse((UUID) ApiInvoker.deserialize(localVarResponse, "", UUID.class)); - } catch (ApiException exception) { - errorListener.onErrorResponse(new VolleyError(exception)); - } - } - }, new Response.ErrorListener() { - @Override - public void onErrorResponse(VolleyError error) { - errorListener.onErrorResponse(error); - } - }); - } catch (ApiException ex) { - errorListener.onErrorResponse(new VolleyError(ex)); - } - } - /** - * Get EntityType propertyType metadata - * - * @param entityTypeId - * @param propertyTypeId - * @return EntityTypePropertyMetadata - */ - public EntityTypePropertyMetadata getEntityTypePropertyMetadata (UUID entityTypeId, UUID propertyTypeId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = null; - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling getEntityTypePropertyMetadata", - new ApiException(400, "Missing the required parameter 'entityTypeId' when calling getEntityTypePropertyMetadata")); - } - // verify the required parameter 'propertyTypeId' is set - if (propertyTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'propertyTypeId' when calling getEntityTypePropertyMetadata", - new ApiException(400, "Missing the required parameter 'propertyTypeId' when calling getEntityTypePropertyMetadata")); - } - - // create path and map variables - String path = "/datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId}".replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())).replaceAll("\\{" + "propertyTypeId" + "\\}", apiInvoker.escapeString(propertyTypeId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - String[] contentTypes = { - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); - if (localVarResponse != null) { - return (EntityTypePropertyMetadata) ApiInvoker.deserialize(localVarResponse, "", EntityTypePropertyMetadata.class); - } else { - return null; - } - } catch (ApiException ex) { - throw ex; - } catch (InterruptedException ex) { - throw ex; - } catch (ExecutionException ex) { - if (ex.getCause() instanceof VolleyError) { - VolleyError volleyError = (VolleyError)ex.getCause(); - if (volleyError.networkResponse != null) { - throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage()); - } - } - throw ex; - } catch (TimeoutException ex) { - throw ex; - } - } - - /** - * Get EntityType propertyType metadata - * - * @param entityTypeId * @param propertyTypeId - */ - public void getEntityTypePropertyMetadata (UUID entityTypeId, UUID propertyTypeId, final Response.Listener responseListener, final Response.ErrorListener errorListener) { + public void getEntityType (UUID entityTypeId, final Response.Listener responseListener, final Response.ErrorListener errorListener) { Object postBody = null; // verify the required parameter 'entityTypeId' is set if (entityTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling getEntityTypePropertyMetadata", - new ApiException(400, "Missing the required parameter 'entityTypeId' when calling getEntityTypePropertyMetadata")); - } - // verify the required parameter 'propertyTypeId' is set - if (propertyTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'propertyTypeId' when calling getEntityTypePropertyMetadata", - new ApiException(400, "Missing the required parameter 'propertyTypeId' when calling getEntityTypePropertyMetadata")); + VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling getEntityType", + new ApiException(400, "Missing the required parameter 'entityTypeId' when calling getEntityType")); } // create path and map variables - String path = "/datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())).replaceAll("\\{" + "propertyTypeId" + "\\}", apiInvoker.escapeString(propertyTypeId.toString())); + String path = "/datastore/edm/entity/type/{entityTypeId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())); // query params List queryParams = new ArrayList(); @@ -4975,7 +3305,7 @@ public void getEntityTypePropertyMetadata (UUID entityTypeId, UUID propertyTypeI // normal form params } - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; + String[] authNames = new String[] { }; try { apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames, @@ -4983,125 +3313,7 @@ public void getEntityTypePropertyMetadata (UUID entityTypeId, UUID propertyTypeI @Override public void onResponse(String localVarResponse) { try { - responseListener.onResponse((EntityTypePropertyMetadata) ApiInvoker.deserialize(localVarResponse, "", EntityTypePropertyMetadata.class)); - } catch (ApiException exception) { - errorListener.onErrorResponse(new VolleyError(exception)); - } - } - }, new Response.ErrorListener() { - @Override - public void onErrorResponse(VolleyError error) { - errorListener.onErrorResponse(error); - } - }); - } catch (ApiException ex) { - errorListener.onErrorResponse(new VolleyError(ex)); - } - } - /** - * Get property metadata for entity sets. - * - * @param requestBody - * @return Map> - */ - public Map> getPropertyMetadataForEntitySets (List requestBody) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = requestBody; - - // create path and map variables - String path = "/datastore/entity-sets/all/metadata"; - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - String[] contentTypes = { - "application/json" - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "POST", queryParams, postBody, headerParams, formParams, contentType, authNames); - if (localVarResponse != null) { - return (Map>) ApiInvoker.deserialize(localVarResponse, "map", Map.class); - } else { - return null; - } - } catch (ApiException ex) { - throw ex; - } catch (InterruptedException ex) { - throw ex; - } catch (ExecutionException ex) { - if (ex.getCause() instanceof VolleyError) { - VolleyError volleyError = (VolleyError)ex.getCause(); - if (volleyError.networkResponse != null) { - throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage()); - } - } - throw ex; - } catch (TimeoutException ex) { - throw ex; - } - } - - /** - * Get property metadata for entity sets. - * - * @param requestBody - */ - public void getPropertyMetadataForEntitySets (List requestBody, final Response.Listener>> responseListener, final Response.ErrorListener errorListener) { - Object postBody = requestBody; - - - // create path and map variables - String path = "/datastore/entity-sets/all/metadata".replaceAll("\\{format\\}","json"); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - - - - String[] contentTypes = { - "application/json" - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - - - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - apiInvoker.invokeAPI(basePath, path, "POST", queryParams, postBody, headerParams, formParams, contentType, authNames, - new Response.Listener() { - @Override - public void onResponse(String localVarResponse) { - try { - responseListener.onResponse((Map>) ApiInvoker.deserialize(localVarResponse, "map", Map.class)); + responseListener.onResponse((EntityType) ApiInvoker.deserialize(localVarResponse, "", EntityType.class)); } catch (ApiException exception) { errorListener.onErrorResponse(new VolleyError(exception)); } @@ -5117,21 +3329,21 @@ public void onErrorResponse(VolleyError error) { } } /** - * Gets the PropertyType definition for the given PropertyType UUID. + * Get the EntityType hierarchy for the given EntityType UUID. * - * @param propertyTypeId - * @return PropertyType + * @param entityTypeId + * @return void */ - public PropertyType getPropertyType (UUID propertyTypeId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { + public void getEntityTypeHierarchy (UUID entityTypeId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { Object postBody = null; - // verify the required parameter 'propertyTypeId' is set - if (propertyTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'propertyTypeId' when calling getPropertyType", - new ApiException(400, "Missing the required parameter 'propertyTypeId' when calling getPropertyType")); + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling getEntityTypeHierarchy", + new ApiException(400, "Missing the required parameter 'entityTypeId' when calling getEntityTypeHierarchy")); } // create path and map variables - String path = "/datastore/edm/property/type/{propertyTypeId}".replaceAll("\\{" + "propertyTypeId" + "\\}", apiInvoker.escapeString(propertyTypeId.toString())); + String path = "/datastore/edm/entity/type/{entityTypeId}/hierarchy".replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())); // query params List queryParams = new ArrayList(); @@ -5155,11 +3367,11 @@ public PropertyType getPropertyType (UUID propertyTypeId) throws TimeoutExceptio String[] authNames = new String[] { "http_auth", "openlattice_auth" }; try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); + String localVarResponse = apiInvoker.invokeAPI (basePath, path, "PATCH", queryParams, postBody, headerParams, formParams, contentType, authNames); if (localVarResponse != null) { - return (PropertyType) ApiInvoker.deserialize(localVarResponse, "", PropertyType.class); + return ; } else { - return null; + return ; } } catch (ApiException ex) { throw ex; @@ -5179,21 +3391,21 @@ public PropertyType getPropertyType (UUID propertyTypeId) throws TimeoutExceptio } /** - * Gets the PropertyType definition for the given PropertyType UUID. + * Get the EntityType hierarchy for the given EntityType UUID. * - * @param propertyTypeId + * @param entityTypeId */ - public void getPropertyType (UUID propertyTypeId, final Response.Listener responseListener, final Response.ErrorListener errorListener) { + public void getEntityTypeHierarchy (UUID entityTypeId, final Response.Listener responseListener, final Response.ErrorListener errorListener) { Object postBody = null; - // verify the required parameter 'propertyTypeId' is set - if (propertyTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'propertyTypeId' when calling getPropertyType", - new ApiException(400, "Missing the required parameter 'propertyTypeId' when calling getPropertyType")); + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling getEntityTypeHierarchy", + new ApiException(400, "Missing the required parameter 'entityTypeId' when calling getEntityTypeHierarchy")); } // create path and map variables - String path = "/datastore/edm/property/type/{propertyTypeId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "propertyTypeId" + "\\}", apiInvoker.escapeString(propertyTypeId.toString())); + String path = "/datastore/edm/entity/type/{entityTypeId}/hierarchy".replaceAll("\\{format\\}","json").replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())); // query params List queryParams = new ArrayList(); @@ -5223,15 +3435,11 @@ public void getPropertyType (UUID propertyTypeId, final Response.Listener() { @Override public void onResponse(String localVarResponse) { - try { - responseListener.onResponse((PropertyType) ApiInvoker.deserialize(localVarResponse, "", PropertyType.class)); - } catch (ApiException exception) { - errorListener.onErrorResponse(new VolleyError(exception)); - } + responseListener.onResponse(localVarResponse); } }, new Response.ErrorListener() { @Override @@ -5244,27 +3452,27 @@ public void onErrorResponse(VolleyError error) { } } /** - * Gets the PropertyType UUID for the given PropertyType FQN. + * Gets the EntityType UUID for the given EntityType FQN. * * @param namespace * @param name * @return UUID */ - public UUID getPropertyTypeId (String namespace, String name) throws TimeoutException, ExecutionException, InterruptedException, ApiException { + public UUID getEntityTypeId (String namespace, String name) throws TimeoutException, ExecutionException, InterruptedException, ApiException { Object postBody = null; // verify the required parameter 'namespace' is set if (namespace == null) { - VolleyError error = new VolleyError("Missing the required parameter 'namespace' when calling getPropertyTypeId", - new ApiException(400, "Missing the required parameter 'namespace' when calling getPropertyTypeId")); + VolleyError error = new VolleyError("Missing the required parameter 'namespace' when calling getEntityTypeId", + new ApiException(400, "Missing the required parameter 'namespace' when calling getEntityTypeId")); } // verify the required parameter 'name' is set if (name == null) { - VolleyError error = new VolleyError("Missing the required parameter 'name' when calling getPropertyTypeId", - new ApiException(400, "Missing the required parameter 'name' when calling getPropertyTypeId")); + VolleyError error = new VolleyError("Missing the required parameter 'name' when calling getEntityTypeId", + new ApiException(400, "Missing the required parameter 'name' when calling getEntityTypeId")); } // create path and map variables - String path = "/datastore/edm/ids/property/type/{namespace}/{name}".replaceAll("\\{" + "namespace" + "\\}", apiInvoker.escapeString(namespace.toString())).replaceAll("\\{" + "name" + "\\}", apiInvoker.escapeString(name.toString())); + String path = "/datastore/edm/ids/entity/type/{namespace}/{name}".replaceAll("\\{" + "namespace" + "\\}", apiInvoker.escapeString(namespace.toString())).replaceAll("\\{" + "name" + "\\}", apiInvoker.escapeString(name.toString())); // query params List queryParams = new ArrayList(); @@ -5312,26 +3520,26 @@ public UUID getPropertyTypeId (String namespace, String name) throws TimeoutExce } /** - * Gets the PropertyType UUID for the given PropertyType FQN. + * Gets the EntityType UUID for the given EntityType FQN. * * @param namespace * @param name */ - public void getPropertyTypeId (String namespace, String name, final Response.Listener responseListener, final Response.ErrorListener errorListener) { + public void getEntityTypeId (String namespace, String name, final Response.Listener responseListener, final Response.ErrorListener errorListener) { Object postBody = null; // verify the required parameter 'namespace' is set if (namespace == null) { - VolleyError error = new VolleyError("Missing the required parameter 'namespace' when calling getPropertyTypeId", - new ApiException(400, "Missing the required parameter 'namespace' when calling getPropertyTypeId")); + VolleyError error = new VolleyError("Missing the required parameter 'namespace' when calling getEntityTypeId", + new ApiException(400, "Missing the required parameter 'namespace' when calling getEntityTypeId")); } // verify the required parameter 'name' is set if (name == null) { - VolleyError error = new VolleyError("Missing the required parameter 'name' when calling getPropertyTypeId", - new ApiException(400, "Missing the required parameter 'name' when calling getPropertyTypeId")); + VolleyError error = new VolleyError("Missing the required parameter 'name' when calling getEntityTypeId", + new ApiException(400, "Missing the required parameter 'name' when calling getEntityTypeId")); } // create path and map variables - String path = "/datastore/edm/ids/property/type/{namespace}/{name}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "namespace" + "\\}", apiInvoker.escapeString(namespace.toString())).replaceAll("\\{" + "name" + "\\}", apiInvoker.escapeString(name.toString())); + String path = "/datastore/edm/ids/entity/type/{namespace}/{name}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "namespace" + "\\}", apiInvoker.escapeString(namespace.toString())).replaceAll("\\{" + "name" + "\\}", apiInvoker.escapeString(name.toString())); // query params List queryParams = new ArrayList(); @@ -5382,21 +3590,27 @@ public void onErrorResponse(VolleyError error) { } } /** - * Get all Property Types for entity set + * Get EntityType propertyType metadata * - * @param entitySetId - * @return Map + * @param entityTypeId + * @param propertyTypeId + * @return EntityTypePropertyMetadata */ - public Map getPropertyTypesForEntitySet (UUID entitySetId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { + public EntityTypePropertyMetadata getEntityTypePropertyMetadata (UUID entityTypeId, UUID propertyTypeId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { Object postBody = null; - // verify the required parameter 'entitySetId' is set - if (entitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySetId' when calling getPropertyTypesForEntitySet", - new ApiException(400, "Missing the required parameter 'entitySetId' when calling getPropertyTypesForEntitySet")); + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling getEntityTypePropertyMetadata", + new ApiException(400, "Missing the required parameter 'entityTypeId' when calling getEntityTypePropertyMetadata")); + } + // verify the required parameter 'propertyTypeId' is set + if (propertyTypeId == null) { + VolleyError error = new VolleyError("Missing the required parameter 'propertyTypeId' when calling getEntityTypePropertyMetadata", + new ApiException(400, "Missing the required parameter 'propertyTypeId' when calling getEntityTypePropertyMetadata")); } // create path and map variables - String path = "/datastore/entity-sets/all/{entitySetId}/properties".replaceAll("\\{" + "entitySetId" + "\\}", apiInvoker.escapeString(entitySetId.toString())); + String path = "/datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId}".replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())).replaceAll("\\{" + "propertyTypeId" + "\\}", apiInvoker.escapeString(propertyTypeId.toString())); // query params List queryParams = new ArrayList(); @@ -5422,7 +3636,7 @@ public Map getPropertyTypesForEntitySet (UUID entitySetId) try { String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); if (localVarResponse != null) { - return (Map) ApiInvoker.deserialize(localVarResponse, "map", PropertyType.class); + return (EntityTypePropertyMetadata) ApiInvoker.deserialize(localVarResponse, "", EntityTypePropertyMetadata.class); } else { return null; } @@ -5444,21 +3658,26 @@ public Map getPropertyTypesForEntitySet (UUID entitySetId) } /** - * Get all Property Types for entity set + * Get EntityType propertyType metadata * - * @param entitySetId + * @param entityTypeId * @param propertyTypeId */ - public void getPropertyTypesForEntitySet (UUID entitySetId, final Response.Listener> responseListener, final Response.ErrorListener errorListener) { + public void getEntityTypePropertyMetadata (UUID entityTypeId, UUID propertyTypeId, final Response.Listener responseListener, final Response.ErrorListener errorListener) { Object postBody = null; - // verify the required parameter 'entitySetId' is set - if (entitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySetId' when calling getPropertyTypesForEntitySet", - new ApiException(400, "Missing the required parameter 'entitySetId' when calling getPropertyTypesForEntitySet")); + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling getEntityTypePropertyMetadata", + new ApiException(400, "Missing the required parameter 'entityTypeId' when calling getEntityTypePropertyMetadata")); + } + // verify the required parameter 'propertyTypeId' is set + if (propertyTypeId == null) { + VolleyError error = new VolleyError("Missing the required parameter 'propertyTypeId' when calling getEntityTypePropertyMetadata", + new ApiException(400, "Missing the required parameter 'propertyTypeId' when calling getEntityTypePropertyMetadata")); } // create path and map variables - String path = "/datastore/entity-sets/all/{entitySetId}/properties".replaceAll("\\{format\\}","json").replaceAll("\\{" + "entitySetId" + "\\}", apiInvoker.escapeString(entitySetId.toString())); + String path = "/datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())).replaceAll("\\{" + "propertyTypeId" + "\\}", apiInvoker.escapeString(propertyTypeId.toString())); // query params List queryParams = new ArrayList(); @@ -5493,7 +3712,7 @@ public void getPropertyTypesForEntitySet (UUID entitySetId, final Response.Liste @Override public void onResponse(String localVarResponse) { try { - responseListener.onResponse((Map) ApiInvoker.deserialize(localVarResponse, "map", PropertyType.class)); + responseListener.onResponse((EntityTypePropertyMetadata) ApiInvoker.deserialize(localVarResponse, "", EntityTypePropertyMetadata.class)); } catch (ApiException exception) { errorListener.onErrorResponse(new VolleyError(exception)); } @@ -5509,21 +3728,21 @@ public void onErrorResponse(VolleyError error) { } } /** - * Get Property Usage Summary for property with given ID. + * Gets the PropertyType definition for the given PropertyType UUID. * * @param propertyTypeId - * @return List + * @return PropertyType */ - public List getPropertyUsageSummary (UUID propertyTypeId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { + public PropertyType getPropertyType (UUID propertyTypeId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { Object postBody = null; // verify the required parameter 'propertyTypeId' is set if (propertyTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'propertyTypeId' when calling getPropertyUsageSummary", - new ApiException(400, "Missing the required parameter 'propertyTypeId' when calling getPropertyUsageSummary")); + VolleyError error = new VolleyError("Missing the required parameter 'propertyTypeId' when calling getPropertyType", + new ApiException(400, "Missing the required parameter 'propertyTypeId' when calling getPropertyType")); } // create path and map variables - String path = "/datastore/edm/summary/{propertyTypeId}".replaceAll("\\{" + "propertyTypeId" + "\\}", apiInvoker.escapeString(propertyTypeId.toString())); + String path = "/datastore/edm/property/type/{propertyTypeId}".replaceAll("\\{" + "propertyTypeId" + "\\}", apiInvoker.escapeString(propertyTypeId.toString())); // query params List queryParams = new ArrayList(); @@ -5549,7 +3768,7 @@ public List getPropertyUsageSummary (UUID propertyTypeId) try { String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); if (localVarResponse != null) { - return (List) ApiInvoker.deserialize(localVarResponse, "array", PropertyUsageSummary.class); + return (PropertyType) ApiInvoker.deserialize(localVarResponse, "", PropertyType.class); } else { return null; } @@ -5571,21 +3790,21 @@ public List getPropertyUsageSummary (UUID propertyTypeId) } /** - * Get Property Usage Summary for property with given ID. + * Gets the PropertyType definition for the given PropertyType UUID. * * @param propertyTypeId */ - public void getPropertyUsageSummary (UUID propertyTypeId, final Response.Listener> responseListener, final Response.ErrorListener errorListener) { + public void getPropertyType (UUID propertyTypeId, final Response.Listener responseListener, final Response.ErrorListener errorListener) { Object postBody = null; // verify the required parameter 'propertyTypeId' is set if (propertyTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'propertyTypeId' when calling getPropertyUsageSummary", - new ApiException(400, "Missing the required parameter 'propertyTypeId' when calling getPropertyUsageSummary")); + VolleyError error = new VolleyError("Missing the required parameter 'propertyTypeId' when calling getPropertyType", + new ApiException(400, "Missing the required parameter 'propertyTypeId' when calling getPropertyType")); } // create path and map variables - String path = "/datastore/edm/summary/{propertyTypeId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "propertyTypeId" + "\\}", apiInvoker.escapeString(propertyTypeId.toString())); + String path = "/datastore/edm/property/type/{propertyTypeId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "propertyTypeId" + "\\}", apiInvoker.escapeString(propertyTypeId.toString())); // query params List queryParams = new ArrayList(); @@ -5620,7 +3839,7 @@ public void getPropertyUsageSummary (UUID propertyTypeId, final Response.Listene @Override public void onResponse(String localVarResponse) { try { - responseListener.onResponse((List) ApiInvoker.deserialize(localVarResponse, "array", PropertyUsageSummary.class)); + responseListener.onResponse((PropertyType) ApiInvoker.deserialize(localVarResponse, "", PropertyType.class)); } catch (ApiException exception) { errorListener.onErrorResponse(new VolleyError(exception)); } @@ -5636,28 +3855,27 @@ public void onErrorResponse(VolleyError error) { } } /** - * Gets the schema contents for a corresponding namespace and name. + * Gets the PropertyType UUID for the given PropertyType FQN. * * @param namespace * @param name - * @param fileType - * @return Schema + * @return UUID */ - public Schema getSchemaContents (String namespace, String name, String fileType) throws TimeoutException, ExecutionException, InterruptedException, ApiException { + public UUID getPropertyTypeId (String namespace, String name) throws TimeoutException, ExecutionException, InterruptedException, ApiException { Object postBody = null; // verify the required parameter 'namespace' is set if (namespace == null) { - VolleyError error = new VolleyError("Missing the required parameter 'namespace' when calling getSchemaContents", - new ApiException(400, "Missing the required parameter 'namespace' when calling getSchemaContents")); + VolleyError error = new VolleyError("Missing the required parameter 'namespace' when calling getPropertyTypeId", + new ApiException(400, "Missing the required parameter 'namespace' when calling getPropertyTypeId")); } // verify the required parameter 'name' is set if (name == null) { - VolleyError error = new VolleyError("Missing the required parameter 'name' when calling getSchemaContents", - new ApiException(400, "Missing the required parameter 'name' when calling getSchemaContents")); + VolleyError error = new VolleyError("Missing the required parameter 'name' when calling getPropertyTypeId", + new ApiException(400, "Missing the required parameter 'name' when calling getPropertyTypeId")); } // create path and map variables - String path = "/datastore/edm/schema/{namespace}/{name}".replaceAll("\\{" + "namespace" + "\\}", apiInvoker.escapeString(namespace.toString())).replaceAll("\\{" + "name" + "\\}", apiInvoker.escapeString(name.toString())); + String path = "/datastore/edm/ids/property/type/{namespace}/{name}".replaceAll("\\{" + "namespace" + "\\}", apiInvoker.escapeString(namespace.toString())).replaceAll("\\{" + "name" + "\\}", apiInvoker.escapeString(name.toString())); // query params List queryParams = new ArrayList(); @@ -5665,7 +3883,6 @@ public Schema getSchemaContents (String namespace, String name, String fileType) Map headerParams = new HashMap(); // form params Map formParams = new HashMap(); - queryParams.addAll(ApiInvoker.parameterToPairs("", "fileType", fileType)); String[] contentTypes = { }; String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; @@ -5684,7 +3901,7 @@ public Schema getSchemaContents (String namespace, String name, String fileType) try { String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); if (localVarResponse != null) { - return (Schema) ApiInvoker.deserialize(localVarResponse, "", Schema.class); + return (UUID) ApiInvoker.deserialize(localVarResponse, "", UUID.class); } else { return null; } @@ -5706,26 +3923,26 @@ public Schema getSchemaContents (String namespace, String name, String fileType) } /** - * Gets the schema contents for a corresponding namespace and name. + * Gets the PropertyType UUID for the given PropertyType FQN. * - * @param namespace * @param name * @param fileType + * @param namespace * @param name */ - public void getSchemaContents (String namespace, String name, String fileType, final Response.Listener responseListener, final Response.ErrorListener errorListener) { + public void getPropertyTypeId (String namespace, String name, final Response.Listener responseListener, final Response.ErrorListener errorListener) { Object postBody = null; // verify the required parameter 'namespace' is set if (namespace == null) { - VolleyError error = new VolleyError("Missing the required parameter 'namespace' when calling getSchemaContents", - new ApiException(400, "Missing the required parameter 'namespace' when calling getSchemaContents")); + VolleyError error = new VolleyError("Missing the required parameter 'namespace' when calling getPropertyTypeId", + new ApiException(400, "Missing the required parameter 'namespace' when calling getPropertyTypeId")); } // verify the required parameter 'name' is set if (name == null) { - VolleyError error = new VolleyError("Missing the required parameter 'name' when calling getSchemaContents", - new ApiException(400, "Missing the required parameter 'name' when calling getSchemaContents")); + VolleyError error = new VolleyError("Missing the required parameter 'name' when calling getPropertyTypeId", + new ApiException(400, "Missing the required parameter 'name' when calling getPropertyTypeId")); } // create path and map variables - String path = "/datastore/edm/schema/{namespace}/{name}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "namespace" + "\\}", apiInvoker.escapeString(namespace.toString())).replaceAll("\\{" + "name" + "\\}", apiInvoker.escapeString(name.toString())); + String path = "/datastore/edm/ids/property/type/{namespace}/{name}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "namespace" + "\\}", apiInvoker.escapeString(namespace.toString())).replaceAll("\\{" + "name" + "\\}", apiInvoker.escapeString(name.toString())); // query params List queryParams = new ArrayList(); @@ -5734,7 +3951,6 @@ public void getSchemaContents (String namespace, String name, String fileType, f // form params Map formParams = new HashMap(); - queryParams.addAll(ApiInvoker.parameterToPairs("", "fileType", fileType)); String[] contentTypes = { @@ -5761,7 +3977,7 @@ public void getSchemaContents (String namespace, String name, String fileType, f @Override public void onResponse(String localVarResponse) { try { - responseListener.onResponse((Schema) ApiInvoker.deserialize(localVarResponse, "", Schema.class)); + responseListener.onResponse((UUID) ApiInvoker.deserialize(localVarResponse, "", UUID.class)); } catch (ApiException exception) { errorListener.onErrorResponse(new VolleyError(exception)); } @@ -5777,15 +3993,21 @@ public void onErrorResponse(VolleyError error) { } } /** - * Gets all schemas. + * Get Property Usage Summary for property with given ID. * - * @return List + * @param propertyTypeId + * @return List */ - public List getSchemas () throws TimeoutException, ExecutionException, InterruptedException, ApiException { + public List getPropertyUsageSummary (UUID propertyTypeId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { Object postBody = null; + // verify the required parameter 'propertyTypeId' is set + if (propertyTypeId == null) { + VolleyError error = new VolleyError("Missing the required parameter 'propertyTypeId' when calling getPropertyUsageSummary", + new ApiException(400, "Missing the required parameter 'propertyTypeId' when calling getPropertyUsageSummary")); + } // create path and map variables - String path = "/datastore/edm/schema"; + String path = "/datastore/edm/summary/{propertyTypeId}".replaceAll("\\{" + "propertyTypeId" + "\\}", apiInvoker.escapeString(propertyTypeId.toString())); // query params List queryParams = new ArrayList(); @@ -5811,7 +4033,7 @@ public List getSchemas () throws TimeoutException, ExecutionException, I try { String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); if (localVarResponse != null) { - return (List) ApiInvoker.deserialize(localVarResponse, "array", Schema.class); + return (List) ApiInvoker.deserialize(localVarResponse, "array", PropertyUsageSummary.class); } else { return null; } @@ -5833,16 +4055,21 @@ public List getSchemas () throws TimeoutException, ExecutionException, I } /** - * Gets all schemas. + * Get Property Usage Summary for property with given ID. * - + * @param propertyTypeId */ - public void getSchemas (final Response.Listener> responseListener, final Response.ErrorListener errorListener) { + public void getPropertyUsageSummary (UUID propertyTypeId, final Response.Listener> responseListener, final Response.ErrorListener errorListener) { Object postBody = null; + // verify the required parameter 'propertyTypeId' is set + if (propertyTypeId == null) { + VolleyError error = new VolleyError("Missing the required parameter 'propertyTypeId' when calling getPropertyUsageSummary", + new ApiException(400, "Missing the required parameter 'propertyTypeId' when calling getPropertyUsageSummary")); + } // create path and map variables - String path = "/datastore/edm/schema".replaceAll("\\{format\\}","json"); + String path = "/datastore/edm/summary/{propertyTypeId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "propertyTypeId" + "\\}", apiInvoker.escapeString(propertyTypeId.toString())); // query params List queryParams = new ArrayList(); @@ -5877,7 +4104,7 @@ public void getSchemas (final Response.Listener> responseListener, @Override public void onResponse(String localVarResponse) { try { - responseListener.onResponse((List) ApiInvoker.deserialize(localVarResponse, "array", Schema.class)); + responseListener.onResponse((List) ApiInvoker.deserialize(localVarResponse, "array", PropertyUsageSummary.class)); } catch (ApiException exception) { errorListener.onErrorResponse(new VolleyError(exception)); } @@ -5893,21 +4120,28 @@ public void onErrorResponse(VolleyError error) { } } /** - * Gets all schemas associated with a given namespace and accessible by the caller. + * Gets the schema contents for a corresponding namespace and name. * * @param namespace - * @return List + * @param name + * @param fileType + * @return Schema */ - public List getSchemasInNamespace (String namespace) throws TimeoutException, ExecutionException, InterruptedException, ApiException { + public Schema getSchemaContents (String namespace, String name, String fileType) throws TimeoutException, ExecutionException, InterruptedException, ApiException { Object postBody = null; // verify the required parameter 'namespace' is set if (namespace == null) { - VolleyError error = new VolleyError("Missing the required parameter 'namespace' when calling getSchemasInNamespace", - new ApiException(400, "Missing the required parameter 'namespace' when calling getSchemasInNamespace")); + VolleyError error = new VolleyError("Missing the required parameter 'namespace' when calling getSchemaContents", + new ApiException(400, "Missing the required parameter 'namespace' when calling getSchemaContents")); + } + // verify the required parameter 'name' is set + if (name == null) { + VolleyError error = new VolleyError("Missing the required parameter 'name' when calling getSchemaContents", + new ApiException(400, "Missing the required parameter 'name' when calling getSchemaContents")); } // create path and map variables - String path = "/datastore/edm/schema/{namespace}".replaceAll("\\{" + "namespace" + "\\}", apiInvoker.escapeString(namespace.toString())); + String path = "/datastore/edm/schema/{namespace}/{name}".replaceAll("\\{" + "namespace" + "\\}", apiInvoker.escapeString(namespace.toString())).replaceAll("\\{" + "name" + "\\}", apiInvoker.escapeString(name.toString())); // query params List queryParams = new ArrayList(); @@ -5915,6 +4149,7 @@ public List getSchemasInNamespace (String namespace) throws TimeoutExcep Map headerParams = new HashMap(); // form params Map formParams = new HashMap(); + queryParams.addAll(ApiInvoker.parameterToPairs("", "fileType", fileType)); String[] contentTypes = { }; String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; @@ -5933,7 +4168,7 @@ public List getSchemasInNamespace (String namespace) throws TimeoutExcep try { String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); if (localVarResponse != null) { - return (List) ApiInvoker.deserialize(localVarResponse, "array", Schema.class); + return (Schema) ApiInvoker.deserialize(localVarResponse, "", Schema.class); } else { return null; } @@ -5955,21 +4190,26 @@ public List getSchemasInNamespace (String namespace) throws TimeoutExcep } /** - * Gets all schemas associated with a given namespace and accessible by the caller. + * Gets the schema contents for a corresponding namespace and name. * - * @param namespace + * @param namespace * @param name * @param fileType */ - public void getSchemasInNamespace (String namespace, final Response.Listener> responseListener, final Response.ErrorListener errorListener) { + public void getSchemaContents (String namespace, String name, String fileType, final Response.Listener responseListener, final Response.ErrorListener errorListener) { Object postBody = null; // verify the required parameter 'namespace' is set if (namespace == null) { - VolleyError error = new VolleyError("Missing the required parameter 'namespace' when calling getSchemasInNamespace", - new ApiException(400, "Missing the required parameter 'namespace' when calling getSchemasInNamespace")); + VolleyError error = new VolleyError("Missing the required parameter 'namespace' when calling getSchemaContents", + new ApiException(400, "Missing the required parameter 'namespace' when calling getSchemaContents")); + } + // verify the required parameter 'name' is set + if (name == null) { + VolleyError error = new VolleyError("Missing the required parameter 'name' when calling getSchemaContents", + new ApiException(400, "Missing the required parameter 'name' when calling getSchemaContents")); } // create path and map variables - String path = "/datastore/edm/schema/{namespace}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "namespace" + "\\}", apiInvoker.escapeString(namespace.toString())); + String path = "/datastore/edm/schema/{namespace}/{name}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "namespace" + "\\}", apiInvoker.escapeString(namespace.toString())).replaceAll("\\{" + "name" + "\\}", apiInvoker.escapeString(name.toString())); // query params List queryParams = new ArrayList(); @@ -5978,6 +4218,7 @@ public void getSchemasInNamespace (String namespace, final Response.Listener formParams = new HashMap(); + queryParams.addAll(ApiInvoker.parameterToPairs("", "fileType", fileType)); String[] contentTypes = { @@ -6004,7 +4245,7 @@ public void getSchemasInNamespace (String namespace, final Response.Listener) ApiInvoker.deserialize(localVarResponse, "array", Schema.class)); + responseListener.onResponse((Schema) ApiInvoker.deserialize(localVarResponse, "", Schema.class)); } catch (ApiException exception) { errorListener.onErrorResponse(new VolleyError(exception)); } @@ -6020,27 +4261,15 @@ public void onErrorResponse(VolleyError error) { } } /** - * Updates the AssociationType dst entity types for the given AssociationType UUID by removing the given EntityType UUID. + * Gets all schemas. * - * @param associationTypeId - * @param entityTypeId - * @return void + * @return List */ - public void removeDstEntityTypeFromAssociationType (UUID associationTypeId, UUID entityTypeId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { + public List getSchemas () throws TimeoutException, ExecutionException, InterruptedException, ApiException { Object postBody = null; - // verify the required parameter 'associationTypeId' is set - if (associationTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'associationTypeId' when calling removeDstEntityTypeFromAssociationType", - new ApiException(400, "Missing the required parameter 'associationTypeId' when calling removeDstEntityTypeFromAssociationType")); - } - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling removeDstEntityTypeFromAssociationType", - new ApiException(400, "Missing the required parameter 'entityTypeId' when calling removeDstEntityTypeFromAssociationType")); - } // create path and map variables - String path = "/datastore/edm/association/type/{associationTypeId}/dst/{entityTypeId}".replaceAll("\\{" + "associationTypeId" + "\\}", apiInvoker.escapeString(associationTypeId.toString())).replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())); + String path = "/datastore/edm/schema"; // query params List queryParams = new ArrayList(); @@ -6064,11 +4293,11 @@ public void removeDstEntityTypeFromAssociationType (UUID associationTypeId, UUID String[] authNames = new String[] { "http_auth", "openlattice_auth" }; try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "DELETE", queryParams, postBody, headerParams, formParams, contentType, authNames); + String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); if (localVarResponse != null) { - return ; + return (List) ApiInvoker.deserialize(localVarResponse, "array", Schema.class); } else { - return ; + return null; } } catch (ApiException ex) { throw ex; @@ -6088,26 +4317,16 @@ public void removeDstEntityTypeFromAssociationType (UUID associationTypeId, UUID } /** - * Updates the AssociationType dst entity types for the given AssociationType UUID by removing the given EntityType UUID. + * Gets all schemas. * - * @param associationTypeId * @param entityTypeId + */ - public void removeDstEntityTypeFromAssociationType (UUID associationTypeId, UUID entityTypeId, final Response.Listener responseListener, final Response.ErrorListener errorListener) { + public void getSchemas (final Response.Listener> responseListener, final Response.ErrorListener errorListener) { Object postBody = null; - // verify the required parameter 'associationTypeId' is set - if (associationTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'associationTypeId' when calling removeDstEntityTypeFromAssociationType", - new ApiException(400, "Missing the required parameter 'associationTypeId' when calling removeDstEntityTypeFromAssociationType")); - } - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling removeDstEntityTypeFromAssociationType", - new ApiException(400, "Missing the required parameter 'entityTypeId' when calling removeDstEntityTypeFromAssociationType")); - } // create path and map variables - String path = "/datastore/edm/association/type/{associationTypeId}/dst/{entityTypeId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "associationTypeId" + "\\}", apiInvoker.escapeString(associationTypeId.toString())).replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())); + String path = "/datastore/edm/schema".replaceAll("\\{format\\}","json"); // query params List queryParams = new ArrayList(); @@ -6137,11 +4356,15 @@ public void removeDstEntityTypeFromAssociationType (UUID associationTypeId, UUID String[] authNames = new String[] { "http_auth", "openlattice_auth" }; try { - apiInvoker.invokeAPI(basePath, path, "DELETE", queryParams, postBody, headerParams, formParams, contentType, authNames, + apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames, new Response.Listener() { @Override public void onResponse(String localVarResponse) { - responseListener.onResponse(localVarResponse); + try { + responseListener.onResponse((List) ApiInvoker.deserialize(localVarResponse, "array", Schema.class)); + } catch (ApiException exception) { + errorListener.onErrorResponse(new VolleyError(exception)); + } } }, new Response.ErrorListener() { @Override @@ -6154,22 +4377,21 @@ public void onErrorResponse(VolleyError error) { } } /** - * Removes/unlinks the linked entity sets from the linking entity set + * Gets all schemas associated with a given namespace and accessible by the caller. * - * @param linkingEntitySetId - * @param UUID - * @return Integer + * @param namespace + * @return List */ - public Integer removeEntitySetsFromLinkingEntitySet (String linkingEntitySetId, List UUID) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = UUID; - // verify the required parameter 'linkingEntitySetId' is set - if (linkingEntitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'linkingEntitySetId' when calling removeEntitySetsFromLinkingEntitySet", - new ApiException(400, "Missing the required parameter 'linkingEntitySetId' when calling removeEntitySetsFromLinkingEntitySet")); + public List getSchemasInNamespace (String namespace) throws TimeoutException, ExecutionException, InterruptedException, ApiException { + Object postBody = null; + // verify the required parameter 'namespace' is set + if (namespace == null) { + VolleyError error = new VolleyError("Missing the required parameter 'namespace' when calling getSchemasInNamespace", + new ApiException(400, "Missing the required parameter 'namespace' when calling getSchemasInNamespace")); } // create path and map variables - String path = "/datastore/entity-sets/linking/{linkingEntitySetId}".replaceAll("\\{" + "linkingEntitySetId" + "\\}", apiInvoker.escapeString(linkingEntitySetId.toString())); + String path = "/datastore/edm/schema/{namespace}".replaceAll("\\{" + "namespace" + "\\}", apiInvoker.escapeString(namespace.toString())); // query params List queryParams = new ArrayList(); @@ -6178,7 +4400,6 @@ public Integer removeEntitySetsFromLinkingEntitySet (String linkingEntitySetId, // form params Map formParams = new HashMap(); String[] contentTypes = { - "application/json" }; String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; @@ -6194,9 +4415,9 @@ public Integer removeEntitySetsFromLinkingEntitySet (String linkingEntitySetId, String[] authNames = new String[] { "http_auth", "openlattice_auth" }; try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "DELETE", queryParams, postBody, headerParams, formParams, contentType, authNames); + String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames); if (localVarResponse != null) { - return (Integer) ApiInvoker.deserialize(localVarResponse, "", Integer.class); + return (List) ApiInvoker.deserialize(localVarResponse, "array", Schema.class); } else { return null; } @@ -6218,21 +4439,21 @@ public Integer removeEntitySetsFromLinkingEntitySet (String linkingEntitySetId, } /** - * Removes/unlinks the linked entity sets from the linking entity set + * Gets all schemas associated with a given namespace and accessible by the caller. * - * @param linkingEntitySetId * @param UUID + * @param namespace */ - public void removeEntitySetsFromLinkingEntitySet (String linkingEntitySetId, List UUID, final Response.Listener responseListener, final Response.ErrorListener errorListener) { - Object postBody = UUID; + public void getSchemasInNamespace (String namespace, final Response.Listener> responseListener, final Response.ErrorListener errorListener) { + Object postBody = null; - // verify the required parameter 'linkingEntitySetId' is set - if (linkingEntitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'linkingEntitySetId' when calling removeEntitySetsFromLinkingEntitySet", - new ApiException(400, "Missing the required parameter 'linkingEntitySetId' when calling removeEntitySetsFromLinkingEntitySet")); + // verify the required parameter 'namespace' is set + if (namespace == null) { + VolleyError error = new VolleyError("Missing the required parameter 'namespace' when calling getSchemasInNamespace", + new ApiException(400, "Missing the required parameter 'namespace' when calling getSchemasInNamespace")); } // create path and map variables - String path = "/datastore/entity-sets/linking/{linkingEntitySetId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "linkingEntitySetId" + "\\}", apiInvoker.escapeString(linkingEntitySetId.toString())); + String path = "/datastore/edm/schema/{namespace}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "namespace" + "\\}", apiInvoker.escapeString(namespace.toString())); // query params List queryParams = new ArrayList(); @@ -6244,7 +4465,7 @@ public void removeEntitySetsFromLinkingEntitySet (String linkingEntitySetId, Lis String[] contentTypes = { - "application/json" + }; String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; @@ -6262,12 +4483,12 @@ public void removeEntitySetsFromLinkingEntitySet (String linkingEntitySetId, Lis String[] authNames = new String[] { "http_auth", "openlattice_auth" }; try { - apiInvoker.invokeAPI(basePath, path, "DELETE", queryParams, postBody, headerParams, formParams, contentType, authNames, + apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames, new Response.Listener() { @Override public void onResponse(String localVarResponse) { try { - responseListener.onResponse((Integer) ApiInvoker.deserialize(localVarResponse, "", Integer.class)); + responseListener.onResponse((List) ApiInvoker.deserialize(localVarResponse, "array", Schema.class)); } catch (ApiException exception) { errorListener.onErrorResponse(new VolleyError(exception)); } @@ -6283,27 +4504,27 @@ public void onErrorResponse(VolleyError error) { } } /** - * Removes/unlinks the linked entity sets from the linking entity set + * Updates the AssociationType dst entity types for the given AssociationType UUID by removing the given EntityType UUID. * - * @param linkingEntitySetId - * @param requestBody - * @return Integer + * @param associationTypeId + * @param entityTypeId + * @return void */ - public Integer removeEntitySetsFromLinkingEntitySets (UUID linkingEntitySetId, Map> requestBody) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = requestBody; - // verify the required parameter 'linkingEntitySetId' is set - if (linkingEntitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'linkingEntitySetId' when calling removeEntitySetsFromLinkingEntitySets", - new ApiException(400, "Missing the required parameter 'linkingEntitySetId' when calling removeEntitySetsFromLinkingEntitySets")); + public void removeDstEntityTypeFromAssociationType (UUID associationTypeId, UUID entityTypeId) throws TimeoutException, ExecutionException, InterruptedException, ApiException { + Object postBody = null; + // verify the required parameter 'associationTypeId' is set + if (associationTypeId == null) { + VolleyError error = new VolleyError("Missing the required parameter 'associationTypeId' when calling removeDstEntityTypeFromAssociationType", + new ApiException(400, "Missing the required parameter 'associationTypeId' when calling removeDstEntityTypeFromAssociationType")); } - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - VolleyError error = new VolleyError("Missing the required parameter 'requestBody' when calling removeEntitySetsFromLinkingEntitySets", - new ApiException(400, "Missing the required parameter 'requestBody' when calling removeEntitySetsFromLinkingEntitySets")); + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling removeDstEntityTypeFromAssociationType", + new ApiException(400, "Missing the required parameter 'entityTypeId' when calling removeDstEntityTypeFromAssociationType")); } // create path and map variables - String path = "/datastore/entity-sets/linking/".replaceAll("\\{" + "linkingEntitySetId" + "\\}", apiInvoker.escapeString(linkingEntitySetId.toString())); + String path = "/datastore/edm/association/type/{associationTypeId}/dst/{entityTypeId}".replaceAll("\\{" + "associationTypeId" + "\\}", apiInvoker.escapeString(associationTypeId.toString())).replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())); // query params List queryParams = new ArrayList(); @@ -6312,7 +4533,6 @@ public Integer removeEntitySetsFromLinkingEntitySets (UUID linkingEntitySetId, M // form params Map formParams = new HashMap(); String[] contentTypes = { - "application/json" }; String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; @@ -6330,9 +4550,9 @@ public Integer removeEntitySetsFromLinkingEntitySets (UUID linkingEntitySetId, M try { String localVarResponse = apiInvoker.invokeAPI (basePath, path, "DELETE", queryParams, postBody, headerParams, formParams, contentType, authNames); if (localVarResponse != null) { - return (Integer) ApiInvoker.deserialize(localVarResponse, "", Integer.class); + return ; } else { - return null; + return ; } } catch (ApiException ex) { throw ex; @@ -6352,26 +4572,26 @@ public Integer removeEntitySetsFromLinkingEntitySets (UUID linkingEntitySetId, M } /** - * Removes/unlinks the linked entity sets from the linking entity set + * Updates the AssociationType dst entity types for the given AssociationType UUID by removing the given EntityType UUID. * - * @param linkingEntitySetId * @param requestBody + * @param associationTypeId * @param entityTypeId */ - public void removeEntitySetsFromLinkingEntitySets (UUID linkingEntitySetId, Map> requestBody, final Response.Listener responseListener, final Response.ErrorListener errorListener) { - Object postBody = requestBody; + public void removeDstEntityTypeFromAssociationType (UUID associationTypeId, UUID entityTypeId, final Response.Listener responseListener, final Response.ErrorListener errorListener) { + Object postBody = null; - // verify the required parameter 'linkingEntitySetId' is set - if (linkingEntitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'linkingEntitySetId' when calling removeEntitySetsFromLinkingEntitySets", - new ApiException(400, "Missing the required parameter 'linkingEntitySetId' when calling removeEntitySetsFromLinkingEntitySets")); + // verify the required parameter 'associationTypeId' is set + if (associationTypeId == null) { + VolleyError error = new VolleyError("Missing the required parameter 'associationTypeId' when calling removeDstEntityTypeFromAssociationType", + new ApiException(400, "Missing the required parameter 'associationTypeId' when calling removeDstEntityTypeFromAssociationType")); } - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - VolleyError error = new VolleyError("Missing the required parameter 'requestBody' when calling removeEntitySetsFromLinkingEntitySets", - new ApiException(400, "Missing the required parameter 'requestBody' when calling removeEntitySetsFromLinkingEntitySets")); + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + VolleyError error = new VolleyError("Missing the required parameter 'entityTypeId' when calling removeDstEntityTypeFromAssociationType", + new ApiException(400, "Missing the required parameter 'entityTypeId' when calling removeDstEntityTypeFromAssociationType")); } // create path and map variables - String path = "/datastore/entity-sets/linking/".replaceAll("\\{format\\}","json").replaceAll("\\{" + "linkingEntitySetId" + "\\}", apiInvoker.escapeString(linkingEntitySetId.toString())); + String path = "/datastore/edm/association/type/{associationTypeId}/dst/{entityTypeId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "associationTypeId" + "\\}", apiInvoker.escapeString(associationTypeId.toString())).replaceAll("\\{" + "entityTypeId" + "\\}", apiInvoker.escapeString(entityTypeId.toString())); // query params List queryParams = new ArrayList(); @@ -6383,7 +4603,7 @@ public void removeEntitySetsFromLinkingEntitySets (UUID linkingEntitySetId, Map< String[] contentTypes = { - "application/json" + }; String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; @@ -6405,11 +4625,7 @@ public void removeEntitySetsFromLinkingEntitySets (UUID linkingEntitySetId, Map< new Response.Listener() { @Override public void onResponse(String localVarResponse) { - try { - responseListener.onResponse((Integer) ApiInvoker.deserialize(localVarResponse, "", Integer.class)); - } catch (ApiException exception) { - errorListener.onErrorResponse(new VolleyError(exception)); - } + responseListener.onResponse(localVarResponse); } }, new Response.ErrorListener() { @Override @@ -7082,291 +5298,6 @@ public void onErrorResponse(VolleyError error) { } } /** - * Updates the EntitySet definition for the given EntitySet UUID with the given metadata. - * - * @param entitySetId - * @param metadataUpdate - * @return Integer - */ - public Integer updateEntitySetMetaData (UUID entitySetId, MetadataUpdate metadataUpdate) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = metadataUpdate; - // verify the required parameter 'entitySetId' is set - if (entitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySetId' when calling updateEntitySetMetaData", - new ApiException(400, "Missing the required parameter 'entitySetId' when calling updateEntitySetMetaData")); - } - // verify the required parameter 'metadataUpdate' is set - if (metadataUpdate == null) { - VolleyError error = new VolleyError("Missing the required parameter 'metadataUpdate' when calling updateEntitySetMetaData", - new ApiException(400, "Missing the required parameter 'metadataUpdate' when calling updateEntitySetMetaData")); - } - - // create path and map variables - String path = "/datastore/entity-sets/all/{entitySetId}/metadata/".replaceAll("\\{" + "entitySetId" + "\\}", apiInvoker.escapeString(entitySetId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - String[] contentTypes = { - "application/json" - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "PATCH", queryParams, postBody, headerParams, formParams, contentType, authNames); - if (localVarResponse != null) { - return (Integer) ApiInvoker.deserialize(localVarResponse, "", Integer.class); - } else { - return null; - } - } catch (ApiException ex) { - throw ex; - } catch (InterruptedException ex) { - throw ex; - } catch (ExecutionException ex) { - if (ex.getCause() instanceof VolleyError) { - VolleyError volleyError = (VolleyError)ex.getCause(); - if (volleyError.networkResponse != null) { - throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage()); - } - } - throw ex; - } catch (TimeoutException ex) { - throw ex; - } - } - - /** - * Updates the EntitySet definition for the given EntitySet UUID with the given metadata. - * - * @param entitySetId * @param metadataUpdate - */ - public void updateEntitySetMetaData (UUID entitySetId, MetadataUpdate metadataUpdate, final Response.Listener responseListener, final Response.ErrorListener errorListener) { - Object postBody = metadataUpdate; - - // verify the required parameter 'entitySetId' is set - if (entitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySetId' when calling updateEntitySetMetaData", - new ApiException(400, "Missing the required parameter 'entitySetId' when calling updateEntitySetMetaData")); - } - // verify the required parameter 'metadataUpdate' is set - if (metadataUpdate == null) { - VolleyError error = new VolleyError("Missing the required parameter 'metadataUpdate' when calling updateEntitySetMetaData", - new ApiException(400, "Missing the required parameter 'metadataUpdate' when calling updateEntitySetMetaData")); - } - - // create path and map variables - String path = "/datastore/entity-sets/all/{entitySetId}/metadata/".replaceAll("\\{format\\}","json").replaceAll("\\{" + "entitySetId" + "\\}", apiInvoker.escapeString(entitySetId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - - - - String[] contentTypes = { - "application/json" - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - - - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - apiInvoker.invokeAPI(basePath, path, "PATCH", queryParams, postBody, headerParams, formParams, contentType, authNames, - new Response.Listener() { - @Override - public void onResponse(String localVarResponse) { - try { - responseListener.onResponse((Integer) ApiInvoker.deserialize(localVarResponse, "", Integer.class)); - } catch (ApiException exception) { - errorListener.onErrorResponse(new VolleyError(exception)); - } - } - }, new Response.ErrorListener() { - @Override - public void onErrorResponse(VolleyError error) { - errorListener.onErrorResponse(error); - } - }); - } catch (ApiException ex) { - errorListener.onErrorResponse(new VolleyError(ex)); - } - } - /** - * Updates the property type metadata for the given entity set. - * - * @param entitySetId - * @param propertyTypeId - * @param metadataUpdate - * @return void - */ - public void updateEntitySetPropertyMetadata (UUID entitySetId, UUID propertyTypeId, MetadataUpdate metadataUpdate) throws TimeoutException, ExecutionException, InterruptedException, ApiException { - Object postBody = metadataUpdate; - // verify the required parameter 'entitySetId' is set - if (entitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySetId' when calling updateEntitySetPropertyMetadata", - new ApiException(400, "Missing the required parameter 'entitySetId' when calling updateEntitySetPropertyMetadata")); - } - // verify the required parameter 'propertyTypeId' is set - if (propertyTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'propertyTypeId' when calling updateEntitySetPropertyMetadata", - new ApiException(400, "Missing the required parameter 'propertyTypeId' when calling updateEntitySetPropertyMetadata")); - } - // verify the required parameter 'metadataUpdate' is set - if (metadataUpdate == null) { - VolleyError error = new VolleyError("Missing the required parameter 'metadataUpdate' when calling updateEntitySetPropertyMetadata", - new ApiException(400, "Missing the required parameter 'metadataUpdate' when calling updateEntitySetPropertyMetadata")); - } - - // create path and map variables - String path = "/datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/".replaceAll("\\{" + "entitySetId" + "\\}", apiInvoker.escapeString(entitySetId.toString())).replaceAll("\\{" + "propertyTypeId" + "\\}", apiInvoker.escapeString(propertyTypeId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - String[] contentTypes = { - "application/json" - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - String localVarResponse = apiInvoker.invokeAPI (basePath, path, "POST", queryParams, postBody, headerParams, formParams, contentType, authNames); - if (localVarResponse != null) { - return ; - } else { - return ; - } - } catch (ApiException ex) { - throw ex; - } catch (InterruptedException ex) { - throw ex; - } catch (ExecutionException ex) { - if (ex.getCause() instanceof VolleyError) { - VolleyError volleyError = (VolleyError)ex.getCause(); - if (volleyError.networkResponse != null) { - throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage()); - } - } - throw ex; - } catch (TimeoutException ex) { - throw ex; - } - } - - /** - * Updates the property type metadata for the given entity set. - * - * @param entitySetId * @param propertyTypeId * @param metadataUpdate - */ - public void updateEntitySetPropertyMetadata (UUID entitySetId, UUID propertyTypeId, MetadataUpdate metadataUpdate, final Response.Listener responseListener, final Response.ErrorListener errorListener) { - Object postBody = metadataUpdate; - - // verify the required parameter 'entitySetId' is set - if (entitySetId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'entitySetId' when calling updateEntitySetPropertyMetadata", - new ApiException(400, "Missing the required parameter 'entitySetId' when calling updateEntitySetPropertyMetadata")); - } - // verify the required parameter 'propertyTypeId' is set - if (propertyTypeId == null) { - VolleyError error = new VolleyError("Missing the required parameter 'propertyTypeId' when calling updateEntitySetPropertyMetadata", - new ApiException(400, "Missing the required parameter 'propertyTypeId' when calling updateEntitySetPropertyMetadata")); - } - // verify the required parameter 'metadataUpdate' is set - if (metadataUpdate == null) { - VolleyError error = new VolleyError("Missing the required parameter 'metadataUpdate' when calling updateEntitySetPropertyMetadata", - new ApiException(400, "Missing the required parameter 'metadataUpdate' when calling updateEntitySetPropertyMetadata")); - } - - // create path and map variables - String path = "/datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/".replaceAll("\\{format\\}","json").replaceAll("\\{" + "entitySetId" + "\\}", apiInvoker.escapeString(entitySetId.toString())).replaceAll("\\{" + "propertyTypeId" + "\\}", apiInvoker.escapeString(propertyTypeId.toString())); - - // query params - List queryParams = new ArrayList(); - // header params - Map headerParams = new HashMap(); - // form params - Map formParams = new HashMap(); - - - - String[] contentTypes = { - "application/json" - }; - String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; - - if (contentType.startsWith("multipart/form-data")) { - // file uploading - MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); - - - HttpEntity httpEntity = localVarBuilder.build(); - postBody = httpEntity; - } else { - // normal form params - } - - String[] authNames = new String[] { "http_auth", "openlattice_auth" }; - - try { - apiInvoker.invokeAPI(basePath, path, "POST", queryParams, postBody, headerParams, formParams, contentType, authNames, - new Response.Listener() { - @Override - public void onResponse(String localVarResponse) { - responseListener.onResponse(localVarResponse); - } - }, new Response.ErrorListener() { - @Override - public void onErrorResponse(VolleyError error) { - errorListener.onErrorResponse(error); - } - }); - } catch (ApiException ex) { - errorListener.onErrorResponse(new VolleyError(ex)); - } - } - /** * Updates the EntityType definition for the given EntityType UUID with the given metadata. * * @param entityTypeId diff --git a/go/README.md b/go/README.md index bd9c815..bf671e2 100644 --- a/go/README.md +++ b/go/README.md @@ -85,27 +85,21 @@ Class | Method | HTTP request | Description *DatasetApi* | [**UpdateExternalDatabaseColumn**](docs/DatasetApi.md#updateexternaldatabasecolumn) | **Patch** /datastore/organization-database/{organizationId}/{tableName}/{columnName}/external-database-column | Updates an OrganizationExternalDatabaseTableColumn object's fields that are included within the given metadata. *DatasetApi* | [**UpdateExternalDatabaseTable**](docs/DatasetApi.md#updateexternaldatabasetable) | **Patch** /datastore/organization-database/{organizationId}/{tableName}/external-database-table | Updates an OrganizationExternalDatabaseTable object's fields that are included within the given metadata. *EdmApi* | [**AddDstEntityTypeToAssociationType**](docs/EdmApi.md#adddstentitytypetoassociationtype) | **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* | [**AddEntitySetsToLinkingEntitySet**](docs/EdmApi.md#addentitysetstolinkingentityset) | **Post** /datastore/entity-sets/linking/{linkingEntitySetId} | Adds the entity sets as linked entity sets to the linking entity set -*EdmApi* | [**AddEntitySetsToLinkingEntitySets**](docs/EdmApi.md#addentitysetstolinkingentitysets) | **Put** /datastore/entity-sets/linking/ | Adds the entity sets as linked entity sets to the linking entity sets *EdmApi* | [**AddPrimaryKeyToEntityType**](docs/EdmApi.md#addprimarykeytoentitytype) | **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* | [**AddPropertyTypeToEntityType**](docs/EdmApi.md#addpropertytypetoentitytype) | **Put** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. *EdmApi* | [**AddSrcEntityTypeToAssociationType**](docs/EdmApi.md#addsrcentitytypetoassociationtype) | **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* | [**CreateAssociationType**](docs/EdmApi.md#createassociationtype) | **Post** /datastore/edm/association/type/ | Creates a new AssociationType definition, if it doesn't exist. *EdmApi* | [**CreateEmptySchema**](docs/EdmApi.md#createemptyschema) | **Put** /datastore/edm/schema/{namespace}/{name} | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. -*EdmApi* | [**CreateEntitySets**](docs/EdmApi.md#createentitysets) | **Post** /datastore/entity-sets | Creates new EntitySet definitions if they don't exist. *EdmApi* | [**CreateEntityType**](docs/EdmApi.md#createentitytype) | **Post** /datastore/edm/entity/type/ | Creates a new EntityType definition, if it doesn't exist. *EdmApi* | [**CreatePropertyType**](docs/EdmApi.md#createpropertytype) | **Post** /datastore/edm/property/type/ | Creates a new PropertyType definition, if it doesn\"t exist. *EdmApi* | [**CreateSchemaIfNotExists**](docs/EdmApi.md#createschemaifnotexists) | **Post** /datastore/edm/schema | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. *EdmApi* | [**DeleteAssociationType**](docs/EdmApi.md#deleteassociationtype) | **Delete** /datastore/edm/association/type/{associationTypeId} | Deletes the AssociationType definition for the given AssociationType UUID. -*EdmApi* | [**DeleteEntitySet**](docs/EdmApi.md#deleteentityset) | **Delete** /datastore/entity-sets/all/{entitySetId} | Deletes the EntitySet definition for the given EntitySet UUID. *EdmApi* | [**DeleteEntityType**](docs/EdmApi.md#deleteentitytype) | **Delete** /datastore/edm/entity/type/{entityTypeId} | Deletes the EntityType definition for the given EntityType UUID. *EdmApi* | [**DeletePropertyType**](docs/EdmApi.md#deletepropertytype) | **Delete** /datastore/edm/property/type/{propertyTypeId} | Deletes the PropertyType definition for the given PropertyType UUID. *EdmApi* | [**ForceDeletePropertyType**](docs/EdmApi.md#forcedeletepropertytype) | **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* | [**ForceRemovePropertyTypeFromEntityType**](docs/EdmApi.md#forceremovepropertytypefromentitytype) | **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* | [**GetAllAssociationEntityTypes**](docs/EdmApi.md#getallassociationentitytypes) | **Get** /datastore/edm/association/type/ | Gets all association EntityType definitions. *EdmApi* | [**GetAllAvailableAssociationTypes**](docs/EdmApi.md#getallavailableassociationtypes) | **Get** /datastore/edm/association/type/{associationTypeId}/available | Get all available associations for the given AssociationType UUID. -*EdmApi* | [**GetAllEntitySetPropertyMetadata**](docs/EdmApi.md#getallentitysetpropertymetadata) | **Get** /datastore/entity-sets/all/{entitySetId}/metadata | Get all entity set property metadata. -*EdmApi* | [**GetAllEntitySets**](docs/EdmApi.md#getallentitysets) | **Get** /datastore/entity-sets | Get all EntitySet definitions. *EdmApi* | [**GetAllEntityTypePropertyMetadata**](docs/EdmApi.md#getallentitytypepropertymetadata) | **Get** /datastore/edm/entity/type/{entityTypeId}/property/type | Get all EntityType propertyType metadata *EdmApi* | [**GetAllEntityTypes**](docs/EdmApi.md#getallentitytypes) | **Get** /datastore/edm/entity/type/ | Gets all EntityType definitions. *EdmApi* | [**GetAllPropertyTypes**](docs/EdmApi.md#getallpropertytypes) | **Get** /datastore/edm/property/type/ | Gets all PropertyType definitions. @@ -115,32 +109,22 @@ Class | Method | HTTP request | Description *EdmApi* | [**GetAssociationTypeDetails**](docs/EdmApi.md#getassociationtypedetails) | **Get** /datastore/edm/association/type/{associationTypeId}/detailed | Get details about the AssociationType for the given AssociationType UUID. *EdmApi* | [**GetEntityDataModel**](docs/EdmApi.md#getentitydatamodel) | **Get** /datastore/edm/ | Gets the entity data model, including namespaces, schemas, entity types, association types, and property types. *EdmApi* | [**GetEntityDataModelDiff**](docs/EdmApi.md#getentitydatamodeldiff) | **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* | [**GetEntitySet**](docs/EdmApi.md#getentityset) | **Get** /datastore/entity-sets/all/{entitySetId} | Get the EntitySet definition for the given EntitySet UUID. -*EdmApi* | [**GetEntitySetId**](docs/EdmApi.md#getentitysetid) | **Get** /datastore/entity-sets/ids/{entitySetName} | Gets the EntitySet UUID for the given EntitySet name. -*EdmApi* | [**GetEntitySetIds**](docs/EdmApi.md#getentitysetids) | **Post** /datastore/entity-sets/ids/ | Get IDs for entity sets given their names. -*EdmApi* | [**GetEntitySetPropertyMetadata**](docs/EdmApi.md#getentitysetpropertymetadata) | **Get** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Get specified property type metadata for an entity set. *EdmApi* | [**GetEntityType**](docs/EdmApi.md#getentitytype) | **Get** /datastore/edm/entity/type/{entityTypeId} | Gets the EntityType definition for the given EntityType UUID. *EdmApi* | [**GetEntityTypeHierarchy**](docs/EdmApi.md#getentitytypehierarchy) | **Patch** /datastore/edm/entity/type/{entityTypeId}/hierarchy | Get the EntityType hierarchy for the given EntityType UUID. *EdmApi* | [**GetEntityTypeId**](docs/EdmApi.md#getentitytypeid) | **Get** /datastore/edm/ids/entity/type/{namespace}/{name} | Gets the EntityType UUID for the given EntityType FQN. *EdmApi* | [**GetEntityTypePropertyMetadata**](docs/EdmApi.md#getentitytypepropertymetadata) | **Get** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Get EntityType propertyType metadata -*EdmApi* | [**GetPropertyMetadataForEntitySets**](docs/EdmApi.md#getpropertymetadataforentitysets) | **Post** /datastore/entity-sets/all/metadata | Get property metadata for entity sets. *EdmApi* | [**GetPropertyType**](docs/EdmApi.md#getpropertytype) | **Get** /datastore/edm/property/type/{propertyTypeId} | Gets the PropertyType definition for the given PropertyType UUID. *EdmApi* | [**GetPropertyTypeId**](docs/EdmApi.md#getpropertytypeid) | **Get** /datastore/edm/ids/property/type/{namespace}/{name} | Gets the PropertyType UUID for the given PropertyType FQN. -*EdmApi* | [**GetPropertyTypesForEntitySet**](docs/EdmApi.md#getpropertytypesforentityset) | **Get** /datastore/entity-sets/all/{entitySetId}/properties | Get all Property Types for entity set *EdmApi* | [**GetPropertyUsageSummary**](docs/EdmApi.md#getpropertyusagesummary) | **Get** /datastore/edm/summary/{propertyTypeId} | Get Property Usage Summary for property with given ID. *EdmApi* | [**GetSchemaContents**](docs/EdmApi.md#getschemacontents) | **Get** /datastore/edm/schema/{namespace}/{name} | Gets the schema contents for a corresponding namespace and name. *EdmApi* | [**GetSchemas**](docs/EdmApi.md#getschemas) | **Get** /datastore/edm/schema | Gets all schemas. *EdmApi* | [**GetSchemasInNamespace**](docs/EdmApi.md#getschemasinnamespace) | **Get** /datastore/edm/schema/{namespace} | Gets all schemas associated with a given namespace and accessible by the caller. *EdmApi* | [**RemoveDstEntityTypeFromAssociationType**](docs/EdmApi.md#removedstentitytypefromassociationtype) | **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* | [**RemoveEntitySetsFromLinkingEntitySet**](docs/EdmApi.md#removeentitysetsfromlinkingentityset) | **Delete** /datastore/entity-sets/linking/{linkingEntitySetId} | Removes/unlinks the linked entity sets from the linking entity set -*EdmApi* | [**RemoveEntitySetsFromLinkingEntitySets**](docs/EdmApi.md#removeentitysetsfromlinkingentitysets) | **Delete** /datastore/entity-sets/linking/ | Removes/unlinks the linked entity sets from the linking entity set *EdmApi* | [**RemovePrimaryKeyFromEntityType**](docs/EdmApi.md#removeprimarykeyfromentitytype) | **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* | [**RemovePropertyTypeFromEntityType**](docs/EdmApi.md#removepropertytypefromentitytype) | **Delete** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. *EdmApi* | [**RemoveSrcEntityTypeFromAssociationType**](docs/EdmApi.md#removesrcentitytypefromassociationtype) | **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* | [**ReorderPropertyTypesInEntityType**](docs/EdmApi.md#reorderpropertytypesinentitytype) | **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* | [**UpdateEntityDataModel**](docs/EdmApi.md#updateentitydatamodel) | **Patch** /datastore/edm/ | Updates the entity data model, including schemas, entity types, association types, and property types. -*EdmApi* | [**UpdateEntitySetMetaData**](docs/EdmApi.md#updateentitysetmetadata) | **Patch** /datastore/entity-sets/all/{entitySetId}/metadata/ | Updates the EntitySet definition for the given EntitySet UUID with the given metadata. -*EdmApi* | [**UpdateEntitySetPropertyMetadata**](docs/EdmApi.md#updateentitysetpropertymetadata) | **Post** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Updates the property type metadata for the given entity set. *EdmApi* | [**UpdateEntityTypeMetaData**](docs/EdmApi.md#updateentitytypemetadata) | **Patch** /datastore/edm/entity/type/{entityTypeId} | Updates the EntityType definition for the given EntityType UUID with the given metadata. *EdmApi* | [**UpdateEntityTypePropertyMetadata**](docs/EdmApi.md#updateentitytypepropertymetadata) | **Post** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Update EntityType Property metadata *EdmApi* | [**UpdatePropertyTypeMetaData**](docs/EdmApi.md#updatepropertytypemetadata) | **Patch** /datastore/edm/property/type/{propertyTypeId} | Updates the PropertyType definition for the given PropertyType UUID with the given metadata. diff --git a/go/api/openapi.yaml b/go/api/openapi.yaml index 866676a..bda3a26 100644 --- a/go/api/openapi.yaml +++ b/go/api/openapi.yaml @@ -1174,7 +1174,6 @@ paths: summary: Get all EntitySet definitions. tags: - entitySets - - edm post: operationId: createEntitySets requestBody: @@ -1194,7 +1193,6 @@ paths: summary: Creates new EntitySet definitions if they don't exist. tags: - entitySets - - edm /datastore/entity-sets/ids/: post: operationId: getEntitySetIds @@ -1221,7 +1219,6 @@ paths: summary: Get IDs for entity sets given their names. tags: - entitySets - - edm /datastore/entity-sets/ids/{entitySetName}: get: operationId: getEntitySetId @@ -1247,7 +1244,6 @@ paths: summary: Gets the EntitySet UUID for the given EntitySet name. tags: - entitySets - - edm /datastore/entity-sets/all/{entitySetId}: delete: operationId: deleteEntitySet @@ -1269,7 +1265,6 @@ paths: summary: Deletes the EntitySet definition for the given EntitySet UUID. tags: - entitySets - - edm get: operationId: getEntitySet parameters: @@ -1294,7 +1289,6 @@ paths: summary: Get the EntitySet definition for the given EntitySet UUID. tags: - entitySets - - edm /datastore/entity-sets/all/metadata: post: operationId: getPropertyMetadataForEntitySets @@ -1322,7 +1316,6 @@ paths: summary: Get property metadata for entity sets. tags: - entitySets - - edm /datastore/entity-sets/all/{entitySetId}/metadata: get: operationId: getAllEntitySetPropertyMetadata @@ -1350,7 +1343,6 @@ paths: summary: Get all entity set property metadata. tags: - entitySets - - edm /datastore/entity-sets/all/{entitySetId}/properties: get: operationId: getPropertyTypesForEntitySet @@ -1378,7 +1370,6 @@ paths: summary: Get all Property Types for entity set tags: - entitySets - - edm /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/: get: operationId: getEntitySetPropertyMetadata @@ -1412,7 +1403,6 @@ paths: summary: Get specified property type metadata for an entity set. tags: - entitySets - - edm post: operationId: updateEntitySetPropertyMetadata parameters: @@ -1447,7 +1437,6 @@ paths: summary: Updates the property type metadata for the given entity set. tags: - entitySets - - edm /datastore/entity-sets/all/{entitySetId}/metadata/: patch: operationId: updateEntitySetMetaData @@ -1480,7 +1469,6 @@ paths: the given metadata. tags: - entitySets - - edm /datastore/entity-sets/linking/{linkingEntitySetId}: delete: operationId: removeEntitySetsFromLinkingEntitySet @@ -1513,7 +1501,6 @@ paths: summary: Removes/unlinks the linked entity sets from the linking entity set tags: - entitySets - - edm post: operationId: addEntitySetsToLinkingEntitySet parameters: @@ -1546,7 +1533,6 @@ paths: summary: Adds the entity sets as linked entity sets to the linking entity set tags: - entitySets - - edm /datastore/entity-sets/linking/: delete: operationId: removeEntitySetsFromLinkingEntitySets @@ -1583,7 +1569,6 @@ paths: summary: Removes/unlinks the linked entity sets from the linking entity set tags: - entitySets - - edm put: operationId: addEntitySetsToLinkingEntitySets parameters: @@ -1618,7 +1603,6 @@ paths: summary: Adds the entity sets as linked entity sets to the linking entity sets tags: - entitySets - - edm /datastore/organization-database/{organizationId}/external-database-table: delete: operationId: deleteExternalDatabaseTables diff --git a/go/api_edm.go b/go/api_edm.go index e355b3e..284b960 100644 --- a/go/api_edm.go +++ b/go/api_edm.go @@ -108,39 +108,33 @@ func (a *EdmApiService) AddDstEntityTypeToAssociationType(ctx _context.Context, return localVarHTTPResponse, nil } -// AddEntitySetsToLinkingEntitySetOpts Optional parameters for the method 'AddEntitySetsToLinkingEntitySet' -type AddEntitySetsToLinkingEntitySetOpts struct { - RequestBody optional.Interface -} - /* -AddEntitySetsToLinkingEntitySet Adds the entity sets as linked entity sets to the linking entity set +AddPrimaryKeyToEntityType Adds a primary key with a given ID to an entity type with a given ID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param linkingEntitySetId - * @param optional nil or *AddEntitySetsToLinkingEntitySetOpts - Optional Parameters: - * @param "RequestBody" (optional.Interface of []string) - -@return int32 + * @param entityTypeId + * @param propertyTypeId */ -func (a *EdmApiService) AddEntitySetsToLinkingEntitySet(ctx _context.Context, linkingEntitySetId string, localVarOptionals *AddEntitySetsToLinkingEntitySetOpts) (int32, *_nethttp.Response, error) { +func (a *EdmApiService) AddPrimaryKeyToEntityType(ctx _context.Context, entityTypeId string, propertyTypeId string) (*_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = _nethttp.MethodPut localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue int32 ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/entity-sets/linking/{linkingEntitySetId}" - localVarPath = strings.Replace(localVarPath, "{"+"linkingEntitySetId"+"}", _neturl.PathEscape(parameterToString(linkingEntitySetId, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId}" + localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) + + localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -149,22 +143,13 @@ func (a *EdmApiService) AddEntitySetsToLinkingEntitySet(ctx _context.Context, li } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - if localVarOptionals != nil && localVarOptionals.RequestBody.IsSet() { - localVarOptionalRequestBody, localVarOptionalRequestBodyok := localVarOptionals.RequestBody.Value().([]string) - if !localVarOptionalRequestBodyok { - return localVarReturnValue, nil, reportError("requestBody should be []string") - } - localVarPostBody = &localVarOptionalRequestBody - } - if ctx != nil { // API Key Authentication if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { @@ -179,18 +164,18 @@ func (a *EdmApiService) AddEntitySetsToLinkingEntitySet(ctx _context.Context, li } r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(r) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -198,48 +183,39 @@ func (a *EdmApiService) AddEntitySetsToLinkingEntitySet(ctx _context.Context, li body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } /* -AddEntitySetsToLinkingEntitySets Adds the entity sets as linked entity sets to the linking entity sets +AddPropertyTypeToEntityType Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param linkingEntitySetId - * @param requestBody -@return int32 + * @param entityTypeId + * @param propertyTypeId */ -func (a *EdmApiService) AddEntitySetsToLinkingEntitySets(ctx _context.Context, linkingEntitySetId string, requestBody map[string][]string) (int32, *_nethttp.Response, error) { +func (a *EdmApiService) AddPropertyTypeToEntityType(ctx _context.Context, entityTypeId string, propertyTypeId string) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPut localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue int32 ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/entity-sets/linking/" - localVarPath = strings.Replace(localVarPath, "{"+"linkingEntitySetId"+"}", _neturl.PathEscape(parameterToString(linkingEntitySetId, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}/{propertyTypeId}" + localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) + + localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -248,15 +224,13 @@ func (a *EdmApiService) AddEntitySetsToLinkingEntitySets(ctx _context.Context, l } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = &requestBody if ctx != nil { // API Key Authentication if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { @@ -271,18 +245,18 @@ func (a *EdmApiService) AddEntitySetsToLinkingEntitySets(ctx _context.Context, l } r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(r) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -290,28 +264,19 @@ func (a *EdmApiService) AddEntitySetsToLinkingEntitySets(ctx _context.Context, l body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } /* -AddPrimaryKeyToEntityType Adds a primary key with a given ID to an entity type with a given ID. +AddSrcEntityTypeToAssociationType Update the AssociationType src entity types for the given AssociationType UUID by adding the given EntityType UUID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param associationTypeId * @param entityTypeId - * @param propertyTypeId */ -func (a *EdmApiService) AddPrimaryKeyToEntityType(ctx _context.Context, entityTypeId string, propertyTypeId string) (*_nethttp.Response, error) { +func (a *EdmApiService) AddSrcEntityTypeToAssociationType(ctx _context.Context, associationTypeId string, entityTypeId string) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPut localVarPostBody interface{} @@ -321,10 +286,10 @@ func (a *EdmApiService) AddPrimaryKeyToEntityType(ctx _context.Context, entityTy ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId}" - localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/{associationTypeId}/src/{entityTypeId}" + localVarPath = strings.Replace(localVarPath, "{"+"associationTypeId"+"}", _neturl.PathEscape(parameterToString(associationTypeId, "")) , -1) - localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) + localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -387,14 +352,13 @@ func (a *EdmApiService) AddPrimaryKeyToEntityType(ctx _context.Context, entityTy } /* -AddPropertyTypeToEntityType Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. +CreateAssociationType Creates a new AssociationType definition, if it doesn't exist. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entityTypeId - * @param propertyTypeId + * @param associationType */ -func (a *EdmApiService) AddPropertyTypeToEntityType(ctx _context.Context, entityTypeId string, propertyTypeId string) (*_nethttp.Response, error) { +func (a *EdmApiService) CreateAssociationType(ctx _context.Context, associationType []AssociationType) (*_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -402,17 +366,13 @@ func (a *EdmApiService) AddPropertyTypeToEntityType(ctx _context.Context, entity ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}/{propertyTypeId}" - localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) - - localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) - + localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -428,18 +388,8 @@ func (a *EdmApiService) AddPropertyTypeToEntityType(ctx _context.Context, entity if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } + // body params + localVarPostBody = &associationType r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err @@ -468,12 +418,12 @@ func (a *EdmApiService) AddPropertyTypeToEntityType(ctx _context.Context, entity } /* -AddSrcEntityTypeToAssociationType Update the AssociationType src entity types for the given AssociationType UUID by adding the given EntityType UUID. +CreateEmptySchema Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param associationTypeId - * @param entityTypeId + * @param namespace + * @param name */ -func (a *EdmApiService) AddSrcEntityTypeToAssociationType(ctx _context.Context, associationTypeId string, entityTypeId string) (*_nethttp.Response, error) { +func (a *EdmApiService) CreateEmptySchema(ctx _context.Context, namespace string, name string) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPut localVarPostBody interface{} @@ -483,10 +433,10 @@ func (a *EdmApiService) AddSrcEntityTypeToAssociationType(ctx _context.Context, ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/{associationTypeId}/src/{entityTypeId}" - localVarPath = strings.Replace(localVarPath, "{"+"associationTypeId"+"}", _neturl.PathEscape(parameterToString(associationTypeId, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/schema/{namespace}/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", _neturl.PathEscape(parameterToString(namespace, "")) , -1) - localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", _neturl.PathEscape(parameterToString(name, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -549,11 +499,11 @@ func (a *EdmApiService) AddSrcEntityTypeToAssociationType(ctx _context.Context, } /* -CreateAssociationType Creates a new AssociationType definition, if it doesn't exist. +CreateEntityType Creates a new EntityType definition, if it doesn't exist. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param associationType + * @param entityType */ -func (a *EdmApiService) CreateAssociationType(ctx _context.Context, associationType []AssociationType) (*_nethttp.Response, error) { +func (a *EdmApiService) CreateEntityType(ctx _context.Context, entityType EntityType) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} @@ -563,7 +513,7 @@ func (a *EdmApiService) CreateAssociationType(ctx _context.Context, associationT ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/" + localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -586,7 +536,7 @@ func (a *EdmApiService) CreateAssociationType(ctx _context.Context, associationT localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = &associationType + localVarPostBody = &entityType r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err @@ -615,14 +565,13 @@ func (a *EdmApiService) CreateAssociationType(ctx _context.Context, associationT } /* -CreateEmptySchema Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. +CreatePropertyType Creates a new PropertyType definition, if it doesn\"t exist. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param namespace - * @param name + * @param propertyType */ -func (a *EdmApiService) CreateEmptySchema(ctx _context.Context, namespace string, name string) (*_nethttp.Response, error) { +func (a *EdmApiService) CreatePropertyType(ctx _context.Context, propertyType PropertyType) (*_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -630,17 +579,13 @@ func (a *EdmApiService) CreateEmptySchema(ctx _context.Context, namespace string ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/schema/{namespace}/{name}" - localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", _neturl.PathEscape(parameterToString(namespace, "")) , -1) - - localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", _neturl.PathEscape(parameterToString(name, "")) , -1) - + localVarPath := a.client.cfg.BasePath + "/datastore/edm/property/type/" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -656,6 +601,8 @@ func (a *EdmApiService) CreateEmptySchema(ctx _context.Context, namespace string if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = &propertyType if ctx != nil { // API Key Authentication if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { @@ -696,11 +643,11 @@ func (a *EdmApiService) CreateEmptySchema(ctx _context.Context, namespace string } /* -CreateEntitySets Creates new EntitySet definitions if they don't exist. +CreateSchemaIfNotExists Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entitySet + * @param schema */ -func (a *EdmApiService) CreateEntitySets(ctx _context.Context, entitySet []EntitySet) (*_nethttp.Response, error) { +func (a *EdmApiService) CreateSchemaIfNotExists(ctx _context.Context, schema Schema) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} @@ -710,7 +657,7 @@ func (a *EdmApiService) CreateEntitySets(ctx _context.Context, entitySet []Entit ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/entity-sets" + localVarPath := a.client.cfg.BasePath + "/datastore/edm/schema" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -733,7 +680,7 @@ func (a *EdmApiService) CreateEntitySets(ctx _context.Context, entitySet []Entit localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = &entitySet + localVarPostBody = &schema if ctx != nil { // API Key Authentication if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { @@ -774,13 +721,13 @@ func (a *EdmApiService) CreateEntitySets(ctx _context.Context, entitySet []Entit } /* -CreateEntityType Creates a new EntityType definition, if it doesn't exist. +DeleteAssociationType Deletes the AssociationType definition for the given AssociationType UUID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entityType + * @param associationTypeId */ -func (a *EdmApiService) CreateEntityType(ctx _context.Context, entityType EntityType) (*_nethttp.Response, error) { +func (a *EdmApiService) DeleteAssociationType(ctx _context.Context, associationTypeId string) (*_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = _nethttp.MethodDelete localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -788,13 +735,15 @@ func (a *EdmApiService) CreateEntityType(ctx _context.Context, entityType Entity ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/" + localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/{associationTypeId}" + localVarPath = strings.Replace(localVarPath, "{"+"associationTypeId"+"}", _neturl.PathEscape(parameterToString(associationTypeId, "")) , -1) + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -810,8 +759,6 @@ func (a *EdmApiService) CreateEntityType(ctx _context.Context, entityType Entity if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = &entityType r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err @@ -840,13 +787,13 @@ func (a *EdmApiService) CreateEntityType(ctx _context.Context, entityType Entity } /* -CreatePropertyType Creates a new PropertyType definition, if it doesn\"t exist. +DeleteEntityType Deletes the EntityType definition for the given EntityType UUID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param propertyType + * @param entityTypeId */ -func (a *EdmApiService) CreatePropertyType(ctx _context.Context, propertyType PropertyType) (*_nethttp.Response, error) { +func (a *EdmApiService) DeleteEntityType(ctx _context.Context, entityTypeId string) (*_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = _nethttp.MethodDelete localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -854,13 +801,15 @@ func (a *EdmApiService) CreatePropertyType(ctx _context.Context, propertyType Pr ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/property/type/" + localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}" + localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -876,20 +825,6 @@ func (a *EdmApiService) CreatePropertyType(ctx _context.Context, propertyType Pr if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = &propertyType - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err @@ -918,13 +853,13 @@ func (a *EdmApiService) CreatePropertyType(ctx _context.Context, propertyType Pr } /* -CreateSchemaIfNotExists Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. +DeletePropertyType Deletes the PropertyType definition for the given PropertyType UUID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param schema + * @param propertyTypeId */ -func (a *EdmApiService) CreateSchemaIfNotExists(ctx _context.Context, schema Schema) (*_nethttp.Response, error) { +func (a *EdmApiService) DeletePropertyType(ctx _context.Context, propertyTypeId string) (*_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = _nethttp.MethodDelete localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -932,13 +867,15 @@ func (a *EdmApiService) CreateSchemaIfNotExists(ctx _context.Context, schema Sch ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/schema" + localVarPath := a.client.cfg.BasePath + "/datastore/edm/property/type/{propertyTypeId}" + localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -954,8 +891,6 @@ func (a *EdmApiService) CreateSchemaIfNotExists(ctx _context.Context, schema Sch if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = &schema if ctx != nil { // API Key Authentication if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { @@ -996,11 +931,11 @@ func (a *EdmApiService) CreateSchemaIfNotExists(ctx _context.Context, schema Sch } /* -DeleteAssociationType Deletes the AssociationType definition for the given AssociationType UUID. +ForceDeletePropertyType Deletes the PropertyType definition for the given PropertyType UUID regardless of whether or not there is data associated with it. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param associationTypeId + * @param propertyTypeId */ -func (a *EdmApiService) DeleteAssociationType(ctx _context.Context, associationTypeId string) (*_nethttp.Response, error) { +func (a *EdmApiService) ForceDeletePropertyType(ctx _context.Context, propertyTypeId string) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete localVarPostBody interface{} @@ -1010,8 +945,8 @@ func (a *EdmApiService) DeleteAssociationType(ctx _context.Context, associationT ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/{associationTypeId}" - localVarPath = strings.Replace(localVarPath, "{"+"associationTypeId"+"}", _neturl.PathEscape(parameterToString(associationTypeId, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/property/type/{propertyTypeId}/force" + localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -1034,6 +969,18 @@ func (a *EdmApiService) DeleteAssociationType(ctx _context.Context, associationT if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["Authorization"] = key + } + } r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err @@ -1062,11 +1009,12 @@ func (a *EdmApiService) DeleteAssociationType(ctx _context.Context, associationT } /* -DeleteEntitySet Deletes the EntitySet definition for the given EntitySet UUID. +ForceRemovePropertyTypeFromEntityType 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 ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entitySetId + * @param entityTypeId + * @param propertyTypeId */ -func (a *EdmApiService) DeleteEntitySet(ctx _context.Context, entitySetId string) (*_nethttp.Response, error) { +func (a *EdmApiService) ForceRemovePropertyTypeFromEntityType(ctx _context.Context, entityTypeId string, propertyTypeId string) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete localVarPostBody interface{} @@ -1076,8 +1024,10 @@ func (a *EdmApiService) DeleteEntitySet(ctx _context.Context, entitySetId string ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/entity-sets/all/{entitySetId}" - localVarPath = strings.Replace(localVarPath, "{"+"entitySetId"+"}", _neturl.PathEscape(parameterToString(entitySetId, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}/{propertyTypeId}/force" + localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) + + localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -1140,1289 +1090,22 @@ func (a *EdmApiService) DeleteEntitySet(ctx _context.Context, entitySetId string } /* -DeleteEntityType Deletes the EntityType definition for the given EntityType UUID. +GetAllAssociationEntityTypes Gets all association EntityType definitions. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entityTypeId +@return []AssociationType */ -func (a *EdmApiService) DeleteEntityType(ctx _context.Context, entityTypeId string) (*_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodDelete - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}" - localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -/* -DeletePropertyType Deletes the PropertyType definition for the given PropertyType UUID. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param propertyTypeId -*/ -func (a *EdmApiService) DeletePropertyType(ctx _context.Context, propertyTypeId string) (*_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodDelete - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/property/type/{propertyTypeId}" - localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -/* -ForceDeletePropertyType Deletes the PropertyType definition for the given PropertyType UUID regardless of whether or not there is data associated with it. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param propertyTypeId -*/ -func (a *EdmApiService) ForceDeletePropertyType(ctx _context.Context, propertyTypeId string) (*_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodDelete - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/property/type/{propertyTypeId}/force" - localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -/* -ForceRemovePropertyTypeFromEntityType 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 ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entityTypeId - * @param propertyTypeId -*/ -func (a *EdmApiService) ForceRemovePropertyTypeFromEntityType(ctx _context.Context, entityTypeId string, propertyTypeId string) (*_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodDelete - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}/{propertyTypeId}/force" - localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) - - localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -/* -GetAllAssociationEntityTypes Gets all association EntityType definitions. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return []AssociationType -*/ -func (a *EdmApiService) GetAllAssociationEntityTypes(ctx _context.Context) ([]AssociationType, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue []AssociationType - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/" - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -/* -GetAllAvailableAssociationTypes Get all available associations for the given AssociationType UUID. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param associationTypeId -@return []AssociationType -*/ -func (a *EdmApiService) GetAllAvailableAssociationTypes(ctx _context.Context, associationTypeId string) ([]AssociationType, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue []AssociationType - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/{associationTypeId}/available" - localVarPath = strings.Replace(localVarPath, "{"+"associationTypeId"+"}", _neturl.PathEscape(parameterToString(associationTypeId, "")) , -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -/* -GetAllEntitySetPropertyMetadata Get all entity set property metadata. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entitySetId -@return map[string]EntitySetPropertyMetaData -*/ -func (a *EdmApiService) GetAllEntitySetPropertyMetadata(ctx _context.Context, entitySetId string) (map[string]EntitySetPropertyMetaData, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue map[string]EntitySetPropertyMetaData - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/entity-sets/all/{entitySetId}/metadata" - localVarPath = strings.Replace(localVarPath, "{"+"entitySetId"+"}", _neturl.PathEscape(parameterToString(entitySetId, "")) , -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -/* -GetAllEntitySets Get all EntitySet definitions. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return []EntitySet -*/ -func (a *EdmApiService) GetAllEntitySets(ctx _context.Context) ([]EntitySet, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue []EntitySet - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/entity-sets" - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -/* -GetAllEntityTypePropertyMetadata Get all EntityType propertyType metadata - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entityTypeId -@return map[string]EntityTypePropertyMetadata -*/ -func (a *EdmApiService) GetAllEntityTypePropertyMetadata(ctx _context.Context, entityTypeId string) (map[string]EntityTypePropertyMetadata, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue map[string]EntityTypePropertyMetadata - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}/property/type" - localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -/* -GetAllEntityTypes Gets all EntityType definitions. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return []EntityType -*/ -func (a *EdmApiService) GetAllEntityTypes(ctx _context.Context) ([]EntityType, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue []EntityType - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/" - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -/* -GetAllPropertyTypes Gets all PropertyType definitions. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return []PropertyType -*/ -func (a *EdmApiService) GetAllPropertyTypes(ctx _context.Context) ([]PropertyType, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue []PropertyType - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/property/type/" - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -/* -GetAllPropertyTypesInNamespace Gets all PropertyType definitions under the given namespace. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param namespace -@return []PropertyType -*/ -func (a *EdmApiService) GetAllPropertyTypesInNamespace(ctx _context.Context, namespace string) ([]PropertyType, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue []PropertyType - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/property/type/namespace/{namespace}" - localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", _neturl.PathEscape(parameterToString(namespace, "")) , -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -/* -GetAllPropertyUsageSummaries Get Property Usage Summary for all properties. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return map[string]PropertyUsageSummary -*/ -func (a *EdmApiService) GetAllPropertyUsageSummaries(ctx _context.Context) (map[string]PropertyUsageSummary, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue map[string]PropertyUsageSummary - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/summary" - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -/* -GetAssociationType Get the AssociationType definition for the given AssociationType UUID. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param associationTypeId -@return AssociationType -*/ -func (a *EdmApiService) GetAssociationType(ctx _context.Context, associationTypeId string) (AssociationType, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AssociationType - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/{associationTypeId}" - localVarPath = strings.Replace(localVarPath, "{"+"associationTypeId"+"}", _neturl.PathEscape(parameterToString(associationTypeId, "")) , -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -/* -GetAssociationTypeDetails Get details about the AssociationType for the given AssociationType UUID. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param associationTypeId -@return AssociationType -*/ -func (a *EdmApiService) GetAssociationTypeDetails(ctx _context.Context, associationTypeId string) (AssociationType, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AssociationType - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/{associationTypeId}/detailed" - localVarPath = strings.Replace(localVarPath, "{"+"associationTypeId"+"}", _neturl.PathEscape(parameterToString(associationTypeId, "")) , -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -/* -GetEntityDataModel Gets the entity data model, including namespaces, schemas, entity types, association types, and property types. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return Edm -*/ -func (a *EdmApiService) GetEntityDataModel(ctx _context.Context) (Edm, *_nethttp.Response, error) { +func (a *EdmApiService) GetAllAssociationEntityTypes(ctx _context.Context) ([]AssociationType, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue Edm + localVarReturnValue []AssociationType ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/" + localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -2444,83 +1127,6 @@ func (a *EdmApiService) GetEntityDataModel(ctx _context.Context) (Edm, *_nethttp if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -/* -GetEntityDataModelDiff 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 ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param edMdiff -@return EdMdiff -*/ -func (a *EdmApiService) GetEntityDataModelDiff(ctx _context.Context, edMdiff EdMdiff) (EdMdiff, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPost - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue EdMdiff - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/diff/" - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = &edMdiff if ctx != nil { // API Key Authentication if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { @@ -2570,24 +1176,24 @@ func (a *EdmApiService) GetEntityDataModelDiff(ctx _context.Context, edMdiff EdM } /* -GetEntitySet Get the EntitySet definition for the given EntitySet UUID. +GetAllAvailableAssociationTypes Get all available associations for the given AssociationType UUID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entitySetId -@return EntitySet + * @param associationTypeId +@return []AssociationType */ -func (a *EdmApiService) GetEntitySet(ctx _context.Context, entitySetId string) (EntitySet, *_nethttp.Response, error) { +func (a *EdmApiService) GetAllAvailableAssociationTypes(ctx _context.Context, associationTypeId string) ([]AssociationType, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue EntitySet + localVarReturnValue []AssociationType ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/entity-sets/all/{entitySetId}" - localVarPath = strings.Replace(localVarPath, "{"+"entitySetId"+"}", _neturl.PathEscape(parameterToString(entitySetId, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/{associationTypeId}/available" + localVarPath = strings.Replace(localVarPath, "{"+"associationTypeId"+"}", _neturl.PathEscape(parameterToString(associationTypeId, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -2659,24 +1265,24 @@ func (a *EdmApiService) GetEntitySet(ctx _context.Context, entitySetId string) ( } /* -GetEntitySetId Gets the EntitySet UUID for the given EntitySet name. +GetAllEntityTypePropertyMetadata Get all EntityType propertyType metadata * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entitySetName -@return string + * @param entityTypeId +@return map[string]EntityTypePropertyMetadata */ -func (a *EdmApiService) GetEntitySetId(ctx _context.Context, entitySetName string) (string, *_nethttp.Response, error) { +func (a *EdmApiService) GetAllEntityTypePropertyMetadata(ctx _context.Context, entityTypeId string) (map[string]EntityTypePropertyMetadata, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue string + localVarReturnValue map[string]EntityTypePropertyMetadata ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/entity-sets/ids/{entitySetName}" - localVarPath = strings.Replace(localVarPath, "{"+"entitySetName"+"}", _neturl.PathEscape(parameterToString(entitySetName, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}/property/type" + localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -2747,36 +1353,29 @@ func (a *EdmApiService) GetEntitySetId(ctx _context.Context, entitySetName strin return localVarReturnValue, localVarHTTPResponse, nil } -// GetEntitySetIdsOpts Optional parameters for the method 'GetEntitySetIds' -type GetEntitySetIdsOpts struct { - RequestBody optional.Interface -} - /* -GetEntitySetIds Get IDs for entity sets given their names. +GetAllEntityTypes Gets all EntityType definitions. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param optional nil or *GetEntitySetIdsOpts - Optional Parameters: - * @param "RequestBody" (optional.Interface of []string) - -@return map[string]string +@return []EntityType */ -func (a *EdmApiService) GetEntitySetIds(ctx _context.Context, localVarOptionals *GetEntitySetIdsOpts) (map[string]string, *_nethttp.Response, error) { +func (a *EdmApiService) GetAllEntityTypes(ctx _context.Context) ([]EntityType, *_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue map[string]string + localVarReturnValue []EntityType ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/entity-sets/ids/" + localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -2792,15 +1391,6 @@ func (a *EdmApiService) GetEntitySetIds(ctx _context.Context, localVarOptionals if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - if localVarOptionals != nil && localVarOptionals.RequestBody.IsSet() { - localVarOptionalRequestBody, localVarOptionalRequestBodyok := localVarOptionals.RequestBody.Value().([]string) - if !localVarOptionalRequestBodyok { - return localVarReturnValue, nil, reportError("requestBody should be []string") - } - localVarPostBody = &localVarOptionalRequestBody - } - if ctx != nil { // API Key Authentication if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { @@ -2850,28 +1440,22 @@ func (a *EdmApiService) GetEntitySetIds(ctx _context.Context, localVarOptionals } /* -GetEntitySetPropertyMetadata Get specified property type metadata for an entity set. +GetAllPropertyTypes Gets all PropertyType definitions. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entitySetId - * @param propertyTypeId -@return EntitySetPropertyMetaData +@return []PropertyType */ -func (a *EdmApiService) GetEntitySetPropertyMetadata(ctx _context.Context, entitySetId string, propertyTypeId string) (EntitySetPropertyMetaData, *_nethttp.Response, error) { +func (a *EdmApiService) GetAllPropertyTypes(ctx _context.Context) ([]PropertyType, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue EntitySetPropertyMetaData + localVarReturnValue []PropertyType ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/" - localVarPath = strings.Replace(localVarPath, "{"+"entitySetId"+"}", _neturl.PathEscape(parameterToString(entitySetId, "")) , -1) - - localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) - + localVarPath := a.client.cfg.BasePath + "/datastore/edm/property/type/" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -2942,24 +1526,24 @@ func (a *EdmApiService) GetEntitySetPropertyMetadata(ctx _context.Context, entit } /* -GetEntityType Gets the EntityType definition for the given EntityType UUID. +GetAllPropertyTypesInNamespace Gets all PropertyType definitions under the given namespace. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entityTypeId -@return EntityType + * @param namespace +@return []PropertyType */ -func (a *EdmApiService) GetEntityType(ctx _context.Context, entityTypeId string) (EntityType, *_nethttp.Response, error) { +func (a *EdmApiService) GetAllPropertyTypesInNamespace(ctx _context.Context, namespace string) ([]PropertyType, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue EntityType + localVarReturnValue []PropertyType ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}" - localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/property/type/namespace/{namespace}" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", _neturl.PathEscape(parameterToString(namespace, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -2982,6 +1566,18 @@ func (a *EdmApiService) GetEntityType(ctx _context.Context, entityTypeId string) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["Authorization"] = key + } + } r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err @@ -3019,23 +1615,22 @@ func (a *EdmApiService) GetEntityType(ctx _context.Context, entityTypeId string) } /* -GetEntityTypeHierarchy Get the EntityType hierarchy for the given EntityType UUID. +GetAllPropertyUsageSummaries Get Property Usage Summary for all properties. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entityTypeId +@return map[string]PropertyUsageSummary */ -func (a *EdmApiService) GetEntityTypeHierarchy(ctx _context.Context, entityTypeId string) (*_nethttp.Response, error) { +func (a *EdmApiService) GetAllPropertyUsageSummaries(ctx _context.Context) (map[string]PropertyUsageSummary, *_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte + localVarReturnValue map[string]PropertyUsageSummary ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}/hierarchy" - localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) - + localVarPath := a.client.cfg.BasePath + "/datastore/edm/summary" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -3050,7 +1645,7 @@ func (a *EdmApiService) GetEntityTypeHierarchy(ctx _context.Context, entityTypeI } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -3071,18 +1666,18 @@ func (a *EdmApiService) GetEntityTypeHierarchy(ctx _context.Context, entityTypeI } r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { - return nil, err + return localVarReturnValue, nil, err } localVarHTTPResponse, err := a.client.callAPI(r) if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() if err != nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -3090,34 +1685,40 @@ func (a *EdmApiService) GetEntityTypeHierarchy(ctx _context.Context, entityTypeI body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil } /* -GetEntityTypeId Gets the EntityType UUID for the given EntityType FQN. +GetAssociationType Get the AssociationType definition for the given AssociationType UUID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param namespace - * @param name -@return string + * @param associationTypeId +@return AssociationType */ -func (a *EdmApiService) GetEntityTypeId(ctx _context.Context, namespace string, name string) (string, *_nethttp.Response, error) { +func (a *EdmApiService) GetAssociationType(ctx _context.Context, associationTypeId string) (AssociationType, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue string + localVarReturnValue AssociationType ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/ids/entity/type/{namespace}/{name}" - localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", _neturl.PathEscape(parameterToString(namespace, "")) , -1) - - localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", _neturl.PathEscape(parameterToString(name, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/{associationTypeId}" + localVarPath = strings.Replace(localVarPath, "{"+"associationTypeId"+"}", _neturl.PathEscape(parameterToString(associationTypeId, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -3189,27 +1790,24 @@ func (a *EdmApiService) GetEntityTypeId(ctx _context.Context, namespace string, } /* -GetEntityTypePropertyMetadata Get EntityType propertyType metadata +GetAssociationTypeDetails Get details about the AssociationType for the given AssociationType UUID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entityTypeId - * @param propertyTypeId -@return EntityTypePropertyMetadata + * @param associationTypeId +@return AssociationType */ -func (a *EdmApiService) GetEntityTypePropertyMetadata(ctx _context.Context, entityTypeId string, propertyTypeId string) (EntityTypePropertyMetadata, *_nethttp.Response, error) { +func (a *EdmApiService) GetAssociationTypeDetails(ctx _context.Context, associationTypeId string) (AssociationType, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue EntityTypePropertyMetadata + localVarReturnValue AssociationType ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId}" - localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) - - localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/{associationTypeId}/detailed" + localVarPath = strings.Replace(localVarPath, "{"+"associationTypeId"+"}", _neturl.PathEscape(parameterToString(associationTypeId, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -3280,36 +1878,29 @@ func (a *EdmApiService) GetEntityTypePropertyMetadata(ctx _context.Context, enti return localVarReturnValue, localVarHTTPResponse, nil } -// GetPropertyMetadataForEntitySetsOpts Optional parameters for the method 'GetPropertyMetadataForEntitySets' -type GetPropertyMetadataForEntitySetsOpts struct { - RequestBody optional.Interface -} - /* -GetPropertyMetadataForEntitySets Get property metadata for entity sets. +GetEntityDataModel Gets the entity data model, including namespaces, schemas, entity types, association types, and property types. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param optional nil or *GetPropertyMetadataForEntitySetsOpts - Optional Parameters: - * @param "RequestBody" (optional.Interface of []string) - -@return map[string]map[string]EntitySetPropertyMetaData +@return Edm */ -func (a *EdmApiService) GetPropertyMetadataForEntitySets(ctx _context.Context, localVarOptionals *GetPropertyMetadataForEntitySetsOpts) (map[string]map[string]EntitySetPropertyMetaData, *_nethttp.Response, error) { +func (a *EdmApiService) GetEntityDataModel(ctx _context.Context) (Edm, *_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue map[string]map[string]EntitySetPropertyMetaData + localVarReturnValue Edm ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/entity-sets/all/metadata" + localVarPath := a.client.cfg.BasePath + "/datastore/edm/" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -3325,27 +1916,6 @@ func (a *EdmApiService) GetPropertyMetadataForEntitySets(ctx _context.Context, l if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - if localVarOptionals != nil && localVarOptionals.RequestBody.IsSet() { - localVarOptionalRequestBody, localVarOptionalRequestBodyok := localVarOptionals.RequestBody.Value().([]string) - if !localVarOptionalRequestBodyok { - return localVarReturnValue, nil, reportError("requestBody should be []string") - } - localVarPostBody = &localVarOptionalRequestBody - } - - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err @@ -3383,31 +1953,29 @@ func (a *EdmApiService) GetPropertyMetadataForEntitySets(ctx _context.Context, l } /* -GetPropertyType Gets the PropertyType definition for the given PropertyType UUID. +GetEntityDataModelDiff 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 ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param propertyTypeId -@return PropertyType + * @param edMdiff +@return EdMdiff */ -func (a *EdmApiService) GetPropertyType(ctx _context.Context, propertyTypeId string) (PropertyType, *_nethttp.Response, error) { +func (a *EdmApiService) GetEntityDataModelDiff(ctx _context.Context, edMdiff EdMdiff) (EdMdiff, *_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue PropertyType + localVarReturnValue EdMdiff ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/property/type/{propertyTypeId}" - localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) - + localVarPath := a.client.cfg.BasePath + "/datastore/edm/diff/" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -3423,6 +1991,8 @@ func (a *EdmApiService) GetPropertyType(ctx _context.Context, propertyTypeId str if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = &edMdiff if ctx != nil { // API Key Authentication if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { @@ -3472,27 +2042,24 @@ func (a *EdmApiService) GetPropertyType(ctx _context.Context, propertyTypeId str } /* -GetPropertyTypeId Gets the PropertyType UUID for the given PropertyType FQN. +GetEntityType Gets the EntityType definition for the given EntityType UUID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param namespace - * @param name -@return string + * @param entityTypeId +@return EntityType */ -func (a *EdmApiService) GetPropertyTypeId(ctx _context.Context, namespace string, name string) (string, *_nethttp.Response, error) { +func (a *EdmApiService) GetEntityType(ctx _context.Context, entityTypeId string) (EntityType, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue string + localVarReturnValue EntityType ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/ids/property/type/{namespace}/{name}" - localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", _neturl.PathEscape(parameterToString(namespace, "")) , -1) - - localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", _neturl.PathEscape(parameterToString(name, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}" + localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -3515,18 +2082,6 @@ func (a *EdmApiService) GetPropertyTypeId(ctx _context.Context, namespace string if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if ctx != nil { - // API Key Authentication - if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { - var key string - if auth.Prefix != "" { - key = auth.Prefix + " " + auth.Key - } else { - key = auth.Key - } - localVarHeaderParams["Authorization"] = key - } - } r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err @@ -3564,24 +2119,22 @@ func (a *EdmApiService) GetPropertyTypeId(ctx _context.Context, namespace string } /* -GetPropertyTypesForEntitySet Get all Property Types for entity set +GetEntityTypeHierarchy Get the EntityType hierarchy for the given EntityType UUID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entitySetId -@return map[string]PropertyType + * @param entityTypeId */ -func (a *EdmApiService) GetPropertyTypesForEntitySet(ctx _context.Context, entitySetId string) (map[string]PropertyType, *_nethttp.Response, error) { +func (a *EdmApiService) GetEntityTypeHierarchy(ctx _context.Context, entityTypeId string) (*_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = _nethttp.MethodPatch localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue map[string]PropertyType ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/entity-sets/all/{entitySetId}/properties" - localVarPath = strings.Replace(localVarPath, "{"+"entitySetId"+"}", _neturl.PathEscape(parameterToString(entitySetId, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}/hierarchy" + localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -3597,7 +2150,7 @@ func (a *EdmApiService) GetPropertyTypesForEntitySet(ctx _context.Context, entit } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -3618,18 +2171,18 @@ func (a *EdmApiService) GetPropertyTypesForEntitySet(ctx _context.Context, entit } r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(r) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -3637,40 +2190,34 @@ func (a *EdmApiService) GetPropertyTypesForEntitySet(ctx _context.Context, entit body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } /* -GetPropertyUsageSummary Get Property Usage Summary for property with given ID. +GetEntityTypeId Gets the EntityType UUID for the given EntityType FQN. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param propertyTypeId -@return []PropertyUsageSummary + * @param namespace + * @param name +@return string */ -func (a *EdmApiService) GetPropertyUsageSummary(ctx _context.Context, propertyTypeId string) ([]PropertyUsageSummary, *_nethttp.Response, error) { +func (a *EdmApiService) GetEntityTypeId(ctx _context.Context, namespace string, name string) (string, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue []PropertyUsageSummary + localVarReturnValue string ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/summary/{propertyTypeId}" - localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/ids/entity/type/{namespace}/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", _neturl.PathEscape(parameterToString(namespace, "")) , -1) + + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", _neturl.PathEscape(parameterToString(name, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -3741,43 +2288,33 @@ func (a *EdmApiService) GetPropertyUsageSummary(ctx _context.Context, propertyTy return localVarReturnValue, localVarHTTPResponse, nil } -// GetSchemaContentsOpts Optional parameters for the method 'GetSchemaContents' -type GetSchemaContentsOpts struct { - FileType optional.String -} - /* -GetSchemaContents Gets the schema contents for a corresponding namespace and name. +GetEntityTypePropertyMetadata Get EntityType propertyType metadata * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param namespace - * @param name - * @param optional nil or *GetSchemaContentsOpts - Optional Parameters: - * @param "FileType" (optional.String) - -@return Schema + * @param entityTypeId + * @param propertyTypeId +@return EntityTypePropertyMetadata */ -func (a *EdmApiService) GetSchemaContents(ctx _context.Context, namespace string, name string, localVarOptionals *GetSchemaContentsOpts) (Schema, *_nethttp.Response, error) { +func (a *EdmApiService) GetEntityTypePropertyMetadata(ctx _context.Context, entityTypeId string, propertyTypeId string) (EntityTypePropertyMetadata, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue Schema + localVarReturnValue EntityTypePropertyMetadata ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/schema/{namespace}/{name}" - localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", _neturl.PathEscape(parameterToString(namespace, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId}" + localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) - localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", _neturl.PathEscape(parameterToString(name, "")) , -1) + localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} - if localVarOptionals != nil && localVarOptionals.FileType.IsSet() { - localVarQueryParams.Add("fileType", parameterToString(localVarOptionals.FileType.Value(), "")) - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3844,22 +2381,25 @@ func (a *EdmApiService) GetSchemaContents(ctx _context.Context, namespace string } /* -GetSchemas Gets all schemas. +GetPropertyType Gets the PropertyType definition for the given PropertyType UUID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return []Schema + * @param propertyTypeId +@return PropertyType */ -func (a *EdmApiService) GetSchemas(ctx _context.Context) ([]Schema, *_nethttp.Response, error) { +func (a *EdmApiService) GetPropertyType(ctx _context.Context, propertyTypeId string) (PropertyType, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue []Schema + localVarReturnValue PropertyType ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/schema" + localVarPath := a.client.cfg.BasePath + "/datastore/edm/property/type/{propertyTypeId}" + localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -3930,25 +2470,28 @@ func (a *EdmApiService) GetSchemas(ctx _context.Context) ([]Schema, *_nethttp.Re } /* -GetSchemasInNamespace Gets all schemas associated with a given namespace and accessible by the caller. +GetPropertyTypeId Gets the PropertyType UUID for the given PropertyType FQN. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param namespace -@return []Schema + * @param name +@return string */ -func (a *EdmApiService) GetSchemasInNamespace(ctx _context.Context, namespace string) ([]Schema, *_nethttp.Response, error) { +func (a *EdmApiService) GetPropertyTypeId(ctx _context.Context, namespace string, name string) (string, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue []Schema + localVarReturnValue string ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/schema/{namespace}" + localVarPath := a.client.cfg.BasePath + "/datastore/edm/ids/property/type/{namespace}/{name}" localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", _neturl.PathEscape(parameterToString(namespace, "")) , -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", _neturl.PathEscape(parameterToString(name, "")) , -1) + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -4019,25 +2562,24 @@ func (a *EdmApiService) GetSchemasInNamespace(ctx _context.Context, namespace st } /* -RemoveDstEntityTypeFromAssociationType Updates the AssociationType dst entity types for the given AssociationType UUID by removing the given EntityType UUID. +GetPropertyUsageSummary Get Property Usage Summary for property with given ID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param associationTypeId - * @param entityTypeId + * @param propertyTypeId +@return []PropertyUsageSummary */ -func (a *EdmApiService) RemoveDstEntityTypeFromAssociationType(ctx _context.Context, associationTypeId string, entityTypeId string) (*_nethttp.Response, error) { +func (a *EdmApiService) GetPropertyUsageSummary(ctx _context.Context, propertyTypeId string) ([]PropertyUsageSummary, *_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodDelete + localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte + localVarReturnValue []PropertyUsageSummary ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/{associationTypeId}/dst/{entityTypeId}" - localVarPath = strings.Replace(localVarPath, "{"+"associationTypeId"+"}", _neturl.PathEscape(parameterToString(associationTypeId, "")) , -1) - - localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/summary/{propertyTypeId}" + localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -4053,7 +2595,7 @@ func (a *EdmApiService) RemoveDstEntityTypeFromAssociationType(ctx _context.Cont } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -4074,18 +2616,18 @@ func (a *EdmApiService) RemoveDstEntityTypeFromAssociationType(ctx _context.Cont } r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { - return nil, err + return localVarReturnValue, nil, err } localVarHTTPResponse, err := a.client.callAPI(r) if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() if err != nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -4093,45 +2635,60 @@ func (a *EdmApiService) RemoveDstEntityTypeFromAssociationType(ctx _context.Cont body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil } -// RemoveEntitySetsFromLinkingEntitySetOpts Optional parameters for the method 'RemoveEntitySetsFromLinkingEntitySet' -type RemoveEntitySetsFromLinkingEntitySetOpts struct { - RequestBody optional.Interface +// GetSchemaContentsOpts Optional parameters for the method 'GetSchemaContents' +type GetSchemaContentsOpts struct { + FileType optional.String } /* -RemoveEntitySetsFromLinkingEntitySet Removes/unlinks the linked entity sets from the linking entity set +GetSchemaContents Gets the schema contents for a corresponding namespace and name. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param linkingEntitySetId - * @param optional nil or *RemoveEntitySetsFromLinkingEntitySetOpts - Optional Parameters: - * @param "RequestBody" (optional.Interface of []string) - -@return int32 + * @param namespace + * @param name + * @param optional nil or *GetSchemaContentsOpts - Optional Parameters: + * @param "FileType" (optional.String) - +@return Schema */ -func (a *EdmApiService) RemoveEntitySetsFromLinkingEntitySet(ctx _context.Context, linkingEntitySetId string, localVarOptionals *RemoveEntitySetsFromLinkingEntitySetOpts) (int32, *_nethttp.Response, error) { +func (a *EdmApiService) GetSchemaContents(ctx _context.Context, namespace string, name string, localVarOptionals *GetSchemaContentsOpts) (Schema, *_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodDelete + localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue int32 + localVarReturnValue Schema ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/entity-sets/linking/{linkingEntitySetId}" - localVarPath = strings.Replace(localVarPath, "{"+"linkingEntitySetId"+"}", _neturl.PathEscape(parameterToString(linkingEntitySetId, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/schema/{namespace}/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", _neturl.PathEscape(parameterToString(namespace, "")) , -1) + + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", _neturl.PathEscape(parameterToString(name, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} + if localVarOptionals != nil && localVarOptionals.FileType.IsSet() { + localVarQueryParams.Add("fileType", parameterToString(localVarOptionals.FileType.Value(), "")) + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -4147,15 +2704,6 @@ func (a *EdmApiService) RemoveEntitySetsFromLinkingEntitySet(ctx _context.Contex if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - if localVarOptionals != nil && localVarOptionals.RequestBody.IsSet() { - localVarOptionalRequestBody, localVarOptionalRequestBodyok := localVarOptionals.RequestBody.Value().([]string) - if !localVarOptionalRequestBodyok { - return localVarReturnValue, nil, reportError("requestBody should be []string") - } - localVarPostBody = &localVarOptionalRequestBody - } - if ctx != nil { // API Key Authentication if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { @@ -4205,32 +2753,28 @@ func (a *EdmApiService) RemoveEntitySetsFromLinkingEntitySet(ctx _context.Contex } /* -RemoveEntitySetsFromLinkingEntitySets Removes/unlinks the linked entity sets from the linking entity set +GetSchemas Gets all schemas. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param linkingEntitySetId - * @param requestBody -@return int32 +@return []Schema */ -func (a *EdmApiService) RemoveEntitySetsFromLinkingEntitySets(ctx _context.Context, linkingEntitySetId string, requestBody map[string][]string) (int32, *_nethttp.Response, error) { +func (a *EdmApiService) GetSchemas(ctx _context.Context) ([]Schema, *_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodDelete + localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue int32 + localVarReturnValue []Schema ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/entity-sets/linking/" - localVarPath = strings.Replace(localVarPath, "{"+"linkingEntitySetId"+"}", _neturl.PathEscape(parameterToString(linkingEntitySetId, "")) , -1) - + localVarPath := a.client.cfg.BasePath + "/datastore/edm/schema" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -4246,8 +2790,6 @@ func (a *EdmApiService) RemoveEntitySetsFromLinkingEntitySets(ctx _context.Conte if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = &requestBody if ctx != nil { // API Key Authentication if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { @@ -4297,25 +2839,24 @@ func (a *EdmApiService) RemoveEntitySetsFromLinkingEntitySets(ctx _context.Conte } /* -RemovePrimaryKeyFromEntityType Removes a primary key with a given ID from an entity type with a given ID. +GetSchemasInNamespace Gets all schemas associated with a given namespace and accessible by the caller. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entityTypeId - * @param propertyTypeId + * @param namespace +@return []Schema */ -func (a *EdmApiService) RemovePrimaryKeyFromEntityType(ctx _context.Context, entityTypeId string, propertyTypeId string) (*_nethttp.Response, error) { +func (a *EdmApiService) GetSchemasInNamespace(ctx _context.Context, namespace string) ([]Schema, *_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodDelete + localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte + localVarReturnValue []Schema ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId}" - localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) - - localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/schema/{namespace}" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", _neturl.PathEscape(parameterToString(namespace, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -4331,7 +2872,7 @@ func (a *EdmApiService) RemovePrimaryKeyFromEntityType(ctx _context.Context, ent } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -4352,18 +2893,18 @@ func (a *EdmApiService) RemovePrimaryKeyFromEntityType(ctx _context.Context, ent } r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { - return nil, err + return localVarReturnValue, nil, err } localVarHTTPResponse, err := a.client.callAPI(r) if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() if err != nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -4371,19 +2912,28 @@ func (a *EdmApiService) RemovePrimaryKeyFromEntityType(ctx _context.Context, ent body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil } /* -RemovePropertyTypeFromEntityType Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. +RemoveDstEntityTypeFromAssociationType Updates the AssociationType dst entity types for the given AssociationType UUID by removing the given EntityType UUID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param associationTypeId * @param entityTypeId - * @param propertyTypeId */ -func (a *EdmApiService) RemovePropertyTypeFromEntityType(ctx _context.Context, entityTypeId string, propertyTypeId string) (*_nethttp.Response, error) { +func (a *EdmApiService) RemoveDstEntityTypeFromAssociationType(ctx _context.Context, associationTypeId string, entityTypeId string) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete localVarPostBody interface{} @@ -4393,10 +2943,10 @@ func (a *EdmApiService) RemovePropertyTypeFromEntityType(ctx _context.Context, e ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}/{propertyTypeId}" - localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/{associationTypeId}/dst/{entityTypeId}" + localVarPath = strings.Replace(localVarPath, "{"+"associationTypeId"+"}", _neturl.PathEscape(parameterToString(associationTypeId, "")) , -1) - localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) + localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -4459,12 +3009,12 @@ func (a *EdmApiService) RemovePropertyTypeFromEntityType(ctx _context.Context, e } /* -RemoveSrcEntityTypeFromAssociationType Updates the AssociationType src entity types for the given AssociationType UUID by removing the given EntityType UUID. +RemovePrimaryKeyFromEntityType Removes a primary key with a given ID from an entity type with a given ID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param associationTypeId * @param entityTypeId + * @param propertyTypeId */ -func (a *EdmApiService) RemoveSrcEntityTypeFromAssociationType(ctx _context.Context, associationTypeId string, entityTypeId string) (*_nethttp.Response, error) { +func (a *EdmApiService) RemovePrimaryKeyFromEntityType(ctx _context.Context, entityTypeId string, propertyTypeId string) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete localVarPostBody interface{} @@ -4474,11 +3024,11 @@ func (a *EdmApiService) RemoveSrcEntityTypeFromAssociationType(ctx _context.Cont ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/{associationTypeId}/src/{entityTypeId}" - localVarPath = strings.Replace(localVarPath, "{"+"associationTypeId"+"}", _neturl.PathEscape(parameterToString(associationTypeId, "")) , -1) - + localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId}" localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) + localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -4540,14 +3090,14 @@ func (a *EdmApiService) RemoveSrcEntityTypeFromAssociationType(ctx _context.Cont } /* -ReorderPropertyTypesInEntityType Updates the EntityType definition for the given EntityType UUID by reordering its properties as specified by the provided list. +RemovePropertyTypeFromEntityType Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param entityTypeId - * @param propertyTypeIds + * @param propertyTypeId */ -func (a *EdmApiService) ReorderPropertyTypesInEntityType(ctx _context.Context, entityTypeId string, propertyTypeIds []string) (*_nethttp.Response, error) { +func (a *EdmApiService) RemovePropertyTypeFromEntityType(ctx _context.Context, entityTypeId string, propertyTypeId string) (*_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = _nethttp.MethodDelete localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -4555,10 +3105,10 @@ func (a *EdmApiService) ReorderPropertyTypesInEntityType(ctx _context.Context, e ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}/property/type" + localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}/{propertyTypeId}" localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) - localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeIds"+"}", _neturl.PathEscape(parameterToString(propertyTypeIds, "csv")) , -1) + localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -4621,13 +3171,14 @@ func (a *EdmApiService) ReorderPropertyTypesInEntityType(ctx _context.Context, e } /* -UpdateEntityDataModel Updates the entity data model, including schemas, entity types, association types, and property types. +RemoveSrcEntityTypeFromAssociationType Updates the AssociationType src entity types for the given AssociationType UUID by removing the given EntityType UUID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param edm + * @param associationTypeId + * @param entityTypeId */ -func (a *EdmApiService) UpdateEntityDataModel(ctx _context.Context, edm Edm) (*_nethttp.Response, error) { +func (a *EdmApiService) RemoveSrcEntityTypeFromAssociationType(ctx _context.Context, associationTypeId string, entityTypeId string) (*_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = _nethttp.MethodDelete localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -4635,13 +3186,17 @@ func (a *EdmApiService) UpdateEntityDataModel(ctx _context.Context, edm Edm) (*_ ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/edm/" + localVarPath := a.client.cfg.BasePath + "/datastore/edm/association/type/{associationTypeId}/src/{entityTypeId}" + localVarPath = strings.Replace(localVarPath, "{"+"associationTypeId"+"}", _neturl.PathEscape(parameterToString(associationTypeId, "")) , -1) + + localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -4657,8 +3212,6 @@ func (a *EdmApiService) UpdateEntityDataModel(ctx _context.Context, edm Edm) (*_ if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = &edm if ctx != nil { // API Key Authentication if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { @@ -4699,32 +3252,32 @@ func (a *EdmApiService) UpdateEntityDataModel(ctx _context.Context, edm Edm) (*_ } /* -UpdateEntitySetMetaData Updates the EntitySet definition for the given EntitySet UUID with the given metadata. +ReorderPropertyTypesInEntityType Updates the EntityType definition for the given EntityType UUID by reordering its properties as specified by the provided list. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entitySetId - * @param metadataUpdate -@return int32 + * @param entityTypeId + * @param propertyTypeIds */ -func (a *EdmApiService) UpdateEntitySetMetaData(ctx _context.Context, entitySetId string, metadataUpdate MetadataUpdate) (int32, *_nethttp.Response, error) { +func (a *EdmApiService) ReorderPropertyTypesInEntityType(ctx _context.Context, entityTypeId string, propertyTypeIds []string) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue int32 ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/entity-sets/all/{entitySetId}/metadata/" - localVarPath = strings.Replace(localVarPath, "{"+"entitySetId"+"}", _neturl.PathEscape(parameterToString(entitySetId, "")) , -1) + localVarPath := a.client.cfg.BasePath + "/datastore/edm/entity/type/{entityTypeId}/property/type" + localVarPath = strings.Replace(localVarPath, "{"+"entityTypeId"+"}", _neturl.PathEscape(parameterToString(entityTypeId, "")) , -1) + + localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeIds"+"}", _neturl.PathEscape(parameterToString(propertyTypeIds, "csv")) , -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -4733,15 +3286,13 @@ func (a *EdmApiService) UpdateEntitySetMetaData(ctx _context.Context, entitySetI } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = &metadataUpdate if ctx != nil { // API Key Authentication if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { @@ -4756,18 +3307,18 @@ func (a *EdmApiService) UpdateEntitySetMetaData(ctx _context.Context, entitySetI } r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(r) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -4775,31 +3326,20 @@ func (a *EdmApiService) UpdateEntitySetMetaData(ctx _context.Context, entitySetI body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } /* -UpdateEntitySetPropertyMetadata Updates the property type metadata for the given entity set. +UpdateEntityDataModel Updates the entity data model, including schemas, entity types, association types, and property types. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param entitySetId - * @param propertyTypeId - * @param metadataUpdate + * @param edm */ -func (a *EdmApiService) UpdateEntitySetPropertyMetadata(ctx _context.Context, entitySetId string, propertyTypeId string, metadataUpdate MetadataUpdate) (*_nethttp.Response, error) { +func (a *EdmApiService) UpdateEntityDataModel(ctx _context.Context, edm Edm) (*_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = _nethttp.MethodPatch localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -4807,11 +3347,7 @@ func (a *EdmApiService) UpdateEntitySetPropertyMetadata(ctx _context.Context, en ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/" - localVarPath = strings.Replace(localVarPath, "{"+"entitySetId"+"}", _neturl.PathEscape(parameterToString(entitySetId, "")) , -1) - - localVarPath = strings.Replace(localVarPath, "{"+"propertyTypeId"+"}", _neturl.PathEscape(parameterToString(propertyTypeId, "")) , -1) - + localVarPath := a.client.cfg.BasePath + "/datastore/edm/" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -4834,7 +3370,7 @@ func (a *EdmApiService) UpdateEntitySetPropertyMetadata(ctx _context.Context, en localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = &metadataUpdate + localVarPostBody = &edm if ctx != nil { // API Key Authentication if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { diff --git a/go/docs/EdmApi.md b/go/docs/EdmApi.md index 0f860c4..2c1f61b 100644 --- a/go/docs/EdmApi.md +++ b/go/docs/EdmApi.md @@ -5,27 +5,21 @@ All URIs are relative to *https://api.openlattice.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**AddDstEntityTypeToAssociationType**](EdmApi.md#AddDstEntityTypeToAssociationType) | **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. -[**AddEntitySetsToLinkingEntitySet**](EdmApi.md#AddEntitySetsToLinkingEntitySet) | **Post** /datastore/entity-sets/linking/{linkingEntitySetId} | Adds the entity sets as linked entity sets to the linking entity set -[**AddEntitySetsToLinkingEntitySets**](EdmApi.md#AddEntitySetsToLinkingEntitySets) | **Put** /datastore/entity-sets/linking/ | Adds the entity sets as linked entity sets to the linking entity sets [**AddPrimaryKeyToEntityType**](EdmApi.md#AddPrimaryKeyToEntityType) | **Put** /datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId} | Adds a primary key with a given ID to an entity type with a given ID. [**AddPropertyTypeToEntityType**](EdmApi.md#AddPropertyTypeToEntityType) | **Put** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. [**AddSrcEntityTypeToAssociationType**](EdmApi.md#AddSrcEntityTypeToAssociationType) | **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. [**CreateAssociationType**](EdmApi.md#CreateAssociationType) | **Post** /datastore/edm/association/type/ | Creates a new AssociationType definition, if it doesn't exist. [**CreateEmptySchema**](EdmApi.md#CreateEmptySchema) | **Put** /datastore/edm/schema/{namespace}/{name} | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. -[**CreateEntitySets**](EdmApi.md#CreateEntitySets) | **Post** /datastore/entity-sets | Creates new EntitySet definitions if they don't exist. [**CreateEntityType**](EdmApi.md#CreateEntityType) | **Post** /datastore/edm/entity/type/ | Creates a new EntityType definition, if it doesn't exist. [**CreatePropertyType**](EdmApi.md#CreatePropertyType) | **Post** /datastore/edm/property/type/ | Creates a new PropertyType definition, if it doesn\"t exist. [**CreateSchemaIfNotExists**](EdmApi.md#CreateSchemaIfNotExists) | **Post** /datastore/edm/schema | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. [**DeleteAssociationType**](EdmApi.md#DeleteAssociationType) | **Delete** /datastore/edm/association/type/{associationTypeId} | Deletes the AssociationType definition for the given AssociationType UUID. -[**DeleteEntitySet**](EdmApi.md#DeleteEntitySet) | **Delete** /datastore/entity-sets/all/{entitySetId} | Deletes the EntitySet definition for the given EntitySet UUID. [**DeleteEntityType**](EdmApi.md#DeleteEntityType) | **Delete** /datastore/edm/entity/type/{entityTypeId} | Deletes the EntityType definition for the given EntityType UUID. [**DeletePropertyType**](EdmApi.md#DeletePropertyType) | **Delete** /datastore/edm/property/type/{propertyTypeId} | Deletes the PropertyType definition for the given PropertyType UUID. [**ForceDeletePropertyType**](EdmApi.md#ForceDeletePropertyType) | **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. [**ForceRemovePropertyTypeFromEntityType**](EdmApi.md#ForceRemovePropertyTypeFromEntityType) | **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. [**GetAllAssociationEntityTypes**](EdmApi.md#GetAllAssociationEntityTypes) | **Get** /datastore/edm/association/type/ | Gets all association EntityType definitions. [**GetAllAvailableAssociationTypes**](EdmApi.md#GetAllAvailableAssociationTypes) | **Get** /datastore/edm/association/type/{associationTypeId}/available | Get all available associations for the given AssociationType UUID. -[**GetAllEntitySetPropertyMetadata**](EdmApi.md#GetAllEntitySetPropertyMetadata) | **Get** /datastore/entity-sets/all/{entitySetId}/metadata | Get all entity set property metadata. -[**GetAllEntitySets**](EdmApi.md#GetAllEntitySets) | **Get** /datastore/entity-sets | Get all EntitySet definitions. [**GetAllEntityTypePropertyMetadata**](EdmApi.md#GetAllEntityTypePropertyMetadata) | **Get** /datastore/edm/entity/type/{entityTypeId}/property/type | Get all EntityType propertyType metadata [**GetAllEntityTypes**](EdmApi.md#GetAllEntityTypes) | **Get** /datastore/edm/entity/type/ | Gets all EntityType definitions. [**GetAllPropertyTypes**](EdmApi.md#GetAllPropertyTypes) | **Get** /datastore/edm/property/type/ | Gets all PropertyType definitions. @@ -35,32 +29,22 @@ Method | HTTP request | Description [**GetAssociationTypeDetails**](EdmApi.md#GetAssociationTypeDetails) | **Get** /datastore/edm/association/type/{associationTypeId}/detailed | Get details about the AssociationType for the given AssociationType UUID. [**GetEntityDataModel**](EdmApi.md#GetEntityDataModel) | **Get** /datastore/edm/ | Gets the entity data model, including namespaces, schemas, entity types, association types, and property types. [**GetEntityDataModelDiff**](EdmApi.md#GetEntityDataModelDiff) | **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. -[**GetEntitySet**](EdmApi.md#GetEntitySet) | **Get** /datastore/entity-sets/all/{entitySetId} | Get the EntitySet definition for the given EntitySet UUID. -[**GetEntitySetId**](EdmApi.md#GetEntitySetId) | **Get** /datastore/entity-sets/ids/{entitySetName} | Gets the EntitySet UUID for the given EntitySet name. -[**GetEntitySetIds**](EdmApi.md#GetEntitySetIds) | **Post** /datastore/entity-sets/ids/ | Get IDs for entity sets given their names. -[**GetEntitySetPropertyMetadata**](EdmApi.md#GetEntitySetPropertyMetadata) | **Get** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Get specified property type metadata for an entity set. [**GetEntityType**](EdmApi.md#GetEntityType) | **Get** /datastore/edm/entity/type/{entityTypeId} | Gets the EntityType definition for the given EntityType UUID. [**GetEntityTypeHierarchy**](EdmApi.md#GetEntityTypeHierarchy) | **Patch** /datastore/edm/entity/type/{entityTypeId}/hierarchy | Get the EntityType hierarchy for the given EntityType UUID. [**GetEntityTypeId**](EdmApi.md#GetEntityTypeId) | **Get** /datastore/edm/ids/entity/type/{namespace}/{name} | Gets the EntityType UUID for the given EntityType FQN. [**GetEntityTypePropertyMetadata**](EdmApi.md#GetEntityTypePropertyMetadata) | **Get** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Get EntityType propertyType metadata -[**GetPropertyMetadataForEntitySets**](EdmApi.md#GetPropertyMetadataForEntitySets) | **Post** /datastore/entity-sets/all/metadata | Get property metadata for entity sets. [**GetPropertyType**](EdmApi.md#GetPropertyType) | **Get** /datastore/edm/property/type/{propertyTypeId} | Gets the PropertyType definition for the given PropertyType UUID. [**GetPropertyTypeId**](EdmApi.md#GetPropertyTypeId) | **Get** /datastore/edm/ids/property/type/{namespace}/{name} | Gets the PropertyType UUID for the given PropertyType FQN. -[**GetPropertyTypesForEntitySet**](EdmApi.md#GetPropertyTypesForEntitySet) | **Get** /datastore/entity-sets/all/{entitySetId}/properties | Get all Property Types for entity set [**GetPropertyUsageSummary**](EdmApi.md#GetPropertyUsageSummary) | **Get** /datastore/edm/summary/{propertyTypeId} | Get Property Usage Summary for property with given ID. [**GetSchemaContents**](EdmApi.md#GetSchemaContents) | **Get** /datastore/edm/schema/{namespace}/{name} | Gets the schema contents for a corresponding namespace and name. [**GetSchemas**](EdmApi.md#GetSchemas) | **Get** /datastore/edm/schema | Gets all schemas. [**GetSchemasInNamespace**](EdmApi.md#GetSchemasInNamespace) | **Get** /datastore/edm/schema/{namespace} | Gets all schemas associated with a given namespace and accessible by the caller. [**RemoveDstEntityTypeFromAssociationType**](EdmApi.md#RemoveDstEntityTypeFromAssociationType) | **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. -[**RemoveEntitySetsFromLinkingEntitySet**](EdmApi.md#RemoveEntitySetsFromLinkingEntitySet) | **Delete** /datastore/entity-sets/linking/{linkingEntitySetId} | Removes/unlinks the linked entity sets from the linking entity set -[**RemoveEntitySetsFromLinkingEntitySets**](EdmApi.md#RemoveEntitySetsFromLinkingEntitySets) | **Delete** /datastore/entity-sets/linking/ | Removes/unlinks the linked entity sets from the linking entity set [**RemovePrimaryKeyFromEntityType**](EdmApi.md#RemovePrimaryKeyFromEntityType) | **Delete** /datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId} | Removes a primary key with a given ID from an entity type with a given ID. [**RemovePropertyTypeFromEntityType**](EdmApi.md#RemovePropertyTypeFromEntityType) | **Delete** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. [**RemoveSrcEntityTypeFromAssociationType**](EdmApi.md#RemoveSrcEntityTypeFromAssociationType) | **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. [**ReorderPropertyTypesInEntityType**](EdmApi.md#ReorderPropertyTypesInEntityType) | **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. [**UpdateEntityDataModel**](EdmApi.md#UpdateEntityDataModel) | **Patch** /datastore/edm/ | Updates the entity data model, including schemas, entity types, association types, and property types. -[**UpdateEntitySetMetaData**](EdmApi.md#UpdateEntitySetMetaData) | **Patch** /datastore/entity-sets/all/{entitySetId}/metadata/ | Updates the EntitySet definition for the given EntitySet UUID with the given metadata. -[**UpdateEntitySetPropertyMetadata**](EdmApi.md#UpdateEntitySetPropertyMetadata) | **Post** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Updates the property type metadata for the given entity set. [**UpdateEntityTypeMetaData**](EdmApi.md#UpdateEntityTypeMetaData) | **Patch** /datastore/edm/entity/type/{entityTypeId} | Updates the EntityType definition for the given EntityType UUID with the given metadata. [**UpdateEntityTypePropertyMetadata**](EdmApi.md#UpdateEntityTypePropertyMetadata) | **Post** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Update EntityType Property metadata [**UpdatePropertyTypeMetaData**](EdmApi.md#UpdatePropertyTypeMetaData) | **Patch** /datastore/edm/property/type/{propertyTypeId} | Updates the PropertyType definition for the given PropertyType UUID with the given metadata. @@ -101,82 +85,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## AddEntitySetsToLinkingEntitySet - -> int32 AddEntitySetsToLinkingEntitySet(ctx, linkingEntitySetId, optional) - -Adds the entity sets as linked entity sets to the linking entity set - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**linkingEntitySetId** | [**string**](.md)| | - **optional** | ***AddEntitySetsToLinkingEntitySetOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a AddEntitySetsToLinkingEntitySetOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **requestBody** | [**optional.Interface of []string**](string.md)| | - -### Return type - -**int32** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## AddEntitySetsToLinkingEntitySets - -> int32 AddEntitySetsToLinkingEntitySets(ctx, linkingEntitySetId, requestBody) - -Adds the entity sets as linked entity sets to the linking entity sets - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**linkingEntitySetId** | **string**| | -**requestBody** | [**map[string][]string**](array.md)| | - -### Return type - -**int32** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## AddPrimaryKeyToEntityType > AddPrimaryKeyToEntityType(ctx, entityTypeId, propertyTypeId) @@ -341,38 +249,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CreateEntitySets - -> CreateEntitySets(ctx, entitySet) - -Creates new EntitySet definitions if they don't exist. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**entitySet** | [**[]EntitySet**](EntitySet.md)| | - -### Return type - - (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 - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## CreateEntityType > CreateEntityType(ctx, entityType) @@ -501,38 +377,6 @@ No authorization required [[Back to README]](../README.md) -## DeleteEntitySet - -> DeleteEntitySet(ctx, entitySetId) - -Deletes the EntitySet definition for the given EntitySet UUID. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**entitySetId** | [**string**](.md)| | - -### Return type - - (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 - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## DeleteEntityType > DeleteEntityType(ctx, entityTypeId) @@ -722,66 +566,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetAllEntitySetPropertyMetadata - -> map[string]EntitySetPropertyMetaData GetAllEntitySetPropertyMetadata(ctx, entitySetId) - -Get all entity set property metadata. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**entitySetId** | [**string**](.md)| | - -### Return type - -[**map[string]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 - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetAllEntitySets - -> []EntitySet GetAllEntitySets(ctx, ) - -Get all EntitySet definitions. - -### Required Parameters - -This endpoint does not need any parameter. - -### Return type - -[**[]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 - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## GetAllEntityTypePropertyMetadata > map[string]EntityTypePropertyMetadata GetAllEntityTypePropertyMetadata(ctx, entityTypeId) @@ -1054,144 +838,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetEntitySet - -> EntitySet GetEntitySet(ctx, entitySetId) - -Get the EntitySet definition for the given EntitySet UUID. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**entitySetId** | [**string**](.md)| | - -### Return type - -[**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 - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetEntitySetId - -> string GetEntitySetId(ctx, entitySetName) - -Gets the EntitySet UUID for the given EntitySet name. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**entitySetName** | **string**| | - -### Return type - -**string** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetEntitySetIds - -> map[string]string GetEntitySetIds(ctx, optional) - -Get IDs for entity sets given their names. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***GetEntitySetIdsOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a GetEntitySetIdsOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **requestBody** | [**optional.Interface of []string**](string.md)| | - -### Return type - -**map[string]string** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetEntitySetPropertyMetadata - -> EntitySetPropertyMetaData GetEntitySetPropertyMetadata(ctx, entitySetId, propertyTypeId) - -Get specified property type metadata for an entity set. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**entitySetId** | [**string**](.md)| | -**propertyTypeId** | [**string**](.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 - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## GetEntityType > EntityType GetEntityType(ctx, entityTypeId) @@ -1322,47 +968,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetPropertyMetadataForEntitySets - -> map[string]map[string]EntitySetPropertyMetaData GetPropertyMetadataForEntitySets(ctx, optional) - -Get property metadata for entity sets. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***GetPropertyMetadataForEntitySetsOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a GetPropertyMetadataForEntitySetsOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **requestBody** | [**optional.Interface of []string**](string.md)| | - -### Return type - -[**map[string]map[string]EntitySetPropertyMetaData**](map.md) - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## GetPropertyType > PropertyType GetPropertyType(ctx, propertyTypeId) @@ -1428,38 +1033,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetPropertyTypesForEntitySet - -> map[string]PropertyType GetPropertyTypesForEntitySet(ctx, entitySetId) - -Get all Property Types for entity set - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**entitySetId** | [**string**](.md)| | - -### Return type - -[**map[string]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 - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## GetPropertyUsageSummary > []PropertyUsageSummary GetPropertyUsageSummary(ctx, propertyTypeId) @@ -1630,82 +1203,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## RemoveEntitySetsFromLinkingEntitySet - -> int32 RemoveEntitySetsFromLinkingEntitySet(ctx, linkingEntitySetId, optional) - -Removes/unlinks the linked entity sets from the linking entity set - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**linkingEntitySetId** | **string**| | - **optional** | ***RemoveEntitySetsFromLinkingEntitySetOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a RemoveEntitySetsFromLinkingEntitySetOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **requestBody** | [**optional.Interface of []string**](string.md)| | - -### Return type - -**int32** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## RemoveEntitySetsFromLinkingEntitySets - -> int32 RemoveEntitySetsFromLinkingEntitySets(ctx, linkingEntitySetId, requestBody) - -Removes/unlinks the linked entity sets from the linking entity set - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**linkingEntitySetId** | [**string**](.md)| | -**requestBody** | [**map[string][]string**](array.md)| | - -### Return type - -**int32** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## RemovePrimaryKeyFromEntityType > RemovePrimaryKeyFromEntityType(ctx, entityTypeId, propertyTypeId) @@ -1870,73 +1367,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## UpdateEntitySetMetaData - -> int32 UpdateEntitySetMetaData(ctx, entitySetId, metadataUpdate) - -Updates the EntitySet definition for the given EntitySet UUID with the given metadata. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**entitySetId** | [**string**](.md)| | -**metadataUpdate** | [**MetadataUpdate**](MetadataUpdate.md)| | - -### Return type - -**int32** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## UpdateEntitySetPropertyMetadata - -> UpdateEntitySetPropertyMetadata(ctx, entitySetId, propertyTypeId, metadataUpdate) - -Updates the property type metadata for the given entity set. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**entitySetId** | [**string**](.md)| | -**propertyTypeId** | [**string**](.md)| | -**metadataUpdate** | [**MetadataUpdate**](MetadataUpdate.md)| | - -### Return type - - (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 - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## UpdateEntityTypeMetaData > UpdateEntityTypeMetaData(ctx, entityTypeId, metadataUpdate) diff --git a/javascript/README.md b/javascript/README.md index 95e8e7e..a3e07ff 100644 --- a/javascript/README.md +++ b/javascript/README.md @@ -181,27 +181,21 @@ Class | Method | HTTP request | Description *OpenLatticeApi.DatasetApi* | [**updateExternalDatabaseColumn**](docs/DatasetApi.md#updateExternalDatabaseColumn) | **PATCH** /datastore/organization-database/{organizationId}/{tableName}/{columnName}/external-database-column | Updates an OrganizationExternalDatabaseTableColumn object's fields that are included within the given metadata. *OpenLatticeApi.DatasetApi* | [**updateExternalDatabaseTable**](docs/DatasetApi.md#updateExternalDatabaseTable) | **PATCH** /datastore/organization-database/{organizationId}/{tableName}/external-database-table | Updates an OrganizationExternalDatabaseTable object's fields that are included within the given metadata. *OpenLatticeApi.EdmApi* | [**addDstEntityTypeToAssociationType**](docs/EdmApi.md#addDstEntityTypeToAssociationType) | **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. -*OpenLatticeApi.EdmApi* | [**addEntitySetsToLinkingEntitySet**](docs/EdmApi.md#addEntitySetsToLinkingEntitySet) | **POST** /datastore/entity-sets/linking/{linkingEntitySetId} | Adds the entity sets as linked entity sets to the linking entity set -*OpenLatticeApi.EdmApi* | [**addEntitySetsToLinkingEntitySets**](docs/EdmApi.md#addEntitySetsToLinkingEntitySets) | **PUT** /datastore/entity-sets/linking/ | Adds the entity sets as linked entity sets to the linking entity sets *OpenLatticeApi.EdmApi* | [**addPrimaryKeyToEntityType**](docs/EdmApi.md#addPrimaryKeyToEntityType) | **PUT** /datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId} | Adds a primary key with a given ID to an entity type with a given ID. *OpenLatticeApi.EdmApi* | [**addPropertyTypeToEntityType**](docs/EdmApi.md#addPropertyTypeToEntityType) | **PUT** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. *OpenLatticeApi.EdmApi* | [**addSrcEntityTypeToAssociationType**](docs/EdmApi.md#addSrcEntityTypeToAssociationType) | **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. *OpenLatticeApi.EdmApi* | [**createAssociationType**](docs/EdmApi.md#createAssociationType) | **POST** /datastore/edm/association/type/ | Creates a new AssociationType definition, if it doesn't exist. *OpenLatticeApi.EdmApi* | [**createEmptySchema**](docs/EdmApi.md#createEmptySchema) | **PUT** /datastore/edm/schema/{namespace}/{name} | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. -*OpenLatticeApi.EdmApi* | [**createEntitySets**](docs/EdmApi.md#createEntitySets) | **POST** /datastore/entity-sets | Creates new EntitySet definitions if they don't exist. *OpenLatticeApi.EdmApi* | [**createEntityType**](docs/EdmApi.md#createEntityType) | **POST** /datastore/edm/entity/type/ | Creates a new EntityType definition, if it doesn't exist. *OpenLatticeApi.EdmApi* | [**createPropertyType**](docs/EdmApi.md#createPropertyType) | **POST** /datastore/edm/property/type/ | Creates a new PropertyType definition, if it doesn\"t exist. *OpenLatticeApi.EdmApi* | [**createSchemaIfNotExists**](docs/EdmApi.md#createSchemaIfNotExists) | **POST** /datastore/edm/schema | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. *OpenLatticeApi.EdmApi* | [**deleteAssociationType**](docs/EdmApi.md#deleteAssociationType) | **DELETE** /datastore/edm/association/type/{associationTypeId} | Deletes the AssociationType definition for the given AssociationType UUID. -*OpenLatticeApi.EdmApi* | [**deleteEntitySet**](docs/EdmApi.md#deleteEntitySet) | **DELETE** /datastore/entity-sets/all/{entitySetId} | Deletes the EntitySet definition for the given EntitySet UUID. *OpenLatticeApi.EdmApi* | [**deleteEntityType**](docs/EdmApi.md#deleteEntityType) | **DELETE** /datastore/edm/entity/type/{entityTypeId} | Deletes the EntityType definition for the given EntityType UUID. *OpenLatticeApi.EdmApi* | [**deletePropertyType**](docs/EdmApi.md#deletePropertyType) | **DELETE** /datastore/edm/property/type/{propertyTypeId} | Deletes the PropertyType definition for the given PropertyType UUID. *OpenLatticeApi.EdmApi* | [**forceDeletePropertyType**](docs/EdmApi.md#forceDeletePropertyType) | **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. *OpenLatticeApi.EdmApi* | [**forceRemovePropertyTypeFromEntityType**](docs/EdmApi.md#forceRemovePropertyTypeFromEntityType) | **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. *OpenLatticeApi.EdmApi* | [**getAllAssociationEntityTypes**](docs/EdmApi.md#getAllAssociationEntityTypes) | **GET** /datastore/edm/association/type/ | Gets all association EntityType definitions. *OpenLatticeApi.EdmApi* | [**getAllAvailableAssociationTypes**](docs/EdmApi.md#getAllAvailableAssociationTypes) | **GET** /datastore/edm/association/type/{associationTypeId}/available | Get all available associations for the given AssociationType UUID. -*OpenLatticeApi.EdmApi* | [**getAllEntitySetPropertyMetadata**](docs/EdmApi.md#getAllEntitySetPropertyMetadata) | **GET** /datastore/entity-sets/all/{entitySetId}/metadata | Get all entity set property metadata. -*OpenLatticeApi.EdmApi* | [**getAllEntitySets**](docs/EdmApi.md#getAllEntitySets) | **GET** /datastore/entity-sets | Get all EntitySet definitions. *OpenLatticeApi.EdmApi* | [**getAllEntityTypePropertyMetadata**](docs/EdmApi.md#getAllEntityTypePropertyMetadata) | **GET** /datastore/edm/entity/type/{entityTypeId}/property/type | Get all EntityType propertyType metadata *OpenLatticeApi.EdmApi* | [**getAllEntityTypes**](docs/EdmApi.md#getAllEntityTypes) | **GET** /datastore/edm/entity/type/ | Gets all EntityType definitions. *OpenLatticeApi.EdmApi* | [**getAllPropertyTypes**](docs/EdmApi.md#getAllPropertyTypes) | **GET** /datastore/edm/property/type/ | Gets all PropertyType definitions. @@ -211,32 +205,22 @@ Class | Method | HTTP request | Description *OpenLatticeApi.EdmApi* | [**getAssociationTypeDetails**](docs/EdmApi.md#getAssociationTypeDetails) | **GET** /datastore/edm/association/type/{associationTypeId}/detailed | Get details about the AssociationType for the given AssociationType UUID. *OpenLatticeApi.EdmApi* | [**getEntityDataModel**](docs/EdmApi.md#getEntityDataModel) | **GET** /datastore/edm/ | Gets the entity data model, including namespaces, schemas, entity types, association types, and property types. *OpenLatticeApi.EdmApi* | [**getEntityDataModelDiff**](docs/EdmApi.md#getEntityDataModelDiff) | **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. -*OpenLatticeApi.EdmApi* | [**getEntitySet**](docs/EdmApi.md#getEntitySet) | **GET** /datastore/entity-sets/all/{entitySetId} | Get the EntitySet definition for the given EntitySet UUID. -*OpenLatticeApi.EdmApi* | [**getEntitySetId**](docs/EdmApi.md#getEntitySetId) | **GET** /datastore/entity-sets/ids/{entitySetName} | Gets the EntitySet UUID for the given EntitySet name. -*OpenLatticeApi.EdmApi* | [**getEntitySetIds**](docs/EdmApi.md#getEntitySetIds) | **POST** /datastore/entity-sets/ids/ | Get IDs for entity sets given their names. -*OpenLatticeApi.EdmApi* | [**getEntitySetPropertyMetadata**](docs/EdmApi.md#getEntitySetPropertyMetadata) | **GET** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Get specified property type metadata for an entity set. *OpenLatticeApi.EdmApi* | [**getEntityType**](docs/EdmApi.md#getEntityType) | **GET** /datastore/edm/entity/type/{entityTypeId} | Gets the EntityType definition for the given EntityType UUID. *OpenLatticeApi.EdmApi* | [**getEntityTypeHierarchy**](docs/EdmApi.md#getEntityTypeHierarchy) | **PATCH** /datastore/edm/entity/type/{entityTypeId}/hierarchy | Get the EntityType hierarchy for the given EntityType UUID. *OpenLatticeApi.EdmApi* | [**getEntityTypeId**](docs/EdmApi.md#getEntityTypeId) | **GET** /datastore/edm/ids/entity/type/{namespace}/{name} | Gets the EntityType UUID for the given EntityType FQN. *OpenLatticeApi.EdmApi* | [**getEntityTypePropertyMetadata**](docs/EdmApi.md#getEntityTypePropertyMetadata) | **GET** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Get EntityType propertyType metadata -*OpenLatticeApi.EdmApi* | [**getPropertyMetadataForEntitySets**](docs/EdmApi.md#getPropertyMetadataForEntitySets) | **POST** /datastore/entity-sets/all/metadata | Get property metadata for entity sets. *OpenLatticeApi.EdmApi* | [**getPropertyType**](docs/EdmApi.md#getPropertyType) | **GET** /datastore/edm/property/type/{propertyTypeId} | Gets the PropertyType definition for the given PropertyType UUID. *OpenLatticeApi.EdmApi* | [**getPropertyTypeId**](docs/EdmApi.md#getPropertyTypeId) | **GET** /datastore/edm/ids/property/type/{namespace}/{name} | Gets the PropertyType UUID for the given PropertyType FQN. -*OpenLatticeApi.EdmApi* | [**getPropertyTypesForEntitySet**](docs/EdmApi.md#getPropertyTypesForEntitySet) | **GET** /datastore/entity-sets/all/{entitySetId}/properties | Get all Property Types for entity set *OpenLatticeApi.EdmApi* | [**getPropertyUsageSummary**](docs/EdmApi.md#getPropertyUsageSummary) | **GET** /datastore/edm/summary/{propertyTypeId} | Get Property Usage Summary for property with given ID. *OpenLatticeApi.EdmApi* | [**getSchemaContents**](docs/EdmApi.md#getSchemaContents) | **GET** /datastore/edm/schema/{namespace}/{name} | Gets the schema contents for a corresponding namespace and name. *OpenLatticeApi.EdmApi* | [**getSchemas**](docs/EdmApi.md#getSchemas) | **GET** /datastore/edm/schema | Gets all schemas. *OpenLatticeApi.EdmApi* | [**getSchemasInNamespace**](docs/EdmApi.md#getSchemasInNamespace) | **GET** /datastore/edm/schema/{namespace} | Gets all schemas associated with a given namespace and accessible by the caller. *OpenLatticeApi.EdmApi* | [**removeDstEntityTypeFromAssociationType**](docs/EdmApi.md#removeDstEntityTypeFromAssociationType) | **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. -*OpenLatticeApi.EdmApi* | [**removeEntitySetsFromLinkingEntitySet**](docs/EdmApi.md#removeEntitySetsFromLinkingEntitySet) | **DELETE** /datastore/entity-sets/linking/{linkingEntitySetId} | Removes/unlinks the linked entity sets from the linking entity set -*OpenLatticeApi.EdmApi* | [**removeEntitySetsFromLinkingEntitySets**](docs/EdmApi.md#removeEntitySetsFromLinkingEntitySets) | **DELETE** /datastore/entity-sets/linking/ | Removes/unlinks the linked entity sets from the linking entity set *OpenLatticeApi.EdmApi* | [**removePrimaryKeyFromEntityType**](docs/EdmApi.md#removePrimaryKeyFromEntityType) | **DELETE** /datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId} | Removes a primary key with a given ID from an entity type with a given ID. *OpenLatticeApi.EdmApi* | [**removePropertyTypeFromEntityType**](docs/EdmApi.md#removePropertyTypeFromEntityType) | **DELETE** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. *OpenLatticeApi.EdmApi* | [**removeSrcEntityTypeFromAssociationType**](docs/EdmApi.md#removeSrcEntityTypeFromAssociationType) | **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. *OpenLatticeApi.EdmApi* | [**reorderPropertyTypesInEntityType**](docs/EdmApi.md#reorderPropertyTypesInEntityType) | **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. *OpenLatticeApi.EdmApi* | [**updateEntityDataModel**](docs/EdmApi.md#updateEntityDataModel) | **PATCH** /datastore/edm/ | Updates the entity data model, including schemas, entity types, association types, and property types. -*OpenLatticeApi.EdmApi* | [**updateEntitySetMetaData**](docs/EdmApi.md#updateEntitySetMetaData) | **PATCH** /datastore/entity-sets/all/{entitySetId}/metadata/ | Updates the EntitySet definition for the given EntitySet UUID with the given metadata. -*OpenLatticeApi.EdmApi* | [**updateEntitySetPropertyMetadata**](docs/EdmApi.md#updateEntitySetPropertyMetadata) | **POST** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Updates the property type metadata for the given entity set. *OpenLatticeApi.EdmApi* | [**updateEntityTypeMetaData**](docs/EdmApi.md#updateEntityTypeMetaData) | **PATCH** /datastore/edm/entity/type/{entityTypeId} | Updates the EntityType definition for the given EntityType UUID with the given metadata. *OpenLatticeApi.EdmApi* | [**updateEntityTypePropertyMetadata**](docs/EdmApi.md#updateEntityTypePropertyMetadata) | **POST** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Update EntityType Property metadata *OpenLatticeApi.EdmApi* | [**updatePropertyTypeMetaData**](docs/EdmApi.md#updatePropertyTypeMetaData) | **PATCH** /datastore/edm/property/type/{propertyTypeId} | Updates the PropertyType definition for the given PropertyType UUID with the given metadata. diff --git a/javascript/docs/EdmApi.md b/javascript/docs/EdmApi.md index e455210..96e51d3 100644 --- a/javascript/docs/EdmApi.md +++ b/javascript/docs/EdmApi.md @@ -5,27 +5,21 @@ All URIs are relative to *https://api.openlattice.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**addDstEntityTypeToAssociationType**](EdmApi.md#addDstEntityTypeToAssociationType) | **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. -[**addEntitySetsToLinkingEntitySet**](EdmApi.md#addEntitySetsToLinkingEntitySet) | **POST** /datastore/entity-sets/linking/{linkingEntitySetId} | Adds the entity sets as linked entity sets to the linking entity set -[**addEntitySetsToLinkingEntitySets**](EdmApi.md#addEntitySetsToLinkingEntitySets) | **PUT** /datastore/entity-sets/linking/ | Adds the entity sets as linked entity sets to the linking entity sets [**addPrimaryKeyToEntityType**](EdmApi.md#addPrimaryKeyToEntityType) | **PUT** /datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId} | Adds a primary key with a given ID to an entity type with a given ID. [**addPropertyTypeToEntityType**](EdmApi.md#addPropertyTypeToEntityType) | **PUT** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. [**addSrcEntityTypeToAssociationType**](EdmApi.md#addSrcEntityTypeToAssociationType) | **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. [**createAssociationType**](EdmApi.md#createAssociationType) | **POST** /datastore/edm/association/type/ | Creates a new AssociationType definition, if it doesn't exist. [**createEmptySchema**](EdmApi.md#createEmptySchema) | **PUT** /datastore/edm/schema/{namespace}/{name} | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. -[**createEntitySets**](EdmApi.md#createEntitySets) | **POST** /datastore/entity-sets | Creates new EntitySet definitions if they don't exist. [**createEntityType**](EdmApi.md#createEntityType) | **POST** /datastore/edm/entity/type/ | Creates a new EntityType definition, if it doesn't exist. [**createPropertyType**](EdmApi.md#createPropertyType) | **POST** /datastore/edm/property/type/ | Creates a new PropertyType definition, if it doesn\"t exist. [**createSchemaIfNotExists**](EdmApi.md#createSchemaIfNotExists) | **POST** /datastore/edm/schema | Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. [**deleteAssociationType**](EdmApi.md#deleteAssociationType) | **DELETE** /datastore/edm/association/type/{associationTypeId} | Deletes the AssociationType definition for the given AssociationType UUID. -[**deleteEntitySet**](EdmApi.md#deleteEntitySet) | **DELETE** /datastore/entity-sets/all/{entitySetId} | Deletes the EntitySet definition for the given EntitySet UUID. [**deleteEntityType**](EdmApi.md#deleteEntityType) | **DELETE** /datastore/edm/entity/type/{entityTypeId} | Deletes the EntityType definition for the given EntityType UUID. [**deletePropertyType**](EdmApi.md#deletePropertyType) | **DELETE** /datastore/edm/property/type/{propertyTypeId} | Deletes the PropertyType definition for the given PropertyType UUID. [**forceDeletePropertyType**](EdmApi.md#forceDeletePropertyType) | **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. [**forceRemovePropertyTypeFromEntityType**](EdmApi.md#forceRemovePropertyTypeFromEntityType) | **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. [**getAllAssociationEntityTypes**](EdmApi.md#getAllAssociationEntityTypes) | **GET** /datastore/edm/association/type/ | Gets all association EntityType definitions. [**getAllAvailableAssociationTypes**](EdmApi.md#getAllAvailableAssociationTypes) | **GET** /datastore/edm/association/type/{associationTypeId}/available | Get all available associations for the given AssociationType UUID. -[**getAllEntitySetPropertyMetadata**](EdmApi.md#getAllEntitySetPropertyMetadata) | **GET** /datastore/entity-sets/all/{entitySetId}/metadata | Get all entity set property metadata. -[**getAllEntitySets**](EdmApi.md#getAllEntitySets) | **GET** /datastore/entity-sets | Get all EntitySet definitions. [**getAllEntityTypePropertyMetadata**](EdmApi.md#getAllEntityTypePropertyMetadata) | **GET** /datastore/edm/entity/type/{entityTypeId}/property/type | Get all EntityType propertyType metadata [**getAllEntityTypes**](EdmApi.md#getAllEntityTypes) | **GET** /datastore/edm/entity/type/ | Gets all EntityType definitions. [**getAllPropertyTypes**](EdmApi.md#getAllPropertyTypes) | **GET** /datastore/edm/property/type/ | Gets all PropertyType definitions. @@ -35,32 +29,22 @@ Method | HTTP request | Description [**getAssociationTypeDetails**](EdmApi.md#getAssociationTypeDetails) | **GET** /datastore/edm/association/type/{associationTypeId}/detailed | Get details about the AssociationType for the given AssociationType UUID. [**getEntityDataModel**](EdmApi.md#getEntityDataModel) | **GET** /datastore/edm/ | Gets the entity data model, including namespaces, schemas, entity types, association types, and property types. [**getEntityDataModelDiff**](EdmApi.md#getEntityDataModelDiff) | **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. -[**getEntitySet**](EdmApi.md#getEntitySet) | **GET** /datastore/entity-sets/all/{entitySetId} | Get the EntitySet definition for the given EntitySet UUID. -[**getEntitySetId**](EdmApi.md#getEntitySetId) | **GET** /datastore/entity-sets/ids/{entitySetName} | Gets the EntitySet UUID for the given EntitySet name. -[**getEntitySetIds**](EdmApi.md#getEntitySetIds) | **POST** /datastore/entity-sets/ids/ | Get IDs for entity sets given their names. -[**getEntitySetPropertyMetadata**](EdmApi.md#getEntitySetPropertyMetadata) | **GET** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Get specified property type metadata for an entity set. [**getEntityType**](EdmApi.md#getEntityType) | **GET** /datastore/edm/entity/type/{entityTypeId} | Gets the EntityType definition for the given EntityType UUID. [**getEntityTypeHierarchy**](EdmApi.md#getEntityTypeHierarchy) | **PATCH** /datastore/edm/entity/type/{entityTypeId}/hierarchy | Get the EntityType hierarchy for the given EntityType UUID. [**getEntityTypeId**](EdmApi.md#getEntityTypeId) | **GET** /datastore/edm/ids/entity/type/{namespace}/{name} | Gets the EntityType UUID for the given EntityType FQN. [**getEntityTypePropertyMetadata**](EdmApi.md#getEntityTypePropertyMetadata) | **GET** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Get EntityType propertyType metadata -[**getPropertyMetadataForEntitySets**](EdmApi.md#getPropertyMetadataForEntitySets) | **POST** /datastore/entity-sets/all/metadata | Get property metadata for entity sets. [**getPropertyType**](EdmApi.md#getPropertyType) | **GET** /datastore/edm/property/type/{propertyTypeId} | Gets the PropertyType definition for the given PropertyType UUID. [**getPropertyTypeId**](EdmApi.md#getPropertyTypeId) | **GET** /datastore/edm/ids/property/type/{namespace}/{name} | Gets the PropertyType UUID for the given PropertyType FQN. -[**getPropertyTypesForEntitySet**](EdmApi.md#getPropertyTypesForEntitySet) | **GET** /datastore/entity-sets/all/{entitySetId}/properties | Get all Property Types for entity set [**getPropertyUsageSummary**](EdmApi.md#getPropertyUsageSummary) | **GET** /datastore/edm/summary/{propertyTypeId} | Get Property Usage Summary for property with given ID. [**getSchemaContents**](EdmApi.md#getSchemaContents) | **GET** /datastore/edm/schema/{namespace}/{name} | Gets the schema contents for a corresponding namespace and name. [**getSchemas**](EdmApi.md#getSchemas) | **GET** /datastore/edm/schema | Gets all schemas. [**getSchemasInNamespace**](EdmApi.md#getSchemasInNamespace) | **GET** /datastore/edm/schema/{namespace} | Gets all schemas associated with a given namespace and accessible by the caller. [**removeDstEntityTypeFromAssociationType**](EdmApi.md#removeDstEntityTypeFromAssociationType) | **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. -[**removeEntitySetsFromLinkingEntitySet**](EdmApi.md#removeEntitySetsFromLinkingEntitySet) | **DELETE** /datastore/entity-sets/linking/{linkingEntitySetId} | Removes/unlinks the linked entity sets from the linking entity set -[**removeEntitySetsFromLinkingEntitySets**](EdmApi.md#removeEntitySetsFromLinkingEntitySets) | **DELETE** /datastore/entity-sets/linking/ | Removes/unlinks the linked entity sets from the linking entity set [**removePrimaryKeyFromEntityType**](EdmApi.md#removePrimaryKeyFromEntityType) | **DELETE** /datastore/edm/entity/type/key/{entityTypeId}/{propertyTypeId} | Removes a primary key with a given ID from an entity type with a given ID. [**removePropertyTypeFromEntityType**](EdmApi.md#removePropertyTypeFromEntityType) | **DELETE** /datastore/edm/entity/type/{entityTypeId}/{propertyTypeId} | Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. [**removeSrcEntityTypeFromAssociationType**](EdmApi.md#removeSrcEntityTypeFromAssociationType) | **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. [**reorderPropertyTypesInEntityType**](EdmApi.md#reorderPropertyTypesInEntityType) | **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. [**updateEntityDataModel**](EdmApi.md#updateEntityDataModel) | **PATCH** /datastore/edm/ | Updates the entity data model, including schemas, entity types, association types, and property types. -[**updateEntitySetMetaData**](EdmApi.md#updateEntitySetMetaData) | **PATCH** /datastore/entity-sets/all/{entitySetId}/metadata/ | Updates the EntitySet definition for the given EntitySet UUID with the given metadata. -[**updateEntitySetPropertyMetadata**](EdmApi.md#updateEntitySetPropertyMetadata) | **POST** /datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/ | Updates the property type metadata for the given entity set. [**updateEntityTypeMetaData**](EdmApi.md#updateEntityTypeMetaData) | **PATCH** /datastore/edm/entity/type/{entityTypeId} | Updates the EntityType definition for the given EntityType UUID with the given metadata. [**updateEntityTypePropertyMetadata**](EdmApi.md#updateEntityTypePropertyMetadata) | **POST** /datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId} | Update EntityType Property metadata [**updatePropertyTypeMetaData**](EdmApi.md#updatePropertyTypeMetaData) | **PATCH** /datastore/edm/property/type/{propertyTypeId} | Updates the PropertyType definition for the given PropertyType UUID with the given metadata. @@ -122,116 +106,6 @@ null (empty response body) - **Accept**: Not defined -## addEntitySetsToLinkingEntitySet - -> Number addEntitySetsToLinkingEntitySet(linkingEntitySetId, opts) - -Adds the entity sets as linked entity sets to the linking entity set - -### Example - -```javascript -import OpenLatticeApi from 'open_lattice_api'; -let defaultClient = OpenLatticeApi.ApiClient.instance; -// Configure Bearer (JWT) access token for authorization: http_auth -let http_auth = defaultClient.authentications['http_auth']; -http_auth.accessToken = "YOUR ACCESS TOKEN" -// Configure API key authorization: openlattice_auth -let openlattice_auth = defaultClient.authentications['openlattice_auth']; -openlattice_auth.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//openlattice_auth.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenLatticeApi.EdmApi(); -let linkingEntitySetId = null; // String | -let opts = { - 'requestBody': ["null"] // [String] | -}; -apiInstance.addEntitySetsToLinkingEntitySet(linkingEntitySetId, opts, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **linkingEntitySetId** | [**String**](.md)| | - **requestBody** | [**[String]**](String.md)| | [optional] - -### Return type - -**Number** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addEntitySetsToLinkingEntitySets - -> Number addEntitySetsToLinkingEntitySets(linkingEntitySetId, requestBody) - -Adds the entity sets as linked entity sets to the linking entity sets - -### Example - -```javascript -import OpenLatticeApi from 'open_lattice_api'; -let defaultClient = OpenLatticeApi.ApiClient.instance; -// Configure Bearer (JWT) access token for authorization: http_auth -let http_auth = defaultClient.authentications['http_auth']; -http_auth.accessToken = "YOUR ACCESS TOKEN" -// Configure API key authorization: openlattice_auth -let openlattice_auth = defaultClient.authentications['openlattice_auth']; -openlattice_auth.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//openlattice_auth.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenLatticeApi.EdmApi(); -let linkingEntitySetId = "linkingEntitySetId_example"; // String | -let requestBody = {key: null}; // {String: [String]} | -apiInstance.addEntitySetsToLinkingEntitySets(linkingEntitySetId, requestBody, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **linkingEntitySetId** | **String**| | - **requestBody** | [**{String: [String]}**](Array.md)| | - -### Return type - -**Number** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - ## addPrimaryKeyToEntityType > addPrimaryKeyToEntityType(entityTypeId, propertyTypeId) @@ -491,58 +365,6 @@ null (empty response body) - **Accept**: Not defined -## createEntitySets - -> createEntitySets(entitySet) - -Creates new EntitySet definitions if they don't exist. - -### Example - -```javascript -import OpenLatticeApi from 'open_lattice_api'; -let defaultClient = OpenLatticeApi.ApiClient.instance; -// Configure Bearer (JWT) access token for authorization: http_auth -let http_auth = defaultClient.authentications['http_auth']; -http_auth.accessToken = "YOUR ACCESS TOKEN" -// Configure API key authorization: openlattice_auth -let openlattice_auth = defaultClient.authentications['openlattice_auth']; -openlattice_auth.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//openlattice_auth.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenLatticeApi.EdmApi(); -let entitySet = [new OpenLatticeApi.EntitySet()]; // [EntitySet] | -apiInstance.createEntitySets(entitySet, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entitySet** | [**[EntitySet]**](EntitySet.md)| | - -### Return type - -null (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 - - ## createEntityType > createEntityType(entityType) @@ -733,58 +555,6 @@ No authorization required - **Accept**: Not defined -## deleteEntitySet - -> deleteEntitySet(entitySetId) - -Deletes the EntitySet definition for the given EntitySet UUID. - -### Example - -```javascript -import OpenLatticeApi from 'open_lattice_api'; -let defaultClient = OpenLatticeApi.ApiClient.instance; -// Configure Bearer (JWT) access token for authorization: http_auth -let http_auth = defaultClient.authentications['http_auth']; -http_auth.accessToken = "YOUR ACCESS TOKEN" -// Configure API key authorization: openlattice_auth -let openlattice_auth = defaultClient.authentications['openlattice_auth']; -openlattice_auth.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//openlattice_auth.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenLatticeApi.EdmApi(); -let entitySetId = null; // String | -apiInstance.deleteEntitySet(entitySetId, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entitySetId** | [**String**](.md)| | - -### Return type - -null (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 - - ## deleteEntityType > deleteEntityType(entityTypeId) @@ -1086,11 +856,11 @@ Name | Type | Description | Notes - **Accept**: application/json -## getAllEntitySetPropertyMetadata +## getAllEntityTypePropertyMetadata -> {String: EntitySetPropertyMetaData} getAllEntitySetPropertyMetadata(entitySetId) +> {String: EntityTypePropertyMetadata} getAllEntityTypePropertyMetadata(entityTypeId) -Get all entity set property metadata. +Get all EntityType propertyType metadata ### Example @@ -1107,8 +877,8 @@ openlattice_auth.apiKey = 'YOUR API KEY'; //openlattice_auth.apiKeyPrefix = 'Token'; let apiInstance = new OpenLatticeApi.EdmApi(); -let entitySetId = null; // String | -apiInstance.getAllEntitySetPropertyMetadata(entitySetId, (error, data, response) => { +let entityTypeId = null; // String | +apiInstance.getAllEntityTypePropertyMetadata(entityTypeId, (error, data, response) => { if (error) { console.error(error); } else { @@ -1122,11 +892,11 @@ apiInstance.getAllEntitySetPropertyMetadata(entitySetId, (error, data, response) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entitySetId** | [**String**](.md)| | + **entityTypeId** | [**String**](.md)| | ### Return type -[**{String: EntitySetPropertyMetaData}**](EntitySetPropertyMetaData.md) +[**{String: EntityTypePropertyMetadata}**](EntityTypePropertyMetadata.md) ### Authorization @@ -1138,11 +908,11 @@ Name | Type | Description | Notes - **Accept**: application/json -## getAllEntitySets +## getAllEntityTypes -> [EntitySet] getAllEntitySets() +> [EntityType] getAllEntityTypes() -Get all EntitySet definitions. +Gets all EntityType definitions. ### Example @@ -1159,7 +929,7 @@ openlattice_auth.apiKey = 'YOUR API KEY'; //openlattice_auth.apiKeyPrefix = 'Token'; let apiInstance = new OpenLatticeApi.EdmApi(); -apiInstance.getAllEntitySets((error, data, response) => { +apiInstance.getAllEntityTypes((error, data, response) => { if (error) { console.error(error); } else { @@ -1174,7 +944,7 @@ This endpoint does not need any parameter. ### Return type -[**[EntitySet]**](EntitySet.md) +[**[EntityType]**](EntityType.md) ### Authorization @@ -1186,11 +956,11 @@ This endpoint does not need any parameter. - **Accept**: application/json -## getAllEntityTypePropertyMetadata +## getAllPropertyTypes -> {String: EntityTypePropertyMetadata} getAllEntityTypePropertyMetadata(entityTypeId) +> [PropertyType] getAllPropertyTypes() -Get all EntityType propertyType metadata +Gets all PropertyType definitions. ### Example @@ -1207,8 +977,7 @@ openlattice_auth.apiKey = 'YOUR API KEY'; //openlattice_auth.apiKeyPrefix = 'Token'; let apiInstance = new OpenLatticeApi.EdmApi(); -let entityTypeId = null; // String | -apiInstance.getAllEntityTypePropertyMetadata(entityTypeId, (error, data, response) => { +apiInstance.getAllPropertyTypes((error, data, response) => { if (error) { console.error(error); } else { @@ -1219,14 +988,11 @@ apiInstance.getAllEntityTypePropertyMetadata(entityTypeId, (error, data, respons ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entityTypeId** | [**String**](.md)| | +This endpoint does not need any parameter. ### Return type -[**{String: EntityTypePropertyMetadata}**](EntityTypePropertyMetadata.md) +[**[PropertyType]**](PropertyType.md) ### Authorization @@ -1238,11 +1004,11 @@ Name | Type | Description | Notes - **Accept**: application/json -## getAllEntityTypes +## getAllPropertyTypesInNamespace -> [EntityType] getAllEntityTypes() +> [PropertyType] getAllPropertyTypesInNamespace(namespace) -Gets all EntityType definitions. +Gets all PropertyType definitions under the given namespace. ### Example @@ -1259,7 +1025,8 @@ openlattice_auth.apiKey = 'YOUR API KEY'; //openlattice_auth.apiKeyPrefix = 'Token'; let apiInstance = new OpenLatticeApi.EdmApi(); -apiInstance.getAllEntityTypes((error, data, response) => { +let namespace = "namespace_example"; // String | +apiInstance.getAllPropertyTypesInNamespace(namespace, (error, data, response) => { if (error) { console.error(error); } else { @@ -1270,11 +1037,14 @@ apiInstance.getAllEntityTypes((error, data, response) => { ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| | ### Return type -[**[EntityType]**](EntityType.md) +[**[PropertyType]**](PropertyType.md) ### Authorization @@ -1286,11 +1056,11 @@ This endpoint does not need any parameter. - **Accept**: application/json -## getAllPropertyTypes +## getAllPropertyUsageSummaries -> [PropertyType] getAllPropertyTypes() +> {String: PropertyUsageSummary} getAllPropertyUsageSummaries() -Gets all PropertyType definitions. +Get Property Usage Summary for all properties. ### Example @@ -1307,7 +1077,7 @@ openlattice_auth.apiKey = 'YOUR API KEY'; //openlattice_auth.apiKeyPrefix = 'Token'; let apiInstance = new OpenLatticeApi.EdmApi(); -apiInstance.getAllPropertyTypes((error, data, response) => { +apiInstance.getAllPropertyUsageSummaries((error, data, response) => { if (error) { console.error(error); } else { @@ -1322,7 +1092,7 @@ This endpoint does not need any parameter. ### Return type -[**[PropertyType]**](PropertyType.md) +[**{String: PropertyUsageSummary}**](PropertyUsageSummary.md) ### Authorization @@ -1334,11 +1104,11 @@ This endpoint does not need any parameter. - **Accept**: application/json -## getAllPropertyTypesInNamespace +## getAssociationType -> [PropertyType] getAllPropertyTypesInNamespace(namespace) +> AssociationType getAssociationType(associationTypeId) -Gets all PropertyType definitions under the given namespace. +Get the AssociationType definition for the given AssociationType UUID. ### Example @@ -1355,8 +1125,8 @@ openlattice_auth.apiKey = 'YOUR API KEY'; //openlattice_auth.apiKeyPrefix = 'Token'; let apiInstance = new OpenLatticeApi.EdmApi(); -let namespace = "namespace_example"; // String | -apiInstance.getAllPropertyTypesInNamespace(namespace, (error, data, response) => { +let associationTypeId = null; // String | +apiInstance.getAssociationType(associationTypeId, (error, data, response) => { if (error) { console.error(error); } else { @@ -1370,11 +1140,11 @@ apiInstance.getAllPropertyTypesInNamespace(namespace, (error, data, response) => Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **String**| | + **associationTypeId** | [**String**](.md)| | ### Return type -[**[PropertyType]**](PropertyType.md) +[**AssociationType**](AssociationType.md) ### Authorization @@ -1386,109 +1156,9 @@ Name | Type | Description | Notes - **Accept**: application/json -## getAllPropertyUsageSummaries +## getAssociationTypeDetails -> {String: PropertyUsageSummary} getAllPropertyUsageSummaries() - -Get Property Usage Summary for all properties. - -### Example - -```javascript -import OpenLatticeApi from 'open_lattice_api'; -let defaultClient = OpenLatticeApi.ApiClient.instance; -// Configure Bearer (JWT) access token for authorization: http_auth -let http_auth = defaultClient.authentications['http_auth']; -http_auth.accessToken = "YOUR ACCESS TOKEN" -// Configure API key authorization: openlattice_auth -let openlattice_auth = defaultClient.authentications['openlattice_auth']; -openlattice_auth.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//openlattice_auth.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenLatticeApi.EdmApi(); -apiInstance.getAllPropertyUsageSummaries((error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**{String: PropertyUsageSummary}**](PropertyUsageSummary.md) - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getAssociationType - -> AssociationType getAssociationType(associationTypeId) - -Get the AssociationType definition for the given AssociationType UUID. - -### Example - -```javascript -import OpenLatticeApi from 'open_lattice_api'; -let defaultClient = OpenLatticeApi.ApiClient.instance; -// Configure Bearer (JWT) access token for authorization: http_auth -let http_auth = defaultClient.authentications['http_auth']; -http_auth.accessToken = "YOUR ACCESS TOKEN" -// Configure API key authorization: openlattice_auth -let openlattice_auth = defaultClient.authentications['openlattice_auth']; -openlattice_auth.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//openlattice_auth.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenLatticeApi.EdmApi(); -let associationTypeId = null; // String | -apiInstance.getAssociationType(associationTypeId, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **associationTypeId** | [**String**](.md)| | - -### Return type - -[**AssociationType**](AssociationType.md) - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getAssociationTypeDetails - -> AssociationType getAssociationTypeDetails(associationTypeId) +> AssociationType getAssociationTypeDetails(associationTypeId) Get details about the AssociationType for the given AssociationType UUID. @@ -1629,218 +1299,6 @@ Name | Type | Description | Notes - **Accept**: application/json -## getEntitySet - -> EntitySet getEntitySet(entitySetId) - -Get the EntitySet definition for the given EntitySet UUID. - -### Example - -```javascript -import OpenLatticeApi from 'open_lattice_api'; -let defaultClient = OpenLatticeApi.ApiClient.instance; -// Configure Bearer (JWT) access token for authorization: http_auth -let http_auth = defaultClient.authentications['http_auth']; -http_auth.accessToken = "YOUR ACCESS TOKEN" -// Configure API key authorization: openlattice_auth -let openlattice_auth = defaultClient.authentications['openlattice_auth']; -openlattice_auth.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//openlattice_auth.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenLatticeApi.EdmApi(); -let entitySetId = null; // String | -apiInstance.getEntitySet(entitySetId, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entitySetId** | [**String**](.md)| | - -### Return type - -[**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 - - -## getEntitySetId - -> String getEntitySetId(entitySetName) - -Gets the EntitySet UUID for the given EntitySet name. - -### Example - -```javascript -import OpenLatticeApi from 'open_lattice_api'; -let defaultClient = OpenLatticeApi.ApiClient.instance; -// Configure Bearer (JWT) access token for authorization: http_auth -let http_auth = defaultClient.authentications['http_auth']; -http_auth.accessToken = "YOUR ACCESS TOKEN" -// Configure API key authorization: openlattice_auth -let openlattice_auth = defaultClient.authentications['openlattice_auth']; -openlattice_auth.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//openlattice_auth.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenLatticeApi.EdmApi(); -let entitySetName = "entitySetName_example"; // String | -apiInstance.getEntitySetId(entitySetName, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entitySetName** | **String**| | - -### Return type - -**String** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getEntitySetIds - -> {String: String} getEntitySetIds(opts) - -Get IDs for entity sets given their names. - -### Example - -```javascript -import OpenLatticeApi from 'open_lattice_api'; -let defaultClient = OpenLatticeApi.ApiClient.instance; -// Configure Bearer (JWT) access token for authorization: http_auth -let http_auth = defaultClient.authentications['http_auth']; -http_auth.accessToken = "YOUR ACCESS TOKEN" -// Configure API key authorization: openlattice_auth -let openlattice_auth = defaultClient.authentications['openlattice_auth']; -openlattice_auth.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//openlattice_auth.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenLatticeApi.EdmApi(); -let opts = { - 'requestBody': ["null"] // [String] | -}; -apiInstance.getEntitySetIds(opts, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **requestBody** | [**[String]**](String.md)| | [optional] - -### Return type - -**{String: String}** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## getEntitySetPropertyMetadata - -> EntitySetPropertyMetaData getEntitySetPropertyMetadata(entitySetId, propertyTypeId) - -Get specified property type metadata for an entity set. - -### Example - -```javascript -import OpenLatticeApi from 'open_lattice_api'; -let defaultClient = OpenLatticeApi.ApiClient.instance; -// Configure Bearer (JWT) access token for authorization: http_auth -let http_auth = defaultClient.authentications['http_auth']; -http_auth.accessToken = "YOUR ACCESS TOKEN" -// Configure API key authorization: openlattice_auth -let openlattice_auth = defaultClient.authentications['openlattice_auth']; -openlattice_auth.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//openlattice_auth.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenLatticeApi.EdmApi(); -let entitySetId = null; // String | -let propertyTypeId = null; // String | -apiInstance.getEntitySetPropertyMetadata(entitySetId, propertyTypeId, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entitySetId** | [**String**](.md)| | - **propertyTypeId** | [**String**](.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 - - ## getEntityType > EntityType getEntityType(entityTypeId) @@ -1876,113 +1334,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getEntityTypeHierarchy - -> getEntityTypeHierarchy(entityTypeId) - -Get the EntityType hierarchy for the given EntityType UUID. - -### Example - -```javascript -import OpenLatticeApi from 'open_lattice_api'; -let defaultClient = OpenLatticeApi.ApiClient.instance; -// Configure Bearer (JWT) access token for authorization: http_auth -let http_auth = defaultClient.authentications['http_auth']; -http_auth.accessToken = "YOUR ACCESS TOKEN" -// Configure API key authorization: openlattice_auth -let openlattice_auth = defaultClient.authentications['openlattice_auth']; -openlattice_auth.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//openlattice_auth.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenLatticeApi.EdmApi(); -let entityTypeId = null; // String | -apiInstance.getEntityTypeHierarchy(entityTypeId, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entityTypeId** | [**String**](.md)| | - -### Return type - -null (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 - - -## getEntityTypeId - -> String getEntityTypeId(namespace, name) - -Gets the EntityType UUID for the given EntityType FQN. - -### Example - -```javascript -import OpenLatticeApi from 'open_lattice_api'; -let defaultClient = OpenLatticeApi.ApiClient.instance; -// Configure Bearer (JWT) access token for authorization: http_auth -let http_auth = defaultClient.authentications['http_auth']; -http_auth.accessToken = "YOUR ACCESS TOKEN" -// Configure API key authorization: openlattice_auth -let openlattice_auth = defaultClient.authentications['openlattice_auth']; -openlattice_auth.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//openlattice_auth.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenLatticeApi.EdmApi(); -let namespace = openlattice; // String | -let name = myentitytype; // String | -apiInstance.getEntityTypeId(namespace, name, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| | - **name** | **String**| | - -### Return type - -**String** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) +No authorization required ### HTTP request headers @@ -1990,11 +1342,11 @@ Name | Type | Description | Notes - **Accept**: application/json -## getEntityTypePropertyMetadata +## getEntityTypeHierarchy -> EntityTypePropertyMetadata getEntityTypePropertyMetadata(entityTypeId, propertyTypeId) +> getEntityTypeHierarchy(entityTypeId) -Get EntityType propertyType metadata +Get the EntityType hierarchy for the given EntityType UUID. ### Example @@ -2012,12 +1364,11 @@ openlattice_auth.apiKey = 'YOUR API KEY'; let apiInstance = new OpenLatticeApi.EdmApi(); let entityTypeId = null; // String | -let propertyTypeId = null; // String | -apiInstance.getEntityTypePropertyMetadata(entityTypeId, propertyTypeId, (error, data, response) => { +apiInstance.getEntityTypeHierarchy(entityTypeId, (error, data, response) => { if (error) { console.error(error); } else { - console.log('API called successfully. Returned data: ' + data); + console.log('API called successfully.'); } }); ``` @@ -2028,11 +1379,10 @@ apiInstance.getEntityTypePropertyMetadata(entityTypeId, propertyTypeId, (error, Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **entityTypeId** | [**String**](.md)| | - **propertyTypeId** | [**String**](.md)| | ### Return type -[**EntityTypePropertyMetadata**](EntityTypePropertyMetadata.md) +null (empty response body) ### Authorization @@ -2041,14 +1391,14 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: Not defined -## getPropertyMetadataForEntitySets +## getEntityTypeId -> {String: {String: EntitySetPropertyMetaData}} getPropertyMetadataForEntitySets(opts) +> String getEntityTypeId(namespace, name) -Get property metadata for entity sets. +Gets the EntityType UUID for the given EntityType FQN. ### Example @@ -2065,10 +1415,9 @@ openlattice_auth.apiKey = 'YOUR API KEY'; //openlattice_auth.apiKeyPrefix = 'Token'; let apiInstance = new OpenLatticeApi.EdmApi(); -let opts = { - 'requestBody': ["null"] // [String] | -}; -apiInstance.getPropertyMetadataForEntitySets(opts, (error, data, response) => { +let namespace = openlattice; // String | +let name = myentitytype; // String | +apiInstance.getEntityTypeId(namespace, name, (error, data, response) => { if (error) { console.error(error); } else { @@ -2082,11 +1431,12 @@ apiInstance.getPropertyMetadataForEntitySets(opts, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**[String]**](String.md)| | [optional] + **namespace** | **String**| | + **name** | **String**| | ### Return type -**{String: {String: EntitySetPropertyMetaData}}** +**String** ### Authorization @@ -2094,15 +1444,15 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## getPropertyType +## getEntityTypePropertyMetadata -> PropertyType getPropertyType(propertyTypeId) +> EntityTypePropertyMetadata getEntityTypePropertyMetadata(entityTypeId, propertyTypeId) -Gets the PropertyType definition for the given PropertyType UUID. +Get EntityType propertyType metadata ### Example @@ -2119,8 +1469,9 @@ openlattice_auth.apiKey = 'YOUR API KEY'; //openlattice_auth.apiKeyPrefix = 'Token'; let apiInstance = new OpenLatticeApi.EdmApi(); +let entityTypeId = null; // String | let propertyTypeId = null; // String | -apiInstance.getPropertyType(propertyTypeId, (error, data, response) => { +apiInstance.getEntityTypePropertyMetadata(entityTypeId, propertyTypeId, (error, data, response) => { if (error) { console.error(error); } else { @@ -2134,11 +1485,12 @@ apiInstance.getPropertyType(propertyTypeId, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **entityTypeId** | [**String**](.md)| | **propertyTypeId** | [**String**](.md)| | ### Return type -[**PropertyType**](PropertyType.md) +[**EntityTypePropertyMetadata**](EntityTypePropertyMetadata.md) ### Authorization @@ -2150,11 +1502,11 @@ Name | Type | Description | Notes - **Accept**: application/json -## getPropertyTypeId +## getPropertyType -> String getPropertyTypeId(namespace, name) +> PropertyType getPropertyType(propertyTypeId) -Gets the PropertyType UUID for the given PropertyType FQN. +Gets the PropertyType definition for the given PropertyType UUID. ### Example @@ -2171,9 +1523,8 @@ openlattice_auth.apiKey = 'YOUR API KEY'; //openlattice_auth.apiKeyPrefix = 'Token'; let apiInstance = new OpenLatticeApi.EdmApi(); -let namespace = "namespace_example"; // String | -let name = "name_example"; // String | -apiInstance.getPropertyTypeId(namespace, name, (error, data, response) => { +let propertyTypeId = null; // String | +apiInstance.getPropertyType(propertyTypeId, (error, data, response) => { if (error) { console.error(error); } else { @@ -2187,12 +1538,11 @@ apiInstance.getPropertyTypeId(namespace, name, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **String**| | - **name** | **String**| | + **propertyTypeId** | [**String**](.md)| | ### Return type -**String** +[**PropertyType**](PropertyType.md) ### Authorization @@ -2204,11 +1554,11 @@ Name | Type | Description | Notes - **Accept**: application/json -## getPropertyTypesForEntitySet +## getPropertyTypeId -> {String: PropertyType} getPropertyTypesForEntitySet(entitySetId) +> String getPropertyTypeId(namespace, name) -Get all Property Types for entity set +Gets the PropertyType UUID for the given PropertyType FQN. ### Example @@ -2225,8 +1575,9 @@ openlattice_auth.apiKey = 'YOUR API KEY'; //openlattice_auth.apiKeyPrefix = 'Token'; let apiInstance = new OpenLatticeApi.EdmApi(); -let entitySetId = null; // String | -apiInstance.getPropertyTypesForEntitySet(entitySetId, (error, data, response) => { +let namespace = "namespace_example"; // String | +let name = "name_example"; // String | +apiInstance.getPropertyTypeId(namespace, name, (error, data, response) => { if (error) { console.error(error); } else { @@ -2240,11 +1591,12 @@ apiInstance.getPropertyTypesForEntitySet(entitySetId, (error, data, response) => Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entitySetId** | [**String**](.md)| | + **namespace** | **String**| | + **name** | **String**| | ### Return type -[**{String: PropertyType}**](PropertyType.md) +**String** ### Authorization @@ -2520,116 +1872,6 @@ null (empty response body) - **Accept**: Not defined -## removeEntitySetsFromLinkingEntitySet - -> Number removeEntitySetsFromLinkingEntitySet(linkingEntitySetId, opts) - -Removes/unlinks the linked entity sets from the linking entity set - -### Example - -```javascript -import OpenLatticeApi from 'open_lattice_api'; -let defaultClient = OpenLatticeApi.ApiClient.instance; -// Configure Bearer (JWT) access token for authorization: http_auth -let http_auth = defaultClient.authentications['http_auth']; -http_auth.accessToken = "YOUR ACCESS TOKEN" -// Configure API key authorization: openlattice_auth -let openlattice_auth = defaultClient.authentications['openlattice_auth']; -openlattice_auth.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//openlattice_auth.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenLatticeApi.EdmApi(); -let linkingEntitySetId = "linkingEntitySetId_example"; // String | -let opts = { - 'requestBody': ["null"] // [String] | -}; -apiInstance.removeEntitySetsFromLinkingEntitySet(linkingEntitySetId, opts, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **linkingEntitySetId** | **String**| | - **requestBody** | [**[String]**](String.md)| | [optional] - -### Return type - -**Number** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## removeEntitySetsFromLinkingEntitySets - -> Number removeEntitySetsFromLinkingEntitySets(linkingEntitySetId, requestBody) - -Removes/unlinks the linked entity sets from the linking entity set - -### Example - -```javascript -import OpenLatticeApi from 'open_lattice_api'; -let defaultClient = OpenLatticeApi.ApiClient.instance; -// Configure Bearer (JWT) access token for authorization: http_auth -let http_auth = defaultClient.authentications['http_auth']; -http_auth.accessToken = "YOUR ACCESS TOKEN" -// Configure API key authorization: openlattice_auth -let openlattice_auth = defaultClient.authentications['openlattice_auth']; -openlattice_auth.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//openlattice_auth.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenLatticeApi.EdmApi(); -let linkingEntitySetId = null; // String | -let requestBody = {key: null}; // {String: [String]} | -apiInstance.removeEntitySetsFromLinkingEntitySets(linkingEntitySetId, requestBody, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **linkingEntitySetId** | [**String**](.md)| | - **requestBody** | [**{String: [String]}**](Array.md)| | - -### Return type - -**Number** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - ## removePrimaryKeyFromEntityType > removePrimaryKeyFromEntityType(entityTypeId, propertyTypeId) @@ -2898,116 +2140,6 @@ null (empty response body) - **Accept**: Not defined -## updateEntitySetMetaData - -> Number updateEntitySetMetaData(entitySetId, metadataUpdate) - -Updates the EntitySet definition for the given EntitySet UUID with the given metadata. - -### Example - -```javascript -import OpenLatticeApi from 'open_lattice_api'; -let defaultClient = OpenLatticeApi.ApiClient.instance; -// Configure Bearer (JWT) access token for authorization: http_auth -let http_auth = defaultClient.authentications['http_auth']; -http_auth.accessToken = "YOUR ACCESS TOKEN" -// Configure API key authorization: openlattice_auth -let openlattice_auth = defaultClient.authentications['openlattice_auth']; -openlattice_auth.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//openlattice_auth.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenLatticeApi.EdmApi(); -let entitySetId = null; // String | -let metadataUpdate = new OpenLatticeApi.MetadataUpdate(); // MetadataUpdate | -apiInstance.updateEntitySetMetaData(entitySetId, metadataUpdate, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entitySetId** | [**String**](.md)| | - **metadataUpdate** | [**MetadataUpdate**](MetadataUpdate.md)| | - -### Return type - -**Number** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## updateEntitySetPropertyMetadata - -> updateEntitySetPropertyMetadata(entitySetId, propertyTypeId, metadataUpdate) - -Updates the property type metadata for the given entity set. - -### Example - -```javascript -import OpenLatticeApi from 'open_lattice_api'; -let defaultClient = OpenLatticeApi.ApiClient.instance; -// Configure Bearer (JWT) access token for authorization: http_auth -let http_auth = defaultClient.authentications['http_auth']; -http_auth.accessToken = "YOUR ACCESS TOKEN" -// Configure API key authorization: openlattice_auth -let openlattice_auth = defaultClient.authentications['openlattice_auth']; -openlattice_auth.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//openlattice_auth.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenLatticeApi.EdmApi(); -let entitySetId = null; // String | -let propertyTypeId = null; // String | -let metadataUpdate = new OpenLatticeApi.MetadataUpdate(); // MetadataUpdate | -apiInstance.updateEntitySetPropertyMetadata(entitySetId, propertyTypeId, metadataUpdate, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entitySetId** | [**String**](.md)| | - **propertyTypeId** | [**String**](.md)| | - **metadataUpdate** | [**MetadataUpdate**](MetadataUpdate.md)| | - -### Return type - -null (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 - - ## updateEntityTypeMetaData > updateEntityTypeMetaData(entityTypeId, metadataUpdate) diff --git a/javascript/src/api/EdmApi.js b/javascript/src/api/EdmApi.js index 39f7d59..109a6c1 100644 --- a/javascript/src/api/EdmApi.js +++ b/javascript/src/api/EdmApi.js @@ -17,8 +17,6 @@ import AssociationType from '../model/AssociationType'; import EDM from '../model/EDM'; import EDMdiff from '../model/EDMdiff'; import EdmRequest from '../model/EdmRequest'; -import EntitySet from '../model/EntitySet'; -import EntitySetPropertyMetaData from '../model/EntitySetPropertyMetaData'; import EntityType from '../model/EntityType'; import EntityTypePropertyMetadata from '../model/EntityTypePropertyMetadata'; import MetadataUpdate from '../model/MetadataUpdate'; @@ -92,98 +90,6 @@ export default class EdmApi { ); } - /** - * Callback function to receive the result of the addEntitySetsToLinkingEntitySet operation. - * @callback module:api/EdmApi~addEntitySetsToLinkingEntitySetCallback - * @param {String} error Error message, if any. - * @param {Number} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Adds the entity sets as linked entity sets to the linking entity set - * @param {String} linkingEntitySetId - * @param {Object} opts Optional parameters - * @param {Array.} opts.requestBody - * @param {module:api/EdmApi~addEntitySetsToLinkingEntitySetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Number} - */ - addEntitySetsToLinkingEntitySet(linkingEntitySetId, opts, callback) { - opts = opts || {}; - let postBody = opts['requestBody']; - // verify the required parameter 'linkingEntitySetId' is set - if (linkingEntitySetId === undefined || linkingEntitySetId === null) { - throw new Error("Missing the required parameter 'linkingEntitySetId' when calling addEntitySetsToLinkingEntitySet"); - } - - let pathParams = { - 'linkingEntitySetId': linkingEntitySetId - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['http_auth', 'openlattice_auth']; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = 'Number'; - return this.apiClient.callApi( - '/datastore/entity-sets/linking/{linkingEntitySetId}', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the addEntitySetsToLinkingEntitySets operation. - * @callback module:api/EdmApi~addEntitySetsToLinkingEntitySetsCallback - * @param {String} error Error message, if any. - * @param {Number} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Adds the entity sets as linked entity sets to the linking entity sets - * @param {String} linkingEntitySetId - * @param {Object.} requestBody - * @param {module:api/EdmApi~addEntitySetsToLinkingEntitySetsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Number} - */ - addEntitySetsToLinkingEntitySets(linkingEntitySetId, requestBody, callback) { - let postBody = requestBody; - // verify the required parameter 'linkingEntitySetId' is set - if (linkingEntitySetId === undefined || linkingEntitySetId === null) { - throw new Error("Missing the required parameter 'linkingEntitySetId' when calling addEntitySetsToLinkingEntitySets"); - } - // verify the required parameter 'requestBody' is set - if (requestBody === undefined || requestBody === null) { - throw new Error("Missing the required parameter 'requestBody' when calling addEntitySetsToLinkingEntitySets"); - } - - let pathParams = { - 'linkingEntitySetId': linkingEntitySetId - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['http_auth', 'openlattice_auth']; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = 'Number'; - return this.apiClient.callApi( - '/datastore/entity-sets/linking/', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - /** * Callback function to receive the result of the addPrimaryKeyToEntityType operation. * @callback module:api/EdmApi~addPrimaryKeyToEntityTypeCallback @@ -412,46 +318,6 @@ export default class EdmApi { ); } - /** - * Callback function to receive the result of the createEntitySets operation. - * @callback module:api/EdmApi~createEntitySetsCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Creates new EntitySet definitions if they don't exist. - * @param {Array.} entitySet - * @param {module:api/EdmApi~createEntitySetsCallback} callback The callback function, accepting three arguments: error, data, response - */ - createEntitySets(entitySet, callback) { - let postBody = entitySet; - // verify the required parameter 'entitySet' is set - if (entitySet === undefined || entitySet === null) { - throw new Error("Missing the required parameter 'entitySet' when calling createEntitySets"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['http_auth', 'openlattice_auth']; - let contentTypes = ['application/json']; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/datastore/entity-sets', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - /** * Callback function to receive the result of the createEntityType operation. * @callback module:api/EdmApi~createEntityTypeCallback @@ -613,47 +479,6 @@ export default class EdmApi { ); } - /** - * Callback function to receive the result of the deleteEntitySet operation. - * @callback module:api/EdmApi~deleteEntitySetCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Deletes the EntitySet definition for the given EntitySet UUID. - * @param {String} entitySetId - * @param {module:api/EdmApi~deleteEntitySetCallback} callback The callback function, accepting three arguments: error, data, response - */ - deleteEntitySet(entitySetId, callback) { - let postBody = null; - // verify the required parameter 'entitySetId' is set - if (entitySetId === undefined || entitySetId === null) { - throw new Error("Missing the required parameter 'entitySetId' when calling deleteEntitySet"); - } - - let pathParams = { - 'entitySetId': entitySetId - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['http_auth', 'openlattice_auth']; - let contentTypes = []; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/datastore/entity-sets/all/{entitySetId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - /** * Callback function to receive the result of the deleteEntityType operation. * @callback module:api/EdmApi~deleteEntityTypeCallback @@ -902,84 +727,6 @@ export default class EdmApi { ); } - /** - * Callback function to receive the result of the getAllEntitySetPropertyMetadata operation. - * @callback module:api/EdmApi~getAllEntitySetPropertyMetadataCallback - * @param {String} error Error message, if any. - * @param {Object.} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Get all entity set property metadata. - * @param {String} entitySetId - * @param {module:api/EdmApi~getAllEntitySetPropertyMetadataCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Object.} - */ - getAllEntitySetPropertyMetadata(entitySetId, callback) { - let postBody = null; - // verify the required parameter 'entitySetId' is set - if (entitySetId === undefined || entitySetId === null) { - throw new Error("Missing the required parameter 'entitySetId' when calling getAllEntitySetPropertyMetadata"); - } - - let pathParams = { - 'entitySetId': entitySetId - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['http_auth', 'openlattice_auth']; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = {'String': EntitySetPropertyMetaData}; - return this.apiClient.callApi( - '/datastore/entity-sets/all/{entitySetId}/metadata', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the getAllEntitySets operation. - * @callback module:api/EdmApi~getAllEntitySetsCallback - * @param {String} error Error message, if any. - * @param {Array.} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Get all EntitySet definitions. - * @param {module:api/EdmApi~getAllEntitySetsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Array.} - */ - getAllEntitySets(callback) { - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['http_auth', 'openlattice_auth']; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = [EntitySet]; - return this.apiClient.callApi( - '/datastore/entity-sets', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - /** * Callback function to receive the result of the getAllEntityTypePropertyMetadata operation. * @callback module:api/EdmApi~getAllEntityTypePropertyMetadataCallback @@ -1333,177 +1080,6 @@ export default class EdmApi { ); } - /** - * Callback function to receive the result of the getEntitySet operation. - * @callback module:api/EdmApi~getEntitySetCallback - * @param {String} error Error message, if any. - * @param {module:model/EntitySet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Get the EntitySet definition for the given EntitySet UUID. - * @param {String} entitySetId - * @param {module:api/EdmApi~getEntitySetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/EntitySet} - */ - getEntitySet(entitySetId, callback) { - let postBody = null; - // verify the required parameter 'entitySetId' is set - if (entitySetId === undefined || entitySetId === null) { - throw new Error("Missing the required parameter 'entitySetId' when calling getEntitySet"); - } - - let pathParams = { - 'entitySetId': entitySetId - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['http_auth', 'openlattice_auth']; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = EntitySet; - return this.apiClient.callApi( - '/datastore/entity-sets/all/{entitySetId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the getEntitySetId operation. - * @callback module:api/EdmApi~getEntitySetIdCallback - * @param {String} error Error message, if any. - * @param {String} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Gets the EntitySet UUID for the given EntitySet name. - * @param {String} entitySetName - * @param {module:api/EdmApi~getEntitySetIdCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link String} - */ - getEntitySetId(entitySetName, callback) { - let postBody = null; - // verify the required parameter 'entitySetName' is set - if (entitySetName === undefined || entitySetName === null) { - throw new Error("Missing the required parameter 'entitySetName' when calling getEntitySetId"); - } - - let pathParams = { - 'entitySetName': entitySetName - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['http_auth', 'openlattice_auth']; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = 'String'; - return this.apiClient.callApi( - '/datastore/entity-sets/ids/{entitySetName}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the getEntitySetIds operation. - * @callback module:api/EdmApi~getEntitySetIdsCallback - * @param {String} error Error message, if any. - * @param {Object.} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Get IDs for entity sets given their names. - * @param {Object} opts Optional parameters - * @param {Array.} opts.requestBody - * @param {module:api/EdmApi~getEntitySetIdsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Object.} - */ - getEntitySetIds(opts, callback) { - opts = opts || {}; - let postBody = opts['requestBody']; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['http_auth', 'openlattice_auth']; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = {'String': 'String'}; - return this.apiClient.callApi( - '/datastore/entity-sets/ids/', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the getEntitySetPropertyMetadata operation. - * @callback module:api/EdmApi~getEntitySetPropertyMetadataCallback - * @param {String} error Error message, if any. - * @param {module:model/EntitySetPropertyMetaData} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Get specified property type metadata for an entity set. - * @param {String} entitySetId - * @param {String} propertyTypeId - * @param {module:api/EdmApi~getEntitySetPropertyMetadataCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/EntitySetPropertyMetaData} - */ - getEntitySetPropertyMetadata(entitySetId, propertyTypeId, callback) { - let postBody = null; - // verify the required parameter 'entitySetId' is set - if (entitySetId === undefined || entitySetId === null) { - throw new Error("Missing the required parameter 'entitySetId' when calling getEntitySetPropertyMetadata"); - } - // verify the required parameter 'propertyTypeId' is set - if (propertyTypeId === undefined || propertyTypeId === null) { - throw new Error("Missing the required parameter 'propertyTypeId' when calling getEntitySetPropertyMetadata"); - } - - let pathParams = { - 'entitySetId': entitySetId, - 'propertyTypeId': propertyTypeId - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['http_auth', 'openlattice_auth']; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = EntitySetPropertyMetaData; - return this.apiClient.callApi( - '/datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - /** * Callback function to receive the result of the getEntityType operation. * @callback module:api/EdmApi~getEntityTypeCallback @@ -1683,45 +1259,6 @@ export default class EdmApi { ); } - /** - * Callback function to receive the result of the getPropertyMetadataForEntitySets operation. - * @callback module:api/EdmApi~getPropertyMetadataForEntitySetsCallback - * @param {String} error Error message, if any. - * @param {Object.} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Get property metadata for entity sets. - * @param {Object} opts Optional parameters - * @param {Array.} opts.requestBody - * @param {module:api/EdmApi~getPropertyMetadataForEntitySetsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Object.} - */ - getPropertyMetadataForEntitySets(opts, callback) { - opts = opts || {}; - let postBody = opts['requestBody']; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['http_auth', 'openlattice_auth']; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = {'String': {'String': EntitySetPropertyMetaData}}; - return this.apiClient.callApi( - '/datastore/entity-sets/all/metadata', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - /** * Callback function to receive the result of the getPropertyType operation. * @callback module:api/EdmApi~getPropertyTypeCallback @@ -1812,48 +1349,6 @@ export default class EdmApi { ); } - /** - * Callback function to receive the result of the getPropertyTypesForEntitySet operation. - * @callback module:api/EdmApi~getPropertyTypesForEntitySetCallback - * @param {String} error Error message, if any. - * @param {Object.} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Get all Property Types for entity set - * @param {String} entitySetId - * @param {module:api/EdmApi~getPropertyTypesForEntitySetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Object.} - */ - getPropertyTypesForEntitySet(entitySetId, callback) { - let postBody = null; - // verify the required parameter 'entitySetId' is set - if (entitySetId === undefined || entitySetId === null) { - throw new Error("Missing the required parameter 'entitySetId' when calling getPropertyTypesForEntitySet"); - } - - let pathParams = { - 'entitySetId': entitySetId - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['http_auth', 'openlattice_auth']; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = {'String': PropertyType}; - return this.apiClient.callApi( - '/datastore/entity-sets/all/{entitySetId}/properties', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - /** * Callback function to receive the result of the getPropertyUsageSummary operation. * @callback module:api/EdmApi~getPropertyUsageSummaryCallback @@ -2073,98 +1568,6 @@ export default class EdmApi { ); } - /** - * Callback function to receive the result of the removeEntitySetsFromLinkingEntitySet operation. - * @callback module:api/EdmApi~removeEntitySetsFromLinkingEntitySetCallback - * @param {String} error Error message, if any. - * @param {Number} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Removes/unlinks the linked entity sets from the linking entity set - * @param {String} linkingEntitySetId - * @param {Object} opts Optional parameters - * @param {Array.} opts.requestBody - * @param {module:api/EdmApi~removeEntitySetsFromLinkingEntitySetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Number} - */ - removeEntitySetsFromLinkingEntitySet(linkingEntitySetId, opts, callback) { - opts = opts || {}; - let postBody = opts['requestBody']; - // verify the required parameter 'linkingEntitySetId' is set - if (linkingEntitySetId === undefined || linkingEntitySetId === null) { - throw new Error("Missing the required parameter 'linkingEntitySetId' when calling removeEntitySetsFromLinkingEntitySet"); - } - - let pathParams = { - 'linkingEntitySetId': linkingEntitySetId - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['http_auth', 'openlattice_auth']; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = 'Number'; - return this.apiClient.callApi( - '/datastore/entity-sets/linking/{linkingEntitySetId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the removeEntitySetsFromLinkingEntitySets operation. - * @callback module:api/EdmApi~removeEntitySetsFromLinkingEntitySetsCallback - * @param {String} error Error message, if any. - * @param {Number} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Removes/unlinks the linked entity sets from the linking entity set - * @param {String} linkingEntitySetId - * @param {Object.} requestBody - * @param {module:api/EdmApi~removeEntitySetsFromLinkingEntitySetsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Number} - */ - removeEntitySetsFromLinkingEntitySets(linkingEntitySetId, requestBody, callback) { - let postBody = requestBody; - // verify the required parameter 'linkingEntitySetId' is set - if (linkingEntitySetId === undefined || linkingEntitySetId === null) { - throw new Error("Missing the required parameter 'linkingEntitySetId' when calling removeEntitySetsFromLinkingEntitySets"); - } - // verify the required parameter 'requestBody' is set - if (requestBody === undefined || requestBody === null) { - throw new Error("Missing the required parameter 'requestBody' when calling removeEntitySetsFromLinkingEntitySets"); - } - - let pathParams = { - 'linkingEntitySetId': linkingEntitySetId - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['http_auth', 'openlattice_auth']; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = 'Number'; - return this.apiClient.callApi( - '/datastore/entity-sets/linking/', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - /** * Callback function to receive the result of the removePrimaryKeyFromEntityType operation. * @callback module:api/EdmApi~removePrimaryKeyFromEntityTypeCallback @@ -2393,105 +1796,6 @@ export default class EdmApi { ); } - /** - * Callback function to receive the result of the updateEntitySetMetaData operation. - * @callback module:api/EdmApi~updateEntitySetMetaDataCallback - * @param {String} error Error message, if any. - * @param {Number} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Updates the EntitySet definition for the given EntitySet UUID with the given metadata. - * @param {String} entitySetId - * @param {module:model/MetadataUpdate} metadataUpdate - * @param {module:api/EdmApi~updateEntitySetMetaDataCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Number} - */ - updateEntitySetMetaData(entitySetId, metadataUpdate, callback) { - let postBody = metadataUpdate; - // verify the required parameter 'entitySetId' is set - if (entitySetId === undefined || entitySetId === null) { - throw new Error("Missing the required parameter 'entitySetId' when calling updateEntitySetMetaData"); - } - // verify the required parameter 'metadataUpdate' is set - if (metadataUpdate === undefined || metadataUpdate === null) { - throw new Error("Missing the required parameter 'metadataUpdate' when calling updateEntitySetMetaData"); - } - - let pathParams = { - 'entitySetId': entitySetId - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['http_auth', 'openlattice_auth']; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = 'Number'; - return this.apiClient.callApi( - '/datastore/entity-sets/all/{entitySetId}/metadata/', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the updateEntitySetPropertyMetadata operation. - * @callback module:api/EdmApi~updateEntitySetPropertyMetadataCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Updates the property type metadata for the given entity set. - * @param {String} entitySetId - * @param {String} propertyTypeId - * @param {module:model/MetadataUpdate} metadataUpdate - * @param {module:api/EdmApi~updateEntitySetPropertyMetadataCallback} callback The callback function, accepting three arguments: error, data, response - */ - updateEntitySetPropertyMetadata(entitySetId, propertyTypeId, metadataUpdate, callback) { - let postBody = metadataUpdate; - // verify the required parameter 'entitySetId' is set - if (entitySetId === undefined || entitySetId === null) { - throw new Error("Missing the required parameter 'entitySetId' when calling updateEntitySetPropertyMetadata"); - } - // verify the required parameter 'propertyTypeId' is set - if (propertyTypeId === undefined || propertyTypeId === null) { - throw new Error("Missing the required parameter 'propertyTypeId' when calling updateEntitySetPropertyMetadata"); - } - // verify the required parameter 'metadataUpdate' is set - if (metadataUpdate === undefined || metadataUpdate === null) { - throw new Error("Missing the required parameter 'metadataUpdate' when calling updateEntitySetPropertyMetadata"); - } - - let pathParams = { - 'entitySetId': entitySetId, - 'propertyTypeId': propertyTypeId - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['http_auth', 'openlattice_auth']; - let contentTypes = ['application/json']; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - /** * Callback function to receive the result of the updateEntityTypeMetaData operation. * @callback module:api/EdmApi~updateEntityTypeMetaDataCallback diff --git a/javascript/test/api/EdmApi.spec.js b/javascript/test/api/EdmApi.spec.js index 49ef808..1171ad1 100644 --- a/javascript/test/api/EdmApi.spec.js +++ b/javascript/test/api/EdmApi.spec.js @@ -58,26 +58,6 @@ done(); }); }); - describe('addEntitySetsToLinkingEntitySet', function() { - it('should call addEntitySetsToLinkingEntitySet successfully', function(done) { - //uncomment below and update the code to test addEntitySetsToLinkingEntitySet - //instance.addEntitySetsToLinkingEntitySet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('addEntitySetsToLinkingEntitySets', function() { - it('should call addEntitySetsToLinkingEntitySets successfully', function(done) { - //uncomment below and update the code to test addEntitySetsToLinkingEntitySets - //instance.addEntitySetsToLinkingEntitySets(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); describe('addPrimaryKeyToEntityType', function() { it('should call addPrimaryKeyToEntityType successfully', function(done) { //uncomment below and update the code to test addPrimaryKeyToEntityType @@ -128,16 +108,6 @@ done(); }); }); - describe('createEntitySets', function() { - it('should call createEntitySets successfully', function(done) { - //uncomment below and update the code to test createEntitySets - //instance.createEntitySets(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); describe('createEntityType', function() { it('should call createEntityType successfully', function(done) { //uncomment below and update the code to test createEntityType @@ -178,16 +148,6 @@ done(); }); }); - describe('deleteEntitySet', function() { - it('should call deleteEntitySet successfully', function(done) { - //uncomment below and update the code to test deleteEntitySet - //instance.deleteEntitySet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); describe('deleteEntityType', function() { it('should call deleteEntityType successfully', function(done) { //uncomment below and update the code to test deleteEntityType @@ -248,26 +208,6 @@ done(); }); }); - describe('getAllEntitySetPropertyMetadata', function() { - it('should call getAllEntitySetPropertyMetadata successfully', function(done) { - //uncomment below and update the code to test getAllEntitySetPropertyMetadata - //instance.getAllEntitySetPropertyMetadata(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAllEntitySets', function() { - it('should call getAllEntitySets successfully', function(done) { - //uncomment below and update the code to test getAllEntitySets - //instance.getAllEntitySets(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); describe('getAllEntityTypePropertyMetadata', function() { it('should call getAllEntityTypePropertyMetadata successfully', function(done) { //uncomment below and update the code to test getAllEntityTypePropertyMetadata @@ -358,46 +298,6 @@ done(); }); }); - describe('getEntitySet', function() { - it('should call getEntitySet successfully', function(done) { - //uncomment below and update the code to test getEntitySet - //instance.getEntitySet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getEntitySetId', function() { - it('should call getEntitySetId successfully', function(done) { - //uncomment below and update the code to test getEntitySetId - //instance.getEntitySetId(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getEntitySetIds', function() { - it('should call getEntitySetIds successfully', function(done) { - //uncomment below and update the code to test getEntitySetIds - //instance.getEntitySetIds(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getEntitySetPropertyMetadata', function() { - it('should call getEntitySetPropertyMetadata successfully', function(done) { - //uncomment below and update the code to test getEntitySetPropertyMetadata - //instance.getEntitySetPropertyMetadata(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); describe('getEntityType', function() { it('should call getEntityType successfully', function(done) { //uncomment below and update the code to test getEntityType @@ -438,16 +338,6 @@ done(); }); }); - describe('getPropertyMetadataForEntitySets', function() { - it('should call getPropertyMetadataForEntitySets successfully', function(done) { - //uncomment below and update the code to test getPropertyMetadataForEntitySets - //instance.getPropertyMetadataForEntitySets(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); describe('getPropertyType', function() { it('should call getPropertyType successfully', function(done) { //uncomment below and update the code to test getPropertyType @@ -468,16 +358,6 @@ done(); }); }); - describe('getPropertyTypesForEntitySet', function() { - it('should call getPropertyTypesForEntitySet successfully', function(done) { - //uncomment below and update the code to test getPropertyTypesForEntitySet - //instance.getPropertyTypesForEntitySet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); describe('getPropertyUsageSummary', function() { it('should call getPropertyUsageSummary successfully', function(done) { //uncomment below and update the code to test getPropertyUsageSummary @@ -528,26 +408,6 @@ done(); }); }); - describe('removeEntitySetsFromLinkingEntitySet', function() { - it('should call removeEntitySetsFromLinkingEntitySet successfully', function(done) { - //uncomment below and update the code to test removeEntitySetsFromLinkingEntitySet - //instance.removeEntitySetsFromLinkingEntitySet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('removeEntitySetsFromLinkingEntitySets', function() { - it('should call removeEntitySetsFromLinkingEntitySets successfully', function(done) { - //uncomment below and update the code to test removeEntitySetsFromLinkingEntitySets - //instance.removeEntitySetsFromLinkingEntitySets(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); describe('removePrimaryKeyFromEntityType', function() { it('should call removePrimaryKeyFromEntityType successfully', function(done) { //uncomment below and update the code to test removePrimaryKeyFromEntityType @@ -598,26 +458,6 @@ done(); }); }); - describe('updateEntitySetMetaData', function() { - it('should call updateEntitySetMetaData successfully', function(done) { - //uncomment below and update the code to test updateEntitySetMetaData - //instance.updateEntitySetMetaData(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateEntitySetPropertyMetadata', function() { - it('should call updateEntitySetPropertyMetadata successfully', function(done) { - //uncomment below and update the code to test updateEntitySetPropertyMetadata - //instance.updateEntitySetPropertyMetadata(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); describe('updateEntityTypeMetaData', function() { it('should call updateEntityTypeMetaData successfully', function(done) { //uncomment below and update the code to test updateEntityTypeMetaData diff --git a/python/README.md b/python/README.md index 37a1416..7a3d671 100644 --- a/python/README.md +++ b/python/README.md @@ -152,27 +152,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. @@ -182,32 +176,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. diff --git a/python/docs/EdmApi.md b/python/docs/EdmApi.md index adf2ee2..4b1091e 100644 --- a/python/docs/EdmApi.md +++ b/python/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. @@ -195,10 +179,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **add_entity_sets_to_linking_entity_set** -> int add_entity_sets_to_linking_entity_set(linking_entity_set_id, request_body=request_body) +# **add_primary_key_to_entity_type** +> add_primary_key_to_entity_type(entity_type_id, property_type_id) -Adds the entity sets as linked entity sets to the linking entity set +Adds a primary key with a given ID to an entity type with a given ID. ### Example @@ -239,15 +223,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - linking_entity_set_id = 'linking_entity_set_id_example' # str | -request_body = ['request_body_example'] # list[str] | (optional) + entity_type_id = 'entity_type_id_example' # str | +property_type_id = 'property_type_id_example' # str | try: - # Adds the entity sets as linked entity sets to the linking entity set - api_response = api_instance.add_entity_sets_to_linking_entity_set(linking_entity_set_id, request_body=request_body) - pprint(api_response) + # Adds a primary key with a given ID to an entity type with a given ID. + api_instance.add_primary_key_to_entity_type(entity_type_id, property_type_id) except ApiException as e: - print("Exception when calling EdmApi->add_entity_sets_to_linking_entity_set: %s\n" % e) + print("Exception when calling EdmApi->add_primary_key_to_entity_type: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -287,27 +270,26 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - linking_entity_set_id = 'linking_entity_set_id_example' # str | -request_body = ['request_body_example'] # list[str] | (optional) + entity_type_id = 'entity_type_id_example' # str | +property_type_id = 'property_type_id_example' # str | try: - # Adds the entity sets as linked entity sets to the linking entity set - api_response = api_instance.add_entity_sets_to_linking_entity_set(linking_entity_set_id, request_body=request_body) - pprint(api_response) + # Adds a primary key with a given ID to an entity type with a given ID. + api_instance.add_primary_key_to_entity_type(entity_type_id, property_type_id) except ApiException as e: - print("Exception when calling EdmApi->add_entity_sets_to_linking_entity_set: %s\n" % e) + print("Exception when calling EdmApi->add_primary_key_to_entity_type: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **linking_entity_set_id** | [**str**](.md)| | - **request_body** | [**list[str]**](str.md)| | [optional] + **entity_type_id** | [**str**](.md)| | + **property_type_id** | [**str**](.md)| | ### Return type -**int** +void (empty response body) ### Authorization @@ -315,8 +297,8 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json + - **Content-Type**: Not defined + - **Accept**: Not defined ### HTTP response details | Status code | Description | Response headers | @@ -325,10 +307,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **add_entity_sets_to_linking_entity_sets** -> int add_entity_sets_to_linking_entity_sets(linking_entity_set_id, request_body) +# **add_property_type_to_entity_type** +> add_property_type_to_entity_type(entity_type_id, property_type_id) -Adds the entity sets as linked entity sets to the linking entity sets +Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. ### Example @@ -369,15 +351,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - linking_entity_set_id = 'linking_entity_set_id_example' # str | -request_body = None # dict(str, list[str]) | + entity_type_id = 'entity_type_id_example' # str | +property_type_id = 'property_type_id_example' # str | try: - # Adds the entity sets as linked entity sets to the linking entity sets - api_response = api_instance.add_entity_sets_to_linking_entity_sets(linking_entity_set_id, request_body) - pprint(api_response) + # Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. + api_instance.add_property_type_to_entity_type(entity_type_id, property_type_id) except ApiException as e: - print("Exception when calling EdmApi->add_entity_sets_to_linking_entity_sets: %s\n" % e) + print("Exception when calling EdmApi->add_property_type_to_entity_type: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -417,27 +398,26 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - linking_entity_set_id = 'linking_entity_set_id_example' # str | -request_body = None # dict(str, list[str]) | + entity_type_id = 'entity_type_id_example' # str | +property_type_id = 'property_type_id_example' # str | try: - # Adds the entity sets as linked entity sets to the linking entity sets - api_response = api_instance.add_entity_sets_to_linking_entity_sets(linking_entity_set_id, request_body) - pprint(api_response) + # Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. + api_instance.add_property_type_to_entity_type(entity_type_id, property_type_id) except ApiException as e: - print("Exception when calling EdmApi->add_entity_sets_to_linking_entity_sets: %s\n" % e) + print("Exception when calling EdmApi->add_property_type_to_entity_type: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **linking_entity_set_id** | **str**| | - **request_body** | [**dict(str, list[str])**](list.md)| | + **entity_type_id** | [**str**](.md)| | + **property_type_id** | [**str**](.md)| | ### Return type -**int** +void (empty response body) ### Authorization @@ -445,8 +425,8 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json + - **Content-Type**: Not defined + - **Accept**: Not defined ### HTTP response details | Status code | Description | Response headers | @@ -455,10 +435,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **add_primary_key_to_entity_type** -> add_primary_key_to_entity_type(entity_type_id, property_type_id) +# **add_src_entity_type_to_association_type** +> add_src_entity_type_to_association_type(association_type_id, entity_type_id) -Adds a primary key with a given ID to an entity type with a given ID. +Update the AssociationType src entity types for the given AssociationType UUID by adding the given EntityType UUID. ### Example @@ -499,14 +479,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | -property_type_id = 'property_type_id_example' # str | + association_type_id = 'association_type_id_example' # str | +entity_type_id = 'entity_type_id_example' # str | try: - # Adds a primary key with a given ID to an entity type with a given ID. - api_instance.add_primary_key_to_entity_type(entity_type_id, property_type_id) + # Update the AssociationType src entity types for the given AssociationType UUID by adding the given EntityType UUID. + api_instance.add_src_entity_type_to_association_type(association_type_id, entity_type_id) except ApiException as e: - print("Exception when calling EdmApi->add_primary_key_to_entity_type: %s\n" % e) + print("Exception when calling EdmApi->add_src_entity_type_to_association_type: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -546,22 +526,22 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | -property_type_id = 'property_type_id_example' # str | + association_type_id = 'association_type_id_example' # str | +entity_type_id = 'entity_type_id_example' # str | try: - # Adds a primary key with a given ID to an entity type with a given ID. - api_instance.add_primary_key_to_entity_type(entity_type_id, property_type_id) + # Update the AssociationType src entity types for the given AssociationType UUID by adding the given EntityType UUID. + api_instance.add_src_entity_type_to_association_type(association_type_id, entity_type_id) except ApiException as e: - print("Exception when calling EdmApi->add_primary_key_to_entity_type: %s\n" % e) + print("Exception when calling EdmApi->add_src_entity_type_to_association_type: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **association_type_id** | [**str**](.md)| | **entity_type_id** | [**str**](.md)| | - **property_type_id** | [**str**](.md)| | ### Return type @@ -583,61 +563,13 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **add_property_type_to_entity_type** -> add_property_type_to_entity_type(entity_type_id, property_type_id) +# **create_association_type** +> create_association_type(association_type) -Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. +Creates a new AssociationType definition, if it doesn't exist. ### Example -* Bearer (JWT) Authentication (http_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | -property_type_id = 'property_type_id_example' # str | - - try: - # Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. - api_instance.add_property_type_to_entity_type(entity_type_id, property_type_id) - except ApiException as e: - print("Exception when calling EdmApi->add_property_type_to_entity_type: %s\n" % e) -``` - -* Api Key Authentication (openlattice_auth): ```python from __future__ import print_function import time @@ -650,46 +582,25 @@ configuration = openlattice.Configuration( host = "https://api.openlattice.com" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' # Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: +with openlattice.ApiClient() as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | -property_type_id = 'property_type_id_example' # str | + association_type = [openlattice.AssociationType()] # list[AssociationType] | try: - # Updates the EntityType definition for the given EntityType UUID by adding the given PropertyType UUID. - api_instance.add_property_type_to_entity_type(entity_type_id, property_type_id) + # Creates a new AssociationType definition, if it doesn't exist. + api_instance.create_association_type(association_type) except ApiException as e: - print("Exception when calling EdmApi->add_property_type_to_entity_type: %s\n" % e) + print("Exception when calling EdmApi->create_association_type: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entity_type_id** | [**str**](.md)| | - **property_type_id** | [**str**](.md)| | + **association_type** | [**list[AssociationType]**](AssociationType.md)| | ### Return type @@ -697,11 +608,11 @@ void (empty response body) ### Authorization -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) +No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: Not defined ### HTTP response details @@ -711,10 +622,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **add_src_entity_type_to_association_type** -> add_src_entity_type_to_association_type(association_type_id, entity_type_id) +# **create_empty_schema** +> create_empty_schema(namespace, name) -Update the AssociationType src entity types for the given AssociationType UUID by adding the given EntityType UUID. +Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. ### Example @@ -755,14 +666,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - association_type_id = 'association_type_id_example' # str | -entity_type_id = 'entity_type_id_example' # str | + namespace = 'namespace_example' # str | +name = 'name_example' # str | try: - # Update the AssociationType src entity types for the given AssociationType UUID by adding the given EntityType UUID. - api_instance.add_src_entity_type_to_association_type(association_type_id, entity_type_id) + # Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. + api_instance.create_empty_schema(namespace, name) except ApiException as e: - print("Exception when calling EdmApi->add_src_entity_type_to_association_type: %s\n" % e) + print("Exception when calling EdmApi->create_empty_schema: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -802,22 +713,22 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - association_type_id = 'association_type_id_example' # str | -entity_type_id = 'entity_type_id_example' # str | + namespace = 'namespace_example' # str | +name = 'name_example' # str | try: - # Update the AssociationType src entity types for the given AssociationType UUID by adding the given EntityType UUID. - api_instance.add_src_entity_type_to_association_type(association_type_id, entity_type_id) + # Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. + api_instance.create_empty_schema(namespace, name) except ApiException as e: - print("Exception when calling EdmApi->add_src_entity_type_to_association_type: %s\n" % e) + print("Exception when calling EdmApi->create_empty_schema: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **association_type_id** | [**str**](.md)| | - **entity_type_id** | [**str**](.md)| | + **namespace** | **str**| | + **name** | **str**| | ### Return type @@ -839,10 +750,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_association_type** -> create_association_type(association_type) +# **create_entity_type** +> create_entity_type(entity_type) -Creates a new AssociationType definition, if it doesn't exist. +Creates a new EntityType definition, if it doesn't exist. ### Example @@ -863,20 +774,20 @@ configuration = openlattice.Configuration( with openlattice.ApiClient() as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - association_type = [openlattice.AssociationType()] # list[AssociationType] | + entity_type = openlattice.EntityType() # EntityType | try: - # Creates a new AssociationType definition, if it doesn't exist. - api_instance.create_association_type(association_type) + # Creates a new EntityType definition, if it doesn't exist. + api_instance.create_entity_type(entity_type) except ApiException as e: - print("Exception when calling EdmApi->create_association_type: %s\n" % e) + print("Exception when calling EdmApi->create_entity_type: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **association_type** | [**list[AssociationType]**](AssociationType.md)| | + **entity_type** | [**EntityType**](EntityType.md)| | ### Return type @@ -898,10 +809,10 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_empty_schema** -> create_empty_schema(namespace, name) +# **create_property_type** +> create_property_type(property_type) -Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. +Creates a new PropertyType definition, if it doesn\"t exist. ### Example @@ -942,14 +853,13 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - namespace = 'namespace_example' # str | -name = 'name_example' # str | + property_type = openlattice.PropertyType() # PropertyType | try: - # Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. - api_instance.create_empty_schema(namespace, name) + # Creates a new PropertyType definition, if it doesn\"t exist. + api_instance.create_property_type(property_type) except ApiException as e: - print("Exception when calling EdmApi->create_empty_schema: %s\n" % e) + print("Exception when calling EdmApi->create_property_type: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -989,22 +899,20 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - namespace = 'namespace_example' # str | -name = 'name_example' # str | + property_type = openlattice.PropertyType() # PropertyType | try: - # Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. - api_instance.create_empty_schema(namespace, name) + # Creates a new PropertyType definition, if it doesn\"t exist. + api_instance.create_property_type(property_type) except ApiException as e: - print("Exception when calling EdmApi->create_empty_schema: %s\n" % e) + print("Exception when calling EdmApi->create_property_type: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| | - **name** | **str**| | + **property_type** | [**PropertyType**](PropertyType.md)| | ### Return type @@ -1016,7 +924,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: Not defined ### HTTP response details @@ -1026,10 +934,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_entity_sets** -> create_entity_sets(entity_set) +# **create_schema_if_not_exists** +> create_schema_if_not_exists(schema) -Creates new EntitySet definitions if they don't exist. +Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. ### Example @@ -1070,13 +978,13 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_set = [openlattice.EntitySet()] # list[EntitySet] | + schema = openlattice.Schema() # Schema | try: - # Creates new EntitySet definitions if they don't exist. - api_instance.create_entity_sets(entity_set) + # Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. + api_instance.create_schema_if_not_exists(schema) except ApiException as e: - print("Exception when calling EdmApi->create_entity_sets: %s\n" % e) + print("Exception when calling EdmApi->create_schema_if_not_exists: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -1116,20 +1024,20 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_set = [openlattice.EntitySet()] # list[EntitySet] | + schema = openlattice.Schema() # Schema | try: - # Creates new EntitySet definitions if they don't exist. - api_instance.create_entity_sets(entity_set) + # Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. + api_instance.create_schema_if_not_exists(schema) except ApiException as e: - print("Exception when calling EdmApi->create_entity_sets: %s\n" % e) + print("Exception when calling EdmApi->create_schema_if_not_exists: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entity_set** | [**list[EntitySet]**](EntitySet.md)| | + **schema** | [**Schema**](Schema.md)| | ### Return type @@ -1151,10 +1059,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_entity_type** -> create_entity_type(entity_type) +# **delete_association_type** +> delete_association_type(association_type_id) -Creates a new EntityType definition, if it doesn't exist. +Deletes the AssociationType definition for the given AssociationType UUID. ### Example @@ -1175,20 +1083,20 @@ configuration = openlattice.Configuration( with openlattice.ApiClient() as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_type = openlattice.EntityType() # EntityType | + association_type_id = 'association_type_id_example' # str | try: - # Creates a new EntityType definition, if it doesn't exist. - api_instance.create_entity_type(entity_type) + # Deletes the AssociationType definition for the given AssociationType UUID. + api_instance.delete_association_type(association_type_id) except ApiException as e: - print("Exception when calling EdmApi->create_entity_type: %s\n" % e) + print("Exception when calling EdmApi->delete_association_type: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entity_type** | [**EntityType**](EntityType.md)| | + **association_type_id** | [**str**](.md)| | ### Return type @@ -1200,132 +1108,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: Not defined - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Success | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_property_type** -> create_property_type(property_type) - -Creates a new PropertyType definition, if it doesn\"t exist. - -### Example - -* Bearer (JWT) Authentication (http_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - property_type = openlattice.PropertyType() # PropertyType | - - try: - # Creates a new PropertyType definition, if it doesn\"t exist. - api_instance.create_property_type(property_type) - except ApiException as e: - print("Exception when calling EdmApi->create_property_type: %s\n" % e) -``` - -* Api Key Authentication (openlattice_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - property_type = openlattice.PropertyType() # PropertyType | - - try: - # Creates a new PropertyType definition, if it doesn\"t exist. - api_instance.create_property_type(property_type) - except ApiException as e: - print("Exception when calling EdmApi->create_property_type: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_type** | [**PropertyType**](PropertyType.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 + - **Content-Type**: Not defined - **Accept**: Not defined ### HTTP response details @@ -1335,1740 +1118,57 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_schema_if_not_exists** -> create_schema_if_not_exists(schema) +# **delete_entity_type** +> delete_entity_type(entity_type_id) -Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. +Deletes the EntityType definition for the given EntityType UUID. ### Example -* Bearer (JWT) Authentication (http_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - schema = openlattice.Schema() # Schema | - - try: - # Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. - api_instance.create_schema_if_not_exists(schema) - except ApiException as e: - print("Exception when calling EdmApi->create_schema_if_not_exists: %s\n" % e) -``` - -* Api Key Authentication (openlattice_auth): ```python from __future__ import print_function import time import openlattice from openlattice.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - schema = openlattice.Schema() # Schema | - - try: - # Creates an empty schema, if it doesn't exist. If schema exists then no action is taken. - api_instance.create_schema_if_not_exists(schema) - except ApiException as e: - print("Exception when calling EdmApi->create_schema_if_not_exists: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **schema** | [**Schema**](Schema.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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_association_type** -> delete_association_type(association_type_id) - -Deletes the AssociationType definition for the given AssociationType UUID. - -### Example - -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - - -# Enter a context with an instance of the API client -with openlattice.ApiClient() as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - association_type_id = 'association_type_id_example' # str | - - try: - # Deletes the AssociationType definition for the given AssociationType UUID. - api_instance.delete_association_type(association_type_id) - except ApiException as e: - print("Exception when calling EdmApi->delete_association_type: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **association_type_id** | [**str**](.md)| | - -### Return type - -void (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Success | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_entity_set** -> delete_entity_set(entity_set_id) - -Deletes the EntitySet definition for the given EntitySet UUID. - -### Example - -* Bearer (JWT) Authentication (http_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - entity_set_id = 'entity_set_id_example' # str | - - try: - # Deletes the EntitySet definition for the given EntitySet UUID. - api_instance.delete_entity_set(entity_set_id) - except ApiException as e: - print("Exception when calling EdmApi->delete_entity_set: %s\n" % e) -``` - -* Api Key Authentication (openlattice_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - entity_set_id = 'entity_set_id_example' # str | - - try: - # Deletes the EntitySet definition for the given EntitySet UUID. - api_instance.delete_entity_set(entity_set_id) - except ApiException as e: - print("Exception when calling EdmApi->delete_entity_set: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**str**](.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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_entity_type** -> delete_entity_type(entity_type_id) - -Deletes the EntityType definition for the given EntityType UUID. - -### Example - -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - - -# Enter a context with an instance of the API client -with openlattice.ApiClient() as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | - - try: - # Deletes the EntityType definition for the given EntityType UUID. - api_instance.delete_entity_type(entity_type_id) - except ApiException as e: - print("Exception when calling EdmApi->delete_entity_type: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_type_id** | [**str**](.md)| | - -### Return type - -void (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Success | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_property_type** -> delete_property_type(property_type_id) - -Deletes the PropertyType definition for the given PropertyType UUID. - -### Example - -* Bearer (JWT) Authentication (http_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - property_type_id = 'property_type_id_example' # str | - - try: - # Deletes the PropertyType definition for the given PropertyType UUID. - api_instance.delete_property_type(property_type_id) - except ApiException as e: - print("Exception when calling EdmApi->delete_property_type: %s\n" % e) -``` - -* Api Key Authentication (openlattice_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - property_type_id = 'property_type_id_example' # str | - - try: - # Deletes the PropertyType definition for the given PropertyType UUID. - api_instance.delete_property_type(property_type_id) - except ApiException as e: - print("Exception when calling EdmApi->delete_property_type: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_type_id** | [**str**](.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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **force_delete_property_type** -> force_delete_property_type(property_type_id) - -Deletes the PropertyType definition for the given PropertyType UUID regardless of whether or not there is data associated with it. - -### Example - -* Bearer (JWT) Authentication (http_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - property_type_id = 'property_type_id_example' # str | - - try: - # Deletes the PropertyType definition for the given PropertyType UUID regardless of whether or not there is data associated with it. - api_instance.force_delete_property_type(property_type_id) - except ApiException as e: - print("Exception when calling EdmApi->force_delete_property_type: %s\n" % e) -``` - -* Api Key Authentication (openlattice_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - property_type_id = 'property_type_id_example' # str | - - try: - # Deletes the PropertyType definition for the given PropertyType UUID regardless of whether or not there is data associated with it. - api_instance.force_delete_property_type(property_type_id) - except ApiException as e: - print("Exception when calling EdmApi->force_delete_property_type: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_type_id** | [**str**](.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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **force_remove_property_type_from_entity_type** -> force_remove_property_type_from_entity_type(entity_type_id, property_type_id) - -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. - -### Example - -* Bearer (JWT) Authentication (http_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | -property_type_id = 'property_type_id_example' # str | - - try: - # 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. - api_instance.force_remove_property_type_from_entity_type(entity_type_id, property_type_id) - except ApiException as e: - print("Exception when calling EdmApi->force_remove_property_type_from_entity_type: %s\n" % e) -``` - -* Api Key Authentication (openlattice_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | -property_type_id = 'property_type_id_example' # str | - - try: - # 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. - api_instance.force_remove_property_type_from_entity_type(entity_type_id, property_type_id) - except ApiException as e: - print("Exception when calling EdmApi->force_remove_property_type_from_entity_type: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_type_id** | [**str**](.md)| | - **property_type_id** | [**str**](.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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_all_association_entity_types** -> list[AssociationType] get_all_association_entity_types() - -Gets all association EntityType definitions. - -### Example - -* Bearer (JWT) Authentication (http_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - - try: - # Gets all association EntityType definitions. - api_response = api_instance.get_all_association_entity_types() - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_all_association_entity_types: %s\n" % e) -``` - -* Api Key Authentication (openlattice_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - - try: - # Gets all association EntityType definitions. - api_response = api_instance.get_all_association_entity_types() - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_all_association_entity_types: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**list[AssociationType]**](AssociationType.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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_all_available_association_types** -> list[AssociationType] get_all_available_association_types(association_type_id) - -Get all available associations for the given AssociationType UUID. - -### Example - -* Bearer (JWT) Authentication (http_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - association_type_id = 'association_type_id_example' # str | - - try: - # Get all available associations for the given AssociationType UUID. - api_response = api_instance.get_all_available_association_types(association_type_id) - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_all_available_association_types: %s\n" % e) -``` - -* Api Key Authentication (openlattice_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - association_type_id = 'association_type_id_example' # str | - - try: - # Get all available associations for the given AssociationType UUID. - api_response = api_instance.get_all_available_association_types(association_type_id) - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_all_available_association_types: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **association_type_id** | [**str**](.md)| | - -### Return type - -[**list[AssociationType]**](AssociationType.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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_all_entity_set_property_metadata** -> dict(str, EntitySetPropertyMetaData) get_all_entity_set_property_metadata(entity_set_id) - -Get all entity set property metadata. - -### Example - -* Bearer (JWT) Authentication (http_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - entity_set_id = 'entity_set_id_example' # str | - - try: - # Get all entity set property metadata. - api_response = api_instance.get_all_entity_set_property_metadata(entity_set_id) - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_all_entity_set_property_metadata: %s\n" % e) -``` - -* Api Key Authentication (openlattice_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - entity_set_id = 'entity_set_id_example' # str | - - try: - # Get all entity set property metadata. - api_response = api_instance.get_all_entity_set_property_metadata(entity_set_id) - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_all_entity_set_property_metadata: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**str**](.md)| | - -### Return type - -[**dict(str, 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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_all_entity_sets** -> list[EntitySet] get_all_entity_sets() - -Get all EntitySet definitions. - -### Example - -* Bearer (JWT) Authentication (http_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - - try: - # Get all EntitySet definitions. - api_response = api_instance.get_all_entity_sets() - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_all_entity_sets: %s\n" % e) -``` - -* Api Key Authentication (openlattice_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - - try: - # Get all EntitySet definitions. - api_response = api_instance.get_all_entity_sets() - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_all_entity_sets: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**list[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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_all_entity_type_property_metadata** -> dict(str, EntityTypePropertyMetadata) get_all_entity_type_property_metadata(entity_type_id) - -Get all EntityType propertyType metadata - -### Example - -* Bearer (JWT) Authentication (http_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | - - try: - # Get all EntityType propertyType metadata - api_response = api_instance.get_all_entity_type_property_metadata(entity_type_id) - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_all_entity_type_property_metadata: %s\n" % e) -``` - -* Api Key Authentication (openlattice_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | - - try: - # Get all EntityType propertyType metadata - api_response = api_instance.get_all_entity_type_property_metadata(entity_type_id) - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_all_entity_type_property_metadata: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_type_id** | [**str**](.md)| | - -### Return type - -[**dict(str, EntityTypePropertyMetadata)**](EntityTypePropertyMetadata.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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_all_entity_types** -> list[EntityType] get_all_entity_types() - -Gets all EntityType definitions. - -### Example - -* Bearer (JWT) Authentication (http_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - - try: - # Gets all EntityType definitions. - api_response = api_instance.get_all_entity_types() - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_all_entity_types: %s\n" % e) -``` - -* Api Key Authentication (openlattice_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - - try: - # Gets all EntityType definitions. - api_response = api_instance.get_all_entity_types() - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_all_entity_types: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**list[EntityType]**](EntityType.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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_all_property_types** -> list[PropertyType] get_all_property_types() - -Gets all PropertyType definitions. - -### Example - -* Bearer (JWT) Authentication (http_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - - try: - # Gets all PropertyType definitions. - api_response = api_instance.get_all_property_types() - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_all_property_types: %s\n" % e) -``` - -* Api Key Authentication (openlattice_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - - try: - # Gets all PropertyType definitions. - api_response = api_instance.get_all_property_types() - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_all_property_types: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### 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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_all_property_types_in_namespace** -> list[PropertyType] get_all_property_types_in_namespace(namespace) - -Gets all PropertyType definitions under the given namespace. - -### Example - -* Bearer (JWT) Authentication (http_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - namespace = 'namespace_example' # str | - - try: - # Gets all PropertyType definitions under the given namespace. - api_response = api_instance.get_all_property_types_in_namespace(namespace) - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_all_property_types_in_namespace: %s\n" % e) -``` - -* Api Key Authentication (openlattice_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth +# Defining the host is optional and defaults to https://api.openlattice.com +# See configuration.py for a list of all supported configuration parameters. configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } + host = "https://api.openlattice.com" ) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' + # Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: +with openlattice.ApiClient() as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - namespace = 'namespace_example' # str | + entity_type_id = 'entity_type_id_example' # str | try: - # Gets all PropertyType definitions under the given namespace. - api_response = api_instance.get_all_property_types_in_namespace(namespace) - pprint(api_response) + # Deletes the EntityType definition for the given EntityType UUID. + api_instance.delete_entity_type(entity_type_id) except ApiException as e: - print("Exception when calling EdmApi->get_all_property_types_in_namespace: %s\n" % e) + print("Exception when calling EdmApi->delete_entity_type: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| | + **entity_type_id** | [**str**](.md)| | ### Return type -[**list[PropertyType]**](PropertyType.md) +void (empty response body) ### Authorization -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: Not defined ### HTTP response details | Status code | Description | Response headers | @@ -3077,10 +1177,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_all_property_usage_summaries** -> dict(str, PropertyUsageSummary) get_all_property_usage_summaries() +# **delete_property_type** +> delete_property_type(property_type_id) -Get Property Usage Summary for all properties. +Deletes the PropertyType definition for the given PropertyType UUID. ### Example @@ -3121,13 +1221,13 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - + property_type_id = 'property_type_id_example' # str | + try: - # Get Property Usage Summary for all properties. - api_response = api_instance.get_all_property_usage_summaries() - pprint(api_response) + # Deletes the PropertyType definition for the given PropertyType UUID. + api_instance.delete_property_type(property_type_id) except ApiException as e: - print("Exception when calling EdmApi->get_all_property_usage_summaries: %s\n" % e) + print("Exception when calling EdmApi->delete_property_type: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -3167,21 +1267,24 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - + property_type_id = 'property_type_id_example' # str | + try: - # Get Property Usage Summary for all properties. - api_response = api_instance.get_all_property_usage_summaries() - pprint(api_response) + # Deletes the PropertyType definition for the given PropertyType UUID. + api_instance.delete_property_type(property_type_id) except ApiException as e: - print("Exception when calling EdmApi->get_all_property_usage_summaries: %s\n" % e) + print("Exception when calling EdmApi->delete_property_type: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_type_id** | [**str**](.md)| | ### Return type -[**dict(str, PropertyUsageSummary)**](PropertyUsageSummary.md) +void (empty response body) ### Authorization @@ -3190,7 +1293,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: Not defined ### HTTP response details | Status code | Description | Response headers | @@ -3199,10 +1302,10 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_association_type** -> AssociationType get_association_type(association_type_id) +# **force_delete_property_type** +> force_delete_property_type(property_type_id) -Get the AssociationType definition for the given AssociationType UUID. +Deletes the PropertyType definition for the given PropertyType UUID regardless of whether or not there is data associated with it. ### Example @@ -3243,14 +1346,13 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - association_type_id = 'association_type_id_example' # str | + property_type_id = 'property_type_id_example' # str | try: - # Get the AssociationType definition for the given AssociationType UUID. - api_response = api_instance.get_association_type(association_type_id) - pprint(api_response) + # Deletes the PropertyType definition for the given PropertyType UUID regardless of whether or not there is data associated with it. + api_instance.force_delete_property_type(property_type_id) except ApiException as e: - print("Exception when calling EdmApi->get_association_type: %s\n" % e) + print("Exception when calling EdmApi->force_delete_property_type: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -3290,25 +1392,24 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - association_type_id = 'association_type_id_example' # str | + property_type_id = 'property_type_id_example' # str | try: - # Get the AssociationType definition for the given AssociationType UUID. - api_response = api_instance.get_association_type(association_type_id) - pprint(api_response) + # Deletes the PropertyType definition for the given PropertyType UUID regardless of whether or not there is data associated with it. + api_instance.force_delete_property_type(property_type_id) except ApiException as e: - print("Exception when calling EdmApi->get_association_type: %s\n" % e) + print("Exception when calling EdmApi->force_delete_property_type: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **association_type_id** | [**str**](.md)| | + **property_type_id** | [**str**](.md)| | ### Return type -[**AssociationType**](AssociationType.md) +void (empty response body) ### Authorization @@ -3317,7 +1418,7 @@ 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 | @@ -3326,10 +1427,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_association_type_details** -> AssociationType get_association_type_details(association_type_id) +# **force_remove_property_type_from_entity_type** +> force_remove_property_type_from_entity_type(entity_type_id, property_type_id) -Get details about the AssociationType for the given AssociationType UUID. +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. ### Example @@ -3370,14 +1471,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - association_type_id = 'association_type_id_example' # str | + entity_type_id = 'entity_type_id_example' # str | +property_type_id = 'property_type_id_example' # str | try: - # Get details about the AssociationType for the given AssociationType UUID. - api_response = api_instance.get_association_type_details(association_type_id) - pprint(api_response) + # 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. + api_instance.force_remove_property_type_from_entity_type(entity_type_id, property_type_id) except ApiException as e: - print("Exception when calling EdmApi->get_association_type_details: %s\n" % e) + print("Exception when calling EdmApi->force_remove_property_type_from_entity_type: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -3417,25 +1518,26 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - association_type_id = 'association_type_id_example' # str | + entity_type_id = 'entity_type_id_example' # str | +property_type_id = 'property_type_id_example' # str | try: - # Get details about the AssociationType for the given AssociationType UUID. - api_response = api_instance.get_association_type_details(association_type_id) - pprint(api_response) + # 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. + api_instance.force_remove_property_type_from_entity_type(entity_type_id, property_type_id) except ApiException as e: - print("Exception when calling EdmApi->get_association_type_details: %s\n" % e) + print("Exception when calling EdmApi->force_remove_property_type_from_entity_type: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **association_type_id** | [**str**](.md)| | + **entity_type_id** | [**str**](.md)| | + **property_type_id** | [**str**](.md)| | ### Return type -[**AssociationType**](AssociationType.md) +void (empty response body) ### Authorization @@ -3444,7 +1546,7 @@ 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 | @@ -3453,66 +1555,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_entity_data_model** -> EDM get_entity_data_model() - -Gets the entity data model, including namespaces, schemas, entity types, association types, and property types. - -### Example - -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - - -# Enter a context with an instance of the API client -with openlattice.ApiClient() as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - - try: - # Gets the entity data model, including namespaces, schemas, entity types, association types, and property types. - api_response = api_instance.get_entity_data_model() - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_entity_data_model: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**EDM**](EDM.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | An Entity Data Model | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_entity_data_model_diff** -> EDMdiff get_entity_data_model_diff(ed_mdiff) +# **get_all_association_entity_types** +> list[AssociationType] get_all_association_entity_types() -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. +Gets all association EntityType definitions. ### Example @@ -3553,14 +1599,13 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - ed_mdiff = openlattice.EDMdiff() # EDMdiff | - + try: - # 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. - api_response = api_instance.get_entity_data_model_diff(ed_mdiff) + # Gets all association EntityType definitions. + api_response = api_instance.get_all_association_entity_types() pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_entity_data_model_diff: %s\n" % e) + print("Exception when calling EdmApi->get_all_association_entity_types: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -3600,25 +1645,21 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - ed_mdiff = openlattice.EDMdiff() # EDMdiff | - + try: - # 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. - api_response = api_instance.get_entity_data_model_diff(ed_mdiff) + # Gets all association EntityType definitions. + api_response = api_instance.get_all_association_entity_types() pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_entity_data_model_diff: %s\n" % e) + print("Exception when calling EdmApi->get_all_association_entity_types: %s\n" % e) ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ed_mdiff** | [**EDMdiff**](EDMdiff.md)| | +This endpoint does not need any parameter. ### Return type -[**EDMdiff**](EDMdiff.md) +[**list[AssociationType]**](AssociationType.md) ### Authorization @@ -3626,7 +1667,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -3636,10 +1677,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_entity_set** -> EntitySet get_entity_set(entity_set_id) +# **get_all_available_association_types** +> list[AssociationType] get_all_available_association_types(association_type_id) -Get the EntitySet definition for the given EntitySet UUID. +Get all available associations for the given AssociationType UUID. ### Example @@ -3680,14 +1721,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_set_id = 'entity_set_id_example' # str | + association_type_id = 'association_type_id_example' # str | try: - # Get the EntitySet definition for the given EntitySet UUID. - api_response = api_instance.get_entity_set(entity_set_id) + # Get all available associations for the given AssociationType UUID. + api_response = api_instance.get_all_available_association_types(association_type_id) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_entity_set: %s\n" % e) + print("Exception when calling EdmApi->get_all_available_association_types: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -3727,25 +1768,25 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_set_id = 'entity_set_id_example' # str | + association_type_id = 'association_type_id_example' # str | try: - # Get the EntitySet definition for the given EntitySet UUID. - api_response = api_instance.get_entity_set(entity_set_id) + # Get all available associations for the given AssociationType UUID. + api_response = api_instance.get_all_available_association_types(association_type_id) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_entity_set: %s\n" % e) + print("Exception when calling EdmApi->get_all_available_association_types: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**str**](.md)| | + **association_type_id** | [**str**](.md)| | ### Return type -[**EntitySet**](EntitySet.md) +[**list[AssociationType]**](AssociationType.md) ### Authorization @@ -3759,14 +1800,14 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | An Entity Set definition | - | +**200** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_entity_set_id** -> str get_entity_set_id(entity_set_name) +# **get_all_entity_type_property_metadata** +> dict(str, EntityTypePropertyMetadata) get_all_entity_type_property_metadata(entity_type_id) -Gets the EntitySet UUID for the given EntitySet name. +Get all EntityType propertyType metadata ### Example @@ -3807,14 +1848,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_set_name = 'entity_set_name_example' # str | + entity_type_id = 'entity_type_id_example' # str | try: - # Gets the EntitySet UUID for the given EntitySet name. - api_response = api_instance.get_entity_set_id(entity_set_name) + # Get all EntityType propertyType metadata + api_response = api_instance.get_all_entity_type_property_metadata(entity_type_id) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_entity_set_id: %s\n" % e) + print("Exception when calling EdmApi->get_all_entity_type_property_metadata: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -3854,25 +1895,25 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_set_name = 'entity_set_name_example' # str | + entity_type_id = 'entity_type_id_example' # str | try: - # Gets the EntitySet UUID for the given EntitySet name. - api_response = api_instance.get_entity_set_id(entity_set_name) + # Get all EntityType propertyType metadata + api_response = api_instance.get_all_entity_type_property_metadata(entity_type_id) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_entity_set_id: %s\n" % e) + print("Exception when calling EdmApi->get_all_entity_type_property_metadata: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entity_set_name** | **str**| | + **entity_type_id** | [**str**](.md)| | ### Return type -**str** +[**dict(str, EntityTypePropertyMetadata)**](EntityTypePropertyMetadata.md) ### Authorization @@ -3890,10 +1931,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_entity_set_ids** -> dict(str, str) get_entity_set_ids(request_body=request_body) +# **get_all_entity_types** +> list[EntityType] get_all_entity_types() -Get IDs for entity sets given their names. +Gets all EntityType definitions. ### Example @@ -3934,14 +1975,13 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - request_body = ['request_body_example'] # list[str] | (optional) - + try: - # Get IDs for entity sets given their names. - api_response = api_instance.get_entity_set_ids(request_body=request_body) + # Gets all EntityType definitions. + api_response = api_instance.get_all_entity_types() pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_entity_set_ids: %s\n" % e) + print("Exception when calling EdmApi->get_all_entity_types: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -3981,25 +2021,21 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - request_body = ['request_body_example'] # list[str] | (optional) - + try: - # Get IDs for entity sets given their names. - api_response = api_instance.get_entity_set_ids(request_body=request_body) + # Gets all EntityType definitions. + api_response = api_instance.get_all_entity_types() pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_entity_set_ids: %s\n" % e) + print("Exception when calling EdmApi->get_all_entity_types: %s\n" % e) ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request_body** | [**list[str]**](str.md)| | [optional] +This endpoint does not need any parameter. ### Return type -**dict(str, str)** +[**list[EntityType]**](EntityType.md) ### Authorization @@ -4007,7 +2043,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -4017,10 +2053,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_entity_set_property_metadata** -> EntitySetPropertyMetaData get_entity_set_property_metadata(entity_set_id, property_type_id) +# **get_all_property_types** +> list[PropertyType] get_all_property_types() -Get specified property type metadata for an entity set. +Gets all PropertyType definitions. ### Example @@ -4061,15 +2097,13 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_set_id = 'entity_set_id_example' # str | -property_type_id = 'property_type_id_example' # str | - + try: - # Get specified property type metadata for an entity set. - api_response = api_instance.get_entity_set_property_metadata(entity_set_id, property_type_id) + # Gets all PropertyType definitions. + api_response = api_instance.get_all_property_types() pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_entity_set_property_metadata: %s\n" % e) + print("Exception when calling EdmApi->get_all_property_types: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -4109,27 +2143,21 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_set_id = 'entity_set_id_example' # str | -property_type_id = 'property_type_id_example' # str | - + try: - # Get specified property type metadata for an entity set. - api_response = api_instance.get_entity_set_property_metadata(entity_set_id, property_type_id) + # Gets all PropertyType definitions. + api_response = api_instance.get_all_property_types() pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_entity_set_property_metadata: %s\n" % e) + print("Exception when calling EdmApi->get_all_property_types: %s\n" % e) ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**str**](.md)| | - **property_type_id** | [**str**](.md)| | +This endpoint does not need any parameter. ### Return type -[**EntitySetPropertyMetaData**](EntitySetPropertyMetaData.md) +[**list[PropertyType]**](PropertyType.md) ### Authorization @@ -4147,70 +2175,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_entity_type** -> EntityType get_entity_type(entity_type_id) - -Gets the EntityType definition for the given EntityType UUID. - -### Example - -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - - -# Enter a context with an instance of the API client -with openlattice.ApiClient() as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | - - try: - # Gets the EntityType definition for the given EntityType UUID. - api_response = api_instance.get_entity_type(entity_type_id) - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_entity_type: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_type_id** | [**str**](.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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_entity_type_hierarchy** -> get_entity_type_hierarchy(entity_type_id) +# **get_all_property_types_in_namespace** +> list[PropertyType] get_all_property_types_in_namespace(namespace) -Get the EntityType hierarchy for the given EntityType UUID. +Gets all PropertyType definitions under the given namespace. ### Example @@ -4251,13 +2219,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | + namespace = 'namespace_example' # str | try: - # Get the EntityType hierarchy for the given EntityType UUID. - api_instance.get_entity_type_hierarchy(entity_type_id) + # Gets all PropertyType definitions under the given namespace. + api_response = api_instance.get_all_property_types_in_namespace(namespace) + pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_entity_type_hierarchy: %s\n" % e) + print("Exception when calling EdmApi->get_all_property_types_in_namespace: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -4297,24 +2266,25 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | + namespace = 'namespace_example' # str | try: - # Get the EntityType hierarchy for the given EntityType UUID. - api_instance.get_entity_type_hierarchy(entity_type_id) + # Gets all PropertyType definitions under the given namespace. + api_response = api_instance.get_all_property_types_in_namespace(namespace) + pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_entity_type_hierarchy: %s\n" % e) + print("Exception when calling EdmApi->get_all_property_types_in_namespace: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entity_type_id** | [**str**](.md)| | + **namespace** | **str**| | ### Return type -void (empty response body) +[**list[PropertyType]**](PropertyType.md) ### Authorization @@ -4323,7 +2293,7 @@ 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 | @@ -4332,10 +2302,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_entity_type_id** -> str get_entity_type_id(namespace, name) +# **get_all_property_usage_summaries** +> dict(str, PropertyUsageSummary) get_all_property_usage_summaries() -Gets the EntityType UUID for the given EntityType FQN. +Get Property Usage Summary for all properties. ### Example @@ -4376,15 +2346,13 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - namespace = 'openlattice' # str | -name = 'myentitytype' # str | - + try: - # Gets the EntityType UUID for the given EntityType FQN. - api_response = api_instance.get_entity_type_id(namespace, name) + # Get Property Usage Summary for all properties. + api_response = api_instance.get_all_property_usage_summaries() pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_entity_type_id: %s\n" % e) + print("Exception when calling EdmApi->get_all_property_usage_summaries: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -4424,27 +2392,21 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - namespace = 'openlattice' # str | -name = 'myentitytype' # str | - + try: - # Gets the EntityType UUID for the given EntityType FQN. - api_response = api_instance.get_entity_type_id(namespace, name) + # Get Property Usage Summary for all properties. + api_response = api_instance.get_all_property_usage_summaries() pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_entity_type_id: %s\n" % e) + print("Exception when calling EdmApi->get_all_property_usage_summaries: %s\n" % e) ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| | - **name** | **str**| | +This endpoint does not need any parameter. ### Return type -**str** +[**dict(str, PropertyUsageSummary)**](PropertyUsageSummary.md) ### Authorization @@ -4462,10 +2424,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_entity_type_property_metadata** -> EntityTypePropertyMetadata get_entity_type_property_metadata(entity_type_id, property_type_id) +# **get_association_type** +> AssociationType get_association_type(association_type_id) -Get EntityType propertyType metadata +Get the AssociationType definition for the given AssociationType UUID. ### Example @@ -4506,15 +2468,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | -property_type_id = 'property_type_id_example' # str | + association_type_id = 'association_type_id_example' # str | try: - # Get EntityType propertyType metadata - api_response = api_instance.get_entity_type_property_metadata(entity_type_id, property_type_id) + # Get the AssociationType definition for the given AssociationType UUID. + api_response = api_instance.get_association_type(association_type_id) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_entity_type_property_metadata: %s\n" % e) + print("Exception when calling EdmApi->get_association_type: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -4554,27 +2515,25 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | -property_type_id = 'property_type_id_example' # str | + association_type_id = 'association_type_id_example' # str | try: - # Get EntityType propertyType metadata - api_response = api_instance.get_entity_type_property_metadata(entity_type_id, property_type_id) + # Get the AssociationType definition for the given AssociationType UUID. + api_response = api_instance.get_association_type(association_type_id) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_entity_type_property_metadata: %s\n" % e) + print("Exception when calling EdmApi->get_association_type: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entity_type_id** | [**str**](.md)| | - **property_type_id** | [**str**](.md)| | + **association_type_id** | [**str**](.md)| | ### Return type -[**EntityTypePropertyMetadata**](EntityTypePropertyMetadata.md) +[**AssociationType**](AssociationType.md) ### Authorization @@ -4592,10 +2551,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_property_metadata_for_entity_sets** -> dict(str, dict(str, EntitySetPropertyMetaData)) get_property_metadata_for_entity_sets(request_body=request_body) +# **get_association_type_details** +> AssociationType get_association_type_details(association_type_id) -Get property metadata for entity sets. +Get details about the AssociationType for the given AssociationType UUID. ### Example @@ -4636,14 +2595,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - request_body = ['request_body_example'] # list[str] | (optional) + association_type_id = 'association_type_id_example' # str | try: - # Get property metadata for entity sets. - api_response = api_instance.get_property_metadata_for_entity_sets(request_body=request_body) + # Get details about the AssociationType for the given AssociationType UUID. + api_response = api_instance.get_association_type_details(association_type_id) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_property_metadata_for_entity_sets: %s\n" % e) + print("Exception when calling EdmApi->get_association_type_details: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -4683,25 +2642,25 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - request_body = ['request_body_example'] # list[str] | (optional) + association_type_id = 'association_type_id_example' # str | try: - # Get property metadata for entity sets. - api_response = api_instance.get_property_metadata_for_entity_sets(request_body=request_body) + # Get details about the AssociationType for the given AssociationType UUID. + api_response = api_instance.get_association_type_details(association_type_id) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_property_metadata_for_entity_sets: %s\n" % e) + print("Exception when calling EdmApi->get_association_type_details: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **request_body** | [**list[str]**](str.md)| | [optional] + **association_type_id** | [**str**](.md)| | ### Return type -**dict(str, dict(str, EntitySetPropertyMetaData))** +[**AssociationType**](AssociationType.md) ### Authorization @@ -4709,20 +2668,76 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | EntitySetPropertyMetaData | - | +**200** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_property_type** -> PropertyType get_property_type(property_type_id) +# **get_entity_data_model** +> EDM get_entity_data_model() + +Gets the entity data model, including namespaces, schemas, entity types, association types, and property types. + +### Example + +```python +from __future__ import print_function +import time +import openlattice +from openlattice.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openlattice.com +# See configuration.py for a list of all supported configuration parameters. +configuration = openlattice.Configuration( + host = "https://api.openlattice.com" +) + + +# Enter a context with an instance of the API client +with openlattice.ApiClient() as api_client: + # Create an instance of the API class + api_instance = openlattice.EdmApi(api_client) + + try: + # Gets the entity data model, including namespaces, schemas, entity types, association types, and property types. + api_response = api_instance.get_entity_data_model() + pprint(api_response) + except ApiException as e: + print("Exception when calling EdmApi->get_entity_data_model: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**EDM**](EDM.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An Entity Data Model | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_entity_data_model_diff** +> EDMdiff get_entity_data_model_diff(ed_mdiff) -Gets the PropertyType definition for the given PropertyType UUID. +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. ### Example @@ -4763,14 +2778,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - property_type_id = 'property_type_id_example' # str | + ed_mdiff = openlattice.EDMdiff() # EDMdiff | try: - # Gets the PropertyType definition for the given PropertyType UUID. - api_response = api_instance.get_property_type(property_type_id) + # 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. + api_response = api_instance.get_entity_data_model_diff(ed_mdiff) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_property_type: %s\n" % e) + print("Exception when calling EdmApi->get_entity_data_model_diff: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -4810,25 +2825,25 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - property_type_id = 'property_type_id_example' # str | + ed_mdiff = openlattice.EDMdiff() # EDMdiff | try: - # Gets the PropertyType definition for the given PropertyType UUID. - api_response = api_instance.get_property_type(property_type_id) + # 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. + api_response = api_instance.get_entity_data_model_diff(ed_mdiff) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_property_type: %s\n" % e) + print("Exception when calling EdmApi->get_entity_data_model_diff: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **property_type_id** | [**str**](.md)| | + **ed_mdiff** | [**EDMdiff**](EDMdiff.md)| | ### Return type -[**PropertyType**](PropertyType.md) +[**EDMdiff**](EDMdiff.md) ### Authorization @@ -4836,7 +2851,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -4846,62 +2861,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_property_type_id** -> str get_property_type_id(namespace, name) +# **get_entity_type** +> EntityType get_entity_type(entity_type_id) -Gets the PropertyType UUID for the given PropertyType FQN. +Gets the EntityType definition for the given EntityType UUID. ### Example -* Bearer (JWT) Authentication (http_auth): -```python -from __future__ import print_function -import time -import openlattice -from openlattice.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.openlattice.com -# See configuration.py for a list of all supported configuration parameters. -configuration = openlattice.Configuration( - host = "https://api.openlattice.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' - -# Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openlattice.EdmApi(api_client) - namespace = 'namespace_example' # str | -name = 'name_example' # str | - - try: - # Gets the PropertyType UUID for the given PropertyType FQN. - api_response = api_instance.get_property_type_id(namespace, name) - pprint(api_response) - except ApiException as e: - print("Exception when calling EdmApi->get_property_type_id: %s\n" % e) -``` - -* Api Key Authentication (openlattice_auth): ```python from __future__ import print_function import time @@ -4914,55 +2880,34 @@ configuration = openlattice.Configuration( host = "https://api.openlattice.com" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): http_auth -configuration = openlattice.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Configure API key authorization: openlattice_auth -configuration = openlattice.Configuration( - host = "https://api.openlattice.com", - api_key = { - 'openlattice_auth': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['openlattice_auth'] = 'Bearer' # Enter a context with an instance of the API client -with openlattice.ApiClient(configuration) as api_client: +with openlattice.ApiClient() as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - namespace = 'namespace_example' # str | -name = 'name_example' # str | + entity_type_id = 'entity_type_id_example' # str | try: - # Gets the PropertyType UUID for the given PropertyType FQN. - api_response = api_instance.get_property_type_id(namespace, name) + # Gets the EntityType definition for the given EntityType UUID. + api_response = api_instance.get_entity_type(entity_type_id) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_property_type_id: %s\n" % e) + print("Exception when calling EdmApi->get_entity_type: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| | - **name** | **str**| | + **entity_type_id** | [**str**](.md)| | ### Return type -**str** +[**EntityType**](EntityType.md) ### Authorization -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) +No authorization required ### HTTP request headers @@ -4976,10 +2921,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_property_types_for_entity_set** -> dict(str, PropertyType) get_property_types_for_entity_set(entity_set_id) +# **get_entity_type_hierarchy** +> get_entity_type_hierarchy(entity_type_id) -Get all Property Types for entity set +Get the EntityType hierarchy for the given EntityType UUID. ### Example @@ -5020,14 +2965,13 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_set_id = 'entity_set_id_example' # str | + entity_type_id = 'entity_type_id_example' # str | try: - # Get all Property Types for entity set - api_response = api_instance.get_property_types_for_entity_set(entity_set_id) - pprint(api_response) + # Get the EntityType hierarchy for the given EntityType UUID. + api_instance.get_entity_type_hierarchy(entity_type_id) except ApiException as e: - print("Exception when calling EdmApi->get_property_types_for_entity_set: %s\n" % e) + print("Exception when calling EdmApi->get_entity_type_hierarchy: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -5067,25 +3011,24 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_set_id = 'entity_set_id_example' # str | + entity_type_id = 'entity_type_id_example' # str | try: - # Get all Property Types for entity set - api_response = api_instance.get_property_types_for_entity_set(entity_set_id) - pprint(api_response) + # Get the EntityType hierarchy for the given EntityType UUID. + api_instance.get_entity_type_hierarchy(entity_type_id) except ApiException as e: - print("Exception when calling EdmApi->get_property_types_for_entity_set: %s\n" % e) + print("Exception when calling EdmApi->get_entity_type_hierarchy: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**str**](.md)| | + **entity_type_id** | [**str**](.md)| | ### Return type -[**dict(str, PropertyType)**](PropertyType.md) +void (empty response body) ### Authorization @@ -5094,7 +3037,7 @@ 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 | @@ -5103,10 +3046,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_property_usage_summary** -> list[PropertyUsageSummary] get_property_usage_summary(property_type_id) +# **get_entity_type_id** +> str get_entity_type_id(namespace, name) -Get Property Usage Summary for property with given ID. +Gets the EntityType UUID for the given EntityType FQN. ### Example @@ -5147,14 +3090,15 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - property_type_id = 'property_type_id_example' # str | + namespace = 'openlattice' # str | +name = 'myentitytype' # str | try: - # Get Property Usage Summary for property with given ID. - api_response = api_instance.get_property_usage_summary(property_type_id) + # Gets the EntityType UUID for the given EntityType FQN. + api_response = api_instance.get_entity_type_id(namespace, name) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_property_usage_summary: %s\n" % e) + print("Exception when calling EdmApi->get_entity_type_id: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -5194,25 +3138,27 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - property_type_id = 'property_type_id_example' # str | + namespace = 'openlattice' # str | +name = 'myentitytype' # str | try: - # Get Property Usage Summary for property with given ID. - api_response = api_instance.get_property_usage_summary(property_type_id) + # Gets the EntityType UUID for the given EntityType FQN. + api_response = api_instance.get_entity_type_id(namespace, name) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_property_usage_summary: %s\n" % e) + print("Exception when calling EdmApi->get_entity_type_id: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **property_type_id** | [**str**](.md)| | + **namespace** | **str**| | + **name** | **str**| | ### Return type -[**list[PropertyUsageSummary]**](PropertyUsageSummary.md) +**str** ### Authorization @@ -5230,10 +3176,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_schema_contents** -> Schema get_schema_contents(namespace, name, file_type=file_type) +# **get_entity_type_property_metadata** +> EntityTypePropertyMetadata get_entity_type_property_metadata(entity_type_id, property_type_id) -Gets the schema contents for a corresponding namespace and name. +Get EntityType propertyType metadata ### Example @@ -5274,16 +3220,15 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - namespace = 'namespace_example' # str | -name = 'name_example' # str | -file_type = 'yaml' # str | (optional) (default to 'yaml') + entity_type_id = 'entity_type_id_example' # str | +property_type_id = 'property_type_id_example' # str | try: - # Gets the schema contents for a corresponding namespace and name. - api_response = api_instance.get_schema_contents(namespace, name, file_type=file_type) + # Get EntityType propertyType metadata + api_response = api_instance.get_entity_type_property_metadata(entity_type_id, property_type_id) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_schema_contents: %s\n" % e) + print("Exception when calling EdmApi->get_entity_type_property_metadata: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -5323,29 +3268,27 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - namespace = 'namespace_example' # str | -name = 'name_example' # str | -file_type = 'yaml' # str | (optional) (default to 'yaml') + entity_type_id = 'entity_type_id_example' # str | +property_type_id = 'property_type_id_example' # str | try: - # Gets the schema contents for a corresponding namespace and name. - api_response = api_instance.get_schema_contents(namespace, name, file_type=file_type) + # Get EntityType propertyType metadata + api_response = api_instance.get_entity_type_property_metadata(entity_type_id, property_type_id) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_schema_contents: %s\n" % e) + print("Exception when calling EdmApi->get_entity_type_property_metadata: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| | - **name** | **str**| | - **file_type** | **str**| | [optional] [default to 'yaml'] + **entity_type_id** | [**str**](.md)| | + **property_type_id** | [**str**](.md)| | ### Return type -[**Schema**](Schema.md) +[**EntityTypePropertyMetadata**](EntityTypePropertyMetadata.md) ### Authorization @@ -5363,10 +3306,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_schemas** -> list[Schema] get_schemas() +# **get_property_type** +> PropertyType get_property_type(property_type_id) -Gets all schemas. +Gets the PropertyType definition for the given PropertyType UUID. ### Example @@ -5407,13 +3350,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - + property_type_id = 'property_type_id_example' # str | + try: - # Gets all schemas. - api_response = api_instance.get_schemas() + # Gets the PropertyType definition for the given PropertyType UUID. + api_response = api_instance.get_property_type(property_type_id) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_schemas: %s\n" % e) + print("Exception when calling EdmApi->get_property_type: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -5453,21 +3397,25 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - + property_type_id = 'property_type_id_example' # str | + try: - # Gets all schemas. - api_response = api_instance.get_schemas() + # Gets the PropertyType definition for the given PropertyType UUID. + api_response = api_instance.get_property_type(property_type_id) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_schemas: %s\n" % e) + print("Exception when calling EdmApi->get_property_type: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_type_id** | [**str**](.md)| | ### Return type -[**list[Schema]**](Schema.md) +[**PropertyType**](PropertyType.md) ### Authorization @@ -5485,10 +3433,10 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_schemas_in_namespace** -> list[Schema] get_schemas_in_namespace(namespace) +# **get_property_type_id** +> str get_property_type_id(namespace, name) -Gets all schemas associated with a given namespace and accessible by the caller. +Gets the PropertyType UUID for the given PropertyType FQN. ### Example @@ -5530,13 +3478,14 @@ with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) namespace = 'namespace_example' # str | +name = 'name_example' # str | try: - # Gets all schemas associated with a given namespace and accessible by the caller. - api_response = api_instance.get_schemas_in_namespace(namespace) + # Gets the PropertyType UUID for the given PropertyType FQN. + api_response = api_instance.get_property_type_id(namespace, name) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_schemas_in_namespace: %s\n" % e) + print("Exception when calling EdmApi->get_property_type_id: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -5577,13 +3526,14 @@ with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) namespace = 'namespace_example' # str | +name = 'name_example' # str | try: - # Gets all schemas associated with a given namespace and accessible by the caller. - api_response = api_instance.get_schemas_in_namespace(namespace) + # Gets the PropertyType UUID for the given PropertyType FQN. + api_response = api_instance.get_property_type_id(namespace, name) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->get_schemas_in_namespace: %s\n" % e) + print("Exception when calling EdmApi->get_property_type_id: %s\n" % e) ``` ### Parameters @@ -5591,10 +3541,11 @@ with openlattice.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| | + **name** | **str**| | ### Return type -[**list[Schema]**](Schema.md) +**str** ### Authorization @@ -5612,10 +3563,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **remove_dst_entity_type_from_association_type** -> remove_dst_entity_type_from_association_type(association_type_id, entity_type_id) +# **get_property_usage_summary** +> list[PropertyUsageSummary] get_property_usage_summary(property_type_id) -Updates the AssociationType dst entity types for the given AssociationType UUID by removing the given EntityType UUID. +Get Property Usage Summary for property with given ID. ### Example @@ -5656,14 +3607,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - association_type_id = 'association_type_id_example' # str | -entity_type_id = 'entity_type_id_example' # str | + property_type_id = 'property_type_id_example' # str | try: - # Updates the AssociationType dst entity types for the given AssociationType UUID by removing the given EntityType UUID. - api_instance.remove_dst_entity_type_from_association_type(association_type_id, entity_type_id) + # Get Property Usage Summary for property with given ID. + api_response = api_instance.get_property_usage_summary(property_type_id) + pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->remove_dst_entity_type_from_association_type: %s\n" % e) + print("Exception when calling EdmApi->get_property_usage_summary: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -5703,26 +3654,25 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - association_type_id = 'association_type_id_example' # str | -entity_type_id = 'entity_type_id_example' # str | + property_type_id = 'property_type_id_example' # str | try: - # Updates the AssociationType dst entity types for the given AssociationType UUID by removing the given EntityType UUID. - api_instance.remove_dst_entity_type_from_association_type(association_type_id, entity_type_id) + # Get Property Usage Summary for property with given ID. + api_response = api_instance.get_property_usage_summary(property_type_id) + pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->remove_dst_entity_type_from_association_type: %s\n" % e) + print("Exception when calling EdmApi->get_property_usage_summary: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **association_type_id** | [**str**](.md)| | - **entity_type_id** | [**str**](.md)| | + **property_type_id** | [**str**](.md)| | ### Return type -void (empty response body) +[**list[PropertyUsageSummary]**](PropertyUsageSummary.md) ### Authorization @@ -5731,7 +3681,7 @@ 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 | @@ -5740,10 +3690,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **remove_entity_sets_from_linking_entity_set** -> int remove_entity_sets_from_linking_entity_set(linking_entity_set_id, request_body=request_body) +# **get_schema_contents** +> Schema get_schema_contents(namespace, name, file_type=file_type) -Removes/unlinks the linked entity sets from the linking entity set +Gets the schema contents for a corresponding namespace and name. ### Example @@ -5784,15 +3734,16 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - linking_entity_set_id = 'linking_entity_set_id_example' # str | -request_body = ['request_body_example'] # list[str] | (optional) + namespace = 'namespace_example' # str | +name = 'name_example' # str | +file_type = 'yaml' # str | (optional) (default to 'yaml') try: - # Removes/unlinks the linked entity sets from the linking entity set - api_response = api_instance.remove_entity_sets_from_linking_entity_set(linking_entity_set_id, request_body=request_body) + # Gets the schema contents for a corresponding namespace and name. + api_response = api_instance.get_schema_contents(namespace, name, file_type=file_type) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->remove_entity_sets_from_linking_entity_set: %s\n" % e) + print("Exception when calling EdmApi->get_schema_contents: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -5832,27 +3783,29 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - linking_entity_set_id = 'linking_entity_set_id_example' # str | -request_body = ['request_body_example'] # list[str] | (optional) + namespace = 'namespace_example' # str | +name = 'name_example' # str | +file_type = 'yaml' # str | (optional) (default to 'yaml') try: - # Removes/unlinks the linked entity sets from the linking entity set - api_response = api_instance.remove_entity_sets_from_linking_entity_set(linking_entity_set_id, request_body=request_body) + # Gets the schema contents for a corresponding namespace and name. + api_response = api_instance.get_schema_contents(namespace, name, file_type=file_type) pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->remove_entity_sets_from_linking_entity_set: %s\n" % e) + print("Exception when calling EdmApi->get_schema_contents: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **linking_entity_set_id** | **str**| | - **request_body** | [**list[str]**](str.md)| | [optional] + **namespace** | **str**| | + **name** | **str**| | + **file_type** | **str**| | [optional] [default to 'yaml'] ### Return type -**int** +[**Schema**](Schema.md) ### Authorization @@ -5860,7 +3813,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -5870,10 +3823,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **remove_entity_sets_from_linking_entity_sets** -> int remove_entity_sets_from_linking_entity_sets(linking_entity_set_id, request_body) +# **get_schemas** +> list[Schema] get_schemas() -Removes/unlinks the linked entity sets from the linking entity set +Gets all schemas. ### Example @@ -5914,15 +3867,13 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - linking_entity_set_id = 'linking_entity_set_id_example' # str | -request_body = None # dict(str, list[str]) | - + try: - # Removes/unlinks the linked entity sets from the linking entity set - api_response = api_instance.remove_entity_sets_from_linking_entity_sets(linking_entity_set_id, request_body) + # Gets all schemas. + api_response = api_instance.get_schemas() pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->remove_entity_sets_from_linking_entity_sets: %s\n" % e) + print("Exception when calling EdmApi->get_schemas: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -5962,27 +3913,21 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - linking_entity_set_id = 'linking_entity_set_id_example' # str | -request_body = None # dict(str, list[str]) | - + try: - # Removes/unlinks the linked entity sets from the linking entity set - api_response = api_instance.remove_entity_sets_from_linking_entity_sets(linking_entity_set_id, request_body) + # Gets all schemas. + api_response = api_instance.get_schemas() pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->remove_entity_sets_from_linking_entity_sets: %s\n" % e) + print("Exception when calling EdmApi->get_schemas: %s\n" % e) ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **linking_entity_set_id** | [**str**](.md)| | - **request_body** | [**dict(str, list[str])**](list.md)| | +This endpoint does not need any parameter. ### Return type -**int** +[**list[Schema]**](Schema.md) ### Authorization @@ -5990,7 +3935,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -6000,10 +3945,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **remove_primary_key_from_entity_type** -> remove_primary_key_from_entity_type(entity_type_id, property_type_id) +# **get_schemas_in_namespace** +> list[Schema] get_schemas_in_namespace(namespace) -Removes a primary key with a given ID from an entity type with a given ID. +Gets all schemas associated with a given namespace and accessible by the caller. ### Example @@ -6044,14 +3989,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | -property_type_id = 'property_type_id_example' # str | + namespace = 'namespace_example' # str | try: - # Removes a primary key with a given ID from an entity type with a given ID. - api_instance.remove_primary_key_from_entity_type(entity_type_id, property_type_id) + # Gets all schemas associated with a given namespace and accessible by the caller. + api_response = api_instance.get_schemas_in_namespace(namespace) + pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->remove_primary_key_from_entity_type: %s\n" % e) + print("Exception when calling EdmApi->get_schemas_in_namespace: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -6091,26 +4036,25 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | -property_type_id = 'property_type_id_example' # str | + namespace = 'namespace_example' # str | try: - # Removes a primary key with a given ID from an entity type with a given ID. - api_instance.remove_primary_key_from_entity_type(entity_type_id, property_type_id) + # Gets all schemas associated with a given namespace and accessible by the caller. + api_response = api_instance.get_schemas_in_namespace(namespace) + pprint(api_response) except ApiException as e: - print("Exception when calling EdmApi->remove_primary_key_from_entity_type: %s\n" % e) + print("Exception when calling EdmApi->get_schemas_in_namespace: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entity_type_id** | [**str**](.md)| | - **property_type_id** | [**str**](.md)| | + **namespace** | **str**| | ### Return type -void (empty response body) +[**list[Schema]**](Schema.md) ### Authorization @@ -6119,7 +4063,7 @@ 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 | @@ -6128,10 +4072,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **remove_property_type_from_entity_type** -> remove_property_type_from_entity_type(entity_type_id, property_type_id) +# **remove_dst_entity_type_from_association_type** +> remove_dst_entity_type_from_association_type(association_type_id, entity_type_id) -Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. +Updates the AssociationType dst entity types for the given AssociationType UUID by removing the given EntityType UUID. ### Example @@ -6172,14 +4116,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | -property_type_id = 'property_type_id_example' # str | + association_type_id = 'association_type_id_example' # str | +entity_type_id = 'entity_type_id_example' # str | try: - # Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. - api_instance.remove_property_type_from_entity_type(entity_type_id, property_type_id) + # Updates the AssociationType dst entity types for the given AssociationType UUID by removing the given EntityType UUID. + api_instance.remove_dst_entity_type_from_association_type(association_type_id, entity_type_id) except ApiException as e: - print("Exception when calling EdmApi->remove_property_type_from_entity_type: %s\n" % e) + print("Exception when calling EdmApi->remove_dst_entity_type_from_association_type: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -6219,22 +4163,22 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_type_id = 'entity_type_id_example' # str | -property_type_id = 'property_type_id_example' # str | + association_type_id = 'association_type_id_example' # str | +entity_type_id = 'entity_type_id_example' # str | try: - # Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. - api_instance.remove_property_type_from_entity_type(entity_type_id, property_type_id) + # Updates the AssociationType dst entity types for the given AssociationType UUID by removing the given EntityType UUID. + api_instance.remove_dst_entity_type_from_association_type(association_type_id, entity_type_id) except ApiException as e: - print("Exception when calling EdmApi->remove_property_type_from_entity_type: %s\n" % e) + print("Exception when calling EdmApi->remove_dst_entity_type_from_association_type: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **association_type_id** | [**str**](.md)| | **entity_type_id** | [**str**](.md)| | - **property_type_id** | [**str**](.md)| | ### Return type @@ -6256,10 +4200,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **remove_src_entity_type_from_association_type** -> remove_src_entity_type_from_association_type(association_type_id, entity_type_id) +# **remove_primary_key_from_entity_type** +> remove_primary_key_from_entity_type(entity_type_id, property_type_id) -Updates the AssociationType src entity types for the given AssociationType UUID by removing the given EntityType UUID. +Removes a primary key with a given ID from an entity type with a given ID. ### Example @@ -6300,14 +4244,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - association_type_id = 'association_type_id_example' # str | -entity_type_id = 'entity_type_id_example' # str | + entity_type_id = 'entity_type_id_example' # str | +property_type_id = 'property_type_id_example' # str | try: - # Updates the AssociationType src entity types for the given AssociationType UUID by removing the given EntityType UUID. - api_instance.remove_src_entity_type_from_association_type(association_type_id, entity_type_id) + # Removes a primary key with a given ID from an entity type with a given ID. + api_instance.remove_primary_key_from_entity_type(entity_type_id, property_type_id) except ApiException as e: - print("Exception when calling EdmApi->remove_src_entity_type_from_association_type: %s\n" % e) + print("Exception when calling EdmApi->remove_primary_key_from_entity_type: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -6347,22 +4291,22 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - association_type_id = 'association_type_id_example' # str | -entity_type_id = 'entity_type_id_example' # str | + entity_type_id = 'entity_type_id_example' # str | +property_type_id = 'property_type_id_example' # str | try: - # Updates the AssociationType src entity types for the given AssociationType UUID by removing the given EntityType UUID. - api_instance.remove_src_entity_type_from_association_type(association_type_id, entity_type_id) + # Removes a primary key with a given ID from an entity type with a given ID. + api_instance.remove_primary_key_from_entity_type(entity_type_id, property_type_id) except ApiException as e: - print("Exception when calling EdmApi->remove_src_entity_type_from_association_type: %s\n" % e) + print("Exception when calling EdmApi->remove_primary_key_from_entity_type: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **association_type_id** | [**str**](.md)| | **entity_type_id** | [**str**](.md)| | + **property_type_id** | [**str**](.md)| | ### Return type @@ -6384,10 +4328,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **reorder_property_types_in_entity_type** -> reorder_property_types_in_entity_type(entity_type_id, property_type_ids) +# **remove_property_type_from_entity_type** +> remove_property_type_from_entity_type(entity_type_id, property_type_id) -Updates the EntityType definition for the given EntityType UUID by reordering its properties as specified by the provided list. +Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. ### Example @@ -6429,13 +4373,13 @@ with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) entity_type_id = 'entity_type_id_example' # str | -property_type_ids = ['property_type_ids_example'] # list[str] | +property_type_id = 'property_type_id_example' # str | try: - # Updates the EntityType definition for the given EntityType UUID by reordering its properties as specified by the provided list. - api_instance.reorder_property_types_in_entity_type(entity_type_id, property_type_ids) + # Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. + api_instance.remove_property_type_from_entity_type(entity_type_id, property_type_id) except ApiException as e: - print("Exception when calling EdmApi->reorder_property_types_in_entity_type: %s\n" % e) + print("Exception when calling EdmApi->remove_property_type_from_entity_type: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -6476,13 +4420,13 @@ with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) entity_type_id = 'entity_type_id_example' # str | -property_type_ids = ['property_type_ids_example'] # list[str] | +property_type_id = 'property_type_id_example' # str | try: - # Updates the EntityType definition for the given EntityType UUID by reordering its properties as specified by the provided list. - api_instance.reorder_property_types_in_entity_type(entity_type_id, property_type_ids) + # Updates the EntityType definition for the given EntityType UUID by removing the given PropertyType UUID. + api_instance.remove_property_type_from_entity_type(entity_type_id, property_type_id) except ApiException as e: - print("Exception when calling EdmApi->reorder_property_types_in_entity_type: %s\n" % e) + print("Exception when calling EdmApi->remove_property_type_from_entity_type: %s\n" % e) ``` ### Parameters @@ -6490,7 +4434,7 @@ property_type_ids = ['property_type_ids_example'] # list[str] | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **entity_type_id** | [**str**](.md)| | - **property_type_ids** | [**list[str]**](str.md)| | + **property_type_id** | [**str**](.md)| | ### Return type @@ -6512,10 +4456,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **update_entity_data_model** -> update_entity_data_model(edm) +# **remove_src_entity_type_from_association_type** +> remove_src_entity_type_from_association_type(association_type_id, entity_type_id) -Updates the entity data model, including schemas, entity types, association types, and property types. +Updates the AssociationType src entity types for the given AssociationType UUID by removing the given EntityType UUID. ### Example @@ -6556,13 +4500,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - edm = openlattice.EDM() # EDM | + association_type_id = 'association_type_id_example' # str | +entity_type_id = 'entity_type_id_example' # str | try: - # Updates the entity data model, including schemas, entity types, association types, and property types. - api_instance.update_entity_data_model(edm) + # Updates the AssociationType src entity types for the given AssociationType UUID by removing the given EntityType UUID. + api_instance.remove_src_entity_type_from_association_type(association_type_id, entity_type_id) except ApiException as e: - print("Exception when calling EdmApi->update_entity_data_model: %s\n" % e) + print("Exception when calling EdmApi->remove_src_entity_type_from_association_type: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -6602,20 +4547,22 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - edm = openlattice.EDM() # EDM | + association_type_id = 'association_type_id_example' # str | +entity_type_id = 'entity_type_id_example' # str | try: - # Updates the entity data model, including schemas, entity types, association types, and property types. - api_instance.update_entity_data_model(edm) + # Updates the AssociationType src entity types for the given AssociationType UUID by removing the given EntityType UUID. + api_instance.remove_src_entity_type_from_association_type(association_type_id, entity_type_id) except ApiException as e: - print("Exception when calling EdmApi->update_entity_data_model: %s\n" % e) + print("Exception when calling EdmApi->remove_src_entity_type_from_association_type: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **edm** | [**EDM**](EDM.md)| | + **association_type_id** | [**str**](.md)| | + **entity_type_id** | [**str**](.md)| | ### Return type @@ -6627,7 +4574,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: Not defined ### HTTP response details @@ -6637,10 +4584,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **update_entity_set_meta_data** -> int update_entity_set_meta_data(entity_set_id, metadata_update) +# **reorder_property_types_in_entity_type** +> reorder_property_types_in_entity_type(entity_type_id, property_type_ids) -Updates the EntitySet definition for the given EntitySet UUID with the given metadata. +Updates the EntityType definition for the given EntityType UUID by reordering its properties as specified by the provided list. ### Example @@ -6681,15 +4628,14 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_set_id = 'entity_set_id_example' # str | -metadata_update = openlattice.MetadataUpdate() # MetadataUpdate | + entity_type_id = 'entity_type_id_example' # str | +property_type_ids = ['property_type_ids_example'] # list[str] | try: - # Updates the EntitySet definition for the given EntitySet UUID with the given metadata. - api_response = api_instance.update_entity_set_meta_data(entity_set_id, metadata_update) - pprint(api_response) + # Updates the EntityType definition for the given EntityType UUID by reordering its properties as specified by the provided list. + api_instance.reorder_property_types_in_entity_type(entity_type_id, property_type_ids) except ApiException as e: - print("Exception when calling EdmApi->update_entity_set_meta_data: %s\n" % e) + print("Exception when calling EdmApi->reorder_property_types_in_entity_type: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -6729,27 +4675,26 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_set_id = 'entity_set_id_example' # str | -metadata_update = openlattice.MetadataUpdate() # MetadataUpdate | + entity_type_id = 'entity_type_id_example' # str | +property_type_ids = ['property_type_ids_example'] # list[str] | try: - # Updates the EntitySet definition for the given EntitySet UUID with the given metadata. - api_response = api_instance.update_entity_set_meta_data(entity_set_id, metadata_update) - pprint(api_response) + # Updates the EntityType definition for the given EntityType UUID by reordering its properties as specified by the provided list. + api_instance.reorder_property_types_in_entity_type(entity_type_id, property_type_ids) except ApiException as e: - print("Exception when calling EdmApi->update_entity_set_meta_data: %s\n" % e) + print("Exception when calling EdmApi->reorder_property_types_in_entity_type: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**str**](.md)| | - **metadata_update** | [**MetadataUpdate**](MetadataUpdate.md)| | + **entity_type_id** | [**str**](.md)| | + **property_type_ids** | [**list[str]**](str.md)| | ### Return type -**int** +void (empty response body) ### Authorization @@ -6757,8 +4702,8 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json + - **Content-Type**: Not defined + - **Accept**: Not defined ### HTTP response details | Status code | Description | Response headers | @@ -6767,10 +4712,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **update_entity_set_property_metadata** -> update_entity_set_property_metadata(entity_set_id, property_type_id, metadata_update) +# **update_entity_data_model** +> update_entity_data_model(edm) -Updates the property type metadata for the given entity set. +Updates the entity data model, including schemas, entity types, association types, and property types. ### Example @@ -6811,15 +4756,13 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_set_id = 'entity_set_id_example' # str | -property_type_id = 'property_type_id_example' # str | -metadata_update = openlattice.MetadataUpdate() # MetadataUpdate | + edm = openlattice.EDM() # EDM | try: - # Updates the property type metadata for the given entity set. - api_instance.update_entity_set_property_metadata(entity_set_id, property_type_id, metadata_update) + # Updates the entity data model, including schemas, entity types, association types, and property types. + api_instance.update_entity_data_model(edm) except ApiException as e: - print("Exception when calling EdmApi->update_entity_set_property_metadata: %s\n" % e) + print("Exception when calling EdmApi->update_entity_data_model: %s\n" % e) ``` * Api Key Authentication (openlattice_auth): @@ -6859,24 +4802,20 @@ configuration = openlattice.Configuration( with openlattice.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openlattice.EdmApi(api_client) - entity_set_id = 'entity_set_id_example' # str | -property_type_id = 'property_type_id_example' # str | -metadata_update = openlattice.MetadataUpdate() # MetadataUpdate | + edm = openlattice.EDM() # EDM | try: - # Updates the property type metadata for the given entity set. - api_instance.update_entity_set_property_metadata(entity_set_id, property_type_id, metadata_update) + # Updates the entity data model, including schemas, entity types, association types, and property types. + api_instance.update_entity_data_model(edm) except ApiException as e: - print("Exception when calling EdmApi->update_entity_set_property_metadata: %s\n" % e) + print("Exception when calling EdmApi->update_entity_data_model: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**str**](.md)| | - **property_type_id** | [**str**](.md)| | - **metadata_update** | [**MetadataUpdate**](MetadataUpdate.md)| | + **edm** | [**EDM**](EDM.md)| | ### Return type diff --git a/python/openlattice/api/edm_api.py b/python/openlattice/api/edm_api.py index aa7a8df..1c29ebe 100644 --- a/python/openlattice/api/edm_api.py +++ b/python/openlattice/api/edm_api.py @@ -173,290 +173,6 @@ def add_dst_entity_type_to_association_type_with_http_info(self, association_typ collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) - def add_entity_sets_to_linking_entity_set(self, linking_entity_set_id, **kwargs): # noqa: E501 - """Adds the entity sets as linked entity sets to the linking entity set # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.add_entity_sets_to_linking_entity_set(linking_entity_set_id, async_req=True) - >>> result = thread.get() - - :param linking_entity_set_id: (required) - :type linking_entity_set_id: str - :param request_body: - :type request_body: list[str] - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: int - """ - kwargs['_return_http_data_only'] = True - return self.add_entity_sets_to_linking_entity_set_with_http_info(linking_entity_set_id, **kwargs) # noqa: E501 - - def add_entity_sets_to_linking_entity_set_with_http_info(self, linking_entity_set_id, **kwargs): # noqa: E501 - """Adds the entity sets as linked entity sets to the linking entity set # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.add_entity_sets_to_linking_entity_set_with_http_info(linking_entity_set_id, async_req=True) - >>> result = thread.get() - - :param linking_entity_set_id: (required) - :type linking_entity_set_id: str - :param request_body: - :type request_body: list[str] - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: response data without head status code - and headers - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: tuple(int, status_code(int), headers(HTTPHeaderDict)) - """ - - local_var_params = locals() - - all_params = [ - 'linking_entity_set_id', - 'request_body' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout', - '_request_auth' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method add_entity_sets_to_linking_entity_set" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'linking_entity_set_id' is set - if self.api_client.client_side_validation and ('linking_entity_set_id' not in local_var_params or # noqa: E501 - local_var_params['linking_entity_set_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `linking_entity_set_id` when calling `add_entity_sets_to_linking_entity_set`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'linking_entity_set_id' in local_var_params: - path_params['linkingEntitySetId'] = local_var_params['linking_entity_set_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'request_body' in local_var_params: - body_params = local_var_params['request_body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 - - return self.api_client.call_api( - '/datastore/entity-sets/linking/{linkingEntitySetId}', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='int', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) - - def add_entity_sets_to_linking_entity_sets(self, linking_entity_set_id, request_body, **kwargs): # noqa: E501 - """Adds the entity sets as linked entity sets to the linking entity sets # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.add_entity_sets_to_linking_entity_sets(linking_entity_set_id, request_body, async_req=True) - >>> result = thread.get() - - :param linking_entity_set_id: (required) - :type linking_entity_set_id: str - :param request_body: (required) - :type request_body: dict(str, list[str]) - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: int - """ - kwargs['_return_http_data_only'] = True - return self.add_entity_sets_to_linking_entity_sets_with_http_info(linking_entity_set_id, request_body, **kwargs) # noqa: E501 - - def add_entity_sets_to_linking_entity_sets_with_http_info(self, linking_entity_set_id, request_body, **kwargs): # noqa: E501 - """Adds the entity sets as linked entity sets to the linking entity sets # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.add_entity_sets_to_linking_entity_sets_with_http_info(linking_entity_set_id, request_body, async_req=True) - >>> result = thread.get() - - :param linking_entity_set_id: (required) - :type linking_entity_set_id: str - :param request_body: (required) - :type request_body: dict(str, list[str]) - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: response data without head status code - and headers - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: tuple(int, status_code(int), headers(HTTPHeaderDict)) - """ - - local_var_params = locals() - - all_params = [ - 'linking_entity_set_id', - 'request_body' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout', - '_request_auth' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method add_entity_sets_to_linking_entity_sets" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'linking_entity_set_id' is set - if self.api_client.client_side_validation and ('linking_entity_set_id' not in local_var_params or # noqa: E501 - local_var_params['linking_entity_set_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `linking_entity_set_id` when calling `add_entity_sets_to_linking_entity_sets`") # noqa: E501 - # verify the required parameter 'request_body' is set - if self.api_client.client_side_validation and ('request_body' not in local_var_params or # noqa: E501 - local_var_params['request_body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `request_body` when calling `add_entity_sets_to_linking_entity_sets`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'linking_entity_set_id' in local_var_params: - path_params['linkingEntitySetId'] = local_var_params['linking_entity_set_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'request_body' in local_var_params: - body_params = local_var_params['request_body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 - - return self.api_client.call_api( - '/datastore/entity-sets/linking/', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='int', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) - def add_primary_key_to_entity_type(self, entity_type_id, property_type_id, **kwargs): # noqa: E501 """Adds a primary key with a given ID to an entity type with a given ID. # noqa: E501 @@ -1130,17 +846,17 @@ def create_empty_schema_with_http_info(self, namespace, name, **kwargs): # noqa collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) - def create_entity_sets(self, entity_set, **kwargs): # noqa: E501 - """Creates new EntitySet definitions if they don't exist. # noqa: E501 + def create_entity_type(self, entity_type, **kwargs): # noqa: E501 + """Creates a new EntityType definition, if it doesn't exist. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_entity_sets(entity_set, async_req=True) + >>> thread = api.create_entity_type(entity_type, async_req=True) >>> result = thread.get() - :param entity_set: (required) - :type entity_set: list[EntitySet] + :param entity_type: (required) + :type entity_type: EntityType :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -1157,19 +873,19 @@ def create_entity_sets(self, entity_set, **kwargs): # noqa: E501 :rtype: None """ kwargs['_return_http_data_only'] = True - return self.create_entity_sets_with_http_info(entity_set, **kwargs) # noqa: E501 + return self.create_entity_type_with_http_info(entity_type, **kwargs) # noqa: E501 - def create_entity_sets_with_http_info(self, entity_set, **kwargs): # noqa: E501 - """Creates new EntitySet definitions if they don't exist. # noqa: E501 + def create_entity_type_with_http_info(self, entity_type, **kwargs): # noqa: E501 + """Creates a new EntityType definition, if it doesn't exist. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_entity_sets_with_http_info(entity_set, async_req=True) + >>> thread = api.create_entity_type_with_http_info(entity_type, async_req=True) >>> result = thread.get() - :param entity_set: (required) - :type entity_set: list[EntitySet] + :param entity_type: (required) + :type entity_type: EntityType :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -1196,7 +912,7 @@ def create_entity_sets_with_http_info(self, entity_set, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ - 'entity_set' + 'entity_type' ] all_params.extend( [ @@ -1212,14 +928,14 @@ def create_entity_sets_with_http_info(self, entity_set, **kwargs): # noqa: E501 if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method create_entity_sets" % key + " to method create_entity_type" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'entity_set' is set - if self.api_client.client_side_validation and ('entity_set' not in local_var_params or # noqa: E501 - local_var_params['entity_set'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `entity_set` when calling `create_entity_sets`") # noqa: E501 + # verify the required parameter 'entity_type' is set + if self.api_client.client_side_validation and ('entity_type' not in local_var_params or # noqa: E501 + local_var_params['entity_type'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `entity_type` when calling `create_entity_type`") # noqa: E501 collection_formats = {} @@ -1233,17 +949,17 @@ def create_entity_sets_with_http_info(self, entity_set, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'entity_set' in local_var_params: - body_params = local_var_params['entity_set'] + if 'entity_type' in local_var_params: + body_params = local_var_params['entity_type'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 + auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/datastore/entity-sets', 'POST', + '/datastore/edm/entity/type/', 'POST', path_params, query_params, header_params, @@ -1259,17 +975,17 @@ def create_entity_sets_with_http_info(self, entity_set, **kwargs): # noqa: E501 collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) - def create_entity_type(self, entity_type, **kwargs): # noqa: E501 - """Creates a new EntityType definition, if it doesn't exist. # noqa: E501 + def create_property_type(self, property_type, **kwargs): # noqa: E501 + """Creates a new PropertyType definition, if it doesn\"t exist. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_entity_type(entity_type, async_req=True) + >>> thread = api.create_property_type(property_type, async_req=True) >>> result = thread.get() - :param entity_type: (required) - :type entity_type: EntityType + :param property_type: (required) + :type property_type: PropertyType :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -1286,136 +1002,7 @@ def create_entity_type(self, entity_type, **kwargs): # noqa: E501 :rtype: None """ kwargs['_return_http_data_only'] = True - return self.create_entity_type_with_http_info(entity_type, **kwargs) # noqa: E501 - - def create_entity_type_with_http_info(self, entity_type, **kwargs): # noqa: E501 - """Creates a new EntityType definition, if it doesn't exist. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.create_entity_type_with_http_info(entity_type, async_req=True) - >>> result = thread.get() - - :param entity_type: (required) - :type entity_type: EntityType - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: response data without head status code - and headers - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: None - """ - - local_var_params = locals() - - all_params = [ - 'entity_type' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout', - '_request_auth' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method create_entity_type" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'entity_type' is set - if self.api_client.client_side_validation and ('entity_type' not in local_var_params or # noqa: E501 - local_var_params['entity_type'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `entity_type` when calling `create_entity_type`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'entity_type' in local_var_params: - body_params = local_var_params['entity_type'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/datastore/edm/entity/type/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) - - def create_property_type(self, property_type, **kwargs): # noqa: E501 - """Creates a new PropertyType definition, if it doesn\"t exist. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.create_property_type(property_type, async_req=True) - >>> result = thread.get() - - :param property_type: (required) - :type property_type: PropertyType - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: None - """ - kwargs['_return_http_data_only'] = True - return self.create_property_type_with_http_info(property_type, **kwargs) # noqa: E501 + return self.create_property_type_with_http_info(property_type, **kwargs) # noqa: E501 def create_property_type_with_http_info(self, property_type, **kwargs): # noqa: E501 """Creates a new PropertyType definition, if it doesn\"t exist. # noqa: E501 @@ -1771,131 +1358,6 @@ def delete_association_type_with_http_info(self, association_type_id, **kwargs): collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) - def delete_entity_set(self, entity_set_id, **kwargs): # noqa: E501 - """Deletes the EntitySet definition for the given EntitySet UUID. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.delete_entity_set(entity_set_id, async_req=True) - >>> result = thread.get() - - :param entity_set_id: (required) - :type entity_set_id: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: None - """ - kwargs['_return_http_data_only'] = True - return self.delete_entity_set_with_http_info(entity_set_id, **kwargs) # noqa: E501 - - def delete_entity_set_with_http_info(self, entity_set_id, **kwargs): # noqa: E501 - """Deletes the EntitySet definition for the given EntitySet UUID. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.delete_entity_set_with_http_info(entity_set_id, async_req=True) - >>> result = thread.get() - - :param entity_set_id: (required) - :type entity_set_id: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: response data without head status code - and headers - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: None - """ - - local_var_params = locals() - - all_params = [ - 'entity_set_id' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout', - '_request_auth' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_entity_set" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'entity_set_id' is set - if self.api_client.client_side_validation and ('entity_set_id' not in local_var_params or # noqa: E501 - local_var_params['entity_set_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `entity_set_id` when calling `delete_entity_set`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'entity_set_id' in local_var_params: - path_params['entitySetId'] = local_var_params['entity_set_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 - - return self.api_client.call_api( - '/datastore/entity-sets/all/{entitySetId}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) - def delete_entity_type(self, entity_type_id, **kwargs): # noqa: E501 """Deletes the EntityType definition for the given EntityType UUID. # noqa: E501 @@ -2654,17 +2116,17 @@ def get_all_available_association_types_with_http_info(self, association_type_id collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) - def get_all_entity_set_property_metadata(self, entity_set_id, **kwargs): # noqa: E501 - """Get all entity set property metadata. # noqa: E501 + def get_all_entity_type_property_metadata(self, entity_type_id, **kwargs): # noqa: E501 + """Get all EntityType propertyType metadata # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_all_entity_set_property_metadata(entity_set_id, async_req=True) + >>> thread = api.get_all_entity_type_property_metadata(entity_type_id, async_req=True) >>> result = thread.get() - :param entity_set_id: (required) - :type entity_set_id: str + :param entity_type_id: (required) + :type entity_type_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -2678,22 +2140,22 @@ def get_all_entity_set_property_metadata(self, entity_set_id, **kwargs): # noqa :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: dict(str, EntitySetPropertyMetaData) + :rtype: dict(str, EntityTypePropertyMetadata) """ kwargs['_return_http_data_only'] = True - return self.get_all_entity_set_property_metadata_with_http_info(entity_set_id, **kwargs) # noqa: E501 + return self.get_all_entity_type_property_metadata_with_http_info(entity_type_id, **kwargs) # noqa: E501 - def get_all_entity_set_property_metadata_with_http_info(self, entity_set_id, **kwargs): # noqa: E501 - """Get all entity set property metadata. # noqa: E501 + def get_all_entity_type_property_metadata_with_http_info(self, entity_type_id, **kwargs): # noqa: E501 + """Get all EntityType propertyType metadata # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_all_entity_set_property_metadata_with_http_info(entity_set_id, async_req=True) + >>> thread = api.get_all_entity_type_property_metadata_with_http_info(entity_type_id, async_req=True) >>> result = thread.get() - :param entity_set_id: (required) - :type entity_set_id: str + :param entity_type_id: (required) + :type entity_type_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -2714,13 +2176,13 @@ def get_all_entity_set_property_metadata_with_http_info(self, entity_set_id, **k :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(dict(str, EntitySetPropertyMetaData), status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(dict(str, EntityTypePropertyMetadata), status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() all_params = [ - 'entity_set_id' + 'entity_type_id' ] all_params.extend( [ @@ -2736,20 +2198,20 @@ def get_all_entity_set_property_metadata_with_http_info(self, entity_set_id, **k if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method get_all_entity_set_property_metadata" % key + " to method get_all_entity_type_property_metadata" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'entity_set_id' is set - if self.api_client.client_side_validation and ('entity_set_id' not in local_var_params or # noqa: E501 - local_var_params['entity_set_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `entity_set_id` when calling `get_all_entity_set_property_metadata`") # noqa: E501 + # verify the required parameter 'entity_type_id' is set + if self.api_client.client_side_validation and ('entity_type_id' not in local_var_params or # noqa: E501 + local_var_params['entity_type_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `entity_type_id` when calling `get_all_entity_type_property_metadata`") # noqa: E501 collection_formats = {} path_params = {} - if 'entity_set_id' in local_var_params: - path_params['entitySetId'] = local_var_params['entity_set_id'] # noqa: E501 + if 'entity_type_id' in local_var_params: + path_params['entityTypeId'] = local_var_params['entity_type_id'] # noqa: E501 query_params = [] @@ -2767,261 +2229,14 @@ def get_all_entity_set_property_metadata_with_http_info(self, entity_set_id, **k auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 return self.api_client.call_api( - '/datastore/entity-sets/all/{entitySetId}/metadata', 'GET', + '/datastore/edm/entity/type/{entityTypeId}/property/type', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='dict(str, EntitySetPropertyMetaData)', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) - - def get_all_entity_sets(self, **kwargs): # noqa: E501 - """Get all EntitySet definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_all_entity_sets(async_req=True) - >>> result = thread.get() - - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: list[EntitySet] - """ - kwargs['_return_http_data_only'] = True - return self.get_all_entity_sets_with_http_info(**kwargs) # noqa: E501 - - def get_all_entity_sets_with_http_info(self, **kwargs): # noqa: E501 - """Get all EntitySet definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_all_entity_sets_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: response data without head status code - and headers - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: tuple(list[EntitySet], status_code(int), headers(HTTPHeaderDict)) - """ - - local_var_params = locals() - - all_params = [ - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout', - '_request_auth' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method get_all_entity_sets" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 - - return self.api_client.call_api( - '/datastore/entity-sets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[EntitySet]', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) - - def get_all_entity_type_property_metadata(self, entity_type_id, **kwargs): # noqa: E501 - """Get all EntityType propertyType metadata # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_all_entity_type_property_metadata(entity_type_id, async_req=True) - >>> result = thread.get() - - :param entity_type_id: (required) - :type entity_type_id: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: dict(str, EntityTypePropertyMetadata) - """ - kwargs['_return_http_data_only'] = True - return self.get_all_entity_type_property_metadata_with_http_info(entity_type_id, **kwargs) # noqa: E501 - - def get_all_entity_type_property_metadata_with_http_info(self, entity_type_id, **kwargs): # noqa: E501 - """Get all EntityType propertyType metadata # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_all_entity_type_property_metadata_with_http_info(entity_type_id, async_req=True) - >>> result = thread.get() - - :param entity_type_id: (required) - :type entity_type_id: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: response data without head status code - and headers - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: tuple(dict(str, EntityTypePropertyMetadata), status_code(int), headers(HTTPHeaderDict)) - """ - - local_var_params = locals() - - all_params = [ - 'entity_type_id' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout', - '_request_auth' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method get_all_entity_type_property_metadata" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'entity_type_id' is set - if self.api_client.client_side_validation and ('entity_type_id' not in local_var_params or # noqa: E501 - local_var_params['entity_type_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `entity_type_id` when calling `get_all_entity_type_property_metadata`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'entity_type_id' in local_var_params: - path_params['entityTypeId'] = local_var_params['entity_type_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 - - return self.api_client.call_api( - '/datastore/edm/entity/type/{entityTypeId}/property/type', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='dict(str, EntityTypePropertyMetadata)', # noqa: E501 + response_type='dict(str, EntityTypePropertyMetadata)', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -4022,17 +3237,17 @@ def get_entity_data_model_diff_with_http_info(self, ed_mdiff, **kwargs): # noqa collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) - def get_entity_set(self, entity_set_id, **kwargs): # noqa: E501 - """Get the EntitySet definition for the given EntitySet UUID. # noqa: E501 + def get_entity_type(self, entity_type_id, **kwargs): # noqa: E501 + """Gets the EntityType definition for the given EntityType UUID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_entity_set(entity_set_id, async_req=True) + >>> thread = api.get_entity_type(entity_type_id, async_req=True) >>> result = thread.get() - :param entity_set_id: (required) - :type entity_set_id: str + :param entity_type_id: (required) + :type entity_type_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -4046,22 +3261,22 @@ def get_entity_set(self, entity_set_id, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: EntitySet + :rtype: EntityType """ kwargs['_return_http_data_only'] = True - return self.get_entity_set_with_http_info(entity_set_id, **kwargs) # noqa: E501 + return self.get_entity_type_with_http_info(entity_type_id, **kwargs) # noqa: E501 - def get_entity_set_with_http_info(self, entity_set_id, **kwargs): # noqa: E501 - """Get the EntitySet definition for the given EntitySet UUID. # noqa: E501 + def get_entity_type_with_http_info(self, entity_type_id, **kwargs): # noqa: E501 + """Gets the EntityType definition for the given EntityType UUID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_entity_set_with_http_info(entity_set_id, async_req=True) + >>> thread = api.get_entity_type_with_http_info(entity_type_id, async_req=True) >>> result = thread.get() - :param entity_set_id: (required) - :type entity_set_id: str + :param entity_type_id: (required) + :type entity_type_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -4082,13 +3297,13 @@ def get_entity_set_with_http_info(self, entity_set_id, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(EntitySet, status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(EntityType, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() all_params = [ - 'entity_set_id' + 'entity_type_id' ] all_params.extend( [ @@ -4104,547 +3319,20 @@ def get_entity_set_with_http_info(self, entity_set_id, **kwargs): # noqa: E501 if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method get_entity_set" % key + " to method get_entity_type" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'entity_set_id' is set - if self.api_client.client_side_validation and ('entity_set_id' not in local_var_params or # noqa: E501 - local_var_params['entity_set_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `entity_set_id` when calling `get_entity_set`") # noqa: E501 + # verify the required parameter 'entity_type_id' is set + if self.api_client.client_side_validation and ('entity_type_id' not in local_var_params or # noqa: E501 + local_var_params['entity_type_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `entity_type_id` when calling `get_entity_type`") # noqa: E501 collection_formats = {} path_params = {} - if 'entity_set_id' in local_var_params: - path_params['entitySetId'] = local_var_params['entity_set_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 - - return self.api_client.call_api( - '/datastore/entity-sets/all/{entitySetId}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='EntitySet', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) - - def get_entity_set_id(self, entity_set_name, **kwargs): # noqa: E501 - """Gets the EntitySet UUID for the given EntitySet name. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_entity_set_id(entity_set_name, async_req=True) - >>> result = thread.get() - - :param entity_set_name: (required) - :type entity_set_name: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: str - """ - kwargs['_return_http_data_only'] = True - return self.get_entity_set_id_with_http_info(entity_set_name, **kwargs) # noqa: E501 - - def get_entity_set_id_with_http_info(self, entity_set_name, **kwargs): # noqa: E501 - """Gets the EntitySet UUID for the given EntitySet name. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_entity_set_id_with_http_info(entity_set_name, async_req=True) - >>> result = thread.get() - - :param entity_set_name: (required) - :type entity_set_name: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: response data without head status code - and headers - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: tuple(str, status_code(int), headers(HTTPHeaderDict)) - """ - - local_var_params = locals() - - all_params = [ - 'entity_set_name' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout', - '_request_auth' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method get_entity_set_id" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'entity_set_name' is set - if self.api_client.client_side_validation and ('entity_set_name' not in local_var_params or # noqa: E501 - local_var_params['entity_set_name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `entity_set_name` when calling `get_entity_set_id`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'entity_set_name' in local_var_params: - path_params['entitySetName'] = local_var_params['entity_set_name'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 - - return self.api_client.call_api( - '/datastore/entity-sets/ids/{entitySetName}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) - - def get_entity_set_ids(self, **kwargs): # noqa: E501 - """Get IDs for entity sets given their names. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_entity_set_ids(async_req=True) - >>> result = thread.get() - - :param request_body: - :type request_body: list[str] - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: dict(str, str) - """ - kwargs['_return_http_data_only'] = True - return self.get_entity_set_ids_with_http_info(**kwargs) # noqa: E501 - - def get_entity_set_ids_with_http_info(self, **kwargs): # noqa: E501 - """Get IDs for entity sets given their names. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_entity_set_ids_with_http_info(async_req=True) - >>> result = thread.get() - - :param request_body: - :type request_body: list[str] - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: response data without head status code - and headers - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: tuple(dict(str, str), status_code(int), headers(HTTPHeaderDict)) - """ - - local_var_params = locals() - - all_params = [ - 'request_body' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout', - '_request_auth' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method get_entity_set_ids" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'request_body' in local_var_params: - body_params = local_var_params['request_body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 - - return self.api_client.call_api( - '/datastore/entity-sets/ids/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='dict(str, str)', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) - - def get_entity_set_property_metadata(self, entity_set_id, property_type_id, **kwargs): # noqa: E501 - """Get specified property type metadata for an entity set. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_entity_set_property_metadata(entity_set_id, property_type_id, async_req=True) - >>> result = thread.get() - - :param entity_set_id: (required) - :type entity_set_id: str - :param property_type_id: (required) - :type property_type_id: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: EntitySetPropertyMetaData - """ - kwargs['_return_http_data_only'] = True - return self.get_entity_set_property_metadata_with_http_info(entity_set_id, property_type_id, **kwargs) # noqa: E501 - - def get_entity_set_property_metadata_with_http_info(self, entity_set_id, property_type_id, **kwargs): # noqa: E501 - """Get specified property type metadata for an entity set. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_entity_set_property_metadata_with_http_info(entity_set_id, property_type_id, async_req=True) - >>> result = thread.get() - - :param entity_set_id: (required) - :type entity_set_id: str - :param property_type_id: (required) - :type property_type_id: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: response data without head status code - and headers - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: tuple(EntitySetPropertyMetaData, status_code(int), headers(HTTPHeaderDict)) - """ - - local_var_params = locals() - - all_params = [ - 'entity_set_id', - 'property_type_id' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout', - '_request_auth' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method get_entity_set_property_metadata" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'entity_set_id' is set - if self.api_client.client_side_validation and ('entity_set_id' not in local_var_params or # noqa: E501 - local_var_params['entity_set_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `entity_set_id` when calling `get_entity_set_property_metadata`") # noqa: E501 - # verify the required parameter 'property_type_id' is set - if self.api_client.client_side_validation and ('property_type_id' not in local_var_params or # noqa: E501 - local_var_params['property_type_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `property_type_id` when calling `get_entity_set_property_metadata`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'entity_set_id' in local_var_params: - path_params['entitySetId'] = local_var_params['entity_set_id'] # noqa: E501 - if 'property_type_id' in local_var_params: - path_params['propertyTypeId'] = local_var_params['property_type_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 - - return self.api_client.call_api( - '/datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='EntitySetPropertyMetaData', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) - - def get_entity_type(self, entity_type_id, **kwargs): # noqa: E501 - """Gets the EntityType definition for the given EntityType UUID. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_entity_type(entity_type_id, async_req=True) - >>> result = thread.get() - - :param entity_type_id: (required) - :type entity_type_id: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: EntityType - """ - kwargs['_return_http_data_only'] = True - return self.get_entity_type_with_http_info(entity_type_id, **kwargs) # noqa: E501 - - def get_entity_type_with_http_info(self, entity_type_id, **kwargs): # noqa: E501 - """Gets the EntityType definition for the given EntityType UUID. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_entity_type_with_http_info(entity_type_id, async_req=True) - >>> result = thread.get() - - :param entity_type_id: (required) - :type entity_type_id: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: response data without head status code - and headers - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: tuple(EntityType, status_code(int), headers(HTTPHeaderDict)) - """ - - local_var_params = locals() - - all_params = [ - 'entity_type_id' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout', - '_request_auth' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method get_entity_type" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'entity_type_id' is set - if self.api_client.client_side_validation and ('entity_type_id' not in local_var_params or # noqa: E501 - local_var_params['entity_type_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `entity_type_id` when calling `get_entity_type`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'entity_type_id' in local_var_params: - path_params['entityTypeId'] = local_var_params['entity_type_id'] # noqa: E501 + if 'entity_type_id' in local_var_params: + path_params['entityTypeId'] = local_var_params['entity_type_id'] # noqa: E501 query_params = [] @@ -5083,135 +3771,6 @@ def get_entity_type_property_metadata_with_http_info(self, entity_type_id, prope collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) - def get_property_metadata_for_entity_sets(self, **kwargs): # noqa: E501 - """Get property metadata for entity sets. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_property_metadata_for_entity_sets(async_req=True) - >>> result = thread.get() - - :param request_body: - :type request_body: list[str] - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: dict(str, dict(str, EntitySetPropertyMetaData)) - """ - kwargs['_return_http_data_only'] = True - return self.get_property_metadata_for_entity_sets_with_http_info(**kwargs) # noqa: E501 - - def get_property_metadata_for_entity_sets_with_http_info(self, **kwargs): # noqa: E501 - """Get property metadata for entity sets. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_property_metadata_for_entity_sets_with_http_info(async_req=True) - >>> result = thread.get() - - :param request_body: - :type request_body: list[str] - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: response data without head status code - and headers - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: tuple(dict(str, dict(str, EntitySetPropertyMetaData)), status_code(int), headers(HTTPHeaderDict)) - """ - - local_var_params = locals() - - all_params = [ - 'request_body' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout', - '_request_auth' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method get_property_metadata_for_entity_sets" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'request_body' in local_var_params: - body_params = local_var_params['request_body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 - - return self.api_client.call_api( - '/datastore/entity-sets/all/metadata', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='dict(str, dict(str, EntitySetPropertyMetaData))', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) - def get_property_type(self, property_type_id, **kwargs): # noqa: E501 """Gets the PropertyType definition for the given PropertyType UUID. # noqa: E501 @@ -5352,146 +3911,8 @@ def get_property_type_id(self, namespace, name, **kwargs): # noqa: E501 :param namespace: (required) :type namespace: str - :param name: (required) - :type name: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: str - """ - kwargs['_return_http_data_only'] = True - return self.get_property_type_id_with_http_info(namespace, name, **kwargs) # noqa: E501 - - def get_property_type_id_with_http_info(self, namespace, name, **kwargs): # noqa: E501 - """Gets the PropertyType UUID for the given PropertyType FQN. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_property_type_id_with_http_info(namespace, name, async_req=True) - >>> result = thread.get() - - :param namespace: (required) - :type namespace: str - :param name: (required) - :type name: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: response data without head status code - and headers - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: tuple(str, status_code(int), headers(HTTPHeaderDict)) - """ - - local_var_params = locals() - - all_params = [ - 'namespace', - 'name' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout', - '_request_auth' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method get_property_type_id" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'namespace' is set - if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 - local_var_params['namespace'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `namespace` when calling `get_property_type_id`") # noqa: E501 - # verify the required parameter 'name' is set - if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 - local_var_params['name'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `name` when calling `get_property_type_id`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'namespace' in local_var_params: - path_params['namespace'] = local_var_params['namespace'] # noqa: E501 - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 - - return self.api_client.call_api( - '/datastore/edm/ids/property/type/{namespace}/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) - - def get_property_types_for_entity_set(self, entity_set_id, **kwargs): # noqa: E501 - """Get all Property Types for entity set # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_property_types_for_entity_set(entity_set_id, async_req=True) - >>> result = thread.get() - - :param entity_set_id: (required) - :type entity_set_id: str + :param name: (required) + :type name: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -5505,22 +3926,24 @@ def get_property_types_for_entity_set(self, entity_set_id, **kwargs): # noqa: E :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: dict(str, PropertyType) + :rtype: str """ kwargs['_return_http_data_only'] = True - return self.get_property_types_for_entity_set_with_http_info(entity_set_id, **kwargs) # noqa: E501 + return self.get_property_type_id_with_http_info(namespace, name, **kwargs) # noqa: E501 - def get_property_types_for_entity_set_with_http_info(self, entity_set_id, **kwargs): # noqa: E501 - """Get all Property Types for entity set # noqa: E501 + def get_property_type_id_with_http_info(self, namespace, name, **kwargs): # noqa: E501 + """Gets the PropertyType UUID for the given PropertyType FQN. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_property_types_for_entity_set_with_http_info(entity_set_id, async_req=True) + >>> thread = api.get_property_type_id_with_http_info(namespace, name, async_req=True) >>> result = thread.get() - :param entity_set_id: (required) - :type entity_set_id: str + :param namespace: (required) + :type namespace: str + :param name: (required) + :type name: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -5541,13 +3964,14 @@ def get_property_types_for_entity_set_with_http_info(self, entity_set_id, **kwar :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(dict(str, PropertyType), status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(str, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() all_params = [ - 'entity_set_id' + 'namespace', + 'name' ] all_params.extend( [ @@ -5563,20 +3987,26 @@ def get_property_types_for_entity_set_with_http_info(self, entity_set_id, **kwar if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method get_property_types_for_entity_set" % key + " to method get_property_type_id" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'entity_set_id' is set - if self.api_client.client_side_validation and ('entity_set_id' not in local_var_params or # noqa: E501 - local_var_params['entity_set_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `entity_set_id` when calling `get_property_types_for_entity_set`") # noqa: E501 + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `get_property_type_id`") # noqa: E501 + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `get_property_type_id`") # noqa: E501 collection_formats = {} path_params = {} - if 'entity_set_id' in local_var_params: - path_params['entitySetId'] = local_var_params['entity_set_id'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -5594,14 +4024,14 @@ def get_property_types_for_entity_set_with_http_info(self, entity_set_id, **kwar auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 return self.api_client.call_api( - '/datastore/entity-sets/all/{entitySetId}/properties', 'GET', + '/datastore/edm/ids/property/type/{namespace}/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='dict(str, PropertyType)', # noqa: E501 + response_type='str', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -6243,308 +4673,24 @@ def remove_dst_entity_type_from_association_type_with_http_info(self, associatio query_params = [] - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 - - return self.api_client.call_api( - '/datastore/edm/association/type/{associationTypeId}/dst/{entityTypeId}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) - - def remove_entity_sets_from_linking_entity_set(self, linking_entity_set_id, **kwargs): # noqa: E501 - """Removes/unlinks the linked entity sets from the linking entity set # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.remove_entity_sets_from_linking_entity_set(linking_entity_set_id, async_req=True) - >>> result = thread.get() - - :param linking_entity_set_id: (required) - :type linking_entity_set_id: str - :param request_body: - :type request_body: list[str] - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: int - """ - kwargs['_return_http_data_only'] = True - return self.remove_entity_sets_from_linking_entity_set_with_http_info(linking_entity_set_id, **kwargs) # noqa: E501 - - def remove_entity_sets_from_linking_entity_set_with_http_info(self, linking_entity_set_id, **kwargs): # noqa: E501 - """Removes/unlinks the linked entity sets from the linking entity set # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.remove_entity_sets_from_linking_entity_set_with_http_info(linking_entity_set_id, async_req=True) - >>> result = thread.get() - - :param linking_entity_set_id: (required) - :type linking_entity_set_id: str - :param request_body: - :type request_body: list[str] - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: response data without head status code - and headers - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: tuple(int, status_code(int), headers(HTTPHeaderDict)) - """ - - local_var_params = locals() - - all_params = [ - 'linking_entity_set_id', - 'request_body' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout', - '_request_auth' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method remove_entity_sets_from_linking_entity_set" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'linking_entity_set_id' is set - if self.api_client.client_side_validation and ('linking_entity_set_id' not in local_var_params or # noqa: E501 - local_var_params['linking_entity_set_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `linking_entity_set_id` when calling `remove_entity_sets_from_linking_entity_set`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'linking_entity_set_id' in local_var_params: - path_params['linkingEntitySetId'] = local_var_params['linking_entity_set_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'request_body' in local_var_params: - body_params = local_var_params['request_body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 - - return self.api_client.call_api( - '/datastore/entity-sets/linking/{linkingEntitySetId}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='int', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) - - def remove_entity_sets_from_linking_entity_sets(self, linking_entity_set_id, request_body, **kwargs): # noqa: E501 - """Removes/unlinks the linked entity sets from the linking entity set # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.remove_entity_sets_from_linking_entity_sets(linking_entity_set_id, request_body, async_req=True) - >>> result = thread.get() - - :param linking_entity_set_id: (required) - :type linking_entity_set_id: str - :param request_body: (required) - :type request_body: dict(str, list[str]) - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: int - """ - kwargs['_return_http_data_only'] = True - return self.remove_entity_sets_from_linking_entity_sets_with_http_info(linking_entity_set_id, request_body, **kwargs) # noqa: E501 - - def remove_entity_sets_from_linking_entity_sets_with_http_info(self, linking_entity_set_id, request_body, **kwargs): # noqa: E501 - """Removes/unlinks the linked entity sets from the linking entity set # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.remove_entity_sets_from_linking_entity_sets_with_http_info(linking_entity_set_id, request_body, async_req=True) - >>> result = thread.get() - - :param linking_entity_set_id: (required) - :type linking_entity_set_id: str - :param request_body: (required) - :type request_body: dict(str, list[str]) - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: response data without head status code - and headers - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: tuple(int, status_code(int), headers(HTTPHeaderDict)) - """ - - local_var_params = locals() - - all_params = [ - 'linking_entity_set_id', - 'request_body' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout', - '_request_auth' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method remove_entity_sets_from_linking_entity_sets" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'linking_entity_set_id' is set - if self.api_client.client_side_validation and ('linking_entity_set_id' not in local_var_params or # noqa: E501 - local_var_params['linking_entity_set_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `linking_entity_set_id` when calling `remove_entity_sets_from_linking_entity_sets`") # noqa: E501 - # verify the required parameter 'request_body' is set - if self.api_client.client_side_validation and ('request_body' not in local_var_params or # noqa: E501 - local_var_params['request_body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `request_body` when calling `remove_entity_sets_from_linking_entity_sets`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'linking_entity_set_id' in local_var_params: - path_params['linkingEntitySetId'] = local_var_params['linking_entity_set_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'request_body' in local_var_params: - body_params = local_var_params['request_body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 + header_params = {} + + form_params = [] + local_var_files = {} + body_params = None # Authentication setting auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 return self.api_client.call_api( - '/datastore/entity-sets/linking/', 'DELETE', + '/datastore/edm/association/type/{associationTypeId}/dst/{entityTypeId}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='int', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -7227,301 +5373,6 @@ def update_entity_data_model_with_http_info(self, edm, **kwargs): # noqa: E501 collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) - def update_entity_set_meta_data(self, entity_set_id, metadata_update, **kwargs): # noqa: E501 - """Updates the EntitySet definition for the given EntitySet UUID with the given metadata. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.update_entity_set_meta_data(entity_set_id, metadata_update, async_req=True) - >>> result = thread.get() - - :param entity_set_id: (required) - :type entity_set_id: str - :param metadata_update: (required) - :type metadata_update: MetadataUpdate - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: int - """ - kwargs['_return_http_data_only'] = True - return self.update_entity_set_meta_data_with_http_info(entity_set_id, metadata_update, **kwargs) # noqa: E501 - - def update_entity_set_meta_data_with_http_info(self, entity_set_id, metadata_update, **kwargs): # noqa: E501 - """Updates the EntitySet definition for the given EntitySet UUID with the given metadata. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.update_entity_set_meta_data_with_http_info(entity_set_id, metadata_update, async_req=True) - >>> result = thread.get() - - :param entity_set_id: (required) - :type entity_set_id: str - :param metadata_update: (required) - :type metadata_update: MetadataUpdate - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: response data without head status code - and headers - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: tuple(int, status_code(int), headers(HTTPHeaderDict)) - """ - - local_var_params = locals() - - all_params = [ - 'entity_set_id', - 'metadata_update' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout', - '_request_auth' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method update_entity_set_meta_data" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'entity_set_id' is set - if self.api_client.client_side_validation and ('entity_set_id' not in local_var_params or # noqa: E501 - local_var_params['entity_set_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `entity_set_id` when calling `update_entity_set_meta_data`") # noqa: E501 - # verify the required parameter 'metadata_update' is set - if self.api_client.client_side_validation and ('metadata_update' not in local_var_params or # noqa: E501 - local_var_params['metadata_update'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `metadata_update` when calling `update_entity_set_meta_data`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'entity_set_id' in local_var_params: - path_params['entitySetId'] = local_var_params['entity_set_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'metadata_update' in local_var_params: - body_params = local_var_params['metadata_update'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 - - return self.api_client.call_api( - '/datastore/entity-sets/all/{entitySetId}/metadata/', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='int', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) - - def update_entity_set_property_metadata(self, entity_set_id, property_type_id, metadata_update, **kwargs): # noqa: E501 - """Updates the property type metadata for the given entity set. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.update_entity_set_property_metadata(entity_set_id, property_type_id, metadata_update, async_req=True) - >>> result = thread.get() - - :param entity_set_id: (required) - :type entity_set_id: str - :param property_type_id: (required) - :type property_type_id: str - :param metadata_update: (required) - :type metadata_update: MetadataUpdate - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: None - """ - kwargs['_return_http_data_only'] = True - return self.update_entity_set_property_metadata_with_http_info(entity_set_id, property_type_id, metadata_update, **kwargs) # noqa: E501 - - def update_entity_set_property_metadata_with_http_info(self, entity_set_id, property_type_id, metadata_update, **kwargs): # noqa: E501 - """Updates the property type metadata for the given entity set. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.update_entity_set_property_metadata_with_http_info(entity_set_id, property_type_id, metadata_update, async_req=True) - >>> result = thread.get() - - :param entity_set_id: (required) - :type entity_set_id: str - :param property_type_id: (required) - :type property_type_id: str - :param metadata_update: (required) - :type metadata_update: MetadataUpdate - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: response data without head status code - and headers - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: None - """ - - local_var_params = locals() - - all_params = [ - 'entity_set_id', - 'property_type_id', - 'metadata_update' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout', - '_request_auth' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method update_entity_set_property_metadata" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'entity_set_id' is set - if self.api_client.client_side_validation and ('entity_set_id' not in local_var_params or # noqa: E501 - local_var_params['entity_set_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `entity_set_id` when calling `update_entity_set_property_metadata`") # noqa: E501 - # verify the required parameter 'property_type_id' is set - if self.api_client.client_side_validation and ('property_type_id' not in local_var_params or # noqa: E501 - local_var_params['property_type_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `property_type_id` when calling `update_entity_set_property_metadata`") # noqa: E501 - # verify the required parameter 'metadata_update' is set - if self.api_client.client_side_validation and ('metadata_update' not in local_var_params or # noqa: E501 - local_var_params['metadata_update'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `metadata_update` when calling `update_entity_set_property_metadata`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'entity_set_id' in local_var_params: - path_params['entitySetId'] = local_var_params['entity_set_id'] # noqa: E501 - if 'property_type_id' in local_var_params: - path_params['propertyTypeId'] = local_var_params['property_type_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'metadata_update' in local_var_params: - body_params = local_var_params['metadata_update'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['http_auth', 'openlattice_auth'] # noqa: E501 - - return self.api_client.call_api( - '/datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) - def update_entity_type_meta_data(self, entity_type_id, metadata_update, **kwargs): # noqa: E501 """Updates the EntityType definition for the given EntityType UUID with the given metadata. # noqa: E501 diff --git a/python/test/test_edm_api.py b/python/test/test_edm_api.py index 63ef146..fb57ffd 100644 --- a/python/test/test_edm_api.py +++ b/python/test/test_edm_api.py @@ -36,20 +36,6 @@ def test_add_dst_entity_type_to_association_type(self): """ pass - def test_add_entity_sets_to_linking_entity_set(self): - """Test case for add_entity_sets_to_linking_entity_set - - Adds the entity sets as linked entity sets to the linking entity set # noqa: E501 - """ - pass - - def test_add_entity_sets_to_linking_entity_sets(self): - """Test case for add_entity_sets_to_linking_entity_sets - - Adds the entity sets as linked entity sets to the linking entity sets # noqa: E501 - """ - pass - def test_add_primary_key_to_entity_type(self): """Test case for add_primary_key_to_entity_type @@ -85,13 +71,6 @@ def test_create_empty_schema(self): """ pass - def test_create_entity_sets(self): - """Test case for create_entity_sets - - Creates new EntitySet definitions if they don't exist. # noqa: E501 - """ - pass - def test_create_entity_type(self): """Test case for create_entity_type @@ -120,13 +99,6 @@ def test_delete_association_type(self): """ pass - def test_delete_entity_set(self): - """Test case for delete_entity_set - - Deletes the EntitySet definition for the given EntitySet UUID. # noqa: E501 - """ - pass - def test_delete_entity_type(self): """Test case for delete_entity_type @@ -169,20 +141,6 @@ def test_get_all_available_association_types(self): """ pass - def test_get_all_entity_set_property_metadata(self): - """Test case for get_all_entity_set_property_metadata - - Get all entity set property metadata. # noqa: E501 - """ - pass - - def test_get_all_entity_sets(self): - """Test case for get_all_entity_sets - - Get all EntitySet definitions. # noqa: E501 - """ - pass - def test_get_all_entity_type_property_metadata(self): """Test case for get_all_entity_type_property_metadata @@ -246,34 +204,6 @@ def test_get_entity_data_model_diff(self): """ pass - def test_get_entity_set(self): - """Test case for get_entity_set - - Get the EntitySet definition for the given EntitySet UUID. # noqa: E501 - """ - pass - - def test_get_entity_set_id(self): - """Test case for get_entity_set_id - - Gets the EntitySet UUID for the given EntitySet name. # noqa: E501 - """ - pass - - def test_get_entity_set_ids(self): - """Test case for get_entity_set_ids - - Get IDs for entity sets given their names. # noqa: E501 - """ - pass - - def test_get_entity_set_property_metadata(self): - """Test case for get_entity_set_property_metadata - - Get specified property type metadata for an entity set. # noqa: E501 - """ - pass - def test_get_entity_type(self): """Test case for get_entity_type @@ -302,13 +232,6 @@ def test_get_entity_type_property_metadata(self): """ pass - def test_get_property_metadata_for_entity_sets(self): - """Test case for get_property_metadata_for_entity_sets - - Get property metadata for entity sets. # noqa: E501 - """ - pass - def test_get_property_type(self): """Test case for get_property_type @@ -323,13 +246,6 @@ def test_get_property_type_id(self): """ pass - def test_get_property_types_for_entity_set(self): - """Test case for get_property_types_for_entity_set - - Get all Property Types for entity set # noqa: E501 - """ - pass - def test_get_property_usage_summary(self): """Test case for get_property_usage_summary @@ -365,20 +281,6 @@ def test_remove_dst_entity_type_from_association_type(self): """ pass - def test_remove_entity_sets_from_linking_entity_set(self): - """Test case for remove_entity_sets_from_linking_entity_set - - Removes/unlinks the linked entity sets from the linking entity set # noqa: E501 - """ - pass - - def test_remove_entity_sets_from_linking_entity_sets(self): - """Test case for remove_entity_sets_from_linking_entity_sets - - Removes/unlinks the linked entity sets from the linking entity set # noqa: E501 - """ - pass - def test_remove_primary_key_from_entity_type(self): """Test case for remove_primary_key_from_entity_type @@ -414,20 +316,6 @@ def test_update_entity_data_model(self): """ pass - def test_update_entity_set_meta_data(self): - """Test case for update_entity_set_meta_data - - Updates the EntitySet definition for the given EntitySet UUID with the given metadata. # noqa: E501 - """ - pass - - def test_update_entity_set_property_metadata(self): - """Test case for update_entity_set_property_metadata - - Updates the property type metadata for the given entity set. # noqa: E501 - """ - pass - def test_update_entity_type_meta_data(self): """Test case for update_entity_type_meta_data diff --git a/ruby/README.md b/ruby/README.md index 6ccd187..ab3f801 100644 --- a/ruby/README.md +++ b/ruby/README.md @@ -138,27 +138,21 @@ Class | Method | HTTP request | Description *OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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. -*OpenapiClient::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 -*OpenapiClient::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 *OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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. -*OpenapiClient::EdmApi* | [**create_entity_sets**](docs/EdmApi.md#create_entity_sets) | **POST** /datastore/entity-sets | Creates new EntitySet definitions if they don't exist. *OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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. -*OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::EdmApi* | [**get_all_association_entity_types**](docs/EdmApi.md#get_all_association_entity_types) | **GET** /datastore/edm/association/type/ | Gets all association EntityType definitions. *OpenapiClient::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. -*OpenapiClient::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. -*OpenapiClient::EdmApi* | [**get_all_entity_sets**](docs/EdmApi.md#get_all_entity_sets) | **GET** /datastore/entity-sets | Get all EntitySet definitions. *OpenapiClient::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 *OpenapiClient::EdmApi* | [**get_all_entity_types**](docs/EdmApi.md#get_all_entity_types) | **GET** /datastore/edm/entity/type/ | Gets all EntityType definitions. *OpenapiClient::EdmApi* | [**get_all_property_types**](docs/EdmApi.md#get_all_property_types) | **GET** /datastore/edm/property/type/ | Gets all PropertyType definitions. @@ -168,32 +162,22 @@ Class | Method | HTTP request | Description *OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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. -*OpenapiClient::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. -*OpenapiClient::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. -*OpenapiClient::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. -*OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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 -*OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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. -*OpenapiClient::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 *OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::EdmApi* | [**get_schemas**](docs/EdmApi.md#get_schemas) | **GET** /datastore/edm/schema | Gets all schemas. *OpenapiClient::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. *OpenapiClient::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. -*OpenapiClient::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 -*OpenapiClient::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 *OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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. -*OpenapiClient::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. -*OpenapiClient::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. *OpenapiClient::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. *OpenapiClient::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 *OpenapiClient::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/ruby/docs/EdmApi.md b/ruby/docs/EdmApi.md index f434de8..09f2213 100644 --- a/ruby/docs/EdmApi.md +++ b/ruby/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. @@ -124,122 +108,6 @@ nil (empty response body) - **Accept**: Not defined -## add_entity_sets_to_linking_entity_set - -> Integer add_entity_sets_to_linking_entity_set(linking_entity_set_id, opts) - -Adds the entity sets as linked entity sets to the linking entity set - -### Example - -```ruby -# load the gem -require 'openapi_client' -# setup authorization -OpenapiClient.configure do |config| - # Configure Bearer authorization (JWT): http_auth - config.access_token = 'YOUR_BEARER_TOKEN' - - # Configure API key authorization: openlattice_auth - config.api_key['Authorization'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - #config.api_key_prefix['Authorization'] = 'Bearer' -end - -api_instance = OpenapiClient::EdmApi.new -linking_entity_set_id = 'linking_entity_set_id_example' # String | -opts = { - request_body: ['request_body_example'] # Array | -} - -begin - #Adds the entity sets as linked entity sets to the linking entity set - result = api_instance.add_entity_sets_to_linking_entity_set(linking_entity_set_id, opts) - p result -rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->add_entity_sets_to_linking_entity_set: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **linking_entity_set_id** | [**String**](.md)| | - **request_body** | [**Array<String>**](String.md)| | [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 - - -## 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 - -```ruby -# load the gem -require 'openapi_client' -# setup authorization -OpenapiClient.configure do |config| - # Configure Bearer authorization (JWT): http_auth - config.access_token = 'YOUR_BEARER_TOKEN' - - # Configure API key authorization: openlattice_auth - config.api_key['Authorization'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - #config.api_key_prefix['Authorization'] = 'Bearer' -end - -api_instance = OpenapiClient::EdmApi.new -linking_entity_set_id = 'linking_entity_set_id_example' # String | -request_body = nil # Hash> | - -begin - #Adds the entity sets as linked entity sets to the linking entity sets - result = api_instance.add_entity_sets_to_linking_entity_sets(linking_entity_set_id, request_body) - p result -rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->add_entity_sets_to_linking_entity_sets: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **linking_entity_set_id** | **String**| | - **request_body** | [**Hash<String, Array<String>>**](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 - - ## add_primary_key_to_entity_type > add_primary_key_to_entity_type(entity_type_id, property_type_id) @@ -508,60 +376,6 @@ nil (empty response body) - **Accept**: Not defined -## create_entity_sets - -> create_entity_sets(entity_set) - -Creates new EntitySet definitions if they don't exist. - -### Example - -```ruby -# load the gem -require 'openapi_client' -# setup authorization -OpenapiClient.configure do |config| - # Configure Bearer authorization (JWT): http_auth - config.access_token = 'YOUR_BEARER_TOKEN' - - # Configure API key authorization: openlattice_auth - config.api_key['Authorization'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - #config.api_key_prefix['Authorization'] = 'Bearer' -end - -api_instance = OpenapiClient::EdmApi.new -entity_set = [OpenapiClient::EntitySet.new] # Array | - -begin - #Creates new EntitySet definitions if they don't exist. - api_instance.create_entity_sets(entity_set) -rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->create_entity_sets: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_set** | [**Array<EntitySet>**](EntitySet.md)| | - -### Return type - -nil (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 - - ## create_entity_type > create_entity_type(entity_type) @@ -758,60 +572,6 @@ No authorization required - **Accept**: Not defined -## delete_entity_set - -> delete_entity_set(entity_set_id) - -Deletes the EntitySet definition for the given EntitySet UUID. - -### Example - -```ruby -# load the gem -require 'openapi_client' -# setup authorization -OpenapiClient.configure do |config| - # Configure Bearer authorization (JWT): http_auth - config.access_token = 'YOUR_BEARER_TOKEN' - - # Configure API key authorization: openlattice_auth - config.api_key['Authorization'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - #config.api_key_prefix['Authorization'] = 'Bearer' -end - -api_instance = OpenapiClient::EdmApi.new -entity_set_id = 'entity_set_id_example' # String | - -begin - #Deletes the EntitySet definition for the given EntitySet UUID. - api_instance.delete_entity_set(entity_set_id) -rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->delete_entity_set: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**String**](.md)| | - -### Return type - -nil (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 - - ## delete_entity_type > delete_entity_type(entity_type_id) @@ -1126,11 +886,11 @@ Name | Type | Description | Notes - **Accept**: application/json -## get_all_entity_set_property_metadata +## get_all_entity_type_property_metadata -> Hash<String, EntitySetPropertyMetaData> get_all_entity_set_property_metadata(entity_set_id) +> Hash<String, EntityTypePropertyMetadata> get_all_entity_type_property_metadata(entity_type_id) -Get all entity set property metadata. +Get all EntityType propertyType metadata ### Example @@ -1149,14 +909,14 @@ OpenapiClient.configure do |config| end api_instance = OpenapiClient::EdmApi.new -entity_set_id = 'entity_set_id_example' # String | +entity_type_id = 'entity_type_id_example' # String | begin - #Get all entity set property metadata. - result = api_instance.get_all_entity_set_property_metadata(entity_set_id) + #Get all EntityType propertyType metadata + result = api_instance.get_all_entity_type_property_metadata(entity_type_id) p result rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->get_all_entity_set_property_metadata: #{e}" + puts "Exception when calling EdmApi->get_all_entity_type_property_metadata: #{e}" end ``` @@ -1165,11 +925,11 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**String**](.md)| | + **entity_type_id** | [**String**](.md)| | ### Return type -[**Hash<String, EntitySetPropertyMetaData>**](EntitySetPropertyMetaData.md) +[**Hash<String, EntityTypePropertyMetadata>**](EntityTypePropertyMetadata.md) ### Authorization @@ -1181,11 +941,11 @@ Name | Type | Description | Notes - **Accept**: application/json -## get_all_entity_sets +## get_all_entity_types -> Array<EntitySet> get_all_entity_sets +> Array<EntityType> get_all_entity_types -Get all EntitySet definitions. +Gets all EntityType definitions. ### Example @@ -1206,11 +966,11 @@ end api_instance = OpenapiClient::EdmApi.new begin - #Get all EntitySet definitions. - result = api_instance.get_all_entity_sets + #Gets all EntityType definitions. + result = api_instance.get_all_entity_types p result rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->get_all_entity_sets: #{e}" + puts "Exception when calling EdmApi->get_all_entity_types: #{e}" end ``` @@ -1220,7 +980,7 @@ This endpoint does not need any parameter. ### Return type -[**Array<EntitySet>**](EntitySet.md) +[**Array<EntityType>**](EntityType.md) ### Authorization @@ -1232,11 +992,11 @@ This endpoint does not need any parameter. - **Accept**: application/json -## get_all_entity_type_property_metadata +## get_all_property_types -> Hash<String, EntityTypePropertyMetadata> get_all_entity_type_property_metadata(entity_type_id) +> Array<PropertyType> get_all_property_types -Get all EntityType propertyType metadata +Gets all PropertyType definitions. ### Example @@ -1255,27 +1015,23 @@ OpenapiClient.configure do |config| end api_instance = OpenapiClient::EdmApi.new -entity_type_id = 'entity_type_id_example' # String | begin - #Get all EntityType propertyType metadata - result = api_instance.get_all_entity_type_property_metadata(entity_type_id) + #Gets all PropertyType definitions. + result = api_instance.get_all_property_types p result rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->get_all_entity_type_property_metadata: #{e}" + puts "Exception when calling EdmApi->get_all_property_types: #{e}" end ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_type_id** | [**String**](.md)| | +This endpoint does not need any parameter. ### Return type -[**Hash<String, EntityTypePropertyMetadata>**](EntityTypePropertyMetadata.md) +[**Array<PropertyType>**](PropertyType.md) ### Authorization @@ -1287,11 +1043,11 @@ Name | Type | Description | Notes - **Accept**: application/json -## get_all_entity_types +## get_all_property_types_in_namespace -> Array<EntityType> get_all_entity_types +> Array<PropertyType> get_all_property_types_in_namespace(namespace) -Gets all EntityType definitions. +Gets all PropertyType definitions under the given namespace. ### Example @@ -1310,23 +1066,27 @@ OpenapiClient.configure do |config| end api_instance = OpenapiClient::EdmApi.new +namespace = 'namespace_example' # String | begin - #Gets all EntityType definitions. - result = api_instance.get_all_entity_types + #Gets all PropertyType definitions under the given namespace. + result = api_instance.get_all_property_types_in_namespace(namespace) p result rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->get_all_entity_types: #{e}" + puts "Exception when calling EdmApi->get_all_property_types_in_namespace: #{e}" end ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| | ### Return type -[**Array<EntityType>**](EntityType.md) +[**Array<PropertyType>**](PropertyType.md) ### Authorization @@ -1338,11 +1098,11 @@ This endpoint does not need any parameter. - **Accept**: application/json -## get_all_property_types +## get_all_property_usage_summaries -> Array<PropertyType> get_all_property_types +> Hash<String, PropertyUsageSummary> get_all_property_usage_summaries -Gets all PropertyType definitions. +Get Property Usage Summary for all properties. ### Example @@ -1363,11 +1123,11 @@ end api_instance = OpenapiClient::EdmApi.new begin - #Gets all PropertyType definitions. - result = api_instance.get_all_property_types + #Get Property Usage Summary for all properties. + result = api_instance.get_all_property_usage_summaries p result rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->get_all_property_types: #{e}" + puts "Exception when calling EdmApi->get_all_property_usage_summaries: #{e}" end ``` @@ -1377,113 +1137,7 @@ This endpoint does not need any parameter. ### Return type -[**Array<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 - - -## get_all_property_types_in_namespace - -> Array<PropertyType> get_all_property_types_in_namespace(namespace) - -Gets all PropertyType definitions under the given namespace. - -### Example - -```ruby -# load the gem -require 'openapi_client' -# setup authorization -OpenapiClient.configure do |config| - # Configure Bearer authorization (JWT): http_auth - config.access_token = 'YOUR_BEARER_TOKEN' - - # Configure API key authorization: openlattice_auth - config.api_key['Authorization'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - #config.api_key_prefix['Authorization'] = 'Bearer' -end - -api_instance = OpenapiClient::EdmApi.new -namespace = 'namespace_example' # String | - -begin - #Gets all PropertyType definitions under the given namespace. - result = api_instance.get_all_property_types_in_namespace(namespace) - p result -rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->get_all_property_types_in_namespace: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| | - -### Return type - -[**Array<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 - - -## get_all_property_usage_summaries - -> Hash<String, PropertyUsageSummary> get_all_property_usage_summaries - -Get Property Usage Summary for all properties. - -### Example - -```ruby -# load the gem -require 'openapi_client' -# setup authorization -OpenapiClient.configure do |config| - # Configure Bearer authorization (JWT): http_auth - config.access_token = 'YOUR_BEARER_TOKEN' - - # Configure API key authorization: openlattice_auth - config.api_key['Authorization'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - #config.api_key_prefix['Authorization'] = 'Bearer' -end - -api_instance = OpenapiClient::EdmApi.new - -begin - #Get Property Usage Summary for all properties. - result = api_instance.get_all_property_usage_summaries - p result -rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->get_all_property_usage_summaries: #{e}" -end -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**Hash<String, PropertyUsageSummary>**](PropertyUsageSummary.md) +[**Hash<String, PropertyUsageSummary>**](PropertyUsageSummary.md) ### Authorization @@ -1701,230 +1355,6 @@ Name | Type | Description | Notes - **Accept**: application/json -## get_entity_set - -> EntitySet get_entity_set(entity_set_id) - -Get the EntitySet definition for the given EntitySet UUID. - -### Example - -```ruby -# load the gem -require 'openapi_client' -# setup authorization -OpenapiClient.configure do |config| - # Configure Bearer authorization (JWT): http_auth - config.access_token = 'YOUR_BEARER_TOKEN' - - # Configure API key authorization: openlattice_auth - config.api_key['Authorization'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - #config.api_key_prefix['Authorization'] = 'Bearer' -end - -api_instance = OpenapiClient::EdmApi.new -entity_set_id = 'entity_set_id_example' # String | - -begin - #Get the EntitySet definition for the given EntitySet UUID. - result = api_instance.get_entity_set(entity_set_id) - p result -rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->get_entity_set: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**String**](.md)| | - -### Return type - -[**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 - - -## get_entity_set_id - -> String get_entity_set_id(entity_set_name) - -Gets the EntitySet UUID for the given EntitySet name. - -### Example - -```ruby -# load the gem -require 'openapi_client' -# setup authorization -OpenapiClient.configure do |config| - # Configure Bearer authorization (JWT): http_auth - config.access_token = 'YOUR_BEARER_TOKEN' - - # Configure API key authorization: openlattice_auth - config.api_key['Authorization'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - #config.api_key_prefix['Authorization'] = 'Bearer' -end - -api_instance = OpenapiClient::EdmApi.new -entity_set_name = 'entity_set_name_example' # String | - -begin - #Gets the EntitySet UUID for the given EntitySet name. - result = api_instance.get_entity_set_id(entity_set_name) - p result -rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->get_entity_set_id: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_set_name** | **String**| | - -### Return type - -**String** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## get_entity_set_ids - -> Hash<String, String> get_entity_set_ids(opts) - -Get IDs for entity sets given their names. - -### Example - -```ruby -# load the gem -require 'openapi_client' -# setup authorization -OpenapiClient.configure do |config| - # Configure Bearer authorization (JWT): http_auth - config.access_token = 'YOUR_BEARER_TOKEN' - - # Configure API key authorization: openlattice_auth - config.api_key['Authorization'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - #config.api_key_prefix['Authorization'] = 'Bearer' -end - -api_instance = OpenapiClient::EdmApi.new -opts = { - request_body: ['request_body_example'] # Array | -} - -begin - #Get IDs for entity sets given their names. - result = api_instance.get_entity_set_ids(opts) - p result -rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->get_entity_set_ids: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request_body** | [**Array<String>**](String.md)| | [optional] - -### Return type - -**Hash<String, String>** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## 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 - -```ruby -# load the gem -require 'openapi_client' -# setup authorization -OpenapiClient.configure do |config| - # Configure Bearer authorization (JWT): http_auth - config.access_token = 'YOUR_BEARER_TOKEN' - - # Configure API key authorization: openlattice_auth - config.api_key['Authorization'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - #config.api_key_prefix['Authorization'] = 'Bearer' -end - -api_instance = OpenapiClient::EdmApi.new -entity_set_id = 'entity_set_id_example' # String | -property_type_id = 'property_type_id_example' # String | - -begin - #Get specified property type metadata for an entity set. - result = api_instance.get_entity_set_property_metadata(entity_set_id, property_type_id) - p result -rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->get_entity_set_property_metadata: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**String**](.md)| | - **property_type_id** | [**String**](.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 - - ## get_entity_type > EntityType get_entity_type(entity_type_id) @@ -2021,128 +1451,14 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined - - -## get_entity_type_id - -> String get_entity_type_id(namespace, name) - -Gets the EntityType UUID for the given EntityType FQN. - -### Example - -```ruby -# load the gem -require 'openapi_client' -# setup authorization -OpenapiClient.configure do |config| - # Configure Bearer authorization (JWT): http_auth - config.access_token = 'YOUR_BEARER_TOKEN' - - # Configure API key authorization: openlattice_auth - config.api_key['Authorization'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - #config.api_key_prefix['Authorization'] = 'Bearer' -end - -api_instance = OpenapiClient::EdmApi.new -namespace = 'openlattice' # String | -name = 'myentitytype' # String | - -begin - #Gets the EntityType UUID for the given EntityType FQN. - result = api_instance.get_entity_type_id(namespace, name) - p result -rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->get_entity_type_id: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| | - **name** | **String**| | - -### Return type - -**String** - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## get_entity_type_property_metadata - -> EntityTypePropertyMetadata get_entity_type_property_metadata(entity_type_id, property_type_id) - -Get EntityType propertyType metadata - -### Example - -```ruby -# load the gem -require 'openapi_client' -# setup authorization -OpenapiClient.configure do |config| - # Configure Bearer authorization (JWT): http_auth - config.access_token = 'YOUR_BEARER_TOKEN' - - # Configure API key authorization: openlattice_auth - config.api_key['Authorization'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - #config.api_key_prefix['Authorization'] = 'Bearer' -end - -api_instance = OpenapiClient::EdmApi.new -entity_type_id = 'entity_type_id_example' # String | -property_type_id = 'property_type_id_example' # String | - -begin - #Get EntityType propertyType metadata - result = api_instance.get_entity_type_property_metadata(entity_type_id, property_type_id) - p result -rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->get_entity_type_property_metadata: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_type_id** | [**String**](.md)| | - **property_type_id** | [**String**](.md)| | - -### Return type - -[**EntityTypePropertyMetadata**](EntityTypePropertyMetadata.md) - -### Authorization - -[http_auth](../README.md#http_auth), [openlattice_auth](../README.md#openlattice_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: Not defined -## get_property_metadata_for_entity_sets +## get_entity_type_id -> Hash<String, Hash<String, EntitySetPropertyMetaData>> get_property_metadata_for_entity_sets(opts) +> String get_entity_type_id(namespace, name) -Get property metadata for entity sets. +Gets the EntityType UUID for the given EntityType FQN. ### Example @@ -2161,16 +1477,15 @@ OpenapiClient.configure do |config| end api_instance = OpenapiClient::EdmApi.new -opts = { - request_body: ['request_body_example'] # Array | -} +namespace = 'openlattice' # String | +name = 'myentitytype' # String | begin - #Get property metadata for entity sets. - result = api_instance.get_property_metadata_for_entity_sets(opts) + #Gets the EntityType UUID for the given EntityType FQN. + result = api_instance.get_entity_type_id(namespace, name) p result rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->get_property_metadata_for_entity_sets: #{e}" + puts "Exception when calling EdmApi->get_entity_type_id: #{e}" end ``` @@ -2179,11 +1494,12 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **request_body** | [**Array<String>**](String.md)| | [optional] + **namespace** | **String**| | + **name** | **String**| | ### Return type -**Hash<String, Hash<String, EntitySetPropertyMetaData>>** +**String** ### Authorization @@ -2191,15 +1507,15 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## get_property_type +## get_entity_type_property_metadata -> PropertyType get_property_type(property_type_id) +> EntityTypePropertyMetadata get_entity_type_property_metadata(entity_type_id, property_type_id) -Gets the PropertyType definition for the given PropertyType UUID. +Get EntityType propertyType metadata ### Example @@ -2218,14 +1534,15 @@ OpenapiClient.configure do |config| end api_instance = OpenapiClient::EdmApi.new +entity_type_id = 'entity_type_id_example' # String | property_type_id = 'property_type_id_example' # String | begin - #Gets the PropertyType definition for the given PropertyType UUID. - result = api_instance.get_property_type(property_type_id) + #Get EntityType propertyType metadata + result = api_instance.get_entity_type_property_metadata(entity_type_id, property_type_id) p result rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->get_property_type: #{e}" + puts "Exception when calling EdmApi->get_entity_type_property_metadata: #{e}" end ``` @@ -2234,11 +1551,12 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **entity_type_id** | [**String**](.md)| | **property_type_id** | [**String**](.md)| | ### Return type -[**PropertyType**](PropertyType.md) +[**EntityTypePropertyMetadata**](EntityTypePropertyMetadata.md) ### Authorization @@ -2250,11 +1568,11 @@ Name | Type | Description | Notes - **Accept**: application/json -## get_property_type_id +## get_property_type -> String get_property_type_id(namespace, name) +> PropertyType get_property_type(property_type_id) -Gets the PropertyType UUID for the given PropertyType FQN. +Gets the PropertyType definition for the given PropertyType UUID. ### Example @@ -2273,15 +1591,14 @@ OpenapiClient.configure do |config| end api_instance = OpenapiClient::EdmApi.new -namespace = 'namespace_example' # String | -name = 'name_example' # String | +property_type_id = 'property_type_id_example' # String | begin - #Gets the PropertyType UUID for the given PropertyType FQN. - result = api_instance.get_property_type_id(namespace, name) + #Gets the PropertyType definition for the given PropertyType UUID. + result = api_instance.get_property_type(property_type_id) p result rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->get_property_type_id: #{e}" + puts "Exception when calling EdmApi->get_property_type: #{e}" end ``` @@ -2290,12 +1607,11 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **String**| | - **name** | **String**| | + **property_type_id** | [**String**](.md)| | ### Return type -**String** +[**PropertyType**](PropertyType.md) ### Authorization @@ -2307,11 +1623,11 @@ Name | Type | Description | Notes - **Accept**: application/json -## get_property_types_for_entity_set +## get_property_type_id -> Hash<String, PropertyType> get_property_types_for_entity_set(entity_set_id) +> String get_property_type_id(namespace, name) -Get all Property Types for entity set +Gets the PropertyType UUID for the given PropertyType FQN. ### Example @@ -2330,14 +1646,15 @@ OpenapiClient.configure do |config| end api_instance = OpenapiClient::EdmApi.new -entity_set_id = 'entity_set_id_example' # String | +namespace = 'namespace_example' # String | +name = 'name_example' # String | begin - #Get all Property Types for entity set - result = api_instance.get_property_types_for_entity_set(entity_set_id) + #Gets the PropertyType UUID for the given PropertyType FQN. + result = api_instance.get_property_type_id(namespace, name) p result rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->get_property_types_for_entity_set: #{e}" + puts "Exception when calling EdmApi->get_property_type_id: #{e}" end ``` @@ -2346,11 +1663,12 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**String**](.md)| | + **namespace** | **String**| | + **name** | **String**| | ### Return type -[**Hash<String, PropertyType>**](PropertyType.md) +**String** ### Authorization @@ -2640,122 +1958,6 @@ nil (empty response body) - **Accept**: Not defined -## remove_entity_sets_from_linking_entity_set - -> Integer remove_entity_sets_from_linking_entity_set(linking_entity_set_id, opts) - -Removes/unlinks the linked entity sets from the linking entity set - -### Example - -```ruby -# load the gem -require 'openapi_client' -# setup authorization -OpenapiClient.configure do |config| - # Configure Bearer authorization (JWT): http_auth - config.access_token = 'YOUR_BEARER_TOKEN' - - # Configure API key authorization: openlattice_auth - config.api_key['Authorization'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - #config.api_key_prefix['Authorization'] = 'Bearer' -end - -api_instance = OpenapiClient::EdmApi.new -linking_entity_set_id = 'linking_entity_set_id_example' # String | -opts = { - request_body: ['request_body_example'] # Array | -} - -begin - #Removes/unlinks the linked entity sets from the linking entity set - result = api_instance.remove_entity_sets_from_linking_entity_set(linking_entity_set_id, opts) - p result -rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->remove_entity_sets_from_linking_entity_set: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **linking_entity_set_id** | **String**| | - **request_body** | [**Array<String>**](String.md)| | [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 - - -## 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 - -```ruby -# load the gem -require 'openapi_client' -# setup authorization -OpenapiClient.configure do |config| - # Configure Bearer authorization (JWT): http_auth - config.access_token = 'YOUR_BEARER_TOKEN' - - # Configure API key authorization: openlattice_auth - config.api_key['Authorization'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - #config.api_key_prefix['Authorization'] = 'Bearer' -end - -api_instance = OpenapiClient::EdmApi.new -linking_entity_set_id = 'linking_entity_set_id_example' # String | -request_body = nil # Hash> | - -begin - #Removes/unlinks the linked entity sets from the linking entity set - result = api_instance.remove_entity_sets_from_linking_entity_sets(linking_entity_set_id, request_body) - p result -rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->remove_entity_sets_from_linking_entity_sets: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **linking_entity_set_id** | [**String**](.md)| | - **request_body** | [**Hash<String, Array<String>>**](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 - - ## remove_primary_key_from_entity_type > remove_primary_key_from_entity_type(entity_type_id, property_type_id) @@ -3034,121 +2236,6 @@ nil (empty response body) - **Accept**: Not defined -## 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 - -```ruby -# load the gem -require 'openapi_client' -# setup authorization -OpenapiClient.configure do |config| - # Configure Bearer authorization (JWT): http_auth - config.access_token = 'YOUR_BEARER_TOKEN' - - # Configure API key authorization: openlattice_auth - config.api_key['Authorization'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - #config.api_key_prefix['Authorization'] = 'Bearer' -end - -api_instance = OpenapiClient::EdmApi.new -entity_set_id = 'entity_set_id_example' # String | -metadata_update = OpenapiClient::MetadataUpdate.new # MetadataUpdate | - -begin - #Updates the EntitySet definition for the given EntitySet UUID with the given metadata. - result = api_instance.update_entity_set_meta_data(entity_set_id, metadata_update) - p result -rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->update_entity_set_meta_data: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**String**](.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 - - -## 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 - -```ruby -# load the gem -require 'openapi_client' -# setup authorization -OpenapiClient.configure do |config| - # Configure Bearer authorization (JWT): http_auth - config.access_token = 'YOUR_BEARER_TOKEN' - - # Configure API key authorization: openlattice_auth - config.api_key['Authorization'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - #config.api_key_prefix['Authorization'] = 'Bearer' -end - -api_instance = OpenapiClient::EdmApi.new -entity_set_id = 'entity_set_id_example' # String | -property_type_id = 'property_type_id_example' # String | -metadata_update = OpenapiClient::MetadataUpdate.new # MetadataUpdate | - -begin - #Updates the property type metadata for the given entity set. - api_instance.update_entity_set_property_metadata(entity_set_id, property_type_id, metadata_update) -rescue OpenapiClient::ApiError => e - puts "Exception when calling EdmApi->update_entity_set_property_metadata: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity_set_id** | [**String**](.md)| | - **property_type_id** | [**String**](.md)| | - **metadata_update** | [**MetadataUpdate**](MetadataUpdate.md)| | - -### Return type - -nil (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 - - ## update_entity_type_meta_data > update_entity_type_meta_data(entity_type_id, metadata_update) diff --git a/ruby/lib/openapi_client/api/edm_api.rb b/ruby/lib/openapi_client/api/edm_api.rb index 8632b03..ec08f9c 100644 --- a/ruby/lib/openapi_client/api/edm_api.rb +++ b/ruby/lib/openapi_client/api/edm_api.rb @@ -83,138 +83,6 @@ def add_dst_entity_type_to_association_type_with_http_info(association_type_id, return data, status_code, headers end - # Adds the entity sets as linked entity sets to the linking entity set - # @param linking_entity_set_id [String] - # @param [Hash] opts the optional parameters - # @option opts [Array] :request_body - # @return [Integer] - def add_entity_sets_to_linking_entity_set(linking_entity_set_id, opts = {}) - data, _status_code, _headers = add_entity_sets_to_linking_entity_set_with_http_info(linking_entity_set_id, opts) - data - end - - # Adds the entity sets as linked entity sets to the linking entity set - # @param linking_entity_set_id [String] - # @param [Hash] opts the optional parameters - # @option opts [Array] :request_body - # @return [Array<(Integer, Integer, Hash)>] Integer data, response status code and response headers - def add_entity_sets_to_linking_entity_set_with_http_info(linking_entity_set_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.add_entity_sets_to_linking_entity_set ...' - end - # verify the required parameter 'linking_entity_set_id' is set - if @api_client.config.client_side_validation && linking_entity_set_id.nil? - fail ArgumentError, "Missing the required parameter 'linking_entity_set_id' when calling EdmApi.add_entity_sets_to_linking_entity_set" - end - # resource path - local_var_path = '/datastore/entity-sets/linking/{linkingEntitySetId}'.sub('{' + 'linkingEntitySetId' + '}', CGI.escape(linking_entity_set_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(opts[:'request_body']) - - # return_type - return_type = opts[:return_type] || 'Integer' - - # auth_names - auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#add_entity_sets_to_linking_entity_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Adds the entity sets as linked entity sets to the linking entity sets - # @param linking_entity_set_id [String] - # @param request_body [Hash>] - # @param [Hash] opts the optional parameters - # @return [Integer] - def add_entity_sets_to_linking_entity_sets(linking_entity_set_id, request_body, opts = {}) - data, _status_code, _headers = add_entity_sets_to_linking_entity_sets_with_http_info(linking_entity_set_id, request_body, opts) - data - end - - # Adds the entity sets as linked entity sets to the linking entity sets - # @param linking_entity_set_id [String] - # @param request_body [Hash>] - # @param [Hash] opts the optional parameters - # @return [Array<(Integer, Integer, Hash)>] Integer data, response status code and response headers - def add_entity_sets_to_linking_entity_sets_with_http_info(linking_entity_set_id, request_body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.add_entity_sets_to_linking_entity_sets ...' - end - # verify the required parameter 'linking_entity_set_id' is set - if @api_client.config.client_side_validation && linking_entity_set_id.nil? - fail ArgumentError, "Missing the required parameter 'linking_entity_set_id' when calling EdmApi.add_entity_sets_to_linking_entity_sets" - end - # verify the required parameter 'request_body' is set - if @api_client.config.client_side_validation && request_body.nil? - fail ArgumentError, "Missing the required parameter 'request_body' when calling EdmApi.add_entity_sets_to_linking_entity_sets" - end - # resource path - local_var_path = '/datastore/entity-sets/linking/'.sub('{' + 'linkingEntitySetId' + '}', CGI.escape(linking_entity_set_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(request_body) - - # return_type - return_type = opts[:return_type] || 'Integer' - - # auth_names - auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#add_entity_sets_to_linking_entity_sets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - # Adds a primary key with a given ID to an entity type with a given ID. # @param entity_type_id [String] # @param property_type_id [String] @@ -531,66 +399,6 @@ def create_empty_schema_with_http_info(namespace, name, opts = {}) return data, status_code, headers end - # Creates new EntitySet definitions if they don't exist. - # @param entity_set [Array] - # @param [Hash] opts the optional parameters - # @return [nil] - def create_entity_sets(entity_set, opts = {}) - create_entity_sets_with_http_info(entity_set, opts) - nil - end - - # Creates new EntitySet definitions if they don't exist. - # @param entity_set [Array] - # @param [Hash] opts the optional parameters - # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers - def create_entity_sets_with_http_info(entity_set, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.create_entity_sets ...' - end - # verify the required parameter 'entity_set' is set - if @api_client.config.client_side_validation && entity_set.nil? - fail ArgumentError, "Missing the required parameter 'entity_set' when calling EdmApi.create_entity_sets" - end - # resource path - local_var_path = '/datastore/entity-sets' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(entity_set) - - # return_type - return_type = opts[:return_type] - - # auth_names - auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#create_entity_sets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - # Creates a new EntityType definition, if it doesn't exist. # @param entity_type [EntityType] # @param [Hash] opts the optional parameters @@ -829,64 +637,6 @@ def delete_association_type_with_http_info(association_type_id, opts = {}) return data, status_code, headers end - # Deletes the EntitySet definition for the given EntitySet UUID. - # @param entity_set_id [String] - # @param [Hash] opts the optional parameters - # @return [nil] - def delete_entity_set(entity_set_id, opts = {}) - delete_entity_set_with_http_info(entity_set_id, opts) - nil - end - - # Deletes the EntitySet definition for the given EntitySet UUID. - # @param entity_set_id [String] - # @param [Hash] opts the optional parameters - # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers - def delete_entity_set_with_http_info(entity_set_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.delete_entity_set ...' - end - # verify the required parameter 'entity_set_id' is set - if @api_client.config.client_side_validation && entity_set_id.nil? - fail ArgumentError, "Missing the required parameter 'entity_set_id' when calling EdmApi.delete_entity_set" - end - # resource path - local_var_path = '/datastore/entity-sets/all/{entitySetId}'.sub('{' + 'entitySetId' + '}', CGI.escape(entity_set_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] - - # auth_names - auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#delete_entity_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - # Deletes the EntityType definition for the given EntityType UUID. # @param entity_type_id [String] # @param [Hash] opts the optional parameters @@ -1239,29 +989,29 @@ def get_all_available_association_types_with_http_info(association_type_id, opts return data, status_code, headers end - # Get all entity set property metadata. - # @param entity_set_id [String] + # Get all EntityType propertyType metadata + # @param entity_type_id [String] # @param [Hash] opts the optional parameters - # @return [Hash] - def get_all_entity_set_property_metadata(entity_set_id, opts = {}) - data, _status_code, _headers = get_all_entity_set_property_metadata_with_http_info(entity_set_id, opts) + # @return [Hash] + def get_all_entity_type_property_metadata(entity_type_id, opts = {}) + data, _status_code, _headers = get_all_entity_type_property_metadata_with_http_info(entity_type_id, opts) data end - # Get all entity set property metadata. - # @param entity_set_id [String] + # Get all EntityType propertyType metadata + # @param entity_type_id [String] # @param [Hash] opts the optional parameters - # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers - def get_all_entity_set_property_metadata_with_http_info(entity_set_id, opts = {}) + # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers + def get_all_entity_type_property_metadata_with_http_info(entity_type_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.get_all_entity_set_property_metadata ...' + @api_client.config.logger.debug 'Calling API: EdmApi.get_all_entity_type_property_metadata ...' end - # verify the required parameter 'entity_set_id' is set - if @api_client.config.client_side_validation && entity_set_id.nil? - fail ArgumentError, "Missing the required parameter 'entity_set_id' when calling EdmApi.get_all_entity_set_property_metadata" + # verify the required parameter 'entity_type_id' is set + if @api_client.config.client_side_validation && entity_type_id.nil? + fail ArgumentError, "Missing the required parameter 'entity_type_id' when calling EdmApi.get_all_entity_type_property_metadata" end # resource path - local_var_path = '/datastore/entity-sets/all/{entitySetId}/metadata'.sub('{' + 'entitySetId' + '}', CGI.escape(entity_set_id.to_s)) + local_var_path = '/datastore/edm/entity/type/{entityTypeId}/property/type'.sub('{' + 'entityTypeId' + '}', CGI.escape(entity_type_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1278,7 +1028,7 @@ def get_all_entity_set_property_metadata_with_http_info(entity_set_id, opts = {} post_body = opts[:body] # return_type - return_type = opts[:return_type] || 'Hash' + return_type = opts[:return_type] || 'Hash' # auth_names auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] @@ -1294,28 +1044,28 @@ def get_all_entity_set_property_metadata_with_http_info(entity_set_id, opts = {} data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#get_all_entity_set_property_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: EdmApi#get_all_entity_type_property_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Get all EntitySet definitions. + # Gets all EntityType definitions. # @param [Hash] opts the optional parameters - # @return [Array] - def get_all_entity_sets(opts = {}) - data, _status_code, _headers = get_all_entity_sets_with_http_info(opts) + # @return [Array] + def get_all_entity_types(opts = {}) + data, _status_code, _headers = get_all_entity_types_with_http_info(opts) data end - # Get all EntitySet definitions. + # Gets all EntityType definitions. # @param [Hash] opts the optional parameters - # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers - def get_all_entity_sets_with_http_info(opts = {}) + # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers + def get_all_entity_types_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.get_all_entity_sets ...' + @api_client.config.logger.debug 'Calling API: EdmApi.get_all_entity_types ...' end # resource path - local_var_path = '/datastore/entity-sets' + local_var_path = '/datastore/edm/entity/type/' # query parameters query_params = opts[:query_params] || {} @@ -1332,7 +1082,7 @@ def get_all_entity_sets_with_http_info(opts = {}) post_body = opts[:body] # return_type - return_type = opts[:return_type] || 'Array' + return_type = opts[:return_type] || 'Array' # auth_names auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] @@ -1348,34 +1098,28 @@ def get_all_entity_sets_with_http_info(opts = {}) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#get_all_entity_sets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: EdmApi#get_all_entity_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Get all EntityType propertyType metadata - # @param entity_type_id [String] + # Gets all PropertyType definitions. # @param [Hash] opts the optional parameters - # @return [Hash] - def get_all_entity_type_property_metadata(entity_type_id, opts = {}) - data, _status_code, _headers = get_all_entity_type_property_metadata_with_http_info(entity_type_id, opts) + # @return [Array] + def get_all_property_types(opts = {}) + data, _status_code, _headers = get_all_property_types_with_http_info(opts) data end - # Get all EntityType propertyType metadata - # @param entity_type_id [String] + # Gets all PropertyType definitions. # @param [Hash] opts the optional parameters - # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers - def get_all_entity_type_property_metadata_with_http_info(entity_type_id, opts = {}) + # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers + def get_all_property_types_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.get_all_entity_type_property_metadata ...' - end - # verify the required parameter 'entity_type_id' is set - if @api_client.config.client_side_validation && entity_type_id.nil? - fail ArgumentError, "Missing the required parameter 'entity_type_id' when calling EdmApi.get_all_entity_type_property_metadata" + @api_client.config.logger.debug 'Calling API: EdmApi.get_all_property_types ...' end # resource path - local_var_path = '/datastore/edm/entity/type/{entityTypeId}/property/type'.sub('{' + 'entityTypeId' + '}', CGI.escape(entity_type_id.to_s)) + local_var_path = '/datastore/edm/property/type/' # query parameters query_params = opts[:query_params] || {} @@ -1392,7 +1136,7 @@ def get_all_entity_type_property_metadata_with_http_info(entity_type_id, opts = post_body = opts[:body] # return_type - return_type = opts[:return_type] || 'Hash' + return_type = opts[:return_type] || 'Array' # auth_names auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] @@ -1408,135 +1152,27 @@ def get_all_entity_type_property_metadata_with_http_info(entity_type_id, opts = data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#get_all_entity_type_property_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: EdmApi#get_all_property_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Gets all EntityType definitions. + # Gets all PropertyType definitions under the given namespace. + # @param namespace [String] # @param [Hash] opts the optional parameters - # @return [Array] - def get_all_entity_types(opts = {}) - data, _status_code, _headers = get_all_entity_types_with_http_info(opts) + # @return [Array] + def get_all_property_types_in_namespace(namespace, opts = {}) + data, _status_code, _headers = get_all_property_types_in_namespace_with_http_info(namespace, opts) data end - # Gets all EntityType definitions. + # Gets all PropertyType definitions under the given namespace. + # @param namespace [String] # @param [Hash] opts the optional parameters - # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers - def get_all_entity_types_with_http_info(opts = {}) + # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers + def get_all_property_types_in_namespace_with_http_info(namespace, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.get_all_entity_types ...' - end - # resource path - local_var_path = '/datastore/edm/entity/type/' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Array' - - # auth_names - auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#get_all_entity_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Gets all PropertyType definitions. - # @param [Hash] opts the optional parameters - # @return [Array] - def get_all_property_types(opts = {}) - data, _status_code, _headers = get_all_property_types_with_http_info(opts) - data - end - - # Gets all PropertyType definitions. - # @param [Hash] opts the optional parameters - # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers - def get_all_property_types_with_http_info(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.get_all_property_types ...' - end - # resource path - local_var_path = '/datastore/edm/property/type/' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Array' - - # auth_names - auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#get_all_property_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Gets all PropertyType definitions under the given namespace. - # @param namespace [String] - # @param [Hash] opts the optional parameters - # @return [Array] - def get_all_property_types_in_namespace(namespace, opts = {}) - data, _status_code, _headers = get_all_property_types_in_namespace_with_http_info(namespace, opts) - data - end - - # Gets all PropertyType definitions under the given namespace. - # @param namespace [String] - # @param [Hash] opts the optional parameters - # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers - def get_all_property_types_in_namespace_with_http_info(namespace, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.get_all_property_types_in_namespace ...' + @api_client.config.logger.debug 'Calling API: EdmApi.get_all_property_types_in_namespace ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? @@ -1871,250 +1507,6 @@ def get_entity_data_model_diff_with_http_info(ed_mdiff, opts = {}) return data, status_code, headers end - # Get the EntitySet definition for the given EntitySet UUID. - # @param entity_set_id [String] - # @param [Hash] opts the optional parameters - # @return [EntitySet] - def get_entity_set(entity_set_id, opts = {}) - data, _status_code, _headers = get_entity_set_with_http_info(entity_set_id, opts) - data - end - - # Get the EntitySet definition for the given EntitySet UUID. - # @param entity_set_id [String] - # @param [Hash] opts the optional parameters - # @return [Array<(EntitySet, Integer, Hash)>] EntitySet data, response status code and response headers - def get_entity_set_with_http_info(entity_set_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.get_entity_set ...' - end - # verify the required parameter 'entity_set_id' is set - if @api_client.config.client_side_validation && entity_set_id.nil? - fail ArgumentError, "Missing the required parameter 'entity_set_id' when calling EdmApi.get_entity_set" - end - # resource path - local_var_path = '/datastore/entity-sets/all/{entitySetId}'.sub('{' + 'entitySetId' + '}', CGI.escape(entity_set_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'EntitySet' - - # auth_names - auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#get_entity_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Gets the EntitySet UUID for the given EntitySet name. - # @param entity_set_name [String] - # @param [Hash] opts the optional parameters - # @return [String] - def get_entity_set_id(entity_set_name, opts = {}) - data, _status_code, _headers = get_entity_set_id_with_http_info(entity_set_name, opts) - data - end - - # Gets the EntitySet UUID for the given EntitySet name. - # @param entity_set_name [String] - # @param [Hash] opts the optional parameters - # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers - def get_entity_set_id_with_http_info(entity_set_name, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.get_entity_set_id ...' - end - # verify the required parameter 'entity_set_name' is set - if @api_client.config.client_side_validation && entity_set_name.nil? - fail ArgumentError, "Missing the required parameter 'entity_set_name' when calling EdmApi.get_entity_set_id" - end - # resource path - local_var_path = '/datastore/entity-sets/ids/{entitySetName}'.sub('{' + 'entitySetName' + '}', CGI.escape(entity_set_name.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'String' - - # auth_names - auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#get_entity_set_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get IDs for entity sets given their names. - # @param [Hash] opts the optional parameters - # @option opts [Array] :request_body - # @return [Hash] - def get_entity_set_ids(opts = {}) - data, _status_code, _headers = get_entity_set_ids_with_http_info(opts) - data - end - - # Get IDs for entity sets given their names. - # @param [Hash] opts the optional parameters - # @option opts [Array] :request_body - # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers - def get_entity_set_ids_with_http_info(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.get_entity_set_ids ...' - end - # resource path - local_var_path = '/datastore/entity-sets/ids/' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(opts[:'request_body']) - - # return_type - return_type = opts[:return_type] || 'Hash' - - # auth_names - auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#get_entity_set_ids\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get specified property type metadata for an entity set. - # @param entity_set_id [String] - # @param property_type_id [String] - # @param [Hash] opts the optional parameters - # @return [EntitySetPropertyMetaData] - def get_entity_set_property_metadata(entity_set_id, property_type_id, opts = {}) - data, _status_code, _headers = get_entity_set_property_metadata_with_http_info(entity_set_id, property_type_id, opts) - data - end - - # Get specified property type metadata for an entity set. - # @param entity_set_id [String] - # @param property_type_id [String] - # @param [Hash] opts the optional parameters - # @return [Array<(EntitySetPropertyMetaData, Integer, Hash)>] EntitySetPropertyMetaData data, response status code and response headers - def get_entity_set_property_metadata_with_http_info(entity_set_id, property_type_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.get_entity_set_property_metadata ...' - end - # verify the required parameter 'entity_set_id' is set - if @api_client.config.client_side_validation && entity_set_id.nil? - fail ArgumentError, "Missing the required parameter 'entity_set_id' when calling EdmApi.get_entity_set_property_metadata" - end - # verify the required parameter 'property_type_id' is set - if @api_client.config.client_side_validation && property_type_id.nil? - fail ArgumentError, "Missing the required parameter 'property_type_id' when calling EdmApi.get_entity_set_property_metadata" - end - # resource path - local_var_path = '/datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/'.sub('{' + 'entitySetId' + '}', CGI.escape(entity_set_id.to_s)).sub('{' + 'propertyTypeId' + '}', CGI.escape(property_type_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'EntitySetPropertyMetaData' - - # auth_names - auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#get_entity_set_property_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - # Gets the EntityType definition for the given EntityType UUID. # @param entity_type_id [String] # @param [Hash] opts the optional parameters @@ -2320,70 +1712,14 @@ def get_entity_type_property_metadata_with_http_info(entity_type_id, property_ty end # verify the required parameter 'entity_type_id' is set if @api_client.config.client_side_validation && entity_type_id.nil? - fail ArgumentError, "Missing the required parameter 'entity_type_id' when calling EdmApi.get_entity_type_property_metadata" - end - # verify the required parameter 'property_type_id' is set - if @api_client.config.client_side_validation && property_type_id.nil? - fail ArgumentError, "Missing the required parameter 'property_type_id' when calling EdmApi.get_entity_type_property_metadata" - end - # resource path - local_var_path = '/datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId}'.sub('{' + 'entityTypeId' + '}', CGI.escape(entity_type_id.to_s)).sub('{' + 'propertyTypeId' + '}', CGI.escape(property_type_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'EntityTypePropertyMetadata' - - # auth_names - auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#get_entity_type_property_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get property metadata for entity sets. - # @param [Hash] opts the optional parameters - # @option opts [Array] :request_body - # @return [Hash>] - def get_property_metadata_for_entity_sets(opts = {}) - data, _status_code, _headers = get_property_metadata_for_entity_sets_with_http_info(opts) - data - end - - # Get property metadata for entity sets. - # @param [Hash] opts the optional parameters - # @option opts [Array] :request_body - # @return [Array<(Hash>, Integer, Hash)>] Hash> data, response status code and response headers - def get_property_metadata_for_entity_sets_with_http_info(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.get_property_metadata_for_entity_sets ...' + fail ArgumentError, "Missing the required parameter 'entity_type_id' when calling EdmApi.get_entity_type_property_metadata" + end + # verify the required parameter 'property_type_id' is set + if @api_client.config.client_side_validation && property_type_id.nil? + fail ArgumentError, "Missing the required parameter 'property_type_id' when calling EdmApi.get_entity_type_property_metadata" end # resource path - local_var_path = '/datastore/entity-sets/all/metadata' + local_var_path = '/datastore/edm/entity/type/{entityTypeId}/property/type/{propertyTypeId}'.sub('{' + 'entityTypeId' + '}', CGI.escape(entity_type_id.to_s)).sub('{' + 'propertyTypeId' + '}', CGI.escape(property_type_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2392,17 +1728,15 @@ def get_property_metadata_for_entity_sets_with_http_info(opts = {}) header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(opts[:'request_body']) + post_body = opts[:body] # return_type - return_type = opts[:return_type] || 'Hash>' + return_type = opts[:return_type] || 'EntityTypePropertyMetadata' # auth_names auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] @@ -2416,9 +1750,9 @@ def get_property_metadata_for_entity_sets_with_http_info(opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#get_property_metadata_for_entity_sets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: EdmApi#get_entity_type_property_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end @@ -2549,66 +1883,6 @@ def get_property_type_id_with_http_info(namespace, name, opts = {}) return data, status_code, headers end - # Get all Property Types for entity set - # @param entity_set_id [String] - # @param [Hash] opts the optional parameters - # @return [Hash] - def get_property_types_for_entity_set(entity_set_id, opts = {}) - data, _status_code, _headers = get_property_types_for_entity_set_with_http_info(entity_set_id, opts) - data - end - - # Get all Property Types for entity set - # @param entity_set_id [String] - # @param [Hash] opts the optional parameters - # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers - def get_property_types_for_entity_set_with_http_info(entity_set_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.get_property_types_for_entity_set ...' - end - # verify the required parameter 'entity_set_id' is set - if @api_client.config.client_side_validation && entity_set_id.nil? - fail ArgumentError, "Missing the required parameter 'entity_set_id' when calling EdmApi.get_property_types_for_entity_set" - end - # resource path - local_var_path = '/datastore/entity-sets/all/{entitySetId}/properties'.sub('{' + 'entitySetId' + '}', CGI.escape(entity_set_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Hash' - - # auth_names - auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#get_property_types_for_entity_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - # Get Property Usage Summary for property with given ID. # @param property_type_id [String] # @param [Hash] opts the optional parameters @@ -2920,138 +2194,6 @@ def remove_dst_entity_type_from_association_type_with_http_info(association_type return data, status_code, headers end - # Removes/unlinks the linked entity sets from the linking entity set - # @param linking_entity_set_id [String] - # @param [Hash] opts the optional parameters - # @option opts [Array] :request_body - # @return [Integer] - def remove_entity_sets_from_linking_entity_set(linking_entity_set_id, opts = {}) - data, _status_code, _headers = remove_entity_sets_from_linking_entity_set_with_http_info(linking_entity_set_id, opts) - data - end - - # Removes/unlinks the linked entity sets from the linking entity set - # @param linking_entity_set_id [String] - # @param [Hash] opts the optional parameters - # @option opts [Array] :request_body - # @return [Array<(Integer, Integer, Hash)>] Integer data, response status code and response headers - def remove_entity_sets_from_linking_entity_set_with_http_info(linking_entity_set_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.remove_entity_sets_from_linking_entity_set ...' - end - # verify the required parameter 'linking_entity_set_id' is set - if @api_client.config.client_side_validation && linking_entity_set_id.nil? - fail ArgumentError, "Missing the required parameter 'linking_entity_set_id' when calling EdmApi.remove_entity_sets_from_linking_entity_set" - end - # resource path - local_var_path = '/datastore/entity-sets/linking/{linkingEntitySetId}'.sub('{' + 'linkingEntitySetId' + '}', CGI.escape(linking_entity_set_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(opts[:'request_body']) - - # return_type - return_type = opts[:return_type] || 'Integer' - - # auth_names - auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#remove_entity_sets_from_linking_entity_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Removes/unlinks the linked entity sets from the linking entity set - # @param linking_entity_set_id [String] - # @param request_body [Hash>] - # @param [Hash] opts the optional parameters - # @return [Integer] - def remove_entity_sets_from_linking_entity_sets(linking_entity_set_id, request_body, opts = {}) - data, _status_code, _headers = remove_entity_sets_from_linking_entity_sets_with_http_info(linking_entity_set_id, request_body, opts) - data - end - - # Removes/unlinks the linked entity sets from the linking entity set - # @param linking_entity_set_id [String] - # @param request_body [Hash>] - # @param [Hash] opts the optional parameters - # @return [Array<(Integer, Integer, Hash)>] Integer data, response status code and response headers - def remove_entity_sets_from_linking_entity_sets_with_http_info(linking_entity_set_id, request_body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.remove_entity_sets_from_linking_entity_sets ...' - end - # verify the required parameter 'linking_entity_set_id' is set - if @api_client.config.client_side_validation && linking_entity_set_id.nil? - fail ArgumentError, "Missing the required parameter 'linking_entity_set_id' when calling EdmApi.remove_entity_sets_from_linking_entity_sets" - end - # verify the required parameter 'request_body' is set - if @api_client.config.client_side_validation && request_body.nil? - fail ArgumentError, "Missing the required parameter 'request_body' when calling EdmApi.remove_entity_sets_from_linking_entity_sets" - end - # resource path - local_var_path = '/datastore/entity-sets/linking/'.sub('{' + 'linkingEntitySetId' + '}', CGI.escape(linking_entity_set_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(request_body) - - # return_type - return_type = opts[:return_type] || 'Integer' - - # auth_names - auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#remove_entity_sets_from_linking_entity_sets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - # Removes a primary key with a given ID from an entity type with a given ID. # @param entity_type_id [String] # @param property_type_id [String] @@ -3368,146 +2510,6 @@ def update_entity_data_model_with_http_info(edm, opts = {}) return data, status_code, headers end - # Updates the EntitySet definition for the given EntitySet UUID with the given metadata. - # @param entity_set_id [String] - # @param metadata_update [MetadataUpdate] - # @param [Hash] opts the optional parameters - # @return [Integer] - def update_entity_set_meta_data(entity_set_id, metadata_update, opts = {}) - data, _status_code, _headers = update_entity_set_meta_data_with_http_info(entity_set_id, metadata_update, opts) - data - end - - # Updates the EntitySet definition for the given EntitySet UUID with the given metadata. - # @param entity_set_id [String] - # @param metadata_update [MetadataUpdate] - # @param [Hash] opts the optional parameters - # @return [Array<(Integer, Integer, Hash)>] Integer data, response status code and response headers - def update_entity_set_meta_data_with_http_info(entity_set_id, metadata_update, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.update_entity_set_meta_data ...' - end - # verify the required parameter 'entity_set_id' is set - if @api_client.config.client_side_validation && entity_set_id.nil? - fail ArgumentError, "Missing the required parameter 'entity_set_id' when calling EdmApi.update_entity_set_meta_data" - end - # verify the required parameter 'metadata_update' is set - if @api_client.config.client_side_validation && metadata_update.nil? - fail ArgumentError, "Missing the required parameter 'metadata_update' when calling EdmApi.update_entity_set_meta_data" - end - # resource path - local_var_path = '/datastore/entity-sets/all/{entitySetId}/metadata/'.sub('{' + 'entitySetId' + '}', CGI.escape(entity_set_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(metadata_update) - - # return_type - return_type = opts[:return_type] || 'Integer' - - # auth_names - auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#update_entity_set_meta_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Updates the property type metadata for the given entity set. - # @param entity_set_id [String] - # @param property_type_id [String] - # @param metadata_update [MetadataUpdate] - # @param [Hash] opts the optional parameters - # @return [nil] - def update_entity_set_property_metadata(entity_set_id, property_type_id, metadata_update, opts = {}) - update_entity_set_property_metadata_with_http_info(entity_set_id, property_type_id, metadata_update, opts) - nil - end - - # Updates the property type metadata for the given entity set. - # @param entity_set_id [String] - # @param property_type_id [String] - # @param metadata_update [MetadataUpdate] - # @param [Hash] opts the optional parameters - # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers - def update_entity_set_property_metadata_with_http_info(entity_set_id, property_type_id, metadata_update, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EdmApi.update_entity_set_property_metadata ...' - end - # verify the required parameter 'entity_set_id' is set - if @api_client.config.client_side_validation && entity_set_id.nil? - fail ArgumentError, "Missing the required parameter 'entity_set_id' when calling EdmApi.update_entity_set_property_metadata" - end - # verify the required parameter 'property_type_id' is set - if @api_client.config.client_side_validation && property_type_id.nil? - fail ArgumentError, "Missing the required parameter 'property_type_id' when calling EdmApi.update_entity_set_property_metadata" - end - # verify the required parameter 'metadata_update' is set - if @api_client.config.client_side_validation && metadata_update.nil? - fail ArgumentError, "Missing the required parameter 'metadata_update' when calling EdmApi.update_entity_set_property_metadata" - end - # resource path - local_var_path = '/datastore/entity-sets/all/{entitySetId}/properties/{propertyTypeId}/'.sub('{' + 'entitySetId' + '}', CGI.escape(entity_set_id.to_s)).sub('{' + 'propertyTypeId' + '}', CGI.escape(property_type_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(metadata_update) - - # return_type - return_type = opts[:return_type] - - # auth_names - auth_names = opts[:auth_names] || ['http_auth', 'openlattice_auth'] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: EdmApi#update_entity_set_property_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - # Updates the EntityType definition for the given EntityType UUID with the given metadata. # @param entity_type_id [String] # @param metadata_update [MetadataUpdate] diff --git a/ruby/spec/api/edm_api_spec.rb b/ruby/spec/api/edm_api_spec.rb index bc43b2e..1150a73 100644 --- a/ruby/spec/api/edm_api_spec.rb +++ b/ruby/spec/api/edm_api_spec.rb @@ -44,30 +44,6 @@ end end - # unit tests for add_entity_sets_to_linking_entity_set - # Adds the entity sets as linked entity sets to the linking entity set - # @param linking_entity_set_id - # @param [Hash] opts the optional parameters - # @option opts [Array] :request_body - # @return [Integer] - describe 'add_entity_sets_to_linking_entity_set test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for add_entity_sets_to_linking_entity_sets - # Adds the entity sets as linked entity sets to the linking entity sets - # @param linking_entity_set_id - # @param request_body - # @param [Hash] opts the optional parameters - # @return [Integer] - describe 'add_entity_sets_to_linking_entity_sets test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - # unit tests for add_primary_key_to_entity_type # Adds a primary key with a given ID to an entity type with a given ID. # @param entity_type_id @@ -127,17 +103,6 @@ end end - # unit tests for create_entity_sets - # Creates new EntitySet definitions if they don't exist. - # @param entity_set - # @param [Hash] opts the optional parameters - # @return [nil] - describe 'create_entity_sets test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - # unit tests for create_entity_type # Creates a new EntityType definition, if it doesn't exist. # @param entity_type @@ -182,17 +147,6 @@ end end - # unit tests for delete_entity_set - # Deletes the EntitySet definition for the given EntitySet UUID. - # @param entity_set_id - # @param [Hash] opts the optional parameters - # @return [nil] - describe 'delete_entity_set test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - # unit tests for delete_entity_type # Deletes the EntityType definition for the given EntityType UUID. # @param entity_type_id @@ -259,27 +213,6 @@ end end - # unit tests for get_all_entity_set_property_metadata - # Get all entity set property metadata. - # @param entity_set_id - # @param [Hash] opts the optional parameters - # @return [Hash] - describe 'get_all_entity_set_property_metadata test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_all_entity_sets - # Get all EntitySet definitions. - # @param [Hash] opts the optional parameters - # @return [Array] - describe 'get_all_entity_sets test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - # unit tests for get_all_entity_type_property_metadata # Get all EntityType propertyType metadata # @param entity_type_id @@ -375,51 +308,6 @@ end end - # unit tests for get_entity_set - # Get the EntitySet definition for the given EntitySet UUID. - # @param entity_set_id - # @param [Hash] opts the optional parameters - # @return [EntitySet] - describe 'get_entity_set test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_entity_set_id - # Gets the EntitySet UUID for the given EntitySet name. - # @param entity_set_name - # @param [Hash] opts the optional parameters - # @return [String] - describe 'get_entity_set_id test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_entity_set_ids - # Get IDs for entity sets given their names. - # @param [Hash] opts the optional parameters - # @option opts [Array] :request_body - # @return [Hash] - describe 'get_entity_set_ids test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_entity_set_property_metadata - # Get specified property type metadata for an entity set. - # @param entity_set_id - # @param property_type_id - # @param [Hash] opts the optional parameters - # @return [EntitySetPropertyMetaData] - describe 'get_entity_set_property_metadata test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - # unit tests for get_entity_type # Gets the EntityType definition for the given EntityType UUID. # @param entity_type_id @@ -466,17 +354,6 @@ end end - # unit tests for get_property_metadata_for_entity_sets - # Get property metadata for entity sets. - # @param [Hash] opts the optional parameters - # @option opts [Array] :request_body - # @return [Hash>] - describe 'get_property_metadata_for_entity_sets test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - # unit tests for get_property_type # Gets the PropertyType definition for the given PropertyType UUID. # @param property_type_id @@ -500,17 +377,6 @@ end end - # unit tests for get_property_types_for_entity_set - # Get all Property Types for entity set - # @param entity_set_id - # @param [Hash] opts the optional parameters - # @return [Hash] - describe 'get_property_types_for_entity_set test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - # unit tests for get_property_usage_summary # Get Property Usage Summary for property with given ID. # @param property_type_id @@ -568,30 +434,6 @@ end end - # unit tests for remove_entity_sets_from_linking_entity_set - # Removes/unlinks the linked entity sets from the linking entity set - # @param linking_entity_set_id - # @param [Hash] opts the optional parameters - # @option opts [Array] :request_body - # @return [Integer] - describe 'remove_entity_sets_from_linking_entity_set test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for remove_entity_sets_from_linking_entity_sets - # Removes/unlinks the linked entity sets from the linking entity set - # @param linking_entity_set_id - # @param request_body - # @param [Hash] opts the optional parameters - # @return [Integer] - describe 'remove_entity_sets_from_linking_entity_sets test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - # unit tests for remove_primary_key_from_entity_type # Removes a primary key with a given ID from an entity type with a given ID. # @param entity_type_id @@ -651,31 +493,6 @@ end end - # unit tests for update_entity_set_meta_data - # Updates the EntitySet definition for the given EntitySet UUID with the given metadata. - # @param entity_set_id - # @param metadata_update - # @param [Hash] opts the optional parameters - # @return [Integer] - describe 'update_entity_set_meta_data test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for update_entity_set_property_metadata - # Updates the property type metadata for the given entity set. - # @param entity_set_id - # @param property_type_id - # @param metadata_update - # @param [Hash] opts the optional parameters - # @return [nil] - describe 'update_entity_set_property_metadata test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - # unit tests for update_entity_type_meta_data # Updates the EntityType definition for the given EntityType UUID with the given metadata. # @param entity_type_id