diff --git a/src/GitHub.Octokit.GHEC.SDK.csproj b/src/GitHub.Octokit.GHEC.SDK.csproj
index 7977fdc4..59fbf478 100644
--- a/src/GitHub.Octokit.GHEC.SDK.csproj
+++ b/src/GitHub.Octokit.GHEC.SDK.csproj
@@ -33,14 +33,14 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/src/GitHub/Advisories/AdvisoriesRequestBuilder.cs b/src/GitHub/Advisories/AdvisoriesRequestBuilder.cs
index 8c9b123d..6389217c 100644
--- a/src/GitHub/Advisories/AdvisoriesRequestBuilder.cs
+++ b/src/GitHub/Advisories/AdvisoriesRequestBuilder.cs
@@ -1,74 +1,77 @@
//
+#pragma warning disable CS0618
using GitHub.Advisories.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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Advisories {
+namespace GitHub.Advisories
+{
///
/// Builds and executes requests for operations under \advisories
///
- public class AdvisoriesRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class AdvisoriesRequestBuilder : BaseRequestBuilder
{
/// Gets an item from the GitHub.advisories.item collection
/// The GHSA (GitHub Security Advisory) identifier of the advisory.
- /// A
- public WithGhsa_ItemRequestBuilder this[string position]
+ /// A
+ public global::GitHub.Advisories.Item.WithGhsa_ItemRequestBuilder this[string position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("ghsa_id", position);
- return new WithGhsa_ItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new global::GitHub.Advisories.Item.WithGhsa_ItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
- public AdvisoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/advisories{?affects*,after*,before*,cve_id*,cwes*,direction*,ecosystem*,ghsa_id*,is_withdrawn*,modified*,per_page*,published*,severity*,sort*,type*,updated*}", pathParameters)
+ public AdvisoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/advisories{?affects*,after*,before*,cve_id*,cwes*,direction*,ecosystem*,epss_percentage*,epss_percentile*,ghsa_id*,is_withdrawn*,modified*,per_page*,published*,severity*,sort*,type*,updated*}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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 AdvisoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/advisories{?affects*,after*,before*,cve_id*,cwes*,direction*,ecosystem*,ghsa_id*,is_withdrawn*,modified*,per_page*,published*,severity*,sort*,type*,updated*}", rawUrl)
+ public AdvisoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/advisories{?affects*,after*,before*,cve_id*,cwes*,direction*,ecosystem*,epss_percentage*,epss_percentile*,ghsa_id*,is_withdrawn*,modified*,per_page*,published*,severity*,sort*,type*,updated*}", rawUrl)
{
}
///
/// Lists all global security advisories that match the specified parameters. If no other parameters are defined, the request will return only GitHub-reviewed advisories that are not malware.By default, all responses will exclude advisories for malware, because malware are not standard vulnerabilities. To list advisories for malware, you must include the `type` parameter in your request, with the value `malware`. For more information about the different types of security advisories, see "[About the GitHub Advisory database](https://docs.github.com/enterprise-cloud@latest//code-security/security-advisories/global-security-advisories/about-the-github-advisory-database#about-types-of-security-advisories)."
/// API method documentation
///
- /// A List<GlobalAdvisory>
+ /// A List<global::GitHub.Models.GlobalAdvisory>
/// 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
- /// When receiving a 429 status code
+ /// When receiving a 422 status code
+ /// When receiving a 429 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"422", ValidationErrorSimple.CreateFromDiscriminatorValue},
- {"429", BasicError.CreateFromDiscriminatorValue},
+ { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue },
+ { "429", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
};
- var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GlobalAdvisory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.GlobalAdvisory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return collectionResult?.AsList();
}
///
/// Lists all global security advisories that match the specified parameters. If no other parameters are defined, the request will return only GitHub-reviewed advisories that are not malware.By default, all responses will exclude advisories for malware, because malware are not standard vulnerabilities. To list advisories for malware, you must include the `type` parameter in your request, with the value `malware`. For more information about the different types of security advisories, see "[About the GitHub Advisory database](https://docs.github.com/enterprise-cloud@latest//code-security/security-advisories/global-security-advisories/about-the-github-advisory-database#about-types-of-security-advisories)."
@@ -77,11 +80,11 @@ public async Task> GetAsync(ActionConfiguration 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)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -92,16 +95,17 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public AdvisoriesRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Advisories.AdvisoriesRequestBuilder WithUrl(string rawUrl)
{
- return new AdvisoriesRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Advisories.AdvisoriesRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Lists all global security advisories that match the specified parameters. If no other parameters are defined, the request will return only GitHub-reviewed advisories that are not malware.By default, all responses will exclude advisories for malware, because malware are not standard vulnerabilities. To list advisories for malware, you must include the `type` parameter in your request, with the value `malware`. For more information about the different types of security advisories, see "[About the GitHub Advisory database](https://docs.github.com/enterprise-cloud@latest//code-security/security-advisories/global-security-advisories/about-the-github-advisory-database#about-types-of-security-advisories)."
///
- public class AdvisoriesRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class AdvisoriesRequestBuilderGetQueryParameters
{
/// If specified, only return advisories that affect any of `package` or `package@version`. A maximum of 1000 packages can be specified.If the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages.Example: `affects=package1,package2@1.0.0,package3@^2.0.0` or `affects[]=package1&affects[]=package2@1.0.0`
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -155,10 +159,30 @@ public class AdvisoriesRequestBuilderGetQueryParameters
#endif
/// The direction to sort the results by.
[QueryParameter("direction")]
- public GetDirectionQueryParameterType? Direction { get; set; }
+ public global::GitHub.Advisories.GetDirectionQueryParameterType? Direction { get; set; }
/// If specified, only advisories for these ecosystems will be returned.
[QueryParameter("ecosystem")]
- public SecurityAdvisoryEcosystems? Ecosystem { get; set; }
+ public global::GitHub.Models.SecurityAdvisoryEcosystems? Ecosystem { get; set; }
+ /// If specified, only return advisories that have an EPSS percentage score that matches the provided value.The EPSS percentage represents the likelihood of a CVE being exploited.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("epss_percentage")]
+ public string? EpssPercentage { get; set; }
+#nullable restore
+#else
+ [QueryParameter("epss_percentage")]
+ public string EpssPercentage { get; set; }
+#endif
+ /// If specified, only return advisories that have an EPSS percentile score that matches the provided value.The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("epss_percentile")]
+ public string? EpssPercentile { get; set; }
+#nullable restore
+#else
+ [QueryParameter("epss_percentile")]
+ public string EpssPercentile { get; set; }
+#endif
/// If specified, only advisories with this GHSA (GitHub Security Advisory) identifier will be returned.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -197,13 +221,13 @@ public class AdvisoriesRequestBuilderGetQueryParameters
#endif
/// If specified, only advisories with these severities will be returned.
[QueryParameter("severity")]
- public GetSeverityQueryParameterType? Severity { get; set; }
+ public global::GitHub.Advisories.GetSeverityQueryParameterType? Severity { get; set; }
/// The property to sort the results by.
[QueryParameter("sort")]
- public GetSortQueryParameterType? Sort { get; set; }
+ public global::GitHub.Advisories.GetSortQueryParameterType? Sort { get; set; }
/// If specified, only advisories of this type will be returned. By default, a request with no other parameters defined will only return reviewed advisories that are not malware.
[QueryParameter("type")]
- public GetTypeQueryParameterType? Type { get; set; }
+ public global::GitHub.Advisories.GetTypeQueryParameterType? Type { get; set; }
/// If specified, only return advisories that were updated on a date or date range.For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/enterprise-cloud@latest//search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)."
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -217,3 +241,4 @@ public class AdvisoriesRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Advisories/GetDirectionQueryParameterType.cs b/src/GitHub/Advisories/GetDirectionQueryParameterType.cs
index 78a16675..9ebaf4c2 100644
--- a/src/GitHub/Advisories/GetDirectionQueryParameterType.cs
+++ b/src/GitHub/Advisories/GetDirectionQueryParameterType.cs
@@ -1,7 +1,9 @@
//
using System.Runtime.Serialization;
using System;
-namespace GitHub.Advisories {
+namespace GitHub.Advisories
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
public enum GetDirectionQueryParameterType
#pragma warning restore CS1591
diff --git a/src/GitHub/Advisories/GetSeverityQueryParameterType.cs b/src/GitHub/Advisories/GetSeverityQueryParameterType.cs
index a413749a..05a976ed 100644
--- a/src/GitHub/Advisories/GetSeverityQueryParameterType.cs
+++ b/src/GitHub/Advisories/GetSeverityQueryParameterType.cs
@@ -1,7 +1,9 @@
//
using System.Runtime.Serialization;
using System;
-namespace GitHub.Advisories {
+namespace GitHub.Advisories
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
public enum GetSeverityQueryParameterType
#pragma warning restore CS1591
diff --git a/src/GitHub/Advisories/GetSortQueryParameterType.cs b/src/GitHub/Advisories/GetSortQueryParameterType.cs
index 5431ea5b..17aa6732 100644
--- a/src/GitHub/Advisories/GetSortQueryParameterType.cs
+++ b/src/GitHub/Advisories/GetSortQueryParameterType.cs
@@ -1,7 +1,9 @@
//
using System.Runtime.Serialization;
using System;
-namespace GitHub.Advisories {
+namespace GitHub.Advisories
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
public enum GetSortQueryParameterType
#pragma warning restore CS1591
@@ -14,5 +16,13 @@ public enum GetSortQueryParameterType
#pragma warning disable CS1591
Published,
#pragma warning restore CS1591
+ [EnumMember(Value = "epss_percentage")]
+ #pragma warning disable CS1591
+ Epss_percentage,
+ #pragma warning restore CS1591
+ [EnumMember(Value = "epss_percentile")]
+ #pragma warning disable CS1591
+ Epss_percentile,
+ #pragma warning restore CS1591
}
}
diff --git a/src/GitHub/Advisories/GetTypeQueryParameterType.cs b/src/GitHub/Advisories/GetTypeQueryParameterType.cs
index b303869f..fe584d50 100644
--- a/src/GitHub/Advisories/GetTypeQueryParameterType.cs
+++ b/src/GitHub/Advisories/GetTypeQueryParameterType.cs
@@ -1,7 +1,9 @@
//
using System.Runtime.Serialization;
using System;
-namespace GitHub.Advisories {
+namespace GitHub.Advisories
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
public enum GetTypeQueryParameterType
#pragma warning restore CS1591
diff --git a/src/GitHub/Advisories/Item/WithGhsa_ItemRequestBuilder.cs b/src/GitHub/Advisories/Item/WithGhsa_ItemRequestBuilder.cs
index ae724357..1f700d6b 100644
--- a/src/GitHub/Advisories/Item/WithGhsa_ItemRequestBuilder.cs
+++ b/src/GitHub/Advisories/Item/WithGhsa_ItemRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Advisories.Item {
+namespace GitHub.Advisories.Item
+{
///
/// Builds and executes requests for operations under \advisories\{ghsa_id}
///
- public class WithGhsa_ItemRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class WithGhsa_ItemRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public WithGhsa_ItemRequestBuilder(Dictionary pathParameters, IR
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -34,25 +37,25 @@ public WithGhsa_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter
/// Gets a global security advisory using its GitHub Security Advisory (GHSA) identifier.
/// API method documentation
///
- /// A
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 404 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)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"404", BasicError.CreateFromDiscriminatorValue},
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, GlobalAdvisory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GlobalAdvisory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Gets a global security advisory using its GitHub Security Advisory (GHSA) identifier.
@@ -76,11 +79,12 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public WithGhsa_ItemRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Advisories.Item.WithGhsa_ItemRequestBuilder WithUrl(string rawUrl)
{
- return new WithGhsa_ItemRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Advisories.Item.WithGhsa_ItemRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/App/AppRequestBuilder.cs b/src/GitHub/App/AppRequestBuilder.cs
index e2f00d4d..e9107e94 100644
--- a/src/GitHub/App/AppRequestBuilder.cs
+++ b/src/GitHub/App/AppRequestBuilder.cs
@@ -1,39 +1,42 @@
//
+#pragma warning disable CS0618
using GitHub.App.Hook;
using GitHub.App.InstallationRequests;
using GitHub.App.Installations;
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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.App {
+namespace GitHub.App
+{
///
/// Builds and executes requests for operations under \app
///
- public class AppRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class AppRequestBuilder : BaseRequestBuilder
{
/// The hook property
- public HookRequestBuilder Hook
+ public global::GitHub.App.Hook.HookRequestBuilder Hook
{
- get => new HookRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.App.Hook.HookRequestBuilder(PathParameters, RequestAdapter);
}
/// The installationRequests property
- public InstallationRequestsRequestBuilder InstallationRequests
+ public global::GitHub.App.InstallationRequests.InstallationRequestsRequestBuilder InstallationRequests
{
- get => new InstallationRequestsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.App.InstallationRequests.InstallationRequestsRequestBuilder(PathParameters, RequestAdapter);
}
/// The installations property
- public InstallationsRequestBuilder Installations
+ public global::GitHub.App.Installations.InstallationsRequestBuilder Installations
{
- get => new InstallationsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.App.Installations.InstallationsRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -41,7 +44,7 @@ public AppRequestBuilder(Dictionary pathParameters, IRequestAdap
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -52,20 +55,20 @@ public AppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r
/// Returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this GitHub App, see the `installations_count` in the response. For more details about your app's installations, see the "[List installations for the authenticated app](https://docs.github.com/enterprise-cloud@latest//rest/apps/apps#list-installations-for-the-authenticated-app)" endpoint.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
+ /// 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)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- return await RequestAdapter.SendAsync(requestInfo, Integration.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Integration.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
}
///
/// Returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this GitHub App, see the `installations_count` in the response. For more details about your app's installations, see the "[List installations for the authenticated app](https://docs.github.com/enterprise-cloud@latest//rest/apps/apps#list-installations-for-the-authenticated-app)" endpoint.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.
@@ -89,11 +92,12 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public AppRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.App.AppRequestBuilder WithUrl(string rawUrl)
{
- return new AppRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.App.AppRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/App/Hook/Config/ConfigPatchRequestBody.cs b/src/GitHub/App/Hook/Config/ConfigPatchRequestBody.cs
index 8dd9fa08..941861ca 100644
--- a/src/GitHub/App/Hook/Config/ConfigPatchRequestBody.cs
+++ b/src/GitHub/App/Hook/Config/ConfigPatchRequestBody.cs
@@ -1,13 +1,16 @@
//
+#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.Linq;
using System;
-namespace GitHub.App.Hook.Config {
+namespace GitHub.App.Hook.Config
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
- public class ConfigPatchRequestBody : IAdditionalDataHolder, IParsable
+ public partial class ConfigPatchRequestBody : 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.
@@ -23,10 +26,10 @@ public class ConfigPatchRequestBody : IAdditionalDataHolder, IParsable
/// The insecure_ssl property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public WebhookConfigInsecureSsl? InsecureSsl { get; set; }
+ public global::GitHub.Models.WebhookConfigInsecureSsl? InsecureSsl { get; set; }
#nullable restore
#else
- public WebhookConfigInsecureSsl InsecureSsl { get; set; }
+ public global::GitHub.Models.WebhookConfigInsecureSsl InsecureSsl { get; set; }
#endif
/// If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -45,7 +48,7 @@ public class ConfigPatchRequestBody : IAdditionalDataHolder, IParsable
public string Url { get; set; }
#endif
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public ConfigPatchRequestBody()
{
@@ -54,12 +57,12 @@ public ConfigPatchRequestBody()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static ConfigPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::GitHub.App.Hook.Config.ConfigPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new ConfigPatchRequestBody();
+ return new global::GitHub.App.Hook.Config.ConfigPatchRequestBody();
}
///
/// The deserialization information for the current model
@@ -69,10 +72,10 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"content_type", n => { ContentType = n.GetStringValue(); } },
- {"insecure_ssl", n => { InsecureSsl = n.GetObjectValue(WebhookConfigInsecureSsl.CreateFromDiscriminatorValue); } },
- {"secret", n => { Secret = n.GetStringValue(); } },
- {"url", n => { Url = n.GetStringValue(); } },
+ { "content_type", n => { ContentType = n.GetStringValue(); } },
+ { "insecure_ssl", n => { InsecureSsl = n.GetObjectValue(global::GitHub.Models.WebhookConfigInsecureSsl.CreateFromDiscriminatorValue); } },
+ { "secret", n => { Secret = n.GetStringValue(); } },
+ { "url", n => { Url = n.GetStringValue(); } },
};
}
///
@@ -83,10 +86,11 @@ public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteStringValue("content_type", ContentType);
- writer.WriteObjectValue("insecure_ssl", InsecureSsl);
+ writer.WriteObjectValue("insecure_ssl", InsecureSsl);
writer.WriteStringValue("secret", Secret);
writer.WriteStringValue("url", Url);
writer.WriteAdditionalData(AdditionalData);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/App/Hook/Config/ConfigRequestBuilder.cs b/src/GitHub/App/Hook/Config/ConfigRequestBuilder.cs
index 434f05ae..e4079ff3 100644
--- a/src/GitHub/App/Hook/Config/ConfigRequestBuilder.cs
+++ b/src/GitHub/App/Hook/Config/ConfigRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.App.Hook.Config {
+namespace GitHub.App.Hook.Config
+{
///
/// Builds and executes requests for operations under \app\hook\config
///
- public class ConfigRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class ConfigRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public ConfigRequestBuilder(Dictionary pathParameters, IRequestA
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -34,41 +37,41 @@ public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
/// Returns the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)."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
+ /// 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)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- return await RequestAdapter.SendAsync(requestInfo, WebhookConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.WebhookConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
}
///
/// Updates the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)."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
+ /// 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 PatchAsync(ConfigPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PatchAsync(global::GitHub.App.Hook.Config.ConfigPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PatchAsync(ConfigPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PatchAsync(global::GitHub.App.Hook.Config.ConfigPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
- return await RequestAdapter.SendAsync(requestInfo, WebhookConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.WebhookConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
}
///
/// Returns the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)."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.
@@ -97,11 +100,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(ConfigPatchRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::GitHub.App.Hook.Config.ConfigPatchRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(ConfigPatchRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::GitHub.App.Hook.Config.ConfigPatchRequestBody body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -114,11 +117,12 @@ public RequestInformation ToPatchRequestInformation(ConfigPatchRequestBody body,
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public ConfigRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.App.Hook.Config.ConfigRequestBuilder WithUrl(string rawUrl)
{
- return new ConfigRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.App.Hook.Config.ConfigRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/App/Hook/Deliveries/DeliveriesRequestBuilder.cs b/src/GitHub/App/Hook/Deliveries/DeliveriesRequestBuilder.cs
index 6b944c06..c78ca8c0 100644
--- a/src/GitHub/App/Hook/Deliveries/DeliveriesRequestBuilder.cs
+++ b/src/GitHub/App/Hook/Deliveries/DeliveriesRequestBuilder.cs
@@ -1,34 +1,37 @@
//
+#pragma warning disable CS0618
using GitHub.App.Hook.Deliveries.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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.App.Hook.Deliveries {
+namespace GitHub.App.Hook.Deliveries
+{
///
/// Builds and executes requests for operations under \app\hook\deliveries
///
- public class DeliveriesRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class DeliveriesRequestBuilder : BaseRequestBuilder
{
/// Gets an item from the GitHub.app.hook.deliveries.item collection
/// Unique identifier of the item
- /// A
- public WithDelivery_ItemRequestBuilder this[int position]
+ /// A
+ public global::GitHub.App.Hook.Deliveries.Item.WithDelivery_ItemRequestBuilder this[int position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("delivery_id", position);
- return new WithDelivery_ItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new global::GitHub.App.Hook.Deliveries.Item.WithDelivery_ItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -36,7 +39,7 @@ public DeliveriesRequestBuilder(Dictionary pathParameters, IRequ
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -47,28 +50,28 @@ public DeliveriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) :
/// Returns a list of webhook deliveries for the webhook configured for a GitHub App.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 List<HookDeliveryItem>
+ /// A List<global::GitHub.Models.HookDeliveryItem>
/// 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 422 status code
+ /// When receiving a 400 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", BasicError.CreateFromDiscriminatorValue},
- {"422", ValidationError.CreateFromDiscriminatorValue},
+ { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue },
};
- var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, HookDeliveryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.HookDeliveryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return collectionResult?.AsList();
}
///
/// Returns a list of webhook deliveries for the webhook configured for a GitHub App.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.
@@ -77,11 +80,11 @@ public async Task> GetAsync(ActionConfiguration 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)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -92,16 +95,17 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public DeliveriesRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.App.Hook.Deliveries.DeliveriesRequestBuilder WithUrl(string rawUrl)
{
- return new DeliveriesRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.App.Hook.Deliveries.DeliveriesRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Returns a list of webhook deliveries for the webhook configured for a GitHub App.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.
///
- public class DeliveriesRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class DeliveriesRequestBuilderGetQueryParameters
{
/// Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -121,3 +125,4 @@ public class DeliveriesRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/App/Hook/Deliveries/Item/Attempts/AttemptsPostResponse.cs b/src/GitHub/App/Hook/Deliveries/Item/Attempts/AttemptsPostResponse.cs
index 65e78324..a3eca937 100644
--- a/src/GitHub/App/Hook/Deliveries/Item/Attempts/AttemptsPostResponse.cs
+++ b/src/GitHub/App/Hook/Deliveries/Item/Attempts/AttemptsPostResponse.cs
@@ -1,18 +1,21 @@
//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace GitHub.App.Hook.Deliveries.Item.Attempts {
+namespace GitHub.App.Hook.Deliveries.Item.Attempts
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
- public class AttemptsPostResponse : IAdditionalDataHolder, IParsable
+ public partial class AttemptsPostResponse : 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.
+ /// Instantiates a new and sets the default values.
///
public AttemptsPostResponse()
{
@@ -21,12 +24,12 @@ public AttemptsPostResponse()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static AttemptsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::GitHub.App.Hook.Deliveries.Item.Attempts.AttemptsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new AttemptsPostResponse();
+ return new global::GitHub.App.Hook.Deliveries.Item.Attempts.AttemptsPostResponse();
}
///
/// The deserialization information for the current model
@@ -49,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer)
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/App/Hook/Deliveries/Item/Attempts/AttemptsRequestBuilder.cs b/src/GitHub/App/Hook/Deliveries/Item/Attempts/AttemptsRequestBuilder.cs
index 83e0ee95..c817af7d 100644
--- a/src/GitHub/App/Hook/Deliveries/Item/Attempts/AttemptsRequestBuilder.cs
+++ b/src/GitHub/App/Hook/Deliveries/Item/Attempts/AttemptsRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.App.Hook.Deliveries.Item.Attempts {
+namespace GitHub.App.Hook.Deliveries.Item.Attempts
+{
///
/// Builds and executes requests for operations under \app\hook\deliveries\{delivery_id}\attempts
///
- public class AttemptsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class AttemptsRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public AttemptsRequestBuilder(Dictionary pathParameters, IReques
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -34,27 +37,27 @@ public AttemptsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b
/// Redeliver a delivery for the webhook configured for a GitHub App.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
+ /// A
/// 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 422 status code
+ /// When receiving a 400 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToPostRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", BasicError.CreateFromDiscriminatorValue},
- {"422", ValidationError.CreateFromDiscriminatorValue},
+ { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, AttemptsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.App.Hook.Deliveries.Item.Attempts.AttemptsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Redeliver a delivery for the webhook configured for a GitHub App.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.
@@ -78,11 +81,12 @@ public RequestInformation ToPostRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public AttemptsRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.App.Hook.Deliveries.Item.Attempts.AttemptsRequestBuilder WithUrl(string rawUrl)
{
- return new AttemptsRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.App.Hook.Deliveries.Item.Attempts.AttemptsRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/App/Hook/Deliveries/Item/WithDelivery_ItemRequestBuilder.cs b/src/GitHub/App/Hook/Deliveries/Item/WithDelivery_ItemRequestBuilder.cs
index c85af9d6..52e4c1e1 100644
--- a/src/GitHub/App/Hook/Deliveries/Item/WithDelivery_ItemRequestBuilder.cs
+++ b/src/GitHub/App/Hook/Deliveries/Item/WithDelivery_ItemRequestBuilder.cs
@@ -1,27 +1,30 @@
//
+#pragma warning disable CS0618
using GitHub.App.Hook.Deliveries.Item.Attempts;
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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.App.Hook.Deliveries.Item {
+namespace GitHub.App.Hook.Deliveries.Item
+{
///
/// Builds and executes requests for operations under \app\hook\deliveries\{delivery_id}
///
- public class WithDelivery_ItemRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class WithDelivery_ItemRequestBuilder : BaseRequestBuilder
{
/// The attempts property
- public AttemptsRequestBuilder Attempts
+ public global::GitHub.App.Hook.Deliveries.Item.Attempts.AttemptsRequestBuilder Attempts
{
- get => new AttemptsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.App.Hook.Deliveries.Item.Attempts.AttemptsRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -29,7 +32,7 @@ public WithDelivery_ItemRequestBuilder(Dictionary pathParameters
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -40,27 +43,27 @@ public WithDelivery_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAda
/// Returns a delivery for the webhook configured for a GitHub App.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
+ /// A
/// 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 422 status code
+ /// When receiving a 400 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", BasicError.CreateFromDiscriminatorValue},
- {"422", ValidationError.CreateFromDiscriminatorValue},
+ { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, HookDelivery.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.HookDelivery.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Returns a delivery for the webhook configured for a GitHub App.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.
@@ -84,11 +87,12 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public WithDelivery_ItemRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.App.Hook.Deliveries.Item.WithDelivery_ItemRequestBuilder WithUrl(string rawUrl)
{
- return new WithDelivery_ItemRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.App.Hook.Deliveries.Item.WithDelivery_ItemRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/App/Hook/HookRequestBuilder.cs b/src/GitHub/App/Hook/HookRequestBuilder.cs
index 71d7464d..60920561 100644
--- a/src/GitHub/App/Hook/HookRequestBuilder.cs
+++ b/src/GitHub/App/Hook/HookRequestBuilder.cs
@@ -1,30 +1,33 @@
//
+#pragma warning disable CS0618
using GitHub.App.Hook.Config;
using GitHub.App.Hook.Deliveries;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System;
-namespace GitHub.App.Hook {
+namespace GitHub.App.Hook
+{
///
/// Builds and executes requests for operations under \app\hook
///
- public class HookRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class HookRequestBuilder : BaseRequestBuilder
{
/// The config property
- public ConfigRequestBuilder Config
+ public global::GitHub.App.Hook.Config.ConfigRequestBuilder Config
{
- get => new ConfigRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.App.Hook.Config.ConfigRequestBuilder(PathParameters, RequestAdapter);
}
/// The deliveries property
- public DeliveriesRequestBuilder Deliveries
+ public global::GitHub.App.Hook.Deliveries.DeliveriesRequestBuilder Deliveries
{
- get => new DeliveriesRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.App.Hook.Deliveries.DeliveriesRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -32,7 +35,7 @@ public HookRequestBuilder(Dictionary pathParameters, IRequestAda
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -41,3 +44,4 @@ public HookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/App/InstallationRequests/InstallationRequestsRequestBuilder.cs b/src/GitHub/App/InstallationRequests/InstallationRequestsRequestBuilder.cs
index 690fff6c..25480c36 100644
--- a/src/GitHub/App/InstallationRequests/InstallationRequestsRequestBuilder.cs
+++ b/src/GitHub/App/InstallationRequests/InstallationRequestsRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.App.InstallationRequests {
+namespace GitHub.App.InstallationRequests
+{
///
/// Builds and executes requests for operations under \app\installation-requests
///
- public class InstallationRequestsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class InstallationRequestsRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public InstallationRequestsRequestBuilder(Dictionary pathParamet
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -34,26 +37,26 @@ public InstallationRequestsRequestBuilder(string rawUrl, IRequestAdapter request
/// Lists all the pending installation requests for the authenticated GitHub App.
/// API method documentation
///
- /// A List<IntegrationInstallationRequest>
+ /// A List<global::GitHub.Models.IntegrationInstallationRequest>
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 401 status code
+ /// When receiving a 401 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"401", BasicError.CreateFromDiscriminatorValue},
+ { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
};
- var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, IntegrationInstallationRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.IntegrationInstallationRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return collectionResult?.AsList();
}
///
/// Lists all the pending installation requests for the authenticated GitHub App.
@@ -62,11 +65,11 @@ public async Task> GetAsync(ActionConfiguration 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)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -77,16 +80,17 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public InstallationRequestsRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.App.InstallationRequests.InstallationRequestsRequestBuilder WithUrl(string rawUrl)
{
- return new InstallationRequestsRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.App.InstallationRequests.InstallationRequestsRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Lists all the pending installation requests for the authenticated GitHub App.
///
- public class InstallationRequestsRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class InstallationRequestsRequestBuilderGetQueryParameters
{
/// The page number of the results to fetch. 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("page")]
@@ -97,3 +101,4 @@ public class InstallationRequestsRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/App/Installations/InstallationsRequestBuilder.cs b/src/GitHub/App/Installations/InstallationsRequestBuilder.cs
index 9c533f44..f308c3bd 100644
--- a/src/GitHub/App/Installations/InstallationsRequestBuilder.cs
+++ b/src/GitHub/App/Installations/InstallationsRequestBuilder.cs
@@ -1,34 +1,37 @@
//
+#pragma warning disable CS0618
using GitHub.App.Installations.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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.App.Installations {
+namespace GitHub.App.Installations
+{
///
/// Builds and executes requests for operations under \app\installations
///
- public class InstallationsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class InstallationsRequestBuilder : BaseRequestBuilder
{
/// Gets an item from the GitHub.app.installations.item collection
/// The unique identifier of the installation.
- /// A
- public WithInstallation_ItemRequestBuilder this[int position]
+ /// A
+ public global::GitHub.App.Installations.Item.WithInstallation_ItemRequestBuilder this[int position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("installation_id", position);
- return new WithInstallation_ItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new global::GitHub.App.Installations.Item.WithInstallation_ItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -36,7 +39,7 @@ public InstallationsRequestBuilder(Dictionary pathParameters, IR
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -47,21 +50,21 @@ public InstallationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter
/// The permissions the installation has are included under the `permissions` key.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 List<GitHub.Models.Installation>
+ /// A List<global::GitHub.Models.Installation>
/// 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)
+ public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitHub.Models.Installation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Installation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return collectionResult?.AsList();
}
///
/// The permissions the installation has are included under the `permissions` key.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.
@@ -70,11 +73,11 @@ public InstallationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter
/// 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)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -85,16 +88,17 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public InstallationsRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.App.Installations.InstallationsRequestBuilder WithUrl(string rawUrl)
{
- return new InstallationsRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.App.Installations.InstallationsRequestBuilder(rawUrl, RequestAdapter);
}
///
/// The permissions the installation has are included under the `permissions` key.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.
///
- public class InstallationsRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class InstallationsRequestBuilderGetQueryParameters
{
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -117,3 +121,4 @@ public class InstallationsRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensPostRequestBody.cs b/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensPostRequestBody.cs
index d0f510cb..d95de5f6 100644
--- a/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensPostRequestBody.cs
+++ b/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensPostRequestBody.cs
@@ -1,13 +1,16 @@
//
+#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.Linq;
using System;
-namespace GitHub.App.Installations.Item.Access_tokens {
+namespace GitHub.App.Installations.Item.Access_tokens
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
- public class Access_tokensPostRequestBody : IAdditionalDataHolder, IParsable
+ public partial class Access_tokensPostRequestBody : 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.
@@ -15,10 +18,10 @@ public class Access_tokensPostRequestBody : IAdditionalDataHolder, IParsable
/// The permissions granted to the user access token.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public AppPermissions? Permissions { get; set; }
+ public global::GitHub.Models.AppPermissions? Permissions { get; set; }
#nullable restore
#else
- public AppPermissions Permissions { get; set; }
+ public global::GitHub.Models.AppPermissions Permissions { get; set; }
#endif
/// List of repository names that the token should have access to
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -37,7 +40,7 @@ public class Access_tokensPostRequestBody : IAdditionalDataHolder, IParsable
public List RepositoryIds { get; set; }
#endif
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public Access_tokensPostRequestBody()
{
@@ -46,12 +49,12 @@ public Access_tokensPostRequestBody()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static Access_tokensPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::GitHub.App.Installations.Item.Access_tokens.Access_tokensPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new Access_tokensPostRequestBody();
+ return new global::GitHub.App.Installations.Item.Access_tokens.Access_tokensPostRequestBody();
}
///
/// The deserialization information for the current model
@@ -61,9 +64,9 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"permissions", n => { Permissions = n.GetObjectValue(AppPermissions.CreateFromDiscriminatorValue); } },
- {"repositories", n => { Repositories = n.GetCollectionOfPrimitiveValues()?.ToList(); } },
- {"repository_ids", n => { RepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } },
+ { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.AppPermissions.CreateFromDiscriminatorValue); } },
+ { "repositories", n => { Repositories = n.GetCollectionOfPrimitiveValues()?.AsList(); } },
+ { "repository_ids", n => { RepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } },
};
}
///
@@ -73,10 +76,11 @@ public virtual IDictionary> GetFieldDeserializers()
public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
- writer.WriteObjectValue("permissions", Permissions);
+ writer.WriteObjectValue("permissions", Permissions);
writer.WriteCollectionOfPrimitiveValues("repositories", Repositories);
writer.WriteCollectionOfPrimitiveValues("repository_ids", RepositoryIds);
writer.WriteAdditionalData(AdditionalData);
}
}
}
+#pragma warning restore CS0618
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 75eda1ff..7e8944bb 100644
--- a/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensRequestBuilder.cs
+++ b/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.App.Installations.Item.Access_tokens {
+namespace GitHub.App.Installations.Item.Access_tokens
+{
///
/// Builds and executes requests for operations under \app\installations\{installation_id}\access_tokens
///
- public class Access_tokensRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class Access_tokensRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public Access_tokensRequestBuilder(Dictionary pathParameters, IR
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -34,33 +37,33 @@ 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.
/// API method documentation
///
- /// A
+ /// 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 401 status code
- /// When receiving a 403 status code
- /// When receiving a 404 status code
- /// When receiving a 422 status code
+ /// When receiving a 401 status code
+ /// When receiving a 403 status code
+ /// When receiving a 404 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PostAsync(Access_tokensPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(global::GitHub.App.Installations.Item.Access_tokens.Access_tokensPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(Access_tokensPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(global::GitHub.App.Installations.Item.Access_tokens.Access_tokensPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary>
{
- {"401", BasicError.CreateFromDiscriminatorValue},
- {"403", BasicError.CreateFromDiscriminatorValue},
- {"404", BasicError.CreateFromDiscriminatorValue},
- {"422", ValidationError.CreateFromDiscriminatorValue},
+ { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, InstallationToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ 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.
@@ -70,11 +73,11 @@ public async Task PostAsync(Access_tokensPostRequestBody 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(Access_tokensPostRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::GitHub.App.Installations.Item.Access_tokens.Access_tokensPostRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(Access_tokensPostRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::GitHub.App.Installations.Item.Access_tokens.Access_tokensPostRequestBody body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -87,11 +90,12 @@ public RequestInformation ToPostRequestInformation(Access_tokensPostRequestBody
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public Access_tokensRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.App.Installations.Item.Access_tokens.Access_tokensRequestBuilder WithUrl(string rawUrl)
{
- return new Access_tokensRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.App.Installations.Item.Access_tokens.Access_tokensRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/App/Installations/Item/Suspended/SuspendedRequestBuilder.cs b/src/GitHub/App/Installations/Item/Suspended/SuspendedRequestBuilder.cs
index 2b8d28ed..6e1995e6 100644
--- a/src/GitHub/App/Installations/Item/Suspended/SuspendedRequestBuilder.cs
+++ b/src/GitHub/App/Installations/Item/Suspended/SuspendedRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.App.Installations.Item.Suspended {
+namespace GitHub.App.Installations.Item.Suspended
+{
///
/// Builds and executes requests for operations under \app\installations\{installation_id}\suspended
///
- public class SuspendedRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class SuspendedRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public SuspendedRequestBuilder(Dictionary pathParameters, IReque
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -36,7 +39,7 @@ public SuspendedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) :
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 404 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
@@ -49,7 +52,7 @@ public async Task DeleteAsync(Action>
{
- {"404", BasicError.CreateFromDiscriminatorValue},
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
@@ -59,7 +62,7 @@ public async Task DeleteAsync(Action
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 404 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
@@ -72,7 +75,7 @@ public async Task PutAsync(Action>
var requestInfo = ToPutRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"404", BasicError.CreateFromDiscriminatorValue},
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
@@ -117,11 +120,12 @@ public RequestInformation ToPutRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public SuspendedRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.App.Installations.Item.Suspended.SuspendedRequestBuilder WithUrl(string rawUrl)
{
- return new SuspendedRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.App.Installations.Item.Suspended.SuspendedRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/App/Installations/Item/WithInstallation_ItemRequestBuilder.cs b/src/GitHub/App/Installations/Item/WithInstallation_ItemRequestBuilder.cs
index ec31556a..d78cfad0 100644
--- a/src/GitHub/App/Installations/Item/WithInstallation_ItemRequestBuilder.cs
+++ b/src/GitHub/App/Installations/Item/WithInstallation_ItemRequestBuilder.cs
@@ -1,33 +1,36 @@
//
+#pragma warning disable CS0618
using GitHub.App.Installations.Item.Access_tokens;
using GitHub.App.Installations.Item.Suspended;
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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.App.Installations.Item {
+namespace GitHub.App.Installations.Item
+{
///
/// Builds and executes requests for operations under \app\installations\{installation_id}
///
- public class WithInstallation_ItemRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class WithInstallation_ItemRequestBuilder : BaseRequestBuilder
{
/// The access_tokens property
- public Access_tokensRequestBuilder Access_tokens
+ public global::GitHub.App.Installations.Item.Access_tokens.Access_tokensRequestBuilder Access_tokens
{
- get => new Access_tokensRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.App.Installations.Item.Access_tokens.Access_tokensRequestBuilder(PathParameters, RequestAdapter);
}
/// The suspended property
- public SuspendedRequestBuilder Suspended
+ public global::GitHub.App.Installations.Item.Suspended.SuspendedRequestBuilder Suspended
{
- get => new SuspendedRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.App.Installations.Item.Suspended.SuspendedRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -35,7 +38,7 @@ public WithInstallation_ItemRequestBuilder(Dictionary pathParame
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -48,7 +51,7 @@ public WithInstallation_ItemRequestBuilder(string rawUrl, IRequestAdapter reques
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 404 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
@@ -61,7 +64,7 @@ public async Task DeleteAsync(Action>
{
- {"404", BasicError.CreateFromDiscriminatorValue},
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
@@ -69,25 +72,25 @@ public async Task DeleteAsync(Action
///
- /// A
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 404 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)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"404", BasicError.CreateFromDiscriminatorValue},
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.Installation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Installation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the "[Suspend an app installation](https://docs.github.com/enterprise-cloud@latest//rest/apps/apps#suspend-an-app-installation)" endpoint.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.
@@ -130,11 +133,12 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public WithInstallation_ItemRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.App.Installations.Item.WithInstallation_ItemRequestBuilder WithUrl(string rawUrl)
{
- return new WithInstallation_ItemRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.App.Installations.Item.WithInstallation_ItemRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/AppManifests/AppManifestsRequestBuilder.cs b/src/GitHub/AppManifests/AppManifestsRequestBuilder.cs
index 5b66d0f1..7186a23e 100644
--- a/src/GitHub/AppManifests/AppManifestsRequestBuilder.cs
+++ b/src/GitHub/AppManifests/AppManifestsRequestBuilder.cs
@@ -1,31 +1,34 @@
//
+#pragma warning disable CS0618
using GitHub.AppManifests.Item;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System;
-namespace GitHub.AppManifests {
+namespace GitHub.AppManifests
+{
///
/// Builds and executes requests for operations under \app-manifests
///
- public class AppManifestsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class AppManifestsRequestBuilder : BaseRequestBuilder
{
/// Gets an item from the GitHub.appManifests.item collection
/// Unique identifier of the item
- /// A
- public WithCodeItemRequestBuilder this[string position]
+ /// A
+ public global::GitHub.AppManifests.Item.WithCodeItemRequestBuilder this[string position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("code", position);
- return new WithCodeItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new global::GitHub.AppManifests.Item.WithCodeItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -33,7 +36,7 @@ public AppManifestsRequestBuilder(Dictionary pathParameters, IRe
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -42,3 +45,4 @@ public AppManifestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/AppManifests/Item/Conversions/ConversionsRequestBuilder.cs b/src/GitHub/AppManifests/Item/Conversions/ConversionsRequestBuilder.cs
index fbce9490..43093ec8 100644
--- a/src/GitHub/AppManifests/Item/Conversions/ConversionsRequestBuilder.cs
+++ b/src/GitHub/AppManifests/Item/Conversions/ConversionsRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.AppManifests.Item.Conversions {
+namespace GitHub.AppManifests.Item.Conversions
+{
///
/// Builds and executes requests for operations under \app-manifests\{code}\conversions
///
- public class ConversionsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class ConversionsRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public ConversionsRequestBuilder(Dictionary pathParameters, IReq
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -34,27 +37,27 @@ public ConversionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
/// Use this endpoint to complete the handshake necessary when implementing the [GitHub App Manifest flow](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/creating-github-apps-from-a-manifest/). When you create a GitHub App with the manifest flow, you receive a temporary `code` used to retrieve the GitHub App's `id`, `pem` (private key), and `webhook_secret`.
/// API method documentation
///
- /// A
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 404 status code
- /// When receiving a 422 status code
+ /// When receiving a 404 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToPostRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"404", BasicError.CreateFromDiscriminatorValue},
- {"422", ValidationErrorSimple.CreateFromDiscriminatorValue},
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, ConversionsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.AppManifests.Item.Conversions.Integration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Use this endpoint to complete the handshake necessary when implementing the [GitHub App Manifest flow](https://docs.github.com/enterprise-cloud@latest//apps/building-github-apps/creating-github-apps-from-a-manifest/). When you create a GitHub App with the manifest flow, you receive a temporary `code` used to retrieve the GitHub App's `id`, `pem` (private key), and `webhook_secret`.
@@ -78,11 +81,12 @@ public RequestInformation ToPostRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public ConversionsRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.AppManifests.Item.Conversions.ConversionsRequestBuilder WithUrl(string rawUrl)
{
- return new ConversionsRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.AppManifests.Item.Conversions.ConversionsRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/AppManifests/Item/Conversions/ConversionsPostResponse.cs b/src/GitHub/AppManifests/Item/Conversions/Integration.cs
similarity index 68%
rename from src/GitHub/AppManifests/Item/Conversions/ConversionsPostResponse.cs
rename to src/GitHub/AppManifests/Item/Conversions/Integration.cs
index 06fee7f3..6c29fec3 100644
--- a/src/GitHub/AppManifests/Item/Conversions/ConversionsPostResponse.cs
+++ b/src/GitHub/AppManifests/Item/Conversions/Integration.cs
@@ -1,24 +1,26 @@
//
-using GitHub.Models;
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace GitHub.AppManifests.Item.Conversions {
+namespace GitHub.AppManifests.Item.Conversions
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
- public class ConversionsPostResponse : Integration, IParsable
+ public partial class Integration : global::GitHub.Models.Integration, IParsable
#pragma warning restore CS1591
{
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static new ConversionsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static new global::GitHub.AppManifests.Item.Conversions.Integration CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new ConversionsPostResponse();
+ return new global::GitHub.AppManifests.Item.Conversions.Integration();
}
///
/// The deserialization information for the current model
@@ -41,3 +43,4 @@ public override void Serialize(ISerializationWriter writer)
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/AppManifests/Item/WithCodeItemRequestBuilder.cs b/src/GitHub/AppManifests/Item/WithCodeItemRequestBuilder.cs
index 24c5c517..4c625015 100644
--- a/src/GitHub/AppManifests/Item/WithCodeItemRequestBuilder.cs
+++ b/src/GitHub/AppManifests/Item/WithCodeItemRequestBuilder.cs
@@ -1,24 +1,27 @@
//
+#pragma warning disable CS0618
using GitHub.AppManifests.Item.Conversions;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System;
-namespace GitHub.AppManifests.Item {
+namespace GitHub.AppManifests.Item
+{
///
/// Builds and executes requests for operations under \app-manifests\{code}
///
- public class WithCodeItemRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class WithCodeItemRequestBuilder : BaseRequestBuilder
{
/// The conversions property
- public ConversionsRequestBuilder Conversions
+ public global::GitHub.AppManifests.Item.Conversions.ConversionsRequestBuilder Conversions
{
- get => new ConversionsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.AppManifests.Item.Conversions.ConversionsRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -26,7 +29,7 @@ public WithCodeItemRequestBuilder(Dictionary pathParameters, IRe
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -35,3 +38,4 @@ public WithCodeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Applications/ApplicationsRequestBuilder.cs b/src/GitHub/Applications/ApplicationsRequestBuilder.cs
index b5e628ef..402f1f81 100644
--- a/src/GitHub/Applications/ApplicationsRequestBuilder.cs
+++ b/src/GitHub/Applications/ApplicationsRequestBuilder.cs
@@ -1,31 +1,34 @@
//
+#pragma warning disable CS0618
using GitHub.Applications.Item;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System;
-namespace GitHub.Applications {
+namespace GitHub.Applications
+{
///
/// Builds and executes requests for operations under \applications
///
- public class ApplicationsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class ApplicationsRequestBuilder : BaseRequestBuilder
{
/// Gets an item from the GitHub.applications.item collection
/// The client ID of the GitHub app.
- /// A
- public WithClient_ItemRequestBuilder this[string position]
+ /// A
+ public global::GitHub.Applications.Item.WithClient_ItemRequestBuilder this[string position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("client_id", position);
- return new WithClient_ItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new global::GitHub.Applications.Item.WithClient_ItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -33,7 +36,7 @@ public ApplicationsRequestBuilder(Dictionary pathParameters, IRe
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -42,3 +45,4 @@ public ApplicationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Applications/Item/Grant/GrantDeleteRequestBody.cs b/src/GitHub/Applications/Item/Grant/GrantDeleteRequestBody.cs
index 703842d6..905d66ee 100644
--- a/src/GitHub/Applications/Item/Grant/GrantDeleteRequestBody.cs
+++ b/src/GitHub/Applications/Item/Grant/GrantDeleteRequestBody.cs
@@ -1,12 +1,15 @@
//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace GitHub.Applications.Item.Grant {
+namespace GitHub.Applications.Item.Grant
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
- public class GrantDeleteRequestBody : IAdditionalDataHolder, IParsable
+ public partial class GrantDeleteRequestBody : IAdditionalDataHolder, IParsable
#pragma warning restore CS1591
{
/// The OAuth access token used to authenticate to the GitHub API.
@@ -20,7 +23,7 @@ public class GrantDeleteRequestBody : 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; }
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public GrantDeleteRequestBody()
{
@@ -29,12 +32,12 @@ public GrantDeleteRequestBody()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static GrantDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::GitHub.Applications.Item.Grant.GrantDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new GrantDeleteRequestBody();
+ return new global::GitHub.Applications.Item.Grant.GrantDeleteRequestBody();
}
///
/// The deserialization information for the current model
@@ -44,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"access_token", n => { AccessToken = n.GetStringValue(); } },
+ { "access_token", n => { AccessToken = n.GetStringValue(); } },
};
}
///
@@ -59,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer)
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Applications/Item/Grant/GrantRequestBuilder.cs b/src/GitHub/Applications/Item/Grant/GrantRequestBuilder.cs
index 27a73969..669e9e3e 100644
--- a/src/GitHub/Applications/Item/Grant/GrantRequestBuilder.cs
+++ b/src/GitHub/Applications/Item/Grant/GrantRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Applications.Item.Grant {
+namespace GitHub.Applications.Item.Grant
+{
///
/// Builds and executes requests for operations under \applications\{client_id}\grant
///
- public class GrantRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class GrantRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public GrantRequestBuilder(Dictionary pathParameters, IRequestAd
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -37,21 +40,21 @@ public GrantRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
/// 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
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task DeleteAsync(GrantDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task DeleteAsync(global::GitHub.Applications.Item.Grant.GrantDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task DeleteAsync(GrantDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task DeleteAsync(global::GitHub.Applications.Item.Grant.GrantDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToDeleteRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary>
{
- {"422", ValidationError.CreateFromDiscriminatorValue},
+ { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
@@ -63,11 +66,11 @@ public async Task DeleteAsync(GrantDeleteRequestBody body, ActionConfiguration 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(GrantDeleteRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToDeleteRequestInformation(global::GitHub.Applications.Item.Grant.GrantDeleteRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToDeleteRequestInformation(GrantDeleteRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToDeleteRequestInformation(global::GitHub.Applications.Item.Grant.GrantDeleteRequestBody body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -80,11 +83,12 @@ public RequestInformation ToDeleteRequestInformation(GrantDeleteRequestBody body
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public GrantRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Applications.Item.Grant.GrantRequestBuilder WithUrl(string rawUrl)
{
- return new GrantRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Applications.Item.Grant.GrantRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Applications/Item/Token/Scoped/ScopedPostRequestBody.cs b/src/GitHub/Applications/Item/Token/Scoped/ScopedPostRequestBody.cs
index c49230ec..4905f0b2 100644
--- a/src/GitHub/Applications/Item/Token/Scoped/ScopedPostRequestBody.cs
+++ b/src/GitHub/Applications/Item/Token/Scoped/ScopedPostRequestBody.cs
@@ -1,13 +1,16 @@
//
+#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.Linq;
using System;
-namespace GitHub.Applications.Item.Token.Scoped {
+namespace GitHub.Applications.Item.Token.Scoped
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
- public class ScopedPostRequestBody : IAdditionalDataHolder, IParsable
+ public partial class ScopedPostRequestBody : IAdditionalDataHolder, IParsable
#pragma warning restore CS1591
{
/// The access token used to authenticate to the GitHub API.
@@ -23,10 +26,10 @@ public class ScopedPostRequestBody : IAdditionalDataHolder, IParsable
/// The permissions granted to the user access token.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public AppPermissions? Permissions { get; set; }
+ public global::GitHub.Models.AppPermissions? Permissions { get; set; }
#nullable restore
#else
- public AppPermissions Permissions { get; set; }
+ public global::GitHub.Models.AppPermissions Permissions { get; set; }
#endif
/// The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -55,7 +58,7 @@ public class ScopedPostRequestBody : IAdditionalDataHolder, IParsable
/// The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.
public int? TargetId { get; set; }
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public ScopedPostRequestBody()
{
@@ -64,12 +67,12 @@ public ScopedPostRequestBody()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static ScopedPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::GitHub.Applications.Item.Token.Scoped.ScopedPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new ScopedPostRequestBody();
+ return new global::GitHub.Applications.Item.Token.Scoped.ScopedPostRequestBody();
}
///
/// The deserialization information for the current model
@@ -79,12 +82,12 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"access_token", n => { AccessToken = n.GetStringValue(); } },
- {"permissions", n => { Permissions = n.GetObjectValue(AppPermissions.CreateFromDiscriminatorValue); } },
- {"repositories", n => { Repositories = n.GetCollectionOfPrimitiveValues()?.ToList(); } },
- {"repository_ids", n => { RepositoryIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } },
- {"target", n => { Target = n.GetStringValue(); } },
- {"target_id", n => { TargetId = n.GetIntValue(); } },
+ { "access_token", n => { AccessToken = n.GetStringValue(); } },
+ { "permissions", n => { Permissions = n.GetObjectValue(global::GitHub.Models.AppPermissions.CreateFromDiscriminatorValue); } },
+ { "repositories", n => { Repositories = n.GetCollectionOfPrimitiveValues()?.AsList(); } },
+ { "repository_ids", n => { RepositoryIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } },
+ { "target", n => { Target = n.GetStringValue(); } },
+ { "target_id", n => { TargetId = n.GetIntValue(); } },
};
}
///
@@ -95,7 +98,7 @@ public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteStringValue("access_token", AccessToken);
- writer.WriteObjectValue("permissions", Permissions);
+ writer.WriteObjectValue("permissions", Permissions);
writer.WriteCollectionOfPrimitiveValues("repositories", Repositories);
writer.WriteCollectionOfPrimitiveValues("repository_ids", RepositoryIds);
writer.WriteStringValue("target", Target);
@@ -104,3 +107,4 @@ public virtual void Serialize(ISerializationWriter writer)
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Applications/Item/Token/Scoped/ScopedRequestBuilder.cs b/src/GitHub/Applications/Item/Token/Scoped/ScopedRequestBuilder.cs
index 64eccfa4..7b11418e 100644
--- a/src/GitHub/Applications/Item/Token/Scoped/ScopedRequestBuilder.cs
+++ b/src/GitHub/Applications/Item/Token/Scoped/ScopedRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Applications.Item.Token.Scoped {
+namespace GitHub.Applications.Item.Token.Scoped
+{
///
/// Builds and executes requests for operations under \applications\{client_id}\token\scoped
///
- public class ScopedRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class ScopedRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public ScopedRequestBuilder(Dictionary pathParameters, IRequestA
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -34,33 +37,33 @@ public ScopedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
/// Use a non-scoped user access token to create a repository-scoped and/or permission-scoped user access token. You can specifywhich repositories the token can access and which permissions are granted to thetoken.Invalid tokens will return `404 NOT FOUND`.
/// API method documentation
///
- /// A
+ /// 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 401 status code
- /// When receiving a 403 status code
- /// When receiving a 404 status code
- /// When receiving a 422 status code
+ /// When receiving a 401 status code
+ /// When receiving a 403 status code
+ /// When receiving a 404 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PostAsync(ScopedPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(global::GitHub.Applications.Item.Token.Scoped.ScopedPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(ScopedPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(global::GitHub.Applications.Item.Token.Scoped.ScopedPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary>
{
- {"401", BasicError.CreateFromDiscriminatorValue},
- {"403", BasicError.CreateFromDiscriminatorValue},
- {"404", BasicError.CreateFromDiscriminatorValue},
- {"422", ValidationError.CreateFromDiscriminatorValue},
+ { "401", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, Authorization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Authorization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Use a non-scoped user access token to create a repository-scoped and/or permission-scoped user access token. You can specifywhich repositories the token can access and which permissions are granted to thetoken.Invalid tokens will return `404 NOT FOUND`.
@@ -70,11 +73,11 @@ public async Task PostAsync(ScopedPostRequestBody body, ActionConfiguration 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(ScopedPostRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::GitHub.Applications.Item.Token.Scoped.ScopedPostRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(ScopedPostRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::GitHub.Applications.Item.Token.Scoped.ScopedPostRequestBody body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -87,11 +90,12 @@ public RequestInformation ToPostRequestInformation(ScopedPostRequestBody body, A
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public ScopedRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Applications.Item.Token.Scoped.ScopedRequestBuilder WithUrl(string rawUrl)
{
- return new ScopedRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Applications.Item.Token.Scoped.ScopedRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Applications/Item/Token/TokenDeleteRequestBody.cs b/src/GitHub/Applications/Item/Token/TokenDeleteRequestBody.cs
index e5716bbf..b5d78181 100644
--- a/src/GitHub/Applications/Item/Token/TokenDeleteRequestBody.cs
+++ b/src/GitHub/Applications/Item/Token/TokenDeleteRequestBody.cs
@@ -1,12 +1,15 @@
//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace GitHub.Applications.Item.Token {
+namespace GitHub.Applications.Item.Token
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
- public class TokenDeleteRequestBody : IAdditionalDataHolder, IParsable
+ public partial class TokenDeleteRequestBody : IAdditionalDataHolder, IParsable
#pragma warning restore CS1591
{
/// The OAuth access token used to authenticate to the GitHub API.
@@ -20,7 +23,7 @@ public class TokenDeleteRequestBody : 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; }
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public TokenDeleteRequestBody()
{
@@ -29,12 +32,12 @@ public TokenDeleteRequestBody()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static TokenDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::GitHub.Applications.Item.Token.TokenDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new TokenDeleteRequestBody();
+ return new global::GitHub.Applications.Item.Token.TokenDeleteRequestBody();
}
///
/// The deserialization information for the current model
@@ -44,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"access_token", n => { AccessToken = n.GetStringValue(); } },
+ { "access_token", n => { AccessToken = n.GetStringValue(); } },
};
}
///
@@ -59,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer)
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Applications/Item/Token/TokenPatchRequestBody.cs b/src/GitHub/Applications/Item/Token/TokenPatchRequestBody.cs
index 2125e586..c20ca3a1 100644
--- a/src/GitHub/Applications/Item/Token/TokenPatchRequestBody.cs
+++ b/src/GitHub/Applications/Item/Token/TokenPatchRequestBody.cs
@@ -1,12 +1,15 @@
//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace GitHub.Applications.Item.Token {
+namespace GitHub.Applications.Item.Token
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
- public class TokenPatchRequestBody : IAdditionalDataHolder, IParsable
+ public partial class TokenPatchRequestBody : IAdditionalDataHolder, IParsable
#pragma warning restore CS1591
{
/// The access_token of the OAuth or GitHub application.
@@ -20,7 +23,7 @@ public class TokenPatchRequestBody : 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; }
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public TokenPatchRequestBody()
{
@@ -29,12 +32,12 @@ public TokenPatchRequestBody()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static TokenPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::GitHub.Applications.Item.Token.TokenPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new TokenPatchRequestBody();
+ return new global::GitHub.Applications.Item.Token.TokenPatchRequestBody();
}
///
/// The deserialization information for the current model
@@ -44,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"access_token", n => { AccessToken = n.GetStringValue(); } },
+ { "access_token", n => { AccessToken = n.GetStringValue(); } },
};
}
///
@@ -59,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer)
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Applications/Item/Token/TokenPostRequestBody.cs b/src/GitHub/Applications/Item/Token/TokenPostRequestBody.cs
index 1935c755..4e15a9d3 100644
--- a/src/GitHub/Applications/Item/Token/TokenPostRequestBody.cs
+++ b/src/GitHub/Applications/Item/Token/TokenPostRequestBody.cs
@@ -1,12 +1,15 @@
//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace GitHub.Applications.Item.Token {
+namespace GitHub.Applications.Item.Token
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
- public class TokenPostRequestBody : IAdditionalDataHolder, IParsable
+ public partial class TokenPostRequestBody : IAdditionalDataHolder, IParsable
#pragma warning restore CS1591
{
/// The access_token of the OAuth or GitHub application.
@@ -20,7 +23,7 @@ public class TokenPostRequestBody : 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; }
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public TokenPostRequestBody()
{
@@ -29,12 +32,12 @@ public TokenPostRequestBody()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static TokenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::GitHub.Applications.Item.Token.TokenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new TokenPostRequestBody();
+ return new global::GitHub.Applications.Item.Token.TokenPostRequestBody();
}
///
/// The deserialization information for the current model
@@ -44,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"access_token", n => { AccessToken = n.GetStringValue(); } },
+ { "access_token", n => { AccessToken = n.GetStringValue(); } },
};
}
///
@@ -59,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer)
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Applications/Item/Token/TokenRequestBuilder.cs b/src/GitHub/Applications/Item/Token/TokenRequestBuilder.cs
index ed6c258b..630edccd 100644
--- a/src/GitHub/Applications/Item/Token/TokenRequestBuilder.cs
+++ b/src/GitHub/Applications/Item/Token/TokenRequestBuilder.cs
@@ -1,27 +1,30 @@
//
+#pragma warning disable CS0618
using GitHub.Applications.Item.Token.Scoped;
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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Applications.Item.Token {
+namespace GitHub.Applications.Item.Token
+{
///
/// Builds and executes requests for operations under \applications\{client_id}\token
///
- public class TokenRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class TokenRequestBuilder : BaseRequestBuilder
{
/// The scoped property
- public ScopedRequestBuilder Scoped
+ public global::GitHub.Applications.Item.Token.Scoped.ScopedRequestBuilder Scoped
{
- get => new ScopedRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.Applications.Item.Token.Scoped.ScopedRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -29,7 +32,7 @@ public TokenRequestBuilder(Dictionary pathParameters, IRequestAd
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -43,21 +46,21 @@ public TokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
/// 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
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task DeleteAsync(TokenDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task DeleteAsync(global::GitHub.Applications.Item.Token.TokenDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task DeleteAsync(TokenDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task DeleteAsync(global::GitHub.Applications.Item.Token.TokenDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToDeleteRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary>
{
- {"422", ValidationError.CreateFromDiscriminatorValue},
+ { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
@@ -65,55 +68,55 @@ public async Task DeleteAsync(TokenDeleteRequestBody body, Action
///
- /// A
+ /// 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
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PatchAsync(TokenPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PatchAsync(global::GitHub.Applications.Item.Token.TokenPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PatchAsync(TokenPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PatchAsync(global::GitHub.Applications.Item.Token.TokenPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary>
{
- {"422", ValidationError.CreateFromDiscriminatorValue},
+ { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, Authorization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Authorization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// OAuth applications and GitHub applications with OAuth authorizations can use this API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. Invalid tokens will return `404 NOT FOUND`.
/// API method documentation
///
- /// A
+ /// 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 404 status code
- /// When receiving a 422 status code
+ /// When receiving a 404 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PostAsync(TokenPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(global::GitHub.Applications.Item.Token.TokenPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(TokenPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(global::GitHub.Applications.Item.Token.TokenPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary>
{
- {"404", BasicError.CreateFromDiscriminatorValue},
- {"422", ValidationError.CreateFromDiscriminatorValue},
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, Authorization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Authorization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// OAuth or GitHub application owners can revoke a single token for an OAuth application or a GitHub application with an OAuth authorization.
@@ -123,11 +126,11 @@ public async Task PostAsync(TokenPostRequestBody body, ActionConfiguration 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(TokenDeleteRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToDeleteRequestInformation(global::GitHub.Applications.Item.Token.TokenDeleteRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToDeleteRequestInformation(TokenDeleteRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToDeleteRequestInformation(global::GitHub.Applications.Item.Token.TokenDeleteRequestBody body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -145,11 +148,11 @@ public RequestInformation ToDeleteRequestInformation(TokenDeleteRequestBody 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(TokenPatchRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::GitHub.Applications.Item.Token.TokenPatchRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(TokenPatchRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::GitHub.Applications.Item.Token.TokenPatchRequestBody body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -167,11 +170,11 @@ public RequestInformation ToPatchRequestInformation(TokenPatchRequestBody 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(TokenPostRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::GitHub.Applications.Item.Token.TokenPostRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(TokenPostRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::GitHub.Applications.Item.Token.TokenPostRequestBody body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -184,11 +187,12 @@ public RequestInformation ToPostRequestInformation(TokenPostRequestBody body, Ac
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public TokenRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Applications.Item.Token.TokenRequestBuilder WithUrl(string rawUrl)
{
- return new TokenRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Applications.Item.Token.TokenRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Applications/Item/WithClient_ItemRequestBuilder.cs b/src/GitHub/Applications/Item/WithClient_ItemRequestBuilder.cs
index cdba0b3d..286a9a7f 100644
--- a/src/GitHub/Applications/Item/WithClient_ItemRequestBuilder.cs
+++ b/src/GitHub/Applications/Item/WithClient_ItemRequestBuilder.cs
@@ -1,30 +1,33 @@
//
+#pragma warning disable CS0618
using GitHub.Applications.Item.Grant;
using GitHub.Applications.Item.Token;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System;
-namespace GitHub.Applications.Item {
+namespace GitHub.Applications.Item
+{
///
/// Builds and executes requests for operations under \applications\{client_id}
///
- public class WithClient_ItemRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class WithClient_ItemRequestBuilder : BaseRequestBuilder
{
/// The grant property
- public GrantRequestBuilder Grant
+ public global::GitHub.Applications.Item.Grant.GrantRequestBuilder Grant
{
- get => new GrantRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.Applications.Item.Grant.GrantRequestBuilder(PathParameters, RequestAdapter);
}
/// The token property
- public TokenRequestBuilder Token
+ public global::GitHub.Applications.Item.Token.TokenRequestBuilder Token
{
- get => new TokenRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.Applications.Item.Token.TokenRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -32,7 +35,7 @@ public WithClient_ItemRequestBuilder(Dictionary pathParameters,
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -41,3 +44,4 @@ public WithClient_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Apps/AppsRequestBuilder.cs b/src/GitHub/Apps/AppsRequestBuilder.cs
index bf5c295c..6ffd430e 100644
--- a/src/GitHub/Apps/AppsRequestBuilder.cs
+++ b/src/GitHub/Apps/AppsRequestBuilder.cs
@@ -1,31 +1,34 @@
//
+#pragma warning disable CS0618
using GitHub.Apps.Item;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System;
-namespace GitHub.Apps {
+namespace GitHub.Apps
+{
///
/// Builds and executes requests for operations under \apps
///
- public class AppsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class AppsRequestBuilder : BaseRequestBuilder
{
/// Gets an item from the GitHub.apps.item collection
/// Unique identifier of the item
- /// A
- public WithApp_slugItemRequestBuilder this[string position]
+ /// A
+ public global::GitHub.Apps.Item.WithApp_slugItemRequestBuilder this[string position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("app_slug", position);
- return new WithApp_slugItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new global::GitHub.Apps.Item.WithApp_slugItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -33,7 +36,7 @@ public AppsRequestBuilder(Dictionary pathParameters, IRequestAda
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -42,3 +45,4 @@ public AppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Apps/Item/WithApp_slugItemRequestBuilder.cs b/src/GitHub/Apps/Item/WithApp_slugItemRequestBuilder.cs
index 2f80ad65..f15db36d 100644
--- a/src/GitHub/Apps/Item/WithApp_slugItemRequestBuilder.cs
+++ b/src/GitHub/Apps/Item/WithApp_slugItemRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Apps.Item {
+namespace GitHub.Apps.Item
+{
///
/// Builds and executes requests for operations under \apps\{app_slug}
///
- public class WithApp_slugItemRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class WithApp_slugItemRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public WithApp_slugItemRequestBuilder(Dictionary pathParameters,
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -34,27 +37,27 @@ public WithApp_slugItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap
/// > [!NOTE]> The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`).
/// API method documentation
///
- /// A
+ /// 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
+ /// 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)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"403", BasicError.CreateFromDiscriminatorValue},
- {"404", BasicError.CreateFromDiscriminatorValue},
+ { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, Integration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Integration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// > [!NOTE]> The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`).
@@ -78,11 +81,12 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public WithApp_slugItemRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Apps.Item.WithApp_slugItemRequestBuilder WithUrl(string rawUrl)
{
- return new WithApp_slugItemRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Apps.Item.WithApp_slugItemRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Assignments/AssignmentsRequestBuilder.cs b/src/GitHub/Assignments/AssignmentsRequestBuilder.cs
index 5c975614..47f6c312 100644
--- a/src/GitHub/Assignments/AssignmentsRequestBuilder.cs
+++ b/src/GitHub/Assignments/AssignmentsRequestBuilder.cs
@@ -1,31 +1,34 @@
//
+#pragma warning disable CS0618
using GitHub.Assignments.Item;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System;
-namespace GitHub.Assignments {
+namespace GitHub.Assignments
+{
///
/// Builds and executes requests for operations under \assignments
///
- public class AssignmentsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class AssignmentsRequestBuilder : BaseRequestBuilder
{
/// Gets an item from the GitHub.assignments.item collection
/// The unique identifier of the classroom assignment.
- /// A
- public WithAssignment_ItemRequestBuilder this[int position]
+ /// A
+ public global::GitHub.Assignments.Item.WithAssignment_ItemRequestBuilder this[int position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("assignment_id", position);
- return new WithAssignment_ItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new global::GitHub.Assignments.Item.WithAssignment_ItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -33,7 +36,7 @@ public AssignmentsRequestBuilder(Dictionary pathParameters, IReq
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -42,3 +45,4 @@ public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Assignments/Item/Accepted_assignments/Accepted_assignmentsRequestBuilder.cs b/src/GitHub/Assignments/Item/Accepted_assignments/Accepted_assignmentsRequestBuilder.cs
index 07c28b5f..82616e46 100644
--- a/src/GitHub/Assignments/Item/Accepted_assignments/Accepted_assignmentsRequestBuilder.cs
+++ b/src/GitHub/Assignments/Item/Accepted_assignments/Accepted_assignmentsRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Assignments.Item.Accepted_assignments {
+namespace GitHub.Assignments.Item.Accepted_assignments
+{
///
/// Builds and executes requests for operations under \assignments\{assignment_id}\accepted_assignments
///
- public class Accepted_assignmentsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class Accepted_assignmentsRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public Accepted_assignmentsRequestBuilder(Dictionary pathParamet
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -34,21 +37,21 @@ public Accepted_assignmentsRequestBuilder(string rawUrl, IRequestAdapter request
/// Lists any assignment repositories that have been created by students accepting a GitHub Classroom assignment. Accepted assignments will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.
/// API method documentation
///
- /// A List<ClassroomAcceptedAssignment>
+ /// A List<global::GitHub.Models.ClassroomAcceptedAssignment>
/// 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)
+ public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClassroomAcceptedAssignment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.ClassroomAcceptedAssignment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return collectionResult?.AsList();
}
///
/// Lists any assignment repositories that have been created by students accepting a GitHub Classroom assignment. Accepted assignments will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.
@@ -57,11 +60,11 @@ public async Task> GetAsync(ActionConfiguration 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)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -72,16 +75,17 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public Accepted_assignmentsRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Assignments.Item.Accepted_assignments.Accepted_assignmentsRequestBuilder WithUrl(string rawUrl)
{
- return new Accepted_assignmentsRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Assignments.Item.Accepted_assignments.Accepted_assignmentsRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Lists any assignment repositories that have been created by students accepting a GitHub Classroom assignment. Accepted assignments will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.
///
- public class Accepted_assignmentsRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class Accepted_assignmentsRequestBuilderGetQueryParameters
{
/// The page number of the results to fetch. 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("page")]
@@ -92,3 +96,4 @@ public class Accepted_assignmentsRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Assignments/Item/Grades/GradesRequestBuilder.cs b/src/GitHub/Assignments/Item/Grades/GradesRequestBuilder.cs
index 634379b9..0bc03b65 100644
--- a/src/GitHub/Assignments/Item/Grades/GradesRequestBuilder.cs
+++ b/src/GitHub/Assignments/Item/Grades/GradesRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Assignments.Item.Grades {
+namespace GitHub.Assignments.Item.Grades
+{
///
/// Builds and executes requests for operations under \assignments\{assignment_id}\grades
///
- public class GradesRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class GradesRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public GradesRequestBuilder(Dictionary pathParameters, IRequestA
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -34,26 +37,26 @@ public GradesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
/// Gets grades for a GitHub Classroom assignment. Grades will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.
/// API method documentation
///
- /// A List<ClassroomAssignmentGrade>
+ /// A List<global::GitHub.Models.ClassroomAssignmentGrade>
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 404 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)
+ public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"404", BasicError.CreateFromDiscriminatorValue},
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
};
- var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClassroomAssignmentGrade.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.ClassroomAssignmentGrade.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return collectionResult?.AsList();
}
///
/// Gets grades for a GitHub Classroom assignment. Grades will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.
@@ -77,11 +80,12 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public GradesRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Assignments.Item.Grades.GradesRequestBuilder WithUrl(string rawUrl)
{
- return new GradesRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Assignments.Item.Grades.GradesRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Assignments/Item/WithAssignment_ItemRequestBuilder.cs b/src/GitHub/Assignments/Item/WithAssignment_ItemRequestBuilder.cs
index 6bc2d706..5741bd77 100644
--- a/src/GitHub/Assignments/Item/WithAssignment_ItemRequestBuilder.cs
+++ b/src/GitHub/Assignments/Item/WithAssignment_ItemRequestBuilder.cs
@@ -1,33 +1,36 @@
//
+#pragma warning disable CS0618
using GitHub.Assignments.Item.Accepted_assignments;
using GitHub.Assignments.Item.Grades;
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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Assignments.Item {
+namespace GitHub.Assignments.Item
+{
///
/// Builds and executes requests for operations under \assignments\{assignment_id}
///
- public class WithAssignment_ItemRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class WithAssignment_ItemRequestBuilder : BaseRequestBuilder
{
/// The accepted_assignments property
- public Accepted_assignmentsRequestBuilder Accepted_assignments
+ public global::GitHub.Assignments.Item.Accepted_assignments.Accepted_assignmentsRequestBuilder Accepted_assignments
{
- get => new Accepted_assignmentsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.Assignments.Item.Accepted_assignments.Accepted_assignmentsRequestBuilder(PathParameters, RequestAdapter);
}
/// The grades property
- public GradesRequestBuilder Grades
+ public global::GitHub.Assignments.Item.Grades.GradesRequestBuilder Grades
{
- get => new GradesRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.Assignments.Item.Grades.GradesRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -35,7 +38,7 @@ public WithAssignment_ItemRequestBuilder(Dictionary pathParamete
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -46,25 +49,25 @@ public WithAssignment_ItemRequestBuilder(string rawUrl, IRequestAdapter requestA
/// Gets a GitHub Classroom assignment. Assignment will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.
/// API method documentation
///
- /// A
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 404 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)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"404", BasicError.CreateFromDiscriminatorValue},
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, ClassroomAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ClassroomAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Gets a GitHub Classroom assignment. Assignment will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.
@@ -88,11 +91,12 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public WithAssignment_ItemRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Assignments.Item.WithAssignment_ItemRequestBuilder WithUrl(string rawUrl)
{
- return new WithAssignment_ItemRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Assignments.Item.WithAssignment_ItemRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Classrooms/ClassroomsRequestBuilder.cs b/src/GitHub/Classrooms/ClassroomsRequestBuilder.cs
index 17d9e512..742668b0 100644
--- a/src/GitHub/Classrooms/ClassroomsRequestBuilder.cs
+++ b/src/GitHub/Classrooms/ClassroomsRequestBuilder.cs
@@ -1,34 +1,37 @@
//
+#pragma warning disable CS0618
using GitHub.Classrooms.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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Classrooms {
+namespace GitHub.Classrooms
+{
///
/// Builds and executes requests for operations under \classrooms
///
- public class ClassroomsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class ClassroomsRequestBuilder : BaseRequestBuilder
{
/// Gets an item from the GitHub.classrooms.item collection
/// The unique identifier of the classroom.
- /// A
- public WithClassroom_ItemRequestBuilder this[int position]
+ /// A
+ public global::GitHub.Classrooms.Item.WithClassroom_ItemRequestBuilder this[int position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("classroom_id", position);
- return new WithClassroom_ItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new global::GitHub.Classrooms.Item.WithClassroom_ItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -36,7 +39,7 @@ public ClassroomsRequestBuilder(Dictionary pathParameters, IRequ
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -47,21 +50,21 @@ public ClassroomsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) :
/// Lists GitHub Classroom classrooms for the current user. Classrooms will only be returned if the current user is an administrator of one or more GitHub Classrooms.
/// API method documentation
///
- /// A List<SimpleClassroom>
+ /// A List<global::GitHub.Models.SimpleClassroom>
/// 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)
+ public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, SimpleClassroom.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.SimpleClassroom.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return collectionResult?.AsList();
}
///
/// Lists GitHub Classroom classrooms for the current user. Classrooms will only be returned if the current user is an administrator of one or more GitHub Classrooms.
@@ -70,11 +73,11 @@ public async Task> GetAsync(ActionConfiguration 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)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -85,16 +88,17 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public ClassroomsRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Classrooms.ClassroomsRequestBuilder WithUrl(string rawUrl)
{
- return new ClassroomsRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Classrooms.ClassroomsRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Lists GitHub Classroom classrooms for the current user. Classrooms will only be returned if the current user is an administrator of one or more GitHub Classrooms.
///
- public class ClassroomsRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class ClassroomsRequestBuilderGetQueryParameters
{
/// The page number of the results to fetch. 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("page")]
@@ -105,3 +109,4 @@ public class ClassroomsRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Classrooms/Item/Assignments/AssignmentsRequestBuilder.cs b/src/GitHub/Classrooms/Item/Assignments/AssignmentsRequestBuilder.cs
index a4ef9e4e..e6494014 100644
--- a/src/GitHub/Classrooms/Item/Assignments/AssignmentsRequestBuilder.cs
+++ b/src/GitHub/Classrooms/Item/Assignments/AssignmentsRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Classrooms.Item.Assignments {
+namespace GitHub.Classrooms.Item.Assignments
+{
///
/// Builds and executes requests for operations under \classrooms\{classroom_id}\assignments
///
- public class AssignmentsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class AssignmentsRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public AssignmentsRequestBuilder(Dictionary pathParameters, IReq
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -34,21 +37,21 @@ public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
/// Lists GitHub Classroom assignments for a classroom. Assignments will only be returned if the current user is an administrator of the GitHub Classroom.
/// API method documentation
///
- /// A List<SimpleClassroomAssignment>
+ /// A List<global::GitHub.Models.SimpleClassroomAssignment>
/// 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)
+ public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, SimpleClassroomAssignment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.SimpleClassroomAssignment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return collectionResult?.AsList();
}
///
/// Lists GitHub Classroom assignments for a classroom. Assignments will only be returned if the current user is an administrator of the GitHub Classroom.
@@ -57,11 +60,11 @@ public async Task> GetAsync(ActionConfiguration 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)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -72,16 +75,17 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public AssignmentsRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Classrooms.Item.Assignments.AssignmentsRequestBuilder WithUrl(string rawUrl)
{
- return new AssignmentsRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Classrooms.Item.Assignments.AssignmentsRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Lists GitHub Classroom assignments for a classroom. Assignments will only be returned if the current user is an administrator of the GitHub Classroom.
///
- public class AssignmentsRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class AssignmentsRequestBuilderGetQueryParameters
{
/// The page number of the results to fetch. 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("page")]
@@ -92,3 +96,4 @@ public class AssignmentsRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Classrooms/Item/WithClassroom_ItemRequestBuilder.cs b/src/GitHub/Classrooms/Item/WithClassroom_ItemRequestBuilder.cs
index 04840242..1ef1c956 100644
--- a/src/GitHub/Classrooms/Item/WithClassroom_ItemRequestBuilder.cs
+++ b/src/GitHub/Classrooms/Item/WithClassroom_ItemRequestBuilder.cs
@@ -1,27 +1,30 @@
//
+#pragma warning disable CS0618
using GitHub.Classrooms.Item.Assignments;
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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Classrooms.Item {
+namespace GitHub.Classrooms.Item
+{
///
/// Builds and executes requests for operations under \classrooms\{classroom_id}
///
- public class WithClassroom_ItemRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class WithClassroom_ItemRequestBuilder : BaseRequestBuilder
{
/// The assignments property
- public AssignmentsRequestBuilder Assignments
+ public global::GitHub.Classrooms.Item.Assignments.AssignmentsRequestBuilder Assignments
{
- get => new AssignmentsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.Classrooms.Item.Assignments.AssignmentsRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -29,7 +32,7 @@ public WithClassroom_ItemRequestBuilder(Dictionary pathParameter
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -40,25 +43,25 @@ public WithClassroom_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAd
/// Gets a GitHub Classroom classroom for the current user. Classroom will only be returned if the current user is an administrator of the GitHub Classroom.
/// API method documentation
///
- /// A
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 404 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)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"404", BasicError.CreateFromDiscriminatorValue},
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, Classroom.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Classroom.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Gets a GitHub Classroom classroom for the current user. Classroom will only be returned if the current user is an administrator of the GitHub Classroom.
@@ -82,11 +85,12 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public WithClassroom_ItemRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Classrooms.Item.WithClassroom_ItemRequestBuilder WithUrl(string rawUrl)
{
- return new WithClassroom_ItemRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Classrooms.Item.WithClassroom_ItemRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Codes_of_conduct/Codes_of_conductRequestBuilder.cs b/src/GitHub/Codes_of_conduct/Codes_of_conductRequestBuilder.cs
index 7a6b42a0..17fc1b29 100644
--- a/src/GitHub/Codes_of_conduct/Codes_of_conductRequestBuilder.cs
+++ b/src/GitHub/Codes_of_conduct/Codes_of_conductRequestBuilder.cs
@@ -1,34 +1,37 @@
//
+#pragma warning disable CS0618
using GitHub.Codes_of_conduct.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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Codes_of_conduct {
+namespace GitHub.Codes_of_conduct
+{
///
/// Builds and executes requests for operations under \codes_of_conduct
///
- public class Codes_of_conductRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class Codes_of_conductRequestBuilder : BaseRequestBuilder
{
/// Gets an item from the GitHub.codes_of_conduct.item collection
/// Unique identifier of the item
- /// A
- public WithKeyItemRequestBuilder this[string position]
+ /// A
+ public global::GitHub.Codes_of_conduct.Item.WithKeyItemRequestBuilder this[string position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("key", position);
- return new WithKeyItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new global::GitHub.Codes_of_conduct.Item.WithKeyItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -36,7 +39,7 @@ public Codes_of_conductRequestBuilder(Dictionary pathParameters,
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -47,21 +50,21 @@ public Codes_of_conductRequestBuilder(string rawUrl, IRequestAdapter requestAdap
/// Returns array of all GitHub's codes of conduct.
/// API method documentation
///
- /// A List<CodeOfConduct>
+ /// A List<global::GitHub.Models.CodeOfConduct>
/// 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)
+ public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CodeOfConduct.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.CodeOfConduct.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return collectionResult?.AsList();
}
///
/// Returns array of all GitHub's codes of conduct.
@@ -85,11 +88,12 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public Codes_of_conductRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Codes_of_conduct.Codes_of_conductRequestBuilder WithUrl(string rawUrl)
{
- return new Codes_of_conductRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Codes_of_conduct.Codes_of_conductRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Codes_of_conduct/Item/WithKeyItemRequestBuilder.cs b/src/GitHub/Codes_of_conduct/Item/WithKeyItemRequestBuilder.cs
index 2334258c..ea8291c9 100644
--- a/src/GitHub/Codes_of_conduct/Item/WithKeyItemRequestBuilder.cs
+++ b/src/GitHub/Codes_of_conduct/Item/WithKeyItemRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Codes_of_conduct.Item {
+namespace GitHub.Codes_of_conduct.Item
+{
///
/// Builds and executes requests for operations under \codes_of_conduct\{key}
///
- public class WithKeyItemRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class WithKeyItemRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public WithKeyItemRequestBuilder(Dictionary pathParameters, IReq
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -34,25 +37,25 @@ public WithKeyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
/// Returns information about the specified GitHub code of conduct.
/// API method documentation
///
- /// A
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 404 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)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"404", BasicError.CreateFromDiscriminatorValue},
+ { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, CodeOfConduct.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CodeOfConduct.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Returns information about the specified GitHub code of conduct.
@@ -76,11 +79,12 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public WithKeyItemRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Codes_of_conduct.Item.WithKeyItemRequestBuilder WithUrl(string rawUrl)
{
- return new WithKeyItemRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Codes_of_conduct.Item.WithKeyItemRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Emojis/EmojisGetResponse.cs b/src/GitHub/Emojis/EmojisGetResponse.cs
index c492b3ad..20e23214 100644
--- a/src/GitHub/Emojis/EmojisGetResponse.cs
+++ b/src/GitHub/Emojis/EmojisGetResponse.cs
@@ -1,18 +1,21 @@
//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace GitHub.Emojis {
+namespace GitHub.Emojis
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
- public class EmojisGetResponse : IAdditionalDataHolder, IParsable
+ public partial class EmojisGetResponse : 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.
+ /// Instantiates a new and sets the default values.
///
public EmojisGetResponse()
{
@@ -21,12 +24,12 @@ public EmojisGetResponse()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static EmojisGetResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::GitHub.Emojis.EmojisGetResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new EmojisGetResponse();
+ return new global::GitHub.Emojis.EmojisGetResponse();
}
///
/// The deserialization information for the current model
@@ -49,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer)
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Emojis/EmojisRequestBuilder.cs b/src/GitHub/Emojis/EmojisRequestBuilder.cs
index 6b3161f5..701efbd0 100644
--- a/src/GitHub/Emojis/EmojisRequestBuilder.cs
+++ b/src/GitHub/Emojis/EmojisRequestBuilder.cs
@@ -1,20 +1,23 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Emojis {
+namespace GitHub.Emojis
+{
///
/// Builds and executes requests for operations under \emojis
///
- public class EmojisRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class EmojisRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -22,7 +25,7 @@ public EmojisRequestBuilder(Dictionary pathParameters, IRequestA
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -33,20 +36,20 @@ public EmojisRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
/// Lists all the emojis available to use on GitHub Enterprise Cloud.
/// API method documentation
///
- /// A
+ /// 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)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- return await RequestAdapter.SendAsync(requestInfo, EmojisGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Emojis.EmojisGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
}
///
/// Lists all the emojis available to use on GitHub Enterprise Cloud.
@@ -70,11 +73,12 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public EmojisRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Emojis.EmojisRequestBuilder WithUrl(string rawUrl)
{
- return new EmojisRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Emojis.EmojisRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/EnterpriseInstallation/EnterpriseInstallationRequestBuilder.cs b/src/GitHub/EnterpriseInstallation/EnterpriseInstallationRequestBuilder.cs
index b40ea9f3..b03336f5 100644
--- a/src/GitHub/EnterpriseInstallation/EnterpriseInstallationRequestBuilder.cs
+++ b/src/GitHub/EnterpriseInstallation/EnterpriseInstallationRequestBuilder.cs
@@ -1,31 +1,34 @@
//
+#pragma warning disable CS0618
using GitHub.EnterpriseInstallation.Item;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System;
-namespace GitHub.EnterpriseInstallation {
+namespace GitHub.EnterpriseInstallation
+{
///
/// Builds and executes requests for operations under \enterprise-installation
///
- public class EnterpriseInstallationRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class EnterpriseInstallationRequestBuilder : BaseRequestBuilder
{
/// Gets an item from the GitHub.enterpriseInstallation.item collection
/// The slug version of the enterprise name or the login of an organization.
- /// A
- public WithEnterprise_or_orgItemRequestBuilder this[string position]
+ /// A
+ public global::GitHub.EnterpriseInstallation.Item.WithEnterprise_or_orgItemRequestBuilder this[string position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("enterprise_or_org", position);
- return new WithEnterprise_or_orgItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new global::GitHub.EnterpriseInstallation.Item.WithEnterprise_or_orgItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -33,7 +36,7 @@ public EnterpriseInstallationRequestBuilder(Dictionary pathParam
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -42,3 +45,4 @@ public EnterpriseInstallationRequestBuilder(string rawUrl, IRequestAdapter reque
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/EnterpriseInstallation/Item/ServerStatistics/ServerStatisticsRequestBuilder.cs b/src/GitHub/EnterpriseInstallation/Item/ServerStatistics/ServerStatisticsRequestBuilder.cs
index 87f87b99..e0b6a471 100644
--- a/src/GitHub/EnterpriseInstallation/Item/ServerStatistics/ServerStatisticsRequestBuilder.cs
+++ b/src/GitHub/EnterpriseInstallation/Item/ServerStatistics/ServerStatisticsRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.EnterpriseInstallation.Item.ServerStatistics {
+namespace GitHub.EnterpriseInstallation.Item.ServerStatistics
+{
///
/// Builds and executes requests for operations under \enterprise-installation\{enterprise_or_org}\server-statistics
///
- public class ServerStatisticsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class ServerStatisticsRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public ServerStatisticsRequestBuilder(Dictionary pathParameters,
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -34,21 +37,21 @@ public ServerStatisticsRequestBuilder(string rawUrl, IRequestAdapter requestAdap
/// Returns aggregate usage metrics for your GitHub Enterprise Server 3.5+ instance for a specified time period up to 365 days.To use this endpoint, your GitHub Enterprise Server instance must be connected to GitHub Enterprise Cloud using GitHub Connect. You must enable Server Statistics, and for the API request provide your enterprise account name or organization name connected to the GitHub Enterprise Server. For more information, see "[Enabling Server Statistics for your enterprise](/admin/configuration/configuring-github-connect/enabling-server-statistics-for-your-enterprise)" in the GitHub Enterprise Server documentation.OAuth app tokens and personal access tokens (classic) need: - the `read:enterprise` scope if you connected your GitHub Enterprise Server to an enterprise account and enabled Server Statistics - the `read:org` scope if you connected your GitHub Enterprise Server to an organization account and enabled Server Statistics
/// API method documentation
///
- /// A List<GitHub.Models.ServerStatistics>
+ /// A List<global::GitHub.Models.ServerStatistics>
/// 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)
+ public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitHub.Models.ServerStatistics.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.ServerStatistics.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return collectionResult?.AsList();
}
///
/// Returns aggregate usage metrics for your GitHub Enterprise Server 3.5+ instance for a specified time period up to 365 days.To use this endpoint, your GitHub Enterprise Server instance must be connected to GitHub Enterprise Cloud using GitHub Connect. You must enable Server Statistics, and for the API request provide your enterprise account name or organization name connected to the GitHub Enterprise Server. For more information, see "[Enabling Server Statistics for your enterprise](/admin/configuration/configuring-github-connect/enabling-server-statistics-for-your-enterprise)" in the GitHub Enterprise Server documentation.OAuth app tokens and personal access tokens (classic) need: - the `read:enterprise` scope if you connected your GitHub Enterprise Server to an enterprise account and enabled Server Statistics - the `read:org` scope if you connected your GitHub Enterprise Server to an organization account and enabled Server Statistics
@@ -57,11 +60,11 @@ public ServerStatisticsRequestBuilder(string rawUrl, IRequestAdapter requestAdap
/// 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)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -72,16 +75,17 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public ServerStatisticsRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.EnterpriseInstallation.Item.ServerStatistics.ServerStatisticsRequestBuilder WithUrl(string rawUrl)
{
- return new ServerStatisticsRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.EnterpriseInstallation.Item.ServerStatistics.ServerStatisticsRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Returns aggregate usage metrics for your GitHub Enterprise Server 3.5+ instance for a specified time period up to 365 days.To use this endpoint, your GitHub Enterprise Server instance must be connected to GitHub Enterprise Cloud using GitHub Connect. You must enable Server Statistics, and for the API request provide your enterprise account name or organization name connected to the GitHub Enterprise Server. For more information, see "[Enabling Server Statistics for your enterprise](/admin/configuration/configuring-github-connect/enabling-server-statistics-for-your-enterprise)" in the GitHub Enterprise Server documentation.OAuth app tokens and personal access tokens (classic) need: - the `read:enterprise` scope if you connected your GitHub Enterprise Server to an enterprise account and enabled Server Statistics - the `read:org` scope if you connected your GitHub Enterprise Server to an organization account and enabled Server Statistics
///
- public class ServerStatisticsRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class ServerStatisticsRequestBuilderGetQueryParameters
{
/// 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 events before this cursor.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -106,3 +110,4 @@ public class ServerStatisticsRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/EnterpriseInstallation/Item/WithEnterprise_or_orgItemRequestBuilder.cs b/src/GitHub/EnterpriseInstallation/Item/WithEnterprise_or_orgItemRequestBuilder.cs
index 1d82be99..6851b1b5 100644
--- a/src/GitHub/EnterpriseInstallation/Item/WithEnterprise_or_orgItemRequestBuilder.cs
+++ b/src/GitHub/EnterpriseInstallation/Item/WithEnterprise_or_orgItemRequestBuilder.cs
@@ -1,24 +1,27 @@
//
+#pragma warning disable CS0618
using GitHub.EnterpriseInstallation.Item.ServerStatistics;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System;
-namespace GitHub.EnterpriseInstallation.Item {
+namespace GitHub.EnterpriseInstallation.Item
+{
///
/// Builds and executes requests for operations under \enterprise-installation\{enterprise_or_org}
///
- public class WithEnterprise_or_orgItemRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class WithEnterprise_or_orgItemRequestBuilder : BaseRequestBuilder
{
/// The serverStatistics property
- public ServerStatisticsRequestBuilder ServerStatistics
+ public global::GitHub.EnterpriseInstallation.Item.ServerStatistics.ServerStatisticsRequestBuilder ServerStatistics
{
- get => new ServerStatisticsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.EnterpriseInstallation.Item.ServerStatistics.ServerStatisticsRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -26,7 +29,7 @@ public WithEnterprise_or_orgItemRequestBuilder(Dictionary pathPa
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -35,3 +38,4 @@ public WithEnterprise_or_orgItemRequestBuilder(string rawUrl, IRequestAdapter re
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/EnterprisesRequestBuilder.cs b/src/GitHub/Enterprises/EnterprisesRequestBuilder.cs
index 2d30afcd..c8654ecb 100644
--- a/src/GitHub/Enterprises/EnterprisesRequestBuilder.cs
+++ b/src/GitHub/Enterprises/EnterprisesRequestBuilder.cs
@@ -1,31 +1,34 @@
//
+#pragma warning disable CS0618
using GitHub.Enterprises.Item;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System;
-namespace GitHub.Enterprises {
+namespace GitHub.Enterprises
+{
///
/// Builds and executes requests for operations under \enterprises
///
- public class EnterprisesRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class EnterprisesRequestBuilder : BaseRequestBuilder
{
/// Gets an item from the GitHub.enterprises.item collection
/// The slug version of the enterprise name. You can also substitute this value with the enterprise id.
- /// A
- public WithEnterpriseItemRequestBuilder this[string position]
+ /// A
+ public global::GitHub.Enterprises.Item.WithEnterpriseItemRequestBuilder this[string position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("enterprise", position);
- return new WithEnterpriseItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new global::GitHub.Enterprises.Item.WithEnterpriseItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -33,7 +36,7 @@ public EnterprisesRequestBuilder(Dictionary pathParameters, IReq
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -42,3 +45,4 @@ public EnterprisesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/ActionsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/ActionsRequestBuilder.cs
index 3b3c672b..1f2cebc1 100644
--- a/src/GitHub/Enterprises/Item/Actions/ActionsRequestBuilder.cs
+++ b/src/GitHub/Enterprises/Item/Actions/ActionsRequestBuilder.cs
@@ -1,48 +1,51 @@
//
+#pragma warning disable CS0618
using GitHub.Enterprises.Item.Actions.Cache;
using GitHub.Enterprises.Item.Actions.Oidc;
using GitHub.Enterprises.Item.Actions.Permissions;
using GitHub.Enterprises.Item.Actions.RunnerGroups;
using GitHub.Enterprises.Item.Actions.Runners;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System;
-namespace GitHub.Enterprises.Item.Actions {
+namespace GitHub.Enterprises.Item.Actions
+{
///
/// Builds and executes requests for operations under \enterprises\{enterprise}\actions
///
- public class ActionsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class ActionsRequestBuilder : BaseRequestBuilder
{
/// The cache property
- public CacheRequestBuilder Cache
+ public global::GitHub.Enterprises.Item.Actions.Cache.CacheRequestBuilder Cache
{
- get => new CacheRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.Enterprises.Item.Actions.Cache.CacheRequestBuilder(PathParameters, RequestAdapter);
}
/// The oidc property
- public OidcRequestBuilder Oidc
+ public global::GitHub.Enterprises.Item.Actions.Oidc.OidcRequestBuilder Oidc
{
- get => new OidcRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.Enterprises.Item.Actions.Oidc.OidcRequestBuilder(PathParameters, RequestAdapter);
}
/// The permissions property
- public PermissionsRequestBuilder Permissions
+ public global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsRequestBuilder Permissions
{
- get => new PermissionsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter);
}
/// The runnerGroups property
- public RunnerGroupsRequestBuilder RunnerGroups
+ public global::GitHub.Enterprises.Item.Actions.RunnerGroups.RunnerGroupsRequestBuilder RunnerGroups
{
- get => new RunnerGroupsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.Enterprises.Item.Actions.RunnerGroups.RunnerGroupsRequestBuilder(PathParameters, RequestAdapter);
}
/// The runners property
- public RunnersRequestBuilder Runners
+ public global::GitHub.Enterprises.Item.Actions.Runners.RunnersRequestBuilder Runners
{
- get => new RunnersRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.Enterprises.Item.Actions.Runners.RunnersRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -50,7 +53,7 @@ public ActionsRequestBuilder(Dictionary pathParameters, IRequest
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -59,3 +62,4 @@ public ActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/Cache/CacheRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Cache/CacheRequestBuilder.cs
index 4c441837..1ef8d961 100644
--- a/src/GitHub/Enterprises/Item/Actions/Cache/CacheRequestBuilder.cs
+++ b/src/GitHub/Enterprises/Item/Actions/Cache/CacheRequestBuilder.cs
@@ -1,24 +1,27 @@
//
+#pragma warning disable CS0618
using GitHub.Enterprises.Item.Actions.Cache.Usage;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System;
-namespace GitHub.Enterprises.Item.Actions.Cache {
+namespace GitHub.Enterprises.Item.Actions.Cache
+{
///
/// Builds and executes requests for operations under \enterprises\{enterprise}\actions\cache
///
- public class CacheRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class CacheRequestBuilder : BaseRequestBuilder
{
/// The usage property
- public UsageRequestBuilder Usage
+ public global::GitHub.Enterprises.Item.Actions.Cache.Usage.UsageRequestBuilder Usage
{
- get => new UsageRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.Enterprises.Item.Actions.Cache.Usage.UsageRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -26,7 +29,7 @@ public CacheRequestBuilder(Dictionary pathParameters, IRequestAd
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -35,3 +38,4 @@ public CacheRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/Cache/Usage/UsageRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Cache/Usage/UsageRequestBuilder.cs
index b99f3aba..a8fec3be 100644
--- a/src/GitHub/Enterprises/Item/Actions/Cache/Usage/UsageRequestBuilder.cs
+++ b/src/GitHub/Enterprises/Item/Actions/Cache/Usage/UsageRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Enterprises.Item.Actions.Cache.Usage {
+namespace GitHub.Enterprises.Item.Actions.Cache.Usage
+{
///
/// Builds and executes requests for operations under \enterprises\{enterprise}\actions\cache\usage
///
- public class UsageRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class UsageRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public UsageRequestBuilder(Dictionary pathParameters, IRequestAd
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -34,20 +37,20 @@ public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
/// Gets the total GitHub Actions cache usage for an enterprise.The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.OAuth tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
/// API method documentation
///
- /// A
+ /// 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)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- return await RequestAdapter.SendAsync(requestInfo, ActionsCacheUsageOrgEnterprise.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsCacheUsageOrgEnterprise.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
}
///
/// Gets the total GitHub Actions cache usage for an enterprise.The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.OAuth tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
@@ -71,11 +74,12 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public UsageRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Enterprises.Item.Actions.Cache.Usage.UsageRequestBuilder WithUrl(string rawUrl)
{
- return new UsageRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Enterprises.Item.Actions.Cache.Usage.UsageRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/Oidc/Customization/CustomizationRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Oidc/Customization/CustomizationRequestBuilder.cs
index 4c1842c3..b662f719 100644
--- a/src/GitHub/Enterprises/Item/Actions/Oidc/Customization/CustomizationRequestBuilder.cs
+++ b/src/GitHub/Enterprises/Item/Actions/Oidc/Customization/CustomizationRequestBuilder.cs
@@ -1,24 +1,27 @@
//
+#pragma warning disable CS0618
using GitHub.Enterprises.Item.Actions.Oidc.Customization.Issuer;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System;
-namespace GitHub.Enterprises.Item.Actions.Oidc.Customization {
+namespace GitHub.Enterprises.Item.Actions.Oidc.Customization
+{
///
/// Builds and executes requests for operations under \enterprises\{enterprise}\actions\oidc\customization
///
- public class CustomizationRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class CustomizationRequestBuilder : BaseRequestBuilder
{
/// The issuer property
- public IssuerRequestBuilder Issuer
+ public global::GitHub.Enterprises.Item.Actions.Oidc.Customization.Issuer.IssuerRequestBuilder Issuer
{
- get => new IssuerRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.Enterprises.Item.Actions.Oidc.Customization.Issuer.IssuerRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -26,7 +29,7 @@ public CustomizationRequestBuilder(Dictionary pathParameters, IR
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -35,3 +38,4 @@ public CustomizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/Oidc/Customization/Issuer/IssuerRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Oidc/Customization/Issuer/IssuerRequestBuilder.cs
index 55dd67ac..52ef54f4 100644
--- a/src/GitHub/Enterprises/Item/Actions/Oidc/Customization/Issuer/IssuerRequestBuilder.cs
+++ b/src/GitHub/Enterprises/Item/Actions/Oidc/Customization/Issuer/IssuerRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Enterprises.Item.Actions.Oidc.Customization.Issuer {
+namespace GitHub.Enterprises.Item.Actions.Oidc.Customization.Issuer
+{
///
/// Builds and executes requests for operations under \enterprises\{enterprise}\actions\oidc\customization\issuer
///
- public class IssuerRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class IssuerRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public IssuerRequestBuilder(Dictionary pathParameters, IRequestA
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -39,11 +42,11 @@ public IssuerRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
/// 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 PutAsync(ActionsOidcCustomIssuerPolicyForEnterprise body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PutAsync(global::GitHub.Models.ActionsOidcCustomIssuerPolicyForEnterprise body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PutAsync(ActionsOidcCustomIssuerPolicyForEnterprise body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PutAsync(global::GitHub.Models.ActionsOidcCustomIssuerPolicyForEnterprise body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -58,11 +61,11 @@ public async Task PutAsync(ActionsOidcCustomIssuerPolicyForEnterprise body, Acti
/// 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(ActionsOidcCustomIssuerPolicyForEnterprise body, Action>? requestConfiguration = default)
+ public RequestInformation ToPutRequestInformation(global::GitHub.Models.ActionsOidcCustomIssuerPolicyForEnterprise body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPutRequestInformation(ActionsOidcCustomIssuerPolicyForEnterprise body, Action> requestConfiguration = default)
+ public RequestInformation ToPutRequestInformation(global::GitHub.Models.ActionsOidcCustomIssuerPolicyForEnterprise body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -74,11 +77,12 @@ public RequestInformation ToPutRequestInformation(ActionsOidcCustomIssuerPolicyF
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public IssuerRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Enterprises.Item.Actions.Oidc.Customization.Issuer.IssuerRequestBuilder WithUrl(string rawUrl)
{
- return new IssuerRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Enterprises.Item.Actions.Oidc.Customization.Issuer.IssuerRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/Oidc/OidcRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Oidc/OidcRequestBuilder.cs
index badfeed9..93c110f9 100644
--- a/src/GitHub/Enterprises/Item/Actions/Oidc/OidcRequestBuilder.cs
+++ b/src/GitHub/Enterprises/Item/Actions/Oidc/OidcRequestBuilder.cs
@@ -1,24 +1,27 @@
//
+#pragma warning disable CS0618
using GitHub.Enterprises.Item.Actions.Oidc.Customization;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System;
-namespace GitHub.Enterprises.Item.Actions.Oidc {
+namespace GitHub.Enterprises.Item.Actions.Oidc
+{
///
/// Builds and executes requests for operations under \enterprises\{enterprise}\actions\oidc
///
- public class OidcRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class OidcRequestBuilder : BaseRequestBuilder
{
/// The customization property
- public CustomizationRequestBuilder Customization
+ public global::GitHub.Enterprises.Item.Actions.Oidc.Customization.CustomizationRequestBuilder Customization
{
- get => new CustomizationRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.Enterprises.Item.Actions.Oidc.Customization.CustomizationRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -26,7 +29,7 @@ public OidcRequestBuilder(Dictionary pathParameters, IRequestAda
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -35,3 +38,4 @@ public OidcRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/Item/WithOrg_ItemRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/Item/WithOrg_ItemRequestBuilder.cs
index 071348d8..19d18abd 100644
--- a/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/Item/WithOrg_ItemRequestBuilder.cs
+++ b/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/Item/WithOrg_ItemRequestBuilder.cs
@@ -1,20 +1,23 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Enterprises.Item.Actions.Permissions.Organizations.Item {
+namespace GitHub.Enterprises.Item.Actions.Permissions.Organizations.Item
+{
///
/// Builds and executes requests for operations under \enterprises\{enterprise}\actions\permissions\organizations\{org_id}
///
- public class WithOrg_ItemRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class WithOrg_ItemRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -22,7 +25,7 @@ public WithOrg_ItemRequestBuilder(Dictionary pathParameters, IRe
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -104,11 +107,12 @@ public RequestInformation ToPutRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public WithOrg_ItemRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.Item.WithOrg_ItemRequestBuilder WithUrl(string rawUrl)
{
- return new WithOrg_ItemRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.Item.WithOrg_ItemRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsGetResponse.cs b/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsGetResponse.cs
index 9d538c9a..5b28a170 100644
--- a/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsGetResponse.cs
+++ b/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsGetResponse.cs
@@ -1,13 +1,16 @@
//
+#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.Linq;
using System;
-namespace GitHub.Enterprises.Item.Actions.Permissions.Organizations {
+namespace GitHub.Enterprises.Item.Actions.Permissions.Organizations
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
- public class OrganizationsGetResponse : IAdditionalDataHolder, IParsable
+ public partial class OrganizationsGetResponse : 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.
@@ -15,15 +18,15 @@ public class OrganizationsGetResponse : IAdditionalDataHolder, IParsable
/// The organizations property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public List? Organizations { get; set; }
+ public List? Organizations { get; set; }
#nullable restore
#else
- public List Organizations { get; set; }
+ public List Organizations { get; set; }
#endif
/// The total_count property
public double? TotalCount { get; set; }
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public OrganizationsGetResponse()
{
@@ -32,12 +35,12 @@ public OrganizationsGetResponse()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static OrganizationsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new OrganizationsGetResponse();
+ return new global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsGetResponse();
}
///
/// The deserialization information for the current model
@@ -47,8 +50,8 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"organizations", n => { Organizations = n.GetCollectionOfObjectValues(OrganizationSimple.CreateFromDiscriminatorValue)?.ToList(); } },
- {"total_count", n => { TotalCount = n.GetDoubleValue(); } },
+ { "organizations", n => { Organizations = n.GetCollectionOfObjectValues(global::GitHub.Models.OrganizationSimple.CreateFromDiscriminatorValue)?.AsList(); } },
+ { "total_count", n => { TotalCount = n.GetDoubleValue(); } },
};
}
///
@@ -58,9 +61,10 @@ public virtual IDictionary> GetFieldDeserializers()
public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
- writer.WriteCollectionOfObjectValues("organizations", Organizations);
+ writer.WriteCollectionOfObjectValues("organizations", Organizations);
writer.WriteDoubleValue("total_count", TotalCount);
writer.WriteAdditionalData(AdditionalData);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsPutRequestBody.cs b/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsPutRequestBody.cs
index a229f949..03cae416 100644
--- a/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsPutRequestBody.cs
+++ b/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsPutRequestBody.cs
@@ -1,12 +1,15 @@
//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace GitHub.Enterprises.Item.Actions.Permissions.Organizations {
+namespace GitHub.Enterprises.Item.Actions.Permissions.Organizations
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
- public class OrganizationsPutRequestBody : IAdditionalDataHolder, IParsable
+ public partial class OrganizationsPutRequestBody : 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.
@@ -20,7 +23,7 @@ public class OrganizationsPutRequestBody : IAdditionalDataHolder, IParsable
public List SelectedOrganizationIds { get; set; }
#endif
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public OrganizationsPutRequestBody()
{
@@ -29,12 +32,12 @@ public OrganizationsPutRequestBody()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static OrganizationsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new OrganizationsPutRequestBody();
+ return new global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsPutRequestBody();
}
///
/// The deserialization information for the current model
@@ -44,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"selected_organization_ids", n => { SelectedOrganizationIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } },
+ { "selected_organization_ids", n => { SelectedOrganizationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } },
};
}
///
@@ -59,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer)
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsRequestBuilder.cs
index fdd856e5..35b70f47 100644
--- a/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsRequestBuilder.cs
+++ b/src/GitHub/Enterprises/Item/Actions/Permissions/Organizations/OrganizationsRequestBuilder.cs
@@ -1,33 +1,36 @@
//
+#pragma warning disable CS0618
using GitHub.Enterprises.Item.Actions.Permissions.Organizations.Item;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Enterprises.Item.Actions.Permissions.Organizations {
+namespace GitHub.Enterprises.Item.Actions.Permissions.Organizations
+{
///
/// Builds and executes requests for operations under \enterprises\{enterprise}\actions\permissions\organizations
///
- public class OrganizationsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class OrganizationsRequestBuilder : BaseRequestBuilder
{
/// Gets an item from the GitHub.enterprises.item.actions.permissions.organizations.item collection
/// The unique identifier of the organization.
- /// A
- public WithOrg_ItemRequestBuilder this[int position]
+ /// A
+ public global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.Item.WithOrg_ItemRequestBuilder this[int position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("org_id", position);
- return new WithOrg_ItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.Item.WithOrg_ItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -35,7 +38,7 @@ public OrganizationsRequestBuilder(Dictionary pathParameters, IR
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -46,20 +49,20 @@ public OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter
/// Lists the organizations that are selected to have GitHub Actions enabled in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)."OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
/// API method documentation
///
- /// A
+ /// 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)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- return await RequestAdapter.SendAsync(requestInfo, OrganizationsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
}
///
/// Replaces the list of selected organizations that are enabled for GitHub Actions in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)."OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
@@ -70,11 +73,11 @@ public async Task GetAsync(ActionConfiguration 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 PutAsync(OrganizationsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PutAsync(global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PutAsync(OrganizationsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PutAsync(global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -88,11 +91,11 @@ public async Task PutAsync(OrganizationsPutRequestBody body, ActionConfiguration 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)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -108,11 +111,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(OrganizationsPutRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsPutRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPutRequestInformation(OrganizationsPutRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsPutRequestBody body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -124,16 +127,17 @@ public RequestInformation ToPutRequestInformation(OrganizationsPutRequestBody bo
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public OrganizationsRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsRequestBuilder WithUrl(string rawUrl)
{
- return new OrganizationsRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Lists the organizations that are selected to have GitHub Actions enabled in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)."OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
///
- public class OrganizationsRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class OrganizationsRequestBuilderGetQueryParameters
{
/// The page number of the results to fetch. 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("page")]
@@ -144,3 +148,4 @@ public class OrganizationsRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/Permissions/PermissionsPutRequestBody.cs b/src/GitHub/Enterprises/Item/Actions/Permissions/PermissionsPutRequestBody.cs
index efad6311..094cd429 100644
--- a/src/GitHub/Enterprises/Item/Actions/Permissions/PermissionsPutRequestBody.cs
+++ b/src/GitHub/Enterprises/Item/Actions/Permissions/PermissionsPutRequestBody.cs
@@ -1,23 +1,26 @@
//
+#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.Linq;
using System;
-namespace GitHub.Enterprises.Item.Actions.Permissions {
+namespace GitHub.Enterprises.Item.Actions.Permissions
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
- public class PermissionsPutRequestBody : IAdditionalDataHolder, IParsable
+ public partial class PermissionsPutRequestBody : 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 permissions policy that controls the actions and reusable workflows that are allowed to run.
- public GitHub.Models.AllowedActions? AllowedActions { get; set; }
+ public global::GitHub.Models.AllowedActions? AllowedActions { get; set; }
/// The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions.
- public GitHub.Models.EnabledOrganizations? EnabledOrganizations { get; set; }
+ public global::GitHub.Models.EnabledOrganizations? EnabledOrganizations { get; set; }
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public PermissionsPutRequestBody()
{
@@ -26,12 +29,12 @@ public PermissionsPutRequestBody()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static PermissionsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new PermissionsPutRequestBody();
+ return new global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsPutRequestBody();
}
///
/// The deserialization information for the current model
@@ -41,8 +44,8 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"allowed_actions", n => { AllowedActions = n.GetEnumValue(); } },
- {"enabled_organizations", n => { EnabledOrganizations = n.GetEnumValue(); } },
+ { "allowed_actions", n => { AllowedActions = n.GetEnumValue(); } },
+ { "enabled_organizations", n => { EnabledOrganizations = n.GetEnumValue(); } },
};
}
///
@@ -52,9 +55,10 @@ public virtual IDictionary> GetFieldDeserializers()
public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
- writer.WriteEnumValue("allowed_actions", AllowedActions);
- writer.WriteEnumValue("enabled_organizations", EnabledOrganizations);
+ writer.WriteEnumValue("allowed_actions", AllowedActions);
+ writer.WriteEnumValue("enabled_organizations", EnabledOrganizations);
writer.WriteAdditionalData(AdditionalData);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/Permissions/PermissionsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Permissions/PermissionsRequestBuilder.cs
index 710dd1b0..93c53fef 100644
--- a/src/GitHub/Enterprises/Item/Actions/Permissions/PermissionsRequestBuilder.cs
+++ b/src/GitHub/Enterprises/Item/Actions/Permissions/PermissionsRequestBuilder.cs
@@ -1,39 +1,42 @@
//
+#pragma warning disable CS0618
using GitHub.Enterprises.Item.Actions.Permissions.Organizations;
using GitHub.Enterprises.Item.Actions.Permissions.SelectedActions;
using GitHub.Enterprises.Item.Actions.Permissions.Workflow;
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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Enterprises.Item.Actions.Permissions {
+namespace GitHub.Enterprises.Item.Actions.Permissions
+{
///
/// Builds and executes requests for operations under \enterprises\{enterprise}\actions\permissions
///
- public class PermissionsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class PermissionsRequestBuilder : BaseRequestBuilder
{
/// The organizations property
- public OrganizationsRequestBuilder Organizations
+ public global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsRequestBuilder Organizations
{
- get => new OrganizationsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.Enterprises.Item.Actions.Permissions.Organizations.OrganizationsRequestBuilder(PathParameters, RequestAdapter);
}
/// The selectedActions property
- public SelectedActionsRequestBuilder SelectedActions
+ public global::GitHub.Enterprises.Item.Actions.Permissions.SelectedActions.SelectedActionsRequestBuilder SelectedActions
{
- get => new SelectedActionsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.Enterprises.Item.Actions.Permissions.SelectedActions.SelectedActionsRequestBuilder(PathParameters, RequestAdapter);
}
/// The workflow property
- public WorkflowRequestBuilder Workflow
+ public global::GitHub.Enterprises.Item.Actions.Permissions.Workflow.WorkflowRequestBuilder Workflow
{
- get => new WorkflowRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::GitHub.Enterprises.Item.Actions.Permissions.Workflow.WorkflowRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -41,7 +44,7 @@ public PermissionsRequestBuilder(Dictionary pathParameters, IReq
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -52,20 +55,20 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
/// Gets the GitHub Actions permissions policy for organizations and allowed actions and reusable workflows in an enterprise.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
/// API method documentation
///
- /// A
+ /// 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)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- return await RequestAdapter.SendAsync(requestInfo, ActionsEnterprisePermissions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsEnterprisePermissions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
}
///
/// Sets the GitHub Actions permissions policy for organizations and allowed actions and reusable workflows in an enterprise.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
@@ -76,11 +79,11 @@ public async Task GetAsync(ActionConfiguration 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 PutAsync(PermissionsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PutAsync(global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PutAsync(PermissionsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PutAsync(global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -114,11 +117,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(PermissionsPutRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsPutRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPutRequestInformation(PermissionsPutRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsPutRequestBody body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -130,11 +133,12 @@ public RequestInformation ToPutRequestInformation(PermissionsPutRequestBody body
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public PermissionsRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl)
{
- return new PermissionsRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Enterprises.Item.Actions.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/Permissions/SelectedActions/SelectedActionsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Permissions/SelectedActions/SelectedActionsRequestBuilder.cs
index 44f27161..3db802d2 100644
--- a/src/GitHub/Enterprises/Item/Actions/Permissions/SelectedActions/SelectedActionsRequestBuilder.cs
+++ b/src/GitHub/Enterprises/Item/Actions/Permissions/SelectedActions/SelectedActionsRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Enterprises.Item.Actions.Permissions.SelectedActions {
+namespace GitHub.Enterprises.Item.Actions.Permissions.SelectedActions
+{
///
/// Builds and executes requests for operations under \enterprises\{enterprise}\actions\permissions\selected-actions
///
- public class SelectedActionsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class SelectedActionsRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public SelectedActionsRequestBuilder(Dictionary pathParameters,
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -34,20 +37,20 @@ public SelectedActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt
/// Gets the selected actions and reusable workflows that are allowed in an enterprise. To use this endpoint, the enterprise permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)."OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
/// API method documentation
///
- /// A
+ /// 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)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- return await RequestAdapter.SendAsync(requestInfo, GitHub.Models.SelectedActions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.SelectedActions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
}
///
/// Sets the actions and reusable workflows that are allowed in an enterprise. To use this endpoint, the enterprise permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)."OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
@@ -58,11 +61,11 @@ public SelectedActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt
/// 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 PutAsync(GitHub.Models.SelectedActions body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PutAsync(global::GitHub.Models.SelectedActions body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PutAsync(GitHub.Models.SelectedActions body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PutAsync(global::GitHub.Models.SelectedActions body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -96,11 +99,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(GitHub.Models.SelectedActions body, Action>? requestConfiguration = default)
+ public RequestInformation ToPutRequestInformation(global::GitHub.Models.SelectedActions body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPutRequestInformation(GitHub.Models.SelectedActions body, Action> requestConfiguration = default)
+ public RequestInformation ToPutRequestInformation(global::GitHub.Models.SelectedActions body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -112,11 +115,12 @@ public RequestInformation ToPutRequestInformation(GitHub.Models.SelectedActions
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public SelectedActionsRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Enterprises.Item.Actions.Permissions.SelectedActions.SelectedActionsRequestBuilder WithUrl(string rawUrl)
{
- return new SelectedActionsRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Enterprises.Item.Actions.Permissions.SelectedActions.SelectedActionsRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/Permissions/Workflow/WorkflowRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/Permissions/Workflow/WorkflowRequestBuilder.cs
index 98ac115d..bd7dbee9 100644
--- a/src/GitHub/Enterprises/Item/Actions/Permissions/Workflow/WorkflowRequestBuilder.cs
+++ b/src/GitHub/Enterprises/Item/Actions/Permissions/Workflow/WorkflowRequestBuilder.cs
@@ -1,21 +1,24 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Enterprises.Item.Actions.Permissions.Workflow {
+namespace GitHub.Enterprises.Item.Actions.Permissions.Workflow
+{
///
/// Builds and executes requests for operations under \enterprises\{enterprise}\actions\permissions\workflow
///
- public class WorkflowRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class WorkflowRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +26,7 @@ public WorkflowRequestBuilder(Dictionary pathParameters, IReques
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -34,20 +37,20 @@ public WorkflowRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b
/// Gets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in an enterprise,as well as whether GitHub Actions can submit approving pull request reviews. For more information, see"[Enforcing a policy for workflow permissions in your enterprise](https://docs.github.com/enterprise-cloud@latest//admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise#enforcing-a-policy-for-workflow-permissions-in-your-enterprise)."OAuth tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
/// API method documentation
///
- /// A
+ /// 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)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- return await RequestAdapter.SendAsync(requestInfo, ActionsGetDefaultWorkflowPermissions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ActionsGetDefaultWorkflowPermissions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
}
///
/// Sets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in an enterprise, and setswhether GitHub Actions can submit approving pull request reviews. For more information, see"[Enforcing a policy for workflow permissions in your enterprise](https://docs.github.com/enterprise-cloud@latest//admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise#enforcing-a-policy-for-workflow-permissions-in-your-enterprise)."OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.
@@ -58,11 +61,11 @@ public async Task GetAsync(ActionConfiguration 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 PutAsync(ActionsSetDefaultWorkflowPermissions body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PutAsync(global::GitHub.Models.ActionsSetDefaultWorkflowPermissions body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PutAsync(ActionsSetDefaultWorkflowPermissions body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PutAsync(global::GitHub.Models.ActionsSetDefaultWorkflowPermissions body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -96,11 +99,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(ActionsSetDefaultWorkflowPermissions body, Action>? requestConfiguration = default)
+ public RequestInformation ToPutRequestInformation(global::GitHub.Models.ActionsSetDefaultWorkflowPermissions body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPutRequestInformation(ActionsSetDefaultWorkflowPermissions body, Action> requestConfiguration = default)
+ public RequestInformation ToPutRequestInformation(global::GitHub.Models.ActionsSetDefaultWorkflowPermissions body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -112,11 +115,12 @@ public RequestInformation ToPutRequestInformation(ActionsSetDefaultWorkflowPermi
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public WorkflowRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Enterprises.Item.Actions.Permissions.Workflow.WorkflowRequestBuilder WithUrl(string rawUrl)
{
- return new WorkflowRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Enterprises.Item.Actions.Permissions.Workflow.WorkflowRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/Item/WithOrg_ItemRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/Item/WithOrg_ItemRequestBuilder.cs
index d5a98cae..a13d744c 100644
--- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/Item/WithOrg_ItemRequestBuilder.cs
+++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/Item/WithOrg_ItemRequestBuilder.cs
@@ -1,20 +1,23 @@
//
+#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.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.Item {
+namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.Item
+{
///
/// Builds and executes requests for operations under \enterprises\{enterprise}\actions\runner-groups\{runner_group_id}\organizations\{org_id}
///
- public class WithOrg_ItemRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class WithOrg_ItemRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -22,7 +25,7 @@ public WithOrg_ItemRequestBuilder(Dictionary pathParameters, IRe
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -104,11 +107,12 @@ public RequestInformation ToPutRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public WithOrg_ItemRequestBuilder WithUrl(string rawUrl)
+ public global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.Item.WithOrg_ItemRequestBuilder WithUrl(string rawUrl)
{
- return new WithOrg_ItemRequestBuilder(rawUrl, RequestAdapter);
+ return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.Item.WithOrg_ItemRequestBuilder(rawUrl, RequestAdapter);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsGetResponse.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsGetResponse.cs
index 356d9fe6..eed349a4 100644
--- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsGetResponse.cs
+++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsGetResponse.cs
@@ -1,13 +1,16 @@
//
+#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.Linq;
using System;
-namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations {
+namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
- public class OrganizationsGetResponse : IAdditionalDataHolder, IParsable
+ public partial class OrganizationsGetResponse : 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.
@@ -15,15 +18,15 @@ public class OrganizationsGetResponse : IAdditionalDataHolder, IParsable
/// The organizations property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public List? Organizations { get; set; }
+ public List? Organizations { get; set; }
#nullable restore
#else
- public List Organizations { get; set; }
+ public List Organizations { get; set; }
#endif
/// The total_count property
public double? TotalCount { get; set; }
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public OrganizationsGetResponse()
{
@@ -32,12 +35,12 @@ public OrganizationsGetResponse()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static OrganizationsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new OrganizationsGetResponse();
+ return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsGetResponse();
}
///
/// The deserialization information for the current model
@@ -47,8 +50,8 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"organizations", n => { Organizations = n.GetCollectionOfObjectValues(OrganizationSimple.CreateFromDiscriminatorValue)?.ToList(); } },
- {"total_count", n => { TotalCount = n.GetDoubleValue(); } },
+ { "organizations", n => { Organizations = n.GetCollectionOfObjectValues(global::GitHub.Models.OrganizationSimple.CreateFromDiscriminatorValue)?.AsList(); } },
+ { "total_count", n => { TotalCount = n.GetDoubleValue(); } },
};
}
///
@@ -58,9 +61,10 @@ public virtual IDictionary> GetFieldDeserializers()
public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
- writer.WriteCollectionOfObjectValues("organizations", Organizations);
+ writer.WriteCollectionOfObjectValues("organizations", Organizations);
writer.WriteDoubleValue("total_count", TotalCount);
writer.WriteAdditionalData(AdditionalData);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsPutRequestBody.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsPutRequestBody.cs
index 8bfd4fe2..1837709b 100644
--- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsPutRequestBody.cs
+++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsPutRequestBody.cs
@@ -1,12 +1,15 @@
//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations {
+namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
#pragma warning disable CS1591
- public class OrganizationsPutRequestBody : IAdditionalDataHolder, IParsable
+ public partial class OrganizationsPutRequestBody : 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.
@@ -20,7 +23,7 @@ public class OrganizationsPutRequestBody : IAdditionalDataHolder, IParsable
public List SelectedOrganizationIds { get; set; }
#endif
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public OrganizationsPutRequestBody()
{
@@ -29,12 +32,12 @@ public OrganizationsPutRequestBody()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static OrganizationsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new OrganizationsPutRequestBody();
+ return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsPutRequestBody();
}
///
/// The deserialization information for the current model
@@ -44,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"selected_organization_ids", n => { SelectedOrganizationIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } },
+ { "selected_organization_ids", n => { SelectedOrganizationIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } },
};
}
///
@@ -59,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer)
}
}
}
+#pragma warning restore CS0618
diff --git a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsRequestBuilder.cs
index a83e6b2c..c8ed64ab 100644
--- a/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsRequestBuilder.cs
+++ b/src/GitHub/Enterprises/Item/Actions/RunnerGroups/Item/Organizations/OrganizationsRequestBuilder.cs
@@ -1,33 +1,36 @@
//
+#pragma warning disable CS0618
using GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.Item;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations {
+namespace GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations
+{
///
/// Builds and executes requests for operations under \enterprises\{enterprise}\actions\runner-groups\{runner_group_id}\organizations
///
- public class OrganizationsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
+ public partial class OrganizationsRequestBuilder : BaseRequestBuilder
{
/// Gets an item from the GitHub.enterprises.item.actions.runnerGroups.item.organizations.item collection
/// The unique identifier of the organization.
- /// A
- public WithOrg_ItemRequestBuilder this[int position]
+ /// A
+ public global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.Item.WithOrg_ItemRequestBuilder this[int position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("org_id", position);
- return new WithOrg_ItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.Item.WithOrg_ItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -35,7 +38,7 @@ public OrganizationsRequestBuilder(Dictionary pathParameters, IR
{
}
///
- /// Instantiates a new and sets the default values.
+ /// 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.
@@ -46,20 +49,20 @@ public OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter
/// Lists the organizations with access to a self-hosted runner group.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint.
/// API method documentation
///
- /// A
+ /// 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)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- return await RequestAdapter.SendAsync(requestInfo, OrganizationsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
}
///
/// Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint.
@@ -70,11 +73,11 @@ public async Task GetAsync(ActionConfiguration 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 PutAsync(OrganizationsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PutAsync(global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PutAsync(OrganizationsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PutAsync(global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -88,11 +91,11 @@ public async Task PutAsync(OrganizationsPutRequestBody body, ActionConfiguration 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)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -108,11 +111,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(OrganizationsPutRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsPutRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPutRequestInformation(OrganizationsPutRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToPutRequestInformation(global::GitHub.Enterprises.Item.Actions.RunnerGroups.Item.Organizations.OrganizationsPutRequestBody body, Action