public static Integer convertValue()

in src/main/java/com/google/gcs/sdrs/common/RetentionValue.java [93:104]


  public static Integer convertValue(RetentionValue retentionValue) {
    if (retentionValue == null
        || retentionValue.getNumber() == null
        || retentionValue.getUnitType() == null) {
      return null;
    }

    if (retentionValue.getUnitType() == RetentionUnitType.MONTH) {
      return retentionValue.getNumber() * 30;
    }
    return retentionValue.getNumber();
  }