This repository was archived by the owner on Jan 6, 2026. It is now read-only.
forked from microsoftgraph/msgraph-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseDevice.java
More file actions
260 lines (222 loc) · 9.17 KB
/
Copy pathBaseDevice.java
File metadata and controls
260 lines (222 loc) · 9.17 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
// ------------------------------------------------------------------------------
// 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.generated;
import com.microsoft.graph.concurrency.*;
import com.microsoft.graph.core.*;
import com.microsoft.graph.models.extensions.*;
import com.microsoft.graph.models.generated.*;
import com.microsoft.graph.http.*;
import com.microsoft.graph.requests.extensions.*;
import com.microsoft.graph.requests.generated.*;
import com.microsoft.graph.options.*;
import com.microsoft.graph.serializer.*;
import java.util.Arrays;
import java.util.EnumSet;
import com.google.gson.JsonObject;
import com.google.gson.JsonElement;
import com.google.gson.annotations.*;
import java.util.HashMap;
import java.util.Map;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Base Device.
*/
public class BaseDevice extends DirectoryObject implements IJsonBackedObject {
/**
* The Account Enabled.
* true if the account is enabled; otherwise, false. Required.
*/
@SerializedName("accountEnabled")
@Expose
public Boolean accountEnabled;
/**
* The Alternative Security Ids.
*
*/
@SerializedName("alternativeSecurityIds")
@Expose
public java.util.List<AlternativeSecurityId> alternativeSecurityIds;
/**
* The Approximate Last Sign In Date Time.
* The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' Read-only.
*/
@SerializedName("approximateLastSignInDateTime")
@Expose
public java.util.Calendar approximateLastSignInDateTime;
/**
* The Device Id.
* Unique identifier set by Azure Device Registration Service at the time of registration.
*/
@SerializedName("deviceId")
@Expose
public String deviceId;
/**
* The Device Metadata.
* For interal use only. Set to null.
*/
@SerializedName("deviceMetadata")
@Expose
public String deviceMetadata;
/**
* The Device Version.
* For interal use only.
*/
@SerializedName("deviceVersion")
@Expose
public Integer deviceVersion;
/**
* The Display Name.
* The display name for the device. Required.
*/
@SerializedName("displayName")
@Expose
public String displayName;
/**
* The Is Compliant.
* true if the device complies with Mobile Device Management (MDM) policies; otherwise, false. Read-only.
*/
@SerializedName("isCompliant")
@Expose
public Boolean isCompliant;
/**
* The Is Managed.
* true if the device is managed by a Mobile Device Management (MDM) app; otherwise, false.
*/
@SerializedName("isManaged")
@Expose
public Boolean isManaged;
/**
* The On Premises Last Sync Date Time.
* The last time at which the object was synced with the on-premises directory.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' Read-only.
*/
@SerializedName("onPremisesLastSyncDateTime")
@Expose
public java.util.Calendar onPremisesLastSyncDateTime;
/**
* The On Premises Sync Enabled.
* true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only.
*/
@SerializedName("onPremisesSyncEnabled")
@Expose
public Boolean onPremisesSyncEnabled;
/**
* The Operating System.
* The type of operating system on the device. Required.
*/
@SerializedName("operatingSystem")
@Expose
public String operatingSystem;
/**
* The Operating System Version.
* The version of the operating system on the device. Required.
*/
@SerializedName("operatingSystemVersion")
@Expose
public String operatingSystemVersion;
/**
* The Physical Ids.
* For interal use only. Not nullable.
*/
@SerializedName("physicalIds")
@Expose
public java.util.List<String> physicalIds;
/**
* The Trust Type.
* Type of trust for the joined device. Read-only. Possible values: Workplace - indicates bring your own personal devicesAzureAd - Cloud only joined devicesServerAd - on-premises domain joined devices joined to Azure AD. For more details, see Introduction to device management in Azure Active Directory
*/
@SerializedName("trustType")
@Expose
public String trustType;
/**
* The Registered Owners.
* The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner. Read-only. Nullable.
*/
public DirectoryObjectCollectionPage registeredOwners;
/**
* The Registered Users.
* Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable.
*/
public DirectoryObjectCollectionPage registeredUsers;
/**
* The Extensions.
* The collection of open extensions defined for the device. Read-only. Nullable.
*/
public ExtensionCollectionPage extensions;
/**
* The raw representation of this class
*/
private JsonObject rawObject;
/**
* The serializer
*/
private ISerializer serializer;
/**
* Gets the raw representation of this class
*
* @return the raw representation of this class
*/
public JsonObject getRawObject() {
return rawObject;
}
/**
* Gets serializer
*
* @return the serializer
*/
protected ISerializer getSerializer() {
return serializer;
}
/**
* Sets the raw JSON object
*
* @param serializer the serializer
* @param json the JSON object to set this object to
*/
public void setRawObject(final ISerializer serializer, final JsonObject json) {
this.serializer = serializer;
rawObject = json;
if (json.has("registeredOwners")) {
final BaseDirectoryObjectCollectionResponse response = new BaseDirectoryObjectCollectionResponse();
if (json.has("registeredOwners@odata.nextLink")) {
response.nextLink = json.get("registeredOwners@odata.nextLink").getAsString();
}
final JsonObject[] sourceArray = serializer.deserializeObject(json.get("registeredOwners").toString(), JsonObject[].class);
final DirectoryObject[] array = new DirectoryObject[sourceArray.length];
for (int i = 0; i < sourceArray.length; i++) {
array[i] = serializer.deserializeObject(sourceArray[i].toString(), DirectoryObject.class);
array[i].setRawObject(serializer, sourceArray[i]);
}
response.value = Arrays.asList(array);
registeredOwners = new DirectoryObjectCollectionPage(response, null);
}
if (json.has("registeredUsers")) {
final BaseDirectoryObjectCollectionResponse response = new BaseDirectoryObjectCollectionResponse();
if (json.has("registeredUsers@odata.nextLink")) {
response.nextLink = json.get("registeredUsers@odata.nextLink").getAsString();
}
final JsonObject[] sourceArray = serializer.deserializeObject(json.get("registeredUsers").toString(), JsonObject[].class);
final DirectoryObject[] array = new DirectoryObject[sourceArray.length];
for (int i = 0; i < sourceArray.length; i++) {
array[i] = serializer.deserializeObject(sourceArray[i].toString(), DirectoryObject.class);
array[i].setRawObject(serializer, sourceArray[i]);
}
response.value = Arrays.asList(array);
registeredUsers = new DirectoryObjectCollectionPage(response, null);
}
if (json.has("extensions")) {
final BaseExtensionCollectionResponse response = new BaseExtensionCollectionResponse();
if (json.has("extensions@odata.nextLink")) {
response.nextLink = json.get("extensions@odata.nextLink").getAsString();
}
final JsonObject[] sourceArray = serializer.deserializeObject(json.get("extensions").toString(), JsonObject[].class);
final Extension[] array = new Extension[sourceArray.length];
for (int i = 0; i < sourceArray.length; i++) {
array[i] = serializer.deserializeObject(sourceArray[i].toString(), Extension.class);
array[i].setRawObject(serializer, sourceArray[i]);
}
response.value = Arrays.asList(array);
extensions = new ExtensionCollectionPage(response, null);
}
}
}