diff --git a/src/GitHub/Models/WithLanguage503Error.cs b/src/GitHub/Models/WithLanguage503Error.cs
new file mode 100644
index 000000000..d82a7b981
--- /dev/null
+++ b/src/GitHub/Models/WithLanguage503Error.cs
@@ -0,0 +1,88 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace GitHub.Models
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ #pragma warning disable CS1591
+ public partial class WithLanguage503Error : ApiException, IAdditionalDataHolder, IParsable
+ #pragma warning restore CS1591
+ {
+ /// 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 code property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? Code { get; set; }
+#nullable restore
+#else
+ public string Code { get; set; }
+#endif
+ /// The documentation_url property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? DocumentationUrl { get; set; }
+#nullable restore
+#else
+ public string DocumentationUrl { get; set; }
+#endif
+ /// The primary error message.
+ public override string Message { get => MessageEscaped ?? string.Empty; }
+ /// The message property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? MessageEscaped { get; set; }
+#nullable restore
+#else
+ public string MessageEscaped { get; set; }
+#endif
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public WithLanguage503Error()
+ {
+ AdditionalData = new Dictionary();
+ }
+ ///
+ /// Creates a new instance of the appropriate class based on discriminator value
+ ///
+ /// A
+ /// The parse node to use to read the discriminator value and create the object
+ public static global::GitHub.Models.WithLanguage503Error CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ return new global::GitHub.Models.WithLanguage503Error();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "code", n => { Code = n.GetStringValue(); } },
+ { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } },
+ { "message", n => { MessageEscaped = n.GetStringValue(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public virtual void Serialize(ISerializationWriter writer)
+ {
+ _ = writer ?? throw new ArgumentNullException(nameof(writer));
+ writer.WriteStringValue("code", Code);
+ writer.WriteStringValue("documentation_url", DocumentationUrl);
+ writer.WriteStringValue("message", MessageEscaped);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/Databases/DatabasesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/Databases/DatabasesRequestBuilder.cs
index 49ed405c7..bee259746 100644
--- a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/Databases/DatabasesRequestBuilder.cs
+++ b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/Databases/DatabasesRequestBuilder.cs
@@ -47,7 +47,7 @@ public DatabasesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) :
{
}
///
- /// Lists the CodeQL databases that are available in a repository.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
+ /// Lists the CodeQL databases that are available in a repository.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
/// API method documentation
///
/// A List<global::GitHub.Models.CodeScanningCodeqlDatabase>
@@ -76,7 +76,7 @@ public DatabasesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) :
return collectionResult?.AsList();
}
///
- /// Lists the CodeQL databases that are available in a repository.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
+ /// Lists the CodeQL databases that are available in a repository.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/Databases/Item/WithLanguageItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/Databases/Item/WithLanguageItemRequestBuilder.cs
index 3c7d05508..00804b25c 100644
--- a/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/Databases/Item/WithLanguageItemRequestBuilder.cs
+++ b/src/GitHub/Repos/Item/Item/CodeScanning/Codeql/Databases/Item/WithLanguageItemRequestBuilder.cs
@@ -34,7 +34,34 @@ public WithLanguageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap
{
}
///
- /// Gets a CodeQL database for a language in a repository.By default this endpoint returns JSON metadata about the CodeQL database. Todownload the CodeQL database binary content, set the `Accept` header of the requestto [`application/zip`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types), and make sureyour HTTP client is configured to follow redirects or use the `Location` headerto make a second request to get the redirect URL.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
+ /// Deletes a CodeQL database for a language in a repository.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
+ /// API method documentation
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 403 status code
+ /// When receiving a 404 status code
+ /// When receiving a 503 status code
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToDeleteRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "503", global::GitHub.Models.WithLanguage503Error.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Gets a CodeQL database for a language in a repository.By default this endpoint returns JSON metadata about the CodeQL database. Todownload the CodeQL database binary content, set the `Accept` header of the requestto [`application/zip`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types), and make sureyour HTTP client is configured to follow redirects or use the `Location` headerto make a second request to get the redirect URL.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
/// API method documentation
///
/// A
@@ -62,7 +89,26 @@ public WithLanguageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap
return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeScanningCodeqlDatabase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Gets a CodeQL database for a language in a repository.By default this endpoint returns JSON metadata about the CodeQL database. Todownload the CodeQL database binary content, set the `Accept` header of the requestto [`application/zip`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types), and make sureyour HTTP client is configured to follow redirects or use the `Location` headerto make a second request to get the redirect URL.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
+ /// Deletes a CodeQL database for a language in a repository.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Gets a CodeQL database for a language in a repository.By default this endpoint returns JSON metadata about the CodeQL database. Todownload the CodeQL database binary content, set the `Accept` header of the requestto [`application/zip`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types), and make sureyour HTTP client is configured to follow redirects or use the `Location` headerto make a second request to get the redirect URL.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json
index af4c12289..b998fa20c 100644
--- a/src/GitHub/kiota-lock.json
+++ b/src/GitHub/kiota-lock.json
@@ -1,5 +1,5 @@
{
- "descriptionHash": "5459CA11128EA114CCBEE2FB305F8DE4EC02841EAE36035698735C0ABC3D252974132381FCA3063DA1998CA649237F6AF7ACBB41682494126FFF13B4F5A284B7",
+ "descriptionHash": "A5566CA38100CF0556C3E441119F1DE9F037811D04E58282358E11433C224D43EE9ECEC9379CF143288A606940AFC0E1B39F5D39FEB352BCCB4BAC92DA1D757F",
"descriptionLocation": "../../../../../schemas/api.github.com.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.19.0",