From 84ca3df8eaf00e8969cd014da82ee4c83874a303 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Wed, 21 Aug 2024 11:43:14 -0700 Subject: [PATCH] feat: Adds BranchRestrictionPolicy [ClientId], docs updates --- .../Item/SecretScanning/Alerts/AlertsRequestBuilder.cs | 2 +- src/GitHub/Models/BranchRestrictionPolicy_apps.cs | 10 ++++++++++ src/GitHub/Models/OrganizationSecretScanningAlert.cs | 2 +- src/GitHub/Models/SecretScanningAlert.cs | 2 +- .../Item/SecretScanning/Alerts/AlertsRequestBuilder.cs | 2 +- .../Item/RepoPatchRequestBody_security_and_analysis.cs | 2 +- ...d_analysis_secret_scanning_non_provider_patterns.cs | 2 +- .../Item/SecretScanning/Alerts/AlertsRequestBuilder.cs | 2 +- src/GitHub/kiota-lock.json | 2 +- 9 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/GitHub/Enterprises/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs b/src/GitHub/Enterprises/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs index 721fe783..2d15dd74 100644 --- a/src/GitHub/Enterprises/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs @@ -126,7 +126,7 @@ public class AlertsRequestBuilderGetQueryParameters [QueryParameter("resolution")] public string Resolution { get; set; } #endif - /// A comma-separated list of secret types to return. By default all secret types are returned.See "[Secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)"for a complete list of secret types. + /// A comma-separated list of secret types to return. By default all secret types are returned.See "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)"for a complete list of secret types. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("secret_type")] diff --git a/src/GitHub/Models/BranchRestrictionPolicy_apps.cs b/src/GitHub/Models/BranchRestrictionPolicy_apps.cs index 354236eb..f99d7dda 100644 --- a/src/GitHub/Models/BranchRestrictionPolicy_apps.cs +++ b/src/GitHub/Models/BranchRestrictionPolicy_apps.cs @@ -11,6 +11,14 @@ public class BranchRestrictionPolicy_apps : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// The client_id property +#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 /// The created_at property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -126,6 +134,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"client_id", n => { ClientId = n.GetStringValue(); } }, {"created_at", n => { CreatedAt = n.GetStringValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"events", n => { Events = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -147,6 +156,7 @@ public virtual IDictionary> 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("events", Events); diff --git a/src/GitHub/Models/OrganizationSecretScanningAlert.cs b/src/GitHub/Models/OrganizationSecretScanningAlert.cs index 85701fef..ca1c1bf5 100644 --- a/src/GitHub/Models/OrganizationSecretScanningAlert.cs +++ b/src/GitHub/Models/OrganizationSecretScanningAlert.cs @@ -87,7 +87,7 @@ public class OrganizationSecretScanningAlert : IAdditionalDataHolder, IParsable #else public string SecretType { get; set; } #endif - /// User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)." + /// User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? SecretTypeDisplayName { get; set; } diff --git a/src/GitHub/Models/SecretScanningAlert.cs b/src/GitHub/Models/SecretScanningAlert.cs index f7acb2fb..667b25f8 100644 --- a/src/GitHub/Models/SecretScanningAlert.cs +++ b/src/GitHub/Models/SecretScanningAlert.cs @@ -79,7 +79,7 @@ public class SecretScanningAlert : IAdditionalDataHolder, IParsable #else public string SecretType { get; set; } #endif - /// User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)." + /// User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? SecretTypeDisplayName { get; set; } diff --git a/src/GitHub/Orgs/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs b/src/GitHub/Orgs/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs index f629d3eb..028e30f6 100644 --- a/src/GitHub/Orgs/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs @@ -129,7 +129,7 @@ public class AlertsRequestBuilderGetQueryParameters [QueryParameter("resolution")] public string Resolution { get; set; } #endif - /// A comma-separated list of secret types to return. By default all secret types are returned.See "[Secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)"for a complete list of secret types. + /// A comma-separated list of secret types to return. By default all secret types are returned.See "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)"for a complete list of secret types. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("secret_type")] diff --git a/src/GitHub/Repos/Item/Item/RepoPatchRequestBody_security_and_analysis.cs b/src/GitHub/Repos/Item/Item/RepoPatchRequestBody_security_and_analysis.cs index 24db4c5b..52b1651b 100644 --- a/src/GitHub/Repos/Item/Item/RepoPatchRequestBody_security_and_analysis.cs +++ b/src/GitHub/Repos/Item/Item/RepoPatchRequestBody_security_and_analysis.cs @@ -28,7 +28,7 @@ public class RepoPatchRequestBody_security_and_analysis : IAdditionalDataHolder, #else public RepoPatchRequestBody_security_and_analysis_secret_scanning SecretScanning { get; set; } #endif - /// Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Secret scanning supported secrets](/code-security/secret-scanning/secret-scanning-patterns#supported-secrets)." + /// Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RepoPatchRequestBody_security_and_analysis_secret_scanning_non_provider_patterns? SecretScanningNonProviderPatterns { get; set; } diff --git a/src/GitHub/Repos/Item/Item/RepoPatchRequestBody_security_and_analysis_secret_scanning_non_provider_patterns.cs b/src/GitHub/Repos/Item/Item/RepoPatchRequestBody_security_and_analysis_secret_scanning_non_provider_patterns.cs index 5f1bb351..f6326ce7 100644 --- a/src/GitHub/Repos/Item/Item/RepoPatchRequestBody_security_and_analysis_secret_scanning_non_provider_patterns.cs +++ b/src/GitHub/Repos/Item/Item/RepoPatchRequestBody_security_and_analysis_secret_scanning_non_provider_patterns.cs @@ -6,7 +6,7 @@ using System; namespace GitHub.Repos.Item.Item { /// - /// Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Secret scanning supported secrets](/code-security/secret-scanning/secret-scanning-patterns#supported-secrets)." + /// Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." /// public class RepoPatchRequestBody_security_and_analysis_secret_scanning_non_provider_patterns : IAdditionalDataHolder, IParsable { diff --git a/src/GitHub/Repos/Item/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs index dca0a12f..979d7675 100644 --- a/src/GitHub/Repos/Item/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs @@ -140,7 +140,7 @@ public class AlertsRequestBuilderGetQueryParameters [QueryParameter("resolution")] public string Resolution { get; set; } #endif - /// A comma-separated list of secret types to return. By default all secret types are returned.See "[Secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)"for a complete list of secret types. + /// A comma-separated list of secret types to return. By default all secret types are returned.See "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)"for a complete list of secret types. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("secret_type")] diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index 95c3858d..4283a479 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "2D1C4B0DFC14751847613775CA0741FC474ED28B34A0F862E41FA14C270E1451839B04BD4C42B2690CAB489CD9EA54F7F9F56511AEB43AB1A76ADB1F7CDB624E", + "descriptionHash": "F217D5F1F87F8A1F8FB70565C28B485084BE45C455EC0AACDAE435F24B8A357B80CE3286ED44A22729143D9703328F3E40AB1465CAF38092B6D99D29B8529C42", "descriptionLocation": "../../../../../schemas/ghec.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.14.0",