/// <summary> /// Initializes a new instance of the <see cref="SnippetCommit" /> class. /// </summary> /// <param name="Type">Type (required).</param> /// <param name="Hash">Hash.</param> /// <param name="Date">Date.</param> /// <param name="Author">Author.</param> /// <param name="Message">Message.</param> /// <param name="Summary">Summary.</param> /// <param name="Parents">Parents.</param> /// <param name="Links">Links.</param> /// <param name="Snippet">Snippet.</param> public SnippetCommit(string Type = default(string), string Hash = default(string), DateTime?Date = default(DateTime?), Author Author = default(Author), string Message = default(string), CommentContent Summary = default(CommentContent), List <BaseCommit> Parents = default(List <BaseCommit>), SnippetCommitLinks Links = default(SnippetCommitLinks), Snippet Snippet = default(Snippet)) { // to ensure "Type" is required (not null) if (Type == null) { throw new InvalidDataException("Type is a required property for SnippetCommit and cannot be null"); } else { this.Type = Type; } this.Hash = Hash; this.Date = Date; this.Author = Author; this.Message = Message; this.Summary = Summary; this.Parents = Parents; this.Links = Links; this.Snippet = Snippet; }
/// <summary> /// Initializes a new instance of the <see cref="Commit" /> class. /// </summary> /// <param name="Type">Type (required).</param> /// <param name="Hash">Hash.</param> /// <param name="Date">Date.</param> /// <param name="Author">Author.</param> /// <param name="Message">Message.</param> /// <param name="Summary">Summary.</param> /// <param name="Parents">Parents.</param> /// <param name="Repository">Repository.</param> /// <param name="Participants">Participants.</param> public Commit(string Type = default(string), string Hash = default(string), DateTime?Date = default(DateTime?), Author Author = default(Author), string Message = default(string), CommentContent Summary = default(CommentContent), List <BaseCommit> Parents = default(List <BaseCommit>), Repository Repository = default(Repository), List <Participant> Participants = default(List <Participant>)) { // to ensure "Type" is required (not null) if (Type == null) { throw new InvalidDataException("Type is a required property for Commit and cannot be null"); } else { this.Type = Type; } this.Hash = Hash; this.Date = Date; this.Author = Author; this.Message = Message; this.Summary = Summary; this.Parents = Parents; this.Repository = Repository; this.Participants = Participants; }
/// <summary> /// Initializes a new instance of the <see cref="PullrequestRendered" /> class. /// </summary> /// <param name="Title">Title.</param> /// <param name="Description">Description.</param> /// <param name="Reason">Reason.</param> public PullrequestRendered(CommentContent Title = default(CommentContent), CommentContent Description = default(CommentContent), CommentContent Reason = default(CommentContent)) { this.Title = Title; this.Description = Description; this.Reason = Reason; }
/// <summary> /// Initializes a new instance of the <see cref="PullrequestComment" /> class. /// </summary> /// <param name="Type">Type (required).</param> /// <param name="Id">Id.</param> /// <param name="CreatedOn">CreatedOn.</param> /// <param name="UpdatedOn">UpdatedOn.</param> /// <param name="Content">Content.</param> /// <param name="User">User.</param> /// <param name="Deleted">Deleted.</param> /// <param name="Parent">Parent.</param> /// <param name="Inline">Inline.</param> /// <param name="Links">Links.</param> /// <param name="Pullrequest">Pullrequest.</param> public PullrequestComment(string Type = default(string), int?Id = default(int?), DateTime?CreatedOn = default(DateTime?), DateTime?UpdatedOn = default(DateTime?), CommentContent Content = default(CommentContent), User User = default(User), bool?Deleted = default(bool?), Comment Parent = default(Comment), CommentInline Inline = default(CommentInline), CommentLinks Links = default(CommentLinks), Pullrequest Pullrequest = default(Pullrequest)) { // to ensure "Type" is required (not null) if (Type == null) { throw new InvalidDataException("Type is a required property for PullrequestComment and cannot be null"); } else { this.Type = Type; } this.Id = Id; this.CreatedOn = CreatedOn; this.UpdatedOn = UpdatedOn; this.Content = Content; this.User = User; this.Deleted = Deleted; this.Parent = Parent; this.Inline = Inline; this.Links = Links; this.Pullrequest = Pullrequest; }
/// <summary> /// Initializes a new instance of the <see cref="IssueChange" /> class. /// </summary> /// <param name="Type">Type (required).</param> /// <param name="Links">Links.</param> /// <param name="Name">Name.</param> /// <param name="CreatedOn">CreatedOn.</param> /// <param name="User">User.</param> /// <param name="Issue">Issue.</param> /// <param name="Changes">Changes.</param> /// <param name="Message">Message.</param> public IssueChange(string Type = default(string), IssueChangeLinks Links = default(IssueChangeLinks), string Name = default(string), DateTime?CreatedOn = default(DateTime?), User User = default(User), Issue Issue = default(Issue), IssueChangeChanges Changes = default(IssueChangeChanges), CommentContent Message = default(CommentContent)) { // to ensure "Type" is required (not null) if (Type == null) { throw new InvalidDataException("Type is a required property for IssueChange and cannot be null"); } else { this.Type = Type; } this.Links = Links; this.Name = Name; this.CreatedOn = CreatedOn; this.User = User; this.Issue = Issue; this.Changes = Changes; this.Message = Message; }
/// <summary> /// Initializes a new instance of the <see cref="Issue" /> class. /// </summary> /// <param name="Type">Type (required).</param> /// <param name="Links">Links.</param> /// <param name="Id">Id.</param> /// <param name="Repository">Repository.</param> /// <param name="Title">Title.</param> /// <param name="Reporter">Reporter.</param> /// <param name="Assignee">Assignee.</param> /// <param name="CreatedOn">CreatedOn.</param> /// <param name="UpdatedOn">UpdatedOn.</param> /// <param name="EditedOn">EditedOn.</param> /// <param name="State">State.</param> /// <param name="Kind">Kind.</param> /// <param name="Priority">Priority.</param> /// <param name="Milestone">Milestone.</param> /// <param name="_Version">_Version.</param> /// <param name="Component">Component.</param> /// <param name="Votes">Votes.</param> /// <param name="Content">Content.</param> public Issue(string Type = default(string), IssueLinks Links = default(IssueLinks), int?Id = default(int?), Repository Repository = default(Repository), string Title = default(string), User Reporter = default(User), User Assignee = default(User), DateTime?CreatedOn = default(DateTime?), DateTime?UpdatedOn = default(DateTime?), DateTime?EditedOn = default(DateTime?), StateEnum?State = default(StateEnum?), KindEnum?Kind = default(KindEnum?), PriorityEnum?Priority = default(PriorityEnum?), Milestone Milestone = default(Milestone), ModelVersion _Version = default(ModelVersion), Component Component = default(Component), int?Votes = default(int?), CommentContent Content = default(CommentContent)) { // to ensure "Type" is required (not null) if (Type == null) { throw new InvalidDataException("Type is a required property for Issue and cannot be null"); } else { this.Type = Type; } this.Links = Links; this.Id = Id; this.Repository = Repository; this.Title = Title; this.Reporter = Reporter; this.Assignee = Assignee; this.CreatedOn = CreatedOn; this.UpdatedOn = UpdatedOn; this.EditedOn = EditedOn; this.State = State; this.Kind = Kind; this.Priority = Priority; this.Milestone = Milestone; this._Version = _Version; this.Component = Component; this.Votes = Votes; this.Content = Content; }
/// <summary> /// Initializes a new instance of the <see cref="Pullrequest" /> class. /// </summary> /// <param name="Type">Type (required).</param> /// <param name="Links">Links.</param> /// <param name="Id">The pull request's unique ID. Note that pull request IDs are only unique within their associated repository..</param> /// <param name="Title">Title of the pull request..</param> /// <param name="Rendered">Rendered.</param> /// <param name="Summary">Summary.</param> /// <param name="State">The pull request's current status..</param> /// <param name="Author">Author.</param> /// <param name="Source">Source.</param> /// <param name="Destination">Destination.</param> /// <param name="MergeCommit">MergeCommit.</param> /// <param name="CommentCount">The number of comments for a specific pull request..</param> /// <param name="TaskCount">The number of open tasks for a specific pull request..</param> /// <param name="CloseSourceBranch">A boolean flag indicating if merging the pull request closes the source branch..</param> /// <param name="ClosedBy">ClosedBy.</param> /// <param name="Reason">Explains why a pull request was declined. This field is only applicable to pull requests in rejected state..</param> /// <param name="CreatedOn">The ISO8601 timestamp the request was created..</param> /// <param name="UpdatedOn">The ISO8601 timestamp the request was last updated..</param> /// <param name="Reviewers">The list of users that were added as reviewers on this pull request when it was created. For performance reasons, the API only includes this list on a pull request's `self` URL..</param> /// <param name="Participants"> The list of users that are collaborating on this pull request. Collaborators are user that: * are added to the pull request as a reviewer (part of the reviewers list) * are not explicit reviewers, but have commented on the pull request * are not explicit reviewers, but have approved the pull request Each user is wrapped in an object that indicates the user's role and whether they have approved the pull request. For performance reasons, the API only returns this list when an API requests a pull request by id. .</param> public Pullrequest(string Type = default(string), PullrequestLinks Links = default(PullrequestLinks), int?Id = default(int?), string Title = default(string), PullrequestRendered Rendered = default(PullrequestRendered), CommentContent Summary = default(CommentContent), StateEnum?State = default(StateEnum?), Account Author = default(Account), PullrequestEndpoint Source = default(PullrequestEndpoint), PullrequestEndpoint Destination = default(PullrequestEndpoint), PullrequestEndpointCommit MergeCommit = default(PullrequestEndpointCommit), int?CommentCount = default(int?), int?TaskCount = default(int?), bool?CloseSourceBranch = default(bool?), Account ClosedBy = default(Account), string Reason = default(string), DateTime?CreatedOn = default(DateTime?), DateTime?UpdatedOn = default(DateTime?), List <Account> Reviewers = default(List <Account>), List <Participant> Participants = default(List <Participant>)) { // to ensure "Type" is required (not null) if (Type == null) { throw new InvalidDataException("Type is a required property for Pullrequest and cannot be null"); } else { this.Type = Type; } this.Links = Links; this.Id = Id; this.Title = Title; this.Rendered = Rendered; this.Summary = Summary; this.State = State; this.Author = Author; this.Source = Source; this.Destination = Destination; this.MergeCommit = MergeCommit; this.CommentCount = CommentCount; this.TaskCount = TaskCount; this.CloseSourceBranch = CloseSourceBranch; this.ClosedBy = ClosedBy; this.Reason = Reason; this.CreatedOn = CreatedOn; this.UpdatedOn = UpdatedOn; this.Reviewers = Reviewers; this.Participants = Participants; }