Skip to content

Commit f1c0b6c

Browse files
committed
New updates to generated code
1 parent ff7ace8 commit f1c0b6c

24 files changed

+1796
-3
lines changed

src/GitHub/Models/RunnerGroupsOrg.cs

+143
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Kiota.Abstractions.Extensions;
4+
using Microsoft.Kiota.Abstractions.Serialization;
5+
using System.Collections.Generic;
6+
using System.IO;
7+
using System;
8+
namespace GitHub.Models
9+
{
10+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
11+
#pragma warning disable CS1591
12+
public partial class RunnerGroupsOrg : IAdditionalDataHolder, IParsable
13+
#pragma warning restore CS1591
14+
{
15+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
16+
public IDictionary<string, object> AdditionalData { get; set; }
17+
/// <summary>The allows_public_repositories property</summary>
18+
public bool? AllowsPublicRepositories { get; set; }
19+
/// <summary>The default property</summary>
20+
public bool? Default { get; set; }
21+
/// <summary>The hosted_runners_url property</summary>
22+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
23+
#nullable enable
24+
public string? HostedRunnersUrl { get; set; }
25+
#nullable restore
26+
#else
27+
public string HostedRunnersUrl { get; set; }
28+
#endif
29+
/// <summary>The id property</summary>
30+
public double? Id { get; set; }
31+
/// <summary>The inherited property</summary>
32+
public bool? Inherited { get; set; }
33+
/// <summary>The inherited_allows_public_repositories property</summary>
34+
public bool? InheritedAllowsPublicRepositories { get; set; }
35+
/// <summary>The name property</summary>
36+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
37+
#nullable enable
38+
public string? Name { get; set; }
39+
#nullable restore
40+
#else
41+
public string Name { get; set; }
42+
#endif
43+
/// <summary>If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.</summary>
44+
public bool? RestrictedToWorkflows { get; set; }
45+
/// <summary>The runners_url property</summary>
46+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
47+
#nullable enable
48+
public string? RunnersUrl { get; set; }
49+
#nullable restore
50+
#else
51+
public string RunnersUrl { get; set; }
52+
#endif
53+
/// <summary>Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`</summary>
54+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
55+
#nullable enable
56+
public string? SelectedRepositoriesUrl { get; set; }
57+
#nullable restore
58+
#else
59+
public string SelectedRepositoriesUrl { get; set; }
60+
#endif
61+
/// <summary>List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.</summary>
62+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
63+
#nullable enable
64+
public List<string>? SelectedWorkflows { get; set; }
65+
#nullable restore
66+
#else
67+
public List<string> SelectedWorkflows { get; set; }
68+
#endif
69+
/// <summary>The visibility property</summary>
70+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
71+
#nullable enable
72+
public string? Visibility { get; set; }
73+
#nullable restore
74+
#else
75+
public string Visibility { get; set; }
76+
#endif
77+
/// <summary>If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.</summary>
78+
public bool? WorkflowRestrictionsReadOnly { get; set; }
79+
/// <summary>
80+
/// Instantiates a new <see cref="global::GitHub.Models.RunnerGroupsOrg"/> and sets the default values.
81+
/// </summary>
82+
public RunnerGroupsOrg()
83+
{
84+
AdditionalData = new Dictionary<string, object>();
85+
}
86+
/// <summary>
87+
/// Creates a new instance of the appropriate class based on discriminator value
88+
/// </summary>
89+
/// <returns>A <see cref="global::GitHub.Models.RunnerGroupsOrg"/></returns>
90+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
91+
public static global::GitHub.Models.RunnerGroupsOrg CreateFromDiscriminatorValue(IParseNode parseNode)
92+
{
93+
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
94+
return new global::GitHub.Models.RunnerGroupsOrg();
95+
}
96+
/// <summary>
97+
/// The deserialization information for the current model
98+
/// </summary>
99+
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
100+
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
101+
{
102+
return new Dictionary<string, Action<IParseNode>>
103+
{
104+
{ "allows_public_repositories", n => { AllowsPublicRepositories = n.GetBoolValue(); } },
105+
{ "default", n => { Default = n.GetBoolValue(); } },
106+
{ "hosted_runners_url", n => { HostedRunnersUrl = n.GetStringValue(); } },
107+
{ "id", n => { Id = n.GetDoubleValue(); } },
108+
{ "inherited", n => { Inherited = n.GetBoolValue(); } },
109+
{ "inherited_allows_public_repositories", n => { InheritedAllowsPublicRepositories = n.GetBoolValue(); } },
110+
{ "name", n => { Name = n.GetStringValue(); } },
111+
{ "restricted_to_workflows", n => { RestrictedToWorkflows = n.GetBoolValue(); } },
112+
{ "runners_url", n => { RunnersUrl = n.GetStringValue(); } },
113+
{ "selected_repositories_url", n => { SelectedRepositoriesUrl = n.GetStringValue(); } },
114+
{ "selected_workflows", n => { SelectedWorkflows = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
115+
{ "visibility", n => { Visibility = n.GetStringValue(); } },
116+
{ "workflow_restrictions_read_only", n => { WorkflowRestrictionsReadOnly = n.GetBoolValue(); } },
117+
};
118+
}
119+
/// <summary>
120+
/// Serializes information the current object
121+
/// </summary>
122+
/// <param name="writer">Serialization writer to use to serialize this model</param>
123+
public virtual void Serialize(ISerializationWriter writer)
124+
{
125+
_ = writer ?? throw new ArgumentNullException(nameof(writer));
126+
writer.WriteBoolValue("allows_public_repositories", AllowsPublicRepositories);
127+
writer.WriteBoolValue("default", Default);
128+
writer.WriteStringValue("hosted_runners_url", HostedRunnersUrl);
129+
writer.WriteDoubleValue("id", Id);
130+
writer.WriteBoolValue("inherited", Inherited);
131+
writer.WriteBoolValue("inherited_allows_public_repositories", InheritedAllowsPublicRepositories);
132+
writer.WriteStringValue("name", Name);
133+
writer.WriteBoolValue("restricted_to_workflows", RestrictedToWorkflows);
134+
writer.WriteStringValue("runners_url", RunnersUrl);
135+
writer.WriteStringValue("selected_repositories_url", SelectedRepositoriesUrl);
136+
writer.WriteCollectionOfPrimitiveValues<string>("selected_workflows", SelectedWorkflows);
137+
writer.WriteStringValue("visibility", Visibility);
138+
writer.WriteBoolValue("workflow_restrictions_read_only", WorkflowRestrictionsReadOnly);
139+
writer.WriteAdditionalData(AdditionalData);
140+
}
141+
}
142+
}
143+
#pragma warning restore CS0618

src/GitHub/Models/SecurityAndAnalysis.cs

+10
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ public partial class SecurityAndAnalysis : IAdditionalDataHolder, IParsable
3737
#nullable restore
3838
#else
3939
public global::GitHub.Models.SecurityAndAnalysis_secret_scanning SecretScanning { get; set; }
40+
#endif
41+
/// <summary>The secret_scanning_ai_detection property</summary>
42+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
43+
#nullable enable
44+
public global::GitHub.Models.SecurityAndAnalysis_secret_scanning_ai_detection? SecretScanningAiDetection { get; set; }
45+
#nullable restore
46+
#else
47+
public global::GitHub.Models.SecurityAndAnalysis_secret_scanning_ai_detection SecretScanningAiDetection { get; set; }
4048
#endif
4149
/// <summary>The secret_scanning_non_provider_patterns property</summary>
4250
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -82,6 +90,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
8290
{ "advanced_security", n => { AdvancedSecurity = n.GetObjectValue<global::GitHub.Models.SecurityAndAnalysis_advanced_security>(global::GitHub.Models.SecurityAndAnalysis_advanced_security.CreateFromDiscriminatorValue); } },
8391
{ "dependabot_security_updates", n => { DependabotSecurityUpdates = n.GetObjectValue<global::GitHub.Models.SecurityAndAnalysis_dependabot_security_updates>(global::GitHub.Models.SecurityAndAnalysis_dependabot_security_updates.CreateFromDiscriminatorValue); } },
8492
{ "secret_scanning", n => { SecretScanning = n.GetObjectValue<global::GitHub.Models.SecurityAndAnalysis_secret_scanning>(global::GitHub.Models.SecurityAndAnalysis_secret_scanning.CreateFromDiscriminatorValue); } },
93+
{ "secret_scanning_ai_detection", n => { SecretScanningAiDetection = n.GetObjectValue<global::GitHub.Models.SecurityAndAnalysis_secret_scanning_ai_detection>(global::GitHub.Models.SecurityAndAnalysis_secret_scanning_ai_detection.CreateFromDiscriminatorValue); } },
8594
{ "secret_scanning_non_provider_patterns", n => { SecretScanningNonProviderPatterns = n.GetObjectValue<global::GitHub.Models.SecurityAndAnalysis_secret_scanning_non_provider_patterns>(global::GitHub.Models.SecurityAndAnalysis_secret_scanning_non_provider_patterns.CreateFromDiscriminatorValue); } },
8695
{ "secret_scanning_push_protection", n => { SecretScanningPushProtection = n.GetObjectValue<global::GitHub.Models.SecurityAndAnalysis_secret_scanning_push_protection>(global::GitHub.Models.SecurityAndAnalysis_secret_scanning_push_protection.CreateFromDiscriminatorValue); } },
8796
};
@@ -96,6 +105,7 @@ public virtual void Serialize(ISerializationWriter writer)
96105
writer.WriteObjectValue<global::GitHub.Models.SecurityAndAnalysis_advanced_security>("advanced_security", AdvancedSecurity);
97106
writer.WriteObjectValue<global::GitHub.Models.SecurityAndAnalysis_dependabot_security_updates>("dependabot_security_updates", DependabotSecurityUpdates);
98107
writer.WriteObjectValue<global::GitHub.Models.SecurityAndAnalysis_secret_scanning>("secret_scanning", SecretScanning);
108+
writer.WriteObjectValue<global::GitHub.Models.SecurityAndAnalysis_secret_scanning_ai_detection>("secret_scanning_ai_detection", SecretScanningAiDetection);
99109
writer.WriteObjectValue<global::GitHub.Models.SecurityAndAnalysis_secret_scanning_non_provider_patterns>("secret_scanning_non_provider_patterns", SecretScanningNonProviderPatterns);
100110
writer.WriteObjectValue<global::GitHub.Models.SecurityAndAnalysis_secret_scanning_push_protection>("secret_scanning_push_protection", SecretScanningPushProtection);
101111
writer.WriteAdditionalData(AdditionalData);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Kiota.Abstractions.Extensions;
4+
using Microsoft.Kiota.Abstractions.Serialization;
5+
using System.Collections.Generic;
6+
using System.IO;
7+
using System;
8+
namespace GitHub.Models
9+
{
10+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
11+
#pragma warning disable CS1591
12+
public partial class SecurityAndAnalysis_secret_scanning_ai_detection : IAdditionalDataHolder, IParsable
13+
#pragma warning restore CS1591
14+
{
15+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
16+
public IDictionary<string, object> AdditionalData { get; set; }
17+
/// <summary>The status property</summary>
18+
public global::GitHub.Models.SecurityAndAnalysis_secret_scanning_ai_detection_status? Status { get; set; }
19+
/// <summary>
20+
/// Instantiates a new <see cref="global::GitHub.Models.SecurityAndAnalysis_secret_scanning_ai_detection"/> and sets the default values.
21+
/// </summary>
22+
public SecurityAndAnalysis_secret_scanning_ai_detection()
23+
{
24+
AdditionalData = new Dictionary<string, object>();
25+
}
26+
/// <summary>
27+
/// Creates a new instance of the appropriate class based on discriminator value
28+
/// </summary>
29+
/// <returns>A <see cref="global::GitHub.Models.SecurityAndAnalysis_secret_scanning_ai_detection"/></returns>
30+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
31+
public static global::GitHub.Models.SecurityAndAnalysis_secret_scanning_ai_detection CreateFromDiscriminatorValue(IParseNode parseNode)
32+
{
33+
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
34+
return new global::GitHub.Models.SecurityAndAnalysis_secret_scanning_ai_detection();
35+
}
36+
/// <summary>
37+
/// The deserialization information for the current model
38+
/// </summary>
39+
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
40+
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
41+
{
42+
return new Dictionary<string, Action<IParseNode>>
43+
{
44+
{ "status", n => { Status = n.GetEnumValue<global::GitHub.Models.SecurityAndAnalysis_secret_scanning_ai_detection_status>(); } },
45+
};
46+
}
47+
/// <summary>
48+
/// Serializes information the current object
49+
/// </summary>
50+
/// <param name="writer">Serialization writer to use to serialize this model</param>
51+
public virtual void Serialize(ISerializationWriter writer)
52+
{
53+
_ = writer ?? throw new ArgumentNullException(nameof(writer));
54+
writer.WriteEnumValue<global::GitHub.Models.SecurityAndAnalysis_secret_scanning_ai_detection_status>("status", Status);
55+
writer.WriteAdditionalData(AdditionalData);
56+
}
57+
}
58+
}
59+
#pragma warning restore CS0618
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// <auto-generated/>
2+
using System.Runtime.Serialization;
3+
using System;
4+
namespace GitHub.Models
5+
{
6+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
7+
#pragma warning disable CS1591
8+
public enum SecurityAndAnalysis_secret_scanning_ai_detection_status
9+
#pragma warning restore CS1591
10+
{
11+
[EnumMember(Value = "enabled")]
12+
#pragma warning disable CS1591
13+
Enabled,
14+
#pragma warning restore CS1591
15+
[EnumMember(Value = "disabled")]
16+
#pragma warning disable CS1591
17+
Disabled,
18+
#pragma warning restore CS1591
19+
}
20+
}

src/GitHub/Orgs/Item/Actions/ActionsRequestBuilder.cs

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using GitHub.Orgs.Item.Actions.Cache;
44
using GitHub.Orgs.Item.Actions.Oidc;
55
using GitHub.Orgs.Item.Actions.Permissions;
6+
using GitHub.Orgs.Item.Actions.RunnerGroups;
67
using GitHub.Orgs.Item.Actions.Runners;
78
using GitHub.Orgs.Item.Actions.Secrets;
89
using GitHub.Orgs.Item.Actions.Variables;
@@ -35,6 +36,11 @@ public partial class ActionsRequestBuilder : BaseRequestBuilder
3536
{
3637
get => new global::GitHub.Orgs.Item.Actions.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter);
3738
}
39+
/// <summary>The runnerGroups property</summary>
40+
public global::GitHub.Orgs.Item.Actions.RunnerGroups.RunnerGroupsRequestBuilder RunnerGroups
41+
{
42+
get => new global::GitHub.Orgs.Item.Actions.RunnerGroups.RunnerGroupsRequestBuilder(PathParameters, RequestAdapter);
43+
}
3844
/// <summary>The runners property</summary>
3945
public global::GitHub.Orgs.Item.Actions.Runners.RunnersRequestBuilder Runners
4046
{

0 commit comments

Comments
 (0)