Class API
java.lang.Object
com.aeontronix.enhancedmule.tools.anypoint.AnypointObject<Environment>
com.aeontronix.enhancedmule.tools.api.API
- All Implemented Interfaces:
Serializable
public class API extends AnypointObject<Environment>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAPI.Type -
Field Summary
Fields inherited from class com.aeontronix.enhancedmule.tools.anypoint.AnypointObject
client, httpHelper, json, jsonHelper, parent -
Constructor Summary
Constructors Constructor Description API()API(Environment environment) -
Method Summary
-
Constructor Details
-
Method Details
-
getUriPath
-
createPolicy
- Throws:
HttpException
-
requestAPIAccess
- Throws:
HttpException
-
requestAPIAccess
public APIContract requestAPIAccess(ClientApplication clientApplication, SLATier tier) throws HttpException- Throws:
HttpException
-
findContract
public APIContract findContract(ClientApplication clientApplication) throws HttpException, NotFoundException- Throws:
HttpExceptionNotFoundException
-
findSLATiers
- Throws:
HttpException
-
findSLATier
- Throws:
HttpExceptionNotFoundException
-
createSLATier
public SLATier createSLATier(String name, String description, boolean autoApprove, List<SLATierLimits> limits) throws HttpException- Throws:
HttpException
-
updateConsumerUrl
- Throws:
HttpException
-
updateImplementationUrl
public void updateImplementationUrl(String implementationUrl, boolean mule4, API.Type type) throws HttpException- Throws:
HttpException
-
updateImplementationUrl
- Throws:
HttpException
-
create
public static API create(@NotNull @NotNull Environment environment, @NotNull @NotNull APISpec apiSpec, boolean mule4, @Nullable @Nullable String implementationUrl, String consumerUrl, @Nullable @Nullable String label, @NotNull @NotNull API.Type type) throws HttpException- Throws:
HttpException
-
create
public static API create(@NotNull @NotNull Environment environment, @NotNull @NotNull APISpec apiSpec, @Nullable @Nullable String label, Map<String,Object> implementationUrlJson, String consumerUrl) throws HttpException- Throws:
HttpException
-
refresh
- Throws:
HttpException
-
findPolicies
- Throws:
HttpException
-
findPolicyByAsset
public Policy findPolicyByAsset(String groupId, String assetId, String assetVersion) throws HttpException, NotFoundException- Throws:
HttpExceptionNotFoundException
-
findContracts
- Throws:
HttpException
-
getId
-
setId
-
getAssetVersion
-
setAssetVersion
-
getProductVersion
-
setProductVersion
-
getEnvironmentId
-
setEnvironmentId
-
getInstanceLabel
-
setInstanceLabel
-
getOrder
public int getOrder() -
setOrder
public void setOrder(int order) -
getMasterOrganizationId
-
setMasterOrganizationId
-
getOrganizationId
-
setOrganizationId
-
getGroupId
-
setGroupId
-
getAssetId
-
setAssetId
-
getAutodiscoveryInstanceName
-
setAutodiscoveryInstanceName
-
getEndpointUri
-
setEndpointUri
-
getEndpoint
-
setEndpoint
-
delete
- Throws:
HttpException
-
deletePolicies
- Throws:
HttpException
-
updateVersion
- Throws:
HttpException
-
toString
-