/** * 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. */ /** * * @export * @interface ResourceInstanceRead */ export interface ResourceInstanceRead { /** * A unique identifier by which Permit will identify the resource instance for permission checks. You will later pass this identifier to the `permit.check()` API. A key can be anything: for example the resource db id, a url slug, a UUID or anything else as long as it\'s unique on your end. The resource instance key must be url-friendly. * @type {string} * @memberof ResourceInstanceRead */ key: string; /** * the *key* of the tenant that this resource belongs to, used to enforce tenant boundaries in multi-tenant apps. * @type {string} * @memberof ResourceInstanceRead */ tenant?: string; /** * the *key* of the resource (type) of this resource instance. For example: if this resource instance is the annual budget document, the key of the resource might be `document`. * @type {string} * @memberof ResourceInstanceRead */ resource: string; /** * Unique id of the resource instance * @type {string} * @memberof ResourceInstanceRead */ id: string; /** * Unique id of the organization that the resource instance belongs to. * @type {string} * @memberof ResourceInstanceRead */ organization_id: string; /** * Unique id of the project that the resource instance belongs to. * @type {string} * @memberof ResourceInstanceRead */ project_id: string; /** * Unique id of the environment that the resource instance belongs to. * @type {string} * @memberof ResourceInstanceRead */ environment_id: string; /** * Date and time when the resource instance was created (ISO_8601 format). * @type {string} * @memberof ResourceInstanceRead */ created_at: string; /** * Date and time when the resource instance was last updated/modified (ISO_8601 format). * @type {string} * @memberof ResourceInstanceRead */ updated_at: string; /** * the id of the resource (type) of this resource instance. * @type {string} * @memberof ResourceInstanceRead */ resource_id: string; /** * the id of the tenant of this resource instance. * @type {string} * @memberof ResourceInstanceRead */ tenant_id?: string; /** * Arbitraty resource attributes that will be used to enforce attribute-based access control policies. * @type {object} * @memberof ResourceInstanceRead */ attributes?: object; }