/* tslint:disable */ /* eslint-disable */ /** * KubeVirt API * This is KubeVirt API an add-on for Kubernetes. * * The version of the OpenAPI document: 1.0.0 * Contact: kubevirt-dev@googlegroups.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists } from '../runtime'; /** * ExecAction describes a "run in container" action. * @export * @interface K8sIoApiCoreV1ExecAction */ export interface K8sIoApiCoreV1ExecAction { /** * Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. * @type {Array} * @memberof K8sIoApiCoreV1ExecAction */ command?: Array; } export function K8sIoApiCoreV1ExecActionFromJSON(json: any): K8sIoApiCoreV1ExecAction { return K8sIoApiCoreV1ExecActionFromJSONTyped(json, false); } export function K8sIoApiCoreV1ExecActionFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): K8sIoApiCoreV1ExecAction { if (json === undefined || json === null) { return json; } return { command: !exists(json, 'command') ? undefined : json['command'], }; } export function K8sIoApiCoreV1ExecActionToJSON(value?: K8sIoApiCoreV1ExecAction | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { command: value.command, }; }