Skip to content

Commit

Permalink
feat: Adds BranchRestrictionPolicy [ClientId], docs updates
Browse files Browse the repository at this point in the history
  • Loading branch information
octokitbot authored Aug 21, 2024
1 parent c29a114 commit 84ca3df
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public class AlertsRequestBuilderGetQueryParameters
[QueryParameter("resolution")]
public string Resolution { get; set; }
#endif
/// <summary>A comma-separated list of secret types to return. By default all secret types are returned.See &quot;[Secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)&quot;for a complete list of secret types.</summary>
/// <summary>A comma-separated list of secret types to return. By default all secret types are returned.See &quot;[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)&quot;for a complete list of secret types.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
[QueryParameter("secret_type")]
Expand Down
10 changes: 10 additions & 0 deletions src/GitHub/Models/BranchRestrictionPolicy_apps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ public class BranchRestrictionPolicy_apps : IAdditionalDataHolder, IParsable
{
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>The client_id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? ClientId { get; set; }
#nullable restore
#else
public string ClientId { get; set; }
#endif
/// <summary>The created_at property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down Expand Up @@ -126,6 +134,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{
return new Dictionary<string, Action<IParseNode>>
{
{"client_id", n => { ClientId = n.GetStringValue(); } },
{"created_at", n => { CreatedAt = n.GetStringValue(); } },
{"description", n => { Description = n.GetStringValue(); } },
{"events", n => { Events = n.GetCollectionOfPrimitiveValues<string>()?.ToList(); } },
Expand All @@ -147,6 +156,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteStringValue("client_id", ClientId);
writer.WriteStringValue("created_at", CreatedAt);
writer.WriteStringValue("description", Description);
writer.WriteCollectionOfPrimitiveValues<string>("events", Events);
Expand Down
2 changes: 1 addition & 1 deletion src/GitHub/Models/OrganizationSecretScanningAlert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class OrganizationSecretScanningAlert : IAdditionalDataHolder, IParsable
#else
public string SecretType { get; set; }
#endif
/// <summary>User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see &quot;[Secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security).&quot;</summary>
/// <summary>User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see &quot;[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).&quot;</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? SecretTypeDisplayName { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/GitHub/Models/SecretScanningAlert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class SecretScanningAlert : IAdditionalDataHolder, IParsable
#else
public string SecretType { get; set; }
#endif
/// <summary>User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see &quot;[Secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security).&quot;</summary>
/// <summary>User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see &quot;[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).&quot;</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? SecretTypeDisplayName { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public class AlertsRequestBuilderGetQueryParameters
[QueryParameter("resolution")]
public string Resolution { get; set; }
#endif
/// <summary>A comma-separated list of secret types to return. By default all secret types are returned.See &quot;[Secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)&quot;for a complete list of secret types.</summary>
/// <summary>A comma-separated list of secret types to return. By default all secret types are returned.See &quot;[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)&quot;for a complete list of secret types.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
[QueryParameter("secret_type")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class RepoPatchRequestBody_security_and_analysis : IAdditionalDataHolder,
#else
public RepoPatchRequestBody_security_and_analysis_secret_scanning SecretScanning { get; set; }
#endif
/// <summary>Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see &quot;[Secret scanning supported secrets](/code-security/secret-scanning/secret-scanning-patterns#supported-secrets).&quot;</summary>
/// <summary>Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see &quot;[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).&quot;</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public RepoPatchRequestBody_security_and_analysis_secret_scanning_non_provider_patterns? SecretScanningNonProviderPatterns { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System;
namespace GitHub.Repos.Item.Item {
/// <summary>
/// Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see &quot;[Secret scanning supported secrets](/code-security/secret-scanning/secret-scanning-patterns#supported-secrets).&quot;
/// Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see &quot;[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).&quot;
/// </summary>
public class RepoPatchRequestBody_security_and_analysis_secret_scanning_non_provider_patterns : IAdditionalDataHolder, IParsable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public class AlertsRequestBuilderGetQueryParameters
[QueryParameter("resolution")]
public string Resolution { get; set; }
#endif
/// <summary>A comma-separated list of secret types to return. By default all secret types are returned.See &quot;[Secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)&quot;for a complete list of secret types.</summary>
/// <summary>A comma-separated list of secret types to return. By default all secret types are returned.See &quot;[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)&quot;for a complete list of secret types.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
[QueryParameter("secret_type")]
Expand Down
2 changes: 1 addition & 1 deletion src/GitHub/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"descriptionHash": "2D1C4B0DFC14751847613775CA0741FC474ED28B34A0F862E41FA14C270E1451839B04BD4C42B2690CAB489CD9EA54F7F9F56511AEB43AB1A76ADB1F7CDB624E",
"descriptionHash": "F217D5F1F87F8A1F8FB70565C28B485084BE45C455EC0AACDAE435F24B8A357B80CE3286ED44A22729143D9703328F3E40AB1465CAF38092B6D99D29B8529C42",
"descriptionLocation": "../../../../../schemas/ghec.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.14.0",
Expand Down

0 comments on commit 84ca3df

Please sign in to comment.