UNPKG

@microsoft.azure/autorest.incubator

Version:
36 lines 2.49 kB
import { KnownMediaType } from '#common/media-types'; import { Expression, ExpressionOrLiteral } from '#csharp/code-dom/expression'; import { OneOrMoreStatements } from '#csharp/code-dom/statements/statement'; import { Variable } from '#csharp/code-dom/variable'; import { Schema } from '#csharp/lowlevel-generator/code-model'; import { EnhancedTypeDeclaration } from './extended-type-declaration'; export declare class ArrayOf implements EnhancedTypeDeclaration { schema: Schema; isRequired: boolean; protected elementType: EnhancedTypeDeclaration; protected minItems: number | undefined; protected maxItems: number | undefined; protected unique: boolean | undefined; isXmlAttribute: boolean; private xmlName; constructor(schema: Schema, isRequired: boolean, elementType: EnhancedTypeDeclaration, minItems: number | undefined, maxItems: number | undefined, unique: boolean | undefined); protected readonly isWrapped: boolean; protected readonly wrapperName: string | undefined; protected readonly serializedName: string | undefined; readonly declaration: string; /** emits an expression to deserialize a property from a member inside a container */ deserializeFromContainerMember(mediaType: KnownMediaType, container: ExpressionOrLiteral, serializedName: string, defaultValue: Expression): Expression; /** emits an expression to deserialze a container as the value itself. */ deserializeFromNode(mediaType: KnownMediaType, node: ExpressionOrLiteral, defaultValue: Expression): Expression; /** emits an expression to deserialize content from a string */ deserializeFromString(mediaType: KnownMediaType, content: ExpressionOrLiteral, defaultValue: Expression): Expression | undefined; /** emits an expression serialize this to a HttpContent */ serializeToNode(mediaType: KnownMediaType, value: ExpressionOrLiteral, serializedName: string): Expression; /** emits an expression serialize this to the value required by the container */ serializeToContent(mediaType: KnownMediaType, value: ExpressionOrLiteral): Expression; /** emits the code required to serialize this into a container */ serializeToContainerMember(mediaType: KnownMediaType, value: ExpressionOrLiteral, container: Variable, serializedName: string): OneOrMoreStatements; validatePresence(property: Variable): OneOrMoreStatements; validateValue(property: Variable): OneOrMoreStatements; } //# sourceMappingURL=array.d.ts.map