azdev-automation
Version:
Azure DevOps automation framework enables access control automation of projects, pipelines and repositories configuration in Azure DevOps Services
18 lines (17 loc) • 957 B
TypeScript
import { RestClient } from "typed-rest-client/RestClient";
import { ILogger } from "../loggers/ilogger";
import { AzDevApiType, IAzDevClient } from "./iazdevclient";
export declare class AzDevClient implements IAzDevClient {
private debugLogger;
private client;
private apiType;
private accountName;
constructor(client: RestClient, apiType: AzDevApiType, accountName: string, logger: ILogger);
get<T>(path: string, type?: AzDevApiType): Promise<T>;
post<T>(path: string, apiVersion?: string, body?: any, type?: AzDevApiType): Promise<T>;
postNoRetry<T>(path: string, apiVersion?: string, body?: any, type?: AzDevApiType): Promise<T>;
patch<T>(path: string, apiVersion?: string, body?: any, type?: AzDevApiType): Promise<T>;
put<T>(path: string, apiVersion?: string, body?: any, type?: AzDevApiType): Promise<T>;
delete<T>(path: string, apiVersion?: string, type?: AzDevApiType): Promise<T>;
private newUrl;
}