@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-04-29T13:24:36.001-05:00") public interface Policy extends ExtensibleResource, Deletable
Modifier and Type | Interface and Description |
---|---|
static class |
Policy.StatusEnum
Enum status
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activates a policy.
|
PolicyRule |
createRule(PolicyRule policyRule)
Creates a policy rule.
|
void |
deactivate()
Deactivates a policy.
|
void |
delete()
Removes a policy.
|
PolicyRuleConditions |
getConditions() |
java.util.Date |
getCreated() |
java.lang.String |
getDescription() |
java.util.Map<java.lang.String,java.lang.Object> |
getEmbedded() |
java.lang.String |
getId() |
java.util.Date |
getLastUpdated() |
java.util.Map<java.lang.String,java.lang.Object> |
getLinks() |
java.lang.String |
getName() |
PolicyRule |
getPolicyRule(java.lang.String ruleId)
Gets a policy rule.
|
java.lang.Integer |
getPriority() |
Policy.StatusEnum |
getStatus() |
java.lang.Boolean |
getSystem() |
PolicyType |
getType() |
PolicyRuleList |
listPolicyRules()
Enumerates all policy rules.
|
Policy |
setConditions(PolicyRuleConditions conditions) |
Policy |
setDescription(java.lang.String description) |
Policy |
setName(java.lang.String name) |
Policy |
setPriority(java.lang.Integer priority) |
Policy |
setStatus(Policy.StatusEnum status) |
Policy |
setSystem(java.lang.Boolean system) |
Policy |
setType(PolicyType type) |
Policy |
update()
Updates a policy.
|
getResourceHref, setResourceHref
getBoolean, getInteger, getIntegerList, getNumber, getNumberList, getString, getStringList
java.util.Map<java.lang.String,java.lang.Object> getEmbedded()
java.util.Map<java.lang.String,java.lang.Object> getLinks()
PolicyRuleConditions getConditions()
Policy setConditions(PolicyRuleConditions conditions)
java.util.Date getCreated()
java.lang.String getDescription()
Policy setDescription(java.lang.String description)
java.lang.String getId()
java.util.Date getLastUpdated()
java.lang.String getName()
Policy setName(java.lang.String name)
java.lang.Integer getPriority()
Policy setPriority(java.lang.Integer priority)
Policy.StatusEnum getStatus()
Policy setStatus(Policy.StatusEnum status)
java.lang.Boolean getSystem()
Policy setSystem(java.lang.Boolean system)
PolicyType getType()
Policy setType(PolicyType type)
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-04-29T13:24:36.001-05:00", comments="POST - /api/v1/policies/{policyId}/rules") PolicyRule createRule(PolicyRule policyRule)
policyRule
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-04-29T13:24:36.001-05:00", comments="POST - /api/v1/policies/{policyId}/lifecycle/deactivate") void deactivate()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-04-29T13:24:36.001-05:00", comments="PUT - /api/v1/policies/{policyId}") Policy update()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-04-29T13:24:36.001-05:00", comments="DELETE - /api/v1/policies/{policyId}") void delete()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-04-29T13:24:36.001-05:00", comments="POST - /api/v1/policies/{policyId}/lifecycle/activate") void activate()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-04-29T13:24:36.001-05:00", comments="GET - /api/v1/policies/{policyId}/rules") PolicyRuleList listPolicyRules()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-04-29T13:24:36.001-05:00", comments="GET - /api/v1/policies/{policyId}/rules/{ruleId}") PolicyRule getPolicyRule(java.lang.String ruleId)
ruleId
- (required)Copyright © 2017-2022 Okta. All Rights Reserved.