Skip to content

Commit

Permalink
New updates to generated code (#101)
Browse files Browse the repository at this point in the history
Co-authored-by: Octokit Bot <[email protected]>
  • Loading branch information
octokitbot and Octokit Bot authored Jul 19, 2024
1 parent ded7fd8 commit 5e9b7ac
Show file tree
Hide file tree
Showing 19 changed files with 43 additions and 502 deletions.
6 changes: 3 additions & 3 deletions src/GitHub/Models/EnvironmentObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class EnvironmentObject : IAdditionalDataHolder, IParsable
public string HtmlUrl { get; set; }
#endif
/// <summary>The id of the environment.</summary>
public int? Id { get; set; }
public long? Id { get; set; }
/// <summary>The name of the environment.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down Expand Up @@ -94,7 +94,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } },
{"deployment_branch_policy", n => { DeploymentBranchPolicy = n.GetObjectValue<DeploymentBranchPolicySettings>(DeploymentBranchPolicySettings.CreateFromDiscriminatorValue); } },
{"html_url", n => { HtmlUrl = n.GetStringValue(); } },
{"id", n => { Id = n.GetIntValue(); } },
{"id", n => { Id = n.GetLongValue(); } },
{"name", n => { Name = n.GetStringValue(); } },
{"node_id", n => { NodeId = n.GetStringValue(); } },
{"protection_rules", n => { ProtectionRules = n.GetCollectionOfObjectValues<Environment_protection_rules>(Environment_protection_rules.CreateFromDiscriminatorValue)?.ToList(); } },
Expand All @@ -112,7 +112,7 @@ public virtual void Serialize(ISerializationWriter writer)
writer.WriteDateTimeOffsetValue("created_at", CreatedAt);
writer.WriteObjectValue<DeploymentBranchPolicySettings>("deployment_branch_policy", DeploymentBranchPolicy);
writer.WriteStringValue("html_url", HtmlUrl);
writer.WriteIntValue("id", Id);
writer.WriteLongValue("id", Id);
writer.WriteStringValue("name", Name);
writer.WriteStringValue("node_id", NodeId);
writer.WriteCollectionOfObjectValues<Environment_protection_rules>("protection_rules", ProtectionRules);
Expand Down
72 changes: 0 additions & 72 deletions src/GitHub/Models/OrganizationFineGrainedPermission.cs

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public TeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
{
}
/// <summary>
/// Lists the teams that are assigned to an organization role. For more information on organization roles, see &quot;[Managing people&apos;s access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles).&quot;To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
/// Lists the teams that are assigned to an organization role. For more information on organization roles, see &quot;[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles).&quot;To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
/// API method documentation <see href="https://docs.github.com/rest/orgs/organization-roles#list-teams-that-are-assigned-to-an-organization-role" />
/// </summary>
/// <returns>A List&lt;TeamRoleAssignment&gt;</returns>
Expand All @@ -51,7 +51,7 @@ public async Task<List<TeamRoleAssignment>> GetAsync(Action<RequestConfiguration
return collectionResult?.ToList();
}
/// <summary>
/// Lists the teams that are assigned to an organization role. For more information on organization roles, see &quot;[Managing people&apos;s access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles).&quot;To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
/// Lists the teams that are assigned to an organization role. For more information on organization roles, see &quot;[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles).&quot;To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down Expand Up @@ -79,7 +79,7 @@ public TeamsRequestBuilder WithUrl(string rawUrl)
return new TeamsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Lists the teams that are assigned to an organization role. For more information on organization roles, see &quot;[Managing people&apos;s access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles).&quot;To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
/// Lists the teams that are assigned to an organization role. For more information on organization roles, see &quot;[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles).&quot;To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
/// </summary>
public class TeamsRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
{
}
/// <summary>
/// Lists organization members that are assigned to an organization role. For more information on organization roles, see &quot;[Managing people&apos;s access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles).&quot;To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
/// Lists organization members that are assigned to an organization role. For more information on organization roles, see &quot;[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles).&quot;To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
/// API method documentation <see href="https://docs.github.com/rest/orgs/organization-roles#list-users-that-are-assigned-to-an-organization-role" />
/// </summary>
/// <returns>A List&lt;UserRoleAssignment&gt;</returns>
Expand All @@ -51,7 +51,7 @@ public async Task<List<UserRoleAssignment>> GetAsync(Action<RequestConfiguration
return collectionResult?.ToList();
}
/// <summary>
/// Lists organization members that are assigned to an organization role. For more information on organization roles, see &quot;[Managing people&apos;s access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles).&quot;To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
/// Lists organization members that are assigned to an organization role. For more information on organization roles, see &quot;[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles).&quot;To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down Expand Up @@ -79,7 +79,7 @@ public UsersRequestBuilder WithUrl(string rawUrl)
return new UsersRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Lists organization members that are assigned to an organization role. For more information on organization roles, see &quot;[Managing people&apos;s access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles).&quot;To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
/// Lists organization members that are assigned to an organization role. For more information on organization roles, see &quot;[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles).&quot;To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
/// </summary>
public class UsersRequestBuilderGetQueryParameters
{
Expand Down
Loading

0 comments on commit 5e9b7ac

Please sign in to comment.