Class API
java.lang.Object
com.aeontronix.enhancedmule.tools.anypoint.AnypointObject<Environment>
com.aeontronix.enhancedmule.tools.anypoint.api.API
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.aeontronix.enhancedmule.tools.anypoint.AnypointObject
client, httpHelper, json, jsonHelper, parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic APIcreate(@NotNull Environment environment, @NotNull APISpec apiSpec, boolean mule4, @Nullable String implementationUrl, String consumerUrl, @Nullable String label, @NotNull API.Type type) static APIcreate(@NotNull Environment environment, @NotNull APISpec apiSpec, @Nullable String label, Map<String, Object> implementationUrlJson, String consumerUrl) voidcreatePolicy(PolicyDescriptor policyDescriptor) createSLATier(String name, String description, boolean autoApprove, List<SLATierLimits> limits) voiddelete()voidfindContract(ClientApplication clientApplication) findPolicyByAsset(String groupId, String assetId, String assetVersion) findSLATier(@NotNull String name) getId()intgetOrder()@NotNull StringgetUrl()refresh()requestAPIAccess(ClientApplication clientApplication) requestAPIAccess(ClientApplication clientApplication, SLATier tier) voidsetAssetId(String assetId) voidsetAssetVersion(String assetVersion) voidsetAutodiscoveryInstanceName(String autodiscoveryInstanceName) voidsetEndpoint(APIEndpoint endpoint) voidsetEndpointUri(String endpointUri) voidsetEnvironmentId(String environmentId) voidsetGroupId(String groupId) voidvoidsetInstanceLabel(String instanceLabel) voidsetMasterOrganizationId(String masterOrganizationId) voidsetOrder(int order) voidsetOrganizationId(String organizationId) voidsetProductVersion(String productVersion) toString()voidupdateImplementationUrl(String implementationUrl, boolean mule4, API.Type type) voidupdateImplementationUrl(Map<String, Object> consumerUrlJson) updateVersion(String version)
-
Constructor Details
-
API
public API() -
API
-
-
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
-
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
-
getUrl
-
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
-