| DELETE | /devops/api/caches/{location}/regions/{region}/keys/{basekey} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class CacheItemDeleteRq
{
public String location = null;
public String region = null;
public String baseKey = null;
public String getLocation() { return location; }
public CacheItemDeleteRq setLocation(String value) { this.location = value; return this; }
public String getRegion() { return region; }
public CacheItemDeleteRq setRegion(String value) { this.region = value; return this; }
public String getBaseKey() { return baseKey; }
public CacheItemDeleteRq setBaseKey(String value) { this.baseKey = value; return this; }
}
public static class CacheItemDeleteRs
{
public CacheDeleteResult Result = null;
public CacheDeleteResult getResult() { return Result; }
public CacheItemDeleteRs setResult(CacheDeleteResult value) { this.Result = value; return this; }
}
public static class CacheDeleteResult extends CacheResultBase
{
public Boolean IsDeleted = null;
public Boolean getIsDeleted() { return IsDeleted; }
public CacheDeleteResult setIsDeleted(Boolean value) { this.IsDeleted = value; return this; }
}
public static class CacheResultBase
{
public CacheResult Result = null;
public CacheLocation Location = null;
public CacheKey Key = null;
public CacheResult getResult() { return Result; }
public CacheResultBase setResult(CacheResult value) { this.Result = value; return this; }
public CacheLocation getLocation() { return Location; }
public CacheResultBase setLocation(CacheLocation value) { this.Location = value; return this; }
public CacheKey getKey() { return Key; }
public CacheResultBase setKey(CacheKey value) { this.Key = value; return this; }
}
@Flags()
public static enum CacheResult
{
@SerializedName("0") None(0),
@SerializedName("1") Miss(1),
@SerializedName("2") Hit(2),
@SerializedName("4") Put(4),
@SerializedName("8") Deleted(8),
@SerializedName("16") Cleared(16),
@SerializedName("32") Added(32),
@SerializedName("64") Updated(64),
@SerializedName("128") Unavailable(128),
@SerializedName("256") Expired(256);
private final int value;
CacheResult(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static enum CacheLocation
{
@SerializedName("0") None(0),
@SerializedName("1") OutOfProcess(1),
@SerializedName("2") InProcess(2),
@SerializedName("3") InContext(3);
private final int value;
CacheLocation(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class CacheKey
{
public String Region = null;
public String BaseKey = null;
public String Key = null;
public Integer ExpirationSeconds = null;
public String getRegion() { return Region; }
public CacheKey setRegion(String value) { this.Region = value; return this; }
public String getBaseKey() { return BaseKey; }
public CacheKey setBaseKey(String value) { this.BaseKey = value; return this; }
public String getKey() { return Key; }
public CacheKey setKey(String value) { this.Key = value; return this; }
public Integer getExpirationSeconds() { return ExpirationSeconds; }
public CacheKey setExpirationSeconds(Integer value) { this.ExpirationSeconds = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
DELETE /devops/api/caches/{location}/regions/{region}/keys/{basekey} HTTP/1.1
Host: devapi.billhighway.com
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Result":{"IsDeleted":false,"Result":0,"Location":0}}