Skip to content

Commit 35d2211

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 208109
1 parent ecf0b35 commit 35d2211

File tree

10 files changed

+240
-3
lines changed

10 files changed

+240
-3
lines changed
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Kiota.Abstractions.Extensions;
4+
using Microsoft.Kiota.Abstractions.Serialization;
5+
using Microsoft.Kiota.Abstractions.Store;
6+
using System.Collections.Generic;
7+
using System.IO;
8+
using System;
9+
namespace Microsoft.Graph.Models
10+
{
11+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
12+
#pragma warning disable CS1591
13+
public partial class ProtectionPolicyArtifactCount : IAdditionalDataHolder, IBackedModel, IParsable
14+
#pragma warning restore CS1591
15+
{
16+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
17+
public IDictionary<string, object> AdditionalData
18+
{
19+
get { return BackingStore.Get<IDictionary<string, object>>("AdditionalData") ?? new Dictionary<string, object>(); }
20+
set { BackingStore.Set("AdditionalData", value); }
21+
}
22+
/// <summary>Stores model information.</summary>
23+
public IBackingStore BackingStore { get; private set; }
24+
/// <summary>The completed property</summary>
25+
public int? Completed
26+
{
27+
get { return BackingStore?.Get<int?>("completed"); }
28+
set { BackingStore?.Set("completed", value); }
29+
}
30+
/// <summary>The failed property</summary>
31+
public int? Failed
32+
{
33+
get { return BackingStore?.Get<int?>("failed"); }
34+
set { BackingStore?.Set("failed", value); }
35+
}
36+
/// <summary>The inProgress property</summary>
37+
public int? InProgress
38+
{
39+
get { return BackingStore?.Get<int?>("inProgress"); }
40+
set { BackingStore?.Set("inProgress", value); }
41+
}
42+
/// <summary>The OdataType property</summary>
43+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
44+
#nullable enable
45+
public string? OdataType
46+
{
47+
get { return BackingStore?.Get<string?>("@odata.type"); }
48+
set { BackingStore?.Set("@odata.type", value); }
49+
}
50+
#nullable restore
51+
#else
52+
public string OdataType
53+
{
54+
get { return BackingStore?.Get<string>("@odata.type"); }
55+
set { BackingStore?.Set("@odata.type", value); }
56+
}
57+
#endif
58+
/// <summary>The total property</summary>
59+
public int? Total
60+
{
61+
get { return BackingStore?.Get<int?>("total"); }
62+
set { BackingStore?.Set("total", value); }
63+
}
64+
/// <summary>
65+
/// Instantiates a new <see cref="global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount"/> and sets the default values.
66+
/// </summary>
67+
public ProtectionPolicyArtifactCount()
68+
{
69+
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
70+
AdditionalData = new Dictionary<string, object>();
71+
}
72+
/// <summary>
73+
/// Creates a new instance of the appropriate class based on discriminator value
74+
/// </summary>
75+
/// <returns>A <see cref="global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount"/></returns>
76+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
77+
public static global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount CreateFromDiscriminatorValue(IParseNode parseNode)
78+
{
79+
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
80+
return new global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount();
81+
}
82+
/// <summary>
83+
/// The deserialization information for the current model
84+
/// </summary>
85+
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
86+
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
87+
{
88+
return new Dictionary<string, Action<IParseNode>>
89+
{
90+
{ "completed", n => { Completed = n.GetIntValue(); } },
91+
{ "failed", n => { Failed = n.GetIntValue(); } },
92+
{ "inProgress", n => { InProgress = n.GetIntValue(); } },
93+
{ "@odata.type", n => { OdataType = n.GetStringValue(); } },
94+
{ "total", n => { Total = n.GetIntValue(); } },
95+
};
96+
}
97+
/// <summary>
98+
/// Serializes information the current object
99+
/// </summary>
100+
/// <param name="writer">Serialization writer to use to serialize this model</param>
101+
public virtual void Serialize(ISerializationWriter writer)
102+
{
103+
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
104+
writer.WriteIntValue("completed", Completed);
105+
writer.WriteIntValue("failed", Failed);
106+
writer.WriteIntValue("inProgress", InProgress);
107+
writer.WriteStringValue("@odata.type", OdataType);
108+
writer.WriteIntValue("total", Total);
109+
writer.WriteAdditionalData(AdditionalData);
110+
}
111+
}
112+
}
113+
#pragma warning restore CS0618

src/Microsoft.Graph/Generated/Models/ProtectionPolicyBase.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ public string DisplayName
5050
set { BackingStore?.Set("displayName", value); }
5151
}
5252
#endif
53+
/// <summary>The isEnabled property</summary>
54+
public bool? IsEnabled
55+
{
56+
get { return BackingStore?.Get<bool?>("isEnabled"); }
57+
set { BackingStore?.Set("isEnabled", value); }
58+
}
5359
/// <summary>The identity of the person who last modified the policy.</summary>
5460
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
5561
#nullable enable
@@ -72,6 +78,22 @@ public DateTimeOffset? LastModifiedDateTime
7278
get { return BackingStore?.Get<DateTimeOffset?>("lastModifiedDateTime"); }
7379
set { BackingStore?.Set("lastModifiedDateTime", value); }
7480
}
81+
/// <summary>The protectionPolicyArtifactCount property</summary>
82+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
83+
#nullable enable
84+
public global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount? ProtectionPolicyArtifactCount
85+
{
86+
get { return BackingStore?.Get<global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount?>("protectionPolicyArtifactCount"); }
87+
set { BackingStore?.Set("protectionPolicyArtifactCount", value); }
88+
}
89+
#nullable restore
90+
#else
91+
public global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount ProtectionPolicyArtifactCount
92+
{
93+
get { return BackingStore?.Get<global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount>("protectionPolicyArtifactCount"); }
94+
set { BackingStore?.Set("protectionPolicyArtifactCount", value); }
95+
}
96+
#endif
7597
/// <summary>Contains the retention setting details for the policy.</summary>
7698
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
7799
#nullable enable
@@ -122,8 +144,10 @@ public override IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
122144
{ "createdBy", n => { CreatedBy = n.GetObjectValue<global::Microsoft.Graph.Models.IdentitySet>(global::Microsoft.Graph.Models.IdentitySet.CreateFromDiscriminatorValue); } },
123145
{ "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } },
124146
{ "displayName", n => { DisplayName = n.GetStringValue(); } },
147+
{ "isEnabled", n => { IsEnabled = n.GetBoolValue(); } },
125148
{ "lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue<global::Microsoft.Graph.Models.IdentitySet>(global::Microsoft.Graph.Models.IdentitySet.CreateFromDiscriminatorValue); } },
126149
{ "lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } },
150+
{ "protectionPolicyArtifactCount", n => { ProtectionPolicyArtifactCount = n.GetObjectValue<global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount>(global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount.CreateFromDiscriminatorValue); } },
127151
{ "retentionSettings", n => { RetentionSettings = n.GetCollectionOfObjectValues<global::Microsoft.Graph.Models.RetentionSetting>(global::Microsoft.Graph.Models.RetentionSetting.CreateFromDiscriminatorValue)?.AsList(); } },
128152
{ "status", n => { Status = n.GetEnumValue<global::Microsoft.Graph.Models.ProtectionPolicyStatus>(); } },
129153
};
@@ -139,8 +163,10 @@ public override void Serialize(ISerializationWriter writer)
139163
writer.WriteObjectValue<global::Microsoft.Graph.Models.IdentitySet>("createdBy", CreatedBy);
140164
writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime);
141165
writer.WriteStringValue("displayName", DisplayName);
166+
writer.WriteBoolValue("isEnabled", IsEnabled);
142167
writer.WriteObjectValue<global::Microsoft.Graph.Models.IdentitySet>("lastModifiedBy", LastModifiedBy);
143168
writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime);
169+
writer.WriteObjectValue<global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount>("protectionPolicyArtifactCount", ProtectionPolicyArtifactCount);
144170
writer.WriteCollectionOfObjectValues<global::Microsoft.Graph.Models.RetentionSetting>("retentionSettings", RetentionSettings);
145171
writer.WriteEnumValue<global::Microsoft.Graph.Models.ProtectionPolicyStatus>("status", Status);
146172
}

src/Microsoft.Graph/Generated/Models/Security/Alert.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public string Description
168168
set { BackingStore?.Set("description", value); }
169169
}
170170
#endif
171-
/// <summary>Detection technology or sensor that identified the notable component or activity. The possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl, microsoftThreatIntelligence, microsoftDefenderForAIServices, securityCopilot. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl, microsoftThreatIntelligence, microsoftDefenderForAIServices, securityCopilot.</summary>
171+
/// <summary>Detection technology or sensor that identified the notable component or activity.</summary>
172172
public global::Microsoft.Graph.Models.Security.DetectionSource? DetectionSource
173173
{
174174
get { return BackingStore?.Get<global::Microsoft.Graph.Models.Security.DetectionSource?>("detectionSource"); }

src/Microsoft.Graph/Generated/Models/Security/Incident.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,12 @@ public DateTimeOffset? LastUpdateDateTime
164164
get { return BackingStore?.Get<DateTimeOffset?>("lastUpdateDateTime"); }
165165
set { BackingStore?.Set("lastUpdateDateTime", value); }
166166
}
167+
/// <summary>The priorityScore property</summary>
168+
public int? PriorityScore
169+
{
170+
get { return BackingStore?.Get<int?>("priorityScore"); }
171+
set { BackingStore?.Set("priorityScore", value); }
172+
}
167173
/// <summary>Only populated in case an incident is grouped with another incident, as part of the logic that processes incidents. In such a case, the status property is redirected.</summary>
168174
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
169175
#nullable enable
@@ -286,6 +292,7 @@ public override IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
286292
{ "incidentWebUrl", n => { IncidentWebUrl = n.GetStringValue(); } },
287293
{ "lastModifiedBy", n => { LastModifiedBy = n.GetStringValue(); } },
288294
{ "lastUpdateDateTime", n => { LastUpdateDateTime = n.GetDateTimeOffsetValue(); } },
295+
{ "priorityScore", n => { PriorityScore = n.GetIntValue(); } },
289296
{ "redirectIncidentId", n => { RedirectIncidentId = n.GetStringValue(); } },
290297
{ "resolvingComment", n => { ResolvingComment = n.GetStringValue(); } },
291298
{ "severity", n => { Severity = n.GetEnumValue<global::Microsoft.Graph.Models.Security.AlertSeverity>(); } },
@@ -315,6 +322,7 @@ public override void Serialize(ISerializationWriter writer)
315322
writer.WriteStringValue("incidentWebUrl", IncidentWebUrl);
316323
writer.WriteStringValue("lastModifiedBy", LastModifiedBy);
317324
writer.WriteDateTimeOffsetValue("lastUpdateDateTime", LastUpdateDateTime);
325+
writer.WriteIntValue("priorityScore", PriorityScore);
318326
writer.WriteStringValue("redirectIncidentId", RedirectIncidentId);
319327
writer.WriteStringValue("resolvingComment", ResolvingComment);
320328
writer.WriteEnumValue<global::Microsoft.Graph.Models.Security.AlertSeverity>("severity", Severity);

src/Microsoft.Graph/Generated/Models/Security/Sensor.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ public long? OpenHealthIssuesCount
9090
get { return BackingStore?.Get<global::Microsoft.Graph.Models.Security.SensorType?>("sensorType"); }
9191
set { BackingStore?.Set("sensorType", value); }
9292
}
93+
/// <summary>The serviceStatus property</summary>
94+
public global::Microsoft.Graph.Models.Security.ServiceStatus? ServiceStatus
95+
{
96+
get { return BackingStore?.Get<global::Microsoft.Graph.Models.Security.ServiceStatus?>("serviceStatus"); }
97+
set { BackingStore?.Set("serviceStatus", value); }
98+
}
9399
/// <summary>The settings property</summary>
94100
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
95101
#nullable enable
@@ -148,6 +154,7 @@ public override IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
148154
{ "healthStatus", n => { HealthStatus = n.GetEnumValue<global::Microsoft.Graph.Models.Security.SensorHealthStatus>(); } },
149155
{ "openHealthIssuesCount", n => { OpenHealthIssuesCount = n.GetLongValue(); } },
150156
{ "sensorType", n => { SensorType = n.GetEnumValue<global::Microsoft.Graph.Models.Security.SensorType>(); } },
157+
{ "serviceStatus", n => { ServiceStatus = n.GetEnumValue<global::Microsoft.Graph.Models.Security.ServiceStatus>(); } },
151158
{ "settings", n => { Settings = n.GetObjectValue<global::Microsoft.Graph.Models.Security.SensorSettings>(global::Microsoft.Graph.Models.Security.SensorSettings.CreateFromDiscriminatorValue); } },
152159
{ "version", n => { Version = n.GetStringValue(); } },
153160
};
@@ -168,6 +175,7 @@ public override void Serialize(ISerializationWriter writer)
168175
writer.WriteEnumValue<global::Microsoft.Graph.Models.Security.SensorHealthStatus>("healthStatus", HealthStatus);
169176
writer.WriteLongValue("openHealthIssuesCount", OpenHealthIssuesCount);
170177
writer.WriteEnumValue<global::Microsoft.Graph.Models.Security.SensorType>("sensorType", SensorType);
178+
writer.WriteEnumValue<global::Microsoft.Graph.Models.Security.ServiceStatus>("serviceStatus", ServiceStatus);
171179
writer.WriteObjectValue<global::Microsoft.Graph.Models.Security.SensorSettings>("settings", Settings);
172180
writer.WriteStringValue("version", Version);
173181
}

src/Microsoft.Graph/Generated/Models/Security/SensorCandidate.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,22 @@ public string ComputerDnsName
2727
get { return BackingStore?.Get<string>("computerDnsName"); }
2828
set { BackingStore?.Set("computerDnsName", value); }
2929
}
30+
#endif
31+
/// <summary>The domain name of the sensor.</summary>
32+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
33+
#nullable enable
34+
public string? DomainName
35+
{
36+
get { return BackingStore?.Get<string?>("domainName"); }
37+
set { BackingStore?.Set("domainName", value); }
38+
}
39+
#nullable restore
40+
#else
41+
public string DomainName
42+
{
43+
get { return BackingStore?.Get<string>("domainName"); }
44+
set { BackingStore?.Set("domainName", value); }
45+
}
3046
#endif
3147
/// <summary>The date and time when the sensor was last seen.</summary>
3248
public DateTimeOffset? LastSeenDateTime
@@ -69,6 +85,7 @@ public override IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
6985
return new Dictionary<string, Action<IParseNode>>(base.GetFieldDeserializers())
7086
{
7187
{ "computerDnsName", n => { ComputerDnsName = n.GetStringValue(); } },
88+
{ "domainName", n => { DomainName = n.GetStringValue(); } },
7289
{ "lastSeenDateTime", n => { LastSeenDateTime = n.GetDateTimeOffsetValue(); } },
7390
{ "senseClientVersion", n => { SenseClientVersion = n.GetStringValue(); } },
7491
};
@@ -82,6 +99,7 @@ public override void Serialize(ISerializationWriter writer)
8299
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
83100
base.Serialize(writer);
84101
writer.WriteStringValue("computerDnsName", ComputerDnsName);
102+
writer.WriteStringValue("domainName", DomainName);
85103
writer.WriteDateTimeOffsetValue("lastSeenDateTime", LastSeenDateTime);
86104
writer.WriteStringValue("senseClientVersion", SenseClientVersion);
87105
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// <auto-generated/>
2+
using System.Runtime.Serialization;
3+
using System;
4+
namespace Microsoft.Graph.Models.Security
5+
{
6+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
7+
#pragma warning disable CS1591
8+
public enum ServiceStatus
9+
#pragma warning restore CS1591
10+
{
11+
[EnumMember(Value = "stopped")]
12+
#pragma warning disable CS1591
13+
Stopped,
14+
#pragma warning restore CS1591
15+
[EnumMember(Value = "starting")]
16+
#pragma warning disable CS1591
17+
Starting,
18+
#pragma warning restore CS1591
19+
[EnumMember(Value = "running")]
20+
#pragma warning disable CS1591
21+
Running,
22+
#pragma warning restore CS1591
23+
[EnumMember(Value = "disabled")]
24+
#pragma warning disable CS1591
25+
Disabled,
26+
#pragma warning restore CS1591
27+
[EnumMember(Value = "onboarding")]
28+
#pragma warning disable CS1591
29+
Onboarding,
30+
#pragma warning restore CS1591
31+
[EnumMember(Value = "unknown")]
32+
#pragma warning disable CS1591
33+
Unknown,
34+
#pragma warning restore CS1591
35+
[EnumMember(Value = "unknownFutureValue")]
36+
#pragma warning disable CS1591
37+
UnknownFutureValue,
38+
#pragma warning restore CS1591
39+
}
40+
}

0 commit comments

Comments
 (0)