Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IssueAttachment" /> class.
 /// </summary>
 /// <param name="Type">Type (required).</param>
 /// <param name="Links">Links.</param>
 /// <param name="Name">Name.</param>
 public IssueAttachment(string Type = default(string), EmailAddressLinks Links = default(EmailAddressLinks), string Name = default(string))
 {
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for IssueAttachment and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     this.Links = Links;
     this.Name  = Name;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Milestone" /> class.
 /// </summary>
 /// <param name="Type">Type (required).</param>
 /// <param name="Links">Links.</param>
 /// <param name="Name">Name.</param>
 /// <param name="Id">Id.</param>
 public Milestone(string Type = default(string), EmailAddressLinks Links = default(EmailAddressLinks), string Name = default(string), int?Id = default(int?))
 {
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for Milestone and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     this.Links = Links;
     this.Name  = Name;
     this.Id    = Id;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Branchrestriction" /> class.
 /// </summary>
 /// <param name="Type">Type (required).</param>
 /// <param name="Links">Links.</param>
 /// <param name="Id">The branch restriction status&#39; id..</param>
 /// <param name="Kind">The type of restriction that is being applied.</param>
 /// <param name="Users">Users.</param>
 /// <param name="Groups">Groups.</param>
 /// <param name="Value">Value with kind-specific semantics: \&quot;require_approvals_to_merge\&quot; uses it to require a minimum number of approvals on a PR; \&quot;require_passing_builds_to_merge\&quot; uses it to require a minimum number of passing builds..</param>
 public Branchrestriction(string Type = default(string), EmailAddressLinks Links = default(EmailAddressLinks), int?Id = default(int?), KindEnum?Kind = default(KindEnum?), List <Account> Users = default(List <Account>), List <Group> Groups = default(List <Group>), int?Value = default(int?))
 {
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for Branchrestriction and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     this.Links  = Links;
     this.Id     = Id;
     this.Kind   = Kind;
     this.Users  = Users;
     this.Groups = Groups;
     this.Value  = Value;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeployKey" /> class.
 /// </summary>
 /// <param name="Type">Type (required).</param>
 /// <param name="Key">The deploy key value..</param>
 /// <param name="Repository">The repository the deploy key is linked to.</param>
 /// <param name="Comment">The comment parsed from the deploy key (if present).</param>
 /// <param name="Label">The user-defined label for the deploy key.</param>
 /// <param name="AddedOn">AddedOn.</param>
 /// <param name="LastUsed">LastUsed.</param>
 /// <param name="Links">Links.</param>
 /// <param name="Owner">Owner.</param>
 public DeployKey(string Type = default(string), string Key = default(string), string Repository = default(string), string Comment = default(string), string Label = default(string), DateTime?AddedOn = default(DateTime?), DateTime?LastUsed = default(DateTime?), EmailAddressLinks Links = default(EmailAddressLinks), Account Owner = default(Account))
 {
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for DeployKey and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     this.Key        = Key;
     this.Repository = Repository;
     this.Comment    = Comment;
     this.Label      = Label;
     this.AddedOn    = AddedOn;
     this.LastUsed   = LastUsed;
     this.Links      = Links;
     this.Owner      = Owner;
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EmailAddress" /> class.
 /// </summary>
 /// <param name="Type">Type (required).</param>
 /// <param name="IsPrimary">IsPrimary.</param>
 /// <param name="IsConfirmed">IsConfirmed.</param>
 /// <param name="Email">Email.</param>
 /// <param name="Links">Links.</param>
 public EmailAddress(string Type = default(string), bool?IsPrimary = default(bool?), bool?IsConfirmed = default(bool?), string Email = default(string), EmailAddressLinks Links = default(EmailAddressLinks))
 {
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for EmailAddress and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     this.IsPrimary   = IsPrimary;
     this.IsConfirmed = IsConfirmed;
     this.Email       = Email;
     this.Links       = Links;
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SshKey" /> class.
 /// </summary>
 /// <param name="Type">Type (required).</param>
 /// <param name="Uuid">The SSH key&#39;s immutable ID..</param>
 /// <param name="Key">The SSH public key value in OpenSSH format..</param>
 /// <param name="Comment">The comment parsed from the SSH key (if present).</param>
 /// <param name="Label">The user-defined label for the SSH key.</param>
 /// <param name="CreatedOn">CreatedOn.</param>
 /// <param name="LastUsed">LastUsed.</param>
 /// <param name="Links">Links.</param>
 public SshKey(string Type = default(string), string Uuid = default(string), string Key = default(string), string Comment = default(string), string Label = default(string), DateTime?CreatedOn = default(DateTime?), DateTime?LastUsed = default(DateTime?), EmailAddressLinks Links = default(EmailAddressLinks))
 {
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for SshKey and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     this.Uuid      = Uuid;
     this.Key       = Key;
     this.Comment   = Comment;
     this.Label     = Label;
     this.CreatedOn = CreatedOn;
     this.LastUsed  = LastUsed;
     this.Links     = Links;
 }