public class APIManagerClient extends SchemaManagerClient implements APIManagerInterface
| Constructor and Description |
|---|
APIManagerClient(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
APIManagerClient(String serverName,
String serverPlatformURLRoot,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
APIManagerClient(String serverName,
String serverPlatformURLRoot,
DataManagerRESTClient restClient,
int maxPageSize,
AuditLog auditLog)
Create a new client that is going to be used in an OMAG Server.
|
APIManagerClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
APIManagerClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password,
AuditLog auditLog)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createAPI(String userId,
String apiManagerGUID,
String apiManagerName,
boolean apiManagerIsHome,
APIProperties apiProperties)
Create a new metadata element to represent an API.
|
String |
createAPIFromTemplate(String userId,
String apiManagerGUID,
String apiManagerName,
boolean apiManagerIsHome,
String templateGUID,
TemplateProperties templateProperties)
Create a new metadata element to represent an API using an existing metadata element as a template.
|
String |
createAPIOperation(String userId,
String apiManagerGUID,
String apiManagerName,
boolean apiManagerIsHome,
String apiGUID,
APIOperationProperties properties)
Create a new metadata element to represent an API Operation.
|
String |
createAPIOperationFromTemplate(String userId,
String apiManagerGUID,
String apiManagerName,
boolean apiManagerIsHome,
String templateGUID,
String apiGUID,
TemplateProperties templateProperties)
Create a new metadata element to represent a API operation using an existing metadata element as a template.
|
String |
createAPIParameterList(String userId,
String apiManagerGUID,
String apiManagerName,
boolean apiManagerIsHome,
String apiOperationGUID,
APIParameterListType parameterListType,
APIParameterListProperties properties)
Create a new metadata element to represent an API Operation's Parameter list.
|
String |
createAPIParameterListFromTemplate(String userId,
String apiManagerGUID,
String apiManagerName,
boolean apiManagerIsHome,
String templateGUID,
String apiOperationGUID,
APIParameterListType parameterListType,
TemplateProperties templateProperties)
Create a new metadata element to represent a an API Parameter List using an existing API Parameter List as a template.
|
List<APIOperationElement> |
findAPIOperations(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of API operation metadata elements that contain the search string.
|
List<APIParameterListElement> |
findAPIParameterLists(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of API Parameter List metadata elements that contain the search string.
|
List<APIElement> |
findAPIs(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of api metadata elements that contain the search string.
|
APIElement |
getAPIByGUID(String userId,
String guid)
Retrieve the api metadata element with the supplied unique identifier.
|
APIOperationElement |
getAPIOperationByGUID(String userId,
String guid)
Retrieve the API operation metadata element with the supplied unique identifier.
|
List<APIOperationElement> |
getAPIOperationsByName(String userId,
String name,
int startFrom,
int pageSize)
Retrieve the list of API operation metadata elements with a matching qualified or display name.
|
APIParameterListElement |
getAPIParameterListByGUID(String userId,
String guid)
Retrieve the API Parameter List metadata element with the supplied unique identifier.
|
List<APIParameterListElement> |
getAPIParameterListsByName(String userId,
String name,
int startFrom,
int pageSize)
Retrieve the list of API Parameter List metadata elements with a matching qualified or display name.
|
List<APIElement> |
getAPIsByName(String userId,
String name,
int startFrom,
int pageSize)
Retrieve the list of api metadata elements with a matching qualified or display name.
|
List<APIElement> |
getAPIsForAPIManager(String userId,
String apiManagerGUID,
String apiManagerName,
int startFrom,
int pageSize)
Retrieve the list of apis created by this caller.
|
List<APIOperationElement> |
getOperationsForAPI(String userId,
String apiGUID,
int startFrom,
int pageSize)
Return the list of api-operations associated with an API.
|
List<APIParameterListElement> |
getParameterListsForAPIOperation(String userId,
String apiOperationGUID,
int startFrom,
int pageSize)
Return the list of API Parameter Lists associated with an API Operation.
|
void |
publishAPI(String userId,
String apiGUID)
Update the zones for the api asset so that it becomes visible to consumers.
|
void |
removeAPI(String userId,
String apiManagerGUID,
String apiManagerName,
String apiGUID,
String qualifiedName)
Remove the metadata element representing an API.
|
void |
removeAPIOperation(String userId,
String apiManagerGUID,
String apiManagerName,
String apiOperationGUID,
String qualifiedName)
Remove the metadata element representing a API operation.
|
void |
removeAPIParameterList(String userId,
String apiManagerGUID,
String apiManagerName,
String apiParameterListGUID,
String qualifiedName)
Remove an API Parameter List and all of its parameters.
|
void |
updateAPI(String userId,
String apiManagerGUID,
String apiManagerName,
String apiGUID,
boolean isMergeUpdate,
APIProperties apiProperties)
Update the metadata element representing an API.
|
void |
updateAPIOperation(String userId,
String apiManagerGUID,
String apiManagerName,
String apiOperationGUID,
boolean isMergeUpdate,
APIOperationProperties properties)
Update the metadata element representing a API operation.
|
void |
updateAPIParameterList(String userId,
String apiManagerGUID,
String apiManagerName,
String apiParameterListGUID,
boolean isMergeUpdate,
APIParameterListProperties properties)
Update the metadata element representing an API Parameter List.
|
void |
withdrawAPI(String userId,
String apiGUID)
Update the zones for the api asset so that it is no longer visible to consumers.
|
clearCalculatedValue, clearQueryTargetRelationship, clearSchemaType, createEnumSchemaType, createLiteralSchemaType, createMapSchemaType, createPrimitiveSchemaType, createSchemaAttribute, createSchemaAttributeFromTemplate, createSchemaTypeChoice, createSchemaTypeFromTemplate, createStructSchemaType, findSchemaAttributes, findSchemaType, findValidValueSet, getNestedAttributes, getSchemaAttributeByGUID, getSchemaAttributesByName, getSchemaTypeByGUID, getSchemaTypeByName, getSchemaTypeForElement, getSchemaTypeParent, getValidValueSetByName, removeSchemaAttribute, removeSchemaType, setupCalculatedValue, setupQueryTargetRelationship, setupSchemaType, updateQueryTargetRelationship, updateSchemaAttribute, updateSchemaTypepublic APIManagerClient(String serverName, String serverPlatformURLRoot, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public APIManagerClient(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public APIManagerClient(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public APIManagerClient(String serverName, String serverPlatformURLRoot, DataManagerRESTClient restClient, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversrestClient - client that issues the REST API callsmaxPageSize - maximum number of results supported by this serverauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public APIManagerClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public String createAPI(String userId, String apiManagerGUID, String apiManagerName, boolean apiManagerIsHome, APIProperties apiProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createAPI in interface APIManagerInterfaceuserId - calling userapiManagerGUID - unique identifier of software server capability representing the API managerapiManagerName - unique name of software server capability representing the API managerapiManagerIsHome - should the API be marked as owned by the API manager so others can not update?apiProperties - properties to storeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createAPIFromTemplate(String userId, String apiManagerGUID, String apiManagerName, boolean apiManagerIsHome, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createAPIFromTemplate in interface APIManagerInterfaceuserId - calling userapiManagerGUID - unique identifier of software server capability representing the API managerapiManagerName - unique name of software server capability representing the API managerapiManagerIsHome - should the API be marked as owned by the API manager so others can not update?templateGUID - unique identifier of the metadata element to copytemplateProperties - properties that override the templateInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updateAPI(String userId, String apiManagerGUID, String apiManagerName, String apiGUID, boolean isMergeUpdate, APIProperties apiProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateAPI in interface APIManagerInterfaceuserId - calling userapiManagerGUID - unique identifier of software server capability representing the API managerapiManagerName - unique name of software server capability representing the API managerapiGUID - unique identifier of the metadata element to updateisMergeUpdate - are unspecified properties unchanged (true) or removed?apiProperties - new properties for this elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void publishAPI(String userId, String apiGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
publishAPI in interface APIManagerInterfaceuserId - calling userapiGUID - unique identifier of the metadata element to publishInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void withdrawAPI(String userId, String apiGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
withdrawAPI in interface APIManagerInterfaceuserId - calling userapiGUID - unique identifier of the metadata element to withdrawInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeAPI(String userId, String apiManagerGUID, String apiManagerName, String apiGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeAPI in interface APIManagerInterfaceuserId - calling userapiManagerGUID - unique identifier of software server capability representing the API managerapiManagerName - unique name of software server capability representing the API managerapiGUID - unique identifier of the metadata element to removequalifiedName - unique name of the metadata element to removeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<APIElement> findAPIs(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findAPIs in interface APIManagerInterfaceuserId - calling usersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<APIElement> getAPIsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getAPIsByName in interface APIManagerInterfaceuserId - calling username - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<APIElement> getAPIsForAPIManager(String userId, String apiManagerGUID, String apiManagerName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getAPIsForAPIManager in interface APIManagerInterfaceuserId - calling userapiManagerGUID - unique identifier of software server capability representing the api managerapiManagerName - unique name of software server capability representing the api managerstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public APIElement getAPIByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getAPIByGUID in interface APIManagerInterfaceuserId - calling userguid - unique identifier of the requested metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createAPIOperation(String userId, String apiManagerGUID, String apiManagerName, boolean apiManagerIsHome, String apiGUID, APIOperationProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createAPIOperation in interface APIManagerInterfaceuserId - calling userapiManagerGUID - unique identifier of software server capability representing the API managerapiManagerName - unique name of software server capability representing the API managerapiManagerIsHome - should the API operation be marked as owned by the API manager so others can not update?apiGUID - unique identifier of the api where the API operation is locatedproperties - properties about the API operationInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createAPIOperationFromTemplate(String userId, String apiManagerGUID, String apiManagerName, boolean apiManagerIsHome, String templateGUID, String apiGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createAPIOperationFromTemplate in interface APIManagerInterfaceuserId - calling userapiManagerGUID - unique identifier of software server capability representing the API managerapiManagerName - unique name of software server capability representing the API managerapiManagerIsHome - should the API operation be marked as owned by the API manager so others can not update?templateGUID - unique identifier of the metadata element to copyapiGUID - unique identifier of the api where the API operation is locatedtemplateProperties - properties that override the templateInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updateAPIOperation(String userId, String apiManagerGUID, String apiManagerName, String apiOperationGUID, boolean isMergeUpdate, APIOperationProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateAPIOperation in interface APIManagerInterfaceuserId - calling userapiManagerGUID - unique identifier of software server capability representing the API managerapiManagerName - unique name of software server capability representing the API managerapiOperationGUID - unique identifier of the metadata element to updateisMergeUpdate - are unspecified properties unchanged (true) or removed?properties - new properties for the metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeAPIOperation(String userId, String apiManagerGUID, String apiManagerName, String apiOperationGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeAPIOperation in interface APIManagerInterfaceuserId - calling userapiManagerGUID - unique identifier of software server capability representing the API managerapiManagerName - unique name of software server capability representing the API managerapiOperationGUID - unique identifier of the metadata element to removequalifiedName - unique name of the metadata element to removeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<APIOperationElement> findAPIOperations(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findAPIOperations in interface APIManagerInterfaceuserId - calling usersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<APIOperationElement> getOperationsForAPI(String userId, String apiGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getOperationsForAPI in interface APIManagerInterfaceuserId - calling userapiGUID - unique identifier of the api to querystartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<APIOperationElement> getAPIOperationsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getAPIOperationsByName in interface APIManagerInterfaceuserId - calling username - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public APIOperationElement getAPIOperationByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getAPIOperationByGUID in interface APIManagerInterfaceuserId - calling userguid - unique identifier of the requested metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createAPIParameterList(String userId, String apiManagerGUID, String apiManagerName, boolean apiManagerIsHome, String apiOperationGUID, APIParameterListType parameterListType, APIParameterListProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createAPIParameterList in interface APIManagerInterfaceuserId - calling userapiManagerGUID - unique identifier of software server capability representing the callerapiManagerName - unique name of software server capability representing the callerapiManagerIsHome - should the API operation be marked as owned by the API manager so others can not update?apiOperationGUID - unique identifier of an APIOperationparameterListType - is this is a header, request of responseproperties - properties about the API parameter listInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createAPIParameterListFromTemplate(String userId, String apiManagerGUID, String apiManagerName, boolean apiManagerIsHome, String templateGUID, String apiOperationGUID, APIParameterListType parameterListType, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createAPIParameterListFromTemplate in interface APIManagerInterfaceuserId - calling userapiManagerGUID - unique identifier of software server capability representing the callerapiManagerName - unique name of software server capability representing the callerapiManagerIsHome - should the API operation be marked as owned by the API manager so others can not update?templateGUID - unique identifier of the metadata element to copyapiOperationGUID - unique identifier of the API Operation where the API Parameter List is locatedparameterListType - is this is a header, request of responsetemplateProperties - properties that override the templateInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updateAPIParameterList(String userId, String apiManagerGUID, String apiManagerName, String apiParameterListGUID, boolean isMergeUpdate, APIParameterListProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateAPIParameterList in interface APIManagerInterfaceuserId - calling userapiManagerGUID - unique identifier of software server capability representing the callerapiManagerName - unique name of software server capability representing the callerapiParameterListGUID - unique identifier of the metadata element to updateisMergeUpdate - are unspecified properties unchanged (true) or removed?properties - new properties for the metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeAPIParameterList(String userId, String apiManagerGUID, String apiManagerName, String apiParameterListGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeAPIParameterList in interface APIManagerInterfaceuserId - calling userapiManagerGUID - unique identifier of software server capability representing the callerapiManagerName - unique name of software server capability representing the callerapiParameterListGUID - unique identifier of the metadata element to removequalifiedName - unique name of the metadata element to removeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<APIParameterListElement> findAPIParameterLists(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findAPIParameterLists in interface APIManagerInterfaceuserId - calling usersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<APIParameterListElement> getParameterListsForAPIOperation(String userId, String apiOperationGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getParameterListsForAPIOperation in interface APIManagerInterfaceuserId - calling userapiOperationGUID - unique identifier of the API Operation to querystartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<APIParameterListElement> getAPIParameterListsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getAPIParameterListsByName in interface APIManagerInterfaceuserId - calling username - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public APIParameterListElement getAPIParameterListByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getAPIParameterListByGUID in interface APIManagerInterfaceuserId - calling userguid - unique identifier of the requested metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.