/**
   * Unset protection type assigned to the varray
   *
   * @param id the URN of a ViPR varry
   * @prereq none
   * @brief unset protection type field
   * @return No data returned in response body
   */
  @DELETE
  @Path("/{id}/protectionType")
  public Response unsetProtectionType(@PathParam("id") URI id) {
    VirtualArray varray = getVirtualArrayById(id, true);

    String origProtectionType =
        (varray.getProtectionType() == null) ? "" : varray.getProtectionType();

    varray.setProtectionType("");
    _dbClient.persistObject(varray);

    auditOp(
        OperationTypeEnum.UNSET_VARRAY_PROTECTIONTYPE,
        true,
        null,
        id.toString(),
        varray.getLabel(),
        origProtectionType);
    return Response.ok().build();
  }
  /**
   * Set protection type for varray
   *
   * @param id the URN of a ViPR varray
   * @param value the value of the protection type
   * @return the updated virtual array info
   */
  @PUT
  @Path("/{id}/protectionType")
  @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
  @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
  public VirtualArrayRestRep setProtectionType(
      @PathParam("id") URI id, @QueryParam("value") String protectionType) {
    if (protectionType == null || protectionType.isEmpty()) {
      throw APIException.badRequests.invalidParameterProtectionTypeIsEmpty();
    }

    VirtualArray varray = getVirtualArrayById(id, true);

    varray.setProtectionType(protectionType);
    _dbClient.persistObject(varray);

    auditOp(
        OperationTypeEnum.SET_VARRAY_PROTECTIONTYPE,
        true,
        null,
        id.toString(),
        varray.getLabel(),
        protectionType);
    return map(varray);
  }