Skip to content

Commit d847b78

Browse files
authored
Merge pull request #96 from microsoftgraph/beta/pipelinebuild/47937
Generated beta models and request builders using Typewriter
2 parents 9d157d6 + 9c237c2 commit d847b78

File tree

402 files changed

+21221
-2706
lines changed

Some content is hidden

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

402 files changed

+21221
-2706
lines changed

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-beta:0.11.0-SNAPSHOT'
22+
implementation 'com.microsoft.graph:microsoft-graph-beta:0.12.0-SNAPSHOT'
2323
}
2424
```
2525

@@ -31,7 +31,7 @@ Add the dependency in `dependencies` in pom.xml
3131
<dependency>
3232
<groupId>com.microsoft.graph</groupId>
3333
<artifactId>microsoft-graph-beta</artifactId>
34-
<version>0.11.0-SNAPSHOT</version>
34+
<version>0.12.0-SNAPSHOT</version>
3535
</dependency>
3636
```
3737

@@ -140,3 +140,4 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI
140140

141141

142142

143+

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-beta
2828
mavenMajorVersion = 0
29-
mavenMinorVersion = 11
29+
mavenMinorVersion = 12
3030
mavenPatchVersion = 0
3131
mavenArtifactSuffix =
3232

@@ -50,3 +50,4 @@ mavenCentralPublishingEnabled=false
5050

5151

5252

53+

src/main/java/com/microsoft/graph/callrecords/models/CallRecord.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public class CallRecord extends Entity implements IJsonBackedObject {
8787

8888
/**
8989
* The Start Date Time.
90-
* UTC time when the first user joined the call. 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
90+
* UTC time when the first user joined the call. 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.
9191
*/
9292
@SerializedName(value = "startDateTime", alternate = {"StartDateTime"})
9393
@Expose
@@ -105,7 +105,7 @@ public class CallRecord extends Entity implements IJsonBackedObject {
105105

106106
/**
107107
* The Version.
108-
* Monotonically increasing version of the call record. Higher version call records with the same ID includes additional data compared to the lower version.
108+
* Monotonically increasing version of the call record. Higher version call records with the same id includes additional data compared to the lower version.
109109
*/
110110
@SerializedName(value = "version", alternate = {"Version"})
111111
@Expose

src/main/java/com/microsoft/graph/callrecords/models/Session.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public class Session extends Entity implements IJsonBackedObject {
7878

7979
/**
8080
* The Start Date Time.
81-
* UTC fime when the first user joined the session. 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
81+
* UTC time when the first user joined the session. 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
8282
*/
8383
@SerializedName(value = "startDateTime", alternate = {"StartDateTime"})
8484
@Expose

src/main/java/com/microsoft/graph/ediscovery/models/SourceCollection.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
import com.microsoft.graph.ediscovery.models.DataSource;
1515
import com.microsoft.graph.ediscovery.models.AddToReviewSetOperation;
1616
import com.microsoft.graph.ediscovery.models.EstimateStatisticsOperation;
17+
import com.microsoft.graph.ediscovery.models.NoncustodialDataSource;
1718
import com.microsoft.graph.models.Entity;
1819
import com.microsoft.graph.ediscovery.requests.DataSourceCollectionPage;
20+
import com.microsoft.graph.ediscovery.requests.NoncustodialDataSourceCollectionPage;
1921

2022

2123
import com.google.gson.JsonObject;
@@ -143,7 +145,7 @@ public class SourceCollection extends Entity implements IJsonBackedObject {
143145
*
144146
*/
145147
@Nullable
146-
public DataSourceCollectionPage noncustodialSources;
148+
public NoncustodialDataSourceCollectionPage noncustodialSources;
147149

148150

149151
/**
@@ -164,7 +166,7 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J
164166
}
165167

166168
if (json.has("noncustodialSources")) {
167-
noncustodialSources = serializer.deserializeObject(json.get("noncustodialSources"), DataSourceCollectionPage.class);
169+
noncustodialSources = serializer.deserializeObject(json.get("noncustodialSources"), NoncustodialDataSourceCollectionPage.class);
168170
}
169171
}
170172
}
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
// Template Source: BaseEntityCollectionReferenceRequest.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.requests;
7+
8+
import com.microsoft.graph.http.IRequestBuilder;
9+
import com.microsoft.graph.core.ClientException;
10+
import com.microsoft.graph.ediscovery.models.SourceCollection;
11+
import com.microsoft.graph.ediscovery.models.NoncustodialDataSource;
12+
import java.util.Arrays;
13+
import java.util.EnumSet;
14+
import javax.annotation.Nullable;
15+
import javax.annotation.Nonnull;
16+
17+
import com.microsoft.graph.ediscovery.requests.NoncustodialDataSourceWithReferenceRequest;
18+
import com.microsoft.graph.ediscovery.requests.NoncustodialDataSourceReferenceRequestBuilder;
19+
import com.microsoft.graph.ediscovery.requests.NoncustodialDataSourceWithReferenceRequestBuilder;
20+
import com.microsoft.graph.ediscovery.requests.NoncustodialDataSourceCollectionWithReferencesRequest;
21+
import com.microsoft.graph.ediscovery.requests.NoncustodialDataSourceCollectionWithReferencesRequestBuilder;
22+
import com.microsoft.graph.ediscovery.models.NoncustodialDataSource;
23+
import com.microsoft.graph.options.QueryOption;
24+
import com.microsoft.graph.core.IBaseClient;
25+
import com.microsoft.graph.http.BaseCollectionWithReferencesRequest;
26+
import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder;
27+
import com.microsoft.graph.http.ReferenceRequestBody;
28+
29+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
30+
31+
/**
32+
* The class for the Noncustodial Data Source Collection Reference Request.
33+
*/
34+
public class NoncustodialDataSourceCollectionReferenceRequest extends BaseCollectionWithReferencesRequest<NoncustodialDataSource, NoncustodialDataSourceWithReferenceRequest, NoncustodialDataSourceReferenceRequestBuilder, NoncustodialDataSourceWithReferenceRequestBuilder, NoncustodialDataSourceCollectionResponse, NoncustodialDataSourceCollectionWithReferencesPage, NoncustodialDataSourceCollectionWithReferencesRequest> {
35+
36+
/**
37+
* The request builder for this collection of NoncustodialDataSource
38+
*
39+
* @param requestUrl the request URL
40+
* @param client the service client
41+
* @param requestOptions the options for this request
42+
*/
43+
public NoncustodialDataSourceCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient<?> client, @Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
44+
super(requestUrl, client, requestOptions, NoncustodialDataSourceCollectionResponse.class, NoncustodialDataSourceCollectionWithReferencesPage.class, NoncustodialDataSourceCollectionWithReferencesRequestBuilder.class);
45+
}
46+
47+
/**
48+
* Sets the expand clause for the request
49+
*
50+
* @param value the expand clause
51+
* @return the updated request
52+
*/
53+
@Nonnull
54+
public NoncustodialDataSourceCollectionReferenceRequest expand(@Nonnull final String value) {
55+
addExpandOption(value);
56+
return this;
57+
}
58+
59+
/**
60+
* Sets the filter clause for the request
61+
*
62+
* @param value the filter clause
63+
* @return the updated request
64+
*/
65+
@Nonnull
66+
public NoncustodialDataSourceCollectionReferenceRequest filter(@Nonnull final String value) {
67+
addFilterOption(value);
68+
return this;
69+
}
70+
71+
/**
72+
* Sets the order by clause for the request
73+
*
74+
* @param value the sort clause
75+
* @return the updated request
76+
*/
77+
@Nonnull
78+
public NoncustodialDataSourceCollectionReferenceRequest orderBy(@Nonnull final String value) {
79+
addOrderByOption(value);
80+
return this;
81+
}
82+
83+
/**
84+
* Sets the select clause for the request
85+
*
86+
* @param value the select clause
87+
* @return the updated request
88+
*/
89+
@Nonnull
90+
public NoncustodialDataSourceCollectionReferenceRequest select(@Nonnull final String value) {
91+
addSelectOption(value);
92+
return this;
93+
}
94+
95+
/**
96+
* Sets the top value for the request
97+
*
98+
* @param value the max number of items to return
99+
* @return the updated request
100+
*/
101+
@Nonnull
102+
public NoncustodialDataSourceCollectionReferenceRequest top(final int value) {
103+
addTopOption(value);
104+
return this;
105+
}
106+
/**
107+
* Sets the count value for the request
108+
*
109+
* @param value whether or not to return the count of objects with the request
110+
* @return the updated request
111+
*/
112+
@Nonnull
113+
public NoncustodialDataSourceCollectionReferenceRequest count(final boolean value) {
114+
addCountOption(value);
115+
return this;
116+
}
117+
/**
118+
* Sets the count value to true for the request
119+
*
120+
* @return the updated request
121+
*/
122+
@Nonnull
123+
public NoncustodialDataSourceCollectionReferenceRequest count() {
124+
addCountOption(true);
125+
return this;
126+
}
127+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// Template Source: BaseEntityCollectionReferenceRequestBuilder.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.requests;
7+
8+
import com.microsoft.graph.http.IRequestBuilder;
9+
import com.microsoft.graph.core.ClientException;
10+
import com.microsoft.graph.ediscovery.models.SourceCollection;
11+
import com.microsoft.graph.ediscovery.models.NoncustodialDataSource;
12+
import java.util.Arrays;
13+
import java.util.EnumSet;
14+
import javax.annotation.Nullable;
15+
import javax.annotation.Nonnull;
16+
17+
import com.microsoft.graph.http.BaseCollectionReferenceRequestBuilder;
18+
import com.microsoft.graph.core.IBaseClient;
19+
20+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
21+
22+
/**
23+
* The class for the Noncustodial Data Source Collection Reference Request Builder.
24+
*/
25+
public class NoncustodialDataSourceCollectionReferenceRequestBuilder extends BaseCollectionReferenceRequestBuilder<NoncustodialDataSource, NoncustodialDataSourceReferenceRequestBuilder, NoncustodialDataSourceCollectionResponse, NoncustodialDataSourceCollectionWithReferencesPage, NoncustodialDataSourceCollectionReferenceRequest> {
26+
27+
/**
28+
* The request builder for this collection of NoncustodialDataSource
29+
*
30+
* @param requestUrl the request URL
31+
* @param client the service client
32+
* @param requestOptions the options for this request
33+
*/
34+
public NoncustodialDataSourceCollectionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient<?> client, @Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
35+
super(requestUrl, client, requestOptions, NoncustodialDataSourceReferenceRequestBuilder.class, NoncustodialDataSourceCollectionReferenceRequest.class);
36+
}
37+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// Template Source: BaseEntityCollectionWithReferencesPage.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.requests;
7+
8+
import com.microsoft.graph.http.IRequestBuilder;
9+
import com.microsoft.graph.core.ClientException;
10+
import com.microsoft.graph.ediscovery.models.SourceCollection;
11+
import com.microsoft.graph.ediscovery.models.NoncustodialDataSource;
12+
import java.util.Arrays;
13+
import java.util.EnumSet;
14+
import javax.annotation.Nullable;
15+
import javax.annotation.Nonnull;
16+
17+
import com.microsoft.graph.ediscovery.requests.NoncustodialDataSourceCollectionWithReferencesRequestBuilder;
18+
import com.microsoft.graph.ediscovery.requests.NoncustodialDataSourceCollectionWithReferencesPage;
19+
import com.microsoft.graph.ediscovery.requests.NoncustodialDataSourceCollectionResponse;
20+
import com.microsoft.graph.ediscovery.models.NoncustodialDataSource;
21+
import com.google.gson.JsonObject;
22+
import com.google.gson.annotations.SerializedName;
23+
import com.google.gson.annotations.Expose;
24+
import com.microsoft.graph.http.BaseCollectionPage;
25+
26+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
27+
28+
/**
29+
* The class for the Noncustodial Data Source Collection With References Page.
30+
*/
31+
public class NoncustodialDataSourceCollectionWithReferencesPage extends BaseCollectionPage<NoncustodialDataSource, NoncustodialDataSourceCollectionWithReferencesRequestBuilder> {
32+
33+
/**
34+
* A collection page for NoncustodialDataSource
35+
*
36+
* @param response the serialized NoncustodialDataSourceCollectionResponse from the service
37+
* @param builder the request builder for the next collection page
38+
*/
39+
public NoncustodialDataSourceCollectionWithReferencesPage(@Nonnull final NoncustodialDataSourceCollectionResponse response, @Nullable final NoncustodialDataSourceCollectionWithReferencesRequestBuilder builder) {
40+
super(response.value, builder, response.additionalDataManager());
41+
}
42+
43+
/**
44+
* Creates the collection page for NoncustodialDataSource
45+
*
46+
* @param pageContents the contents of this page
47+
* @param nextRequestBuilder the request builder for the next page
48+
*/
49+
public NoncustodialDataSourceCollectionWithReferencesPage(@Nonnull final java.util.List<NoncustodialDataSource> pageContents, @Nullable final NoncustodialDataSourceCollectionWithReferencesRequestBuilder nextRequestBuilder) {
50+
super(pageContents, nextRequestBuilder);
51+
}
52+
}

0 commit comments

Comments
 (0)