UNPKG

@indexea/sdk

Version:

Indexea JavaScript SDK (indexea.com)

106 lines (96 loc) 2.94 kB
/* tslint:disable */ /* eslint-disable */ /** * Indexea OpenAPI * 这是 Indexea 搜索服务平台的 OpenAPI,用于描述平台的所有接口信息,你可以通过这个页面来了解和在线验证平台的所有接口信息。 ### Errors 本 API 使用标准的 HTTP 状态码来指示操作成功或者失败,如果失败将会在 body 中以 JSON 格式提供详细的错误信息,如下所示: ``` { \"error\": 404, \"message\": \"page not found\" } ``` * * The version of the OpenAPI document: 1.0.0 * Contact: indexea.com@gmail.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 { exists, mapValues } from '../runtime'; /** * 服务配额信息 * @export * @interface PaymentService */ export interface PaymentService { /** * 服务天数 * @type {number} * @memberof PaymentService */ days?: number; /** * 存储空间 * @type {number} * @memberof PaymentService */ storage?: number; /** * 分片数 * @type {number} * @memberof PaymentService */ shards?: number; /** * 副本数 * @type {number} * @memberof PaymentService */ replicas?: number; /** * 搜索次数 * @type {number} * @memberof PaymentService */ searchs?: number; /** * 服务价格 * @type {number} * @memberof PaymentService */ price?: number; } /** * Check if a given object implements the PaymentService interface. */ export function instanceOfPaymentService(value: object): boolean { let isInstance = true; return isInstance; } export function PaymentServiceFromJSON(json: any): PaymentService { return PaymentServiceFromJSONTyped(json, false); } export function PaymentServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentService { if ((json === undefined) || (json === null)) { return json; } return { 'days': !exists(json, 'days') ? undefined : json['days'], 'storage': !exists(json, 'storage') ? undefined : json['storage'], 'shards': !exists(json, 'shards') ? undefined : json['shards'], 'replicas': !exists(json, 'replicas') ? undefined : json['replicas'], 'searchs': !exists(json, 'searchs') ? undefined : json['searchs'], 'price': !exists(json, 'price') ? undefined : json['price'], }; } export function PaymentServiceToJSON(value?: PaymentService | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'days': value.days, 'storage': value.storage, 'shards': value.shards, 'replicas': value.replicas, 'searchs': value.searchs, 'price': value.price, }; }