@microsoft.azure/autorest.incubator
Version:
AutoRest incubator project
27 lines • 1.95 kB
TypeScript
import { Schema } from '#csharp/lowlevel-generator/code-model';
import { ExpressionOrLiteral, Expression } from '#csharp/code-dom/expression';
import { OneOrMoreStatements } from '#csharp/code-dom/statements/statement';
import { Struct } from '#csharp/code-dom/struct';
import { EnumImplementation } from '#csharp/schema/enum';
import { EnhancedTypeDeclaration } from '#csharp/schema/extended-type-declaration';
import { State } from '../generator';
import { KnownMediaType } from '#common/media-types';
import { Variable } from '#csharp/code-dom/variable';
export declare class EnumClass extends Struct implements EnhancedTypeDeclaration {
implementation: EnumImplementation;
readonly schema: Schema;
deserializeFromContainerMember(mediaType: KnownMediaType, container: ExpressionOrLiteral, serializedName: string, defaultValue: Expression): Expression;
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;
serializeToNode(mediaType: KnownMediaType, value: ExpressionOrLiteral, serializedName: string): Expression;
/** emits an expression serialize this to a HttpContent */
serializeToContent(mediaType: KnownMediaType, value: ExpressionOrLiteral): Expression;
serializeToContainerMember(mediaType: KnownMediaType, value: ExpressionOrLiteral, container: Variable, serializedName: string): OneOrMoreStatements;
readonly isXmlAttribute: boolean;
readonly isRequired: boolean;
constructor(schemaWithFeatures: EnumImplementation, state: State, objectInitializer?: Partial<EnumClass>);
validateValue(property: Variable): OneOrMoreStatements;
validatePresence(property: Variable): OneOrMoreStatements;
}
//# sourceMappingURL=enum.d.ts.map