@apideck/node
Version:
Apideck Node.js SDK
85 lines (84 loc) • 2.36 kB
TypeScript
/**
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.13.0
* Contact: support@apideck.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ConsumerConnection } from './ConsumerConnection';
import { ConsumerMetadata } from './ConsumerMetadata';
import { RequestCountAllocation } from './RequestCountAllocation';
/**
*
* @export
* @interface Consumer
*/
export interface Consumer {
/**
* Unique consumer identifier. You can freely choose a consumer ID yourself. Most of the time, this is an ID of your internal data model that represents a user or account in your system (for example account:12345). If the consumer doesn't exist yet, Vault will upsert a consumer based on your ID.
* @type {string}
* @memberof Consumer
*/
consumer_id: string;
/**
* ID of your Apideck Application
* @type {string}
* @memberof Consumer
*/
readonly application_id?: string;
/**
*
* @type {ConsumerMetadata}
* @memberof Consumer
*/
metadata?: ConsumerMetadata;
/**
*
* @type {Array<ConsumerConnection>}
* @memberof Consumer
*/
readonly connections?: Array<ConsumerConnection>;
/**
*
* @type {Array<string>}
* @memberof Consumer
*/
readonly services?: Array<string>;
/**
*
* @type {number}
* @memberof Consumer
*/
readonly aggregated_request_count?: number;
/**
*
* @type {RequestCountAllocation}
* @memberof Consumer
*/
request_counts?: RequestCountAllocation;
/**
*
* @type {string}
* @memberof Consumer
*/
readonly created?: string;
/**
*
* @type {string}
* @memberof Consumer
*/
readonly modified?: string;
/**
*
* @type {string}
* @memberof Consumer
*/
readonly request_count_updated?: string;
}
export declare function ConsumerFromJSON(json: any): Consumer;
export declare function ConsumerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Consumer;
export declare function ConsumerToJSON(value?: Consumer | null): any;