io.permit.sdk.api.models.ResourceSpec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of permit-sdk-java Show documentation
Show all versions of permit-sdk-java Show documentation
Java SDK for Permit.io: fullstack permissions for cloud native applications
package io.permit.sdk.api.models;
import java.util.HashMap;
public class ResourceSpec {
private String type;
private String description;
private HashMap attributes;
private HashMap actions = new HashMap<>();
public ResourceSpec(String type, String description, HashMap attributes, HashMap actions) {
this.type = type;
this.description = description;
this.attributes = attributes;
this.actions = actions;
}
public ResourceSpec(String type, String description, HashMap attributes) {
this(type, description, attributes, new HashMap<>());
}
public ResourceSpec(String type, HashMap actions) {
this(type, null, null, actions);
}
}