forked from microsoftgraph/msgraph-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccessReviewInstance.java
More file actions
125 lines (106 loc) · 5.63 KB
/
Copy pathAccessReviewInstance.java
File metadata and controls
125 lines (106 loc) · 5.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
// Template Source: BaseEntity.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.models;
import com.microsoft.graph.serializer.ISerializer;
import com.microsoft.graph.serializer.IJsonBackedObject;
import com.microsoft.graph.serializer.AdditionalDataManager;
import java.util.EnumSet;
import com.microsoft.graph.http.BaseCollectionPage;
import com.microsoft.graph.models.AccessReviewReviewerScope;
import com.microsoft.graph.models.AccessReviewScope;
import com.microsoft.graph.models.AccessReviewReviewer;
import com.microsoft.graph.models.AccessReviewInstanceDecisionItem;
import com.microsoft.graph.models.Entity;
import com.microsoft.graph.requests.AccessReviewReviewerCollectionPage;
import com.microsoft.graph.requests.AccessReviewInstanceDecisionItemCollectionPage;
import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import javax.annotation.Nullable;
import javax.annotation.Nonnull;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Access Review Instance.
*/
public class AccessReviewInstance extends Entity implements IJsonBackedObject {
/**
* The End Date Time.
* 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. Supports $select. Read-only.
*/
@SerializedName(value = "endDateTime", alternate = {"EndDateTime"})
@Expose
@Nullable
public java.time.OffsetDateTime endDateTime;
/**
* The Fallback Reviewers.
* This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner does not exist, or manager is specified as reviewer but a user's manager does not exist. Supports $select.
*/
@SerializedName(value = "fallbackReviewers", alternate = {"FallbackReviewers"})
@Expose
@Nullable
public java.util.List<AccessReviewReviewerScope> fallbackReviewers;
/**
* The Reviewers.
* This collection of access review scopes is used to define who the reviewers are. Supports $select. For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API.
*/
@SerializedName(value = "reviewers", alternate = {"Reviewers"})
@Expose
@Nullable
public java.util.List<AccessReviewReviewerScope> reviewers;
/**
* The Scope.
* Created based on scope and instanceEnumerationScope at the accessReviewScheduleDefinition level. Defines the scope of users reviewed in a group. Supports $select and $filter (contains only). Read-only.
*/
@SerializedName(value = "scope", alternate = {"Scope"})
@Expose
@Nullable
public AccessReviewScope scope;
/**
* The Start Date Time.
* 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. Supports $select. Read-only.
*/
@SerializedName(value = "startDateTime", alternate = {"StartDateTime"})
@Expose
@Nullable
public java.time.OffsetDateTime startDateTime;
/**
* The Status.
* Specifies the status of an accessReview. Possible values: Initializing, NotStarted, Starting, InProgress, Completing, Completed, AutoReviewing, and AutoReviewed. Supports $select, $orderby, and $filter (eq only). Read-only.
*/
@SerializedName(value = "status", alternate = {"Status"})
@Expose
@Nullable
public String status;
/**
* The Contacted Reviewers.
* Returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only.
*/
@SerializedName(value = "contactedReviewers", alternate = {"ContactedReviewers"})
@Expose
@Nullable
public AccessReviewReviewerCollectionPage contactedReviewers;
/**
* The Decisions.
* Each principal reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed.
*/
@SerializedName(value = "decisions", alternate = {"Decisions"})
@Expose
@Nullable
public AccessReviewInstanceDecisionItemCollectionPage decisions;
/**
* Sets the raw JSON object
*
* @param serializer the serializer
* @param json the JSON object to set this object to
*/
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
if (json.has("contactedReviewers")) {
contactedReviewers = serializer.deserializeObject(json.get("contactedReviewers"), AccessReviewReviewerCollectionPage.class);
}
if (json.has("decisions")) {
decisions = serializer.deserializeObject(json.get("decisions"), AccessReviewInstanceDecisionItemCollectionPage.class);
}
}
}