@autorest/codemodel
Version:
AutoRest code model library
28 lines • 1.22 kB
TypeScript
import { DeepPartial } from "@azure-tools/codegen";
import { Metadata } from "./metadata";
import { Schema } from "./schema";
/** a response from a service. */
export interface Response extends Metadata {
}
export declare class Response extends Metadata implements Response {
constructor(objectInitializer?: DeepPartial<Response>);
}
/** a response where the content should be treated as a binary instead of a value or object */
export interface BinaryResponse extends Response {
/** indicates that this response is a binary stream */
binary: true;
}
export declare class BinaryResponse extends Response implements BinaryResponse {
constructor(objectInitializer?: DeepPartial<BinaryResponse>);
}
/** a response that should be deserialized into a result of type(schema) */
export interface SchemaResponse extends Response {
/** the content returned by the service for a given operaiton */
schema: Schema;
/** indicates whether the response can be 'null' */
nullable?: boolean;
}
export declare class SchemaResponse extends Response implements SchemaResponse {
constructor(schema: Schema, objectInitializer?: DeepPartial<SchemaResponse>);
}
//# sourceMappingURL=response.d.ts.map