/** * Permit.io API * Authorization as a service * * The version of the OpenAPI document: 2.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { GrantedTo1 } from './granted-to1'; /** * * @export * @interface ResourceRoleCreate */ export interface ResourceRoleCreate { /** * 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. * @type {string} * @memberof ResourceRoleCreate */ key: string; /** * The name of the role * @type {string} * @memberof ResourceRoleCreate */ name: string; /** * optional description string explaining what this role represents, or what permissions are granted to it. * @type {string} * @memberof ResourceRoleCreate */ description?: string; /** * list of action keys that define what actions this resource role is permitted to do * @type {Array} * @memberof ResourceRoleCreate */ permissions?: Array; /** * 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 * @type {object} * @memberof ResourceRoleCreate */ attributes?: object; /** * * @type {GrantedTo1} * @memberof ResourceRoleCreate */ granted_to?: GrantedTo1; }