Skip to content

Commit

Permalink
feat | dep: Kiota library bump from 1.2.x to 1.12.x makes significant…
Browse files Browse the repository at this point in the history
… source structure updates.
  • Loading branch information
octokitbot authored Sep 18, 2024
1 parent ac782c9 commit 4e8f187
Show file tree
Hide file tree
Showing 2,716 changed files with 49,045 additions and 38,289 deletions.
16 changes: 8 additions & 8 deletions src/GitHub.Octokit.GHEC.SDK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.0.1" />
<PackageReference Include="Microsoft.Kiota.Abstractions" Version="1.8.4" />
<PackageReference Include="Microsoft.Kiota.Http.HttpClientLibrary" Version="1.4.0" />
<PackageReference Include="Microsoft.Kiota.Serialization.Form" Version="1.1.6" />
<PackageReference Include="Microsoft.Kiota.Serialization.Json" Version="1.2.3" />
<PackageReference Include="Microsoft.Kiota.Serialization.Multipart" Version="1.1.4" />
<PackageReference Include="Microsoft.Kiota.Serialization.Text" Version="1.1.5" />
<PackageReference Include="Microsoft.Kiota.Authentication.Azure" Version="1.1.5" />
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.0.2" />
<PackageReference Include="Microsoft.Kiota.Abstractions" Version="1.12.4" />
<PackageReference Include="Microsoft.Kiota.Http.HttpClientLibrary" Version="1.12.4" />
<PackageReference Include="Microsoft.Kiota.Serialization.Form" Version="1.12.4" />
<PackageReference Include="Microsoft.Kiota.Serialization.Json" Version="1.12.4" />
<PackageReference Include="Microsoft.Kiota.Serialization.Multipart" Version="1.12.4" />
<PackageReference Include="Microsoft.Kiota.Serialization.Text" Version="1.12.4" />
<PackageReference Include="Microsoft.Kiota.Authentication.Azure" Version="1.12.4" />
<None Include="NugetREADME.md" Pack="true" PackagePath="\" />
<None Include="octokit.png" Pack="true" PackagePath="\" />
</ItemGroup>
Expand Down
85 changes: 55 additions & 30 deletions src/GitHub/Advisories/AdvisoriesRequestBuilder.cs

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/GitHub/Advisories/GetDirectionQueryParameterType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// <auto-generated/>
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
Expand Down
4 changes: 3 additions & 1 deletion src/GitHub/Advisories/GetSeverityQueryParameterType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// <auto-generated/>
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
Expand Down
12 changes: 11 additions & 1 deletion src/GitHub/Advisories/GetSortQueryParameterType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// <auto-generated/>
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
Expand All @@ -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
}
}
4 changes: 3 additions & 1 deletion src/GitHub/Advisories/GetTypeQueryParameterType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// <auto-generated/>
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
Expand Down
32 changes: 18 additions & 14 deletions src/GitHub/Advisories/Item/WithGhsa_ItemRequestBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
// <auto-generated/>
#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
{
/// <summary>
/// Builds and executes requests for operations under \advisories\{ghsa_id}
/// </summary>
public class WithGhsa_ItemRequestBuilder : BaseRequestBuilder
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
public partial class WithGhsa_ItemRequestBuilder : BaseRequestBuilder
{
/// <summary>
/// Instantiates a new <see cref="WithGhsa_ItemRequestBuilder"/> and sets the default values.
/// Instantiates a new <see cref="global::GitHub.Advisories.Item.WithGhsa_ItemRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public WithGhsa_ItemRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/advisories/{ghsa_id}", pathParameters)
{
}
/// <summary>
/// Instantiates a new <see cref="WithGhsa_ItemRequestBuilder"/> and sets the default values.
/// Instantiates a new <see cref="global::GitHub.Advisories.Item.WithGhsa_ItemRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
Expand All @@ -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 <see href="https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/global-advisories#get-a-global-security-advisory" />
/// </summary>
/// <returns>A <see cref="GlobalAdvisory"/></returns>
/// <returns>A <see cref="global::GitHub.Models.GlobalAdvisory"/></returns>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// <exception cref="BasicError">When receiving a 404 status code</exception>
/// <exception cref="global::GitHub.Models.BasicError">When receiving a 404 status code</exception>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task<GlobalAdvisory?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<global::GitHub.Models.GlobalAdvisory?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
public async Task<GlobalAdvisory> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<global::GitHub.Models.GlobalAdvisory> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"404", BasicError.CreateFromDiscriminatorValue},
{ "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<GlobalAdvisory>(requestInfo, GlobalAdvisory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
return await RequestAdapter.SendAsync<global::GitHub.Models.GlobalAdvisory>(requestInfo, global::GitHub.Models.GlobalAdvisory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Gets a global security advisory using its GitHub Security Advisory (GHSA) identifier.
Expand All @@ -76,11 +79,12 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<De
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <returns>A <see cref="WithGhsa_ItemRequestBuilder"/></returns>
/// <returns>A <see cref="global::GitHub.Advisories.Item.WithGhsa_ItemRequestBuilder"/></returns>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
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
40 changes: 22 additions & 18 deletions src/GitHub/App/AppRequestBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,47 +1,50 @@
// <auto-generated/>
#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
{
/// <summary>
/// Builds and executes requests for operations under \app
/// </summary>
public class AppRequestBuilder : BaseRequestBuilder
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
public partial class AppRequestBuilder : BaseRequestBuilder
{
/// <summary>The hook property</summary>
public HookRequestBuilder Hook
public global::GitHub.App.Hook.HookRequestBuilder Hook
{
get => new HookRequestBuilder(PathParameters, RequestAdapter);
get => new global::GitHub.App.Hook.HookRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The installationRequests property</summary>
public InstallationRequestsRequestBuilder InstallationRequests
public global::GitHub.App.InstallationRequests.InstallationRequestsRequestBuilder InstallationRequests
{
get => new InstallationRequestsRequestBuilder(PathParameters, RequestAdapter);
get => new global::GitHub.App.InstallationRequests.InstallationRequestsRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The installations property</summary>
public InstallationsRequestBuilder Installations
public global::GitHub.App.Installations.InstallationsRequestBuilder Installations
{
get => new InstallationsRequestBuilder(PathParameters, RequestAdapter);
get => new global::GitHub.App.Installations.InstallationsRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>
/// Instantiates a new <see cref="AppRequestBuilder"/> and sets the default values.
/// Instantiates a new <see cref="global::GitHub.App.AppRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public AppRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/app", pathParameters)
{
}
/// <summary>
/// Instantiates a new <see cref="AppRequestBuilder"/> and sets the default values.
/// Instantiates a new <see cref="global::GitHub.App.AppRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
Expand All @@ -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&apos;s installations, see the &quot;[List installations for the authenticated app](https://docs.github.com/enterprise-cloud@latest//rest/apps/apps#list-installations-for-the-authenticated-app)&quot; 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 <see href="https://docs.github.com/enterprise-cloud@latest//rest/apps/apps#get-the-authenticated-app" />
/// </summary>
/// <returns>A <see cref="Integration"/></returns>
/// <returns>A <see cref="global::GitHub.Models.Integration"/></returns>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task<Integration?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<global::GitHub.Models.Integration?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
public async Task<Integration> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<global::GitHub.Models.Integration> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
return await RequestAdapter.SendAsync<Integration>(requestInfo, Integration.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
return await RequestAdapter.SendAsync<global::GitHub.Models.Integration>(requestInfo, global::GitHub.Models.Integration.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// 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&apos;s installations, see the &quot;[List installations for the authenticated app](https://docs.github.com/enterprise-cloud@latest//rest/apps/apps#list-installations-for-the-authenticated-app)&quot; 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.
Expand All @@ -89,11 +92,12 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<De
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <returns>A <see cref="AppRequestBuilder"/></returns>
/// <returns>A <see cref="global::GitHub.App.AppRequestBuilder"/></returns>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
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
Loading

0 comments on commit 4e8f187

Please sign in to comment.