/** * 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 { AccountUser } from '../models'; import { Application } from '../models'; import { ApplicationCloneRequest } from '../models'; import { ApplicationCreateRequest } from '../models'; import { ApplicationSplitRequest } from '../models'; import { ApplicationStateUpdateRequest } from '../models'; import { ApplicationStateUpdateResult } from '../models'; import { ApplicationSummary } from '../models'; import { DomainEngaged } from '../models'; import { Origin } from '../models'; import { ProxyTemplate } from '../models'; import { Stack } from '../models'; /** * ApplicationApi - axios parameter creator * @export */ export declare const ApplicationApiAxiosParamCreator: (configuration?: Configuration) => { /** * Gets list of users with permissions to account * @param {number} accountId The account identifier number * @param {number} userId The user identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserGet: (accountId: number, userId: number, options?: any) => Promise; /** * Gets list of users with permissions to account * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserList: (accountId: number, options?: any) => Promise; /** * Clone the configuration of an existing application into a new application. * @param {ApplicationCloneRequest} body Application Clone Payload * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationClone: (body: ApplicationCloneRequest, accountId: number, applicationId: number, options?: any) => Promise; /** * Create a new application for the account * @param {ApplicationCreateRequest} body Application Create Payload * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationCreate: (body: ApplicationCreateRequest, accountId: number, options?: any) => Promise; /** * * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationDelete: (accountId: number, applicationId: number, options?: any) => Promise; /** * Get basic information about an application. * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationGet: (accountId: number, applicationId: number, options?: any) => Promise; /** * Get the account's applications. * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationList: (accountId: number, options?: any) => Promise; /** * Split the url space of an existing application into a new application. * @param {ApplicationSplitRequest} body Application Split Payload * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationSplit: (body: ApplicationSplitRequest, accountId: number, applicationId: number, options?: any) => Promise; /** * Apply a cache ban to the default hosted environment for this application. Deprecated, please use the proxy state method * @param {ApplicationStateUpdateRequest} body State update description * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationStatePost: (body: ApplicationStateUpdateRequest, accountId: number, applicationId: number, options?: any) => Promise; /** * Checks if any environment for this application is configured to route through Section * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationVerifyEngaged: (accountId: number, applicationId: number, options?: any) => Promise; /** * Returns a tar.gz containing the inital state of the proxy repository * @param {string} proxyTemplateName Proxy template identifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ proxyTemplateInitialState: (proxyTemplateName: string, options?: any) => Promise; /** * Returns an array of proxy templates that can be included in a proxy stack * @param {*} [options] Override http request option. * @throws {RequiredError} */ proxyTemplateList: (options?: any) => Promise; /** * Gets origin endpoint from hostname * @param {string} hostName Host Name * @param {*} [options] Override http request option. * @throws {RequiredError} */ resolveGet: (hostName: string, options?: any) => Promise; /** * Returns an array of stacks * @param {*} [options] Override http request option. * @throws {RequiredError} */ stackList: (options?: any) => Promise; }; /** * ApplicationApi - functional programming interface * @export */ export declare const ApplicationApiFp: (configuration?: Configuration) => { /** * Gets list of users with permissions to account * @param {number} accountId The account identifier number * @param {number} userId The user identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserGet(accountId: number, userId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Gets list of users with permissions to account * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserList(accountId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Clone the configuration of an existing application into a new application. * @param {ApplicationCloneRequest} body Application Clone Payload * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationClone(body: ApplicationCloneRequest, accountId: number, applicationId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Create a new application for the account * @param {ApplicationCreateRequest} body Application Create Payload * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationCreate(body: ApplicationCreateRequest, accountId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationDelete(accountId: number, applicationId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get basic information about an application. * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationGet(accountId: number, applicationId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get the account's applications. * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationList(accountId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Split the url space of an existing application into a new application. * @param {ApplicationSplitRequest} body Application Split Payload * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationSplit(body: ApplicationSplitRequest, accountId: number, applicationId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Apply a cache ban to the default hosted environment for this application. Deprecated, please use the proxy state method * @param {ApplicationStateUpdateRequest} body State update description * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationStatePost(body: ApplicationStateUpdateRequest, accountId: number, applicationId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Checks if any environment for this application is configured to route through Section * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationVerifyEngaged(accountId: number, applicationId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Returns a tar.gz containing the inital state of the proxy repository * @param {string} proxyTemplateName Proxy template identifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ proxyTemplateInitialState(proxyTemplateName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Returns an array of proxy templates that can be included in a proxy stack * @param {*} [options] Override http request option. * @throws {RequiredError} */ proxyTemplateList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Gets origin endpoint from hostname * @param {string} hostName Host Name * @param {*} [options] Override http request option. * @throws {RequiredError} */ resolveGet(hostName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Returns an array of stacks * @param {*} [options] Override http request option. * @throws {RequiredError} */ stackList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; }; /** * ApplicationApi - factory interface * @export */ export declare const ApplicationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Gets list of users with permissions to account * @param {number} accountId The account identifier number * @param {number} userId The user identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserGet(accountId: number, userId: number, options?: any): AxiosPromise; /** * Gets list of users with permissions to account * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserList(accountId: number, options?: any): AxiosPromise>; /** * Clone the configuration of an existing application into a new application. * @param {ApplicationCloneRequest} body Application Clone Payload * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationClone(body: ApplicationCloneRequest, accountId: number, applicationId: number, options?: any): AxiosPromise; /** * Create a new application for the account * @param {ApplicationCreateRequest} body Application Create Payload * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationCreate(body: ApplicationCreateRequest, accountId: number, options?: any): AxiosPromise; /** * * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationDelete(accountId: number, applicationId: number, options?: any): AxiosPromise; /** * Get basic information about an application. * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationGet(accountId: number, applicationId: number, options?: any): AxiosPromise; /** * Get the account's applications. * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationList(accountId: number, options?: any): AxiosPromise>; /** * Split the url space of an existing application into a new application. * @param {ApplicationSplitRequest} body Application Split Payload * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationSplit(body: ApplicationSplitRequest, accountId: number, applicationId: number, options?: any): AxiosPromise; /** * Apply a cache ban to the default hosted environment for this application. Deprecated, please use the proxy state method * @param {ApplicationStateUpdateRequest} body State update description * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationStatePost(body: ApplicationStateUpdateRequest, accountId: number, applicationId: number, options?: any): AxiosPromise; /** * Checks if any environment for this application is configured to route through Section * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ applicationVerifyEngaged(accountId: number, applicationId: number, options?: any): AxiosPromise; /** * Returns a tar.gz containing the inital state of the proxy repository * @param {string} proxyTemplateName Proxy template identifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ proxyTemplateInitialState(proxyTemplateName: string, options?: any): AxiosPromise; /** * Returns an array of proxy templates that can be included in a proxy stack * @param {*} [options] Override http request option. * @throws {RequiredError} */ proxyTemplateList(options?: any): AxiosPromise>; /** * Gets origin endpoint from hostname * @param {string} hostName Host Name * @param {*} [options] Override http request option. * @throws {RequiredError} */ resolveGet(hostName: string, options?: any): AxiosPromise; /** * Returns an array of stacks * @param {*} [options] Override http request option. * @throws {RequiredError} */ stackList(options?: any): AxiosPromise>; }; /** * ApplicationApi - object-oriented interface * @export * @class ApplicationApi * @extends {BaseAPI} */ export declare class ApplicationApi extends BaseAPI { /** * Gets list of users with permissions to account * @param {number} accountId The account identifier number * @param {number} userId The user identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationApi */ accountUserGet(accountId: number, userId: number, options?: any): Promise>; /** * Gets list of users with permissions to account * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationApi */ accountUserList(accountId: number, options?: any): Promise>; /** * Clone the configuration of an existing application into a new application. * @param {ApplicationCloneRequest} body Application Clone Payload * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationApi */ applicationClone(body: ApplicationCloneRequest, accountId: number, applicationId: number, options?: any): Promise>; /** * Create a new application for the account * @param {ApplicationCreateRequest} body Application Create Payload * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationApi */ applicationCreate(body: ApplicationCreateRequest, accountId: number, options?: any): Promise>; /** * * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationApi */ applicationDelete(accountId: number, applicationId: number, options?: any): Promise>; /** * Get basic information about an application. * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationApi */ applicationGet(accountId: number, applicationId: number, options?: any): Promise>; /** * Get the account's applications. * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationApi */ applicationList(accountId: number, options?: any): Promise>; /** * Split the url space of an existing application into a new application. * @param {ApplicationSplitRequest} body Application Split Payload * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationApi */ applicationSplit(body: ApplicationSplitRequest, accountId: number, applicationId: number, options?: any): Promise>; /** * Apply a cache ban to the default hosted environment for this application. Deprecated, please use the proxy state method * @param {ApplicationStateUpdateRequest} body State update description * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationApi */ applicationStatePost(body: ApplicationStateUpdateRequest, accountId: number, applicationId: number, options?: any): Promise>; /** * Checks if any environment for this application is configured to route through Section * @param {number} accountId The account identifier number * @param {number} applicationId The application identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationApi */ applicationVerifyEngaged(accountId: number, applicationId: number, options?: any): Promise>; /** * Returns a tar.gz containing the inital state of the proxy repository * @param {string} proxyTemplateName Proxy template identifier * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationApi */ proxyTemplateInitialState(proxyTemplateName: string, options?: any): Promise>; /** * Returns an array of proxy templates that can be included in a proxy stack * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationApi */ proxyTemplateList(options?: any): Promise>; /** * Gets origin endpoint from hostname * @param {string} hostName Host Name * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationApi */ resolveGet(hostName: string, options?: any): Promise>; /** * Returns an array of stacks * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationApi */ stackList(options?: any): Promise>; }