Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Job" /> class.
 /// </summary>
 /// <param name="Name">Name (required).</param>
 /// <param name="ErrorCode">ErrorCode (default to 0.0).</param>
 /// <param name="ErrorMsg">ErrorMsg (default to &quot;&quot;).</param>
 /// <param name="StepORstage">StepORstage (default to &quot;&quot;).</param>
 /// <param name="Step">Step.</param>
 /// <param name="RestartStep">RestartStep.</param>
 /// <param name="Status">Status (required) (default to &quot;Staged&quot;).</param>
 /// <param name="StatusMsg">StatusMsg (default to &quot;&quot;).</param>
 /// <param name="Entries">Entries.</param>
 /// <param name="SchemaVersion">SchemaVersion (default to 1.0).</param>
 /// <param name="Doctype">Doctype.</param>
 /// <param name="Document">Document.</param>
 /// <param name="Validators">Validators.</param>
 /// <param name="IsFake">IsFake.</param>
 /// <param name="OrganizationId">OrganizationId (required).</param>
 /// <param name="WorkflowId">WorkflowId (required).</param>
 /// <param name="Project">Project (required).</param>
 /// <param name="Level">Level (required) (default to 1.0).</param>
 /// <param name="DocumentId">DocumentId.</param>
 /// <param name="Extractions">Extractions.</param>
 /// <param name="Id">Id.</param>
 /// <param name="CreatedAt">CreatedAt (required).</param>
 /// <param name="UpdatedAt">UpdatedAt (required).</param>
 public Job(string Name = default(string), double?ErrorCode = 0.0, string ErrorMsg = "", string StepORstage = "", Object Step = default(Object), string RestartStep = default(string), string Status = "Staged", string StatusMsg = "", List <object> Entries = default(List <object>), double?SchemaVersion = 1.0, Object Doctype = default(Object), Object Document = default(Object), Object Validators = default(Object), bool?IsFake = default(bool?), ObjectID OrganizationId = default(ObjectID), ObjectID WorkflowId = default(ObjectID), Object Project = default(Object), double?Level = 1.0, Object DocumentId = default(Object), Object Extractions = default(Object), ObjectID Id = default(ObjectID), DateTime?CreatedAt = default(DateTime?), DateTime?UpdatedAt = default(DateTime?))
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for Job and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Status" is required (not null)
     if (Status == null)
     {
         throw new InvalidDataException("Status is a required property for Job and cannot be null");
     }
     else
     {
         this.Status = Status;
     }
     // to ensure "OrganizationId" is required (not null)
     if (OrganizationId == null)
     {
         throw new InvalidDataException("OrganizationId is a required property for Job and cannot be null");
     }
     else
     {
         this.OrganizationId = OrganizationId;
     }
     // to ensure "WorkflowId" is required (not null)
     if (WorkflowId == null)
     {
         throw new InvalidDataException("WorkflowId is a required property for Job and cannot be null");
     }
     else
     {
         this.WorkflowId = WorkflowId;
     }
     // to ensure "Project" is required (not null)
     if (Project == null)
     {
         throw new InvalidDataException("Project is a required property for Job and cannot be null");
     }
     else
     {
         this.Project = Project;
     }
     // to ensure "Level" is required (not null)
     if (Level == null)
     {
         throw new InvalidDataException("Level is a required property for Job and cannot be null");
     }
     else
     {
         this.Level = Level;
     }
     // to ensure "CreatedAt" is required (not null)
     if (CreatedAt == null)
     {
         throw new InvalidDataException("CreatedAt is a required property for Job and cannot be null");
     }
     else
     {
         this.CreatedAt = CreatedAt;
     }
     // to ensure "UpdatedAt" is required (not null)
     if (UpdatedAt == null)
     {
         throw new InvalidDataException("UpdatedAt is a required property for Job and cannot be null");
     }
     else
     {
         this.UpdatedAt = UpdatedAt;
     }
     // use default value if no "ErrorCode" provided
     if (ErrorCode == null)
     {
         this.ErrorCode = 0.0;
     }
     else
     {
         this.ErrorCode = ErrorCode;
     }
     // use default value if no "ErrorMsg" provided
     if (ErrorMsg == null)
     {
         this.ErrorMsg = "";
     }
     else
     {
         this.ErrorMsg = ErrorMsg;
     }
     // use default value if no "StepORstage" provided
     if (StepORstage == null)
     {
         this.StepORstage = "";
     }
     else
     {
         this.StepORstage = StepORstage;
     }
     this.Step        = Step;
     this.RestartStep = RestartStep;
     // use default value if no "StatusMsg" provided
     if (StatusMsg == null)
     {
         this.StatusMsg = "";
     }
     else
     {
         this.StatusMsg = StatusMsg;
     }
     this.Entries = Entries;
     // use default value if no "SchemaVersion" provided
     if (SchemaVersion == null)
     {
         this.SchemaVersion = 1.0;
     }
     else
     {
         this.SchemaVersion = SchemaVersion;
     }
     this.Doctype     = Doctype;
     this.Document    = Document;
     this.Validators  = Validators;
     this.IsFake      = IsFake;
     this.DocumentId  = DocumentId;
     this.Extractions = Extractions;
     this.Id          = Id;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Segment" /> class.
 /// </summary>
 /// <param name="OrganizationId">OrganizationId (required).</param>
 /// <param name="Doctype">Doctype (required).</param>
 /// <param name="ExtractionTemplateId">ExtractionTemplateId (required).</param>
 /// <param name="Type">Type (required).</param>
 /// <param name="DisplayName">DisplayName (required).</param>
 /// <param name="Extractions">Extractions.</param>
 /// <param name="Id">Id.</param>
 /// <param name="CreatedAt">CreatedAt (required).</param>
 /// <param name="UpdatedAt">UpdatedAt (required).</param>
 public Segment(ObjectID OrganizationId = default(ObjectID), Object Doctype = default(Object), ObjectID ExtractionTemplateId = default(ObjectID), string Type = default(string), string DisplayName = default(string), List <Object> Extractions = default(List <Object>), ObjectID Id = default(ObjectID), DateTime?CreatedAt = default(DateTime?), DateTime?UpdatedAt = default(DateTime?))
 {
     // to ensure "OrganizationId" is required (not null)
     if (OrganizationId == null)
     {
         throw new InvalidDataException("OrganizationId is a required property for Segment and cannot be null");
     }
     else
     {
         this.OrganizationId = OrganizationId;
     }
     // to ensure "Doctype" is required (not null)
     if (Doctype == null)
     {
         throw new InvalidDataException("Doctype is a required property for Segment and cannot be null");
     }
     else
     {
         this.Doctype = Doctype;
     }
     // to ensure "ExtractionTemplateId" is required (not null)
     if (ExtractionTemplateId == null)
     {
         throw new InvalidDataException("ExtractionTemplateId is a required property for Segment and cannot be null");
     }
     else
     {
         this.ExtractionTemplateId = ExtractionTemplateId;
     }
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for Segment and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     // to ensure "DisplayName" is required (not null)
     if (DisplayName == null)
     {
         throw new InvalidDataException("DisplayName is a required property for Segment and cannot be null");
     }
     else
     {
         this.DisplayName = DisplayName;
     }
     // to ensure "CreatedAt" is required (not null)
     if (CreatedAt == null)
     {
         throw new InvalidDataException("CreatedAt is a required property for Segment and cannot be null");
     }
     else
     {
         this.CreatedAt = CreatedAt;
     }
     // to ensure "UpdatedAt" is required (not null)
     if (UpdatedAt == null)
     {
         throw new InvalidDataException("UpdatedAt is a required property for Segment and cannot be null");
     }
     else
     {
         this.UpdatedAt = UpdatedAt;
     }
     this.Extractions = Extractions;
     this.Id          = Id;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Extraction" /> class.
 /// </summary>
 /// <param name="OrganizationId">OrganizationId (required).</param>
 /// <param name="Doctype">Doctype (required).</param>
 /// <param name="ExtractionTemplateId">ExtractionTemplateId (required).</param>
 /// <param name="Kind">Kind (required).</param>
 /// <param name="Type">Type (required).</param>
 /// <param name="DisplayName">DisplayName (required).</param>
 /// <param name="IsTraining">IsTraining (default to false).</param>
 /// <param name="ValidatedDocsCount">ValidatedDocsCount (default to 0.0).</param>
 /// <param name="TrainedDocsCount">TrainedDocsCount (default to 0.0).</param>
 /// <param name="ValidationTemplates">ValidationTemplates.</param>
 /// <param name="Segments">Segments.</param>
 /// <param name="Id">Id.</param>
 /// <param name="CreatedAt">CreatedAt (required).</param>
 /// <param name="UpdatedAt">UpdatedAt (required).</param>
 public Extraction(ObjectID OrganizationId = default(ObjectID), Object Doctype = default(Object), ObjectID ExtractionTemplateId = default(ObjectID), string Kind = default(string), string Type = default(string), string DisplayName = default(string), bool?IsTraining = false, double?ValidatedDocsCount = 0.0, double?TrainedDocsCount = 0.0, List <object> ValidationTemplates = default(List <object>), List <Object> Segments = default(List <Object>), ObjectID Id = default(ObjectID), DateTime?CreatedAt = default(DateTime?), DateTime?UpdatedAt = default(DateTime?))
 {
     // to ensure "OrganizationId" is required (not null)
     if (OrganizationId == null)
     {
         throw new InvalidDataException("OrganizationId is a required property for Extraction and cannot be null");
     }
     else
     {
         this.OrganizationId = OrganizationId;
     }
     // to ensure "Doctype" is required (not null)
     if (Doctype == null)
     {
         throw new InvalidDataException("Doctype is a required property for Extraction and cannot be null");
     }
     else
     {
         this.Doctype = Doctype;
     }
     // to ensure "ExtractionTemplateId" is required (not null)
     if (ExtractionTemplateId == null)
     {
         throw new InvalidDataException("ExtractionTemplateId is a required property for Extraction and cannot be null");
     }
     else
     {
         this.ExtractionTemplateId = ExtractionTemplateId;
     }
     // to ensure "Kind" is required (not null)
     if (Kind == null)
     {
         throw new InvalidDataException("Kind is a required property for Extraction and cannot be null");
     }
     else
     {
         this.Kind = Kind;
     }
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for Extraction and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     // to ensure "DisplayName" is required (not null)
     if (DisplayName == null)
     {
         throw new InvalidDataException("DisplayName is a required property for Extraction and cannot be null");
     }
     else
     {
         this.DisplayName = DisplayName;
     }
     // to ensure "CreatedAt" is required (not null)
     if (CreatedAt == null)
     {
         throw new InvalidDataException("CreatedAt is a required property for Extraction and cannot be null");
     }
     else
     {
         this.CreatedAt = CreatedAt;
     }
     // to ensure "UpdatedAt" is required (not null)
     if (UpdatedAt == null)
     {
         throw new InvalidDataException("UpdatedAt is a required property for Extraction and cannot be null");
     }
     else
     {
         this.UpdatedAt = UpdatedAt;
     }
     // use default value if no "IsTraining" provided
     if (IsTraining == null)
     {
         this.IsTraining = false;
     }
     else
     {
         this.IsTraining = IsTraining;
     }
     // use default value if no "ValidatedDocsCount" provided
     if (ValidatedDocsCount == null)
     {
         this.ValidatedDocsCount = 0.0;
     }
     else
     {
         this.ValidatedDocsCount = ValidatedDocsCount;
     }
     // use default value if no "TrainedDocsCount" provided
     if (TrainedDocsCount == null)
     {
         this.TrainedDocsCount = 0.0;
     }
     else
     {
         this.TrainedDocsCount = TrainedDocsCount;
     }
     this.ValidationTemplates = ValidationTemplates;
     this.Segments            = Segments;
     this.Id = Id;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="User" /> class.
 /// </summary>
 /// <param name="FirstName">FirstName.</param>
 /// <param name="LastName">LastName.</param>
 /// <param name="RoleId">RoleId (required).</param>
 /// <param name="RoleName">RoleName.</param>
 /// <param name="Levels">Levels (required).</param>
 /// <param name="Realm">Realm.</param>
 /// <param name="Username">Username.</param>
 /// <param name="Credentials">Credentials.</param>
 /// <param name="Challenges">Challenges.</param>
 /// <param name="Email">Email (required).</param>
 /// <param name="EmailVerified">EmailVerified.</param>
 /// <param name="Status">Status.</param>
 /// <param name="Created">Created.</param>
 /// <param name="LastUpdated">LastUpdated.</param>
 /// <param name="Id">Id.</param>
 /// <param name="CreatedAt">CreatedAt (required).</param>
 /// <param name="UpdatedAt">UpdatedAt (required).</param>
 /// <param name="OrganizationId">OrganizationId.</param>
 public User(string FirstName = default(string), string LastName = default(string), ObjectID RoleId = default(ObjectID), string RoleName = default(string), List <double?> Levels = default(List <double?>), string Realm = default(string), string Username = default(string), Object Credentials = default(Object), Object Challenges = default(Object), string Email = default(string), bool?EmailVerified = default(bool?), string Status = default(string), DateTime?Created = default(DateTime?), DateTime?LastUpdated = default(DateTime?), ObjectID Id = default(ObjectID), DateTime?CreatedAt = default(DateTime?), DateTime?UpdatedAt = default(DateTime?), ObjectID OrganizationId = default(ObjectID))
 {
     // to ensure "RoleId" is required (not null)
     if (RoleId == null)
     {
         throw new InvalidDataException("RoleId is a required property for User and cannot be null");
     }
     else
     {
         this.RoleId = RoleId;
     }
     // to ensure "Levels" is required (not null)
     if (Levels == null)
     {
         throw new InvalidDataException("Levels is a required property for User and cannot be null");
     }
     else
     {
         this.Levels = Levels;
     }
     // to ensure "Email" is required (not null)
     if (Email == null)
     {
         throw new InvalidDataException("Email is a required property for User and cannot be null");
     }
     else
     {
         this.Email = Email;
     }
     // to ensure "CreatedAt" is required (not null)
     if (CreatedAt == null)
     {
         throw new InvalidDataException("CreatedAt is a required property for User and cannot be null");
     }
     else
     {
         this.CreatedAt = CreatedAt;
     }
     // to ensure "UpdatedAt" is required (not null)
     if (UpdatedAt == null)
     {
         throw new InvalidDataException("UpdatedAt is a required property for User and cannot be null");
     }
     else
     {
         this.UpdatedAt = UpdatedAt;
     }
     this.FirstName      = FirstName;
     this.LastName       = LastName;
     this.RoleName       = RoleName;
     this.Realm          = Realm;
     this.Username       = Username;
     this.Credentials    = Credentials;
     this.Challenges     = Challenges;
     this.EmailVerified  = EmailVerified;
     this.Status         = Status;
     this.Created        = Created;
     this.LastUpdated    = LastUpdated;
     this.Id             = Id;
     this.OrganizationId = OrganizationId;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="JobValidators" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 public JobValidators(ObjectID Id = default(ObjectID))
 {
     this.Id = Id;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Workflow" /> class.
 /// </summary>
 /// <param name="Name">Name (required).</param>
 /// <param name="Definition">Definition (required).</param>
 /// <param name="OrganizationId">OrganizationId (required).</param>
 /// <param name="Id">Id.</param>
 /// <param name="CreatedAt">CreatedAt (required).</param>
 /// <param name="UpdatedAt">UpdatedAt (required).</param>
 public Workflow(string Name = default(string), string Definition = default(string), ObjectID OrganizationId = default(ObjectID), ObjectID Id = default(ObjectID), DateTime?CreatedAt = default(DateTime?), DateTime?UpdatedAt = default(DateTime?))
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for Workflow and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Definition" is required (not null)
     if (Definition == null)
     {
         throw new InvalidDataException("Definition is a required property for Workflow and cannot be null");
     }
     else
     {
         this.Definition = Definition;
     }
     // to ensure "OrganizationId" is required (not null)
     if (OrganizationId == null)
     {
         throw new InvalidDataException("OrganizationId is a required property for Workflow and cannot be null");
     }
     else
     {
         this.OrganizationId = OrganizationId;
     }
     // to ensure "CreatedAt" is required (not null)
     if (CreatedAt == null)
     {
         throw new InvalidDataException("CreatedAt is a required property for Workflow and cannot be null");
     }
     else
     {
         this.CreatedAt = CreatedAt;
     }
     // to ensure "UpdatedAt" is required (not null)
     if (UpdatedAt == null)
     {
         throw new InvalidDataException("UpdatedAt is a required property for Workflow and cannot be null");
     }
     else
     {
         this.UpdatedAt = UpdatedAt;
     }
     this.Id = Id;
 }
Example #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentType" /> class.
 /// </summary>
 /// <param name="Name">Name (required).</param>
 /// <param name="Type">Type (required).</param>
 /// <param name="Samples">Samples.</param>
 /// <param name="ProcessingDefaults">ProcessingDefaults.</param>
 /// <param name="Id">Id.</param>
 /// <param name="OrganizationId">OrganizationId.</param>
 /// <param name="CreatedAt">CreatedAt (required).</param>
 /// <param name="UpdatedAt">UpdatedAt (required).</param>
 public DocumentType(string Name = default(string), string Type = default(string), List <object> Samples = default(List <object>), DocumentTypeProcessingDefaults ProcessingDefaults = default(DocumentTypeProcessingDefaults), ObjectID Id = default(ObjectID), ObjectID OrganizationId = default(ObjectID), DateTime?CreatedAt = default(DateTime?), DateTime?UpdatedAt = default(DateTime?))
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for DocumentType and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for DocumentType and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     // to ensure "CreatedAt" is required (not null)
     if (CreatedAt == null)
     {
         throw new InvalidDataException("CreatedAt is a required property for DocumentType and cannot be null");
     }
     else
     {
         this.CreatedAt = CreatedAt;
     }
     // to ensure "UpdatedAt" is required (not null)
     if (UpdatedAt == null)
     {
         throw new InvalidDataException("UpdatedAt is a required property for DocumentType and cannot be null");
     }
     else
     {
         this.UpdatedAt = UpdatedAt;
     }
     this.Samples            = Samples;
     this.ProcessingDefaults = ProcessingDefaults;
     this.Id             = Id;
     this.OrganizationId = OrganizationId;
 }