| GET | /v1/resource-conflicts |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class ResourceConflictsRequest
{
public Integer Window = null;
public Integer getWindow() { return Window; }
public ResourceConflictsRequest setWindow(Integer value) { this.Window = value; return this; }
}
public static class ResourceConflictsResponse
{
public ArrayList<ResourceConflictDto> Conflicts = new ArrayList<ResourceConflictDto>();
public Integer EquipmentWatched = null;
public Integer WorkersWatched = null;
public Integer CrewsWatched = null;
public Integer ResolvedInWindow = null;
public Boolean CanResolve = null;
public ResponseStatus ResponseStatus = null;
public ArrayList<ResourceConflictDto> getConflicts() { return Conflicts; }
public ResourceConflictsResponse setConflicts(ArrayList<ResourceConflictDto> value) { this.Conflicts = value; return this; }
public Integer getEquipmentWatched() { return EquipmentWatched; }
public ResourceConflictsResponse setEquipmentWatched(Integer value) { this.EquipmentWatched = value; return this; }
public Integer getWorkersWatched() { return WorkersWatched; }
public ResourceConflictsResponse setWorkersWatched(Integer value) { this.WorkersWatched = value; return this; }
public Integer getCrewsWatched() { return CrewsWatched; }
public ResourceConflictsResponse setCrewsWatched(Integer value) { this.CrewsWatched = value; return this; }
public Integer getResolvedInWindow() { return ResolvedInWindow; }
public ResourceConflictsResponse setResolvedInWindow(Integer value) { this.ResolvedInWindow = value; return this; }
public Boolean isCanResolve() { return CanResolve; }
public ResourceConflictsResponse setCanResolve(Boolean value) { this.CanResolve = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public ResourceConflictsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class ResourceConflictDto
{
public String Id = null;
public String Kind = null;
public String Name = null;
public String Severity = null;
public String Summary = null;
public ArrayList<ResourceConflictBookingDto> Bookings = new ArrayList<ResourceConflictBookingDto>();
public ArrayList<ResourceConflictOptionDto> Options = new ArrayList<ResourceConflictOptionDto>();
public String getId() { return Id; }
public ResourceConflictDto setId(String value) { this.Id = value; return this; }
public String getKind() { return Kind; }
public ResourceConflictDto setKind(String value) { this.Kind = value; return this; }
public String getName() { return Name; }
public ResourceConflictDto setName(String value) { this.Name = value; return this; }
public String getSeverity() { return Severity; }
public ResourceConflictDto setSeverity(String value) { this.Severity = value; return this; }
public String getSummary() { return Summary; }
public ResourceConflictDto setSummary(String value) { this.Summary = value; return this; }
public ArrayList<ResourceConflictBookingDto> getBookings() { return Bookings; }
public ResourceConflictDto setBookings(ArrayList<ResourceConflictBookingDto> value) { this.Bookings = value; return this; }
public ArrayList<ResourceConflictOptionDto> getOptions() { return Options; }
public ResourceConflictDto setOptions(ArrayList<ResourceConflictOptionDto> value) { this.Options = value; return this; }
}
public static class ResourceConflictBookingDto
{
public String Project = null;
public String Job = null;
public String Window = null;
public String Tag = null;
public Boolean Hot = null;
public String getProject() { return Project; }
public ResourceConflictBookingDto setProject(String value) { this.Project = value; return this; }
public String getJob() { return Job; }
public ResourceConflictBookingDto setJob(String value) { this.Job = value; return this; }
public String getWindow() { return Window; }
public ResourceConflictBookingDto setWindow(String value) { this.Window = value; return this; }
public String getTag() { return Tag; }
public ResourceConflictBookingDto setTag(String value) { this.Tag = value; return this; }
public Boolean isHot() { return Hot; }
public ResourceConflictBookingDto setHot(Boolean value) { this.Hot = value; return this; }
}
public static class ResourceConflictOptionDto
{
public String Id = null;
public String Label = null;
public String Note = null;
public Boolean Clears = null;
public Boolean Recommended = null;
public String Why = null;
public String ActionJson = null;
public String getId() { return Id; }
public ResourceConflictOptionDto setId(String value) { this.Id = value; return this; }
public String getLabel() { return Label; }
public ResourceConflictOptionDto setLabel(String value) { this.Label = value; return this; }
public String getNote() { return Note; }
public ResourceConflictOptionDto setNote(String value) { this.Note = value; return this; }
public Boolean isClears() { return Clears; }
public ResourceConflictOptionDto setClears(Boolean value) { this.Clears = value; return this; }
public Boolean isRecommended() { return Recommended; }
public ResourceConflictOptionDto setRecommended(Boolean value) { this.Recommended = value; return this; }
public String getWhy() { return Why; }
public ResourceConflictOptionDto setWhy(String value) { this.Why = value; return this; }
public String getActionJson() { return ActionJson; }
public ResourceConflictOptionDto setActionJson(String value) { this.ActionJson = value; return this; }
}
}
Java ResourceConflictsRequest DTOs
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.
GET /v1/resource-conflicts HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Conflicts":[{"Id":"String","Kind":"String","Name":"String","Severity":"String","Summary":"String","Bookings":[{"Project":"String","Job":"String","Window":"String","Tag":"String","Hot":false}],"Options":[{"Id":"String","Label":"String","Note":"String","Clears":false,"Recommended":false,"Why":"String","ActionJson":"String"}]}],"EquipmentWatched":0,"WorkersWatched":0,"CrewsWatched":0,"ResolvedInWindow":0,"CanResolve":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}