Skip to content

Commit aa15dbb

Browse files
Merge pull request #927 from microsoftgraph/v1.0/pipelinebuild/57392
Generated v1.0 models and request builders using Typewriter
2 parents e7ddfdc + 4b49152 commit aa15dbb

File tree

278 files changed

+19070
-91
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

278 files changed

+19070
-91
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
## [5.6.0] - 2021-10-27
15+
16+
### Added
17+
18+
### Changed
19+
20+
- Generated v1.0 models and request builders using Typewriter
21+
- Correcting enum mistake in ManagementAgentType.
22+
1423
## [5.5.0] - 2021-10-14
1524

1625
### Added

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repositories {
1919
2020
dependencies {
2121
// Include the sdk as a dependency
22-
implementation 'com.microsoft.graph:microsoft-graph:5.5.0'
22+
implementation 'com.microsoft.graph:microsoft-graph:5.6.0'
2323
// Uncomment the line below if you are building an android application
2424
//implementation 'com.google.guava:guava:30.1.1-android'
2525
// This dependency is only needed if you are using the TokenCrendentialAuthProvider
@@ -36,7 +36,7 @@ Add the dependency in `dependencies` in pom.xml
3636
<!-- Include the sdk as a dependency -->
3737
<groupId>com.microsoft.graph</groupId>
3838
<artifactId>microsoft-graph</artifactId>
39-
<version>5.5.0</version>
39+
<version>5.6.0</version>
4040
</dependency>
4141
<dependency>
4242
<!-- This dependency is only needed if you are using the TokenCrendentialAuthProvider -->
@@ -139,3 +139,4 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI
139139

140140

141141

142+

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ org.gradle.caching=true
2626
mavenGroupId = com.microsoft.graph
2727
mavenArtifactId = microsoft-graph
2828
mavenMajorVersion = 5
29-
mavenMinorVersion = 5
29+
mavenMinorVersion = 6
3030
mavenPatchVersion = 0
3131
mavenArtifactSuffix =
3232

@@ -60,5 +60,6 @@ mavenCentralPublishingEnabled=false
6060

6161

6262

63+
6364

6465

Lines changed: 237 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,237 @@
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.ediscovery.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.IdentitySet;
13+
import com.microsoft.graph.ediscovery.models.CaseStatus;
14+
import com.microsoft.graph.ediscovery.models.Custodian;
15+
import com.microsoft.graph.ediscovery.models.LegalHold;
16+
import com.microsoft.graph.ediscovery.models.NoncustodialDataSource;
17+
import com.microsoft.graph.ediscovery.models.CaseOperation;
18+
import com.microsoft.graph.ediscovery.models.ReviewSet;
19+
import com.microsoft.graph.ediscovery.models.CaseSettings;
20+
import com.microsoft.graph.ediscovery.models.SourceCollection;
21+
import com.microsoft.graph.ediscovery.models.Tag;
22+
import com.microsoft.graph.models.Entity;
23+
import com.microsoft.graph.ediscovery.requests.CustodianCollectionPage;
24+
import com.microsoft.graph.ediscovery.requests.LegalHoldCollectionPage;
25+
import com.microsoft.graph.ediscovery.requests.NoncustodialDataSourceCollectionPage;
26+
import com.microsoft.graph.ediscovery.requests.CaseOperationCollectionPage;
27+
import com.microsoft.graph.ediscovery.requests.ReviewSetCollectionPage;
28+
import com.microsoft.graph.ediscovery.requests.SourceCollectionCollectionPage;
29+
import com.microsoft.graph.ediscovery.requests.TagCollectionPage;
30+
31+
32+
import com.google.gson.JsonObject;
33+
import com.google.gson.annotations.SerializedName;
34+
import com.google.gson.annotations.Expose;
35+
import javax.annotation.Nullable;
36+
import javax.annotation.Nonnull;
37+
38+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
39+
40+
/**
41+
* The class for the Case.
42+
*/
43+
public class Case extends Entity implements IJsonBackedObject {
44+
45+
46+
/**
47+
* The Closed By.
48+
* The user who closed the case.
49+
*/
50+
@SerializedName(value = "closedBy", alternate = {"ClosedBy"})
51+
@Expose
52+
@Nullable
53+
public IdentitySet closedBy;
54+
55+
/**
56+
* The Closed Date Time.
57+
* The date and time when the case was closed. 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 is 2014-01-01T00:00:00Z
58+
*/
59+
@SerializedName(value = "closedDateTime", alternate = {"ClosedDateTime"})
60+
@Expose
61+
@Nullable
62+
public java.time.OffsetDateTime closedDateTime;
63+
64+
/**
65+
* The Created Date Time.
66+
* The date and time when the entity was created. 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 is 2014-01-01T00:00:00Z
67+
*/
68+
@SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"})
69+
@Expose
70+
@Nullable
71+
public java.time.OffsetDateTime createdDateTime;
72+
73+
/**
74+
* The Description.
75+
* The case description.
76+
*/
77+
@SerializedName(value = "description", alternate = {"Description"})
78+
@Expose
79+
@Nullable
80+
public String description;
81+
82+
/**
83+
* The Display Name.
84+
* The case name.
85+
*/
86+
@SerializedName(value = "displayName", alternate = {"DisplayName"})
87+
@Expose
88+
@Nullable
89+
public String displayName;
90+
91+
/**
92+
* The External Id.
93+
* The external case number for customer reference.
94+
*/
95+
@SerializedName(value = "externalId", alternate = {"ExternalId"})
96+
@Expose
97+
@Nullable
98+
public String externalId;
99+
100+
/**
101+
* The Last Modified By.
102+
* The last user who modified the entity.
103+
*/
104+
@SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"})
105+
@Expose
106+
@Nullable
107+
public IdentitySet lastModifiedBy;
108+
109+
/**
110+
* The Last Modified Date Time.
111+
* The latest date and time when the case was modified. 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 is 2014-01-01T00:00:00Z
112+
*/
113+
@SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"})
114+
@Expose
115+
@Nullable
116+
public java.time.OffsetDateTime lastModifiedDateTime;
117+
118+
/**
119+
* The Status.
120+
* The case status. Possible values are unknown, active, pendingDelete, closing, closed, and closedWithError. For details, see the following table.
121+
*/
122+
@SerializedName(value = "status", alternate = {"Status"})
123+
@Expose
124+
@Nullable
125+
public CaseStatus status;
126+
127+
/**
128+
* The Custodians.
129+
* Returns a list of case custodian objects for this case. Nullable.
130+
*/
131+
@SerializedName(value = "custodians", alternate = {"Custodians"})
132+
@Expose
133+
@Nullable
134+
public CustodianCollectionPage custodians;
135+
136+
/**
137+
* The Legal Holds.
138+
* Returns a list of case legalHold objects for this case. Nullable.
139+
*/
140+
@SerializedName(value = "legalHolds", alternate = {"LegalHolds"})
141+
@Expose
142+
@Nullable
143+
public LegalHoldCollectionPage legalHolds;
144+
145+
/**
146+
* The Noncustodial Data Sources.
147+
* Returns a list of case noncustodialDataSource objects for this case. Nullable.
148+
*/
149+
@SerializedName(value = "noncustodialDataSources", alternate = {"NoncustodialDataSources"})
150+
@Expose
151+
@Nullable
152+
public NoncustodialDataSourceCollectionPage noncustodialDataSources;
153+
154+
/**
155+
* The Operations.
156+
* Returns a list of case operation objects for this case. Nullable.
157+
*/
158+
@SerializedName(value = "operations", alternate = {"Operations"})
159+
@Expose
160+
@Nullable
161+
public CaseOperationCollectionPage operations;
162+
163+
/**
164+
* The Review Sets.
165+
* Returns a list of reviewSet objects in the case. Read-only. Nullable.
166+
*/
167+
@SerializedName(value = "reviewSets", alternate = {"ReviewSets"})
168+
@Expose
169+
@Nullable
170+
public ReviewSetCollectionPage reviewSets;
171+
172+
/**
173+
* The Settings.
174+
*
175+
*/
176+
@SerializedName(value = "settings", alternate = {"Settings"})
177+
@Expose
178+
@Nullable
179+
public CaseSettings settings;
180+
181+
/**
182+
* The Source Collections.
183+
* Returns a list of sourceCollection objects associated with this case.
184+
*/
185+
@SerializedName(value = "sourceCollections", alternate = {"SourceCollections"})
186+
@Expose
187+
@Nullable
188+
public SourceCollectionCollectionPage sourceCollections;
189+
190+
/**
191+
* The Tags.
192+
* Returns a list of tag objects associated to this case.
193+
*/
194+
@SerializedName(value = "tags", alternate = {"Tags"})
195+
@Expose
196+
@Nullable
197+
public TagCollectionPage tags;
198+
199+
200+
/**
201+
* Sets the raw JSON object
202+
*
203+
* @param serializer the serializer
204+
* @param json the JSON object to set this object to
205+
*/
206+
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
207+
208+
209+
if (json.has("custodians")) {
210+
custodians = serializer.deserializeObject(json.get("custodians"), CustodianCollectionPage.class);
211+
}
212+
213+
if (json.has("legalHolds")) {
214+
legalHolds = serializer.deserializeObject(json.get("legalHolds"), LegalHoldCollectionPage.class);
215+
}
216+
217+
if (json.has("noncustodialDataSources")) {
218+
noncustodialDataSources = serializer.deserializeObject(json.get("noncustodialDataSources"), NoncustodialDataSourceCollectionPage.class);
219+
}
220+
221+
if (json.has("operations")) {
222+
operations = serializer.deserializeObject(json.get("operations"), CaseOperationCollectionPage.class);
223+
}
224+
225+
if (json.has("reviewSets")) {
226+
reviewSets = serializer.deserializeObject(json.get("reviewSets"), ReviewSetCollectionPage.class);
227+
}
228+
229+
if (json.has("sourceCollections")) {
230+
sourceCollections = serializer.deserializeObject(json.get("sourceCollections"), SourceCollectionCollectionPage.class);
231+
}
232+
233+
if (json.has("tags")) {
234+
tags = serializer.deserializeObject(json.get("tags"), TagCollectionPage.class);
235+
}
236+
}
237+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// Template Source: Enum.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.ediscovery.models;
7+
8+
9+
/**
10+
* The Enum Case Action.
11+
*/
12+
public enum CaseAction
13+
{
14+
/**
15+
* content Export
16+
*/
17+
CONTENT_EXPORT,
18+
/**
19+
* apply Tags
20+
*/
21+
APPLY_TAGS,
22+
/**
23+
* convert To Pdf
24+
*/
25+
CONVERT_TO_PDF,
26+
/**
27+
* index
28+
*/
29+
INDEX,
30+
/**
31+
* estimate Statistics
32+
*/
33+
ESTIMATE_STATISTICS,
34+
/**
35+
* add To Review Set
36+
*/
37+
ADD_TO_REVIEW_SET,
38+
/**
39+
* unknown Future Value
40+
*/
41+
UNKNOWN_FUTURE_VALUE,
42+
/**
43+
* For CaseAction values that were not expected from the service
44+
*/
45+
UNEXPECTED_VALUE
46+
}

0 commit comments

Comments
 (0)