Add UserGpgKeysClient

This commit is contained in:
Henrik Andersson
2016-06-05 10:48:51 +10:00
parent 896814a427
commit df5d5b144f
11 changed files with 267 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Octokit.Internal;
namespace Octokit
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Gpg")]
public class GpgKey
{
public int Id { get; protected set; }
public int? PrimaryKeyId { get; protected set; }
public string KeyId { get; protected set; }
public string PublicKey { get; protected set; }
public IReadOnlyList<EmailAddress> Emails { get; protected set; }
public IReadOnlyList<GpgKey> Subkeys { get; protected set; }
public bool CanSign { get; protected set; }
[Parameter(Key = "can_encrypt_comms")]
public bool CanEncryptCommunications { get; protected set; }
public bool CanEncryptStorage { get; protected set; }
public bool CanCertify { get; protected set; }
public DateTimeOffset CreatedAt { get; protected set; }
public DateTimeOffset? ExpiresAt { get; protected set; }
}
}