|
| 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.AccessReviewScope; |
| 13 | +import com.microsoft.graph.models.AccessReviewInstanceDecisionItem; |
| 14 | +import com.microsoft.graph.models.Entity; |
| 15 | +import com.microsoft.graph.requests.AccessReviewInstanceDecisionItemCollectionPage; |
| 16 | + |
| 17 | + |
| 18 | +import com.google.gson.JsonObject; |
| 19 | +import com.google.gson.annotations.SerializedName; |
| 20 | +import com.google.gson.annotations.Expose; |
| 21 | +import javax.annotation.Nullable; |
| 22 | +import javax.annotation.Nonnull; |
| 23 | + |
| 24 | +// **NOTE** This file was generated by a tool and any changes will be overwritten. |
| 25 | + |
| 26 | +/** |
| 27 | + * The class for the Access Review Instance. |
| 28 | + */ |
| 29 | +public class AccessReviewInstance extends Entity implements IJsonBackedObject { |
| 30 | + |
| 31 | + |
| 32 | + /** |
| 33 | + * The End Date Time. |
| 34 | + * DateTime when review instance is scheduled to end.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 2014-01-01T00:00:00Z. |
| 35 | + */ |
| 36 | + @SerializedName(value = "endDateTime", alternate = {"EndDateTime"}) |
| 37 | + @Expose |
| 38 | + @Nullable |
| 39 | + public java.time.OffsetDateTime endDateTime; |
| 40 | + |
| 41 | + /** |
| 42 | + * The Scope. |
| 43 | + * Created based on scope and instanceEnumerationScope at the accessReviewScheduleDefinition level. Defines the scope of users reviewed in a group. In the case of a single-group review, the scope defined at the accessReviewScheduleDefinition level applies to all instances. In the case of all groups review, scope may be different for each group. Read-only. |
| 44 | + */ |
| 45 | + @SerializedName(value = "scope", alternate = {"Scope"}) |
| 46 | + @Expose |
| 47 | + @Nullable |
| 48 | + public AccessReviewScope scope; |
| 49 | + |
| 50 | + /** |
| 51 | + * The Start Date Time. |
| 52 | + * DateTime when review instance is scheduled to start. May be in the future. 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 2014-01-01T00:00:00Z. |
| 53 | + */ |
| 54 | + @SerializedName(value = "startDateTime", alternate = {"StartDateTime"}) |
| 55 | + @Expose |
| 56 | + @Nullable |
| 57 | + public java.time.OffsetDateTime startDateTime; |
| 58 | + |
| 59 | + /** |
| 60 | + * The Status. |
| 61 | + * Specifies the status of an accessReview. The typical states include Initializing, NotStarted, Starting, InProgress, Completing, Completed, AutoReviewing, and AutoReviewed. Read-only. |
| 62 | + */ |
| 63 | + @SerializedName(value = "status", alternate = {"Status"}) |
| 64 | + @Expose |
| 65 | + @Nullable |
| 66 | + public String status; |
| 67 | + |
| 68 | + /** |
| 69 | + * The Decisions. |
| 70 | + * Each user reviewed in an accessReviewInstance has a decision item representing if their access was approved, denied, or not yet reviewed. |
| 71 | + */ |
| 72 | + @SerializedName(value = "decisions", alternate = {"Decisions"}) |
| 73 | + @Expose |
| 74 | + @Nullable |
| 75 | + public AccessReviewInstanceDecisionItemCollectionPage decisions; |
| 76 | + |
| 77 | + |
| 78 | + /** |
| 79 | + * Sets the raw JSON object |
| 80 | + * |
| 81 | + * @param serializer the serializer |
| 82 | + * @param json the JSON object to set this object to |
| 83 | + */ |
| 84 | + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { |
| 85 | + |
| 86 | + |
| 87 | + if (json.has("decisions")) { |
| 88 | + decisions = serializer.deserializeObject(json.get("decisions"), AccessReviewInstanceDecisionItemCollectionPage.class); |
| 89 | + } |
| 90 | + } |
| 91 | +} |
0 commit comments