UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

58 lines (57 loc) 1.49 kB
import { ModelDefinition } from './BaseModels'; import { Customer } from './Customer'; import { Log } from './Log'; import { RateLimit } from './RateLimit'; export interface ApiKeyInterface { name: string; id?: string; ttl?: number; scopes?: Array<any>; enabled?: boolean; testMode?: boolean; created?: Date; modified?: Date; deleted?: Date; customerId?: any; _rateLimit?: any; customer?: Customer; trackingLogs?: Log[]; rateLimit?: RateLimit[]; } export declare class ApiKey implements ApiKeyInterface { name: string; id: string; ttl: number; scopes: Array<any>; enabled: boolean; testMode: boolean; created: Date; modified: Date; deleted: Date; customerId: any; _rateLimit: any; customer?: Customer; trackingLogs?: Log[]; rateLimit?: RateLimit[]; constructor(data?: ApiKeyInterface); /** * The name of the model represented by this $resource, * i.e. `ApiKey`. */ static getModelName(): string; /** * @method factory * @author Jonathan Casarrubias * @license MIT * This method creates an instance of ApiKey for dynamic purposes. */ static factory(data: ApiKeyInterface): ApiKey; /** * @method getModelDefinition * @author Julien Ledun * @license MIT * This method returns an object that represents some of the model * definitions. */ static getModelDefinition(): ModelDefinition; }