@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") @Beta public class ActivationApi extends AbstractOpenApiService
apiClient
Constructor and Description |
---|
ActivationApi(ApiClient apiClient)
Instantiates this API class to invoke operations on the Rule Authoring API for Cloud Foundry based on a given
ApiClient . |
ActivationApi(HttpDestinationProperties httpDestination)
Instantiates this API class to invoke operations on the Rule Authoring API for Cloud Foundry.
|
Modifier and Type | Method and Description |
---|---|
OpenApiResponse |
activateProject(String id)
Activate a project
|
OpenApiResponse |
activateRuleService(String id)
Activate a rule service
|
public ActivationApi(@Nonnull HttpDestinationProperties httpDestination)
httpDestination
- The destination that API should be used with@Nonnull public OpenApiResponse activateProject(@Nonnull String id) throws OpenApiRequestException
Activate a project
Activates a project with the specified project ID and all its entities such as data objects, rules, rulesets and rule services.
204 - Activated project with all its containing business rule entities successfully
400 - Bad Request. Project validation failed. Can not activate project.
401 - Unauthorized. User does not have required authorization to execute this request.
404 - Object not found. The project you are trying to activate does not exist.
id
- ID of the project whose content should be activated. The ID is 32 characters long.OpenApiRequestException
- if an error occurs while attempting to invoke the API@Nonnull public OpenApiResponse activateRuleService(@Nonnull String id) throws OpenApiRequestException
Activate a rule service
Activates a rule service with the specified rule set ID and all its entities such as data objects, rules and rulesets within the project.
204 - Activated Rule Service with all its containing business rule entities successfully
400 - Bad Request. Rule Service validation failed. Can not activate rule service.
401 - Unauthorized. User does not have required authorization to execute this request.
404 - Object not found. The rule service you are trying to activate does not exist.
id
- ID of the rule service whose content should be activated. The ID is 32 characters long.OpenApiRequestException
- if an error occurs while attempting to invoke the APICopyright © 2021 SAP SE. All rights reserved.