@microsoft/msgraph-beta-sdk
Version:
Microsoft Graph Beta JavaScript client library
154 lines • 6.52 kB
TypeScript
import { type AdditionalDataHolder, type ApiError, type BackedModel, 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 {ErrorDetails}
*/
export declare function createErrorDetailsFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
/**
* 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 {InnerError}
*/
export declare function createInnerErrorFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
/**
* 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 {MainError}
*/
export declare function createMainErrorFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
/**
* 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 {ODataError}
*/
export declare function createODataErrorFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
/**
* The deserialization information for the current model
* @param ErrorDetails The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
export declare function deserializeIntoErrorDetails(errorDetails?: Partial<ErrorDetails> | undefined): Record<string, (node: ParseNode) => void>;
/**
* The deserialization information for the current model
* @param InnerError The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
export declare function deserializeIntoInnerError(innerError?: Partial<InnerError> | undefined): Record<string, (node: ParseNode) => void>;
/**
* The deserialization information for the current model
* @param MainError The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
export declare function deserializeIntoMainError(mainError?: Partial<MainError> | undefined): Record<string, (node: ParseNode) => void>;
/**
* The deserialization information for the current model
* @param ODataError The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
export declare function deserializeIntoODataError(oDataError?: Partial<ODataError> | undefined): Record<string, (node: ParseNode) => void>;
export interface ErrorDetails extends AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
backingStoreEnabled?: boolean | null;
/**
* The code property
*/
code?: string | null;
/**
* The message property
*/
message?: string | null;
/**
* The target property
*/
target?: string | null;
}
export interface InnerError extends AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
backingStoreEnabled?: boolean | null;
/**
* Client request Id as sent by the client application.
*/
clientRequestId?: string | null;
/**
* Date when the error occured.
*/
date?: Date | null;
/**
* The OdataType property
*/
odataType?: string | null;
/**
* Request Id as tracked internally by the service
*/
requestId?: string | null;
}
export interface MainError extends AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
backingStoreEnabled?: boolean | null;
/**
* The code property
*/
code?: string | null;
/**
* The details property
*/
details?: ErrorDetails[] | null;
/**
* The innerError property
*/
innerError?: InnerError | null;
/**
* The message property
*/
message?: string | null;
/**
* The target property
*/
target?: string | null;
}
export interface ODataError extends AdditionalDataHolder, ApiError, BackedModel, Parsable {
/**
* Stores model information.
*/
backingStoreEnabled?: boolean | null;
/**
* The error property
*/
errorEscaped?: MainError | null;
}
/**
* Serializes information the current object
* @param ErrorDetails The instance to serialize from.
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param writer Serialization writer to use to serialize this model
*/
export declare function serializeErrorDetails(writer: SerializationWriter, errorDetails?: Partial<ErrorDetails> | undefined | null, isSerializingDerivedType?: boolean): void;
/**
* Serializes information the current object
* @param InnerError The instance to serialize from.
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param writer Serialization writer to use to serialize this model
*/
export declare function serializeInnerError(writer: SerializationWriter, innerError?: Partial<InnerError> | undefined | null, isSerializingDerivedType?: boolean): void;
/**
* Serializes information the current object
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param MainError The instance to serialize from.
* @param writer Serialization writer to use to serialize this model
*/
export declare function serializeMainError(writer: SerializationWriter, mainError?: Partial<MainError> | undefined | null, isSerializingDerivedType?: boolean): void;
/**
* Serializes information the current object
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param ODataError The instance to serialize from.
* @param writer Serialization writer to use to serialize this model
*/
export declare function serializeODataError(writer: SerializationWriter, oDataError?: Partial<ODataError> | undefined | null, isSerializingDerivedType?: boolean): void;
//# sourceMappingURL=index.d.ts.map