/** * ForestVPN Cloud API * ForestVPN Cloud - it's a Google Cloud but for VPN apps. Ready to use VPN Cloud Platform minimizes efforts to build fast, secure, and modern VPN apps. * * OpenAPI spec version: 2.0 * Contact: support@forestvpn.com * * 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 { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { CreateProjectRequest } from '../models'; import { Project } from '../models'; import { UpdateProjectRequest } from '../models'; /** * ProjectsApi - axios parameter creator * @export */ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuration) => { /** * * @summary Create a new project * @param {CreateProjectRequest} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createProject: (body?: CreateProjectRequest, options?: AxiosRequestConfig) => Promise; /** * * @summary Project details * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProject: (projectId: string, options?: AxiosRequestConfig) => Promise; /** * * @summary Projects list * @param {string} [slug] * @param {number} [per_page] * @param {number} [page] * @param {string} [search] Search by ID, name, slug, account ID * @param {string} [ordering] Sort output by (use \"-\" for desc ordering (i.g \"-slug\")) * @param {*} [options] Override http request option. * @throws {RequiredError} */ listProjects: (slug?: string, per_page?: number, page?: number, search?: string, ordering?: string, options?: AxiosRequestConfig) => Promise; /** * * @summary Update project * @param {string} projectId * @param {UpdateProjectRequest} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateProject: (projectId: string, body?: UpdateProjectRequest, options?: AxiosRequestConfig) => Promise; }; /** * ProjectsApi - functional programming interface * @export */ export declare const ProjectsApiFp: (configuration?: Configuration) => { /** * * @summary Create a new project * @param {CreateProjectRequest} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createProject(body?: CreateProjectRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * * @summary Project details * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProject(projectId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * * @summary Projects list * @param {string} [slug] * @param {number} [per_page] * @param {number} [page] * @param {string} [search] Search by ID, name, slug, account ID * @param {string} [ordering] Sort output by (use \"-\" for desc ordering (i.g \"-slug\")) * @param {*} [options] Override http request option. * @throws {RequiredError} */ listProjects(slug?: string, per_page?: number, page?: number, search?: string, ordering?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>>; /** * * @summary Update project * @param {string} projectId * @param {UpdateProjectRequest} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateProject(projectId: string, body?: UpdateProjectRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; }; /** * ProjectsApi - factory interface * @export */ export declare const ProjectsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * * @summary Create a new project * @param {CreateProjectRequest} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createProject(body?: CreateProjectRequest, options?: AxiosRequestConfig): Promise>; /** * * @summary Project details * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProject(projectId: string, options?: AxiosRequestConfig): Promise>; /** * * @summary Projects list * @param {string} [slug] * @param {number} [per_page] * @param {number} [page] * @param {string} [search] Search by ID, name, slug, account ID * @param {string} [ordering] Sort output by (use \"-\" for desc ordering (i.g \"-slug\")) * @param {*} [options] Override http request option. * @throws {RequiredError} */ listProjects(slug?: string, per_page?: number, page?: number, search?: string, ordering?: string, options?: AxiosRequestConfig): Promise>>; /** * * @summary Update project * @param {string} projectId * @param {UpdateProjectRequest} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateProject(projectId: string, body?: UpdateProjectRequest, options?: AxiosRequestConfig): Promise>; }; /** * ProjectsApi - object-oriented interface * @export * @class ProjectsApi * @extends {BaseAPI} */ export declare class ProjectsApi extends BaseAPI { /** * * @summary Create a new project * @param {CreateProjectRequest} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectsApi */ createProject(body?: CreateProjectRequest, options?: AxiosRequestConfig): Promise>; /** * * @summary Project details * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectsApi */ getProject(projectId: string, options?: AxiosRequestConfig): Promise>; /** * * @summary Projects list * @param {string} [slug] * @param {number} [per_page] * @param {number} [page] * @param {string} [search] Search by ID, name, slug, account ID * @param {string} [ordering] Sort output by (use \"-\" for desc ordering (i.g \"-slug\")) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectsApi */ listProjects(slug?: string, per_page?: number, page?: number, search?: string, ordering?: string, options?: AxiosRequestConfig): Promise>>; /** * * @summary Update project * @param {string} projectId * @param {UpdateProjectRequest} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectsApi */ updateProject(projectId: string, body?: UpdateProjectRequest, options?: AxiosRequestConfig): Promise>; }