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

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

There is a newer version: 983f46e
Show newest version

package io.permit.sdk.openapi.models;

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


/**
 * ResourceUpdate
 * 

* * */ @Generated("jsonschema2pojo") public class ResourceUpdate { /** * Name *

* The name of the resource * */ @SerializedName("name") @Expose public java.lang.String name; /** * Urn *

* The [URN](https://en.wikipedia.org/wiki/Uniform_Resource_Name) (Uniform Resource Name) of the resource * */ @SerializedName("urn") @Expose public java.lang.String urn; /** * Description *

* An optional longer description of what this resource respresents in your system * */ @SerializedName("description") @Expose public java.lang.String description; /** * Actions *

* * A actions definition block, typically contained within a resource type definition block. * The actions represents the ways you can interact with a protected resource. * * */ @SerializedName("actions") @Expose public HashMap actions; /** * Attributes *

* Attributes that each resource of this type defines, and can be used in your ABAC policies. * */ @SerializedName("attributes") @Expose public HashMap attributes; /** * Roles *

* Roles defined on this resource. The key is the role name, and the value contains the role properties such as granted permissions, base roles, etc. * */ @SerializedName("roles") @Expose public HashMap roles; /** * Relations *

* Relations to other resources. The key is the relation key, and the value is the related resource. * */ @SerializedName("relations") @Expose public HashMap relations; public ResourceUpdate withName(java.lang.String name) { this.name = name; return this; } public ResourceUpdate withUrn(java.lang.String urn) { this.urn = urn; return this; } public ResourceUpdate withDescription(java.lang.String description) { this.description = description; return this; } public ResourceUpdate withActions(HashMap actions) { this.actions = actions; return this; } public ResourceUpdate withAttributes(HashMap attributes) { this.attributes = attributes; return this; } public ResourceUpdate withRoles(HashMap roles) { this.roles = roles; return this; } public ResourceUpdate withRelations(HashMap relations) { this.relations = relations; return this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy