/// <summary> /// Initializes a new instance of the <see cref="DocumentCreate" /> class. /// </summary> /// <param name="meta">meta (required).</param> /// <param name="content">content (required).</param> /// <param name="org">The organization Name. Specify either `orgID` or `org`..</param> /// <param name="orgID">The organization Name. Specify either `orgID` or `org`..</param> /// <param name="labels">An array of label IDs to be added as labels to the document..</param> public DocumentCreate(DocumentMeta meta = default(DocumentMeta), Object content = default(Object), string org = default(string), string orgID = default(string), List <string> labels = default(List <string>)) { // to ensure "meta" is required (not null) if (meta == null) { throw new InvalidDataException("meta is a required property for DocumentCreate and cannot be null"); } else { this.Meta = meta; } // to ensure "content" is required (not null) if (content == null) { throw new InvalidDataException("content is a required property for DocumentCreate and cannot be null"); } else { this.Content = content; } this.Org = org; this.OrgID = orgID; this.Labels = labels; }
/// <summary> /// Initializes a new instance of the <see cref="DocumentUpdate" /> class. /// </summary> /// <param name="meta">meta.</param> /// <param name="content">content.</param> public DocumentUpdate(DocumentMeta meta = default(DocumentMeta), Object content = default(Object)) { this.Meta = meta; this.Content = content; }