UNPKG

@devopness/sdk-js

Version:

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

62 lines (61 loc) 2.34 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 { ResourceToBeLinked } from './resource-to-be-linked'; /** * * @export * @interface DaemonEnvironmentCreate */ export interface DaemonEnvironmentCreate { /** * The resources to be linked with this resource * @type {Array<ResourceToBeLinked>} * @memberof DaemonEnvironmentCreate */ linked_resources?: Array<ResourceToBeLinked>; /** * The command line to be executed to start the daemon. Must not be greater than 255 characters. * @type {string} * @memberof DaemonEnvironmentCreate */ command: string; /** * The number of daemon process instances of the program to run simultaneously. Must be at least 1. Must not be greater than 99. * @type {number} * @memberof DaemonEnvironmentCreate */ process_count: number; /** * The working directory where the Daemon command will be executed. If the Daemon is linked to an application, the path must be a relative path to the application root directory. If the Daemon is not linked to an application, the value must be an absolute path. Must start with one of <code>/</code> Must not be greater than 255 characters. * @type {string} * @memberof DaemonEnvironmentCreate */ working_directory: string | null; /** * The name of the Unix user on behalf of which the daemon will run. Must not be greater than 60 characters. * @type {string} * @memberof DaemonEnvironmentCreate */ run_as_user: string; /** * The name entered by the user (or auto-generated by `devopness`) to uniquely identify the daemon. Must contain only letters, numbers, dashes and underscores. Must not be greater than 60 characters. * @type {string} * @memberof DaemonEnvironmentCreate */ name: string; /** * The ID of the application to be linked to the daemon. The value of `working_directory` will be relative to the application directory. * @type {number} * @memberof DaemonEnvironmentCreate */ application_id?: number | null; }