@autorest/powershell
Version:
AutoRest PowerShell Cmdlet Generator
46 lines • 2.29 kB
TypeScript
import { Channel, AutorestExtensionHost as Host, JsonPointerSegments as JsonPath, Message } from '@autorest/extension-base';
import { Initializer, DeepPartial } from '@azure-tools/codegen';
import { Dictionary } from '@azure-tools/linq';
import { TspHost } from './tsp-host';
export declare class ModelState<T extends Dictionary<any>> extends Initializer {
service: TspHost | Host;
model: T;
protected documentName: string;
protected currentPath: JsonPath;
protected outputFolder: string;
private context;
private _debug;
private _verbose;
constructor(service: TspHost | Host, objectInitializer?: DeepPartial<ModelState<T>>);
init(project?: any): Promise<this>;
initContext(project: any): Promise<this>;
readFile(filename: string): Promise<string>;
getValue<V>(key: string, defaultValue?: V): Promise<V>;
setValue<V>(key: string, value: V): Promise<void>;
listInputs(artifactType?: string | undefined): Promise<Array<string>>;
protectFiles(path: string): Promise<void>;
writeFile(filename: string, content: string, sourceMap?: undefined, artifactType?: string | undefined): void;
message(message: Message): void;
updateConfigurationFile(filename: string, content: string): void;
getConfigurationFile(filename: string): Promise<string>;
protected errorCount: number;
protected static getModel<T>(service: Host | TspHost): Promise<{
filename: string;
model: T;
}>;
cache: Array<any>;
replacer(key: string, value: any): any;
resolveVariables(input: string): Promise<string>;
path(...childPath: JsonPath): this;
checkpoint(): void;
protected msg(channel: Channel, message: string, key: Array<string>, details: any): void;
warning(message: string, key: Array<string>, details?: any): void;
hint(message: string, key: Array<string>, details?: any): void;
error(message: string, key: Array<string>, details?: any): void;
fatal(message: string, key: Array<string>, details?: any): void;
protected output(channel: Channel, message: string, details?: any): void;
debug(message: string, details: any): void;
verbose(message: string, details: any): void;
log(message: string, details: any): void;
}
//# sourceMappingURL=model-state.d.ts.map