UNPKG

@ringer-tel/ivy

Version:
120 lines (109 loc) 3.67 kB
/* tslint:disable */ /* eslint-disable */ /** * Ringer Business API * This API provides comprehensive endpoints for the Ringer Business system. It includes functionality for managing customer accounts, addresses, sites, phone numbers, payments, users, and other business resources. Operations typically require authentication and appropriate permissions. * * The version of the OpenAPI document: 1.0.5 * Contact: support@ringer.tel * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * Represents an available Thin Client (call processing node). * @export * @interface ThinClient */ export interface ThinClient { /** * Unique identifier for the Thin Client. * @type {number} * @memberof ThinClient */ id: number; /** * A descriptive name for the Thin Client (e.g., its location and type). * @type {string} * @memberof ThinClient */ name: string; /** * Indicates if the Thin Client is currently active and available for assignment. * @type {boolean} * @memberof ThinClient */ active: boolean; /** * Category of the Thin Client (e.g., public, private). * @type {string} * @memberof ThinClient */ category: string; /** * The IPv4 address of the Thin Client. * @type {string} * @memberof ThinClient */ ipv4Address: string; /** * The provider or operator of the Thin Client. * @type {string} * @memberof ThinClient */ provider: string; /** * A unique hardware or system identifier for the Thin Client (e.g., MAC address). * @type {string} * @memberof ThinClient */ identification?: string | null; } /** * Check if a given object implements the ThinClient interface. */ export function instanceOfThinClient(value: object): value is ThinClient { if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('active' in value) || value['active'] === undefined) return false; if (!('category' in value) || value['category'] === undefined) return false; if (!('ipv4Address' in value) || value['ipv4Address'] === undefined) return false; if (!('provider' in value) || value['provider'] === undefined) return false; return true; } export function ThinClientFromJSON(json: any): ThinClient { return ThinClientFromJSONTyped(json, false); } export function ThinClientFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThinClient { if (json == null) { return json; } return { 'id': json['id'], 'name': json['name'], 'active': json['active'], 'category': json['category'], 'ipv4Address': json['ipv4_address'], 'provider': json['provider'], 'identification': json['identification'] == null ? undefined : json['identification'], }; } export function ThinClientToJSON(json: any): ThinClient { return ThinClientToJSONTyped(json, false); } export function ThinClientToJSONTyped(value?: ThinClient | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'active': value['active'], 'category': value['category'], 'ipv4_address': value['ipv4Address'], 'provider': value['provider'], 'identification': value['identification'], }; }