UNPKG

@devopness/sdk-js

Version:

Devopness API JS/TS SDK - Painless essential DevOps to everyone

49 lines (48 loc) 2.07 kB
/** * devopness API * Devopness API - Painless essential DevOps to everyone * * The version of the OpenAPI document: latest * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { ApiBaseService } from "../../../services/ApiBaseService"; import { ApiResponse } from "../../../common/ApiResponse"; import { SslCertificate } from '../../generated/models'; import { SslCertificateEnvironmentCreate } from '../../generated/models'; import { SslCertificateRelation } from '../../generated/models'; /** * SSLCertificatesApiService - Auto-generated */ export declare class SSLCertificatesApiService extends ApiBaseService { /** * * @summary Create a new ssl certificate * @param {number} environmentId The ID of the environment. * @param {SslCertificateEnvironmentCreate} sslCertificateEnvironmentCreate A JSON object containing the resource data */ addEnvironmentSslCertificate(environmentId: number, sslCertificateEnvironmentCreate: SslCertificateEnvironmentCreate): Promise<ApiResponse<SslCertificate>>; /** * * @summary Delete a given SSL Certificate * @param {number} sslCertificateId The ID of the ssl certificate. */ deleteSslCertificate(sslCertificateId: number): Promise<ApiResponse<void>>; /** * * @summary Get details of a single SSL certificate * @param {number} sslCertificateId The ID of the ssl certificate. */ getSslCertificate(sslCertificateId: number): Promise<ApiResponse<SslCertificate>>; /** * * @summary Return a list of all SSL Certificates belonging to an environment * @param {number} environmentId The ID of the environment. * @param {number} [page] Number of the page to be retrieved * @param {number} [perPage] Number of items returned per page */ listEnvironmentSslCertificates(environmentId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<SslCertificateRelation>>>; }