Skip to content

Commit 91a9c7a

Browse files
Merge pull request #184 from HavenDV/bot/update-openapi_202509230609
feat:@coderabbitai
2 parents fbfdb06 + 998ce5e commit 91a9c7a

File tree

45 files changed

+8692
-6655
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+8692
-6655
lines changed

src/libs/GitHub/Generated/GitHub..JsonSerializerContext.g.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,10 @@ namespace GitHub
255255
typeof(global::GitHub.JsonConverters.OrganizationActionsVariableVisibilityNullableJsonConverter),
256256
typeof(global::GitHub.JsonConverters.CampaignStateJsonConverter),
257257
typeof(global::GitHub.JsonConverters.CampaignStateNullableJsonConverter),
258+
typeof(global::GitHub.JsonConverters.NullableTeamSimpleTypeJsonConverter),
259+
typeof(global::GitHub.JsonConverters.NullableTeamSimpleTypeNullableJsonConverter),
260+
typeof(global::GitHub.JsonConverters.TeamTypeJsonConverter),
261+
typeof(global::GitHub.JsonConverters.TeamTypeNullableJsonConverter),
258262
typeof(global::GitHub.JsonConverters.CodeScanningAlertStateQueryJsonConverter),
259263
typeof(global::GitHub.JsonConverters.CodeScanningAlertStateQueryNullableJsonConverter),
260264
typeof(global::GitHub.JsonConverters.CodeScanningAlertSeverityJsonConverter),
@@ -315,6 +319,10 @@ namespace GitHub
315319
typeof(global::GitHub.JsonConverters.OrganizationRoleSourceNullableJsonConverter),
316320
typeof(global::GitHub.JsonConverters.TeamRoleAssignmentAssignmentJsonConverter),
317321
typeof(global::GitHub.JsonConverters.TeamRoleAssignmentAssignmentNullableJsonConverter),
322+
typeof(global::GitHub.JsonConverters.TeamRoleAssignmentTypeJsonConverter),
323+
typeof(global::GitHub.JsonConverters.TeamRoleAssignmentTypeNullableJsonConverter),
324+
typeof(global::GitHub.JsonConverters.TeamSimpleTypeJsonConverter),
325+
typeof(global::GitHub.JsonConverters.TeamSimpleTypeNullableJsonConverter),
318326
typeof(global::GitHub.JsonConverters.UserRoleAssignmentAssignmentJsonConverter),
319327
typeof(global::GitHub.JsonConverters.UserRoleAssignmentAssignmentNullableJsonConverter),
320328
typeof(global::GitHub.JsonConverters.PackageVersionMetadataPackageTypeJsonConverter),
@@ -481,6 +489,8 @@ namespace GitHub
481489
typeof(global::GitHub.JsonConverters.TeamFullPrivacyNullableJsonConverter),
482490
typeof(global::GitHub.JsonConverters.TeamFullNotificationSettingJsonConverter),
483491
typeof(global::GitHub.JsonConverters.TeamFullNotificationSettingNullableJsonConverter),
492+
typeof(global::GitHub.JsonConverters.TeamFullTypeJsonConverter),
493+
typeof(global::GitHub.JsonConverters.TeamFullTypeNullableJsonConverter),
484494
typeof(global::GitHub.JsonConverters.ReactionContentJsonConverter),
485495
typeof(global::GitHub.JsonConverters.ReactionContentNullableJsonConverter),
486496
typeof(global::GitHub.JsonConverters.TeamMembershipRoleJsonConverter),
@@ -917,10 +927,14 @@ namespace GitHub
917927
typeof(global::GitHub.JsonConverters.WebhooksTeamParentPrivacyNullableJsonConverter),
918928
typeof(global::GitHub.JsonConverters.WebhooksTeamParentNotificationSettingJsonConverter),
919929
typeof(global::GitHub.JsonConverters.WebhooksTeamParentNotificationSettingNullableJsonConverter),
930+
typeof(global::GitHub.JsonConverters.WebhooksTeamParentTypeJsonConverter),
931+
typeof(global::GitHub.JsonConverters.WebhooksTeamParentTypeNullableJsonConverter),
920932
typeof(global::GitHub.JsonConverters.WebhooksTeamPrivacyJsonConverter),
921933
typeof(global::GitHub.JsonConverters.WebhooksTeamPrivacyNullableJsonConverter),
922934
typeof(global::GitHub.JsonConverters.WebhooksTeamNotificationSettingJsonConverter),
923935
typeof(global::GitHub.JsonConverters.WebhooksTeamNotificationSettingNullableJsonConverter),
936+
typeof(global::GitHub.JsonConverters.WebhooksTeamTypeJsonConverter),
937+
typeof(global::GitHub.JsonConverters.WebhooksTeamTypeNullableJsonConverter),
924938
typeof(global::GitHub.JsonConverters.NullableRepositoryWebhooksTemplateRepositorySquashMergeCommitTitleJsonConverter),
925939
typeof(global::GitHub.JsonConverters.NullableRepositoryWebhooksTemplateRepositorySquashMergeCommitTitleNullableJsonConverter),
926940
typeof(global::GitHub.JsonConverters.NullableRepositoryWebhooksTemplateRepositorySquashMergeCommitMessageJsonConverter),
@@ -1063,10 +1077,14 @@ namespace GitHub
10631077
typeof(global::GitHub.JsonConverters.WebhooksTeam1ParentPrivacyNullableJsonConverter),
10641078
typeof(global::GitHub.JsonConverters.WebhooksTeam1ParentNotificationSettingJsonConverter),
10651079
typeof(global::GitHub.JsonConverters.WebhooksTeam1ParentNotificationSettingNullableJsonConverter),
1080+
typeof(global::GitHub.JsonConverters.WebhooksTeam1ParentTypeJsonConverter),
1081+
typeof(global::GitHub.JsonConverters.WebhooksTeam1ParentTypeNullableJsonConverter),
10661082
typeof(global::GitHub.JsonConverters.WebhooksTeam1PrivacyJsonConverter),
10671083
typeof(global::GitHub.JsonConverters.WebhooksTeam1PrivacyNullableJsonConverter),
10681084
typeof(global::GitHub.JsonConverters.WebhooksTeam1NotificationSettingJsonConverter),
10691085
typeof(global::GitHub.JsonConverters.WebhooksTeam1NotificationSettingNullableJsonConverter),
1086+
typeof(global::GitHub.JsonConverters.WebhooksTeam1TypeJsonConverter),
1087+
typeof(global::GitHub.JsonConverters.WebhooksTeam1TypeNullableJsonConverter),
10701088
typeof(global::GitHub.JsonConverters.WebhookBranchProtectionConfigurationDisabledActionJsonConverter),
10711089
typeof(global::GitHub.JsonConverters.WebhookBranchProtectionConfigurationDisabledActionNullableJsonConverter),
10721090
typeof(global::GitHub.JsonConverters.WebhookBranchProtectionConfigurationEnabledActionJsonConverter),

src/libs/GitHub/Generated/GitHub.IReposClient.ReposCreateOrUpdateCustomPropertiesValues.g.cs renamed to src/libs/GitHub/Generated/GitHub.IReposClient.ReposCustomPropertiesForReposCreateOrUpdateRepositoryValues.g.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ public partial interface IReposClient
1515
/// <param name="request"></param>
1616
/// <param name="cancellationToken">The token to cancel the operation with</param>
1717
/// <exception cref="global::GitHub.ApiException"></exception>
18-
global::System.Threading.Tasks.Task ReposCreateOrUpdateCustomPropertiesValuesAsync(
18+
global::System.Threading.Tasks.Task ReposCustomPropertiesForReposCreateOrUpdateRepositoryValuesAsync(
1919
string owner,
2020
string repo,
21-
global::GitHub.ReposCreateOrUpdateCustomPropertiesValuesRequest request,
21+
global::GitHub.ReposCustomPropertiesForReposCreateOrUpdateRepositoryValuesRequest request,
2222
global::System.Threading.CancellationToken cancellationToken = default);
2323

2424
/// <summary>
@@ -34,7 +34,7 @@ public partial interface IReposClient
3434
/// </param>
3535
/// <param name="cancellationToken">The token to cancel the operation with</param>
3636
/// <exception cref="global::System.InvalidOperationException"></exception>
37-
global::System.Threading.Tasks.Task ReposCreateOrUpdateCustomPropertiesValuesAsync(
37+
global::System.Threading.Tasks.Task ReposCustomPropertiesForReposCreateOrUpdateRepositoryValuesAsync(
3838
string owner,
3939
string repo,
4040
global::System.Collections.Generic.IList<global::GitHub.CustomPropertyValue> properties,

src/libs/GitHub/Generated/GitHub.IReposClient.ReposGetCustomPropertiesValues.g.cs renamed to src/libs/GitHub/Generated/GitHub.IReposClient.ReposCustomPropertiesForReposGetRepositoryValues.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public partial interface IReposClient
1313
/// <param name="repo"></param>
1414
/// <param name="cancellationToken">The token to cancel the operation with</param>
1515
/// <exception cref="global::GitHub.ApiException"></exception>
16-
global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::GitHub.CustomPropertyValue>> ReposGetCustomPropertiesValuesAsync(
16+
global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::GitHub.CustomPropertyValue>> ReposCustomPropertiesForReposGetRepositoryValuesAsync(
1717
string owner,
1818
string repo,
1919
global::System.Threading.CancellationToken cancellationToken = default);
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#nullable enable
2+
3+
namespace GitHub.JsonConverters
4+
{
5+
/// <inheritdoc />
6+
public sealed class NullableTeamSimpleTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::GitHub.NullableTeamSimpleType>
7+
{
8+
/// <inheritdoc />
9+
public override global::GitHub.NullableTeamSimpleType Read(
10+
ref global::System.Text.Json.Utf8JsonReader reader,
11+
global::System.Type typeToConvert,
12+
global::System.Text.Json.JsonSerializerOptions options)
13+
{
14+
switch (reader.TokenType)
15+
{
16+
case global::System.Text.Json.JsonTokenType.String:
17+
{
18+
var stringValue = reader.GetString();
19+
if (stringValue != null)
20+
{
21+
return global::GitHub.NullableTeamSimpleTypeExtensions.ToEnum(stringValue) ?? default;
22+
}
23+
24+
break;
25+
}
26+
case global::System.Text.Json.JsonTokenType.Number:
27+
{
28+
var numValue = reader.GetInt32();
29+
return (global::GitHub.NullableTeamSimpleType)numValue;
30+
}
31+
case global::System.Text.Json.JsonTokenType.Null:
32+
{
33+
return default(global::GitHub.NullableTeamSimpleType);
34+
}
35+
default:
36+
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
37+
}
38+
39+
return default;
40+
}
41+
42+
/// <inheritdoc />
43+
public override void Write(
44+
global::System.Text.Json.Utf8JsonWriter writer,
45+
global::GitHub.NullableTeamSimpleType value,
46+
global::System.Text.Json.JsonSerializerOptions options)
47+
{
48+
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
49+
50+
writer.WriteStringValue(global::GitHub.NullableTeamSimpleTypeExtensions.ToValueString(value));
51+
}
52+
}
53+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#nullable enable
2+
3+
namespace GitHub.JsonConverters
4+
{
5+
/// <inheritdoc />
6+
public sealed class NullableTeamSimpleTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::GitHub.NullableTeamSimpleType?>
7+
{
8+
/// <inheritdoc />
9+
public override global::GitHub.NullableTeamSimpleType? Read(
10+
ref global::System.Text.Json.Utf8JsonReader reader,
11+
global::System.Type typeToConvert,
12+
global::System.Text.Json.JsonSerializerOptions options)
13+
{
14+
switch (reader.TokenType)
15+
{
16+
case global::System.Text.Json.JsonTokenType.String:
17+
{
18+
var stringValue = reader.GetString();
19+
if (stringValue != null)
20+
{
21+
return global::GitHub.NullableTeamSimpleTypeExtensions.ToEnum(stringValue);
22+
}
23+
24+
break;
25+
}
26+
case global::System.Text.Json.JsonTokenType.Number:
27+
{
28+
var numValue = reader.GetInt32();
29+
return (global::GitHub.NullableTeamSimpleType)numValue;
30+
}
31+
case global::System.Text.Json.JsonTokenType.Null:
32+
{
33+
return default(global::GitHub.NullableTeamSimpleType?);
34+
}
35+
default:
36+
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
37+
}
38+
39+
return default;
40+
}
41+
42+
/// <inheritdoc />
43+
public override void Write(
44+
global::System.Text.Json.Utf8JsonWriter writer,
45+
global::GitHub.NullableTeamSimpleType? value,
46+
global::System.Text.Json.JsonSerializerOptions options)
47+
{
48+
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
49+
50+
if (value == null)
51+
{
52+
writer.WriteNullValue();
53+
}
54+
else
55+
{
56+
writer.WriteStringValue(global::GitHub.NullableTeamSimpleTypeExtensions.ToValueString(value.Value));
57+
}
58+
}
59+
}
60+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#nullable enable
2+
3+
namespace GitHub.JsonConverters
4+
{
5+
/// <inheritdoc />
6+
public sealed class TeamFullTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::GitHub.TeamFullType>
7+
{
8+
/// <inheritdoc />
9+
public override global::GitHub.TeamFullType Read(
10+
ref global::System.Text.Json.Utf8JsonReader reader,
11+
global::System.Type typeToConvert,
12+
global::System.Text.Json.JsonSerializerOptions options)
13+
{
14+
switch (reader.TokenType)
15+
{
16+
case global::System.Text.Json.JsonTokenType.String:
17+
{
18+
var stringValue = reader.GetString();
19+
if (stringValue != null)
20+
{
21+
return global::GitHub.TeamFullTypeExtensions.ToEnum(stringValue) ?? default;
22+
}
23+
24+
break;
25+
}
26+
case global::System.Text.Json.JsonTokenType.Number:
27+
{
28+
var numValue = reader.GetInt32();
29+
return (global::GitHub.TeamFullType)numValue;
30+
}
31+
case global::System.Text.Json.JsonTokenType.Null:
32+
{
33+
return default(global::GitHub.TeamFullType);
34+
}
35+
default:
36+
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
37+
}
38+
39+
return default;
40+
}
41+
42+
/// <inheritdoc />
43+
public override void Write(
44+
global::System.Text.Json.Utf8JsonWriter writer,
45+
global::GitHub.TeamFullType value,
46+
global::System.Text.Json.JsonSerializerOptions options)
47+
{
48+
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
49+
50+
writer.WriteStringValue(global::GitHub.TeamFullTypeExtensions.ToValueString(value));
51+
}
52+
}
53+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#nullable enable
2+
3+
namespace GitHub.JsonConverters
4+
{
5+
/// <inheritdoc />
6+
public sealed class TeamFullTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::GitHub.TeamFullType?>
7+
{
8+
/// <inheritdoc />
9+
public override global::GitHub.TeamFullType? Read(
10+
ref global::System.Text.Json.Utf8JsonReader reader,
11+
global::System.Type typeToConvert,
12+
global::System.Text.Json.JsonSerializerOptions options)
13+
{
14+
switch (reader.TokenType)
15+
{
16+
case global::System.Text.Json.JsonTokenType.String:
17+
{
18+
var stringValue = reader.GetString();
19+
if (stringValue != null)
20+
{
21+
return global::GitHub.TeamFullTypeExtensions.ToEnum(stringValue);
22+
}
23+
24+
break;
25+
}
26+
case global::System.Text.Json.JsonTokenType.Number:
27+
{
28+
var numValue = reader.GetInt32();
29+
return (global::GitHub.TeamFullType)numValue;
30+
}
31+
case global::System.Text.Json.JsonTokenType.Null:
32+
{
33+
return default(global::GitHub.TeamFullType?);
34+
}
35+
default:
36+
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
37+
}
38+
39+
return default;
40+
}
41+
42+
/// <inheritdoc />
43+
public override void Write(
44+
global::System.Text.Json.Utf8JsonWriter writer,
45+
global::GitHub.TeamFullType? value,
46+
global::System.Text.Json.JsonSerializerOptions options)
47+
{
48+
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
49+
50+
if (value == null)
51+
{
52+
writer.WriteNullValue();
53+
}
54+
else
55+
{
56+
writer.WriteStringValue(global::GitHub.TeamFullTypeExtensions.ToValueString(value.Value));
57+
}
58+
}
59+
}
60+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#nullable enable
2+
3+
namespace GitHub.JsonConverters
4+
{
5+
/// <inheritdoc />
6+
public sealed class TeamRoleAssignmentTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::GitHub.TeamRoleAssignmentType>
7+
{
8+
/// <inheritdoc />
9+
public override global::GitHub.TeamRoleAssignmentType Read(
10+
ref global::System.Text.Json.Utf8JsonReader reader,
11+
global::System.Type typeToConvert,
12+
global::System.Text.Json.JsonSerializerOptions options)
13+
{
14+
switch (reader.TokenType)
15+
{
16+
case global::System.Text.Json.JsonTokenType.String:
17+
{
18+
var stringValue = reader.GetString();
19+
if (stringValue != null)
20+
{
21+
return global::GitHub.TeamRoleAssignmentTypeExtensions.ToEnum(stringValue) ?? default;
22+
}
23+
24+
break;
25+
}
26+
case global::System.Text.Json.JsonTokenType.Number:
27+
{
28+
var numValue = reader.GetInt32();
29+
return (global::GitHub.TeamRoleAssignmentType)numValue;
30+
}
31+
case global::System.Text.Json.JsonTokenType.Null:
32+
{
33+
return default(global::GitHub.TeamRoleAssignmentType);
34+
}
35+
default:
36+
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
37+
}
38+
39+
return default;
40+
}
41+
42+
/// <inheritdoc />
43+
public override void Write(
44+
global::System.Text.Json.Utf8JsonWriter writer,
45+
global::GitHub.TeamRoleAssignmentType value,
46+
global::System.Text.Json.JsonSerializerOptions options)
47+
{
48+
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
49+
50+
writer.WriteStringValue(global::GitHub.TeamRoleAssignmentTypeExtensions.ToValueString(value));
51+
}
52+
}
53+
}

0 commit comments

Comments
 (0)