UNPKG

@devopness/sdk-js

Version:

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

37 lines (36 loc) 1.51 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 { Action } from '../../generated/models'; import { ActionPipelineCreate } from '../../generated/models'; import { ActionRelation } from '../../generated/models'; /** * PipelinesActionsApiService - Auto-generated */ export declare class PipelinesActionsApiService extends ApiBaseService { /** * * @summary Create an action to run a Pipeline * @param {number} pipelineId The ID of the pipeline that will be executed by the created action * @param {ActionPipelineCreate} actionPipelineCreate A JSON object containing the resource data */ addPipelineAction(pipelineId: number, actionPipelineCreate: ActionPipelineCreate): Promise<ApiResponse<Action>>; /** * * @summary Return a list of pipeline\'s actions * @param {number} pipelineId The ID of the pipeline. * @param {number} [page] Number of the page to be retrieved * @param {number} [perPage] Number of items returned per page */ listPipelineActions(pipelineId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionRelation>>>; }