Skip to content

Commit

Permalink
Merge pull request #1220 from microsoftgraph/dev
Browse files Browse the repository at this point in the history
Release 4.15.0
  • Loading branch information
andrueastman committed Jan 12, 2022
2 parents f166d5f + 9b71cbe commit e2fac77
Show file tree
Hide file tree
Showing 61 changed files with 4,695 additions and 6 deletions.
38 changes: 38 additions & 0 deletions src/Microsoft.Graph/Generated/model/ActivityType.cs
@@ -0,0 +1,38 @@
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------

// **NOTE** This file was generated by a tool and any changes will be overwritten.
// <auto-generated/>

// Template Source: EnumType.cs.tt


namespace Microsoft.Graph
{
using System.Text.Json.Serialization;

/// <summary>
/// The enum ActivityType.
/// </summary>
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum ActivityType
{

/// <summary>
/// Signin
/// </summary>
Signin = 0,

/// <summary>
/// User
/// </summary>
User = 1,

/// <summary>
/// Unknown Future Value
/// </summary>
UnknownFutureValue = 2,

}
}
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Generated/model/Application.cs
Expand Up @@ -225,7 +225,7 @@ public Application()

/// <summary>
/// Gets or sets verified publisher.
/// Specifies the verified publisher of the application.
/// Specifies the verified publisher of the application. For more information about how publisher verification helps support application security, trustworthiness, and compliance, see Publisher verification.
/// </summary>
[JsonPropertyName("verifiedPublisher")]
public VerifiedPublisher VerifiedPublisher { get; set; }
Expand Down
6 changes: 6 additions & 0 deletions src/Microsoft.Graph/Generated/model/AttachmentItem.cs
Expand Up @@ -28,6 +28,12 @@ public partial class AttachmentItem
[JsonPropertyName("attachmentType")]
public AttachmentType? AttachmentType { get; set; }

/// <summary>
/// Gets or sets contentId.
/// </summary>
[JsonPropertyName("contentId")]
public string ContentId { get; set; }

/// <summary>
/// Gets or sets contentType.
/// The nature of the data in the attachment. Optional.
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Generated/model/DriveItem.cs
Expand Up @@ -30,7 +30,7 @@ public DriveItem()

/// <summary>
/// Gets or sets audio.
/// Audio metadata, if the item is an audio file. Read-only.
/// Audio metadata, if the item is an audio file. Read-only. Only on OneDrive Personal.
/// </summary>
[JsonPropertyName("audio")]
public Audio Audio { get; set; }
Expand Down
64 changes: 64 additions & 0 deletions src/Microsoft.Graph/Generated/model/IdentityProtectionRoot.cs
@@ -0,0 +1,64 @@
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------

// **NOTE** This file was generated by a tool and any changes will be overwritten.
// <auto-generated/>

// Template Source: EntityType.cs.tt

namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.Json.Serialization;

/// <summary>
/// The type Identity Protection Root.
/// </summary>
[JsonConverter(typeof(DerivedTypeConverter<IdentityProtectionRoot>))]
public partial class IdentityProtectionRoot
{

/// <summary>
/// Gets or sets risk detections.
/// </summary>
[JsonPropertyName("riskDetections")]
public IIdentityProtectionRootRiskDetectionsCollectionPage RiskDetections { get; set; }

/// <summary>
/// Gets or sets riskDetectionsNextLink.
/// </summary>
[JsonPropertyName("riskDetections@odata.nextLink")]
[JsonConverter(typeof(NextLinkConverter))]
public string RiskDetectionsNextLink { get; set; }

/// <summary>
/// Gets or sets risky users.
/// </summary>
[JsonPropertyName("riskyUsers")]
public IIdentityProtectionRootRiskyUsersCollectionPage RiskyUsers { get; set; }

/// <summary>
/// Gets or sets riskyUsersNextLink.
/// </summary>
[JsonPropertyName("riskyUsers@odata.nextLink")]
[JsonConverter(typeof(NextLinkConverter))]
public string RiskyUsersNextLink { get; set; }

/// <summary>
/// Gets or sets @odata.type.
/// </summary>
[JsonPropertyName("@odata.type")]
public string ODataType { get; set; }

/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData]
public IDictionary<string, object> AdditionalData { get; set; }

}
}

159 changes: 159 additions & 0 deletions src/Microsoft.Graph/Generated/model/RiskDetection.cs
@@ -0,0 +1,159 @@
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------

// **NOTE** This file was generated by a tool and any changes will be overwritten.
// <auto-generated/>

// Template Source: EntityType.cs.tt

namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.Json.Serialization;

/// <summary>
/// The type Risk Detection.
/// </summary>
[JsonConverter(typeof(DerivedTypeConverter<RiskDetection>))]
public partial class RiskDetection : Entity
{

/// <summary>
/// Gets or sets activity.
/// Indicates the activity type the detected risk is linked to. . Possible values are: signin, user, unknownFutureValue.
/// </summary>
[JsonPropertyName("activity")]
public ActivityType? Activity { get; set; }

/// <summary>
/// Gets or sets activity date time.
/// Date and time that the risky activity occurred. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is look like this: 2014-01-01T00:00:00Z
/// </summary>
[JsonPropertyName("activityDateTime")]
public DateTimeOffset? ActivityDateTime { get; set; }

/// <summary>
/// Gets or sets additional info.
/// Additional information associated with the risk detection in JSON format.
/// </summary>
[JsonPropertyName("additionalInfo")]
public string AdditionalInfo { get; set; }

/// <summary>
/// Gets or sets correlation id.
/// Correlation ID of the sign-in associated with the risk detection. This property is null if the risk detection is not associated with a sign-in.
/// </summary>
[JsonPropertyName("correlationId")]
public string CorrelationId { get; set; }

/// <summary>
/// Gets or sets detected date time.
/// Date and time that the risk was detected. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is look like this: 2014-01-01T00:00:00Z
/// </summary>
[JsonPropertyName("detectedDateTime")]
public DateTimeOffset? DetectedDateTime { get; set; }

/// <summary>
/// Gets or sets detection timing type.
/// Timing of the detected risk (real-time/offline). Possible values are: notDefined, realtime, nearRealtime, offline, unknownFutureValue.
/// </summary>
[JsonPropertyName("detectionTimingType")]
public RiskDetectionTimingType? DetectionTimingType { get; set; }

/// <summary>
/// Gets or sets ip address.
/// Provides the IP address of the client from where the risk occurred.
/// </summary>
[JsonPropertyName("ipAddress")]
public string IpAddress { get; set; }

/// <summary>
/// Gets or sets last updated date time.
/// Date and time that the risk detection was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is look like this: 2014-01-01T00:00:00Z
/// </summary>
[JsonPropertyName("lastUpdatedDateTime")]
public DateTimeOffset? LastUpdatedDateTime { get; set; }

/// <summary>
/// Gets or sets location.
/// Location of the sign-in.
/// </summary>
[JsonPropertyName("location")]
public SignInLocation Location { get; set; }

/// <summary>
/// Gets or sets request id.
/// Request ID of the sign-in associated with the risk detection. This property is null if the risk detection is not associated with a sign-in.
/// </summary>
[JsonPropertyName("requestId")]
public string RequestId { get; set; }

/// <summary>
/// Gets or sets risk detail.
/// Details of the detected risk. Possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue.
/// </summary>
[JsonPropertyName("riskDetail")]
public RiskDetail? RiskDetail { get; set; }

/// <summary>
/// Gets or sets risk event type.
/// The type of risk event detected. The possible values are unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic,adminConfirmedUserCompromised, mcasImpossibleTravel, mcasSuspiciousInboxManipulationRules, investigationsThreatIntelligenceSigninLinked, maliciousIPAddressValidCredentialsBlockedIP, and unknownFutureValue. If the risk detection is a premium detection, will show generic
/// </summary>
[JsonPropertyName("riskEventType")]
public string RiskEventType { get; set; }

/// <summary>
/// Gets or sets risk level.
/// Level of the detected risk. Possible values are: low, medium, high, hidden, none, unknownFutureValue.
/// </summary>
[JsonPropertyName("riskLevel")]
public RiskLevel? RiskLevel { get; set; }

/// <summary>
/// Gets or sets risk state.
/// The state of a detected risky user or sign-in. Possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue.
/// </summary>
[JsonPropertyName("riskState")]
public RiskState? RiskState { get; set; }

/// <summary>
/// Gets or sets source.
/// Source of the risk detection. For example, activeDirectory.
/// </summary>
[JsonPropertyName("source")]
public string Source { get; set; }

/// <summary>
/// Gets or sets token issuer type.
/// Indicates the type of token issuer for the detected sign-in risk. Possible values are: AzureAD, ADFederationServices, UnknownFutureValue.
/// </summary>
[JsonPropertyName("tokenIssuerType")]
public TokenIssuerType? TokenIssuerType { get; set; }

/// <summary>
/// Gets or sets user display name.
/// The user principal name (UPN) of the user.
/// </summary>
[JsonPropertyName("userDisplayName")]
public string UserDisplayName { get; set; }

/// <summary>
/// Gets or sets user id.
/// Unique ID of the user.
/// </summary>
[JsonPropertyName("userId")]
public string UserId { get; set; }

/// <summary>
/// Gets or sets user principal name.
/// The user principal name (UPN) of the user.
/// </summary>
[JsonPropertyName("userPrincipalName")]
public string UserPrincipalName { get; set; }

}
}

48 changes: 48 additions & 0 deletions src/Microsoft.Graph/Generated/model/RiskDetectionTimingType.cs
@@ -0,0 +1,48 @@
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------

// **NOTE** This file was generated by a tool and any changes will be overwritten.
// <auto-generated/>

// Template Source: EnumType.cs.tt


namespace Microsoft.Graph
{
using System.Text.Json.Serialization;

/// <summary>
/// The enum RiskDetectionTimingType.
/// </summary>
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum RiskDetectionTimingType
{

/// <summary>
/// Not Defined
/// </summary>
NotDefined = 0,

/// <summary>
/// Realtime
/// </summary>
Realtime = 1,

/// <summary>
/// Near Realtime
/// </summary>
NearRealtime = 2,

/// <summary>
/// Offline
/// </summary>
Offline = 3,

/// <summary>
/// Unknown Future Value
/// </summary>
UnknownFutureValue = 4,

}
}
51 changes: 51 additions & 0 deletions src/Microsoft.Graph/Generated/model/RiskUserActivity.cs
@@ -0,0 +1,51 @@
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------

// **NOTE** This file was generated by a tool and any changes will be overwritten.
// <auto-generated/>

// Template Source: ComplexType.cs.tt

namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.Json.Serialization;

/// <summary>
/// The type RiskUserActivity.
/// </summary>
[JsonConverter(typeof(DerivedTypeConverter<RiskUserActivity>))]
public partial class RiskUserActivity
{

/// <summary>
/// Gets or sets detail.
/// Details of the detected risk. Possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue.
/// </summary>
[JsonPropertyName("detail")]
public RiskDetail? Detail { get; set; }

/// <summary>
/// Gets or sets riskEventTypes.
/// The type of risk event detected.
/// </summary>
[JsonPropertyName("riskEventTypes")]
public IEnumerable<string> RiskEventTypes { get; set; }

/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData]
public IDictionary<string, object> AdditionalData { get; set; }

/// <summary>
/// Gets or sets @odata.type.
/// </summary>
[JsonPropertyName("@odata.type")]
public string ODataType { get; set; }

}
}

0 comments on commit e2fac77

Please sign in to comment.