Skip to content
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
// <auto-generated/>
#pragma warning disable CS0618
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions.Store;
using System.Collections.Generic;
using System.IO;
using System;
namespace Microsoft.Graph.Models
{
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
public partial class ProtectionPolicyArtifactCount : IAdditionalDataHolder, IBackedModel, IParsable
#pragma warning restore CS1591
{
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData
{
get { return BackingStore.Get<IDictionary<string, object>>("AdditionalData") ?? new Dictionary<string, object>(); }
set { BackingStore.Set("AdditionalData", value); }
}
/// <summary>Stores model information.</summary>
public IBackingStore BackingStore { get; private set; }
/// <summary>The completed property</summary>
public int? Completed
{
get { return BackingStore?.Get<int?>("completed"); }
set { BackingStore?.Set("completed", value); }
}
/// <summary>The failed property</summary>
public int? Failed
{
get { return BackingStore?.Get<int?>("failed"); }
set { BackingStore?.Set("failed", value); }
}
/// <summary>The inProgress property</summary>
public int? InProgress
{
get { return BackingStore?.Get<int?>("inProgress"); }
set { BackingStore?.Set("inProgress", value); }
}
/// <summary>The OdataType property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? OdataType
{
get { return BackingStore?.Get<string?>("@odata.type"); }
set { BackingStore?.Set("@odata.type", value); }
}
#nullable restore
#else
public string OdataType
{
get { return BackingStore?.Get<string>("@odata.type"); }
set { BackingStore?.Set("@odata.type", value); }
}
#endif
/// <summary>The total property</summary>
public int? Total
{
get { return BackingStore?.Get<int?>("total"); }
set { BackingStore?.Set("total", value); }
}
/// <summary>
/// Instantiates a new <see cref="global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount"/> and sets the default values.
/// </summary>
public ProtectionPolicyArtifactCount()
{
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
AdditionalData = new Dictionary<string, object>();
}
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount CreateFromDiscriminatorValue(IParseNode parseNode)
{
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
return new global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{
return new Dictionary<string, Action<IParseNode>>
{
{ "completed", n => { Completed = n.GetIntValue(); } },
{ "failed", n => { Failed = n.GetIntValue(); } },
{ "inProgress", n => { InProgress = n.GetIntValue(); } },
{ "@odata.type", n => { OdataType = n.GetStringValue(); } },
{ "total", n => { Total = n.GetIntValue(); } },
};
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
writer.WriteIntValue("completed", Completed);
writer.WriteIntValue("failed", Failed);
writer.WriteIntValue("inProgress", InProgress);
writer.WriteStringValue("@odata.type", OdataType);
writer.WriteIntValue("total", Total);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618
26 changes: 26 additions & 0 deletions src/Microsoft.Graph/Generated/Models/ProtectionPolicyBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ public string DisplayName
set { BackingStore?.Set("displayName", value); }
}
#endif
/// <summary>The isEnabled property</summary>
public bool? IsEnabled
{
get { return BackingStore?.Get<bool?>("isEnabled"); }
set { BackingStore?.Set("isEnabled", value); }
}
/// <summary>The identity of the person who last modified the policy.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand All @@ -72,6 +78,22 @@ public DateTimeOffset? LastModifiedDateTime
get { return BackingStore?.Get<DateTimeOffset?>("lastModifiedDateTime"); }
set { BackingStore?.Set("lastModifiedDateTime", value); }
}
/// <summary>The protectionPolicyArtifactCount property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount? ProtectionPolicyArtifactCount
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount?>("protectionPolicyArtifactCount"); }
set { BackingStore?.Set("protectionPolicyArtifactCount", value); }
}
#nullable restore
#else
public global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount ProtectionPolicyArtifactCount
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount>("protectionPolicyArtifactCount"); }
set { BackingStore?.Set("protectionPolicyArtifactCount", value); }
}
#endif
/// <summary>Contains the retention setting details for the policy.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down Expand Up @@ -122,8 +144,10 @@ public override IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{ "createdBy", n => { CreatedBy = n.GetObjectValue<global::Microsoft.Graph.Models.IdentitySet>(global::Microsoft.Graph.Models.IdentitySet.CreateFromDiscriminatorValue); } },
{ "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } },
{ "displayName", n => { DisplayName = n.GetStringValue(); } },
{ "isEnabled", n => { IsEnabled = n.GetBoolValue(); } },
{ "lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue<global::Microsoft.Graph.Models.IdentitySet>(global::Microsoft.Graph.Models.IdentitySet.CreateFromDiscriminatorValue); } },
{ "lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } },
{ "protectionPolicyArtifactCount", n => { ProtectionPolicyArtifactCount = n.GetObjectValue<global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount>(global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount.CreateFromDiscriminatorValue); } },
{ "retentionSettings", n => { RetentionSettings = n.GetCollectionOfObjectValues<global::Microsoft.Graph.Models.RetentionSetting>(global::Microsoft.Graph.Models.RetentionSetting.CreateFromDiscriminatorValue)?.AsList(); } },
{ "status", n => { Status = n.GetEnumValue<global::Microsoft.Graph.Models.ProtectionPolicyStatus>(); } },
};
Expand All @@ -139,8 +163,10 @@ public override void Serialize(ISerializationWriter writer)
writer.WriteObjectValue<global::Microsoft.Graph.Models.IdentitySet>("createdBy", CreatedBy);
writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime);
writer.WriteStringValue("displayName", DisplayName);
writer.WriteBoolValue("isEnabled", IsEnabled);
writer.WriteObjectValue<global::Microsoft.Graph.Models.IdentitySet>("lastModifiedBy", LastModifiedBy);
writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime);
writer.WriteObjectValue<global::Microsoft.Graph.Models.ProtectionPolicyArtifactCount>("protectionPolicyArtifactCount", ProtectionPolicyArtifactCount);
writer.WriteCollectionOfObjectValues<global::Microsoft.Graph.Models.RetentionSetting>("retentionSettings", RetentionSettings);
writer.WriteEnumValue<global::Microsoft.Graph.Models.ProtectionPolicyStatus>("status", Status);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Generated/Models/Security/Alert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public string Description
set { BackingStore?.Set("description", value); }
}
#endif
/// <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>
/// <summary>Detection technology or sensor that identified the notable component or activity.</summary>
public global::Microsoft.Graph.Models.Security.DetectionSource? DetectionSource
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.Security.DetectionSource?>("detectionSource"); }
Expand Down
8 changes: 8 additions & 0 deletions src/Microsoft.Graph/Generated/Models/Security/Incident.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ public DateTimeOffset? LastUpdateDateTime
get { return BackingStore?.Get<DateTimeOffset?>("lastUpdateDateTime"); }
set { BackingStore?.Set("lastUpdateDateTime", value); }
}
/// <summary>The priorityScore property</summary>
public int? PriorityScore
{
get { return BackingStore?.Get<int?>("priorityScore"); }
set { BackingStore?.Set("priorityScore", value); }
}
/// <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>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down Expand Up @@ -286,6 +292,7 @@ public override IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{ "incidentWebUrl", n => { IncidentWebUrl = n.GetStringValue(); } },
{ "lastModifiedBy", n => { LastModifiedBy = n.GetStringValue(); } },
{ "lastUpdateDateTime", n => { LastUpdateDateTime = n.GetDateTimeOffsetValue(); } },
{ "priorityScore", n => { PriorityScore = n.GetIntValue(); } },
{ "redirectIncidentId", n => { RedirectIncidentId = n.GetStringValue(); } },
{ "resolvingComment", n => { ResolvingComment = n.GetStringValue(); } },
{ "severity", n => { Severity = n.GetEnumValue<global::Microsoft.Graph.Models.Security.AlertSeverity>(); } },
Expand Down Expand Up @@ -315,6 +322,7 @@ public override void Serialize(ISerializationWriter writer)
writer.WriteStringValue("incidentWebUrl", IncidentWebUrl);
writer.WriteStringValue("lastModifiedBy", LastModifiedBy);
writer.WriteDateTimeOffsetValue("lastUpdateDateTime", LastUpdateDateTime);
writer.WriteIntValue("priorityScore", PriorityScore);
writer.WriteStringValue("redirectIncidentId", RedirectIncidentId);
writer.WriteStringValue("resolvingComment", ResolvingComment);
writer.WriteEnumValue<global::Microsoft.Graph.Models.Security.AlertSeverity>("severity", Severity);
Expand Down
8 changes: 8 additions & 0 deletions src/Microsoft.Graph/Generated/Models/Security/Sensor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ public long? OpenHealthIssuesCount
get { return BackingStore?.Get<global::Microsoft.Graph.Models.Security.SensorType?>("sensorType"); }
set { BackingStore?.Set("sensorType", value); }
}
/// <summary>The serviceStatus property</summary>
public global::Microsoft.Graph.Models.Security.ServiceStatus? ServiceStatus
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.Security.ServiceStatus?>("serviceStatus"); }
set { BackingStore?.Set("serviceStatus", value); }
}
/// <summary>The settings property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down Expand Up @@ -148,6 +154,7 @@ public override IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{ "healthStatus", n => { HealthStatus = n.GetEnumValue<global::Microsoft.Graph.Models.Security.SensorHealthStatus>(); } },
{ "openHealthIssuesCount", n => { OpenHealthIssuesCount = n.GetLongValue(); } },
{ "sensorType", n => { SensorType = n.GetEnumValue<global::Microsoft.Graph.Models.Security.SensorType>(); } },
{ "serviceStatus", n => { ServiceStatus = n.GetEnumValue<global::Microsoft.Graph.Models.Security.ServiceStatus>(); } },
{ "settings", n => { Settings = n.GetObjectValue<global::Microsoft.Graph.Models.Security.SensorSettings>(global::Microsoft.Graph.Models.Security.SensorSettings.CreateFromDiscriminatorValue); } },
{ "version", n => { Version = n.GetStringValue(); } },
};
Expand All @@ -168,6 +175,7 @@ public override void Serialize(ISerializationWriter writer)
writer.WriteEnumValue<global::Microsoft.Graph.Models.Security.SensorHealthStatus>("healthStatus", HealthStatus);
writer.WriteLongValue("openHealthIssuesCount", OpenHealthIssuesCount);
writer.WriteEnumValue<global::Microsoft.Graph.Models.Security.SensorType>("sensorType", SensorType);
writer.WriteEnumValue<global::Microsoft.Graph.Models.Security.ServiceStatus>("serviceStatus", ServiceStatus);
writer.WriteObjectValue<global::Microsoft.Graph.Models.Security.SensorSettings>("settings", Settings);
writer.WriteStringValue("version", Version);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,22 @@ public string ComputerDnsName
get { return BackingStore?.Get<string>("computerDnsName"); }
set { BackingStore?.Set("computerDnsName", value); }
}
#endif
/// <summary>The domain name of the sensor.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? DomainName
{
get { return BackingStore?.Get<string?>("domainName"); }
set { BackingStore?.Set("domainName", value); }
}
#nullable restore
#else
public string DomainName
{
get { return BackingStore?.Get<string>("domainName"); }
set { BackingStore?.Set("domainName", value); }
}
#endif
/// <summary>The date and time when the sensor was last seen.</summary>
public DateTimeOffset? LastSeenDateTime
Expand Down Expand Up @@ -69,6 +85,7 @@ public override IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
return new Dictionary<string, Action<IParseNode>>(base.GetFieldDeserializers())
{
{ "computerDnsName", n => { ComputerDnsName = n.GetStringValue(); } },
{ "domainName", n => { DomainName = n.GetStringValue(); } },
{ "lastSeenDateTime", n => { LastSeenDateTime = n.GetDateTimeOffsetValue(); } },
{ "senseClientVersion", n => { SenseClientVersion = n.GetStringValue(); } },
};
Expand All @@ -82,6 +99,7 @@ public override void Serialize(ISerializationWriter writer)
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
base.Serialize(writer);
writer.WriteStringValue("computerDnsName", ComputerDnsName);
writer.WriteStringValue("domainName", DomainName);
writer.WriteDateTimeOffsetValue("lastSeenDateTime", LastSeenDateTime);
writer.WriteStringValue("senseClientVersion", SenseClientVersion);
}
Expand Down
40 changes: 40 additions & 0 deletions src/Microsoft.Graph/Generated/Models/Security/ServiceStatus.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// <auto-generated/>
using System.Runtime.Serialization;
using System;
namespace Microsoft.Graph.Models.Security
{
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
public enum ServiceStatus
#pragma warning restore CS1591
{
[EnumMember(Value = "stopped")]
#pragma warning disable CS1591
Stopped,
#pragma warning restore CS1591
[EnumMember(Value = "starting")]
#pragma warning disable CS1591
Starting,
#pragma warning restore CS1591
[EnumMember(Value = "running")]
#pragma warning disable CS1591
Running,
#pragma warning restore CS1591
[EnumMember(Value = "disabled")]
#pragma warning disable CS1591
Disabled,
#pragma warning restore CS1591
[EnumMember(Value = "onboarding")]
#pragma warning disable CS1591
Onboarding,
#pragma warning restore CS1591
[EnumMember(Value = "unknown")]
#pragma warning disable CS1591
Unknown,
#pragma warning restore CS1591
[EnumMember(Value = "unknownFutureValue")]
#pragma warning disable CS1591
UnknownFutureValue,
#pragma warning restore CS1591
}
}
Loading
Loading