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

io.permit.sdk.openapi.models.ResourceRoleRead 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 java.util.List;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;


/**
 * ResourceRoleRead
 * 

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

* The name of the role * (Required) * */ @SerializedName("name") @Expose public String name; /** * Description *

* optional description string explaining what this role represents, or what permissions are granted to it. * */ @SerializedName("description") @Expose public String description; /** * Permissions *

* list of action keys that define what actions this resource role is permitted to do * */ @SerializedName("permissions") @Expose public List permissions; /** * Extends *

* list of role keys that define what roles this role extends. In other words: this role will automatically inherit all the permissions of the given roles in this list. * */ @SerializedName("extends") @Expose public List _extends; /** * Attributes *

* optional dictionary of key-value pairs that can be used to store arbitrary metadata about this role. This metadata can be used to filter role using query parameters with attr_ prefix, currently supports only 'equals' operator * */ @SerializedName("attributes") @Expose public HashMap attributes; /** * Granted To *

* Derived role that inherit will be applied on this role * */ @SerializedName("granted_to") @Expose public DerivedRoleBlockRead grantedTo; /** * Key *

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

* Unique id of the role * (Required) * */ @SerializedName("id") @Expose public String id; /** * Organization Id *

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

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

* Unique id of the environment that the role belongs to. * (Required) * */ @SerializedName("environment_id") @Expose public String environmentId; /** * Resource Id *

* Unique id of the resource that the role belongs to. * (Required) * */ @SerializedName("resource_id") @Expose public String resourceId; /** * Resource *

* The unique resource key that the role belongs to. * (Required) * */ @SerializedName("resource") @Expose public String resource; /** * Created At *

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

* Date and time when the role was last updated/modified (ISO_8601 format). * (Required) * */ @SerializedName("updated_at") @Expose public Date updatedAt; /** * No args constructor for use in serialization * */ public ResourceRoleRead() { } /** * * @param organizationId * @param createdAt * @param resourceId * @param environmentId * @param resource * @param name * @param id * @param projectId * @param key * @param updatedAt */ public ResourceRoleRead(String name, String key, String id, String organizationId, String projectId, String environmentId, String resourceId, String resource, Date createdAt, Date updatedAt) { super(); this.name = name; this.key = key; this.id = id; this.organizationId = organizationId; this.projectId = projectId; this.environmentId = environmentId; this.resourceId = resourceId; this.resource = resource; this.createdAt = createdAt; this.updatedAt = updatedAt; } public ResourceRoleRead withName(String name) { this.name = name; return this; } public ResourceRoleRead withDescription(String description) { this.description = description; return this; } public ResourceRoleRead withPermissions(List permissions) { this.permissions = permissions; return this; } public ResourceRoleRead withExtends(List _extends) { this._extends = _extends; return this; } public ResourceRoleRead withAttributes(HashMap attributes) { this.attributes = attributes; return this; } public ResourceRoleRead withGrantedTo(DerivedRoleBlockRead grantedTo) { this.grantedTo = grantedTo; return this; } public ResourceRoleRead withKey(String key) { this.key = key; return this; } public ResourceRoleRead withId(String id) { this.id = id; return this; } public ResourceRoleRead withOrganizationId(String organizationId) { this.organizationId = organizationId; return this; } public ResourceRoleRead withProjectId(String projectId) { this.projectId = projectId; return this; } public ResourceRoleRead withEnvironmentId(String environmentId) { this.environmentId = environmentId; return this; } public ResourceRoleRead withResourceId(String resourceId) { this.resourceId = resourceId; return this; } public ResourceRoleRead withResource(String resource) { this.resource = resource; return this; } public ResourceRoleRead withCreatedAt(Date createdAt) { this.createdAt = createdAt; return this; } public ResourceRoleRead withUpdatedAt(Date updatedAt) { this.updatedAt = updatedAt; return this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy