/* tslint:disable */ /* eslint-disable */ /** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: unversioned * * * 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'; /** * ModifyVolumeStatus represents the status object of ControllerModifyVolume operation * @export * @interface IoK8sApiCoreV1ModifyVolumeStatus */ export interface IoK8sApiCoreV1ModifyVolumeStatus { /** * status is the status of the ControllerModifyVolume operation. It can be in any of following states: * - Pending * Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as * the specified VolumeAttributesClass not existing. * - InProgress * InProgress indicates that the volume is being modified. * - Infeasible * Infeasible indicates that the request has been rejected as invalid by the CSI driver. To * resolve the error, a valid VolumeAttributesClass needs to be specified. * Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately. * @type {string} * @memberof IoK8sApiCoreV1ModifyVolumeStatus */ status: string; /** * targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled * @type {string} * @memberof IoK8sApiCoreV1ModifyVolumeStatus */ targetVolumeAttributesClassName?: string; } export function IoK8sApiCoreV1ModifyVolumeStatusFromJSON( json: any, ): IoK8sApiCoreV1ModifyVolumeStatus { return IoK8sApiCoreV1ModifyVolumeStatusFromJSONTyped(json, false); } export function IoK8sApiCoreV1ModifyVolumeStatusFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiCoreV1ModifyVolumeStatus { if (json === undefined || json === null) { return json; } return { status: json['status'], targetVolumeAttributesClassName: !exists(json, 'targetVolumeAttributesClassName') ? undefined : json['targetVolumeAttributesClassName'], }; } export function IoK8sApiCoreV1ModifyVolumeStatusToJSON( value?: IoK8sApiCoreV1ModifyVolumeStatus | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { status: value.status, targetVolumeAttributesClassName: value.targetVolumeAttributesClassName, }; }