UNPKG

@shi-corp/sdk-data-gateway

Version:

SDK client used to interface with the SHI Data Gateway service.

43 lines (42 loc) 2.15 kB
import { type AdditionalDataHolder, type ApiError, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {HealthReport} */ export declare function createHealthReportFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>); /** * The deserialization information for the current model * @returns {Record<string, (node: ParseNode) => void>} */ export declare function deserializeIntoHealthReport(healthReport?: Partial<HealthReport> | undefined): Record<string, (node: ParseNode) => void>; /** * Health report that indicates if a service is down or not that the data gateway relies on. */ export interface HealthReport extends AdditionalDataHolder, ApiError, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ additionalData?: Record<string, unknown>; /** * Flag that indicates if the client side authentication validation is working or not. */ authClient?: boolean | null; /** * Flag that indicates if the server side authentication is working or not. */ authServer?: boolean | null; /** * Flag that indicates if the bulk storage system is down (`false`) or not (`true`). False indicate the service is not working, true indicates the service is working. */ bulkStorage?: boolean | null; /** * Flag that indicates if the ORM (Database) system is down (`false`) or not (`true`). False indicate the service is not working, true indicates the service is working. */ database?: boolean | null; } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeHealthReport(writer: SerializationWriter, healthReport?: Partial<HealthReport> | undefined | null): void;