/** * Section API * Get edgey with the Section API * * OpenAPI spec version: 1.0.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import { AxiosPromise, AxiosInstance } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { SyntheticTest } from '../models'; /** * SyntheticsApi - axios parameter creator * @export */ export declare const SyntheticsApiAxiosParamCreator: (configuration?: Configuration) => { /** * Add a synthetics test * @param {SyntheticTest} body Test to add * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ addTest: (body: SyntheticTest, accountId: number, applicationId: number, environmentName: string, options?: any) => Promise; /** * Deletes a synthetics test * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {number} testId ID of the test to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteTest: (accountId: number, applicationId: number, environmentName: string, testId: number, options?: any) => Promise; /** * Return all synthetics tests for an environment * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTests: (accountId: number, applicationId: number, environmentName: string, options?: any) => Promise; }; /** * SyntheticsApi - functional programming interface * @export */ export declare const SyntheticsApiFp: (configuration?: Configuration) => { /** * Add a synthetics test * @param {SyntheticTest} body Test to add * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ addTest(body: SyntheticTest, accountId: number, applicationId: number, environmentName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Deletes a synthetics test * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {number} testId ID of the test to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteTest(accountId: number, applicationId: number, environmentName: string, testId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Return all synthetics tests for an environment * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTests(accountId: number, applicationId: number, environmentName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; }; /** * SyntheticsApi - factory interface * @export */ export declare const SyntheticsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Add a synthetics test * @param {SyntheticTest} body Test to add * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ addTest(body: SyntheticTest, accountId: number, applicationId: number, environmentName: string, options?: any): AxiosPromise>; /** * Deletes a synthetics test * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {number} testId ID of the test to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteTest(accountId: number, applicationId: number, environmentName: string, testId: number, options?: any): AxiosPromise>; /** * Return all synthetics tests for an environment * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTests(accountId: number, applicationId: number, environmentName: string, options?: any): AxiosPromise>; }; /** * SyntheticsApi - object-oriented interface * @export * @class SyntheticsApi * @extends {BaseAPI} */ export declare class SyntheticsApi extends BaseAPI { /** * Add a synthetics test * @param {SyntheticTest} body Test to add * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SyntheticsApi */ addTest(body: SyntheticTest, accountId: number, applicationId: number, environmentName: string, options?: any): Promise>; /** * Deletes a synthetics test * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {number} testId ID of the test to delete * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SyntheticsApi */ deleteTest(accountId: number, applicationId: number, environmentName: string, testId: number, options?: any): Promise>; /** * Return all synthetics tests for an environment * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SyntheticsApi */ getTests(accountId: number, applicationId: number, environmentName: string, options?: any): Promise>; }