/** * 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 { ErrorModel } from '../models'; import { ProxyConfiguration } from '../models'; import { RFC6902Operation } from '../models'; /** * ProxyApi - axios parameter creator * @export */ export declare const ProxyApiAxiosParamCreator: (configuration?: Configuration) => { /** * Get the proxy's configuration. * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {string} proxyName The proxy identifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ configurationGet: (accountId: number, applicationId: number, environmentName: string, proxyName: string, options?: any) => Promise; /** * Set the proxy's configuration. * @param {ProxyConfiguration} body Proxy configuration update details * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {string} proxyName The proxy identifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ configurationPost: (body: ProxyConfiguration, accountId: number, applicationId: number, environmentName: string, proxyName: string, options?: any) => Promise; /** * Patch the proxy with a JSON Patch. See - RFC6902 https://tools.ietf.org/html/rfc6902 - http://jsonpatch.com/ * @param {Array<RFC6902Operation>} body * @param {string} filepath the path to the file you want to modify. Case-sensitive. * @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} */ patchFile: (body: Array, filepath: string, accountId: number, applicationId: number, environmentName: string, options?: any) => Promise; /** * Send a message to a specified proxy * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {string} proxyName The proxy identifier * @param {string} operationName * @param {string} [operationParameter] Parmeter to send with the message to a proxy * @param {*} [options] Override http request option. * @throws {RequiredError} */ proxyOperationAction: (accountId: number, applicationId: number, environmentName: string, proxyName: string, operationName: string, operationParameter?: string, options?: any) => Promise; /** * Applies a varnish ban expression to the specified proxy * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {string} proxyName The proxy identifier * @param {string} [banExpression] The varnish ban expression to apply * @param {boolean} [async] If true the call will return immediately, not waiting for all delivery nodes to complete the ban * @param {*} [options] Override http request option. * @throws {RequiredError} */ proxyStatePost: (accountId: number, applicationId: number, environmentName: string, proxyName: string, banExpression?: string, async?: boolean, options?: any) => Promise; }; /** * ProxyApi - functional programming interface * @export */ export declare const ProxyApiFp: (configuration?: Configuration) => { /** * Get the proxy's configuration. * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {string} proxyName The proxy identifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ configurationGet(accountId: number, applicationId: number, environmentName: string, proxyName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Set the proxy's configuration. * @param {ProxyConfiguration} body Proxy configuration update details * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {string} proxyName The proxy identifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ configurationPost(body: ProxyConfiguration, accountId: number, applicationId: number, environmentName: string, proxyName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Patch the proxy with a JSON Patch. See - RFC6902 https://tools.ietf.org/html/rfc6902 - http://jsonpatch.com/ * @param {Array<RFC6902Operation>} body * @param {string} filepath the path to the file you want to modify. Case-sensitive. * @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} */ patchFile(body: Array, filepath: string, accountId: number, applicationId: number, environmentName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Send a message to a specified proxy * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {string} proxyName The proxy identifier * @param {string} operationName * @param {string} [operationParameter] Parmeter to send with the message to a proxy * @param {*} [options] Override http request option. * @throws {RequiredError} */ proxyOperationAction(accountId: number, applicationId: number, environmentName: string, proxyName: string, operationName: string, operationParameter?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Applies a varnish ban expression to the specified proxy * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {string} proxyName The proxy identifier * @param {string} [banExpression] The varnish ban expression to apply * @param {boolean} [async] If true the call will return immediately, not waiting for all delivery nodes to complete the ban * @param {*} [options] Override http request option. * @throws {RequiredError} */ proxyStatePost(accountId: number, applicationId: number, environmentName: string, proxyName: string, banExpression?: string, async?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * ProxyApi - factory interface * @export */ export declare const ProxyApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Get the proxy's configuration. * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {string} proxyName The proxy identifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ configurationGet(accountId: number, applicationId: number, environmentName: string, proxyName: string, options?: any): AxiosPromise; /** * Set the proxy's configuration. * @param {ProxyConfiguration} body Proxy configuration update details * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {string} proxyName The proxy identifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ configurationPost(body: ProxyConfiguration, accountId: number, applicationId: number, environmentName: string, proxyName: string, options?: any): AxiosPromise; /** * Patch the proxy with a JSON Patch. See - RFC6902 https://tools.ietf.org/html/rfc6902 - http://jsonpatch.com/ * @param {Array<RFC6902Operation>} body * @param {string} filepath the path to the file you want to modify. Case-sensitive. * @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} */ patchFile(body: Array, filepath: string, accountId: number, applicationId: number, environmentName: string, options?: any): AxiosPromise; /** * Send a message to a specified proxy * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {string} proxyName The proxy identifier * @param {string} operationName * @param {string} [operationParameter] Parmeter to send with the message to a proxy * @param {*} [options] Override http request option. * @throws {RequiredError} */ proxyOperationAction(accountId: number, applicationId: number, environmentName: string, proxyName: string, operationName: string, operationParameter?: string, options?: any): AxiosPromise; /** * Applies a varnish ban expression to the specified proxy * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {string} proxyName The proxy identifier * @param {string} [banExpression] The varnish ban expression to apply * @param {boolean} [async] If true the call will return immediately, not waiting for all delivery nodes to complete the ban * @param {*} [options] Override http request option. * @throws {RequiredError} */ proxyStatePost(accountId: number, applicationId: number, environmentName: string, proxyName: string, banExpression?: string, async?: boolean, options?: any): AxiosPromise; }; /** * ProxyApi - object-oriented interface * @export * @class ProxyApi * @extends {BaseAPI} */ export declare class ProxyApi extends BaseAPI { /** * Get the proxy's configuration. * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {string} proxyName The proxy identifier * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProxyApi */ configurationGet(accountId: number, applicationId: number, environmentName: string, proxyName: string, options?: any): Promise>; /** * Set the proxy's configuration. * @param {ProxyConfiguration} body Proxy configuration update details * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {string} proxyName The proxy identifier * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProxyApi */ configurationPost(body: ProxyConfiguration, accountId: number, applicationId: number, environmentName: string, proxyName: string, options?: any): Promise>; /** * Patch the proxy with a JSON Patch. See - RFC6902 https://tools.ietf.org/html/rfc6902 - http://jsonpatch.com/ * @param {Array<RFC6902Operation>} body * @param {string} filepath the path to the file you want to modify. Case-sensitive. * @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 ProxyApi */ patchFile(body: Array, filepath: string, accountId: number, applicationId: number, environmentName: string, options?: any): Promise>; /** * Send a message to a specified proxy * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {string} proxyName The proxy identifier * @param {string} operationName * @param {string} [operationParameter] Parmeter to send with the message to a proxy * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProxyApi */ proxyOperationAction(accountId: number, applicationId: number, environmentName: string, proxyName: string, operationName: string, operationParameter?: string, options?: any): Promise>; /** * Applies a varnish ban expression to the specified proxy * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {string} environmentName The name of the environment * @param {string} proxyName The proxy identifier * @param {string} [banExpression] The varnish ban expression to apply * @param {boolean} [async] If true the call will return immediately, not waiting for all delivery nodes to complete the ban * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProxyApi */ proxyStatePost(accountId: number, applicationId: number, environmentName: string, proxyName: string, banExpression?: string, async?: boolean, options?: any): Promise>; }