public class ModelsApi extends Object
| Constructor and Description |
|---|
ModelsApi() |
ModelsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
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
|
ViewModelResponse |
getViewModel(String workspaceId)
getViewModel
Retrieves the view model for a workspace
|
void |
setApiClient(ApiClient apiClient) |
BasicResponse |
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
|
BasicResponse |
updateLanguage(String id,
Object definition,
String workspaceId)
updateLanguage
Updates the given language
|
BasicResponse |
updateViewModel(String 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 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 ViewModelResponse getViewModel(String workspaceId) throws ApiException
workspaceId - (optional)ApiException - if fails to make API callpublic BasicResponse 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 BasicResponse updateLanguage(String id, Object definition, String workspaceId) throws ApiException
id - (required)definition - (required)workspaceId - (optional)ApiException - if fails to make API callpublic BasicResponse updateViewModel(String body, String workspaceId) throws ApiException
body - the view model for the workspace (required)workspaceId - (optional)ApiException - if fails to make API callCopyright © 2017 LeanIX GmbH. All rights reserved.