-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathDeploymentEnvironment.cs
71 lines (61 loc) · 2.04 KB
/
DeploymentEnvironment.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics;
using System.Text;
using System.Globalization;
namespace Octokit.Models.Response
{
[SuppressMessage("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces",
Justification = "People can use fully qualified names if they want to use both.")]
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class DeploymentEnvironment
{
public DeploymentEnvironment() { }
public DeploymentEnvironment(int id, string nodeID, string name, string url, string htmlUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt)
{
Id = id;
NodeId = nodeID;
Name = name;
Url = url;
HtmlUrl = htmlUrl;
CreatedAt = createdAt;
UpdatedAt = updatedAt;
}
/// <summary>
/// Id of this deployment environment
/// </summary>
public int Id { get; private set; }
/// <summary>
/// GraphQL Node Id
/// </summary>
public string NodeId{ get; private set; }
/// <summary>
/// Environment Name
/// </summary>
public string Name { get; private set; }
/// <summary>
/// Environment API URL
/// </summary>
public string Url { get; private set; }
/// <summary>
/// Environment HTML URL
/// </summary>
public string HtmlUrl { get; private set; }
/// <summary>
/// Date and time that the environment was created.
/// </summary>
public DateTimeOffset CreatedAt { get; private set; }
/// <summary>
/// Date and time that the environment was updated.
/// </summary>
public DateTimeOffset UpdatedAt { get; private set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "Name: {0}, CreatedAt: {1}", Name, CreatedAt);
}
}
}
}