public class ModelsApi extends Object
| Constructor and Description |
|---|
ModelsApi() |
ModelsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
AccessControlEntityResponse |
createAccessControlEntity(AccessControlEntity body)
createAccessControlEntity
Creates an access control entity
|
void |
deleteAccessControlEntity(UUID id)
deleteAccessControlEntity
Deletes an access control entity
|
AccessControlEntityListResponse |
getAccessControlEntities(Integer pageSize,
String cursor,
String sorting,
String sortDirection)
getAccessControlEntities
Retrieves all access control entities
|
ApiClient |
getApiClient() |
AuthorizationRolesResponse |
getAuthorization(String workspaceId)
getAuthorization
Provides all authorization roles were for each role a set of permission is defined.
|
DataModelDefinitionResponse |
getDataModel(String workspaceId)
getDataModel
Retrieves the model for a workspace
|
DataModelDefinitionResponse |
getEnrichedDataModel(String workspaceId)
getEnrichedDataModel
Retrieves the model for a workspace, including redundant data that makes life easy for the web front end
|
LanguageResponse |
getLanguage(String id,
String workspaceId)
getLanguage
Get the given language
|
ReportingModelResponse |
getReportingModel(String workspaceId)
getReportingModel
Retrieves the report model for a workspace
|
ViewModelResponse |
getViewModel(String workspaceId)
getViewModel
Retrieves the view model for a workspace
|
AccessControlEntityResponse |
readAccessControlEntity(UUID id)
getAccessControlEntity
Reads an access control entity
|
void |
setApiClient(ApiClient apiClient) |
AccessControlEntityResponse |
updateAccessControlEntity(UUID id,
AccessControlEntity accessControlEntity)
updateAccessControlEntity
Updates an access control entity
|
Response |
updateAuthorization(List<AuthorizationRole> body,
String workspaceId)
updateAuthorization
Updates all authorization roles for a given workspace.
|
DataModelUpdateResponse |
updateDataModel(DataModel body,
Boolean force,
String workspaceId)
updateDataModel
Updates the data model for a workspace
|
Response |
updateLanguage(String id,
Translation definition,
String workspaceId)
updateLanguage
Updates the given language
|
void |
updateReportingModel(ReportingModelDefinition body,
String workspaceId)
updateReportingModel
Updates the report model for a workspace
|
void |
updateViewModel(ViewModelDefinition body,
String workspaceId)
updateViewModel
Updates the view model for a workspace
|
public ModelsApi()
public ModelsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public AccessControlEntityResponse createAccessControlEntity(AccessControlEntity body) throws ApiException
body - New access control entity (optional)ApiException - if fails to make API callpublic void deleteAccessControlEntity(UUID id) throws ApiException
id - (required)ApiException - if fails to make API callpublic AccessControlEntityListResponse getAccessControlEntities(Integer pageSize, String cursor, String sorting, String sortDirection) throws ApiException
pageSize - Number of reports to be returned, maximum is 100 (optional, default to 40)cursor - Marks the position of the first element that should be returned (optional)sorting - The field to sort the results by (optional, default to name)sortDirection - The direction of the sorting (optional, default to ASC)ApiException - if fails to make API callpublic AuthorizationRolesResponse getAuthorization(String workspaceId) throws ApiException
workspaceId - (optional)ApiException - if fails to make API callpublic DataModelDefinitionResponse getDataModel(String workspaceId) throws ApiException
workspaceId - (optional)ApiException - if fails to make API callpublic DataModelDefinitionResponse getEnrichedDataModel(String workspaceId) throws ApiException
workspaceId - (optional)ApiException - if fails to make API callpublic LanguageResponse getLanguage(String id, String workspaceId) throws ApiException
id - (required)workspaceId - (optional)ApiException - if fails to make API callpublic ReportingModelResponse getReportingModel(String workspaceId) throws ApiException
workspaceId - (optional)ApiException - if fails to make API callpublic ViewModelResponse getViewModel(String workspaceId) throws ApiException
workspaceId - (optional)ApiException - if fails to make API callpublic AccessControlEntityResponse readAccessControlEntity(UUID id) throws ApiException
id - (required)ApiException - if fails to make API callpublic AccessControlEntityResponse updateAccessControlEntity(UUID id, AccessControlEntity accessControlEntity) throws ApiException
id - (required)accessControlEntity - (optional)ApiException - if fails to make API callpublic Response updateAuthorization(List<AuthorizationRole> body, String workspaceId) throws ApiException
body - The authorization configuration for the workspace which contains all roles and its permissions (required)workspaceId - (optional)ApiException - if fails to make API callpublic DataModelUpdateResponse updateDataModel(DataModel body, Boolean force, String workspaceId) throws ApiException
body - the data model for the workspace (required)force - whether changes should be forced (optional, default to false)workspaceId - (optional)ApiException - if fails to make API callpublic Response updateLanguage(String id, Translation definition, String workspaceId) throws ApiException
id - (required)definition - (required)workspaceId - (optional)ApiException - if fails to make API callpublic void updateReportingModel(ReportingModelDefinition body, String workspaceId) throws ApiException
body - the report model for the workspace (required)workspaceId - (optional)ApiException - if fails to make API callpublic void updateViewModel(ViewModelDefinition body, String workspaceId) throws ApiException
body - the view model for the workspace (required)workspaceId - (optional)ApiException - if fails to make API callCopyright © 2019 LeanIX GmbH. All rights reserved.