@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-02-10T11:07:35.698-06:00[America/Chicago]") @Component(value="org.openapitools.client.api.PolicyApi") public class PolicyApi extends Object
Constructor and Description |
---|
PolicyApi() |
PolicyApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
void |
activatePolicy(String policyId)
Activate a Policy
Activates a policy
|
void |
activatePolicyRule(String policyId,
String ruleId)
Activate a Policy Rule
Activates a policy rule
|
Policy |
clonePolicy(String policyId)
Clone an existing policy
Clones an existing policy
|
PagedList |
clonePolicyWithPaginationInfo(String policyId)
Clone an existing policy
Clones an existing policy
|
<T> T |
createPolicy(Class<?> T,
Policy policy,
Boolean activate)
Create a Policy
Creates a policy
|
Policy |
createPolicy(Policy policy,
Boolean activate)
Create a Policy
Creates a policy
|
<T> T |
createPolicyRule(Class<?> T,
String policyId,
PolicyRule policyRule)
Create a Policy Rule
Creates a policy rule
|
PolicyRule |
createPolicyRule(String policyId,
PolicyRule policyRule)
Create a Policy Rule
Creates a policy rule
|
PagedList |
createPolicyRuleWithPaginationInfo(String policyId,
PolicyRule policyRule)
Create a Policy Rule
Creates a policy rule
|
PagedList |
createPolicyWithPaginationInfo(Policy policy,
Boolean activate)
Create a Policy
Creates a policy
|
void |
deactivatePolicy(String policyId)
Deactivate a Policy
Deactivates a policy
|
void |
deactivatePolicyRule(String policyId,
String ruleId)
Deactivate a Policy Rule
Deactivates a policy rule
|
void |
deletePolicy(String policyId)
Delete a Policy
Deletes a policy
|
void |
deletePolicyRule(String policyId,
String ruleId)
Delete a Policy Rule
Deletes a policy rule
|
ApiClient |
getApiClient() |
Policy |
getPolicy(String policyId,
String expand)
Retrieve a Policy
Retrieves a policy
|
PolicyRule |
getPolicyRule(String policyId,
String ruleId)
Retrieve a Policy Rule
Retrieves a policy rule
|
PagedList |
getPolicyRuleWithPaginationInfo(String policyId,
String ruleId)
Retrieve a Policy Rule
Retrieves a policy rule
|
PagedList |
getPolicyWithPaginationInfo(String policyId,
String expand)
Retrieve a Policy
Retrieves a policy
|
List<Policy> |
listPolicies(String type,
String status,
String expand)
List all Policies
Lists all policies with the specified type
|
PagedList |
listPoliciesWithPaginationInfo(String type,
String status,
String expand)
List all Policies
Lists all policies with the specified type
|
List<PolicyRule> |
listPolicyRules(String policyId)
List all Policy Rules
Lists all policy rules
|
PagedList |
listPolicyRulesWithPaginationInfo(String policyId)
List all Policy Rules
Lists all policy rules
|
<T> T |
replacePolicy(Class<?> T,
String policyId,
Policy policy)
Replace a Policy
Replaces a policy
|
Policy |
replacePolicy(String policyId,
Policy policy)
Replace a Policy
Replaces a policy
|
<T> T |
replacePolicyRule(Class<?> T,
String policyId,
String ruleId,
PolicyRule policyRule)
Replace a Policy Rule
Replaces a policy rules
|
PolicyRule |
replacePolicyRule(String policyId,
String ruleId,
PolicyRule policyRule)
Replace a Policy Rule
Replaces a policy rules
|
PagedList |
replacePolicyRuleWithPaginationInfo(String policyId,
String ruleId,
PolicyRule policyRule)
Replace a Policy Rule
Replaces a policy rules
|
PagedList |
replacePolicyWithPaginationInfo(String policyId,
Policy policy)
Replace a Policy
Replaces a policy
|
void |
setApiClient(ApiClient apiClient) |
public PolicyApi()
@Autowired public PolicyApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public void activatePolicy(String policyId) throws org.springframework.web.client.RestClientException
204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic void activatePolicyRule(String policyId, String ruleId) throws org.springframework.web.client.RestClientException
204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)ruleId
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic Policy clonePolicy(String policyId) throws org.springframework.web.client.RestClientException
200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PagedList clonePolicyWithPaginationInfo(String policyId) throws org.springframework.web.client.RestClientException
200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic Policy createPolicy(Policy policy, Boolean activate) throws org.springframework.web.client.RestClientException
200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
policy
- (required)activate
- (optional, default to true)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic <T> T createPolicy(Class<?> T, Policy policy, Boolean activate) throws org.springframework.web.client.RestClientException
200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
T
- (required) - the assignable return typepolicy
- (required)activate
- (optional, default to true)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PagedList createPolicyWithPaginationInfo(Policy policy, Boolean activate) throws org.springframework.web.client.RestClientException
200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
policy
- (required)activate
- (optional, default to true)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PolicyRule createPolicyRule(String policyId, PolicyRule policyRule) throws org.springframework.web.client.RestClientException
200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)policyRule
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic <T> T createPolicyRule(Class<?> T, String policyId, PolicyRule policyRule) throws org.springframework.web.client.RestClientException
200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
T
- (required) - the assignable return typepolicyId
- (required)policyRule
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PagedList createPolicyRuleWithPaginationInfo(String policyId, PolicyRule policyRule) throws org.springframework.web.client.RestClientException
200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)policyRule
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic void deactivatePolicy(String policyId) throws org.springframework.web.client.RestClientException
204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic void deactivatePolicyRule(String policyId, String ruleId) throws org.springframework.web.client.RestClientException
204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)ruleId
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic void deletePolicy(String policyId) throws org.springframework.web.client.RestClientException
204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic void deletePolicyRule(String policyId, String ruleId) throws org.springframework.web.client.RestClientException
204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)ruleId
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic Policy getPolicy(String policyId, String expand) throws org.springframework.web.client.RestClientException
200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)expand
- (optional, default to )org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PagedList getPolicyWithPaginationInfo(String policyId, String expand) throws org.springframework.web.client.RestClientException
200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)expand
- (optional, default to )org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PolicyRule getPolicyRule(String policyId, String ruleId) throws org.springframework.web.client.RestClientException
200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)ruleId
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PagedList getPolicyRuleWithPaginationInfo(String policyId, String ruleId) throws org.springframework.web.client.RestClientException
200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)ruleId
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic List<Policy> listPolicies(String type, String status, String expand) throws org.springframework.web.client.RestClientException
200 - Success
403 - Forbidden
429 - Too Many Requests
type
- (required)status
- (optional)expand
- (optional, default to )org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PagedList listPoliciesWithPaginationInfo(String type, String status, String expand) throws org.springframework.web.client.RestClientException
200 - Success
403 - Forbidden
429 - Too Many Requests
type
- (required)status
- (optional)expand
- (optional, default to )org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic List<PolicyRule> listPolicyRules(String policyId) throws org.springframework.web.client.RestClientException
200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PagedList listPolicyRulesWithPaginationInfo(String policyId) throws org.springframework.web.client.RestClientException
200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic Policy replacePolicy(String policyId, Policy policy) throws org.springframework.web.client.RestClientException
200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)policy
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic <T> T replacePolicy(Class<?> T, String policyId, Policy policy) throws org.springframework.web.client.RestClientException
200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
T
- (required) - the assignable return typepolicyId
- (required)policy
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PagedList replacePolicyWithPaginationInfo(String policyId, Policy policy) throws org.springframework.web.client.RestClientException
200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)policy
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PolicyRule replacePolicyRule(String policyId, String ruleId, PolicyRule policyRule) throws org.springframework.web.client.RestClientException
200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)ruleId
- (required)policyRule
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic <T> T replacePolicyRule(Class<?> T, String policyId, String ruleId, PolicyRule policyRule) throws org.springframework.web.client.RestClientException
200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
T
- (required) - the assignable return typepolicyId
- (required)ruleId
- (required)policyRule
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APIpublic PagedList replacePolicyRuleWithPaginationInfo(String policyId, String ruleId, PolicyRule policyRule) throws org.springframework.web.client.RestClientException
200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
policyId
- (required)ruleId
- (required)policyRule
- (required)org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the APICopyright © 2017–2023 Okta. All rights reserved.