@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-07-14T17:07:26.321-05:00[America/Chicago]") 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 |
activatePolicy(String policyId,
Map<String,String> additionalHeaders)
Activate a Policy
Activates a policy
|
void |
activatePolicyRule(String policyId,
String ruleId)
Activate a Policy Rule
Activates a Policy Rule identified by `policyId` and `ruleId`
|
void |
activatePolicyRule(String policyId,
String ruleId,
Map<String,String> additionalHeaders)
Activate a Policy Rule
Activates a Policy Rule identified by `policyId` and `ruleId`
|
Policy |
clonePolicy(String policyId)
Clone an existing Policy
Clones an existing policy
|
Policy |
clonePolicy(String policyId,
Map<String,String> additionalHeaders)
Clone an existing Policy
Clones an existing policy
|
Policy |
createPolicy(Policy policy,
Boolean activate)
Create a Policy
Creates a policy
|
Policy |
createPolicy(Policy policy,
Boolean activate,
Map<String,String> additionalHeaders)
Create a Policy
Creates a policy
|
PolicyRule |
createPolicyRule(String policyId,
PolicyRule policyRule)
Create a Policy Rule
Creates a policy rule
|
PolicyRule |
createPolicyRule(String policyId,
PolicyRule policyRule,
Map<String,String> additionalHeaders)
Create a Policy Rule
Creates a policy rule
|
void |
deactivatePolicy(String policyId)
Deactivate a Policy
Deactivates a policy
|
void |
deactivatePolicy(String policyId,
Map<String,String> additionalHeaders)
Deactivate a Policy
Deactivates a policy
|
void |
deactivatePolicyRule(String policyId,
String ruleId)
Deactivate a Policy Rule
Deactivates a Policy Rule identified by `policyId` and `ruleId`
|
void |
deactivatePolicyRule(String policyId,
String ruleId,
Map<String,String> additionalHeaders)
Deactivate a Policy Rule
Deactivates a Policy Rule identified by `policyId` and `ruleId`
|
void |
deletePolicy(String policyId)
Delete a Policy
Deletes a policy
|
void |
deletePolicy(String policyId,
Map<String,String> additionalHeaders)
Delete a Policy
Deletes a policy
|
void |
deletePolicyResourceMapping(String policyId,
String mappingId)
Delete a policy resource Mapping
Deletes the resource Mapping for a Policy identified by `policyId` and `mappingId`
|
void |
deletePolicyResourceMapping(String policyId,
String mappingId,
Map<String,String> additionalHeaders)
Delete a policy resource Mapping
Deletes the resource Mapping for a Policy identified by `policyId` and `mappingId`
|
void |
deletePolicyRule(String policyId,
String ruleId)
Delete a Policy Rule
Deletes a Policy Rule identified by `policyId` and `ruleId`
|
void |
deletePolicyRule(String policyId,
String ruleId,
Map<String,String> additionalHeaders)
Delete a Policy Rule
Deletes a Policy Rule identified by `policyId` and `ruleId`
|
ApiClient |
getApiClient() |
protected static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
Policy |
getPolicy(String policyId,
String expand)
Retrieve a Policy
Retrieves a policy
|
Policy |
getPolicy(String policyId,
String expand,
Map<String,String> additionalHeaders)
Retrieve a Policy
Retrieves a policy
|
PolicyMapping |
getPolicyMapping(String policyId,
String mappingId)
Retrieve a policy resource Mapping
Retrieves a resource Mapping for a Policy identified by `policyId` and `mappingId`
|
PolicyMapping |
getPolicyMapping(String policyId,
String mappingId,
Map<String,String> additionalHeaders)
Retrieve a policy resource Mapping
Retrieves a resource Mapping for a Policy identified by `policyId` and `mappingId`
|
PolicyRule |
getPolicyRule(String policyId,
String ruleId)
Retrieve a Policy Rule
Retrieves a policy rule
|
PolicyRule |
getPolicyRule(String policyId,
String ruleId,
Map<String,String> additionalHeaders)
Retrieve a Policy Rule
Retrieves a policy rule
|
List<Policy> |
listPolicies(String type,
String status,
String expand)
List all Policies
Lists all policies with the specified type
|
List<Policy> |
listPolicies(String type,
String status,
String expand,
Map<String,String> additionalHeaders)
List all Policies
Lists all policies with the specified type
|
List<Application> |
listPolicyApps(String policyId)
Deprecated.
|
List<Application> |
listPolicyApps(String policyId,
Map<String,String> additionalHeaders)
Deprecated.
|
List<PolicyMapping> |
listPolicyMappings(String policyId)
List all resources mapped to a Policy
Lists all resources mapped to a Policy identified by `policyId`
|
List<PolicyMapping> |
listPolicyMappings(String policyId,
Map<String,String> additionalHeaders)
List all resources mapped to a Policy
Lists all resources mapped to a Policy identified by `policyId`
|
List<PolicyRule> |
listPolicyRules(String policyId)
List all Policy Rules
Lists all policy rules
|
List<PolicyRule> |
listPolicyRules(String policyId,
Map<String,String> additionalHeaders)
List all Policy Rules
Lists all policy rules
|
PolicyMapping |
mapResourceToPolicy(String policyId,
PolicyMappingRequest policyMappingRequest)
Map a resource to a Policy
Maps a resource to a Policy identified by `policyId`
|
PolicyMapping |
mapResourceToPolicy(String policyId,
PolicyMappingRequest policyMappingRequest,
Map<String,String> additionalHeaders)
Map a resource to a Policy
Maps a resource to a Policy identified by `policyId`
|
Policy |
replacePolicy(String policyId,
Policy policy)
Replace a Policy
Replaces the properties of a Policy identified by `policyId`
|
Policy |
replacePolicy(String policyId,
Policy policy,
Map<String,String> additionalHeaders)
Replace a Policy
Replaces the properties of a Policy identified by `policyId`
|
PolicyRule |
replacePolicyRule(String policyId,
String ruleId,
PolicyRule policyRule)
Replace a Policy Rule
Replaces the properties for a Policy Rule identified by `policyId` and `ruleId`
|
PolicyRule |
replacePolicyRule(String policyId,
String ruleId,
PolicyRule policyRule,
Map<String,String> additionalHeaders)
Replace a Policy Rule
Replaces the properties for a Policy Rule identified by `policyId` and `ruleId`
|
void |
setApiClient(ApiClient apiClient) |
public PolicyApi()
public PolicyApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public void activatePolicy(String policyId) throws ApiException
policyId
- `id` of the Policy (required)ApiException
- if fails to make API callpublic void activatePolicy(String policyId, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void activatePolicyRule(String policyId, String ruleId) throws ApiException
policyId
- `id` of the Policy (required)ruleId
- `id` of the Policy Rule (required)ApiException
- if fails to make API callpublic void activatePolicyRule(String policyId, String ruleId, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)ruleId
- `id` of the Policy Rule (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic Policy clonePolicy(String policyId) throws ApiException
policyId
- `id` of the Policy (required)ApiException
- if fails to make API callpublic Policy clonePolicy(String policyId, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic Policy createPolicy(Policy policy, Boolean activate) throws ApiException
policy
- (required)activate
- (optional, default to true)ApiException
- if fails to make API callpublic Policy createPolicy(Policy policy, Boolean activate, Map<String,String> additionalHeaders) throws ApiException
policy
- (required)activate
- (optional, default to true)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic PolicyRule createPolicyRule(String policyId, PolicyRule policyRule) throws ApiException
policyId
- `id` of the Policy (required)policyRule
- (required)ApiException
- if fails to make API callpublic PolicyRule createPolicyRule(String policyId, PolicyRule policyRule, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)policyRule
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void deactivatePolicy(String policyId) throws ApiException
policyId
- `id` of the Policy (required)ApiException
- if fails to make API callpublic void deactivatePolicy(String policyId, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void deactivatePolicyRule(String policyId, String ruleId) throws ApiException
policyId
- `id` of the Policy (required)ruleId
- `id` of the Policy Rule (required)ApiException
- if fails to make API callpublic void deactivatePolicyRule(String policyId, String ruleId, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)ruleId
- `id` of the Policy Rule (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void deletePolicy(String policyId) throws ApiException
policyId
- `id` of the Policy (required)ApiException
- if fails to make API callpublic void deletePolicy(String policyId, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void deletePolicyResourceMapping(String policyId, String mappingId) throws ApiException
policyId
- `id` of the Policy (required)mappingId
- `id` of the policy resource Mapping (required)ApiException
- if fails to make API callpublic void deletePolicyResourceMapping(String policyId, String mappingId, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)mappingId
- `id` of the policy resource Mapping (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void deletePolicyRule(String policyId, String ruleId) throws ApiException
policyId
- `id` of the Policy (required)ruleId
- `id` of the Policy Rule (required)ApiException
- if fails to make API callpublic void deletePolicyRule(String policyId, String ruleId, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)ruleId
- `id` of the Policy Rule (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic Policy getPolicy(String policyId, String expand) throws ApiException
policyId
- `id` of the Policy (required)expand
- (optional, default to )ApiException
- if fails to make API callpublic Policy getPolicy(String policyId, String expand, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)expand
- (optional, default to )additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic PolicyMapping getPolicyMapping(String policyId, String mappingId) throws ApiException
policyId
- `id` of the Policy (required)mappingId
- `id` of the policy resource Mapping (required)ApiException
- if fails to make API callpublic PolicyMapping getPolicyMapping(String policyId, String mappingId, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)mappingId
- `id` of the policy resource Mapping (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic PolicyRule getPolicyRule(String policyId, String ruleId) throws ApiException
policyId
- `id` of the Policy (required)ruleId
- `id` of the Policy Rule (required)ApiException
- if fails to make API callpublic PolicyRule getPolicyRule(String policyId, String ruleId, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)ruleId
- `id` of the Policy Rule (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic List<Policy> listPolicies(String type, String status, String expand) throws ApiException
type
- (required)status
- (optional)expand
- (optional, default to )ApiException
- if fails to make API callpublic List<Policy> listPolicies(String type, String status, String expand, Map<String,String> additionalHeaders) throws ApiException
type
- (required)status
- (optional)expand
- (optional, default to )additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API call@Deprecated public List<Application> listPolicyApps(String policyId) throws ApiException
policyId
- `id` of the Policy (required)ApiException
- if fails to make API call@Deprecated public List<Application> listPolicyApps(String policyId, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic List<PolicyMapping> listPolicyMappings(String policyId) throws ApiException
policyId
- `id` of the Policy (required)ApiException
- if fails to make API callpublic List<PolicyMapping> listPolicyMappings(String policyId, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic List<PolicyRule> listPolicyRules(String policyId) throws ApiException
policyId
- `id` of the Policy (required)ApiException
- if fails to make API callpublic List<PolicyRule> listPolicyRules(String policyId, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic PolicyMapping mapResourceToPolicy(String policyId, PolicyMappingRequest policyMappingRequest) throws ApiException
policyId
- `id` of the Policy (required)policyMappingRequest
- (required)ApiException
- if fails to make API callpublic PolicyMapping mapResourceToPolicy(String policyId, PolicyMappingRequest policyMappingRequest, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)policyMappingRequest
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic Policy replacePolicy(String policyId, Policy policy) throws ApiException
policyId
- `id` of the Policy (required)policy
- (required)ApiException
- if fails to make API callpublic Policy replacePolicy(String policyId, Policy policy, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)policy
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic PolicyRule replacePolicyRule(String policyId, String ruleId, PolicyRule policyRule) throws ApiException
policyId
- `id` of the Policy (required)ruleId
- `id` of the Policy Rule (required)policyRule
- (required)ApiException
- if fails to make API callpublic PolicyRule replacePolicyRule(String policyId, String ruleId, PolicyRule policyRule, Map<String,String> additionalHeaders) throws ApiException
policyId
- `id` of the Policy (required)ruleId
- `id` of the Policy Rule (required)policyRule
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callprotected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2017–2023 Okta. All rights reserved.