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

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

There is a newer version: 983f46e
Show newest version

package io.permit.sdk.openapi.models;

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


/**
 * ResourceRead
 * 

* * */ @Generated("jsonschema2pojo") public class ResourceRead { /** * Key *

* A URL-friendly name of the resource (i.e: slug). You will be able to query later using this key instead of the id (UUID) of the resource. * (Required) * */ @SerializedName("key") @Expose public java.lang.String key; /** * Id *

* Unique id of the resource * (Required) * */ @SerializedName("id") @Expose public java.lang.String id; /** * Organization Id *

* Unique id of the organization that the resource belongs to. * (Required) * */ @SerializedName("organization_id") @Expose public java.lang.String organizationId; /** * Project Id *

* Unique id of the project that the resource belongs to. * (Required) * */ @SerializedName("project_id") @Expose public java.lang.String projectId; /** * Environment Id *

* Unique id of the environment that the resource belongs to. * (Required) * */ @SerializedName("environment_id") @Expose public java.lang.String environmentId; /** * Created At *

* Date and time when the resource was created (ISO_8601 format). * (Required) * */ @SerializedName("created_at") @Expose public Date createdAt; /** * Updated At *

* Date and time when the resource was last updated/modified (ISO_8601 format). * (Required) * */ @SerializedName("updated_at") @Expose public Date updatedAt; /** * Name *

* The name of the resource * (Required) * */ @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, etc. * */ @SerializedName("roles") @Expose public HashMap roles; /** * Relations *

* * A relations definition block, typically contained within a resource type definition block. * The relations represents the ways you can interact with a protected resource. * * */ @SerializedName("relations") @Expose public HashMap relations; /** * No args constructor for use in serialization * */ public ResourceRead() { } /** * * @param organizationId * @param createdAt * @param environmentId * @param name * @param id * @param projectId * @param key * @param updatedAt */ public ResourceRead(java.lang.String key, java.lang.String id, java.lang.String organizationId, java.lang.String projectId, java.lang.String environmentId, Date createdAt, Date updatedAt, java.lang.String name) { super(); this.key = key; this.id = id; this.organizationId = organizationId; this.projectId = projectId; this.environmentId = environmentId; this.createdAt = createdAt; this.updatedAt = updatedAt; this.name = name; } public ResourceRead withKey(java.lang.String key) { this.key = key; return this; } public ResourceRead withId(java.lang.String id) { this.id = id; return this; } public ResourceRead withOrganizationId(java.lang.String organizationId) { this.organizationId = organizationId; return this; } public ResourceRead withProjectId(java.lang.String projectId) { this.projectId = projectId; return this; } public ResourceRead withEnvironmentId(java.lang.String environmentId) { this.environmentId = environmentId; return this; } public ResourceRead withCreatedAt(Date createdAt) { this.createdAt = createdAt; return this; } public ResourceRead withUpdatedAt(Date updatedAt) { this.updatedAt = updatedAt; return this; } public ResourceRead withName(java.lang.String name) { this.name = name; return this; } public ResourceRead withUrn(java.lang.String urn) { this.urn = urn; return this; } public ResourceRead withDescription(java.lang.String description) { this.description = description; return this; } public ResourceRead withActions(HashMap actions) { this.actions = actions; return this; } public ResourceRead withAttributes(HashMap attributes) { this.attributes = attributes; return this; } public ResourceRead withRoles(HashMap roles) { this.roles = roles; return this; } public ResourceRead withRelations(HashMap relations) { this.relations = relations; return this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy