Package com.microsoft.graph.models
Class DirectoryAudit
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.DirectoryAudit
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class DirectoryAudit
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DirectoryAudit
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the activityDateTime property value.Gets the activityDisplayName property value.Gets the additionalDetails property value.Gets the category property value.Gets the correlationId property value.The deserialization information for the current modelGets the initiatedBy property value.Gets the loggedByService property value.Gets the operationType property value.Gets the result property value.Gets the resultReason property value.Gets the targetResources property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
Sets the activityDateTime property value.void
setActivityDisplayName
(String value) Sets the activityDisplayName property value.void
setAdditionalDetails
(List<KeyValue> value) Sets the additionalDetails property value.void
setCategory
(String value) Sets the category property value.void
setCorrelationId
(String value) Sets the correlationId property value.void
Sets the initiatedBy property value.void
setLoggedByService
(String value) Sets the loggedByService property value.void
setOperationType
(String value) Sets the operationType property value.void
setResult
(OperationResult value) Sets the result property value.void
setResultReason
(String value) Sets the resultReason property value.void
setTargetResources
(List<TargetResource> value) Sets the targetResources property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
DirectoryAudit
public DirectoryAudit()Instantiates a newDirectoryAudit
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static DirectoryAudit createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode
- The parse node to use to read the discriminator value and create the object- Returns:
- a
DirectoryAudit
-
getActivityDateTime
Gets the activityDateTime property value. Indicates the date and time the activity was performed. The Timestamp type is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ge, le) and $orderby.- Returns:
- a
OffsetDateTime
-
getActivityDisplayName
Gets the activityDisplayName property value. Indicates the activity name or the operation name (examples: 'Create User' and 'Add member to group'). For a list of activities logged, refer to Microsoft Entra audit log categories and activities. Supports $filter (eq, startswith).- Returns:
- a
String
-
getAdditionalDetails
Gets the additionalDetails property value. Indicates additional details on the activity. -
getCategory
Gets the category property value. Indicates which resource category that's targeted by the activity. For example: UserManagement, GroupManagement, ApplicationManagement, RoleManagement. For a list of categories for activities logged, refer to Microsoft Entra audit log categories and activities.- Returns:
- a
String
-
getCorrelationId
Gets the correlationId property value. Indicates a unique ID that helps correlate activities that span across various services. Can be used to trace logs across services. Supports $filter (eq).- Returns:
- a
String
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getInitiatedBy
Gets the initiatedBy property value. The initiatedBy property- Returns:
- a
AuditActivityInitiator
-
getLoggedByService
Gets the loggedByService property value. Indicates information on which service initiated the activity (For example: Self-service Password Management, Core Directory, B2C, Invited Users, Microsoft Identity Manager, Privileged Identity Management. Supports $filter (eq).- Returns:
- a
String
-
getOperationType
Gets the operationType property value. Indicates the type of operation that was performed. The possible values include but are not limited to the following: Add, Assign, Update, Unassign, and Delete.- Returns:
- a
String
-
getResult
Gets the result property value. Indicates the result of the activity. Possible values are: success, failure, timeout, unknownFutureValue.- Returns:
- a
OperationResult
-
getResultReason
Gets the resultReason property value. Indicates the reason for failure if the result is failure or timeout.- Returns:
- a
String
-
getTargetResources
Gets the targetResources property value. Indicates information on which resource was changed due to the activity. Target Resource Type can be User, Device, Directory, App, Role, Group, Policy or Other. Supports $filter (eq) for id and displayName; and $filter (startswith) for displayName.- Returns:
- a
List<TargetResource>
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setActivityDateTime
Sets the activityDateTime property value. Indicates the date and time the activity was performed. The Timestamp type is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ge, le) and $orderby.- Parameters:
value
- Value to set for the activityDateTime property.
-
setActivityDisplayName
Sets the activityDisplayName property value. Indicates the activity name or the operation name (examples: 'Create User' and 'Add member to group'). For a list of activities logged, refer to Microsoft Entra audit log categories and activities. Supports $filter (eq, startswith).- Parameters:
value
- Value to set for the activityDisplayName property.
-
setAdditionalDetails
Sets the additionalDetails property value. Indicates additional details on the activity.- Parameters:
value
- Value to set for the additionalDetails property.
-
setCategory
Sets the category property value. Indicates which resource category that's targeted by the activity. For example: UserManagement, GroupManagement, ApplicationManagement, RoleManagement. For a list of categories for activities logged, refer to Microsoft Entra audit log categories and activities.- Parameters:
value
- Value to set for the category property.
-
setCorrelationId
Sets the correlationId property value. Indicates a unique ID that helps correlate activities that span across various services. Can be used to trace logs across services. Supports $filter (eq).- Parameters:
value
- Value to set for the correlationId property.
-
setInitiatedBy
Sets the initiatedBy property value. The initiatedBy property- Parameters:
value
- Value to set for the initiatedBy property.
-
setLoggedByService
Sets the loggedByService property value. Indicates information on which service initiated the activity (For example: Self-service Password Management, Core Directory, B2C, Invited Users, Microsoft Identity Manager, Privileged Identity Management. Supports $filter (eq).- Parameters:
value
- Value to set for the loggedByService property.
-
setOperationType
Sets the operationType property value. Indicates the type of operation that was performed. The possible values include but are not limited to the following: Add, Assign, Update, Unassign, and Delete.- Parameters:
value
- Value to set for the operationType property.
-
setResult
Sets the result property value. Indicates the result of the activity. Possible values are: success, failure, timeout, unknownFutureValue.- Parameters:
value
- Value to set for the result property.
-
setResultReason
Sets the resultReason property value. Indicates the reason for failure if the result is failure or timeout.- Parameters:
value
- Value to set for the resultReason property.
-
setTargetResources
Sets the targetResources property value. Indicates information on which resource was changed due to the activity. Target Resource Type can be User, Device, Directory, App, Role, Group, Policy or Other. Supports $filter (eq) for id and displayName; and $filter (startswith) for displayName.- Parameters:
value
- Value to set for the targetResources property.
-