/** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { V1alpha2DevWorkspaceSpecTemplateParentComponentsItemsPluginCommandsItemsExecEnv } from '../models/V1alpha2DevWorkspaceSpecTemplateParentComponentsItemsPluginCommandsItemsExecEnv'; import { V1alpha2DevWorkspaceSpecTemplateParentComponentsItemsPluginCommandsItemsExecGroup } from '../models/V1alpha2DevWorkspaceSpecTemplateParentComponentsItemsPluginCommandsItemsExecGroup'; import { HttpFile } from '../http/http'; /** * CLI Command executed in an existing component container */ export class V1alpha2DevWorkspaceSpecTemplateParentComponentsItemsPluginCommandsItemsExec { /** * The actual command-line string Special variables that can be used: - `$PROJECTS_ROOT`: A path where projects sources are mounted as defined by container component's sourceMapping. - `$PROJECT_SOURCE`: A path to a project source ($PROJECTS_ROOT/). If there are multiple projects, this will point to the directory of the first one. */ 'commandLine'?: string; /** * Describes component to which given action relates */ 'component'?: string; /** * Optional list of environment variables that have to be set before running the command */ 'env'?: Array; 'group'?: V1alpha2DevWorkspaceSpecTemplateParentComponentsItemsPluginCommandsItemsExecGroup; /** * Specify whether the command is restarted or not when the source code changes. If set to `true` the command won't be restarted. A *hotReloadCapable* `run` or `debug` command is expected to handle file changes on its own and won't be restarted. A *hotReloadCapable* `build` command is expected to be executed only once and won't be executed again. This field is taken into account only for commands `build`, `run` and `debug` with `isDefault` set to `true`. Default value is `false` */ 'hotReloadCapable'?: boolean; /** * Optional label that provides a label for this command to be used in Editor UI menus for example */ 'label'?: string; /** * Working directory where the command should be executed Special variables that can be used: - `$PROJECTS_ROOT`: A path where projects sources are mounted as defined by container component's sourceMapping. - `$PROJECT_SOURCE`: A path to a project source ($PROJECTS_ROOT/). If there are multiple projects, this will point to the directory of the first one. */ 'workingDir'?: string; static readonly discriminator: string | undefined = undefined; static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ { "name": "commandLine", "baseName": "commandLine", "type": "string", "format": "" }, { "name": "component", "baseName": "component", "type": "string", "format": "" }, { "name": "env", "baseName": "env", "type": "Array", "format": "" }, { "name": "group", "baseName": "group", "type": "V1alpha2DevWorkspaceSpecTemplateParentComponentsItemsPluginCommandsItemsExecGroup", "format": "" }, { "name": "hotReloadCapable", "baseName": "hotReloadCapable", "type": "boolean", "format": "" }, { "name": "label", "baseName": "label", "type": "string", "format": "" }, { "name": "workingDir", "baseName": "workingDir", "type": "string", "format": "" } ]; static getAttributeTypeMap() { return V1alpha2DevWorkspaceSpecTemplateParentComponentsItemsPluginCommandsItemsExec.attributeTypeMap; } public constructor() { } }