Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes in generated code #14

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/GitHub/Events/EventsRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
{
}
/// <summary>
/// We delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago.
/// &gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// API method documentation <see href="https://docs.github.com/enterprise-cloud@latest//rest/activity/events#list-public-events" />
/// </summary>
/// <returns>A List&lt;Event&gt;</returns>
Expand All @@ -58,7 +58,7 @@ public async Task<List<Event>> GetAsync(Action<RequestConfiguration<EventsReques
return collectionResult?.ToList();
}
/// <summary>
/// We delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago.
/// &gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down Expand Up @@ -86,7 +86,7 @@ public EventsRequestBuilder WithUrl(string rawUrl)
return new EventsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// We delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago.
/// &gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// </summary>
public class EventsRequestBuilderGetQueryParameters
{
Expand Down
6 changes: 3 additions & 3 deletions src/GitHub/Models/PullRequestReview.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class PullRequestReview : IAdditionalDataHolder, IParsable
public string HtmlUrl { get; set; }
#endif
/// <summary>Unique identifier of the review</summary>
public int? Id { get; set; }
public long? Id { get; set; }
/// <summary>The _links property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down Expand Up @@ -129,7 +129,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{"body_text", n => { BodyText = n.GetStringValue(); } },
{"commit_id", n => { CommitId = n.GetStringValue(); } },
{"html_url", n => { HtmlUrl = n.GetStringValue(); } },
{"id", n => { Id = n.GetIntValue(); } },
{"id", n => { Id = n.GetLongValue(); } },
{"_links", n => { Links = n.GetObjectValue<PullRequestReview__links>(PullRequestReview__links.CreateFromDiscriminatorValue); } },
{"node_id", n => { NodeId = n.GetStringValue(); } },
{"pull_request_url", n => { PullRequestUrl = n.GetStringValue(); } },
Expand All @@ -151,7 +151,7 @@ public virtual void Serialize(ISerializationWriter writer)
writer.WriteStringValue("body_text", BodyText);
writer.WriteStringValue("commit_id", CommitId);
writer.WriteStringValue("html_url", HtmlUrl);
writer.WriteIntValue("id", Id);
writer.WriteLongValue("id", Id);
writer.WriteObjectValue<PullRequestReview__links>("_links", Links);
writer.WriteStringValue("node_id", NodeId);
writer.WriteStringValue("pull_request_url", PullRequestUrl);
Expand Down
7 changes: 5 additions & 2 deletions src/GitHub/Networks/Item/Item/Events/EventsRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
{
}
/// <summary>
/// List public events for a network of repositories
/// &gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// API method documentation <see href="https://docs.github.com/enterprise-cloud@latest//rest/activity/events#list-public-events-for-a-network-of-repositories" />
/// </summary>
/// <returns>A List&lt;Event&gt;</returns>
Expand All @@ -57,6 +57,9 @@ public async Task<List<Event>> GetAsync(Action<RequestConfiguration<EventsReques
var collectionResult = await RequestAdapter.SendCollectionAsync<Event>(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
return collectionResult?.ToList();
}
/// <summary>
/// &gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <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
Expand All @@ -83,7 +86,7 @@ public EventsRequestBuilder WithUrl(string rawUrl)
return new EventsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// List public events for a network of repositories
/// &gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// </summary>
public class EventsRequestBuilderGetQueryParameters
{
Expand Down
7 changes: 5 additions & 2 deletions src/GitHub/Orgs/Item/Events/EventsRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
{
}
/// <summary>
/// List public organization events
/// &gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// API method documentation <see href="https://docs.github.com/enterprise-cloud@latest//rest/activity/events#list-public-organization-events" />
/// </summary>
/// <returns>A List&lt;Event&gt;</returns>
Expand All @@ -50,6 +50,9 @@ public async Task<List<Event>> GetAsync(Action<RequestConfiguration<EventsReques
var collectionResult = await RequestAdapter.SendCollectionAsync<Event>(requestInfo, Event.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
return collectionResult?.ToList();
}
/// <summary>
/// &gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <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
Expand All @@ -76,7 +79,7 @@ public EventsRequestBuilder WithUrl(string rawUrl)
return new EventsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// List public organization events
/// &gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// </summary>
public class EventsRequestBuilderGetQueryParameters
{
Expand Down
6 changes: 3 additions & 3 deletions src/GitHub/Users/Item/Events/EventsRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
{
}
/// <summary>
/// If you are authenticated as the given user, you will see your private events. Otherwise, you&apos;ll only see public events.
/// If you are authenticated as the given user, you will see your private events. Otherwise, you&apos;ll only see public events.&gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// API method documentation <see href="https://docs.github.com/enterprise-cloud@latest//rest/activity/events#list-events-for-the-authenticated-user" />
/// </summary>
/// <returns>A List&lt;Event&gt;</returns>
Expand All @@ -63,7 +63,7 @@ public async Task<List<Event>> GetAsync(Action<RequestConfiguration<EventsReques
return collectionResult?.ToList();
}
/// <summary>
/// If you are authenticated as the given user, you will see your private events. Otherwise, you&apos;ll only see public events.
/// If you are authenticated as the given user, you will see your private events. Otherwise, you&apos;ll only see public events.&gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down Expand Up @@ -91,7 +91,7 @@ public EventsRequestBuilder WithUrl(string rawUrl)
return new EventsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// If you are authenticated as the given user, you will see your private events. Otherwise, you&apos;ll only see public events.
/// If you are authenticated as the given user, you will see your private events. Otherwise, you&apos;ll only see public events.&gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// </summary>
public class EventsRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public WithOrgItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
{
}
/// <summary>
/// This is the user&apos;s organization dashboard. You must be authenticated as the user to view this.
/// This is the user&apos;s organization dashboard. You must be authenticated as the user to view this.&gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// API method documentation <see href="https://docs.github.com/enterprise-cloud@latest//rest/activity/events#list-organization-events-for-the-authenticated-user" />
/// </summary>
/// <returns>A List&lt;Event&gt;</returns>
Expand All @@ -51,7 +51,7 @@ public async Task<List<Event>> GetAsync(Action<RequestConfiguration<WithOrgItemR
return collectionResult?.ToList();
}
/// <summary>
/// This is the user&apos;s organization dashboard. You must be authenticated as the user to view this.
/// This is the user&apos;s organization dashboard. You must be authenticated as the user to view this.&gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down Expand Up @@ -79,7 +79,7 @@ public WithOrgItemRequestBuilder WithUrl(string rawUrl)
return new WithOrgItemRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// This is the user&apos;s organization dashboard. You must be authenticated as the user to view this.
/// This is the user&apos;s organization dashboard. You must be authenticated as the user to view this.&gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// </summary>
public class WithOrgItemRequestBuilderGetQueryParameters
{
Expand Down
7 changes: 5 additions & 2 deletions src/GitHub/Users/Item/Events/Public/PublicRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public PublicRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
{
}
/// <summary>
/// List public events for a user
/// &gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// API method documentation <see href="https://docs.github.com/enterprise-cloud@latest//rest/activity/events#list-public-events-for-a-user" />
/// </summary>
/// <returns>A List&lt;Event&gt;</returns>
Expand All @@ -50,6 +50,9 @@ public async Task<List<Event>> GetAsync(Action<RequestConfiguration<PublicReques
var collectionResult = await RequestAdapter.SendCollectionAsync<Event>(requestInfo, Event.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
return collectionResult?.ToList();
}
/// <summary>
/// &gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <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
Expand All @@ -76,7 +79,7 @@ public PublicRequestBuilder WithUrl(string rawUrl)
return new PublicRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// List public events for a user
/// &gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// </summary>
public class PublicRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public PublicRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
{
}
/// <summary>
/// List public events received by a user
/// &gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// API method documentation <see href="https://docs.github.com/enterprise-cloud@latest//rest/activity/events#list-public-events-received-by-a-user" />
/// </summary>
/// <returns>A List&lt;Event&gt;</returns>
Expand All @@ -50,6 +50,9 @@ public async Task<List<Event>> GetAsync(Action<RequestConfiguration<PublicReques
var collectionResult = await RequestAdapter.SendCollectionAsync<Event>(requestInfo, Event.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
return collectionResult?.ToList();
}
/// <summary>
/// &gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <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
Expand All @@ -76,7 +79,7 @@ public PublicRequestBuilder WithUrl(string rawUrl)
return new PublicRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// List public events received by a user
/// &gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// </summary>
public class PublicRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public Received_eventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt
{
}
/// <summary>
/// These are events that you&apos;ve received by watching repositories and following users. If you are authenticated as the given user, you will see private events. Otherwise, you&apos;ll only see public events.
/// These are events that you&apos;ve received by watching repositories and following users. If you are authenticated as thegiven user, you will see private events. Otherwise, you&apos;ll only see public events.&gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// API method documentation <see href="https://docs.github.com/enterprise-cloud@latest//rest/activity/events#list-events-received-by-the-authenticated-user" />
/// </summary>
/// <returns>A List&lt;Event&gt;</returns>
Expand All @@ -57,7 +57,7 @@ public async Task<List<Event>> GetAsync(Action<RequestConfiguration<Received_eve
return collectionResult?.ToList();
}
/// <summary>
/// These are events that you&apos;ve received by watching repositories and following users. If you are authenticated as the given user, you will see private events. Otherwise, you&apos;ll only see public events.
/// These are events that you&apos;ve received by watching repositories and following users. If you are authenticated as thegiven user, you will see private events. Otherwise, you&apos;ll only see public events.&gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down Expand Up @@ -85,7 +85,7 @@ public Received_eventsRequestBuilder WithUrl(string rawUrl)
return new Received_eventsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// These are events that you&apos;ve received by watching repositories and following users. If you are authenticated as the given user, you will see private events. Otherwise, you&apos;ll only see public events.
/// These are events that you&apos;ve received by watching repositories and following users. If you are authenticated as thegiven user, you will see private events. Otherwise, you&apos;ll only see public events.&gt; [!NOTE]&gt; This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
/// </summary>
public class Received_eventsRequestBuilderGetQueryParameters
{
Expand Down
2 changes: 1 addition & 1 deletion src/GitHub/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"descriptionHash": "47BD670A7ABD5E77DDCFA922226A0253360F285E6837B3F7BF1475E114B34CFC8466C7E5881B0FBF57AC50D4A555B61DCBA6B3909C719072A814AF591780626E",
"descriptionHash": "E8FBD3A11FF50B44A9E7653ACC1A5CE20EFFF5D016C2F9C5DA53ECBDC82271D422B00048AEAD3101C552B1F963A968DFF56590AF6061B81CAD5BBADD4A316AE3",
"descriptionLocation": "../../../../../schemas/ghec.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.14.0",
Expand Down
8 changes: 4 additions & 4 deletions test/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.1">
<PackageReference Include="coverlet.collector" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="6.0.1">
<PackageReference Include="coverlet.msbuild" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7" PrivateAssets="all" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" PrivateAssets="all" />
<PackageReference Include="Moq" Version="4.20.70" />
</ItemGroup>

Expand Down
Loading