From 5c5c8b4fa11df13f32b98faa3ec3aa3be4fad678 Mon Sep 17 00:00:00 2001
From: Nick Floyd <139819+nickfloyd@users.noreply.github.com>
Date: Thu, 8 Sep 2022 13:53:46 +0000
Subject: [PATCH] conversion from protected to private
---
Octokit/Models/Response/AccessToken.cs | 4 +-
Octokit/Models/Response/Activity.cs | 18 ++--
.../ActivityPayloads/ActivityPayload.cs | 6 +-
.../ActivityPayloads/CheckRunEventPayload.cs | 6 +-
.../CheckSuiteEventPayload.cs | 4 +-
.../ActivityPayloads/CommitCommentPayload.cs | 2 +-
.../ActivityPayloads/CreateEventPayload.cs | 8 +-
.../ActivityPayloads/DeleteEventPayload.cs | 4 +-
.../ActivityPayloads/ForkEventPayload.cs | 2 +-
.../ActivityPayloads/IssueCommentPayload.cs | 6 +-
.../ActivityPayloads/IssueEventPayload.cs | 4 +-
.../PullRequestCommentPayload.cs | 6 +-
.../PullRequestEventPayload.cs | 6 +-
.../PullRequestReviewEventPayload.cs | 6 +-
.../ActivityPayloads/PushEventPayload.cs | 8 +-
.../ActivityPayloads/PushWebhookCommit.cs | 22 ++---
.../ActivityPayloads/PushWebhookCommitter.cs | 6 +-
.../ActivityPayloads/PushWebhookPayload.cs | 24 ++---
.../ActivityPayloads/ReleaseEventPayload.cs | 4 +-
.../ActivityPayloads/StarredEventPayload.cs | 2 +-
.../ActivityPayloads/StatusEventPayload.cs | 24 ++---
Octokit/Models/Response/ApiError.cs | 8 +-
Octokit/Models/Response/ApiErrorDetail.cs | 10 +--
Octokit/Models/Response/Application.cs | 4 +-
Octokit/Models/Response/Blob.cs | 12 +--
Octokit/Models/Response/BlobReference.cs | 4 +-
Octokit/Models/Response/Branch.cs | 8 +-
Octokit/Models/Response/BranchProtection.cs | 14 +--
Octokit/Models/Response/CheckRun.cs | 30 +++----
Octokit/Models/Response/CheckRunAnnotation.cs | 26 +++---
.../Models/Response/CheckRunOutputResponse.cs | 10 +--
.../Response/CheckRunRequestedAction.cs | 2 +-
Octokit/Models/Response/CheckRunsResponse.cs | 4 +-
Octokit/Models/Response/CheckSuite.cs | 22 ++---
.../Response/CheckSuitePreferencesResponse.cs | 4 +-
.../Models/Response/CheckSuitesResponse.cs | 4 +-
.../Models/Response/CollaboratorPermission.cs | 4 +-
.../Models/Response/CombinedCommitStatus.cs | 12 +--
Octokit/Models/Response/Commit.cs | 14 +--
Octokit/Models/Response/CommitComment.cs | 28 +++---
Octokit/Models/Response/CommitStatus.cs | 20 ++---
Octokit/Models/Response/CompareResult.cs | 26 +++---
Octokit/Models/Response/Contributor.cs | 8 +-
Octokit/Models/Response/DeployKey.cs | 8 +-
Octokit/Models/Response/Deployment.cs | 30 +++----
Octokit/Models/Response/DeploymentStatus.cs | 26 +++---
Octokit/Models/Response/EmailAddress.cs | 14 +--
.../MaintenanceModeActiveProcesses.cs | 4 +-
.../Enterprise/PreReceiveEnvironment.cs | 18 ++--
.../PreReceiveEnvironmentDownload.cs | 8 +-
.../Response/Enterprise/PreReceiveHook.cs | 14 +--
Octokit/Models/Response/EventInfo.cs | 30 +++----
Octokit/Models/Response/Feed.cs | 16 ++--
Octokit/Models/Response/FeedLink.cs | 18 ++--
Octokit/Models/Response/Gist.cs | 34 +++----
Octokit/Models/Response/GistChangeStatus.cs | 8 +-
Octokit/Models/Response/GistComment.cs | 16 ++--
Octokit/Models/Response/GistFile.cs | 14 +--
Octokit/Models/Response/GistFork.cs | 10 +--
Octokit/Models/Response/GistHistory.cs | 12 +--
Octokit/Models/Response/GitHubApp.cs | 18 ++--
Octokit/Models/Response/GitHubCommit.cs | 16 ++--
Octokit/Models/Response/GitHubCommitFile.cs | 22 ++---
Octokit/Models/Response/GitHubCommitStats.cs | 6 +-
Octokit/Models/Response/GitIgnoreTemplate.cs | 4 +-
Octokit/Models/Response/GitTag.cs | 10 +--
Octokit/Models/Response/GpgKey.cs | 24 ++---
Octokit/Models/Response/Installation.cs | 14 +--
.../Response/InstallationPermissions.cs | 30 +++----
.../Models/Response/InstallationsResponse.cs | 6 +-
Octokit/Models/Response/Issue.cs | 52 +++++------
Octokit/Models/Response/IssueComment.cs | 20 ++---
Octokit/Models/Response/IssueEvent.cs | 26 +++---
.../Models/Response/IssueEventProjectCard.cs | 12 +--
Octokit/Models/Response/Label.cs | 14 +--
Octokit/Models/Response/License.cs | 16 ++--
Octokit/Models/Response/LicenseMetadata.cs | 2 +-
Octokit/Models/Response/Merge.cs | 16 ++--
Octokit/Models/Response/Migration.cs | 4 +-
Octokit/Models/Response/Milestone.cs | 30 +++----
Octokit/Models/Response/Notification.cs | 16 ++--
Octokit/Models/Response/NotificationInfo.cs | 8 +-
Octokit/Models/Response/Organization.cs | 28 +++---
.../Models/Response/OrganizationMembership.cs | 12 +--
.../OrganizationMembershipInvitation.cs | 14 +--
Octokit/Models/Response/Page.cs | 10 +--
Octokit/Models/Response/PagesBuild.cs | 16 ++--
Octokit/Models/Response/Participation.cs | 4 +-
Octokit/Models/Response/Project.cs | 24 ++---
Octokit/Models/Response/ProjectCard.cs | 18 ++--
Octokit/Models/Response/ProjectColumn.cs | 12 +--
Octokit/Models/Response/PublicKey.cs | 8 +-
Octokit/Models/Response/PullRequest.cs | 76 ++++++++--------
Octokit/Models/Response/PullRequestCommit.cs | 18 ++--
Octokit/Models/Response/PullRequestFile.cs | 22 ++---
Octokit/Models/Response/PullRequestMerge.cs | 6 +-
Octokit/Models/Response/PullRequestReview.cs | 20 ++---
.../Response/PullRequestReviewComment.cs | 38 ++++----
Octokit/Models/Response/Reaction.cs | 9 +-
Octokit/Models/Response/ReactionSummary.cs | 18 ++--
Octokit/Models/Response/ReadmeResponse.cs | 12 +--
Octokit/Models/Response/Reference.cs | 8 +-
Octokit/Models/Response/Release.cs | 36 ++++----
Octokit/Models/Response/ReleaseAsset.cs | 26 +++---
Octokit/Models/Response/RenameInfo.cs | 4 +-
.../Models/Response/RepositoriesResponse.cs | 6 +-
Octokit/Models/Response/Repository.cs | 88 +++++++++----------
Octokit/Models/Response/RepositoryContent.cs | 6 +-
.../Response/RepositoryContentChangeSet.cs | 6 +-
.../Response/RepositoryContentLicense.cs | 2 +-
.../Models/Response/RepositoryContributor.cs | 4 +-
.../Models/Response/RepositoryInvitation.cs | 18 ++--
Octokit/Models/Response/RepositoryLanguage.cs | 4 +-
Octokit/Models/Response/RepositoryStar.cs | 6 +-
Octokit/Models/Response/RepositoryTag.cs | 10 +--
Octokit/Models/Response/RepositoryTopics.cs | 2 +-
.../Models/Response/RepositoryTrafficClone.cs | 12 +--
.../Models/Response/RepositoryTrafficPath.cs | 8 +-
.../Response/RepositoryTrafficReferrer.cs | 6 +-
.../Models/Response/RepositoryTrafficView.cs | 12 +--
Octokit/Models/Response/RequestedReviews.cs | 4 +-
Octokit/Models/Response/SearchCode.cs | 14 +--
Octokit/Models/Response/SourceInfo.cs | 8 +-
Octokit/Models/Response/Subscription.cs | 12 +--
Octokit/Models/Response/TagObject.cs | 4 +-
Octokit/Models/Response/Team.cs | 28 +++---
.../Models/Response/TeamMembershipDetails.cs | 4 +-
Octokit/Models/Response/ThreadSubscription.cs | 12 +--
Octokit/Models/Response/TimelineEventInfo.cs | 26 +++---
Octokit/Models/Response/TreeItem.cs | 14 +--
Octokit/Models/Response/TreeResponse.cs | 10 +--
Octokit/Models/Response/User.cs | 10 +--
Octokit/Models/Response/UserRenameResponse.cs | 4 +-
Octokit/Models/Response/UserStar.cs | 6 +-
Octokit/Models/Response/Verification.cs | 8 +-
.../Models/Response/WeeklyCommitActivity.cs | 6 +-
Octokit/Models/Response/WeeklyHash.cs | 8 +-
137 files changed, 949 insertions(+), 950 deletions(-)
diff --git a/Octokit/Models/Response/AccessToken.cs b/Octokit/Models/Response/AccessToken.cs
index 182a555322..bc198de96b 100644
--- a/Octokit/Models/Response/AccessToken.cs
+++ b/Octokit/Models/Response/AccessToken.cs
@@ -18,12 +18,12 @@ public AccessToken(string token, DateTimeOffset expiresAt)
///
/// The access token
///
- public string Token { get; protected set; }
+ public string Token { get; private set; }
///
/// The expiration date
///
- public DateTimeOffset ExpiresAt { get; protected set; }
+ public DateTimeOffset ExpiresAt { get; private set; }
internal string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/Activity.cs b/Octokit/Models/Response/Activity.cs
index 5a453ef91d..c14501efe2 100644
--- a/Octokit/Models/Response/Activity.cs
+++ b/Octokit/Models/Response/Activity.cs
@@ -29,42 +29,42 @@ public Activity(string type, bool @public, Repository repo, User actor, Organiza
/// The type of the activity.
///
[SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")]
- public string Type { get; protected set; }
+ public string Type { get; private set; }
///
/// Whether the activity event is public or not.
///
- public bool Public { get; protected set; }
+ public bool Public { get; private set; }
///
/// The repository associated with the activity event.
///
- public Repository Repo { get; protected set; }
+ public Repository Repo { get; private set; }
///
/// The user associated with the activity event.
///
- public User Actor { get; protected set; }
+ public User Actor { get; private set; }
///
/// The organization associated with the activity event.
///
- public Organization Org { get; protected set; }
+ public Organization Org { get; private set; }
///
/// The date the activity event was created.
///
- public DateTimeOffset CreatedAt { get; protected set; }
+ public DateTimeOffset CreatedAt { get; private set; }
///
/// The activity event Id.
///
- public string Id { get; protected set; }
+ public string Id { get; private set; }
///
/// The payload associated with the activity event.
///
- public ActivityPayload Payload { get; protected set; }
+ public ActivityPayload Payload { get; private set; }
internal string DebuggerDisplay
{
@@ -74,4 +74,4 @@ internal string DebuggerDisplay
}
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/ActivityPayloads/ActivityPayload.cs b/Octokit/Models/Response/ActivityPayloads/ActivityPayload.cs
index ea89c33195..0e0ec2a074 100644
--- a/Octokit/Models/Response/ActivityPayloads/ActivityPayload.cs
+++ b/Octokit/Models/Response/ActivityPayloads/ActivityPayload.cs
@@ -15,9 +15,9 @@ public ActivityPayload(Repository repository, User sender, InstallationId instal
Installation = installation;
}
- public Repository Repository { get; protected set; }
- public User Sender { get; protected set; }
- public InstallationId Installation { get; protected set; }
+ public Repository Repository { get; private set; }
+ public User Sender { get; private set; }
+ public InstallationId Installation { get; private set; }
internal string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/ActivityPayloads/CheckRunEventPayload.cs b/Octokit/Models/Response/ActivityPayloads/CheckRunEventPayload.cs
index 9bc83e6f84..345a8bd541 100644
--- a/Octokit/Models/Response/ActivityPayloads/CheckRunEventPayload.cs
+++ b/Octokit/Models/Response/ActivityPayloads/CheckRunEventPayload.cs
@@ -5,8 +5,8 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class CheckRunEventPayload : ActivityPayload
{
- public string Action { get; protected set; }
- public CheckRun CheckRun { get; protected set; }
- public CheckRunRequestedAction RequestedAction { get; protected set; }
+ public string Action { get; private set; }
+ public CheckRun CheckRun { get; private set; }
+ public CheckRunRequestedAction RequestedAction { get; private set; }
}
}
diff --git a/Octokit/Models/Response/ActivityPayloads/CheckSuiteEventPayload.cs b/Octokit/Models/Response/ActivityPayloads/CheckSuiteEventPayload.cs
index 3a0d324d8a..41693e37d0 100644
--- a/Octokit/Models/Response/ActivityPayloads/CheckSuiteEventPayload.cs
+++ b/Octokit/Models/Response/ActivityPayloads/CheckSuiteEventPayload.cs
@@ -5,7 +5,7 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class CheckSuiteEventPayload : ActivityPayload
{
- public string Action { get; protected set; }
- public CheckSuite CheckSuite { get; protected set; }
+ public string Action { get; private set; }
+ public CheckSuite CheckSuite { get; private set; }
}
}
diff --git a/Octokit/Models/Response/ActivityPayloads/CommitCommentPayload.cs b/Octokit/Models/Response/ActivityPayloads/CommitCommentPayload.cs
index 9e35c99420..ef33d4fadb 100644
--- a/Octokit/Models/Response/ActivityPayloads/CommitCommentPayload.cs
+++ b/Octokit/Models/Response/ActivityPayloads/CommitCommentPayload.cs
@@ -5,6 +5,6 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class CommitCommentPayload : ActivityPayload
{
- public CommitComment Comment { get; protected set; }
+ public CommitComment Comment { get; private set; }
}
}
diff --git a/Octokit/Models/Response/ActivityPayloads/CreateEventPayload.cs b/Octokit/Models/Response/ActivityPayloads/CreateEventPayload.cs
index 4abae7b97c..58d4a8960e 100644
--- a/Octokit/Models/Response/ActivityPayloads/CreateEventPayload.cs
+++ b/Octokit/Models/Response/ActivityPayloads/CreateEventPayload.cs
@@ -6,12 +6,12 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class CreateEventPayload : ActivityPayload
{
- public string Ref { get; protected set; }
+ public string Ref { get; private set; }
- public StringEnum RefType { get; protected set; }
+ public StringEnum RefType { get; private set; }
- public string MasterBranch { get; protected set; }
+ public string MasterBranch { get; private set; }
- public string Description { get; protected set; }
+ public string Description { get; private set; }
}
}
diff --git a/Octokit/Models/Response/ActivityPayloads/DeleteEventPayload.cs b/Octokit/Models/Response/ActivityPayloads/DeleteEventPayload.cs
index 6abd970c01..e28b37aed6 100644
--- a/Octokit/Models/Response/ActivityPayloads/DeleteEventPayload.cs
+++ b/Octokit/Models/Response/ActivityPayloads/DeleteEventPayload.cs
@@ -6,8 +6,8 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class DeleteEventPayload : ActivityPayload
{
- public string Ref { get; protected set; }
+ public string Ref { get; private set; }
- public StringEnum RefType { get; protected set; }
+ public StringEnum RefType { get; private set; }
}
}
diff --git a/Octokit/Models/Response/ActivityPayloads/ForkEventPayload.cs b/Octokit/Models/Response/ActivityPayloads/ForkEventPayload.cs
index f48d01c094..4b02eedb4e 100644
--- a/Octokit/Models/Response/ActivityPayloads/ForkEventPayload.cs
+++ b/Octokit/Models/Response/ActivityPayloads/ForkEventPayload.cs
@@ -5,6 +5,6 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class ForkEventPayload : ActivityPayload
{
- public Repository Forkee { get; protected set; }
+ public Repository Forkee { get; private set; }
}
}
diff --git a/Octokit/Models/Response/ActivityPayloads/IssueCommentPayload.cs b/Octokit/Models/Response/ActivityPayloads/IssueCommentPayload.cs
index 0b2989df36..f9fb1068f3 100644
--- a/Octokit/Models/Response/ActivityPayloads/IssueCommentPayload.cs
+++ b/Octokit/Models/Response/ActivityPayloads/IssueCommentPayload.cs
@@ -6,8 +6,8 @@ namespace Octokit
public class IssueCommentPayload : ActivityPayload
{
// should always be "created" according to github api docs
- public string Action { get; protected set; }
- public Issue Issue { get; protected set; }
- public IssueComment Comment { get; protected set; }
+ public string Action { get; private set; }
+ public Issue Issue { get; private set; }
+ public IssueComment Comment { get; private set; }
}
}
diff --git a/Octokit/Models/Response/ActivityPayloads/IssueEventPayload.cs b/Octokit/Models/Response/ActivityPayloads/IssueEventPayload.cs
index 1f40a122df..6b9713e6cc 100644
--- a/Octokit/Models/Response/ActivityPayloads/IssueEventPayload.cs
+++ b/Octokit/Models/Response/ActivityPayloads/IssueEventPayload.cs
@@ -5,7 +5,7 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class IssueEventPayload : ActivityPayload
{
- public string Action { get; protected set; }
- public Issue Issue { get; protected set; }
+ public string Action { get; private set; }
+ public Issue Issue { get; private set; }
}
}
diff --git a/Octokit/Models/Response/ActivityPayloads/PullRequestCommentPayload.cs b/Octokit/Models/Response/ActivityPayloads/PullRequestCommentPayload.cs
index 026935e018..f0e3906a3f 100644
--- a/Octokit/Models/Response/ActivityPayloads/PullRequestCommentPayload.cs
+++ b/Octokit/Models/Response/ActivityPayloads/PullRequestCommentPayload.cs
@@ -5,8 +5,8 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class PullRequestCommentPayload : ActivityPayload
{
- public string Action { get; protected set; }
- public PullRequest PullRequest { get; protected set; }
- public PullRequestReviewComment Comment { get; protected set; }
+ public string Action { get; private set; }
+ public PullRequest PullRequest { get; private set; }
+ public PullRequestReviewComment Comment { get; private set; }
}
}
diff --git a/Octokit/Models/Response/ActivityPayloads/PullRequestEventPayload.cs b/Octokit/Models/Response/ActivityPayloads/PullRequestEventPayload.cs
index ebaf48de57..c06efc77c1 100644
--- a/Octokit/Models/Response/ActivityPayloads/PullRequestEventPayload.cs
+++ b/Octokit/Models/Response/ActivityPayloads/PullRequestEventPayload.cs
@@ -5,9 +5,9 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class PullRequestEventPayload : ActivityPayload
{
- public string Action { get; protected set; }
- public int Number { get; protected set; }
+ public string Action { get; private set; }
+ public int Number { get; private set; }
- public PullRequest PullRequest { get; protected set; }
+ public PullRequest PullRequest { get; private set; }
}
}
diff --git a/Octokit/Models/Response/ActivityPayloads/PullRequestReviewEventPayload.cs b/Octokit/Models/Response/ActivityPayloads/PullRequestReviewEventPayload.cs
index c0a7b10b5d..0df70b22a5 100644
--- a/Octokit/Models/Response/ActivityPayloads/PullRequestReviewEventPayload.cs
+++ b/Octokit/Models/Response/ActivityPayloads/PullRequestReviewEventPayload.cs
@@ -5,8 +5,8 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class PullRequestReviewEventPayload : ActivityPayload
{
- public string Action { get; protected set; }
- public PullRequest PullRequest { get; protected set; }
- public PullRequestReview Review { get; protected set; }
+ public string Action { get; private set; }
+ public PullRequest PullRequest { get; private set; }
+ public PullRequestReview Review { get; private set; }
}
}
diff --git a/Octokit/Models/Response/ActivityPayloads/PushEventPayload.cs b/Octokit/Models/Response/ActivityPayloads/PushEventPayload.cs
index f1ebefd70b..b007526896 100644
--- a/Octokit/Models/Response/ActivityPayloads/PushEventPayload.cs
+++ b/Octokit/Models/Response/ActivityPayloads/PushEventPayload.cs
@@ -6,9 +6,9 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class PushEventPayload : ActivityPayload
{
- public string Head { get; protected set; }
- public string Ref { get; protected set; }
- public int Size { get; protected set; }
- public IReadOnlyList Commits { get; protected set; }
+ public string Head { get; private set; }
+ public string Ref { get; private set; }
+ public int Size { get; private set; }
+ public IReadOnlyList Commits { get; private set; }
}
}
diff --git a/Octokit/Models/Response/ActivityPayloads/PushWebhookCommit.cs b/Octokit/Models/Response/ActivityPayloads/PushWebhookCommit.cs
index 6ce11053c8..d04d897501 100644
--- a/Octokit/Models/Response/ActivityPayloads/PushWebhookCommit.cs
+++ b/Octokit/Models/Response/ActivityPayloads/PushWebhookCommit.cs
@@ -8,27 +8,27 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class PushWebhookCommit
{
- public string Id { get; protected set; }
+ public string Id { get; private set; }
- public string TreeId { get; protected set; }
+ public string TreeId { get; private set; }
- public bool Distinct { get; protected set; }
+ public bool Distinct { get; private set; }
- public string Message { get; protected set; }
+ public string Message { get; private set; }
- public DateTimeOffset Timestamp { get; protected set; }
+ public DateTimeOffset Timestamp { get; private set; }
- public Uri Url { get; protected set; }
+ public Uri Url { get; private set; }
- public Committer Author { get; protected set; }
+ public Committer Author { get; private set; }
- public Committer Committer { get; protected set; }
+ public Committer Committer { get; private set; }
- public IReadOnlyList Added { get; protected set; }
+ public IReadOnlyList Added { get; private set; }
- public IReadOnlyList Removed { get; protected set; }
+ public IReadOnlyList Removed { get; private set; }
- public IReadOnlyList Modified { get; protected set; }
+ public IReadOnlyList Modified { get; private set; }
internal string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/ActivityPayloads/PushWebhookCommitter.cs b/Octokit/Models/Response/ActivityPayloads/PushWebhookCommitter.cs
index fb7cb4941c..2932166178 100644
--- a/Octokit/Models/Response/ActivityPayloads/PushWebhookCommitter.cs
+++ b/Octokit/Models/Response/ActivityPayloads/PushWebhookCommitter.cs
@@ -35,7 +35,7 @@ public PushWebhookCommitter(string name, string email, string username)
///
/// The name.
///
- public string Name { get; protected set; }
+ public string Name { get; private set; }
///
/// Gets the email of the author or committer.
@@ -43,7 +43,7 @@ public PushWebhookCommitter(string name, string email, string username)
///
/// The email.
///
- public string Email { get; protected set; }
+ public string Email { get; private set; }
///
/// Gets the GitHub username associated with the commit
@@ -51,7 +51,7 @@ public PushWebhookCommitter(string name, string email, string username)
///
/// The username.
///
- public string Username { get; protected set; }
+ public string Username { get; private set; }
internal string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/ActivityPayloads/PushWebhookPayload.cs b/Octokit/Models/Response/ActivityPayloads/PushWebhookPayload.cs
index 159282de67..6075313b0e 100644
--- a/Octokit/Models/Response/ActivityPayloads/PushWebhookPayload.cs
+++ b/Octokit/Models/Response/ActivityPayloads/PushWebhookPayload.cs
@@ -6,17 +6,17 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class PushWebhookPayload : ActivityPayload
{
- public string Head { get; protected set; }
- public string Before { get; protected set; }
- public string After { get; protected set; }
- public string Ref { get; protected set; }
- public string BaseRef { get; protected set; }
- public bool Created { get; protected set; }
- public bool Deleted { get; protected set; }
- public bool Forced { get; protected set; }
- public string Compare { get; protected set; }
- public int Size { get; protected set; }
- public IReadOnlyList Commits { get; protected set; }
- public PushWebhookCommit HeadCommit { get; protected set; }
+ public string Head { get; private set; }
+ public string Before { get; private set; }
+ public string After { get; private set; }
+ public string Ref { get; private set; }
+ public string BaseRef { get; private set; }
+ public bool Created { get; private set; }
+ public bool Deleted { get; private set; }
+ public bool Forced { get; private set; }
+ public string Compare { get; private set; }
+ public int Size { get; private set; }
+ public IReadOnlyList Commits { get; private set; }
+ public PushWebhookCommit HeadCommit { get; private set; }
}
}
diff --git a/Octokit/Models/Response/ActivityPayloads/ReleaseEventPayload.cs b/Octokit/Models/Response/ActivityPayloads/ReleaseEventPayload.cs
index ffaac4cc76..7f6eb87f45 100644
--- a/Octokit/Models/Response/ActivityPayloads/ReleaseEventPayload.cs
+++ b/Octokit/Models/Response/ActivityPayloads/ReleaseEventPayload.cs
@@ -5,8 +5,8 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class ReleaseEventPayload : ActivityPayload
{
- public string Action { get; protected set; }
+ public string Action { get; private set; }
- public Release Release { get; protected set; }
+ public Release Release { get; private set; }
}
}
diff --git a/Octokit/Models/Response/ActivityPayloads/StarredEventPayload.cs b/Octokit/Models/Response/ActivityPayloads/StarredEventPayload.cs
index 7bc43a2aac..5e40c57dd3 100644
--- a/Octokit/Models/Response/ActivityPayloads/StarredEventPayload.cs
+++ b/Octokit/Models/Response/ActivityPayloads/StarredEventPayload.cs
@@ -5,6 +5,6 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class StarredEventPayload : ActivityPayload
{
- public string Action { get; protected set; }
+ public string Action { get; private set; }
}
}
diff --git a/Octokit/Models/Response/ActivityPayloads/StatusEventPayload.cs b/Octokit/Models/Response/ActivityPayloads/StatusEventPayload.cs
index 1c8d3db1a6..cf53cf6c75 100644
--- a/Octokit/Models/Response/ActivityPayloads/StatusEventPayload.cs
+++ b/Octokit/Models/Response/ActivityPayloads/StatusEventPayload.cs
@@ -10,62 +10,62 @@ public class StatusEventPayload : ActivityPayload
///
/// The name of the repository.
///
- public string Name { get; protected set; }
+ public string Name { get; private set; }
///
/// The SHA of the reference.
///
- public string Sha { get; protected set; }
+ public string Sha { get; private set; }
///
/// The date the commit status was created.
///
- public DateTimeOffset CreatedAt { get; protected set; }
+ public DateTimeOffset CreatedAt { get; private set; }
///
/// The date the commit status was updated.
///
- public DateTimeOffset UpdatedAt { get; protected set; }
+ public DateTimeOffset UpdatedAt { get; private set; }
///
/// The state of the commit
///
- public StringEnum State { get; protected set; }
+ public StringEnum State { get; private set; }
///
/// URL associated with this status. GitHub.com displays this URL as a link to allow users to easily see the
/// ‘source’ of the Status.
///
- public string TargetUrl { get; protected set; }
+ public string TargetUrl { get; private set; }
///
/// Short description of the status.
///
- public string Description { get; protected set; }
+ public string Description { get; private set; }
///
/// A string label to differentiate this status from the status of other systems.
///
- public string Context { get; protected set; }
+ public string Context { get; private set; }
///
/// The unique identifier of the status.
///
- public long Id { get; protected set; }
+ public long Id { get; private set; }
///
/// The relevant commit.
///
- public GitHubCommit Commit { get; protected set; }
+ public GitHubCommit Commit { get; private set; }
///
/// The organization associated with the event.
///
- public Organization Organization { get; protected set; }
+ public Organization Organization { get; private set; }
///
/// The branches involved.
///
- public IReadOnlyList Branches { get; protected set; }
+ public IReadOnlyList Branches { get; private set; }
}
}
diff --git a/Octokit/Models/Response/ApiError.cs b/Octokit/Models/Response/ApiError.cs
index 2317cdacab..7847e60e9e 100644
--- a/Octokit/Models/Response/ApiError.cs
+++ b/Octokit/Models/Response/ApiError.cs
@@ -29,17 +29,17 @@ public ApiError(string message, string documentationUrl, IReadOnlyList
/// The error message
///
- public string Message { get; protected set; }
+ public string Message { get; private set; }
///
/// URL to the documentation for this error.
///
- public string DocumentationUrl { get; protected set; }
+ public string DocumentationUrl { get; private set; }
///
/// Additional details about the error
///
- public IReadOnlyList Errors { get; protected set; }
+ public IReadOnlyList Errors { get; private set; }
internal string DebuggerDisplay
{
@@ -49,4 +49,4 @@ internal string DebuggerDisplay
}
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/ApiErrorDetail.cs b/Octokit/Models/Response/ApiErrorDetail.cs
index 391561e02e..cea59aa760 100644
--- a/Octokit/Models/Response/ApiErrorDetail.cs
+++ b/Octokit/Models/Response/ApiErrorDetail.cs
@@ -18,13 +18,13 @@ public ApiErrorDetail(string message, string code, string field, string resource
Resource = resource;
}
- public string Message { get; protected set; }
+ public string Message { get; private set; }
- public string Code { get; protected set; }
+ public string Code { get; private set; }
- public string Field { get; protected set; }
+ public string Field { get; private set; }
- public string Resource { get; protected set; }
+ public string Resource { get; private set; }
internal string DebuggerDisplay
{
@@ -34,4 +34,4 @@ internal string DebuggerDisplay
}
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/Application.cs b/Octokit/Models/Response/Application.cs
index 3321d748e2..a2574bdd74 100644
--- a/Octokit/Models/Response/Application.cs
+++ b/Octokit/Models/Response/Application.cs
@@ -20,12 +20,12 @@ public Application(string name, string url)
///
/// Name.
///
- public string Name { get; protected set; }
+ public string Name { get; private set; }
///
/// The Url of this .
///
- public string Url { get; protected set; }
+ public string Url { get; private set; }
internal string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/Blob.cs b/Octokit/Models/Response/Blob.cs
index b4df6a4f36..786806fd14 100644
--- a/Octokit/Models/Response/Blob.cs
+++ b/Octokit/Models/Response/Blob.cs
@@ -21,27 +21,27 @@ public Blob(string nodeId, string content, EncodingType encoding, string sha, in
///
/// GraphQL Node Id
///
- public string NodeId { get; protected set; }
+ public string NodeId { get; private set; }
///
/// The content of the blob.
///
- public string Content { get; protected set; }
+ public string Content { get; private set; }
///
/// The encoding of the blob.
///
- public StringEnum Encoding { get; protected set; }
+ public StringEnum Encoding { get; private set; }
///
/// The SHA of the blob.
///
- public string Sha { get; protected set; }
+ public string Sha { get; private set; }
///
/// The size of the blob.
///
- public int Size { get; protected set; }
+ public int Size { get; private set; }
internal string DebuggerDisplay
{
@@ -60,4 +60,4 @@ public enum EncodingType
[Parameter(Value = "base64")]
Base64
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/BlobReference.cs b/Octokit/Models/Response/BlobReference.cs
index fbba72dbfe..c4ba3fe039 100644
--- a/Octokit/Models/Response/BlobReference.cs
+++ b/Octokit/Models/Response/BlobReference.cs
@@ -16,7 +16,7 @@ public BlobReference(string sha)
///
/// The SHA of the blob.
///
- public string Sha { get; protected set; }
+ public string Sha { get; private set; }
internal string DebuggerDisplay
{
@@ -26,4 +26,4 @@ internal string DebuggerDisplay
}
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/Branch.cs b/Octokit/Models/Response/Branch.cs
index 78c8a76b96..fadb905e95 100644
--- a/Octokit/Models/Response/Branch.cs
+++ b/Octokit/Models/Response/Branch.cs
@@ -19,17 +19,17 @@ public Branch(string name, GitReference commit, bool @protected)
///
/// Name of this .
///
- public string Name { get; protected set; }
+ public string Name { get; private set; }
///
- /// Whether this is protected.
+ /// Whether this is protected.
///
- public bool Protected { get; protected set; }
+ public bool Protected { get; private set; }
///
/// The history for this .
///
- public GitReference Commit { get; protected set; }
+ public GitReference Commit { get; private set; }
internal string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/BranchProtection.cs b/Octokit/Models/Response/BranchProtection.cs
index 2c1703d164..cc73b69e3e 100644
--- a/Octokit/Models/Response/BranchProtection.cs
+++ b/Octokit/Models/Response/BranchProtection.cs
@@ -116,7 +116,7 @@ public EnforceAdmins(bool enabled)
Enabled = enabled;
}
- public bool Enabled { get; protected set; }
+ public bool Enabled { get; private set; }
internal string DebuggerDisplay
{
@@ -144,7 +144,7 @@ public BranchProtectionRequiredStatusChecks(bool strict, IReadOnlyList c
///
/// Require branches to be up to date before merging
///
- public bool Strict { get; protected set; }
+ public bool Strict { get; private set; }
///
/// Require status checks to pass before merging
@@ -218,22 +218,22 @@ public BranchProtectionRequiredReviews(BranchProtectionRequiredReviewsDismissalR
///
/// Specify which users and teams can dismiss pull request reviews.
///
- public BranchProtectionRequiredReviewsDismissalRestrictions DismissalRestrictions { get; protected set; }
+ public BranchProtectionRequiredReviewsDismissalRestrictions DismissalRestrictions { get; private set; }
///
/// Dismiss approved reviews automatically when a new commit is pushed.
///
- public bool DismissStaleReviews { get; protected set; }
+ public bool DismissStaleReviews { get; private set; }
///
/// Blocks merge until code owners have reviewed.
///
- public bool RequireCodeOwnerReviews { get; protected set; }
+ public bool RequireCodeOwnerReviews { get; private set; }
///
/// Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6.
///
- public int RequiredApprovingReviewCount { get; protected set; }
+ public int RequiredApprovingReviewCount { get; private set; }
internal string DebuggerDisplay
{
@@ -294,7 +294,7 @@ public BranchProtectionEnabledCommon(bool enabled)
Enabled = enabled;
}
- public bool Enabled { get; protected set; }
+ public bool Enabled { get; private set; }
internal string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/CheckRun.cs b/Octokit/Models/Response/CheckRun.cs
index 3482a5bcea..8408d616ec 100644
--- a/Octokit/Models/Response/CheckRun.cs
+++ b/Octokit/Models/Response/CheckRun.cs
@@ -34,77 +34,77 @@ public CheckRun(long id, string headSha, string externalId, string url, string h
///
/// The Id of the check run
///
- public long Id { get; protected set; }
+ public long Id { get; private set; }
///
/// The SHA of the commit the check run is associated with
///
- public string HeadSha { get; protected set; }
+ public string HeadSha { get; private set; }
///
/// A reference for the run on the integrator's system
///
- public string ExternalId { get; protected set; }
+ public string ExternalId { get; private set; }
///
/// The GitHub API URL of the check run
///
- public string Url { get; protected set; }
+ public string Url { get; private set; }
///
/// The GitHub.com URL of the check run
///
- public string HtmlUrl { get; protected set; }
+ public string HtmlUrl { get; private set; }
///
/// The URL of the integrator's site that has the full details of the check.
///
- public string DetailsUrl { get; protected set; }
+ public string DetailsUrl { get; private set; }
///
/// The check run status
///
- public StringEnum Status { get; protected set; }
+ public StringEnum Status { get; private set; }
///
/// The final conclusion of the check
///
- public StringEnum? Conclusion { get; protected set; }
+ public StringEnum? Conclusion { get; private set; }
///
/// The time that the check run began
///
- public DateTimeOffset StartedAt { get; protected set; }
+ public DateTimeOffset StartedAt { get; private set; }
///
/// The time the check run completed
///
- public DateTimeOffset? CompletedAt { get; protected set; }
+ public DateTimeOffset? CompletedAt { get; private set; }
///
/// Descriptive details about the run
///
- public CheckRunOutputResponse Output { get; protected set; }
+ public CheckRunOutputResponse Output { get; private set; }
///
/// The name of the check
///
- public string Name { get; protected set; }
+ public string Name { get; private set; }
///
/// The check suite that is associated with this check run
///
- public CheckSuite CheckSuite { get; protected set; }
+ public CheckSuite CheckSuite { get; private set; }
///
/// The GitHub App that is associated with this check run
///
- public GitHubApp App { get; protected set; }
+ public GitHubApp App { get; private set; }
///
/// The pull requests that are associated with this check run
///
- public IReadOnlyList PullRequests { get; protected set; }
+ public IReadOnlyList PullRequests { get; private set; }
internal string DebuggerDisplay => string.Format(CultureInfo.InvariantCulture, "Id: {0}, HeadSha: {1}, Conclusion: {2}", Id, HeadSha, Conclusion);
}
diff --git a/Octokit/Models/Response/CheckRunAnnotation.cs b/Octokit/Models/Response/CheckRunAnnotation.cs
index 7437e59c54..601ce84903 100644
--- a/Octokit/Models/Response/CheckRunAnnotation.cs
+++ b/Octokit/Models/Response/CheckRunAnnotation.cs
@@ -52,66 +52,66 @@ public CheckRunAnnotation(string filename, string path, string blobHref, int sta
/// The path of the file the annotation refers to
///
[Obsolete("This property is replaced with Path but may still be required on GitHub Enterprise 2.14")]
- public string Filename { get; protected set; }
+ public string Filename { get; private set; }
///
/// The path of the file the annotation refers to
///
- public string Path { get; protected set; }
+ public string Path { get; private set; }
///
/// The file's full blob URL
///
- public string BlobHref { get; protected set; }
+ public string BlobHref { get; private set; }
///
/// The start line of the annotation
///
- public int StartLine { get; protected set; }
+ public int StartLine { get; private set; }
///
/// The end line of the annotation
///
- public int EndLine { get; protected set; }
+ public int EndLine { get; private set; }
///
/// The start line of the annotation
///
- public int? StartColumn { get; protected set; }
+ public int? StartColumn { get; private set; }
///
/// The end line of the annotation
///
- public int? EndColumn { get; protected set; }
+ public int? EndColumn { get; private set; }
///
/// The warning level of the annotation. Can be one of notice, warning, or failure
///
[Obsolete("This property is replaced with AnnotationLevel but may still be required on GitHub Enterprise 2.14")]
- public StringEnum? WarningLevel { get; protected set; }
+ public StringEnum? WarningLevel { get; private set; }
///
/// The level of the annotation. Can be one of notice, warning, or failure
///
- public StringEnum? AnnotationLevel { get; protected set; }
+ public StringEnum? AnnotationLevel { get; private set; }
///
/// A short description of the feedback for these lines of code
///
- public string Message { get; protected set; }
+ public string Message { get; private set; }
///
/// The title that represents the annotation
///
- public string Title { get; protected set; }
+ public string Title { get; private set; }
///
/// Details about this annotation
///
- public string RawDetails { get; protected set; }
+ public string RawDetails { get; private set; }
#pragma warning disable CS0618 // Type or member is obsolete
internal string DebuggerDisplay => string.Format(CultureInfo.InvariantCulture, "Path: {0}, StartLine: {1}, WarningLevel: {2}", Path ?? Filename, StartLine, AnnotationLevel?.DebuggerDisplay ?? WarningLevel?.DebuggerDisplay);
#pragma warning restore CS0618 // Type or member is obsolete
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/CheckRunOutputResponse.cs b/Octokit/Models/Response/CheckRunOutputResponse.cs
index 2aade56f4f..8b0f2da6b9 100644
--- a/Octokit/Models/Response/CheckRunOutputResponse.cs
+++ b/Octokit/Models/Response/CheckRunOutputResponse.cs
@@ -22,23 +22,23 @@ public CheckRunOutputResponse(string title, string summary, string text, long an
///
/// The title of the check run
///
- public string Title { get; protected set; }
+ public string Title { get; private set; }
///
/// The summary of the check run
///
- public string Summary { get; protected set; }
+ public string Summary { get; private set; }
///
/// The details of the check run
///
- public string Text { get; protected set; }
+ public string Text { get; private set; }
///
/// The number of annotation entries for the check run (use to get annotation details)
///
- public long AnnotationsCount { get; protected set; }
+ public long AnnotationsCount { get; private set; }
internal string DebuggerDisplay => string.Format(CultureInfo.CurrentCulture, "Title: {0}", Title);
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/CheckRunRequestedAction.cs b/Octokit/Models/Response/CheckRunRequestedAction.cs
index 05468942cc..346d43c25b 100644
--- a/Octokit/Models/Response/CheckRunRequestedAction.cs
+++ b/Octokit/Models/Response/CheckRunRequestedAction.cs
@@ -20,7 +20,7 @@ public CheckRunRequestedAction(string identifier)
///
/// The Identifier of the check run requested action.
///
- public string Identifier { get; protected set; }
+ public string Identifier { get; private set; }
internal string DebuggerDisplay => string.Format(CultureInfo.InvariantCulture, "Identifier: {0}", Identifier);
}
diff --git a/Octokit/Models/Response/CheckRunsResponse.cs b/Octokit/Models/Response/CheckRunsResponse.cs
index ffdc26e116..30a9981abc 100644
--- a/Octokit/Models/Response/CheckRunsResponse.cs
+++ b/Octokit/Models/Response/CheckRunsResponse.cs
@@ -20,12 +20,12 @@ public CheckRunsResponse(int totalCount, IReadOnlyList checkRuns)
///
/// The total number of check runs that match the request filter
///
- public int TotalCount { get; protected set; }
+ public int TotalCount { get; private set; }
///
/// The retrieved check runs
///
- public IReadOnlyList CheckRuns { get; protected set; }
+ public IReadOnlyList CheckRuns { get; private set; }
internal string DebuggerDisplay => string.Format(CultureInfo.CurrentCulture, "TotalCount: {0}, CheckRuns: {1}", TotalCount, CheckRuns.Count);
}
diff --git a/Octokit/Models/Response/CheckSuite.cs b/Octokit/Models/Response/CheckSuite.cs
index 8c7350c5da..569ffb59a3 100644
--- a/Octokit/Models/Response/CheckSuite.cs
+++ b/Octokit/Models/Response/CheckSuite.cs
@@ -29,57 +29,57 @@ public CheckSuite(long id, string headBranch, string headSha, CheckStatus status
///
/// The Id of the check suite
///
- public long Id { get; protected set; }
+ public long Id { get; private set; }
///
/// The branch the check suite is associated with
///
- public string HeadBranch { get; protected set; }
+ public string HeadBranch { get; private set; }
///
/// The SHA of the head commit in the push that created the check suite
///
- public string HeadSha { get; protected set; }
+ public string HeadSha { get; private set; }
///
/// The summarized status of the check runs included in the check suite
///
- public StringEnum Status { get; protected set; }
+ public StringEnum Status { get; private set; }
///
/// The summarized conclusion of the check runs included in the check suite
///
- public StringEnum? Conclusion { get; protected set; }
+ public StringEnum? Conclusion { get; private set; }
///
/// The GitHub API URL of the check suite
///
- public string Url { get; protected set; }
+ public string Url { get; private set; }
///
/// The hash of the commit prior to the push that created the check suite
///
- public string Before { get; protected set; }
+ public string Before { get; private set; }
///
/// The hash of the commit after the push that created the check suite (or HeadSha if no later commits exist)
///
- public string After { get; protected set; }
+ public string After { get; private set; }
///
/// The pull requests that are associated with the check suite
///
- public IReadOnlyList PullRequests { get; protected set; }
+ public IReadOnlyList PullRequests { get; private set; }
///
/// The GitHub App for the check suite
///
- public GitHubApp App { get; protected set; }
+ public GitHubApp App { get; private set; }
///
/// The repository for the check suite
///
- public Repository Repository { get; protected set; }
+ public Repository Repository { get; private set; }
internal string DebuggerDisplay => string.Format(CultureInfo.InvariantCulture, "Id: {0}, HeadBranch: {1}, HeadSha: {2}, Conclusion: {3}", Id, HeadBranch, HeadSha, Conclusion);
}
diff --git a/Octokit/Models/Response/CheckSuitePreferencesResponse.cs b/Octokit/Models/Response/CheckSuitePreferencesResponse.cs
index ca1a1d6688..ac83622206 100644
--- a/Octokit/Models/Response/CheckSuitePreferencesResponse.cs
+++ b/Octokit/Models/Response/CheckSuitePreferencesResponse.cs
@@ -19,12 +19,12 @@ public CheckSuitePreferencesResponse(CheckSuitePreferences preferences, Reposito
///
/// The check suite preferences
///
- public CheckSuitePreferences Preferences { get; protected set; }
+ public CheckSuitePreferences Preferences { get; private set; }
///
/// The repository the check suite preferences are related to
///
- public Repository Repository { get; protected set; }
+ public Repository Repository { get; private set; }
internal string DebuggerDisplay => string.Format(CultureInfo.InvariantCulture, "Preferences: {0}, Repository: {1}", Preferences.DebuggerDisplay, Repository.DebuggerDisplay);
}
diff --git a/Octokit/Models/Response/CheckSuitesResponse.cs b/Octokit/Models/Response/CheckSuitesResponse.cs
index b41d8ddae6..a18be37a7e 100644
--- a/Octokit/Models/Response/CheckSuitesResponse.cs
+++ b/Octokit/Models/Response/CheckSuitesResponse.cs
@@ -20,12 +20,12 @@ public CheckSuitesResponse(int totalCount, IReadOnlyList checkSuites
///
/// The total number of check suites that match the request filter
///
- public int TotalCount { get; protected set; }
+ public int TotalCount { get; private set; }
///
/// The retrieved check suites
///
- public IReadOnlyList CheckSuites { get; protected set; }
+ public IReadOnlyList CheckSuites { get; private set; }
internal string DebuggerDisplay => string.Format(CultureInfo.CurrentCulture, "TotalCount: {0}, CheckSuites: {1}", TotalCount, CheckSuites.Count);
}
diff --git a/Octokit/Models/Response/CollaboratorPermission.cs b/Octokit/Models/Response/CollaboratorPermission.cs
index 4a9b29b102..7e2ed0a577 100644
--- a/Octokit/Models/Response/CollaboratorPermission.cs
+++ b/Octokit/Models/Response/CollaboratorPermission.cs
@@ -13,8 +13,8 @@ public CollaboratorPermission(PermissionLevel permission, User user)
User = user;
}
- public StringEnum Permission { get; protected set; }
- public User User { get; protected set; }
+ public StringEnum Permission { get; private set; }
+ public User User { get; private set; }
internal string DebuggerDisplay => $"User: {User.Id} Permission: {Permission}";
}
diff --git a/Octokit/Models/Response/CombinedCommitStatus.cs b/Octokit/Models/Response/CombinedCommitStatus.cs
index db2c2caebe..37224d0deb 100644
--- a/Octokit/Models/Response/CombinedCommitStatus.cs
+++ b/Octokit/Models/Response/CombinedCommitStatus.cs
@@ -21,27 +21,27 @@ public CombinedCommitStatus(CommitState state, string sha, int totalCount, IRead
///
/// The combined state of the commits.
///
- public StringEnum State { get; protected set; }
+ public StringEnum State { get; private set; }
///
/// The SHA of the reference.
///
- public string Sha { get; protected set; }
+ public string Sha { get; private set; }
///
/// The total number of statuses.
///
- public int TotalCount { get; protected set; }
+ public int TotalCount { get; private set; }
///
/// The statuses.
///
- public IReadOnlyList Statuses { get; protected set; }
+ public IReadOnlyList Statuses { get; private set; }
///
/// The repository of the reference.
///
- public Repository Repository { get; protected set; }
+ public Repository Repository { get; private set; }
internal string DebuggerDisplay
{
@@ -51,4 +51,4 @@ internal string DebuggerDisplay
}
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/Commit.cs b/Octokit/Models/Response/Commit.cs
index e72abbf649..af11cde87f 100644
--- a/Octokit/Models/Response/Commit.cs
+++ b/Octokit/Models/Response/Commit.cs
@@ -24,18 +24,18 @@ public Commit(string nodeId, string url, string label, string @ref, string sha,
Verification = verification;
}
- public string Message { get; protected set; }
+ public string Message { get; private set; }
- public Committer Author { get; protected set; }
+ public Committer Author { get; private set; }
- public Committer Committer { get; protected set; }
+ public Committer Committer { get; private set; }
- public GitReference Tree { get; protected set; }
+ public GitReference Tree { get; private set; }
- public IReadOnlyList Parents { get; protected set; }
+ public IReadOnlyList Parents { get; private set; }
- public int CommentCount { get; protected set; }
+ public int CommentCount { get; private set; }
- public Verification Verification { get; protected set; }
+ public Verification Verification { get; private set; }
}
}
diff --git a/Octokit/Models/Response/CommitComment.cs b/Octokit/Models/Response/CommitComment.cs
index 531423a103..07b0d4bc1c 100644
--- a/Octokit/Models/Response/CommitComment.cs
+++ b/Octokit/Models/Response/CommitComment.cs
@@ -29,67 +29,67 @@ public CommitComment(int id, string nodeId, string url, string htmlUrl, string b
///
/// The issue comment Id.
///
- public int Id { get; protected set; }
+ public int Id { get; private set; }
///
/// GraphQL Node Id
///
- public string NodeId { get; protected set; }
+ public string NodeId { get; private set; }
///
/// The URL for this repository comment.
///
- public string Url { get; protected set; }
+ public string Url { get; private set; }
///
/// The html URL for this repository comment.
///
- public string HtmlUrl { get; protected set; }
+ public string HtmlUrl { get; private set; }
///
/// Details about the repository comment.
///
- public string Body { get; protected set; }
+ public string Body { get; private set; }
///
/// Relative path of the file that was commented on.
///
- public string Path { get; protected set; }
+ public string Path { get; private set; }
///
/// Line index in the diff that was commented on.
///
- public int? Position { get; protected set; }
+ public int? Position { get; private set; }
///
/// The line number in the file that was commented on.
///
- public int? Line { get; protected set; }
+ public int? Line { get; private set; }
///
- /// The commit
+ /// The commit
///
- public string CommitId { get; protected set; }
+ public string CommitId { get; private set; }
///
/// The user that created the repository comment.
///
- public User User { get; protected set; }
+ public User User { get; private set; }
///
/// The date the repository comment was created.
///
- public DateTimeOffset CreatedAt { get; protected set; }
+ public DateTimeOffset CreatedAt { get; private set; }
///
/// The date the repository comment was last updated.
///
- public DateTimeOffset? UpdatedAt { get; protected set; }
+ public DateTimeOffset? UpdatedAt { get; private set; }
///
/// The reaction summary for this comment.
///
- public ReactionSummary Reactions { get; protected set; }
+ public ReactionSummary Reactions { get; private set; }
internal string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/CommitStatus.cs b/Octokit/Models/Response/CommitStatus.cs
index d5660f21da..4f92096f35 100644
--- a/Octokit/Models/Response/CommitStatus.cs
+++ b/Octokit/Models/Response/CommitStatus.cs
@@ -27,53 +27,53 @@ public CommitStatus(DateTimeOffset createdAt, DateTimeOffset updatedAt, CommitSt
///
/// The date the commit status was created.
///
- public DateTimeOffset CreatedAt { get; protected set; }
+ public DateTimeOffset CreatedAt { get; private set; }
///
/// The date the commit status was updated.
///
- public DateTimeOffset UpdatedAt { get; protected set; }
+ public DateTimeOffset UpdatedAt { get; private set; }
///
/// The state of the commit
///
- public StringEnum State { get; protected set; }
+ public StringEnum State { get; private set; }
///
/// URL associated with this status. GitHub.com displays this URL as a link to allow users to easily see the
/// ‘source’ of the Status.
///
- public string TargetUrl { get; protected set; }
+ public string TargetUrl { get; private set; }
///
/// Short description of the status.
///
- public string Description { get; protected set; }
+ public string Description { get; private set; }
///
/// A string label to differentiate this status from the status of other systems.
///
- public string Context { get; protected set; }
+ public string Context { get; private set; }
///
/// The unique identifier of the status.
///
- public long Id { get; protected set; }
+ public long Id { get; private set; }
///
/// GraphQL Node Id
///
- public string NodeId { get; protected set; }
+ public string NodeId { get; private set; }
///
/// The URL of the status.
///
- public string Url { get; protected set; }
+ public string Url { get; private set; }
///
/// The user that created the status.
///
- public User Creator { get; protected set; }
+ public User Creator { get; private set; }
internal string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/CompareResult.cs b/Octokit/Models/Response/CompareResult.cs
index 6d02119b23..99bbf540ad 100644
--- a/Octokit/Models/Response/CompareResult.cs
+++ b/Octokit/Models/Response/CompareResult.cs
@@ -26,19 +26,19 @@ public CompareResult(string url, string htmlUrl, string permalinkUrl, string dif
Files = files;
}
- public string Url { get; protected set; }
- public string HtmlUrl { get; protected set; }
- public string PermalinkUrl { get; protected set; }
- public string DiffUrl { get; protected set; }
- public string PatchUrl { get; protected set; }
- public GitHubCommit BaseCommit { get; protected set; }
- public GitHubCommit MergeBaseCommit { get; protected set; }
- public string Status { get; protected set; }
- public int AheadBy { get; protected set; }
- public int BehindBy { get; protected set; }
- public int TotalCommits { get; protected set; }
- public IReadOnlyList Commits { get; protected set; }
- public IReadOnlyList Files { get; protected set; }
+ public string Url { get; private set; }
+ public string HtmlUrl { get; private set; }
+ public string PermalinkUrl { get; private set; }
+ public string DiffUrl { get; private set; }
+ public string PatchUrl { get; private set; }
+ public GitHubCommit BaseCommit { get; private set; }
+ public GitHubCommit MergeBaseCommit { get; private set; }
+ public string Status { get; private set; }
+ public int AheadBy { get; private set; }
+ public int BehindBy { get; private set; }
+ public int TotalCommits { get; private set; }
+ public IReadOnlyList Commits { get; private set; }
+ public IReadOnlyList Files { get; private set; }
internal string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/Contributor.cs b/Octokit/Models/Response/Contributor.cs
index 4c35c334d6..2bf5a57e65 100644
--- a/Octokit/Models/Response/Contributor.cs
+++ b/Octokit/Models/Response/Contributor.cs
@@ -19,11 +19,11 @@ public Contributor(Author author, int total, IReadOnlyList weeks)
Weeks = weeks;
}
- public Author Author { get; protected set; }
+ public Author Author { get; private set; }
- public int Total { get; protected set; }
+ public int Total { get; private set; }
- public IReadOnlyList Weeks { get; protected set; }
+ public IReadOnlyList Weeks { get; private set; }
internal string DebuggerDisplay
{
@@ -34,4 +34,4 @@ internal string DebuggerDisplay
}
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/DeployKey.cs b/Octokit/Models/Response/DeployKey.cs
index 464e0b8384..0f9771158c 100644
--- a/Octokit/Models/Response/DeployKey.cs
+++ b/Octokit/Models/Response/DeployKey.cs
@@ -16,10 +16,10 @@ public DeployKey(int id, string key, string url, string title)
Title = title;
}
- public int Id { get; protected set; }
- public string Key { get; protected set; }
- public string Url { get; protected set; }
- public string Title { get; protected set; }
+ public int Id { get; private set; }
+ public string Key { get; private set; }
+ public string Url { get; private set; }
+ public string Title { get; private set; }
internal string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/Deployment.cs b/Octokit/Models/Response/Deployment.cs
index ba3016a295..f8dbb4cce3 100644
--- a/Octokit/Models/Response/Deployment.cs
+++ b/Octokit/Models/Response/Deployment.cs
@@ -33,67 +33,67 @@ public Deployment(int id, string nodeId, string sha, string url, User creator, I
///
/// Id of this deployment.
///
- public int Id { get; protected set; }
+ public int Id { get; private set; }
///
/// GraphQL Node Id
///
- public string NodeId { get; protected set; }
+ public string NodeId { get; private set; }
///
- ///
+ ///
///
- public string Sha { get; protected set; }
+ public string Sha { get; private set; }
///
/// The API URL for this deployment.
///
- public string Url { get; protected set; }
+ public string Url { get; private set; }
///
/// The that created the deployment.
///
- public User Creator { get; protected set; }
+ public User Creator { get; private set; }
///
/// JSON payload with extra information about the deployment.
///
- public IReadOnlyDictionary Payload { get; protected set; }
+ public IReadOnlyDictionary Payload { get; private set; }
///
/// Date and time that the deployment was created.
///
- public DateTimeOffset CreatedAt { get; protected set; }
+ public DateTimeOffset CreatedAt { get; private set; }
///
/// Date and time that the deployment was updated.
///
- public DateTimeOffset UpdatedAt { get; protected set; }
+ public DateTimeOffset UpdatedAt { get; private set; }
///
/// A short description of the deployment.
///
- public string Description { get; protected set; }
+ public string Description { get; private set; }
///
/// The API URL for the es of this deployment.
///
- public string StatusesUrl { get; protected set; }
+ public string StatusesUrl { get; private set; }
///
/// Indicates if the environment is specific to a deployment and will no longer exist at some point in the future.
///
- public bool TransientEnvironment { get; protected set; }
+ public bool TransientEnvironment { get; private set; }
///
/// Indicates if the environment is one with which end users directly interact.
///
- public bool ProductionEnvironment { get; protected set; }
+ public bool ProductionEnvironment { get; private set; }
///
/// Specifies a task to execute (e.g., deploy or deploy:migrations)
///
- public string Task { get; protected set; }
+ public string Task { get; private set; }
internal string DebuggerDisplay
{
@@ -103,4 +103,4 @@ internal string DebuggerDisplay
}
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/DeploymentStatus.cs b/Octokit/Models/Response/DeploymentStatus.cs
index cd46e7339e..1936e63c35 100644
--- a/Octokit/Models/Response/DeploymentStatus.cs
+++ b/Octokit/Models/Response/DeploymentStatus.cs
@@ -30,66 +30,66 @@ public DeploymentStatus(int id, string nodeId, string url, DeploymentState state
///
/// Id of this deployment status.
///
- public int Id { get; protected set; }
+ public int Id { get; private set; }
///
/// GraphQL Node Id
///
- public string NodeId { get; protected set; }
+ public string NodeId { get; private set; }
///
/// The API URL for this deployment status.
///
- public string Url { get; protected set; }
+ public string Url { get; private set; }
///
/// The state of this deployment status.
///
- public StringEnum State { get; protected set; }
+ public StringEnum State { get; private set; }
///
/// The that created this deployment status.
///
- public User Creator { get; protected set; }
+ public User Creator { get; private set; }
///
/// JSON payload with extra information about the deployment.
///
- public IReadOnlyDictionary Payload { get; protected set; }
+ public IReadOnlyDictionary Payload { get; private set; }
///
/// The target URL of this deployment status. This URL should contain
/// output to keep the user updated while the task is running or serve
/// as historical information for what happened in the deployment
///
- public string TargetUrl { get; protected set; }
+ public string TargetUrl { get; private set; }
///
/// The target URL of this deployment status. This URL should contain
/// output to keep the user updated while the task is running or serve as
/// historical information for what happened in the deployment
///
- public string LogUrl { get; protected set; }
+ public string LogUrl { get; private set; }
///
/// The URL for accessing your environment.
///
- public string EnvironmentUrl { get; protected set; }
+ public string EnvironmentUrl { get; private set; }
///
/// The date and time that the status was created.
///
- public DateTimeOffset CreatedAt { get; protected set; }
+ public DateTimeOffset CreatedAt { get; private set; }
///
/// The date and time that the status was updated.
///
- public DateTimeOffset UpdatedAt { get; protected set; }
+ public DateTimeOffset UpdatedAt { get; private set; }
///
/// A short description of the status.
///
- public string Description { get; protected set; }
+ public string Description { get; private set; }
internal string DebuggerDisplay
{
@@ -123,4 +123,4 @@ public enum DeploymentState
[Parameter(Value = "queued")]
Queued
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/EmailAddress.cs b/Octokit/Models/Response/EmailAddress.cs
index 0ae7e3cbb4..355cbf31ee 100644
--- a/Octokit/Models/Response/EmailAddress.cs
+++ b/Octokit/Models/Response/EmailAddress.cs
@@ -24,23 +24,23 @@ public EmailAddress(string email, bool verified, bool primary, EmailVisibility v
///
/// The email address
///
- public string Email { get; protected set; }
+ public string Email { get; private set; }
///
/// True if the email is verified; otherwise false
///
- public bool Verified { get; protected set; }
+ public bool Verified { get; private set; }
///
/// True if this is the users primary email; otherwise false
///
- public bool Primary { get; protected set; }
+ public bool Primary { get; private set; }
///
/// "private" or "public" if the email address is the primary;
/// otherwise null
///
- public StringEnum? Visibility { get; protected set; }
+ public StringEnum? Visibility { get; private set; }
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode",
Justification = "Used by DebuggerDisplayAttribute")]
@@ -61,14 +61,14 @@ public enum EmailVisibility
{
///
/// Primary email address and is public
- ///
+ ///
[Parameter(Value = "public")]
Public,
///
/// Primary email address and is private
- ///
+ ///
[Parameter(Value = "private")]
Private
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/Enterprise/MaintenanceModeActiveProcesses.cs b/Octokit/Models/Response/Enterprise/MaintenanceModeActiveProcesses.cs
index 57b475c87f..81898a755a 100644
--- a/Octokit/Models/Response/Enterprise/MaintenanceModeActiveProcesses.cs
+++ b/Octokit/Models/Response/Enterprise/MaintenanceModeActiveProcesses.cs
@@ -14,9 +14,9 @@ public MaintenanceModeActiveProcesses(string name, int number)
Number = number;
}
- public string Name { get; protected set; }
+ public string Name { get; private set; }
- public int Number { get; protected set; }
+ public int Number { get; private set; }
public override string ToString()
{
diff --git a/Octokit/Models/Response/Enterprise/PreReceiveEnvironment.cs b/Octokit/Models/Response/Enterprise/PreReceiveEnvironment.cs
index cf2c2ce646..2a5a84ff1a 100644
--- a/Octokit/Models/Response/Enterprise/PreReceiveEnvironment.cs
+++ b/Octokit/Models/Response/Enterprise/PreReceiveEnvironment.cs
@@ -29,47 +29,47 @@ public PreReceiveEnvironment(long id, string name, string url, string imageUrl,
///
/// Identifier for the pre-receive environment.
///
- public long Id { get; protected set; }
+ public long Id { get; private set; }
///
/// The name of the environment as displayed in the UI.
///
- public string Name { get; protected set; }
+ public string Name { get; private set; }
///
/// URL to the pre-receive environment.
///
- public string Url { get; protected set; }
+ public string Url { get; private set; }
///
/// URL to the tarball that will be downloaded and extracted.
///
- public string ImageUrl { get; protected set; }
+ public string ImageUrl { get; private set; }
///
/// UI URL to the pre-receive environment.
///
- public string HtmlUrl { get; protected set; }
+ public string HtmlUrl { get; private set; }
///
/// Whether this is the default environment that ships with GitHub Enterprise.
///
- public bool DefaultEnvironment { get; protected set; }
+ public bool DefaultEnvironment { get; private set; }
///
/// The time when the pre-receive environment was created.
///
- public DateTimeOffset? CreatedAt { get; protected set; }
+ public DateTimeOffset? CreatedAt { get; private set; }
///
/// The number of pre-receive hooks that use this environment.
///
- public int HooksCount { get; protected set; }
+ public int HooksCount { get; private set; }
///
/// This environment's download status.
///
- public PreReceiveEnvironmentDownload Download { get; protected set; }
+ public PreReceiveEnvironmentDownload Download { get; private set; }
///
/// Prepares an for use when updating a pre-receive environment.
diff --git a/Octokit/Models/Response/Enterprise/PreReceiveEnvironmentDownload.cs b/Octokit/Models/Response/Enterprise/PreReceiveEnvironmentDownload.cs
index 05200a1ff4..cef9f73c96 100644
--- a/Octokit/Models/Response/Enterprise/PreReceiveEnvironmentDownload.cs
+++ b/Octokit/Models/Response/Enterprise/PreReceiveEnvironmentDownload.cs
@@ -24,22 +24,22 @@ public PreReceiveEnvironmentDownload(string url, PreReceiveEnvironmentDownloadSt
///
/// URL to the download status for a pre-receive environment.
///
- public string Url { get; protected set; }
+ public string Url { get; private set; }
///
/// The state of the most recent download.
///
- public StringEnum State { get; protected set; }
+ public StringEnum State { get; private set; }
///
/// On failure, this will have any error messages produced.
///
- public string Message { get; protected set; }
+ public string Message { get; private set; }
///
/// The time when the most recent download started.
///
- public DateTimeOffset? DownloadedAt { get; protected set; }
+ public DateTimeOffset? DownloadedAt { get; private set; }
internal string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/Enterprise/PreReceiveHook.cs b/Octokit/Models/Response/Enterprise/PreReceiveHook.cs
index af9d5c7c51..a63bdde68c 100644
--- a/Octokit/Models/Response/Enterprise/PreReceiveHook.cs
+++ b/Octokit/Models/Response/Enterprise/PreReceiveHook.cs
@@ -26,37 +26,37 @@ public PreReceiveHook(int id, string name, StringEnum
///
/// The identifier for the pre-receive hook.
///
- public int Id { get; protected set; }
+ public int Id { get; private set; }
///
/// The name of the hook.
///
- public string Name { get; protected set; }
+ public string Name { get; private set; }
///
/// The state of enforcement for this hook.
///
- public StringEnum Enforcement { get; protected set; }
+ public StringEnum Enforcement { get; private set; }
///
/// The script that the hook runs.
///
- public string Script { get; protected set; }
+ public string Script { get; private set; }
///
/// The GitHub repository where the script is kept.
///
- public Repository ScriptRepository { get; protected set; }
+ public Repository ScriptRepository { get; private set; }
///
/// The pre-receive environment where the script is executed.
///
- public PreReceiveEnvironment Environment { get; protected set; }
+ public PreReceiveEnvironment Environment { get; private set; }
///
/// Whether enforcement can be overridden at the org or repo level.
///
- public bool AllowDownstreamConfiguration { get; protected set; }
+ public bool AllowDownstreamConfiguration { get; private set; }
public UpdatePreReceiveHook ToUpdate()
{
diff --git a/Octokit/Models/Response/EventInfo.cs b/Octokit/Models/Response/EventInfo.cs
index 16ebc58148..d2a0238ad7 100644
--- a/Octokit/Models/Response/EventInfo.cs
+++ b/Octokit/Models/Response/EventInfo.cs
@@ -27,47 +27,47 @@ public EventInfo(long id, string nodeId, string url, User actor, User assignee,
///
/// The id of the issue/pull request event.
///
- public long Id { get; protected set; }
+ public long Id { get; private set; }
///
/// GraphQL Node Id
///
- public string NodeId { get; protected set; }
+ public string NodeId { get; private set; }
///
/// The URL for this event.
///
- public string Url { get; protected set; }
+ public string Url { get; private set; }
///
/// Always the User that generated the event.
///
- public User Actor { get; protected set; }
+ public User Actor { get; private set; }
///
/// The user that was assigned, if the event was 'Assigned'.
///
- public User Assignee { get; protected set; }
+ public User Assignee { get; private set; }
///
/// The label that was assigned, if the event was 'Labeled'
///
- public Label Label { get; protected set; }
+ public Label Label { get; private set; }
///
/// Identifies the actual type of Event that occurred.
///
- public StringEnum Event { get; protected set; }
+ public StringEnum Event { get; private set; }
///
/// The String SHA of a commit that referenced this Issue.
///
- public string CommitId { get; protected set; }
+ public string CommitId { get; private set; }
///
/// Date the event occurred for the issue/pull request.
///
- public DateTimeOffset CreatedAt { get; protected set; }
+ public DateTimeOffset CreatedAt { get; private set; }
internal string DebuggerDisplay
{
@@ -111,7 +111,7 @@ public enum EventInfoState
BaseRefChanged,
///
- /// The issue was closed by the actor. When the commit_id is present, it identifies the commit that
+ /// The issue was closed by the actor. When the commit_id is present, it identifies the commit that
/// closed the issue using “closes / fixes #NN” syntax.
///
[Parameter(Value = "closed")]
@@ -195,7 +195,7 @@ public enum EventInfoState
HeadRefRestored,
///
- /// The pull request’s branch was force pushed to.
+ /// The pull request’s branch was force pushed to.
///
[Parameter(Value = "head_ref_force_pushed")]
HeadRefForcePushed,
@@ -256,7 +256,7 @@ public enum EventInfoState
ReadyForReview,
///
- /// The issue was referenced from a commit message. The commit_id attribute is the commit SHA1 of where
+ /// The issue was referenced from a commit message. The commit_id attribute is the commit SHA1 of where
/// that happened.
///
[Parameter(Value = "referenced")]
@@ -309,7 +309,7 @@ public enum EventInfoState
///
[Parameter(Value = "subscribed")]
Subscribed,
-
+
///
/// An issue was transferred.
///
@@ -321,7 +321,7 @@ public enum EventInfoState
///
[Parameter(Value = "unassigned")]
Unassigned,
-
+
///
/// A label was removed from the issue.
///
@@ -339,7 +339,7 @@ public enum EventInfoState
///
[Parameter(Value = "unmarked_as_duplicate")]
UnmarkedAsDuplicate,
-
+
///
/// An issue was unpinned.
///
diff --git a/Octokit/Models/Response/Feed.cs b/Octokit/Models/Response/Feed.cs
index f699881668..1252402873 100644
--- a/Octokit/Models/Response/Feed.cs
+++ b/Octokit/Models/Response/Feed.cs
@@ -26,38 +26,38 @@ public Feed(string timelineUrl, string userUrl, string currentUserPublicUrl, str
///
/// The GitHub global public timeline
///
- public string TimelineUrl { get; protected set; }
+ public string TimelineUrl { get; private set; }
///
/// The public timeline for any user, using URI template
///
- public string UserUrl { get; protected set; }
+ public string UserUrl { get; private set; }
///
/// The public timeline for the authenticated user
///
- public string CurrentUserPublicUrl { get; protected set; }
+ public string CurrentUserPublicUrl { get; private set; }
///
/// The private timeline for the authenticated user
///
- public string CurrentUserUrl { get; protected set; }
+ public string CurrentUserUrl { get; private set; }
///
/// The private timeline for activity created by the authenticated user
///
- public string CurrentUserActorUrl { get; protected set; }
+ public string CurrentUserActorUrl { get; private set; }
///
/// The private timeline for the authenticated user for a given organization, using URI template
///
- public string CurrentUserOrganizationUrl { get; protected set; }
+ public string CurrentUserOrganizationUrl { get; private set; }
///
/// List of feed urls including feed url and feed type, e.g. application/atom+xml
///
[Parameter(Key = "_links")]
- public FeedLinks Links { get; protected set; }
+ public FeedLinks Links { get; private set; }
internal string DebuggerDisplay
{
@@ -67,4 +67,4 @@ internal string DebuggerDisplay
}
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/FeedLink.cs b/Octokit/Models/Response/FeedLink.cs
index d0cdc7bf1c..518d4f3055 100644
--- a/Octokit/Models/Response/FeedLink.cs
+++ b/Octokit/Models/Response/FeedLink.cs
@@ -24,32 +24,32 @@ public FeedLinks(FeedLink timeline, FeedLink user, FeedLink currentUserPublic, F
///
/// The GitHub global public timeline
///
- public FeedLink Timeline { get; protected set; }
+ public FeedLink Timeline { get; private set; }
///
/// The public timeline for any user, using URI template
///
- public FeedLink User { get; protected set; }
+ public FeedLink User { get; private set; }
///
/// The public timeline for the authenticated user
///
- public FeedLink CurrentUserPublic { get; protected set; }
+ public FeedLink CurrentUserPublic { get; private set; }
///
/// The private timeline for the authenticated user
///
- public FeedLink CurrentUser { get; protected set; }
+ public FeedLink CurrentUser { get; private set; }
///
/// The private timeline for activity created by the authenticated user
///
- public FeedLink CurrentUserActor { get; protected set; }
+ public FeedLink CurrentUserActor { get; private set; }
///
/// The private timeline for the authenticated user for a given organization, using URI template
///
- public FeedLink CurrentUserOrganization { get; protected set; }
+ public FeedLink CurrentUserOrganization { get; private set; }
internal string DebuggerDisplay
{
@@ -74,17 +74,17 @@ public FeedLink(string href, string type)
///
/// Link to feed
///
- public string Href { get; protected set; }
+ public string Href { get; private set; }
///
/// Feed type, e.g. application/atom+xml
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")]
- public string Type { get; protected set; }
+ public string Type { get; private set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "Type: {0}, Href: {1}", Type, Href); }
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/Gist.cs b/Octokit/Models/Response/Gist.cs
index 2ec6ffdc52..d209c4abbc 100644
--- a/Octokit/Models/Response/Gist.cs
+++ b/Octokit/Models/Response/Gist.cs
@@ -33,7 +33,7 @@ public Gist(string url, string id, string nodeId, string description, bool @publ
///
/// The API URL for this .
///
- public string Url { get; protected set; }
+ public string Url { get; private set; }
///
/// The Id of this .
@@ -41,22 +41,22 @@ public Gist(string url, string id, string nodeId, string description, bool @publ
///
/// Given a gist url of https://gist.github.com/UserName/1234 the Id would be '1234'.
///
- public string Id { get; protected set; }
+ public string Id { get; private set; }
///
/// GraphQL Node Id
///
- public string NodeId { get; protected set; }
+ public string NodeId { get; private set; }
///
/// A description of the .
///
- public string Description { get; protected set; }
+ public string Description { get; private set; }
///
/// Indicates if the is private or public.
///
- public bool Public { get; protected set; }
+ public bool Public { get; private set; }
///
/// The who owns this .
@@ -64,57 +64,57 @@ public Gist(string url, string id, string nodeId, string description, bool @publ
///
/// Given a gist url of https://gist.github.com/UserName/1234 the Owner would be 'UserName'.
///
- public User Owner { get; protected set; }
+ public User Owner { get; private set; }
///
/// A containing all s in this .
///
- public IReadOnlyDictionary Files { get; protected set; }
+ public IReadOnlyDictionary Files { get; private set; }
///
/// The number of comments on this .
///
- public int Comments { get; protected set; }
+ public int Comments { get; private set; }
///
/// A url to retrieve the comments for this .
///
- public string CommentsUrl { get; protected set; }
+ public string CommentsUrl { get; private set; }
///
/// URL to view the gist on gist.github.com.
///
- public string HtmlUrl { get; protected set; }
+ public string HtmlUrl { get; private set; }
///
/// The git url to pull from to retrieve the contents for this .
///
- public string GitPullUrl { get; protected set; }
+ public string GitPullUrl { get; private set; }
///
/// The git url to push to when changing this .
///
- public string GitPushUrl { get; protected set; }
+ public string GitPushUrl { get; private set; }
///
/// The for when this was created.
///
- public DateTimeOffset CreatedAt { get; protected set; }
+ public DateTimeOffset CreatedAt { get; private set; }
///
/// The for when this was last updated.
///
- public DateTimeOffset UpdatedAt { get; protected set; }
+ public DateTimeOffset UpdatedAt { get; private set; }
///
/// A of all that exist for this .
///
- public IReadOnlyList Forks { get; protected set; }
+ public IReadOnlyList Forks { get; private set; }
///
/// A of all containing the full history for this .
///
- public IReadOnlyList History { get; protected set; }
+ public IReadOnlyList History { get; private set; }
internal string DebuggerDisplay
{
@@ -124,4 +124,4 @@ internal string DebuggerDisplay
}
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/GistChangeStatus.cs b/Octokit/Models/Response/GistChangeStatus.cs
index f892fcb8cf..ac5f4a1d26 100644
--- a/Octokit/Models/Response/GistChangeStatus.cs
+++ b/Octokit/Models/Response/GistChangeStatus.cs
@@ -21,21 +21,21 @@ public GistChangeStatus(int deletions, int additions, int total)
///
/// The number of deletions that occurred as part of this change.
///
- public int Deletions { get; protected set; }
+ public int Deletions { get; private set; }
///
/// The number of additions that occurred as part of this change.
///
- public int Additions { get; protected set; }
+ public int Additions { get; private set; }
///
/// The total number of changes.
///
- public int Total { get; protected set; }
+ public int Total { get; private set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "Deletions: {0}, Additions: {1}, Total: {2}", Deletions, Additions, Total); }
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/GistComment.cs b/Octokit/Models/Response/GistComment.cs
index 9a9b773c18..f432398de2 100644
--- a/Octokit/Models/Response/GistComment.cs
+++ b/Octokit/Models/Response/GistComment.cs
@@ -23,37 +23,37 @@ public GistComment(int id, string nodeId, string url, string body, User user, Da
///
/// The gist comment id.
///
- public int Id { get; protected set; }
+ public int Id { get; private set; }
///
/// GraphQL Node Id
///
- public string NodeId { get; protected set; }
+ public string NodeId { get; private set; }
///
/// The URL for this gist comment.
///
- public string Url { get; protected set; }
+ public string Url { get; private set; }
///
/// The body of this gist comment.
/// t
- public string Body { get; protected set; }
+ public string Body { get; private set; }
///
/// The user that created this gist comment.
///
- public User User { get; protected set; }
+ public User User { get; private set; }
///
/// The date this comment was created.
///
- public DateTimeOffset CreatedAt { get; protected set; }
+ public DateTimeOffset CreatedAt { get; private set; }
///
/// The date this comment was last updated.
///
- public DateTimeOffset? UpdatedAt { get; protected set; }
+ public DateTimeOffset? UpdatedAt { get; private set; }
internal string DebuggerDisplay
{
@@ -63,4 +63,4 @@ internal string DebuggerDisplay
}
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/GistFile.cs b/Octokit/Models/Response/GistFile.cs
index 0fd53f6d95..d02d1f4055 100644
--- a/Octokit/Models/Response/GistFile.cs
+++ b/Octokit/Models/Response/GistFile.cs
@@ -23,38 +23,38 @@ public GistFile(int size, string filename, string type, string language, string
///
/// The size in bytes of the file.
///
- public int Size { get; protected set; }
+ public int Size { get; private set; }
///
/// The name of the file
///
[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly")]
- public string Filename { get; protected set; }
+ public string Filename { get; private set; }
///
/// The mime type of the file
///
[SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")]
- public string Type { get; protected set; }
+ public string Type { get; private set; }
///
/// The programming language of the file, if any.
///
- public string Language { get; protected set; }
+ public string Language { get; private set; }
///
/// The text content of the file.
///
- public string Content { get; protected set; }
+ public string Content { get; private set; }
///
/// The url to download the file.
///
- public string RawUrl { get; protected set; }
+ public string RawUrl { get; private set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "Filename: {0}, Size: {1}, Type: {2}, Language: {3}", Filename, Size, Type, Language); }
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/GistFork.cs b/Octokit/Models/Response/GistFork.cs
index 888b81cb8c..9fc8ac5e1c 100644
--- a/Octokit/Models/Response/GistFork.cs
+++ b/Octokit/Models/Response/GistFork.cs
@@ -20,26 +20,26 @@ public GistFork(string nodeId, User user, string url, DateTimeOffset createdAt)
///
/// GraphQL Node Id
///
- public string NodeId { get; protected set; }
+ public string NodeId { get; private set; }
///
/// The that created this
///
- public User User { get; protected set; }
+ public User User { get; private set; }
///
/// The API URL for this .
///
- public string Url { get; protected set; }
+ public string Url { get; private set; }
///
/// The for when this was created.
///
- public DateTimeOffset CreatedAt { get; protected set; }
+ public DateTimeOffset CreatedAt { get; private set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "User: {0}, Url: {1}", User.DebuggerDisplay, Url); }
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/GistHistory.cs b/Octokit/Models/Response/GistHistory.cs
index e7d06fcbb4..bc6f9bceb0 100644
--- a/Octokit/Models/Response/GistHistory.cs
+++ b/Octokit/Models/Response/GistHistory.cs
@@ -24,31 +24,31 @@ public GistHistory(string url, string version, User user, GistChangeStatus chang
///
/// The url that can be used by the API to retrieve this version of the .
///
- public string Url { get; protected set; }
+ public string Url { get; private set; }
///
/// A git sha representing the version.
///
- public string Version { get; protected set; }
+ public string Version { get; private set; }
///
/// The who create this version.
///
- public User User { get; protected set; }
+ public User User { get; private set; }
///
/// A that represents the level of change for this .
///
- public GistChangeStatus ChangeStatus { get; protected set; }
+ public GistChangeStatus ChangeStatus { get; private set; }
///
/// The the version was created.
///
- public DateTimeOffset CommittedAt { get; protected set; }
+ public DateTimeOffset CommittedAt { get; private set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "User: {0}, Url: {1}, Version: {2}, ChangeStatus: {3}", User.DebuggerDisplay, Url, Version, ChangeStatus); }
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/GitHubApp.cs b/Octokit/Models/Response/GitHubApp.cs
index 1f233e05a2..d511450340 100644
--- a/Octokit/Models/Response/GitHubApp.cs
+++ b/Octokit/Models/Response/GitHubApp.cs
@@ -28,47 +28,47 @@ public GitHubApp(long id, string slug, string name, User owner, string descripti
///
/// The Id of the GitHub App.
///
- public long Id { get; protected set; }
+ public long Id { get; private set; }
///
/// The url-friendly version of the GitHub App name.
///
- public string Slug { get; protected set; }
+ public string Slug { get; private set; }
///
/// The Name of the GitHub App.
///
- public string Name { get; protected set; }
+ public string Name { get; private set; }
///
/// The Owner of the GitHub App.
///
- public User Owner { get; protected set; }
+ public User Owner { get; private set; }
///
/// The Description of the GitHub App.
///
- public string Description { get; protected set; }
+ public string Description { get; private set; }
///
/// The URL to the GitHub App's external website.
///
- public string ExternalUrl { get; protected set; }
+ public string ExternalUrl { get; private set; }
///
/// The URL to view the GitHub App on GitHub.
///
- public string HtmlUrl { get; protected set; }
+ public string HtmlUrl { get; private set; }
///
/// Date the GitHub App was created.
///
- public DateTimeOffset CreatedAt { get; protected set; }
+ public DateTimeOffset CreatedAt { get; private set; }
///
/// Date the GitHub App was last updated.
///
- public DateTimeOffset UpdatedAt { get; protected set; }
+ public DateTimeOffset UpdatedAt { get; private set; }
internal string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/GitHubCommit.cs b/Octokit/Models/Response/GitHubCommit.cs
index 34f4a35606..cc5eaec7ae 100644
--- a/Octokit/Models/Response/GitHubCommit.cs
+++ b/Octokit/Models/Response/GitHubCommit.cs
@@ -29,25 +29,25 @@ public GitHubCommit(string nodeId, string url, string label, string @ref, string
/// address used in the commit with the email addresses registered with the GitHub account.
/// If no account corresponds to the commit email, then this property is null.
///
- public Author Author { get; protected set; }
+ public Author Author { get; private set; }
- public string CommentsUrl { get; protected set; }
+ public string CommentsUrl { get; private set; }
- public Commit Commit { get; protected set; }
+ public Commit Commit { get; private set; }
///
/// Gets the GitHub account information for the commit committer. It attempts to match the email
/// address used in the commit with the email addresses registered with the GitHub account.
/// If no account corresponds to the commit email, then this property is null.
///
- public Author Committer { get; protected set; }
+ public Author Committer { get; private set; }
- public string HtmlUrl { get; protected set; }
+ public string HtmlUrl { get; private set; }
- public GitHubCommitStats Stats { get; protected set; }
+ public GitHubCommitStats Stats { get; private set; }
- public IReadOnlyList Parents { get; protected set; }
+ public IReadOnlyList Parents { get; private set; }
- public IReadOnlyList Files { get; protected set; }
+ public IReadOnlyList Files { get; private set; }
}
}
diff --git a/Octokit/Models/Response/GitHubCommitFile.cs b/Octokit/Models/Response/GitHubCommitFile.cs
index d144ee760a..52eb91bf92 100644
--- a/Octokit/Models/Response/GitHubCommitFile.cs
+++ b/Octokit/Models/Response/GitHubCommitFile.cs
@@ -33,58 +33,58 @@ public GitHubCommitFile(string filename, int additions, int deletions, int chang
/// The name of the file
///
[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly")]
- public string Filename { get; protected set; }
+ public string Filename { get; private set; }
///
/// Number of additions performed on the file.
///
- public int Additions { get; protected set; }
+ public int Additions { get; private set; }
///
/// Number of deletions performed on the file.
///
- public int Deletions { get; protected set; }
+ public int Deletions { get; private set; }
///
/// Number of changes performed on the file.
///
- public int Changes { get; protected set; }
+ public int Changes { get; private set; }
///
/// File status, like modified, added, deleted.
///
- public string Status { get; protected set; }
+ public string Status { get; private set; }
///
/// The url to the file blob.
///
- public string BlobUrl { get; protected set; }
+ public string BlobUrl { get; private set; }
///
/// The url to file contents API.
///
- public string ContentsUrl { get; protected set; }
+ public string ContentsUrl { get; private set; }
///
/// The raw url to download the file.
///
- public string RawUrl { get; protected set; }
+ public string RawUrl { get; private set; }
///
/// The SHA of the file.
///
- public string Sha { get; protected set; }
+ public string Sha { get; private set; }
///
/// The patch associated with the commit
///
- public string Patch { get; protected set; }
+ public string Patch { get; private set; }
///
/// The previous filename for a renamed file.
///
[Parameter(Key = "previous_filename")]
- public string PreviousFileName { get; protected set; }
+ public string PreviousFileName { get; private set; }
internal string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/GitHubCommitStats.cs b/Octokit/Models/Response/GitHubCommitStats.cs
index cf4eb44029..ef6bc083a4 100644
--- a/Octokit/Models/Response/GitHubCommitStats.cs
+++ b/Octokit/Models/Response/GitHubCommitStats.cs
@@ -21,17 +21,17 @@ public GitHubCommitStats(int additions, int deletions, int total)
///
/// The number of additions made within the commit
///
- public int Additions { get; protected set; }
+ public int Additions { get; private set; }
///
/// The number of deletions made within the commit
///
- public int Deletions { get; protected set; }
+ public int Deletions { get; private set; }
///
/// The total number of modifications within the commit
///
- public int Total { get; protected set; }
+ public int Total { get; private set; }
internal string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/GitIgnoreTemplate.cs b/Octokit/Models/Response/GitIgnoreTemplate.cs
index 3a517df135..491769fbe5 100644
--- a/Octokit/Models/Response/GitIgnoreTemplate.cs
+++ b/Octokit/Models/Response/GitIgnoreTemplate.cs
@@ -19,8 +19,8 @@ public GitIgnoreTemplate()
{
}
- public string Name { get; protected set; }
- public string Source { get; protected set; }
+ public string Name { get; private set; }
+ public string Source { get; private set; }
internal string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/GitTag.cs b/Octokit/Models/Response/GitTag.cs
index 6db53711d7..a03a2d507b 100644
--- a/Octokit/Models/Response/GitTag.cs
+++ b/Octokit/Models/Response/GitTag.cs
@@ -18,14 +18,14 @@ public GitTag(string nodeId, string url, string label, string @ref, string sha,
}
- public string Tag { get; protected set; }
+ public string Tag { get; private set; }
- public string Message { get; protected set; }
+ public string Message { get; private set; }
- public Committer Tagger { get; protected set; }
+ public Committer Tagger { get; private set; }
- public TagObject Object { get; protected set; }
+ public TagObject Object { get; private set; }
- public Verification Verification { get; protected set; }
+ public Verification Verification { get; private set; }
}
}
diff --git a/Octokit/Models/Response/GpgKey.cs b/Octokit/Models/Response/GpgKey.cs
index 311393b4ea..48296bc8d6 100644
--- a/Octokit/Models/Response/GpgKey.cs
+++ b/Octokit/Models/Response/GpgKey.cs
@@ -28,19 +28,19 @@ public GpgKey(int id, int? primaryKeyId, string keyId, string publicKey, IReadOn
ExpiresAt = expiresAt;
}
- 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 Emails { get; protected set; }
- public IReadOnlyList Subkeys { get; protected set; }
- public bool CanSign { get; protected set; }
+ public int Id { get; private set; }
+ public int? PrimaryKeyId { get; private set; }
+ public string KeyId { get; private set; }
+ public string PublicKey { get; private set; }
+ public IReadOnlyList Emails { get; private set; }
+ public IReadOnlyList Subkeys { get; private set; }
+ public bool CanSign { get; private 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; }
+ public bool CanEncryptCommunications { get; private set; }
+ public bool CanEncryptStorage { get; private set; }
+ public bool CanCertify { get; private set; }
+ public DateTimeOffset CreatedAt { get; private set; }
+ public DateTimeOffset? ExpiresAt { get; private set; }
internal string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/Installation.cs b/Octokit/Models/Response/Installation.cs
index 83a7817a0c..98e002630d 100644
--- a/Octokit/Models/Response/Installation.cs
+++ b/Octokit/Models/Response/Installation.cs
@@ -32,27 +32,27 @@ public Installation(long id, User account, string accessTokenUrl, string reposit
///
/// The user who owns the Installation.
///
- public User Account { get; protected set; }
+ public User Account { get; private set; }
///
/// The URL to view the Installation on GitHub.
///
- public string HtmlUrl { get; protected set; }
+ public string HtmlUrl { get; private set; }
///
/// The Id of the associated GitHub App.
///
- public long AppId { get; protected set; }
+ public long AppId { get; private set; }
///
/// The Id of the User/Organization the Installation is installed in
///
- public long TargetId { get; protected set; }
+ public long TargetId { get; private set; }
///
/// The type of the target (User or Organization)
///
- public StringEnum TargetType { get; protected set; }
+ public StringEnum TargetType { get; private set; }
///
/// The Permissions granted to the Installation
@@ -67,12 +67,12 @@ public Installation(long id, User account, string accessTokenUrl, string reposit
///
/// The single file the GitHub App can manage (when Permissions.SingleFile is set to read or write)
///
- public string SingleFileName { get; protected set; }
+ public string SingleFileName { get; private set; }
///
/// The choice of repositories the installation is on. Can be either "selected" or "all".
///
- public StringEnum RepositorySelection { get; protected set; }
+ public StringEnum RepositorySelection { get; private set; }
internal new string DebuggerDisplay
{
diff --git a/Octokit/Models/Response/InstallationPermissions.cs b/Octokit/Models/Response/InstallationPermissions.cs
index 1b01d031fc..fb407f4943 100644
--- a/Octokit/Models/Response/InstallationPermissions.cs
+++ b/Octokit/Models/Response/InstallationPermissions.cs
@@ -31,85 +31,85 @@ public InstallationPermissions(InstallationPermissionLevel? metadata, Installati
/// Repository metadata
/// Search repositories, list collaborators, and access repository metadata.
///
- public StringEnum? Metadata { get; protected set; }
+ public StringEnum? Metadata { get; private set; }
///
/// Repository administration
/// Repository creation, deletion, settings, teams, and collaborators.
///
- public StringEnum? Administration { get; protected set; }
+ public StringEnum? Administration { get; private set; }
///
/// Commit statuses
/// Commit statuses.
///
- public StringEnum? Statuses { get; protected set; }
+ public StringEnum? Statuses { get; private set; }
///
/// Deployments
/// Deployments and deployment statuses.
///
- public StringEnum? Deployments { get; protected set; }
+ public StringEnum? Deployments { get; private set; }
///
/// Issues
/// Issues and related comments, assignees, labels, and milestones.
///
- public StringEnum? Issues { get; protected set; }
+ public StringEnum? Issues { get; private set; }
///
/// Pages
/// Retrieve Pages statuses, configuration, and builds, as well as create new builds.
///
- public StringEnum? Pages { get; protected set; }
+ public StringEnum? Pages { get; private set; }
///
/// Pull requests
/// Pull requests and related comments, assignees, labels, milestones, and merges.
///
- public StringEnum? PullRequests { get; protected set; }
+ public StringEnum? PullRequests { get; private set; }
///
/// Repository contents
/// Repository contents, commits, branches, downloads, releases, and merges.
///
- public StringEnum? Contents { get; protected set; }
+ public StringEnum? Contents { get; private set; }
///
/// Single file
/// Manage just a single file.
///
- public StringEnum? SingleFile { get; protected set; }
+ public StringEnum? SingleFile { get; private set; }
///
/// Repository projects
/// Manage repository projects, columns, and cards.
///
- public StringEnum? RepositoryProjects { get; protected set; }
+ public StringEnum? RepositoryProjects { get; private set; }
///
/// Checks
/// Detailed information about CI checks
///
- public StringEnum? Checks { get; protected set; }
+ public StringEnum? Checks { get; private set; }
///
/// Organization members (only applicable when installed for an Organization )
/// Organization members and teams.
///
- public StringEnum? Members { get; protected set; }
+ public StringEnum? Members { get; private set; }
///
/// Organization projects (only applicable when installed for an Organization )
/// Manage organization projects, columns, and cards.
///
- public StringEnum? OrganizationProjects { get; protected set; }
+ public StringEnum? OrganizationProjects { get; private set; }
///
/// Team discussions (only applicable when installed for an Organization )
/// Team discussions.
///
- public StringEnum? TeamDiscussions { get; protected set; }
+ public StringEnum? TeamDiscussions { get; private set; }
internal string DebuggerDisplay
{
@@ -125,4 +125,4 @@ public enum InstallationPermissionLevel
[Parameter(Value = "write")]
Write
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/InstallationsResponse.cs b/Octokit/Models/Response/InstallationsResponse.cs
index acea8ec7f0..5348fbcd5f 100644
--- a/Octokit/Models/Response/InstallationsResponse.cs
+++ b/Octokit/Models/Response/InstallationsResponse.cs
@@ -20,13 +20,13 @@ public InstallationsResponse(int totalCount, IReadOnlyList install
///
/// The total number of check suites that match the request filter
///
- public int TotalCount { get; protected set; }
+ public int TotalCount { get; private set; }
///
/// The retrieved check suites
///
- public IReadOnlyList Installations { get; protected set; }
+ public IReadOnlyList Installations { get; private set; }
internal string DebuggerDisplay => string.Format(CultureInfo.CurrentCulture, "TotalCount: {0}, Installations: {1}", TotalCount, Installations.Count);
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/Issue.cs b/Octokit/Models/Response/Issue.cs
index 0a33673c56..ef25f3c26f 100644
--- a/Octokit/Models/Response/Issue.cs
+++ b/Octokit/Models/Response/Issue.cs
@@ -44,124 +44,124 @@ public Issue(string url, string htmlUrl, string commentsUrl, string eventsUrl, i
///
/// The internal Id for this issue (not the issue number)
///
- public int Id { get; protected set; }
+ public int Id { get; private set; }
///
/// GraphQL Node Id
///
- public string NodeId { get; protected set; }
+ public string NodeId { get; private set; }
///
/// The URL for this issue.
///
- public string Url { get; protected set; }
+ public string Url { get; private set; }
///
/// The URL for the HTML view of this issue.
///
- public string HtmlUrl { get; protected set; }
+ public string HtmlUrl { get; private set; }
///
/// The Comments URL of this issue.
///
- public string CommentsUrl { get; protected set; }
+ public string CommentsUrl { get; private set; }
///
/// The Events URL of this issue.
///
- public string EventsUrl { get; protected set; }
+ public string EventsUrl { get; private set; }
///
/// The issue number.
///
- public int Number { get; protected set; }
+ public int Number { get; private set; }
///
/// Whether the issue is open or closed.
///
- public StringEnum State { get; protected set; }
+ public StringEnum State { get; private set; }
///
/// Title of the issue
///
- public string Title { get; protected set; }
+ public string Title { get; private set; }
///
/// Details about the issue.
///
- public string Body { get; protected set; }
+ public string Body { get; private set; }
///
/// Details about the user who has closed this issue.
///
- public User ClosedBy { get; protected set; }
+ public User ClosedBy { get; private set; }
///
/// The user that created the issue.
///
- public User User { get; protected set; }
+ public User User { get; private set; }
///
/// The set of labels applied to the issue
///
- public IReadOnlyList