|
| 1 | +// Template Source: BaseEntity.java.tt |
| 2 | +// ------------------------------------------------------------------------------ |
| 3 | +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. |
| 4 | +// ------------------------------------------------------------------------------ |
| 5 | + |
| 6 | +package com.microsoft.graph.models; |
| 7 | +import com.microsoft.graph.serializer.ISerializer; |
| 8 | +import com.microsoft.graph.serializer.IJsonBackedObject; |
| 9 | +import com.microsoft.graph.serializer.AdditionalDataManager; |
| 10 | +import java.util.EnumSet; |
| 11 | +import com.microsoft.graph.http.BaseCollectionPage; |
| 12 | +import com.microsoft.graph.models.AuditActor; |
| 13 | +import com.microsoft.graph.models.AuditResource; |
| 14 | +import com.microsoft.graph.models.Entity; |
| 15 | + |
| 16 | + |
| 17 | +import com.google.gson.JsonObject; |
| 18 | +import com.google.gson.annotations.SerializedName; |
| 19 | +import com.google.gson.annotations.Expose; |
| 20 | +import javax.annotation.Nullable; |
| 21 | +import javax.annotation.Nonnull; |
| 22 | + |
| 23 | +// **NOTE** This file was generated by a tool and any changes will be overwritten. |
| 24 | + |
| 25 | +/** |
| 26 | + * The class for the Audit Event. |
| 27 | + */ |
| 28 | +public class AuditEvent extends Entity implements IJsonBackedObject { |
| 29 | + |
| 30 | + |
| 31 | + /** |
| 32 | + * The Activity. |
| 33 | + * Friendly name of the activity. |
| 34 | + */ |
| 35 | + @SerializedName(value = "activity", alternate = {"Activity"}) |
| 36 | + @Expose |
| 37 | + @Nullable |
| 38 | + public String activity; |
| 39 | + |
| 40 | + /** |
| 41 | + * The Activity Date Time. |
| 42 | + * The date time in UTC when the activity was performed. |
| 43 | + */ |
| 44 | + @SerializedName(value = "activityDateTime", alternate = {"ActivityDateTime"}) |
| 45 | + @Expose |
| 46 | + @Nullable |
| 47 | + public java.time.OffsetDateTime activityDateTime; |
| 48 | + |
| 49 | + /** |
| 50 | + * The Activity Operation Type. |
| 51 | + * The HTTP operation type of the activity. |
| 52 | + */ |
| 53 | + @SerializedName(value = "activityOperationType", alternate = {"ActivityOperationType"}) |
| 54 | + @Expose |
| 55 | + @Nullable |
| 56 | + public String activityOperationType; |
| 57 | + |
| 58 | + /** |
| 59 | + * The Activity Result. |
| 60 | + * The result of the activity. |
| 61 | + */ |
| 62 | + @SerializedName(value = "activityResult", alternate = {"ActivityResult"}) |
| 63 | + @Expose |
| 64 | + @Nullable |
| 65 | + public String activityResult; |
| 66 | + |
| 67 | + /** |
| 68 | + * The Activity Type. |
| 69 | + * The type of activity that was being performed. |
| 70 | + */ |
| 71 | + @SerializedName(value = "activityType", alternate = {"ActivityType"}) |
| 72 | + @Expose |
| 73 | + @Nullable |
| 74 | + public String activityType; |
| 75 | + |
| 76 | + /** |
| 77 | + * The Actor. |
| 78 | + * AAD user and application that are associated with the audit event. |
| 79 | + */ |
| 80 | + @SerializedName(value = "actor", alternate = {"Actor"}) |
| 81 | + @Expose |
| 82 | + @Nullable |
| 83 | + public AuditActor actor; |
| 84 | + |
| 85 | + /** |
| 86 | + * The Category. |
| 87 | + * Audit category. |
| 88 | + */ |
| 89 | + @SerializedName(value = "category", alternate = {"Category"}) |
| 90 | + @Expose |
| 91 | + @Nullable |
| 92 | + public String category; |
| 93 | + |
| 94 | + /** |
| 95 | + * The Component Name. |
| 96 | + * Component name. |
| 97 | + */ |
| 98 | + @SerializedName(value = "componentName", alternate = {"ComponentName"}) |
| 99 | + @Expose |
| 100 | + @Nullable |
| 101 | + public String componentName; |
| 102 | + |
| 103 | + /** |
| 104 | + * The Correlation Id. |
| 105 | + * The client request Id that is used to correlate activity within the system. |
| 106 | + */ |
| 107 | + @SerializedName(value = "correlationId", alternate = {"CorrelationId"}) |
| 108 | + @Expose |
| 109 | + @Nullable |
| 110 | + public java.util.UUID correlationId; |
| 111 | + |
| 112 | + /** |
| 113 | + * The Display Name. |
| 114 | + * Event display name. |
| 115 | + */ |
| 116 | + @SerializedName(value = "displayName", alternate = {"DisplayName"}) |
| 117 | + @Expose |
| 118 | + @Nullable |
| 119 | + public String displayName; |
| 120 | + |
| 121 | + /** |
| 122 | + * The Resources. |
| 123 | + * Resources being modified. |
| 124 | + */ |
| 125 | + @SerializedName(value = "resources", alternate = {"Resources"}) |
| 126 | + @Expose |
| 127 | + @Nullable |
| 128 | + public java.util.List<AuditResource> resources; |
| 129 | + |
| 130 | + |
| 131 | + /** |
| 132 | + * Sets the raw JSON object |
| 133 | + * |
| 134 | + * @param serializer the serializer |
| 135 | + * @param json the JSON object to set this object to |
| 136 | + */ |
| 137 | + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { |
| 138 | + |
| 139 | + } |
| 140 | +} |
0 commit comments