content: package com.fit2cloud.provider.impl.huawei.entity.request;
  
  import com.fit2cloud.common.form.annotaion.Form;
  import com.fit2cloud.common.form.constants.InputType;
  import com.fit2cloud.provider.impl.huawei.HuaweiCloudProvider;
  import lombok.Data;
  
  /**
   * Author: LiuDi
   * Date: 2022/11/2 4:15 PM
   */
  @Data
  public class HuaweiCreateDiskForm {
      @Form(inputType = InputType.Text,
              label = "名称",
              propsInfo = "{\"style\":{\"width\":\"100%\"}}")
      private String diskName;
  
      @Form(inputType = InputType.IntNumber,
              label = "磁盘大小",
              defaultValue = "20",
              defaultJsonValue = true,
              attrs = "{\"min\":20,\"max\":32728,\"step\":10}",
              propsInfo = "{\"style\":{\"width\":\"120px\"}}",
              unit = "GB")
      private Long size;
  
      @Form(inputType = InputType.Radio,
              label = "磁盘类型",
              defaultValue = "GPSSD",
              propsInfo = "{\"radioType\":\"radio\",\"style\":{\"width\":\"100%\"}}",
              textField = "name",
              valueField = "id",
              method = "getDiskTypes",
              clazz = HuaweiCloudProvider.class)
      private String diskType;
  
      @Form(inputType = InputType.SwitchBtn,
              label = "随实例删除",
              defaultValue = "YES",
              textField = "name",
              propsInfo = "{\"style\":{\"width\":\"40px\"}}",
              attrs = "{\"inactive-value\":\"NO\",\"active-value\":\"YES\"}",
              valueField = "id"
      )
      private String deleteWithInstance;
  }
  