diff --git a/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensRequestBuilder.cs b/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensRequestBuilder.cs
index 9320d569..87af7033 100644
--- a/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensRequestBuilder.cs
+++ b/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensRequestBuilder.cs
@@ -34,7 +34,7 @@ public Access_tokensRequestBuilder(string rawUrl, IRequestAdapter requestAdapter
{
}
///
- /// Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access.Optionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.Optionally, use the `permissions` body parameter to specify the permissions that the installation access token should have. If `permissions` is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted.When using the repository or permission parameters to reduce the access of the token, the complexity of the token is increased due to both the number of permissions in the request and the number of repositories the token will have access to. If the complexity is too large, the token will fail to be issued. If this occurs, the error message will indicate the maximum number of repositories that should be requested. For the average application requesting 8 permissions, this limit is around 5000 repositories. With fewer permissions requested, more repositories are supported.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
+ /// Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access.Optionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.Optionally, use the `permissions` body parameter to specify the permissions that the installation access token should have. If `permissions` is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
/// API method documentation
///
/// A
@@ -66,7 +66,7 @@ public Access_tokensRequestBuilder(string rawUrl, IRequestAdapter requestAdapter
return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.InstallationToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access.Optionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.Optionally, use the `permissions` body parameter to specify the permissions that the installation access token should have. If `permissions` is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted.When using the repository or permission parameters to reduce the access of the token, the complexity of the token is increased due to both the number of permissions in the request and the number of repositories the token will have access to. If the complexity is too large, the token will fail to be issued. If this occurs, the error message will indicate the maximum number of repositories that should be requested. For the average application requesting 8 permissions, this limit is around 5000 repositories. With fewer permissions requested, more repositories are supported.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
+ /// Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access.Optionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.Optionally, use the `permissions` body parameter to specify the permissions that the installation access token should have. If `permissions` is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted.You must use a [JWT](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
///
/// A
/// The request body
diff --git a/src/GitHub/Enterprises/Item/AuditLog/AuditLogRequestBuilder.cs b/src/GitHub/Enterprises/Item/AuditLog/AuditLogRequestBuilder.cs
index 0d52f152..c655fd4d 100644
--- a/src/GitHub/Enterprises/Item/AuditLog/AuditLogRequestBuilder.cs
+++ b/src/GitHub/Enterprises/Item/AuditLog/AuditLogRequestBuilder.cs
@@ -1,5 +1,7 @@
//
#pragma warning disable CS0618
+using GitHub.Enterprises.Item.AuditLog.StreamKey;
+using GitHub.Enterprises.Item.AuditLog.Streams;
using GitHub.Models;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
@@ -17,6 +19,16 @@ namespace GitHub.Enterprises.Item.AuditLog
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
public partial class AuditLogRequestBuilder : BaseRequestBuilder
{
+ /// The streamKey property
+ public global::GitHub.Enterprises.Item.AuditLog.StreamKey.StreamKeyRequestBuilder StreamKey
+ {
+ get => new global::GitHub.Enterprises.Item.AuditLog.StreamKey.StreamKeyRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// The streams property
+ public global::GitHub.Enterprises.Item.AuditLog.Streams.StreamsRequestBuilder Streams
+ {
+ get => new global::GitHub.Enterprises.Item.AuditLog.Streams.StreamsRequestBuilder(PathParameters, RequestAdapter);
+ }
///
/// Instantiates a new and sets the default values.
///
diff --git a/src/GitHub/Enterprises/Item/AuditLog/StreamKey/StreamKeyRequestBuilder.cs b/src/GitHub/Enterprises/Item/AuditLog/StreamKey/StreamKeyRequestBuilder.cs
new file mode 100644
index 00000000..3df23b2d
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/AuditLog/StreamKey/StreamKeyRequestBuilder.cs
@@ -0,0 +1,85 @@
+//
+#pragma warning disable CS0618
+using GitHub.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace GitHub.Enterprises.Item.AuditLog.StreamKey
+{
+ ///
+ /// Builds and executes requests for operations under \enterprises\{enterprise}\audit-log\stream-key
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public partial class StreamKeyRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public StreamKeyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/audit-log/stream-key", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public StreamKeyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/audit-log/stream-key", rawUrl)
+ {
+ }
+ ///
+ /// Retrieves the audit log streaming public key for encrypting secrets.When using this endpoint, you must encrypt the credentials following the same encryption steps as outlined in the guide on encrypting secrets. See "[Encrypting secrets for the REST API](/rest/guides/encrypting-secrets-for-the-rest-api)."
+ /// API method documentation
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToGetRequestInformation(requestConfiguration);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.AuditLogStreamKey.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Retrieves the audit log streaming public key for encrypting secrets.When using this endpoint, you must encrypt the credentials following the same encryption steps as outlined in the guide on encrypting secrets. See "[Encrypting secrets for the REST API](/rest/guides/encrypting-secrets-for-the-rest-api)."
+ ///
+ /// 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 ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::GitHub.Enterprises.Item.AuditLog.StreamKey.StreamKeyRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::GitHub.Enterprises.Item.AuditLog.StreamKey.StreamKeyRequestBuilder(rawUrl, RequestAdapter);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/AuditLog/Streams/Item/GetAuditLogStreamConfig422Error.cs b/src/GitHub/Enterprises/Item/AuditLog/Streams/Item/GetAuditLogStreamConfig422Error.cs
new file mode 100644
index 00000000..bf35e330
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/AuditLog/Streams/Item/GetAuditLogStreamConfig422Error.cs
@@ -0,0 +1,68 @@
+//
+#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.Enterprises.Item.AuditLog.Streams.Item
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ #pragma warning disable CS1591
+ public partial class GetAuditLogStreamConfig422Error : 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 errors property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? Errors { get; set; }
+#nullable restore
+#else
+ public List Errors { get; set; }
+#endif
+ /// The primary error message.
+ public override string Message { get => base.Message; }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public GetAuditLogStreamConfig422Error()
+ {
+ 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.Enterprises.Item.AuditLog.Streams.Item.GetAuditLogStreamConfig422Error CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ return new global::GitHub.Enterprises.Item.AuditLog.Streams.Item.GetAuditLogStreamConfig422Error();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "errors", n => { Errors = n.GetCollectionOfPrimitiveValues()?.AsList(); } },
+ };
+ }
+ ///
+ /// 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.WriteCollectionOfPrimitiveValues("errors", Errors);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/AuditLog/Streams/Item/WithStream_ItemRequestBuilder.cs b/src/GitHub/Enterprises/Item/AuditLog/Streams/Item/WithStream_ItemRequestBuilder.cs
new file mode 100644
index 00000000..2e031c02
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/AuditLog/Streams/Item/WithStream_ItemRequestBuilder.cs
@@ -0,0 +1,169 @@
+//
+#pragma warning disable CS0618
+using GitHub.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace GitHub.Enterprises.Item.AuditLog.Streams.Item
+{
+ ///
+ /// Builds and executes requests for operations under \enterprises\{enterprise}\audit-log\streams\{stream_id}
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public partial class WithStream_ItemRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public WithStream_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/audit-log/streams/{stream_id}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public WithStream_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/audit-log/streams/{stream_id}", rawUrl)
+ {
+ }
+ ///
+ /// Deletes an existing audit log stream configuration for an enterprise. When using this endpoint, you must encrypt the credentials following the same encryption steps as outlined in the guide on encrypting secrets. See "[Encrypting secrets for the REST API](/rest/guides/encrypting-secrets-for-the-rest-api)."
+ /// API method documentation
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#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);
+ await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Lists one audit log stream configuration via a stream ID.When using this endpoint, you must encrypt the credentials following the same encryption steps as outlined in the guide on encrypting secrets. See "[Encrypting secrets for the REST API](/rest/guides/encrypting-secrets-for-the-rest-api)."
+ /// API method documentation
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToGetRequestInformation(requestConfiguration);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GetAuditLogStreamConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Updates an existing audit log stream configuration for an enterprise.When using this endpoint, you must encrypt the credentials following the same encryption steps as outlined in the guide on encrypting secrets. See "[Encrypting secrets for the REST API](/rest/guides/encrypting-secrets-for-the-rest-api)."
+ /// API method documentation
+ ///
+ /// A
+ /// The request body
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 422 status code
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PutAsync(global::GitHub.Enterprises.Item.AuditLog.Streams.Item.WithStream_PutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PutAsync(global::GitHub.Enterprises.Item.AuditLog.Streams.Item.WithStream_PutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPutRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "422", global::GitHub.Enterprises.Item.AuditLog.Streams.Item.GetAuditLogStreamConfig422Error.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GetAuditLogStreamConfig.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Deletes an existing audit log stream configuration for an enterprise. When using this endpoint, you must encrypt the credentials following the same encryption steps as outlined in the guide on encrypting secrets. See "[Encrypting secrets for the REST API](/rest/guides/encrypting-secrets-for-the-rest-api)."
+ ///
+ /// 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);
+ return requestInfo;
+ }
+ ///
+ /// Lists one audit log stream configuration via a stream ID.When using this endpoint, you must encrypt the credentials following the same encryption steps as outlined in the guide on encrypting secrets. See "[Encrypting secrets for the REST API](/rest/guides/encrypting-secrets-for-the-rest-api)."
+ ///
+ /// 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 ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Updates an existing audit log stream configuration for an enterprise.When using this endpoint, you must encrypt the credentials following the same encryption steps as outlined in the guide on encrypting secrets. See "[Encrypting secrets for the REST API](/rest/guides/encrypting-secrets-for-the-rest-api)."
+ ///
+ /// A
+ /// The request body
+ /// 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 ToPutRequestInformation(global::GitHub.Enterprises.Item.AuditLog.Streams.Item.WithStream_PutRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.AuditLog.Streams.Item.WithStream_PutRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::GitHub.Enterprises.Item.AuditLog.Streams.Item.WithStream_ItemRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::GitHub.Enterprises.Item.AuditLog.Streams.Item.WithStream_ItemRequestBuilder(rawUrl, RequestAdapter);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/AuditLog/Streams/Item/WithStream_PutRequestBody.cs b/src/GitHub/Enterprises/Item/AuditLog/Streams/Item/WithStream_PutRequestBody.cs
new file mode 100644
index 00000000..542a8448
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/AuditLog/Streams/Item/WithStream_PutRequestBody.cs
@@ -0,0 +1,249 @@
+//
+#pragma warning disable CS0618
+using GitHub.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace GitHub.Enterprises.Item.AuditLog.Streams.Item
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ #pragma warning disable CS1591
+ public partial class WithStream_PutRequestBody : 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; }
+ /// This setting pauses or resumes a stream.
+ public bool? Enabled { get; set; }
+ /// The audit log streaming provider. The name is case sensitive.
+ public global::GitHub.Enterprises.Item.AuditLog.Streams.Item.WithStream_PutRequestBody_stream_type? StreamType { get; set; }
+ /// The vendor_specific property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Enterprises.Item.AuditLog.Streams.Item.WithStream_PutRequestBody.WithStream_PutRequestBody_vendor_specific? VendorSpecific { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Enterprises.Item.AuditLog.Streams.Item.WithStream_PutRequestBody.WithStream_PutRequestBody_vendor_specific VendorSpecific { get; set; }
+#endif
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public WithStream_PutRequestBody()
+ {
+ 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.Enterprises.Item.AuditLog.Streams.Item.WithStream_PutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ return new global::GitHub.Enterprises.Item.AuditLog.Streams.Item.WithStream_PutRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "enabled", n => { Enabled = n.GetBoolValue(); } },
+ { "stream_type", n => { StreamType = n.GetEnumValue(); } },
+ { "vendor_specific", n => { VendorSpecific = n.GetObjectValue(global::GitHub.Enterprises.Item.AuditLog.Streams.Item.WithStream_PutRequestBody.WithStream_PutRequestBody_vendor_specific.CreateFromDiscriminatorValue); } },
+ };
+ }
+ ///
+ /// 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.WriteBoolValue("enabled", Enabled);
+ writer.WriteEnumValue("stream_type", StreamType);
+ writer.WriteObjectValue("vendor_specific", VendorSpecific);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ ///
+ /// Composed type wrapper for classes , , , , , ,
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public partial class WithStream_PutRequestBody_vendor_specific : IComposedTypeWrapper, IParsable
+ {
+ /// Composed type representation for type
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Models.AmazonS3AccessKeysConfig? AmazonS3AccessKeysConfig { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Models.AmazonS3AccessKeysConfig AmazonS3AccessKeysConfig { get; set; }
+#endif
+ /// Composed type representation for type
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Models.AmazonS3OidcConfig? AmazonS3OidcConfig { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Models.AmazonS3OidcConfig AmazonS3OidcConfig { get; set; }
+#endif
+ /// Composed type representation for type
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Models.AzureBlobConfig? AzureBlobConfig { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Models.AzureBlobConfig AzureBlobConfig { get; set; }
+#endif
+ /// Composed type representation for type
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Models.AzureHubConfig? AzureHubConfig { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Models.AzureHubConfig AzureHubConfig { get; set; }
+#endif
+ /// Composed type representation for type
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Models.DatadogConfig? DatadogConfig { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Models.DatadogConfig DatadogConfig { get; set; }
+#endif
+ /// Composed type representation for type
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Models.GoogleCloudConfig? GoogleCloudConfig { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Models.GoogleCloudConfig GoogleCloudConfig { get; set; }
+#endif
+ /// Composed type representation for type
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Models.SplunkConfig? SplunkConfig { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Models.SplunkConfig SplunkConfig { get; set; }
+#endif
+ ///
+ /// 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.Enterprises.Item.AuditLog.Streams.Item.WithStream_PutRequestBody.WithStream_PutRequestBody_vendor_specific CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ var mappingValue = parseNode.GetChildNode("")?.GetStringValue();
+ var result = new global::GitHub.Enterprises.Item.AuditLog.Streams.Item.WithStream_PutRequestBody.WithStream_PutRequestBody_vendor_specific();
+ if("amazon-s3-access-keys-config".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
+ {
+ result.AmazonS3AccessKeysConfig = new global::GitHub.Models.AmazonS3AccessKeysConfig();
+ }
+ else if("amazon-s3-oidc-config".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
+ {
+ result.AmazonS3OidcConfig = new global::GitHub.Models.AmazonS3OidcConfig();
+ }
+ else if("azure-blob-config".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
+ {
+ result.AzureBlobConfig = new global::GitHub.Models.AzureBlobConfig();
+ }
+ else if("azure-hub-config".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
+ {
+ result.AzureHubConfig = new global::GitHub.Models.AzureHubConfig();
+ }
+ else if("datadog-config".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
+ {
+ result.DatadogConfig = new global::GitHub.Models.DatadogConfig();
+ }
+ else if("google-cloud-config".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
+ {
+ result.GoogleCloudConfig = new global::GitHub.Models.GoogleCloudConfig();
+ }
+ else if("splunk-config".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
+ {
+ result.SplunkConfig = new global::GitHub.Models.SplunkConfig();
+ }
+ return result;
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ if(AmazonS3AccessKeysConfig != null)
+ {
+ return AmazonS3AccessKeysConfig.GetFieldDeserializers();
+ }
+ else if(AmazonS3OidcConfig != null)
+ {
+ return AmazonS3OidcConfig.GetFieldDeserializers();
+ }
+ else if(AzureBlobConfig != null)
+ {
+ return AzureBlobConfig.GetFieldDeserializers();
+ }
+ else if(AzureHubConfig != null)
+ {
+ return AzureHubConfig.GetFieldDeserializers();
+ }
+ else if(DatadogConfig != null)
+ {
+ return DatadogConfig.GetFieldDeserializers();
+ }
+ else if(GoogleCloudConfig != null)
+ {
+ return GoogleCloudConfig.GetFieldDeserializers();
+ }
+ else if(SplunkConfig != null)
+ {
+ return SplunkConfig.GetFieldDeserializers();
+ }
+ return new Dictionary>();
+ }
+ ///
+ /// 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));
+ if(AmazonS3AccessKeysConfig != null)
+ {
+ writer.WriteObjectValue(null, AmazonS3AccessKeysConfig);
+ }
+ else if(AmazonS3OidcConfig != null)
+ {
+ writer.WriteObjectValue(null, AmazonS3OidcConfig);
+ }
+ else if(AzureBlobConfig != null)
+ {
+ writer.WriteObjectValue(null, AzureBlobConfig);
+ }
+ else if(AzureHubConfig != null)
+ {
+ writer.WriteObjectValue(null, AzureHubConfig);
+ }
+ else if(DatadogConfig != null)
+ {
+ writer.WriteObjectValue(null, DatadogConfig);
+ }
+ else if(GoogleCloudConfig != null)
+ {
+ writer.WriteObjectValue(null, GoogleCloudConfig);
+ }
+ else if(SplunkConfig != null)
+ {
+ writer.WriteObjectValue(null, SplunkConfig);
+ }
+ }
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/AuditLog/Streams/Item/WithStream_PutRequestBody_stream_type.cs b/src/GitHub/Enterprises/Item/AuditLog/Streams/Item/WithStream_PutRequestBody_stream_type.cs
new file mode 100644
index 00000000..d53f81c5
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/AuditLog/Streams/Item/WithStream_PutRequestBody_stream_type.cs
@@ -0,0 +1,39 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.AuditLog.Streams.Item
+{
+ /// The audit log streaming provider. The name is case sensitive.
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum WithStream_PutRequestBody_stream_type
+ {
+ [EnumMember(Value = "Azure Blob Storage")]
+ #pragma warning disable CS1591
+ AzureBlobStorage,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "Azure Event Hubs")]
+ #pragma warning disable CS1591
+ AzureEventHubs,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "Amazon S3")]
+ #pragma warning disable CS1591
+ AmazonS3,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "Splunk")]
+ #pragma warning disable CS1591
+ Splunk,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "HTTPS Event Collector")]
+ #pragma warning disable CS1591
+ HTTPSEventCollector,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "Google Cloud Storage")]
+ #pragma warning disable CS1591
+ GoogleCloudStorage,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "Datadog")]
+ #pragma warning disable CS1591
+ Datadog,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/AuditLog/Streams/StreamsPostRequestBody.cs b/src/GitHub/Enterprises/Item/AuditLog/Streams/StreamsPostRequestBody.cs
new file mode 100644
index 00000000..512846d2
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/AuditLog/Streams/StreamsPostRequestBody.cs
@@ -0,0 +1,249 @@
+//
+#pragma warning disable CS0618
+using GitHub.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace GitHub.Enterprises.Item.AuditLog.Streams
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ #pragma warning disable CS1591
+ public partial class StreamsPostRequestBody : 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; }
+ /// This setting pauses or resumes a stream.
+ public bool? Enabled { get; set; }
+ /// The audit log streaming provider. The name is case sensitive.
+ public global::GitHub.Enterprises.Item.AuditLog.Streams.StreamsPostRequestBody_stream_type? StreamType { get; set; }
+ /// The vendor_specific property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Enterprises.Item.AuditLog.Streams.StreamsPostRequestBody.StreamsPostRequestBody_vendor_specific? VendorSpecific { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Enterprises.Item.AuditLog.Streams.StreamsPostRequestBody.StreamsPostRequestBody_vendor_specific VendorSpecific { get; set; }
+#endif
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public StreamsPostRequestBody()
+ {
+ 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.Enterprises.Item.AuditLog.Streams.StreamsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ return new global::GitHub.Enterprises.Item.AuditLog.Streams.StreamsPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "enabled", n => { Enabled = n.GetBoolValue(); } },
+ { "stream_type", n => { StreamType = n.GetEnumValue(); } },
+ { "vendor_specific", n => { VendorSpecific = n.GetObjectValue(global::GitHub.Enterprises.Item.AuditLog.Streams.StreamsPostRequestBody.StreamsPostRequestBody_vendor_specific.CreateFromDiscriminatorValue); } },
+ };
+ }
+ ///
+ /// 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.WriteBoolValue("enabled", Enabled);
+ writer.WriteEnumValue("stream_type", StreamType);
+ writer.WriteObjectValue("vendor_specific", VendorSpecific);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ ///
+ /// Composed type wrapper for classes , , , , , ,
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public partial class StreamsPostRequestBody_vendor_specific : IComposedTypeWrapper, IParsable
+ {
+ /// Composed type representation for type
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Models.AmazonS3AccessKeysConfig? AmazonS3AccessKeysConfig { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Models.AmazonS3AccessKeysConfig AmazonS3AccessKeysConfig { get; set; }
+#endif
+ /// Composed type representation for type
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Models.AmazonS3OidcConfig? AmazonS3OidcConfig { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Models.AmazonS3OidcConfig AmazonS3OidcConfig { get; set; }
+#endif
+ /// Composed type representation for type
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Models.AzureBlobConfig? AzureBlobConfig { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Models.AzureBlobConfig AzureBlobConfig { get; set; }
+#endif
+ /// Composed type representation for type
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Models.AzureHubConfig? AzureHubConfig { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Models.AzureHubConfig AzureHubConfig { get; set; }
+#endif
+ /// Composed type representation for type
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Models.DatadogConfig? DatadogConfig { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Models.DatadogConfig DatadogConfig { get; set; }
+#endif
+ /// Composed type representation for type
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Models.GoogleCloudConfig? GoogleCloudConfig { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Models.GoogleCloudConfig GoogleCloudConfig { get; set; }
+#endif
+ /// Composed type representation for type
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Models.SplunkConfig? SplunkConfig { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Models.SplunkConfig SplunkConfig { get; set; }
+#endif
+ ///
+ /// 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.Enterprises.Item.AuditLog.Streams.StreamsPostRequestBody.StreamsPostRequestBody_vendor_specific CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ var mappingValue = parseNode.GetChildNode("")?.GetStringValue();
+ var result = new global::GitHub.Enterprises.Item.AuditLog.Streams.StreamsPostRequestBody.StreamsPostRequestBody_vendor_specific();
+ if("amazon-s3-access-keys-config".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
+ {
+ result.AmazonS3AccessKeysConfig = new global::GitHub.Models.AmazonS3AccessKeysConfig();
+ }
+ else if("amazon-s3-oidc-config".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
+ {
+ result.AmazonS3OidcConfig = new global::GitHub.Models.AmazonS3OidcConfig();
+ }
+ else if("azure-blob-config".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
+ {
+ result.AzureBlobConfig = new global::GitHub.Models.AzureBlobConfig();
+ }
+ else if("azure-hub-config".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
+ {
+ result.AzureHubConfig = new global::GitHub.Models.AzureHubConfig();
+ }
+ else if("datadog-config".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
+ {
+ result.DatadogConfig = new global::GitHub.Models.DatadogConfig();
+ }
+ else if("google-cloud-config".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
+ {
+ result.GoogleCloudConfig = new global::GitHub.Models.GoogleCloudConfig();
+ }
+ else if("splunk-config".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
+ {
+ result.SplunkConfig = new global::GitHub.Models.SplunkConfig();
+ }
+ return result;
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ if(AmazonS3AccessKeysConfig != null)
+ {
+ return AmazonS3AccessKeysConfig.GetFieldDeserializers();
+ }
+ else if(AmazonS3OidcConfig != null)
+ {
+ return AmazonS3OidcConfig.GetFieldDeserializers();
+ }
+ else if(AzureBlobConfig != null)
+ {
+ return AzureBlobConfig.GetFieldDeserializers();
+ }
+ else if(AzureHubConfig != null)
+ {
+ return AzureHubConfig.GetFieldDeserializers();
+ }
+ else if(DatadogConfig != null)
+ {
+ return DatadogConfig.GetFieldDeserializers();
+ }
+ else if(GoogleCloudConfig != null)
+ {
+ return GoogleCloudConfig.GetFieldDeserializers();
+ }
+ else if(SplunkConfig != null)
+ {
+ return SplunkConfig.GetFieldDeserializers();
+ }
+ return new Dictionary>();
+ }
+ ///
+ /// 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));
+ if(AmazonS3AccessKeysConfig != null)
+ {
+ writer.WriteObjectValue(null, AmazonS3AccessKeysConfig);
+ }
+ else if(AmazonS3OidcConfig != null)
+ {
+ writer.WriteObjectValue(null, AmazonS3OidcConfig);
+ }
+ else if(AzureBlobConfig != null)
+ {
+ writer.WriteObjectValue(null, AzureBlobConfig);
+ }
+ else if(AzureHubConfig != null)
+ {
+ writer.WriteObjectValue(null, AzureHubConfig);
+ }
+ else if(DatadogConfig != null)
+ {
+ writer.WriteObjectValue(null, DatadogConfig);
+ }
+ else if(GoogleCloudConfig != null)
+ {
+ writer.WriteObjectValue(null, GoogleCloudConfig);
+ }
+ else if(SplunkConfig != null)
+ {
+ writer.WriteObjectValue(null, SplunkConfig);
+ }
+ }
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/AuditLog/Streams/StreamsPostRequestBody_stream_type.cs b/src/GitHub/Enterprises/Item/AuditLog/Streams/StreamsPostRequestBody_stream_type.cs
new file mode 100644
index 00000000..5ed5c82b
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/AuditLog/Streams/StreamsPostRequestBody_stream_type.cs
@@ -0,0 +1,39 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.AuditLog.Streams
+{
+ /// The audit log streaming provider. The name is case sensitive.
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum StreamsPostRequestBody_stream_type
+ {
+ [EnumMember(Value = "Azure Blob Storage")]
+ #pragma warning disable CS1591
+ AzureBlobStorage,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "Azure Event Hubs")]
+ #pragma warning disable CS1591
+ AzureEventHubs,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "Amazon S3")]
+ #pragma warning disable CS1591
+ AmazonS3,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "Splunk")]
+ #pragma warning disable CS1591
+ Splunk,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "HTTPS Event Collector")]
+ #pragma warning disable CS1591
+ HTTPSEventCollector,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "Google Cloud Storage")]
+ #pragma warning disable CS1591
+ GoogleCloudStorage,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "Datadog")]
+ #pragma warning disable CS1591
+ Datadog,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/AuditLog/Streams/StreamsRequestBuilder.cs b/src/GitHub/Enterprises/Item/AuditLog/Streams/StreamsRequestBuilder.cs
new file mode 100644
index 00000000..ef61ec79
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/AuditLog/Streams/StreamsRequestBuilder.cs
@@ -0,0 +1,142 @@
+//
+#pragma warning disable CS0618
+using GitHub.Enterprises.Item.AuditLog.Streams.Item;
+using GitHub.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace GitHub.Enterprises.Item.AuditLog.Streams
+{
+ ///
+ /// Builds and executes requests for operations under \enterprises\{enterprise}\audit-log\streams
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public partial class StreamsRequestBuilder : BaseRequestBuilder
+ {
+ /// Gets an item from the GitHub.enterprises.item.auditLog.streams.item collection
+ /// The ID of the audit log stream configuration.
+ /// A
+ public global::GitHub.Enterprises.Item.AuditLog.Streams.Item.WithStream_ItemRequestBuilder this[int position]
+ {
+ get
+ {
+ var urlTplParams = new Dictionary(PathParameters);
+ urlTplParams.Add("stream_id", position);
+ return new global::GitHub.Enterprises.Item.AuditLog.Streams.Item.WithStream_ItemRequestBuilder(urlTplParams, RequestAdapter);
+ }
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public StreamsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/audit-log/streams", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public StreamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/audit-log/streams", rawUrl)
+ {
+ }
+ ///
+ /// Lists the configured audit log streaming configurations for an enterprise.This only lists configured streams for supported providers.When using this endpoint, you must encrypt the credentials following the same encryption steps as outlined in the guide on encrypting secrets. See "[Encrypting secrets for the REST API](/rest/guides/encrypting-secrets-for-the-rest-api)."
+ /// API method documentation
+ ///
+ /// A List<global::GitHub.Models.GetAuditLogStreamConfigs>
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToGetRequestInformation(requestConfiguration);
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.GetAuditLogStreamConfigs.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return collectionResult?.AsList();
+ }
+ ///
+ /// Creates an audit log streaming configuration for any of the supported streaming endpoints: Azure Blob Storage, Azure Event Hubs, Amazon S3, Splunk, Google Cloud Storage, Datadog.When using this endpoint, you must encrypt the credentials following the same encryption steps as outlined in the guide on encrypting secrets. See "[Encrypting secrets for the REST API](/rest/guides/encrypting-secrets-for-the-rest-api)."
+ /// API method documentation
+ ///
+ /// A
+ /// The request body
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::GitHub.Enterprises.Item.AuditLog.Streams.StreamsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::GitHub.Enterprises.Item.AuditLog.Streams.StreamsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GetAuditLogStreamConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Lists the configured audit log streaming configurations for an enterprise.This only lists configured streams for supported providers.When using this endpoint, you must encrypt the credentials following the same encryption steps as outlined in the guide on encrypting secrets. See "[Encrypting secrets for the REST API](/rest/guides/encrypting-secrets-for-the-rest-api)."
+ ///
+ /// 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 ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Creates an audit log streaming configuration for any of the supported streaming endpoints: Azure Blob Storage, Azure Event Hubs, Amazon S3, Splunk, Google Cloud Storage, Datadog.When using this endpoint, you must encrypt the credentials following the same encryption steps as outlined in the guide on encrypting secrets. See "[Encrypting secrets for the REST API](/rest/guides/encrypting-secrets-for-the-rest-api)."
+ ///
+ /// A
+ /// The request body
+ /// 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 ToPostRequestInformation(global::GitHub.Enterprises.Item.AuditLog.Streams.StreamsPostRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::GitHub.Enterprises.Item.AuditLog.Streams.StreamsPostRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::GitHub.Enterprises.Item.AuditLog.Streams.StreamsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::GitHub.Enterprises.Item.AuditLog.Streams.StreamsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/CodeSecurityRequestBuilder.cs b/src/GitHub/Enterprises/Item/CodeSecurity/CodeSecurityRequestBuilder.cs
new file mode 100644
index 00000000..2670912e
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/CodeSecurityRequestBuilder.cs
@@ -0,0 +1,41 @@
+//
+#pragma warning disable CS0618
+using GitHub.Enterprises.Item.CodeSecurity.Configurations;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity
+{
+ ///
+ /// Builds and executes requests for operations under \enterprises\{enterprise}\code-security
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public partial class CodeSecurityRequestBuilder : BaseRequestBuilder
+ {
+ /// The configurations property
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsRequestBuilder Configurations
+ {
+ get => new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsRequestBuilder(PathParameters, RequestAdapter);
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public CodeSecurityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/code-security", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public CodeSecurityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/code-security", rawUrl)
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody.cs
new file mode 100644
index 00000000..b29dac1b
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody.cs
@@ -0,0 +1,152 @@
+//
+#pragma warning disable CS0618
+using GitHub.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ #pragma warning disable CS1591
+ public partial class ConfigurationsPostRequestBody : IParsable
+ #pragma warning restore CS1591
+ {
+ /// The enablement status of GitHub Advanced Security
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_advanced_security? AdvancedSecurity { get; set; }
+ /// The enablement status of code scanning default setup
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_code_scanning_default_setup? CodeScanningDefaultSetup { get; set; }
+ /// Feature options for code scanning default setup
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Models.CodeScanningDefaultSetupOptions? CodeScanningDefaultSetupOptions { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Models.CodeScanningDefaultSetupOptions CodeScanningDefaultSetupOptions { get; set; }
+#endif
+ /// The enablement status of Dependabot alerts
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependabot_alerts? DependabotAlerts { get; set; }
+ /// The enablement status of Dependabot security updates
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependabot_security_updates? DependabotSecurityUpdates { get; set; }
+ /// The enablement status of Dependency Graph
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph? DependencyGraph { get; set; }
+ /// The enablement status of Automatic dependency submission
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph_autosubmit_action? DependencyGraphAutosubmitAction { get; set; }
+ /// Feature options for Automatic dependency submission
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options? DependencyGraphAutosubmitActionOptions { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options DependencyGraphAutosubmitActionOptions { get; set; }
+#endif
+ /// A description of the code security configuration
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? Description { get; set; }
+#nullable restore
+#else
+ public string Description { get; set; }
+#endif
+ /// The enforcement status for a security configuration
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_enforcement? Enforcement { get; set; }
+ /// The name of the code security configuration. Must be unique within the enterprise.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? Name { get; set; }
+#nullable restore
+#else
+ public string Name { get; set; }
+#endif
+ /// The enablement status of private vulnerability reporting
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_private_vulnerability_reporting? PrivateVulnerabilityReporting { get; set; }
+ /// The enablement status of secret scanning
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning? SecretScanning { get; set; }
+ /// The enablement status of secret scanning non provider patterns
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_non_provider_patterns? SecretScanningNonProviderPatterns { get; set; }
+ /// The enablement status of secret scanning push protection
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_push_protection? SecretScanningPushProtection { get; set; }
+ /// The enablement status of secret scanning validity checks
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_validity_checks? SecretScanningValidityChecks { get; set; }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public ConfigurationsPostRequestBody()
+ {
+ AdvancedSecurity = global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_advanced_security.Disabled;
+ CodeScanningDefaultSetup = global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_code_scanning_default_setup.Disabled;
+ DependabotAlerts = global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependabot_alerts.Disabled;
+ DependabotSecurityUpdates = global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependabot_security_updates.Disabled;
+ DependencyGraph = global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph.Enabled;
+ DependencyGraphAutosubmitAction = global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph_autosubmit_action.Disabled;
+ Enforcement = global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_enforcement.Enforced;
+ PrivateVulnerabilityReporting = global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_private_vulnerability_reporting.Disabled;
+ SecretScanning = global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning.Disabled;
+ SecretScanningNonProviderPatterns = global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_non_provider_patterns.Disabled;
+ SecretScanningPushProtection = global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_push_protection.Disabled;
+ SecretScanningValidityChecks = global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_validity_checks.Disabled;
+ }
+ ///
+ /// 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.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ return new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "advanced_security", n => { AdvancedSecurity = n.GetEnumValue(); } },
+ { "code_scanning_default_setup", n => { CodeScanningDefaultSetup = n.GetEnumValue(); } },
+ { "code_scanning_default_setup_options", n => { CodeScanningDefaultSetupOptions = n.GetObjectValue(global::GitHub.Models.CodeScanningDefaultSetupOptions.CreateFromDiscriminatorValue); } },
+ { "dependabot_alerts", n => { DependabotAlerts = n.GetEnumValue(); } },
+ { "dependabot_security_updates", n => { DependabotSecurityUpdates = n.GetEnumValue(); } },
+ { "dependency_graph", n => { DependencyGraph = n.GetEnumValue(); } },
+ { "dependency_graph_autosubmit_action", n => { DependencyGraphAutosubmitAction = n.GetEnumValue(); } },
+ { "dependency_graph_autosubmit_action_options", n => { DependencyGraphAutosubmitActionOptions = n.GetObjectValue(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options.CreateFromDiscriminatorValue); } },
+ { "description", n => { Description = n.GetStringValue(); } },
+ { "enforcement", n => { Enforcement = n.GetEnumValue(); } },
+ { "name", n => { Name = n.GetStringValue(); } },
+ { "private_vulnerability_reporting", n => { PrivateVulnerabilityReporting = n.GetEnumValue(); } },
+ { "secret_scanning", n => { SecretScanning = n.GetEnumValue(); } },
+ { "secret_scanning_non_provider_patterns", n => { SecretScanningNonProviderPatterns = n.GetEnumValue(); } },
+ { "secret_scanning_push_protection", n => { SecretScanningPushProtection = n.GetEnumValue(); } },
+ { "secret_scanning_validity_checks", n => { SecretScanningValidityChecks = n.GetEnumValue(); } },
+ };
+ }
+ ///
+ /// 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.WriteEnumValue("advanced_security", AdvancedSecurity);
+ writer.WriteEnumValue("code_scanning_default_setup", CodeScanningDefaultSetup);
+ writer.WriteObjectValue("code_scanning_default_setup_options", CodeScanningDefaultSetupOptions);
+ writer.WriteEnumValue("dependabot_alerts", DependabotAlerts);
+ writer.WriteEnumValue("dependabot_security_updates", DependabotSecurityUpdates);
+ writer.WriteEnumValue("dependency_graph", DependencyGraph);
+ writer.WriteEnumValue("dependency_graph_autosubmit_action", DependencyGraphAutosubmitAction);
+ writer.WriteObjectValue("dependency_graph_autosubmit_action_options", DependencyGraphAutosubmitActionOptions);
+ writer.WriteStringValue("description", Description);
+ writer.WriteEnumValue("enforcement", Enforcement);
+ writer.WriteStringValue("name", Name);
+ writer.WriteEnumValue("private_vulnerability_reporting", PrivateVulnerabilityReporting);
+ writer.WriteEnumValue("secret_scanning", SecretScanning);
+ writer.WriteEnumValue("secret_scanning_non_provider_patterns", SecretScanningNonProviderPatterns);
+ writer.WriteEnumValue("secret_scanning_push_protection", SecretScanningPushProtection);
+ writer.WriteEnumValue("secret_scanning_validity_checks", SecretScanningValidityChecks);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_advanced_security.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_advanced_security.cs
new file mode 100644
index 00000000..6809bd96
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_advanced_security.cs
@@ -0,0 +1,19 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations
+{
+ /// The enablement status of GitHub Advanced Security
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum ConfigurationsPostRequestBody_advanced_security
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_code_scanning_default_setup.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_code_scanning_default_setup.cs
new file mode 100644
index 00000000..b31a4fc4
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_code_scanning_default_setup.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations
+{
+ /// The enablement status of code scanning default setup
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum ConfigurationsPostRequestBody_code_scanning_default_setup
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependabot_alerts.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependabot_alerts.cs
new file mode 100644
index 00000000..3e13dea5
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependabot_alerts.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations
+{
+ /// The enablement status of Dependabot alerts
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum ConfigurationsPostRequestBody_dependabot_alerts
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependabot_security_updates.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependabot_security_updates.cs
new file mode 100644
index 00000000..7a8d1220
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependabot_security_updates.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations
+{
+ /// The enablement status of Dependabot security updates
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum ConfigurationsPostRequestBody_dependabot_security_updates
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph.cs
new file mode 100644
index 00000000..825fbeb1
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations
+{
+ /// The enablement status of Dependency Graph
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum ConfigurationsPostRequestBody_dependency_graph
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph_autosubmit_action.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph_autosubmit_action.cs
new file mode 100644
index 00000000..b9cac4fc
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph_autosubmit_action.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations
+{
+ /// The enablement status of Automatic dependency submission
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum ConfigurationsPostRequestBody_dependency_graph_autosubmit_action
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options.cs
new file mode 100644
index 00000000..a84a4735
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options.cs
@@ -0,0 +1,60 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations
+{
+ ///
+ /// Feature options for Automatic dependency submission
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public partial class ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options : 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; }
+ /// Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.
+ public bool? LabeledRunners { get; set; }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options()
+ {
+ 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.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ return new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependency_graph_autosubmit_action_options();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "labeled_runners", n => { LabeledRunners = n.GetBoolValue(); } },
+ };
+ }
+ ///
+ /// 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.WriteBoolValue("labeled_runners", LabeledRunners);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_enforcement.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_enforcement.cs
new file mode 100644
index 00000000..9f70df0f
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_enforcement.cs
@@ -0,0 +1,19 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations
+{
+ /// The enforcement status for a security configuration
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum ConfigurationsPostRequestBody_enforcement
+ {
+ [EnumMember(Value = "enforced")]
+ #pragma warning disable CS1591
+ Enforced,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "unenforced")]
+ #pragma warning disable CS1591
+ Unenforced,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_private_vulnerability_reporting.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_private_vulnerability_reporting.cs
new file mode 100644
index 00000000..cb924ddd
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_private_vulnerability_reporting.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations
+{
+ /// The enablement status of private vulnerability reporting
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum ConfigurationsPostRequestBody_private_vulnerability_reporting
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning.cs
new file mode 100644
index 00000000..3202d0d3
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations
+{
+ /// The enablement status of secret scanning
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum ConfigurationsPostRequestBody_secret_scanning
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_non_provider_patterns.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_non_provider_patterns.cs
new file mode 100644
index 00000000..7744059f
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_non_provider_patterns.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations
+{
+ /// The enablement status of secret scanning non provider patterns
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum ConfigurationsPostRequestBody_secret_scanning_non_provider_patterns
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_push_protection.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_push_protection.cs
new file mode 100644
index 00000000..9baea857
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_push_protection.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations
+{
+ /// The enablement status of secret scanning push protection
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum ConfigurationsPostRequestBody_secret_scanning_push_protection
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_validity_checks.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_validity_checks.cs
new file mode 100644
index 00000000..6ecb1f76
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_validity_checks.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations
+{
+ /// The enablement status of secret scanning validity checks
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum ConfigurationsPostRequestBody_secret_scanning_validity_checks
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsRequestBuilder.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsRequestBuilder.cs
new file mode 100644
index 00000000..a29f7f28
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/ConfigurationsRequestBuilder.cs
@@ -0,0 +1,194 @@
+//
+#pragma warning disable CS0618
+using GitHub.Enterprises.Item.CodeSecurity.Configurations.Defaults;
+using GitHub.Enterprises.Item.CodeSecurity.Configurations.Item;
+using GitHub.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations
+{
+ ///
+ /// Builds and executes requests for operations under \enterprises\{enterprise}\code-security\configurations
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public partial class ConfigurationsRequestBuilder : BaseRequestBuilder
+ {
+ /// The defaults property
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Defaults.DefaultsRequestBuilder Defaults
+ {
+ get => new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Defaults.DefaultsRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Gets an item from the GitHub.enterprises.item.codeSecurity.configurations.item collection
+ /// The unique identifier of the code security configuration.
+ /// A
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_ItemRequestBuilder this[int position]
+ {
+ get
+ {
+ var urlTplParams = new Dictionary(PathParameters);
+ urlTplParams.Add("configuration_id", position);
+ return new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_ItemRequestBuilder(urlTplParams, RequestAdapter);
+ }
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public ConfigurationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/code-security/configurations{?after*,before*,per_page*}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public ConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/code-security/configurations{?after*,before*,per_page*}", rawUrl)
+ {
+ }
+ ///
+ /// Lists all code security configurations available in an enterprise.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint.
+ /// API method documentation
+ ///
+ /// A List<global::GitHub.Models.CodeSecurityConfiguration>
+ /// 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
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToGetRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ };
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CodeSecurityConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return collectionResult?.AsList();
+ }
+ ///
+ /// Creates a code security configuration in an enterprise.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
+ /// API method documentation
+ ///
+ /// A
+ /// The request body
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 403 status code
+ /// When receiving a 404 status code
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeSecurityConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Lists all code security configurations available in an enterprise.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint.
+ ///
+ /// 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 ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Creates a code security configuration in an enterprise.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
+ ///
+ /// A
+ /// The request body
+ /// 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 ToPostRequestInformation(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.ConfigurationsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Lists all code security configurations available in an enterprise.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public partial class ConfigurationsRequestBuilderGetQueryParameters
+ {
+ /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)."
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("after")]
+ public string? After { get; set; }
+#nullable restore
+#else
+ [QueryParameter("after")]
+ public string After { get; set; }
+#endif
+ /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)."
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("before")]
+ public string? Before { get; set; }
+#nullable restore
+#else
+ [QueryParameter("before")]
+ public string Before { get; set; }
+#endif
+ /// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)."
+ [QueryParameter("per_page")]
+ public int? PerPage { get; set; }
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Defaults/DefaultsRequestBuilder.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Defaults/DefaultsRequestBuilder.cs
new file mode 100644
index 00000000..143bbd9c
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Defaults/DefaultsRequestBuilder.cs
@@ -0,0 +1,86 @@
+//
+#pragma warning disable CS0618
+using GitHub.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Defaults
+{
+ ///
+ /// Builds and executes requests for operations under \enterprises\{enterprise}\code-security\configurations\defaults
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public partial class DefaultsRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public DefaultsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/code-security/configurations/defaults", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public DefaultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/code-security/configurations/defaults", rawUrl)
+ {
+ }
+ ///
+ /// Lists the default code security configurations for an enterprise.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint.
+ /// API method documentation
+ ///
+ /// A List<global::GitHub.Models.CodeSecurityDefaultConfigurations>
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToGetRequestInformation(requestConfiguration);
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CodeSecurityDefaultConfigurations.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return collectionResult?.AsList();
+ }
+ ///
+ /// Lists the default code security configurations for an enterprise.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint.
+ ///
+ /// 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 ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Defaults.DefaultsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Defaults.DefaultsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Attach/AttachPostRequestBody.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Attach/AttachPostRequestBody.cs
new file mode 100644
index 00000000..a4f6525c
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Attach/AttachPostRequestBody.cs
@@ -0,0 +1,49 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Attach
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ #pragma warning disable CS1591
+ public partial class AttachPostRequestBody : IParsable
+ #pragma warning restore CS1591
+ {
+ /// The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids`
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Attach.AttachPostRequestBody_scope? Scope { get; set; }
+ ///
+ /// 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.Enterprises.Item.CodeSecurity.Configurations.Item.Attach.AttachPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ return new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Attach.AttachPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "scope", n => { Scope = n.GetEnumValue(); } },
+ };
+ }
+ ///
+ /// 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.WriteEnumValue("scope", Scope);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Attach/AttachPostRequestBody_scope.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Attach/AttachPostRequestBody_scope.cs
new file mode 100644
index 00000000..08630045
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Attach/AttachPostRequestBody_scope.cs
@@ -0,0 +1,19 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Attach
+{
+ /// The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids`
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum AttachPostRequestBody_scope
+ {
+ [EnumMember(Value = "all")]
+ #pragma warning disable CS1591
+ All,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "all_without_configurations")]
+ #pragma warning disable CS1591
+ All_without_configurations,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Attach/AttachPostResponse.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Attach/AttachPostResponse.cs
new file mode 100644
index 00000000..e0f2b047
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Attach/AttachPostResponse.cs
@@ -0,0 +1,55 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Attach
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ #pragma warning disable CS1591
+ public partial class AttachPostResponse : 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; }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public AttachPostResponse()
+ {
+ 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.Enterprises.Item.CodeSecurity.Configurations.Item.Attach.AttachPostResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ return new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Attach.AttachPostResponse();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ };
+ }
+ ///
+ /// 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.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Attach/AttachRequestBuilder.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Attach/AttachRequestBuilder.cs
new file mode 100644
index 00000000..04be0581
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Attach/AttachRequestBuilder.cs
@@ -0,0 +1,99 @@
+//
+#pragma warning disable CS0618
+using GitHub.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Attach
+{
+ ///
+ /// Builds and executes requests for operations under \enterprises\{enterprise}\code-security\configurations\{configuration_id}\attach
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public partial class AttachRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public AttachRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public AttachRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach", rawUrl)
+ {
+ }
+ ///
+ /// Attaches an enterprise code security configuration to repositories. If the repositories specified are already attached to a configuration, they will be re-attached to the provided configuration.If insufficient GHAS licenses are available to attach the configuration to a repository, only free features will be enabled.The authenticated user must be an administrator for the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
+ /// API method documentation
+ ///
+ /// A
+ /// The request body
+ /// 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 409 status code
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Attach.AttachPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Attach.AttachPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Attach.AttachPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Attaches an enterprise code security configuration to repositories. If the repositories specified are already attached to a configuration, they will be re-attached to the provided configuration.If insufficient GHAS licenses are available to attach the configuration to a repository, only free features will be enabled.The authenticated user must be an administrator for the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
+ ///
+ /// A
+ /// The request body
+ /// 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 ToPostRequestInformation(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Attach.AttachPostRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Attach.AttachPostRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Attach.AttachRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Attach.AttachRequestBuilder(rawUrl, RequestAdapter);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutRequestBody.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutRequestBody.cs
new file mode 100644
index 00000000..765ce6d0
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutRequestBody.cs
@@ -0,0 +1,59 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ #pragma warning disable CS1591
+ public partial class DefaultsPutRequestBody : 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; }
+ /// Specify which types of repository this security configuration should be applied to by default.
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutRequestBody_default_for_new_repos? DefaultForNewRepos { get; set; }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public DefaultsPutRequestBody()
+ {
+ 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.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ return new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "default_for_new_repos", n => { DefaultForNewRepos = n.GetEnumValue(); } },
+ };
+ }
+ ///
+ /// 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.WriteEnumValue("default_for_new_repos", DefaultForNewRepos);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutRequestBody_default_for_new_repos.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutRequestBody_default_for_new_repos.cs
new file mode 100644
index 00000000..17c5abe8
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutRequestBody_default_for_new_repos.cs
@@ -0,0 +1,27 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults
+{
+ /// Specify which types of repository this security configuration should be applied to by default.
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum DefaultsPutRequestBody_default_for_new_repos
+ {
+ [EnumMember(Value = "all")]
+ #pragma warning disable CS1591
+ All,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "none")]
+ #pragma warning disable CS1591
+ None,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "private_and_internal")]
+ #pragma warning disable CS1591
+ Private_and_internal,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "public")]
+ #pragma warning disable CS1591
+ Public,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutResponse.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutResponse.cs
new file mode 100644
index 00000000..4e2e500e
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutResponse.cs
@@ -0,0 +1,70 @@
+//
+#pragma warning disable CS0618
+using GitHub.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ #pragma warning disable CS1591
+ public partial class DefaultsPutResponse : 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; }
+ /// A code security configuration
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Models.CodeSecurityConfiguration? Configuration { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Models.CodeSecurityConfiguration Configuration { get; set; }
+#endif
+ /// Specifies which types of repository this security configuration is applied to by default.
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutResponse_default_for_new_repos? DefaultForNewRepos { get; set; }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public DefaultsPutResponse()
+ {
+ 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.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ return new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutResponse();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "configuration", n => { Configuration = n.GetObjectValue(global::GitHub.Models.CodeSecurityConfiguration.CreateFromDiscriminatorValue); } },
+ { "default_for_new_repos", n => { DefaultForNewRepos = n.GetEnumValue(); } },
+ };
+ }
+ ///
+ /// 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.WriteObjectValue("configuration", Configuration);
+ writer.WriteEnumValue("default_for_new_repos", DefaultForNewRepos);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutResponse_default_for_new_repos.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutResponse_default_for_new_repos.cs
new file mode 100644
index 00000000..fb661cfc
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsPutResponse_default_for_new_repos.cs
@@ -0,0 +1,27 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults
+{
+ /// Specifies which types of repository this security configuration is applied to by default.
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum DefaultsPutResponse_default_for_new_repos
+ {
+ [EnumMember(Value = "all")]
+ #pragma warning disable CS1591
+ All,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "none")]
+ #pragma warning disable CS1591
+ None,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "private_and_internal")]
+ #pragma warning disable CS1591
+ Private_and_internal,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "public")]
+ #pragma warning disable CS1591
+ Public,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsRequestBuilder.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsRequestBuilder.cs
new file mode 100644
index 00000000..31f86a1e
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Defaults/DefaultsRequestBuilder.cs
@@ -0,0 +1,97 @@
+//
+#pragma warning disable CS0618
+using GitHub.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults
+{
+ ///
+ /// Builds and executes requests for operations under \enterprises\{enterprise}\code-security\configurations\{configuration_id}\defaults
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public partial class DefaultsRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public DefaultsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public DefaultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults", rawUrl)
+ {
+ }
+ ///
+ /// Sets a code security configuration as a default to be applied to new repositories in your enterprise.This configuration will be applied by default to the matching repository type when created, but only for organizations within the enterprise that do not already have a default code security configuration set.The authenticated user must be an administrator for the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
+ /// API method documentation
+ ///
+ /// A
+ /// The request body
+ /// 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
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PutAsync(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PutAsync(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPutRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Sets a code security configuration as a default to be applied to new repositories in your enterprise.This configuration will be applied by default to the matching repository type when created, but only for organizations within the enterprise that do not already have a default code security configuration set.The authenticated user must be an administrator for the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
+ ///
+ /// A
+ /// The request body
+ /// 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 ToPutRequestInformation(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsPutRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Repositories/RepositoriesRequestBuilder.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Repositories/RepositoriesRequestBuilder.cs
new file mode 100644
index 00000000..b1ccafe8
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/Repositories/RepositoriesRequestBuilder.cs
@@ -0,0 +1,133 @@
+//
+#pragma warning disable CS0618
+using GitHub.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Repositories
+{
+ ///
+ /// Builds and executes requests for operations under \enterprises\{enterprise}\code-security\configurations\{configuration_id}\repositories
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public partial class RepositoriesRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public RepositoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories{?after*,before*,per_page*,status*}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public RepositoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories{?after*,before*,per_page*,status*}", rawUrl)
+ {
+ }
+ ///
+ /// Lists the repositories associated with an enterprise code security configuration in an organization.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint.
+ /// API method documentation
+ ///
+ /// A List<global::GitHub.Models.CodeSecurityConfigurationRepositories>
+ /// 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
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToGetRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ };
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CodeSecurityConfigurationRepositories.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return collectionResult?.AsList();
+ }
+ ///
+ /// Lists the repositories associated with an enterprise code security configuration in an organization.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint.
+ ///
+ /// 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 ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Repositories.RepositoriesRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Repositories.RepositoriesRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Lists the repositories associated with an enterprise code security configuration in an organization.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public partial class RepositoriesRequestBuilderGetQueryParameters
+ {
+ /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)."
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("after")]
+ public string? After { get; set; }
+#nullable restore
+#else
+ [QueryParameter("after")]
+ public string After { get; set; }
+#endif
+ /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)."
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("before")]
+ public string? Before { get; set; }
+#nullable restore
+#else
+ [QueryParameter("before")]
+ public string Before { get; set; }
+#endif
+ /// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)."
+ [QueryParameter("per_page")]
+ public int? PerPage { get; set; }
+ /// A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned.Can be: `all`, `attached`, `attaching`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise`
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("status")]
+ public string? Status { get; set; }
+#nullable restore
+#else
+ [QueryParameter("status")]
+ public string Status { get; set; }
+#endif
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_ItemRequestBuilder.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_ItemRequestBuilder.cs
new file mode 100644
index 00000000..c47667fe
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_ItemRequestBuilder.cs
@@ -0,0 +1,210 @@
+//
+#pragma warning disable CS0618
+using GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Attach;
+using GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults;
+using GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Repositories;
+using GitHub.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item
+{
+ ///
+ /// Builds and executes requests for operations under \enterprises\{enterprise}\code-security\configurations\{configuration_id}
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public partial class WithConfiguration_ItemRequestBuilder : BaseRequestBuilder
+ {
+ /// The attach property
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Attach.AttachRequestBuilder Attach
+ {
+ get => new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Attach.AttachRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// The defaults property
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsRequestBuilder Defaults
+ {
+ get => new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Defaults.DefaultsRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// The repositories property
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Repositories.RepositoriesRequestBuilder Repositories
+ {
+ get => new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.Repositories.RepositoriesRequestBuilder(PathParameters, RequestAdapter);
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public WithConfiguration_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/code-security/configurations/{configuration_id}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public WithConfiguration_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/code-security/configurations/{configuration_id}", rawUrl)
+ {
+ }
+ ///
+ /// Deletes a code security configuration from an enterprise.Repositories attached to the configuration will retain their settings but will no longer be associated withthe configuration.The authenticated user must be an administrator for the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
+ /// 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 400 status code
+ /// When receiving a 403 status code
+ /// When receiving a 404 status code
+ /// When receiving a 409 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>
+ {
+ { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Gets a code security configuration available in an enterprise.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint.
+ /// API method documentation
+ ///
+ /// A
+ /// 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
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToGetRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeSecurityConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Updates a code security configuration in an enterprise.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
+ /// API method documentation
+ ///
+ /// A
+ /// The request body
+ /// 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 409 status code
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PatchAsync(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PatchAsync(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "409", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeSecurityConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Deletes a code security configuration from an enterprise.Repositories attached to the configuration will retain their settings but will no longer be associated withthe configuration.The authenticated user must be an administrator for the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
+ ///
+ /// 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, application/scim+json");
+ return requestInfo;
+ }
+ ///
+ /// Gets a code security configuration available in an enterprise.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint.
+ ///
+ /// 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 ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Updates a code security configuration in an enterprise.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
+ ///
+ /// A
+ /// The request body
+ /// 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 ToPatchRequestInformation(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPatchRequestInformation(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_ItemRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_ItemRequestBuilder(rawUrl, RequestAdapter);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody.cs
new file mode 100644
index 00000000..44621a5a
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody.cs
@@ -0,0 +1,134 @@
+//
+#pragma warning disable CS0618
+using GitHub.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ #pragma warning disable CS1591
+ public partial class WithConfiguration_PatchRequestBody : IParsable
+ #pragma warning restore CS1591
+ {
+ /// The enablement status of GitHub Advanced Security. Must be set to enabled if you want to enable any GHAS settings.
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_advanced_security? AdvancedSecurity { get; set; }
+ /// The enablement status of code scanning default setup
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_code_scanning_default_setup? CodeScanningDefaultSetup { get; set; }
+ /// Feature options for code scanning default setup
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Models.CodeScanningDefaultSetupOptions? CodeScanningDefaultSetupOptions { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Models.CodeScanningDefaultSetupOptions CodeScanningDefaultSetupOptions { get; set; }
+#endif
+ /// The enablement status of Dependabot alerts
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependabot_alerts? DependabotAlerts { get; set; }
+ /// The enablement status of Dependabot security updates
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependabot_security_updates? DependabotSecurityUpdates { get; set; }
+ /// The enablement status of Dependency Graph
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependency_graph? DependencyGraph { get; set; }
+ /// The enablement status of Automatic dependency submission
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action? DependencyGraphAutosubmitAction { get; set; }
+ /// Feature options for Automatic dependency submission
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options? DependencyGraphAutosubmitActionOptions { get; set; }
+#nullable restore
+#else
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options DependencyGraphAutosubmitActionOptions { get; set; }
+#endif
+ /// A description of the code security configuration
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? Description { get; set; }
+#nullable restore
+#else
+ public string Description { get; set; }
+#endif
+ /// The enforcement status for a security configuration
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_enforcement? Enforcement { get; set; }
+ /// The name of the code security configuration. Must be unique across the enterprise.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? Name { get; set; }
+#nullable restore
+#else
+ public string Name { get; set; }
+#endif
+ /// The enablement status of private vulnerability reporting
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_private_vulnerability_reporting? PrivateVulnerabilityReporting { get; set; }
+ /// The enablement status of secret scanning
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning? SecretScanning { get; set; }
+ /// The enablement status of secret scanning non-provider patterns
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning_non_provider_patterns? SecretScanningNonProviderPatterns { get; set; }
+ /// The enablement status of secret scanning push protection
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning_push_protection? SecretScanningPushProtection { get; set; }
+ /// The enablement status of secret scanning validity checks
+ public global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning_validity_checks? SecretScanningValidityChecks { get; set; }
+ ///
+ /// 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.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ return new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "advanced_security", n => { AdvancedSecurity = n.GetEnumValue(); } },
+ { "code_scanning_default_setup", n => { CodeScanningDefaultSetup = n.GetEnumValue(); } },
+ { "code_scanning_default_setup_options", n => { CodeScanningDefaultSetupOptions = n.GetObjectValue(global::GitHub.Models.CodeScanningDefaultSetupOptions.CreateFromDiscriminatorValue); } },
+ { "dependabot_alerts", n => { DependabotAlerts = n.GetEnumValue(); } },
+ { "dependabot_security_updates", n => { DependabotSecurityUpdates = n.GetEnumValue(); } },
+ { "dependency_graph", n => { DependencyGraph = n.GetEnumValue(); } },
+ { "dependency_graph_autosubmit_action", n => { DependencyGraphAutosubmitAction = n.GetEnumValue(); } },
+ { "dependency_graph_autosubmit_action_options", n => { DependencyGraphAutosubmitActionOptions = n.GetObjectValue(global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options.CreateFromDiscriminatorValue); } },
+ { "description", n => { Description = n.GetStringValue(); } },
+ { "enforcement", n => { Enforcement = n.GetEnumValue(); } },
+ { "name", n => { Name = n.GetStringValue(); } },
+ { "private_vulnerability_reporting", n => { PrivateVulnerabilityReporting = n.GetEnumValue(); } },
+ { "secret_scanning", n => { SecretScanning = n.GetEnumValue(); } },
+ { "secret_scanning_non_provider_patterns", n => { SecretScanningNonProviderPatterns = n.GetEnumValue(); } },
+ { "secret_scanning_push_protection", n => { SecretScanningPushProtection = n.GetEnumValue(); } },
+ { "secret_scanning_validity_checks", n => { SecretScanningValidityChecks = n.GetEnumValue(); } },
+ };
+ }
+ ///
+ /// 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.WriteEnumValue("advanced_security", AdvancedSecurity);
+ writer.WriteEnumValue("code_scanning_default_setup", CodeScanningDefaultSetup);
+ writer.WriteObjectValue("code_scanning_default_setup_options", CodeScanningDefaultSetupOptions);
+ writer.WriteEnumValue("dependabot_alerts", DependabotAlerts);
+ writer.WriteEnumValue("dependabot_security_updates", DependabotSecurityUpdates);
+ writer.WriteEnumValue("dependency_graph", DependencyGraph);
+ writer.WriteEnumValue("dependency_graph_autosubmit_action", DependencyGraphAutosubmitAction);
+ writer.WriteObjectValue("dependency_graph_autosubmit_action_options", DependencyGraphAutosubmitActionOptions);
+ writer.WriteStringValue("description", Description);
+ writer.WriteEnumValue("enforcement", Enforcement);
+ writer.WriteStringValue("name", Name);
+ writer.WriteEnumValue("private_vulnerability_reporting", PrivateVulnerabilityReporting);
+ writer.WriteEnumValue("secret_scanning", SecretScanning);
+ writer.WriteEnumValue("secret_scanning_non_provider_patterns", SecretScanningNonProviderPatterns);
+ writer.WriteEnumValue("secret_scanning_push_protection", SecretScanningPushProtection);
+ writer.WriteEnumValue("secret_scanning_validity_checks", SecretScanningValidityChecks);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_advanced_security.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_advanced_security.cs
new file mode 100644
index 00000000..e79ae52f
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_advanced_security.cs
@@ -0,0 +1,19 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item
+{
+ /// The enablement status of GitHub Advanced Security. Must be set to enabled if you want to enable any GHAS settings.
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum WithConfiguration_PatchRequestBody_advanced_security
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_code_scanning_default_setup.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_code_scanning_default_setup.cs
new file mode 100644
index 00000000..3eb984bb
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_code_scanning_default_setup.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item
+{
+ /// The enablement status of code scanning default setup
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum WithConfiguration_PatchRequestBody_code_scanning_default_setup
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependabot_alerts.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependabot_alerts.cs
new file mode 100644
index 00000000..c9d9e2ca
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependabot_alerts.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item
+{
+ /// The enablement status of Dependabot alerts
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum WithConfiguration_PatchRequestBody_dependabot_alerts
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependabot_security_updates.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependabot_security_updates.cs
new file mode 100644
index 00000000..60463fd1
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependabot_security_updates.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item
+{
+ /// The enablement status of Dependabot security updates
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum WithConfiguration_PatchRequestBody_dependabot_security_updates
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph.cs
new file mode 100644
index 00000000..28545c5d
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item
+{
+ /// The enablement status of Dependency Graph
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum WithConfiguration_PatchRequestBody_dependency_graph
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action.cs
new file mode 100644
index 00000000..3ab4e8d2
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item
+{
+ /// The enablement status of Automatic dependency submission
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options.cs
new file mode 100644
index 00000000..8528463d
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options.cs
@@ -0,0 +1,60 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item
+{
+ ///
+ /// Feature options for Automatic dependency submission
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public partial class WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options : 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; }
+ /// Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.
+ public bool? LabeledRunners { get; set; }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options()
+ {
+ 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.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ return new global::GitHub.Enterprises.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependency_graph_autosubmit_action_options();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "labeled_runners", n => { LabeledRunners = n.GetBoolValue(); } },
+ };
+ }
+ ///
+ /// 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.WriteBoolValue("labeled_runners", LabeledRunners);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_enforcement.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_enforcement.cs
new file mode 100644
index 00000000..fc8fd8ad
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_enforcement.cs
@@ -0,0 +1,19 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item
+{
+ /// The enforcement status for a security configuration
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum WithConfiguration_PatchRequestBody_enforcement
+ {
+ [EnumMember(Value = "enforced")]
+ #pragma warning disable CS1591
+ Enforced,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "unenforced")]
+ #pragma warning disable CS1591
+ Unenforced,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_private_vulnerability_reporting.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_private_vulnerability_reporting.cs
new file mode 100644
index 00000000..2e844d52
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_private_vulnerability_reporting.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item
+{
+ /// The enablement status of private vulnerability reporting
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum WithConfiguration_PatchRequestBody_private_vulnerability_reporting
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning.cs
new file mode 100644
index 00000000..7e2f67dc
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item
+{
+ /// The enablement status of secret scanning
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum WithConfiguration_PatchRequestBody_secret_scanning
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_non_provider_patterns.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_non_provider_patterns.cs
new file mode 100644
index 00000000..977cdf15
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_non_provider_patterns.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item
+{
+ /// The enablement status of secret scanning non-provider patterns
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum WithConfiguration_PatchRequestBody_secret_scanning_non_provider_patterns
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_push_protection.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_push_protection.cs
new file mode 100644
index 00000000..8155ccb0
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_push_protection.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item
+{
+ /// The enablement status of secret scanning push protection
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum WithConfiguration_PatchRequestBody_secret_scanning_push_protection
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_validity_checks.cs b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_validity_checks.cs
new file mode 100644
index 00000000..8b3a4846
--- /dev/null
+++ b/src/GitHub/Enterprises/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_validity_checks.cs
@@ -0,0 +1,23 @@
+//
+using System.Runtime.Serialization;
+using System;
+namespace GitHub.Enterprises.Item.CodeSecurity.Configurations.Item
+{
+ /// The enablement status of secret scanning validity checks
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
+ public enum WithConfiguration_PatchRequestBody_secret_scanning_validity_checks
+ {
+ [EnumMember(Value = "enabled")]
+ #pragma warning disable CS1591
+ Enabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "disabled")]
+ #pragma warning disable CS1591
+ Disabled,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "not_set")]
+ #pragma warning disable CS1591
+ Not_set,
+ #pragma warning restore CS1591
+ }
+}
diff --git a/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs
index 1133d082..23a815d9 100644
--- a/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs
+++ b/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs
@@ -34,7 +34,7 @@ public SeatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
{
}
///
- /// > [!NOTE]> This endpoint is in public preview and is subject to change.Lists all active Copilot seats across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription.Users with access through multiple organizations or enterprise teams will only be counted toward `total_seats` once.For each organization or enterprise team which grants Copilot access to a user, a seat detail object will appear in the `seats` array.Only enterprise owners and billing managers can view assigned Copilot seats across their child organizations or enterprise teams.Personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint.
+ /// > [!NOTE]> This endpoint is in public preview and is subject to change.Lists all Copilot seats currently being billed for across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription.Users with access through multiple organizations or enterprise teams will only be counted toward `total_seats` once.For each organization or enterprise team which grants Copilot access to a user, a seat detail object will appear in the `seats` array.Each seat object contains information about the assigned user's most recent Copilot activity. Users must havetelemetry enabled in their IDE for Copilot in the IDE activity to be reflected in `last_activity_at`. For more information about activity data,see "[Reviewing user activity data for Copilot in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-activity-related-to-github-copilot-in-your-organization/reviewing-user-activity-data-for-copilot-in-your-organization)."Only enterprise owners and billing managers can view assigned Copilot seats across their child organizations or enterprise teams.Personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint.
/// API method documentation