| POST,OPTIONS | /v1/projects/{ProjectID}/plansets |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class PlanSetUploadRequest
{
public Integer ProjectID = null;
public String Name = null;
public String Source = null;
public String IssuedDate = null;
public UUID SupersedesPlanSetUID = null;
public String ExtractMode = null;
public Boolean Standalone = null;
public Integer getProjectID() { return ProjectID; }
public PlanSetUploadRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
public String getName() { return Name; }
public PlanSetUploadRequest setName(String value) { this.Name = value; return this; }
public String getSource() { return Source; }
public PlanSetUploadRequest setSource(String value) { this.Source = value; return this; }
public String getIssuedDate() { return IssuedDate; }
public PlanSetUploadRequest setIssuedDate(String value) { this.IssuedDate = value; return this; }
public UUID getSupersedesPlanSetUID() { return SupersedesPlanSetUID; }
public PlanSetUploadRequest setSupersedesPlanSetUID(UUID value) { this.SupersedesPlanSetUID = value; return this; }
public String getExtractMode() { return ExtractMode; }
public PlanSetUploadRequest setExtractMode(String value) { this.ExtractMode = value; return this; }
public Boolean isStandalone() { return Standalone; }
public PlanSetUploadRequest setStandalone(Boolean value) { this.Standalone = value; return this; }
}
public static class PlanSetResponse
{
public ResponseStatus ResponseStatus = null;
public PlanSet PlanSet = null;
public ArrayList<Sheet> RemovedSheets = new ArrayList<Sheet>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public PlanSetResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public PlanSet getPlanSet() { return PlanSet; }
public PlanSetResponse setPlanSet(PlanSet value) { this.PlanSet = value; return this; }
public ArrayList<Sheet> getRemovedSheets() { return RemovedSheets; }
public PlanSetResponse setRemovedSheets(ArrayList<Sheet> value) { this.RemovedSheets = value; return this; }
}
public static class PlanSet
{
public Integer PlanSetID = null;
public UUID PlanSetUID = null;
public Integer ProjectID = null;
public String Name = null;
public String Source = null;
public String SourceLabel = null;
public Date IssuedDate = null;
public UUID AttachmentId = null;
public String AttachmentName = null;
public Double FileSizeInKB = null;
public Integer VersionNo = null;
public String Status = null;
public Integer Progress = null;
public Integer PageCount = null;
public Integer SheetCount = null;
public String ExtractMode = null;
public String ErrorText = null;
public Integer SupersedesPlanSetID = null;
public String SupersedesName = null;
public Boolean IsCurrent = null;
public String CreatedBy = null;
public Date CreatedAt = null;
public Date ProcessedAt = null;
public Integer AgeSeconds = null;
public ArrayList<Sheet> Sheets = new ArrayList<Sheet>();
public String Headline = null;
public Integer getPlanSetID() { return PlanSetID; }
public PlanSet setPlanSetID(Integer value) { this.PlanSetID = value; return this; }
public UUID getPlanSetUID() { return PlanSetUID; }
public PlanSet setPlanSetUID(UUID value) { this.PlanSetUID = value; return this; }
public Integer getProjectID() { return ProjectID; }
public PlanSet setProjectID(Integer value) { this.ProjectID = value; return this; }
public String getName() { return Name; }
public PlanSet setName(String value) { this.Name = value; return this; }
public String getSource() { return Source; }
public PlanSet setSource(String value) { this.Source = value; return this; }
public String getSourceLabel() { return SourceLabel; }
public PlanSet setSourceLabel(String value) { this.SourceLabel = value; return this; }
public Date getIssuedDate() { return IssuedDate; }
public PlanSet setIssuedDate(Date value) { this.IssuedDate = value; return this; }
public UUID getAttachmentId() { return AttachmentId; }
public PlanSet setAttachmentId(UUID value) { this.AttachmentId = value; return this; }
public String getAttachmentName() { return AttachmentName; }
public PlanSet setAttachmentName(String value) { this.AttachmentName = value; return this; }
public Double getFileSizeInKB() { return FileSizeInKB; }
public PlanSet setFileSizeInKB(Double value) { this.FileSizeInKB = value; return this; }
public Integer getVersionNo() { return VersionNo; }
public PlanSet setVersionNo(Integer value) { this.VersionNo = value; return this; }
public String getStatus() { return Status; }
public PlanSet setStatus(String value) { this.Status = value; return this; }
public Integer getProgress() { return Progress; }
public PlanSet setProgress(Integer value) { this.Progress = value; return this; }
public Integer getPageCount() { return PageCount; }
public PlanSet setPageCount(Integer value) { this.PageCount = value; return this; }
public Integer getSheetCount() { return SheetCount; }
public PlanSet setSheetCount(Integer value) { this.SheetCount = value; return this; }
public String getExtractMode() { return ExtractMode; }
public PlanSet setExtractMode(String value) { this.ExtractMode = value; return this; }
public String getErrorText() { return ErrorText; }
public PlanSet setErrorText(String value) { this.ErrorText = value; return this; }
public Integer getSupersedesPlanSetID() { return SupersedesPlanSetID; }
public PlanSet setSupersedesPlanSetID(Integer value) { this.SupersedesPlanSetID = value; return this; }
public String getSupersedesName() { return SupersedesName; }
public PlanSet setSupersedesName(String value) { this.SupersedesName = value; return this; }
public Boolean getIsCurrent() { return IsCurrent; }
public PlanSet setIsCurrent(Boolean value) { this.IsCurrent = value; return this; }
public String getCreatedBy() { return CreatedBy; }
public PlanSet setCreatedBy(String value) { this.CreatedBy = value; return this; }
public Date getCreatedAt() { return CreatedAt; }
public PlanSet setCreatedAt(Date value) { this.CreatedAt = value; return this; }
public Date getProcessedAt() { return ProcessedAt; }
public PlanSet setProcessedAt(Date value) { this.ProcessedAt = value; return this; }
public Integer getAgeSeconds() { return AgeSeconds; }
public PlanSet setAgeSeconds(Integer value) { this.AgeSeconds = value; return this; }
public ArrayList<Sheet> getSheets() { return Sheets; }
public PlanSet setSheets(ArrayList<Sheet> value) { this.Sheets = value; return this; }
public String getHeadline() { return Headline; }
public PlanSet setHeadline(String value) { this.Headline = value; return this; }
}
public static class Sheet
{
public Integer SheetID = null;
public Integer PlanSetID = null;
public UUID PlanSetUID = null;
public String PlanSetName = null;
public Integer ProjectID = null;
public Integer PageIndex = null;
public UUID AttachmentId = null;
public Integer VersionNo = null;
public String SheetNumber = null;
public String SheetKey = null;
public String Title = null;
public String Discipline = null;
public String Revision = null;
public Date RevisionDate = null;
public Double WidthPt = null;
public Double HeightPt = null;
public String ThumbKey = null;
public String ThumbUrl = null;
public String ThumbHash = null;
public String ExtractSource = null;
public Double Confidence = null;
public String ChangeKind = null;
public Integer SupersedesSheetID = null;
public Boolean IsCurrent = null;
public Integer PinCount = null;
public String UpdatedBy = null;
public Date UpdatedAt = null;
public ArrayList<SheetPin> Pins = new ArrayList<SheetPin>();
public Integer getSheetID() { return SheetID; }
public Sheet setSheetID(Integer value) { this.SheetID = value; return this; }
public Integer getPlanSetID() { return PlanSetID; }
public Sheet setPlanSetID(Integer value) { this.PlanSetID = value; return this; }
public UUID getPlanSetUID() { return PlanSetUID; }
public Sheet setPlanSetUID(UUID value) { this.PlanSetUID = value; return this; }
public String getPlanSetName() { return PlanSetName; }
public Sheet setPlanSetName(String value) { this.PlanSetName = value; return this; }
public Integer getProjectID() { return ProjectID; }
public Sheet setProjectID(Integer value) { this.ProjectID = value; return this; }
public Integer getPageIndex() { return PageIndex; }
public Sheet setPageIndex(Integer value) { this.PageIndex = value; return this; }
public UUID getAttachmentId() { return AttachmentId; }
public Sheet setAttachmentId(UUID value) { this.AttachmentId = value; return this; }
public Integer getVersionNo() { return VersionNo; }
public Sheet setVersionNo(Integer value) { this.VersionNo = value; return this; }
public String getSheetNumber() { return SheetNumber; }
public Sheet setSheetNumber(String value) { this.SheetNumber = value; return this; }
public String getSheetKey() { return SheetKey; }
public Sheet setSheetKey(String value) { this.SheetKey = value; return this; }
public String getTitle() { return Title; }
public Sheet setTitle(String value) { this.Title = value; return this; }
public String getDiscipline() { return Discipline; }
public Sheet setDiscipline(String value) { this.Discipline = value; return this; }
public String getRevision() { return Revision; }
public Sheet setRevision(String value) { this.Revision = value; return this; }
public Date getRevisionDate() { return RevisionDate; }
public Sheet setRevisionDate(Date value) { this.RevisionDate = value; return this; }
public Double getWidthPt() { return WidthPt; }
public Sheet setWidthPt(Double value) { this.WidthPt = value; return this; }
public Double getHeightPt() { return HeightPt; }
public Sheet setHeightPt(Double value) { this.HeightPt = value; return this; }
public String getThumbKey() { return ThumbKey; }
public Sheet setThumbKey(String value) { this.ThumbKey = value; return this; }
public String getThumbUrl() { return ThumbUrl; }
public Sheet setThumbUrl(String value) { this.ThumbUrl = value; return this; }
public String getThumbHash() { return ThumbHash; }
public Sheet setThumbHash(String value) { this.ThumbHash = value; return this; }
public String getExtractSource() { return ExtractSource; }
public Sheet setExtractSource(String value) { this.ExtractSource = value; return this; }
public Double getConfidence() { return Confidence; }
public Sheet setConfidence(Double value) { this.Confidence = value; return this; }
public String getChangeKind() { return ChangeKind; }
public Sheet setChangeKind(String value) { this.ChangeKind = value; return this; }
public Integer getSupersedesSheetID() { return SupersedesSheetID; }
public Sheet setSupersedesSheetID(Integer value) { this.SupersedesSheetID = value; return this; }
public Boolean getIsCurrent() { return IsCurrent; }
public Sheet setIsCurrent(Boolean value) { this.IsCurrent = value; return this; }
public Integer getPinCount() { return PinCount; }
public Sheet setPinCount(Integer value) { this.PinCount = value; return this; }
public String getUpdatedBy() { return UpdatedBy; }
public Sheet setUpdatedBy(String value) { this.UpdatedBy = value; return this; }
public Date getUpdatedAt() { return UpdatedAt; }
public Sheet setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
public ArrayList<SheetPin> getPins() { return Pins; }
public Sheet setPins(ArrayList<SheetPin> value) { this.Pins = value; return this; }
}
public static class SheetPin
{
public Integer SheetPinID = null;
public Integer SheetID = null;
public String EntityType = null;
public Integer EntityID = null;
public UUID EntityUID = null;
public Double X = null;
public Double Y = null;
public String Label = null;
public String CreatedBy = null;
public Date CreatedAt = null;
public String EntityNo = null;
public String EntityTitle = null;
public String EntityStatus = null;
public UUID InspectionUID = null;
public String SheetNumber = null;
public String SheetTitle = null;
public Integer PlanSetID = null;
public UUID PlanSetUID = null;
public String PlanSetName = null;
public Integer getSheetPinID() { return SheetPinID; }
public SheetPin setSheetPinID(Integer value) { this.SheetPinID = value; return this; }
public Integer getSheetID() { return SheetID; }
public SheetPin setSheetID(Integer value) { this.SheetID = value; return this; }
public String getEntityType() { return EntityType; }
public SheetPin setEntityType(String value) { this.EntityType = value; return this; }
public Integer getEntityID() { return EntityID; }
public SheetPin setEntityID(Integer value) { this.EntityID = value; return this; }
public UUID getEntityUID() { return EntityUID; }
public SheetPin setEntityUID(UUID value) { this.EntityUID = value; return this; }
public Double getX() { return X; }
public SheetPin setX(Double value) { this.X = value; return this; }
public Double getY() { return Y; }
public SheetPin setY(Double value) { this.Y = value; return this; }
public String getLabel() { return Label; }
public SheetPin setLabel(String value) { this.Label = value; return this; }
public String getCreatedBy() { return CreatedBy; }
public SheetPin setCreatedBy(String value) { this.CreatedBy = value; return this; }
public Date getCreatedAt() { return CreatedAt; }
public SheetPin setCreatedAt(Date value) { this.CreatedAt = value; return this; }
public String getEntityNo() { return EntityNo; }
public SheetPin setEntityNo(String value) { this.EntityNo = value; return this; }
public String getEntityTitle() { return EntityTitle; }
public SheetPin setEntityTitle(String value) { this.EntityTitle = value; return this; }
public String getEntityStatus() { return EntityStatus; }
public SheetPin setEntityStatus(String value) { this.EntityStatus = value; return this; }
public UUID getInspectionUID() { return InspectionUID; }
public SheetPin setInspectionUID(UUID value) { this.InspectionUID = value; return this; }
public String getSheetNumber() { return SheetNumber; }
public SheetPin setSheetNumber(String value) { this.SheetNumber = value; return this; }
public String getSheetTitle() { return SheetTitle; }
public SheetPin setSheetTitle(String value) { this.SheetTitle = value; return this; }
public Integer getPlanSetID() { return PlanSetID; }
public SheetPin setPlanSetID(Integer value) { this.PlanSetID = value; return this; }
public UUID getPlanSetUID() { return PlanSetUID; }
public SheetPin setPlanSetUID(UUID value) { this.PlanSetUID = value; return this; }
public String getPlanSetName() { return PlanSetName; }
public SheetPin setPlanSetName(String value) { this.PlanSetName = value; return this; }
}
}
Java PlanSetUploadRequest 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.
POST /v1/projects/{ProjectID}/plansets HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ProjectID":0,"Name":"String","Source":"String","IssuedDate":"String","SupersedesPlanSetUID":"00000000000000000000000000000000","ExtractMode":"String","Standalone":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"PlanSet":{"PlanSetID":0,"PlanSetUID":"00000000000000000000000000000000","ProjectID":0,"Name":"String","Source":"String","SourceLabel":"String","IssuedDate":"0001-01-01T00:00:00.0000000","AttachmentId":"00000000000000000000000000000000","AttachmentName":"String","FileSizeInKB":0,"VersionNo":0,"Status":"String","Progress":0,"PageCount":0,"SheetCount":0,"ExtractMode":"String","ErrorText":"String","SupersedesPlanSetID":0,"SupersedesName":"String","IsCurrent":false,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","ProcessedAt":"0001-01-01T00:00:00.0000000","AgeSeconds":0,"Sheets":[{"SheetID":0,"PlanSetID":0,"PlanSetUID":"00000000000000000000000000000000","PlanSetName":"String","ProjectID":0,"PageIndex":0,"AttachmentId":"00000000000000000000000000000000","VersionNo":0,"SheetNumber":"String","SheetKey":"String","Title":"String","Discipline":"String","Revision":"String","RevisionDate":"0001-01-01T00:00:00.0000000","WidthPt":0,"HeightPt":0,"ThumbKey":"String","ThumbUrl":"String","ThumbHash":"String","ExtractSource":"String","Confidence":0,"ChangeKind":"String","SupersedesSheetID":0,"IsCurrent":false,"PinCount":0,"UpdatedBy":"String","UpdatedAt":"0001-01-01T00:00:00.0000000","Pins":[{"SheetPinID":0,"SheetID":0,"EntityType":"String","EntityID":0,"EntityUID":"00000000000000000000000000000000","X":0,"Y":0,"Label":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","EntityNo":"String","EntityTitle":"String","EntityStatus":"String","InspectionUID":"00000000000000000000000000000000","SheetNumber":"String","SheetTitle":"String","PlanSetID":0,"PlanSetUID":"00000000000000000000000000000000","PlanSetName":"String"}]}],"Headline":"String"},"RemovedSheets":[{"SheetID":0,"PlanSetID":0,"PlanSetUID":"00000000000000000000000000000000","PlanSetName":"String","ProjectID":0,"PageIndex":0,"AttachmentId":"00000000000000000000000000000000","VersionNo":0,"SheetNumber":"String","SheetKey":"String","Title":"String","Discipline":"String","Revision":"String","RevisionDate":"0001-01-01T00:00:00.0000000","WidthPt":0,"HeightPt":0,"ThumbKey":"String","ThumbUrl":"String","ThumbHash":"String","ExtractSource":"String","Confidence":0,"ChangeKind":"String","SupersedesSheetID":0,"IsCurrent":false,"PinCount":0,"UpdatedBy":"String","UpdatedAt":"0001-01-01T00:00:00.0000000","Pins":[{"SheetPinID":0,"SheetID":0,"EntityType":"String","EntityID":0,"EntityUID":"00000000000000000000000000000000","X":0,"Y":0,"Label":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","EntityNo":"String","EntityTitle":"String","EntityStatus":"String","InspectionUID":"00000000000000000000000000000000","SheetNumber":"String","SheetTitle":"String","PlanSetID":0,"PlanSetUID":"00000000000000000000000000000000","PlanSetName":"String"}]}]}