@autorest/powershell
Version:
AutoRest PowerShell Cmdlet Generator
32 lines • 2.33 kB
TypeScript
import { KnownMediaType } from '@azure-tools/codemodel-v3';
import { Expression, ExpressionOrLiteral } from '@azure-tools/codegen-csharp';
import { OneOrMoreStatements } from '@azure-tools/codegen-csharp';
import { Variable } from '@azure-tools/codegen-csharp';
import { EnhancedTypeDeclaration } from './extended-type-declaration';
import { BinarySchema } from '@autorest/codemodel';
export declare class Binary implements EnhancedTypeDeclaration {
schema: BinarySchema;
isRequired: boolean;
isXmlAttribute: boolean;
constructor(schema: BinarySchema, isRequired: boolean);
get convertObjectMethod(): string;
isNullable: boolean;
get defaultOfType(): Expression;
get 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 to deserialize content from a content/response */
deserializeFromResponse(mediaType: KnownMediaType, content: ExpressionOrLiteral, defaultValue: Expression): Expression | undefined;
/** emits an expression serialize this to the value required by the container */
serializeToContent(mediaType: KnownMediaType, value: ExpressionOrLiteral, mode: Expression): Expression;
serializeToNode(mediaType: KnownMediaType, value: ExpressionOrLiteral, serializedName: string, mode: Expression): Expression;
/** emits the code required to serialize this into a container */
serializeToContainerMember(mediaType: KnownMediaType, value: ExpressionOrLiteral, container: Variable, serializedName: string, mode: Expression): OneOrMoreStatements;
validateValue(eventListener: Variable, property: Variable): string;
validatePresence(eventListener: Variable, property: Variable): string;
}
//# sourceMappingURL=binary.d.ts.map