/** * 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 { Methods } from './methods'; /** * * @export * @interface MappingRule */ export interface MappingRule { /** * The URL to match against the request URL * @type {string} * @memberof MappingRule */ url: string; /** * The HTTP method to match against the request method * @type {Methods} * @memberof MappingRule */ http_method: Methods; /** * The resource to match against the request resource * @type {string} * @memberof MappingRule */ resource: string; /** * The headers to match against the request headers * @type {{ [key: string]: string; }} * @memberof MappingRule */ headers?: { [key: string]: string; }; /** * The action to match against the request action * @type {string} * @memberof MappingRule */ action?: string; /** * The priority of the mapping rule. The higher the priority, the higher the precedence * @type {number} * @memberof MappingRule */ priority?: number; }