Class PolicyApi

java.lang.Object
org.openapitools.client.api.PolicyApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-04-19T09:13:44.263607-05:00[America/Chicago]") @Component("org.openapitools.client.api.PolicyApi") public class PolicyApi extends Object
  • Constructor Details

    • PolicyApi

      public PolicyApi()
    • PolicyApi

      @Autowired public PolicyApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • activatePolicy

      public void activatePolicy(String policyId) throws org.springframework.web.client.RestClientException
      Activate a Policy Activates a policy

      204 - No Content

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • activatePolicyWithHttpInfo

      public org.springframework.http.ResponseEntity<Void> activatePolicyWithHttpInfo(String policyId) throws org.springframework.web.client.RestClientException
      Activate a Policy Activates a policy

      204 - No Content

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      Returns:
      ResponseEntity<Void>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • activatePolicyRule

      public void activatePolicyRule(String policyId, String ruleId) throws org.springframework.web.client.RestClientException
      Activate a Policy Rule Activates a policy rule

      204 - No Content

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      ruleId - (required)
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • activatePolicyRuleWithHttpInfo

      public org.springframework.http.ResponseEntity<Void> activatePolicyRuleWithHttpInfo(String policyId, String ruleId) throws org.springframework.web.client.RestClientException
      Activate a Policy Rule Activates a policy rule

      204 - No Content

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      ruleId - (required)
      Returns:
      ResponseEntity<Void>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • clonePolicy

      public Policy clonePolicy(String policyId) throws org.springframework.web.client.RestClientException
      Clone an existing policy Clones an existing policy

      200 - Success

      400 - Bad Request

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      Returns:
      Policy
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • clonePolicyWithHttpInfo

      public org.springframework.http.ResponseEntity<Policy> clonePolicyWithHttpInfo(String policyId) throws org.springframework.web.client.RestClientException
      Clone an existing policy Clones an existing policy

      200 - Success

      400 - Bad Request

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      Returns:
      ResponseEntity<Policy>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • clonePolicyWithPaginationInfo

      public PagedList clonePolicyWithPaginationInfo(String policyId) throws org.springframework.web.client.RestClientException
      Clone an existing policy Clones an existing policy

      200 - Success

      400 - Bad Request

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      Returns:
      ResponseEntity<Policy>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • createPolicy

      public Policy createPolicy(Policy policy, Boolean activate) throws org.springframework.web.client.RestClientException
      Create a Policy Creates a policy

      200 - Success

      400 - Bad Request

      403 - Forbidden

      429 - Too Many Requests

      Parameters:
      policy - (required)
      activate - (optional, default to true)
      Returns:
      Policy
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • createPolicy

      public <T> T createPolicy(Class<?> T, Policy policy, Boolean activate) throws org.springframework.web.client.RestClientException
      Create a Policy Creates a policy

      200 - Success

      400 - Bad Request

      403 - Forbidden

      429 - Too Many Requests

      Parameters:
      T - (required) - the assignable return type
      policy - (required)
      activate - (optional, default to true)
      Returns:
      T instance
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • createPolicyWithHttpInfo

      public org.springframework.http.ResponseEntity<Policy> createPolicyWithHttpInfo(Policy policy, Boolean activate) throws org.springframework.web.client.RestClientException
      Create a Policy Creates a policy

      200 - Success

      400 - Bad Request

      403 - Forbidden

      429 - Too Many Requests

      Parameters:
      policy - (required)
      activate - (optional, default to true)
      Returns:
      ResponseEntity<Policy>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • createPolicyWithPaginationInfo

      public PagedList createPolicyWithPaginationInfo(Policy policy, Boolean activate) throws org.springframework.web.client.RestClientException
      Create a Policy Creates a policy

      200 - Success

      400 - Bad Request

      403 - Forbidden

      429 - Too Many Requests

      Parameters:
      policy - (required)
      activate - (optional, default to true)
      Returns:
      ResponseEntity<Policy>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • createPolicyRule

      public PolicyRule createPolicyRule(String policyId, PolicyRule policyRule) throws org.springframework.web.client.RestClientException
      Create a Policy Rule Creates a policy rule

      200 - Success

      400 - Bad Request

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      policyRule - (required)
      Returns:
      PolicyRule
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • createPolicyRule

      public <T> T createPolicyRule(Class<?> T, String policyId, PolicyRule policyRule) throws org.springframework.web.client.RestClientException
      Create a Policy Rule Creates a policy rule

      200 - Success

      400 - Bad Request

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      T - (required) - the assignable return type
      policyId - (required)
      policyRule - (required)
      Returns:
      T instance
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • createPolicyRuleWithHttpInfo

      public org.springframework.http.ResponseEntity<PolicyRule> createPolicyRuleWithHttpInfo(String policyId, PolicyRule policyRule) throws org.springframework.web.client.RestClientException
      Create a Policy Rule Creates a policy rule

      200 - Success

      400 - Bad Request

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      policyRule - (required)
      Returns:
      ResponseEntity<PolicyRule>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • createPolicyRuleWithPaginationInfo

      public PagedList createPolicyRuleWithPaginationInfo(String policyId, PolicyRule policyRule) throws org.springframework.web.client.RestClientException
      Create a Policy Rule Creates a policy rule

      200 - Success

      400 - Bad Request

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      policyRule - (required)
      Returns:
      ResponseEntity<PolicyRule>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • deactivatePolicy

      public void deactivatePolicy(String policyId) throws org.springframework.web.client.RestClientException
      Deactivate a Policy Deactivates a policy

      204 - No Content

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • deactivatePolicyWithHttpInfo

      public org.springframework.http.ResponseEntity<Void> deactivatePolicyWithHttpInfo(String policyId) throws org.springframework.web.client.RestClientException
      Deactivate a Policy Deactivates a policy

      204 - No Content

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      Returns:
      ResponseEntity<Void>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • deactivatePolicyRule

      public void deactivatePolicyRule(String policyId, String ruleId) throws org.springframework.web.client.RestClientException
      Deactivate a Policy Rule Deactivates a policy rule

      204 - No Content

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      ruleId - (required)
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • deactivatePolicyRuleWithHttpInfo

      public org.springframework.http.ResponseEntity<Void> deactivatePolicyRuleWithHttpInfo(String policyId, String ruleId) throws org.springframework.web.client.RestClientException
      Deactivate a Policy Rule Deactivates a policy rule

      204 - No Content

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      ruleId - (required)
      Returns:
      ResponseEntity<Void>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • deletePolicy

      public void deletePolicy(String policyId) throws org.springframework.web.client.RestClientException
      Delete a Policy Deletes a policy

      204 - No Content

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • deletePolicyWithHttpInfo

      public org.springframework.http.ResponseEntity<Void> deletePolicyWithHttpInfo(String policyId) throws org.springframework.web.client.RestClientException
      Delete a Policy Deletes a policy

      204 - No Content

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      Returns:
      ResponseEntity<Void>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • deletePolicyRule

      public void deletePolicyRule(String policyId, String ruleId) throws org.springframework.web.client.RestClientException
      Delete a Policy Rule Deletes a policy rule

      204 - No Content

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      ruleId - (required)
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • deletePolicyRuleWithHttpInfo

      public org.springframework.http.ResponseEntity<Void> deletePolicyRuleWithHttpInfo(String policyId, String ruleId) throws org.springframework.web.client.RestClientException
      Delete a Policy Rule Deletes a policy rule

      204 - No Content

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      ruleId - (required)
      Returns:
      ResponseEntity<Void>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • getPolicy

      public Policy getPolicy(String policyId, String expand) throws org.springframework.web.client.RestClientException
      Retrieve a Policy Retrieves a policy

      200 - Success

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      expand - (optional, default to )
      Returns:
      Policy
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • getPolicyWithHttpInfo

      public org.springframework.http.ResponseEntity<Policy> getPolicyWithHttpInfo(String policyId, String expand) throws org.springframework.web.client.RestClientException
      Retrieve a Policy Retrieves a policy

      200 - Success

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      expand - (optional, default to )
      Returns:
      ResponseEntity<Policy>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • getPolicyWithPaginationInfo

      public PagedList getPolicyWithPaginationInfo(String policyId, String expand) throws org.springframework.web.client.RestClientException
      Retrieve a Policy Retrieves a policy

      200 - Success

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      expand - (optional, default to )
      Returns:
      ResponseEntity<Policy>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • getPolicyRule

      public PolicyRule getPolicyRule(String policyId, String ruleId) throws org.springframework.web.client.RestClientException
      Retrieve a Policy Rule Retrieves a policy rule

      200 - Success

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      ruleId - (required)
      Returns:
      PolicyRule
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • getPolicyRuleWithHttpInfo

      public org.springframework.http.ResponseEntity<PolicyRule> getPolicyRuleWithHttpInfo(String policyId, String ruleId) throws org.springframework.web.client.RestClientException
      Retrieve a Policy Rule Retrieves a policy rule

      200 - Success

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      ruleId - (required)
      Returns:
      ResponseEntity<PolicyRule>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • getPolicyRuleWithPaginationInfo

      public PagedList getPolicyRuleWithPaginationInfo(String policyId, String ruleId) throws org.springframework.web.client.RestClientException
      Retrieve a Policy Rule Retrieves a policy rule

      200 - Success

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      ruleId - (required)
      Returns:
      ResponseEntity<PolicyRule>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • listPolicies

      public List<Policy> listPolicies(String type, String status, String expand) throws org.springframework.web.client.RestClientException
      List all Policies Lists all policies with the specified type

      200 - Success

      403 - Forbidden

      429 - Too Many Requests

      Parameters:
      type - (required)
      status - (optional)
      expand - (optional, default to )
      Returns:
      List<Policy>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • listPoliciesWithHttpInfo

      public org.springframework.http.ResponseEntity<List<Policy>> listPoliciesWithHttpInfo(String type, String status, String expand) throws org.springframework.web.client.RestClientException
      List all Policies Lists all policies with the specified type

      200 - Success

      403 - Forbidden

      429 - Too Many Requests

      Parameters:
      type - (required)
      status - (optional)
      expand - (optional, default to )
      Returns:
      ResponseEntity<List<Policy>>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • listPoliciesWithPaginationInfo

      public PagedList listPoliciesWithPaginationInfo(String type, String status, String expand) throws org.springframework.web.client.RestClientException
      List all Policies Lists all policies with the specified type

      200 - Success

      403 - Forbidden

      429 - Too Many Requests

      Parameters:
      type - (required)
      status - (optional)
      expand - (optional, default to )
      Returns:
      ResponseEntity<List<Policy>>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • listPolicyRules

      public List<PolicyRule> listPolicyRules(String policyId) throws org.springframework.web.client.RestClientException
      List all Policy Rules Lists all policy rules

      200 - Success

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      Returns:
      List<PolicyRule>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • listPolicyRulesWithHttpInfo

      public org.springframework.http.ResponseEntity<List<PolicyRule>> listPolicyRulesWithHttpInfo(String policyId) throws org.springframework.web.client.RestClientException
      List all Policy Rules Lists all policy rules

      200 - Success

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      Returns:
      ResponseEntity<List<PolicyRule>>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • listPolicyRulesWithPaginationInfo

      public PagedList listPolicyRulesWithPaginationInfo(String policyId) throws org.springframework.web.client.RestClientException
      List all Policy Rules Lists all policy rules

      200 - Success

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      Returns:
      ResponseEntity<List<PolicyRule>>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • replacePolicy

      public Policy replacePolicy(String policyId, Policy policy) throws org.springframework.web.client.RestClientException
      Replace a Policy Replaces a policy

      200 - Success

      400 - Bad Request

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      policy - (required)
      Returns:
      Policy
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • replacePolicy

      public <T> T replacePolicy(Class<?> T, String policyId, Policy policy) throws org.springframework.web.client.RestClientException
      Replace a Policy Replaces a policy

      200 - Success

      400 - Bad Request

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      T - (required) - the assignable return type
      policyId - (required)
      policy - (required)
      Returns:
      T instance
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • replacePolicyWithHttpInfo

      public org.springframework.http.ResponseEntity<Policy> replacePolicyWithHttpInfo(String policyId, Policy policy) throws org.springframework.web.client.RestClientException
      Replace a Policy Replaces a policy

      200 - Success

      400 - Bad Request

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      policy - (required)
      Returns:
      ResponseEntity<Policy>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • replacePolicyWithPaginationInfo

      public PagedList replacePolicyWithPaginationInfo(String policyId, Policy policy) throws org.springframework.web.client.RestClientException
      Replace a Policy Replaces a policy

      200 - Success

      400 - Bad Request

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      policy - (required)
      Returns:
      ResponseEntity<Policy>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • replacePolicyRule

      public PolicyRule replacePolicyRule(String policyId, String ruleId, PolicyRule policyRule) throws org.springframework.web.client.RestClientException
      Replace a Policy Rule Replaces a policy rules

      200 - Success

      400 - Bad Request

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      ruleId - (required)
      policyRule - (required)
      Returns:
      PolicyRule
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • replacePolicyRule

      public <T> T replacePolicyRule(Class<?> T, String policyId, String ruleId, PolicyRule policyRule) throws org.springframework.web.client.RestClientException
      Replace a Policy Rule Replaces a policy rules

      200 - Success

      400 - Bad Request

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      T - (required) - the assignable return type
      policyId - (required)
      ruleId - (required)
      policyRule - (required)
      Returns:
      T instance
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • replacePolicyRuleWithHttpInfo

      public org.springframework.http.ResponseEntity<PolicyRule> replacePolicyRuleWithHttpInfo(String policyId, String ruleId, PolicyRule policyRule) throws org.springframework.web.client.RestClientException
      Replace a Policy Rule Replaces a policy rules

      200 - Success

      400 - Bad Request

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      ruleId - (required)
      policyRule - (required)
      Returns:
      ResponseEntity<PolicyRule>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API
    • replacePolicyRuleWithPaginationInfo

      public PagedList replacePolicyRuleWithPaginationInfo(String policyId, String ruleId, PolicyRule policyRule) throws org.springframework.web.client.RestClientException
      Replace a Policy Rule Replaces a policy rules

      200 - Success

      400 - Bad Request

      403 - Forbidden

      404 - Not Found

      429 - Too Many Requests

      Parameters:
      policyId - (required)
      ruleId - (required)
      policyRule - (required)
      Returns:
      ResponseEntity<PolicyRule>
      Throws:
      org.springframework.web.client.RestClientException - if an error occurs while attempting to invoke the API