All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.permit.sdk.openapi.models.ConditionSetRuleRemove Maven / Gradle / Ivy

There is a newer version: 983f46e
Show newest version

package io.permit.sdk.openapi.models;

import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;


/**
 * ConditionSetRuleRemove
 * 

* * */ @Generated("jsonschema2pojo") public class ConditionSetRuleRemove { /** * User Set *

* The userset that will be unassigned these permission, i.e: all the users matching this rule will lose the specified permission * (Required) * */ @SerializedName("user_set") @Expose public String userSet; /** * Permission *

* The permission that will be removed from the userset *on* the resourceset. The permission can be either a resource action id, or `{resource_key}:{action_key}`, i.e: the "permission name". * (Required) * */ @SerializedName("permission") @Expose public String permission; /** * Resource Set *

* The resourceset that represents the resources that are no longer granted for access, i.e: all the resources matching this rule can no longer be accessed by the userset, and will be revoked the specified *permission* * (Required) * */ @SerializedName("resource_set") @Expose public String resourceSet; /** * Is Role *

* if True, will set the condition set rule to the role's autogen user-set. * */ @SerializedName("is_role") @Expose public Boolean isRole = false; /** * Is Resource *

* if True, will set the condition set rule to the resource's autogen resource-set. * */ @SerializedName("is_resource") @Expose public Boolean isResource = false; /** * No args constructor for use in serialization * */ public ConditionSetRuleRemove() { } /** * * @param resourceSet * @param permission * @param userSet */ public ConditionSetRuleRemove(String userSet, String permission, String resourceSet) { super(); this.userSet = userSet; this.permission = permission; this.resourceSet = resourceSet; } public ConditionSetRuleRemove withUserSet(String userSet) { this.userSet = userSet; return this; } public ConditionSetRuleRemove withPermission(String permission) { this.permission = permission; return this; } public ConditionSetRuleRemove withResourceSet(String resourceSet) { this.resourceSet = resourceSet; return this; } public ConditionSetRuleRemove withIsRole(Boolean isRole) { this.isRole = isRole; return this; } public ConditionSetRuleRemove withIsResource(Boolean isResource) { this.isResource = isResource; return this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy