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 committed Aug 21, 2024
1 parent 9499f48 commit 590247e
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/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/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/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/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/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/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/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/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/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/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": "DE5F98C38ECED98D5584742BA57E5A4EEA75FB123B6EF6A8021C5C19974B56AB0EEB75E1D7E95381BEC1659E2E5AFB54B01F08415E091D6F17C4962867C7C64F",
"descriptionHash": "2A275CA0C1BC6884322B17DC1FC9558B61329DE5207AAB92506C0235D5002569BC7341E821733BED96F5763A9D461DB59AB267A12789BFB78632EAAA6AC0F41C",
"descriptionLocation": "../../../../../schemas/api.git.luolix.top.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.14.0",
Expand Down

0 comments on commit 590247e

Please sign in to comment.