Skip to content

Commit 524c7c0

Browse files
committed
- codegen update for java odata cast support
1 parent a633b34 commit 524c7c0

File tree

270 files changed

+1601
-309
lines changed

Some content is hidden

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

270 files changed

+1601
-309
lines changed

src/main/java/com/microsoft/graph/callrecords/requests/extensions/ICallRecordCollectionRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@ public interface ICallRecordCollectionRequest extends IHttpRequest {
8585
*
8686
* @return the updated request
8787
*/
88-
ICallRecordCollectionRequest skipToken(String skipToken);
88+
ICallRecordCollectionRequest skipToken(final String skipToken);
8989
}

src/main/java/com/microsoft/graph/callrecords/requests/extensions/ISegmentCollectionRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@ public interface ISegmentCollectionRequest extends IHttpRequest {
8585
*
8686
* @return the updated request
8787
*/
88-
ISegmentCollectionRequest skipToken(String skipToken);
88+
ISegmentCollectionRequest skipToken(final String skipToken);
8989
}

src/main/java/com/microsoft/graph/callrecords/requests/extensions/ISessionCollectionRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@ public interface ISessionCollectionRequest extends IHttpRequest {
8585
*
8686
* @return the updated request
8787
*/
88-
ISessionCollectionRequest skipToken(String skipToken);
88+
ISessionCollectionRequest skipToken(final String skipToken);
8989
}

src/main/java/com/microsoft/graph/requests/extensions/CertificateBasedAuthConfigurationCollectionWithReferencesRequest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,27 @@ public ICertificateBasedAuthConfigurationCollectionWithReferencesPage get() thro
5656

5757
public ICertificateBasedAuthConfigurationCollectionWithReferencesRequest expand(final String value) {
5858
addQueryOption(new com.microsoft.graph.options.QueryOption("$expand", value));
59-
return (CertificateBasedAuthConfigurationCollectionWithReferencesRequest)this;
59+
return this;
6060
}
6161

6262
public ICertificateBasedAuthConfigurationCollectionWithReferencesRequest filter(final String value) {
6363
addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value));
64-
return (CertificateBasedAuthConfigurationCollectionWithReferencesRequest)this;
64+
return this;
6565
}
6666

6767
public ICertificateBasedAuthConfigurationCollectionWithReferencesRequest orderBy(final String value) {
6868
addQueryOption(new com.microsoft.graph.options.QueryOption("$orderby", value));
69-
return (CertificateBasedAuthConfigurationCollectionWithReferencesRequest)this;
69+
return this;
7070
}
7171

7272
public ICertificateBasedAuthConfigurationCollectionWithReferencesRequest select(final String value) {
7373
addQueryOption(new com.microsoft.graph.options.QueryOption("$select", value));
74-
return (CertificateBasedAuthConfigurationCollectionWithReferencesRequest)this;
74+
return this;
7575
}
7676

7777
public ICertificateBasedAuthConfigurationCollectionWithReferencesRequest top(final int value) {
7878
addQueryOption(new com.microsoft.graph.options.QueryOption("$top", value + ""));
79-
return (CertificateBasedAuthConfigurationCollectionWithReferencesRequest)this;
79+
return this;
8080
}
8181

8282
public ICertificateBasedAuthConfigurationCollectionWithReferencesPage buildFromResponse(final CertificateBasedAuthConfigurationCollectionResponse response) {

src/main/java/com/microsoft/graph/requests/extensions/ClaimsMappingPolicyCollectionWithReferencesRequest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,27 @@ public IClaimsMappingPolicyCollectionWithReferencesPage get() throws ClientExcep
5656

5757
public IClaimsMappingPolicyCollectionWithReferencesRequest expand(final String value) {
5858
addQueryOption(new com.microsoft.graph.options.QueryOption("$expand", value));
59-
return (ClaimsMappingPolicyCollectionWithReferencesRequest)this;
59+
return this;
6060
}
6161

6262
public IClaimsMappingPolicyCollectionWithReferencesRequest filter(final String value) {
6363
addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value));
64-
return (ClaimsMappingPolicyCollectionWithReferencesRequest)this;
64+
return this;
6565
}
6666

6767
public IClaimsMappingPolicyCollectionWithReferencesRequest orderBy(final String value) {
6868
addQueryOption(new com.microsoft.graph.options.QueryOption("$orderby", value));
69-
return (ClaimsMappingPolicyCollectionWithReferencesRequest)this;
69+
return this;
7070
}
7171

7272
public IClaimsMappingPolicyCollectionWithReferencesRequest select(final String value) {
7373
addQueryOption(new com.microsoft.graph.options.QueryOption("$select", value));
74-
return (ClaimsMappingPolicyCollectionWithReferencesRequest)this;
74+
return this;
7575
}
7676

7777
public IClaimsMappingPolicyCollectionWithReferencesRequest top(final int value) {
7878
addQueryOption(new com.microsoft.graph.options.QueryOption("$top", value + ""));
79-
return (ClaimsMappingPolicyCollectionWithReferencesRequest)this;
79+
return this;
8080
}
8181

8282
public IClaimsMappingPolicyCollectionWithReferencesPage buildFromResponse(final ClaimsMappingPolicyCollectionResponse response) {

src/main/java/com/microsoft/graph/requests/extensions/DirectoryObjectCollectionWithReferencesRequest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,27 +57,27 @@ public IDirectoryObjectCollectionWithReferencesPage get() throws ClientException
5757

5858
public IDirectoryObjectCollectionWithReferencesRequest expand(final String value) {
5959
addQueryOption(new com.microsoft.graph.options.QueryOption("$expand", value));
60-
return (DirectoryObjectCollectionWithReferencesRequest)this;
60+
return this;
6161
}
6262

6363
public IDirectoryObjectCollectionWithReferencesRequest filter(final String value) {
6464
addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value));
65-
return (DirectoryObjectCollectionWithReferencesRequest)this;
65+
return this;
6666
}
6767

6868
public IDirectoryObjectCollectionWithReferencesRequest orderBy(final String value) {
6969
addQueryOption(new com.microsoft.graph.options.QueryOption("$orderby", value));
70-
return (DirectoryObjectCollectionWithReferencesRequest)this;
70+
return this;
7171
}
7272

7373
public IDirectoryObjectCollectionWithReferencesRequest select(final String value) {
7474
addQueryOption(new com.microsoft.graph.options.QueryOption("$select", value));
75-
return (DirectoryObjectCollectionWithReferencesRequest)this;
75+
return this;
7676
}
7777

7878
public IDirectoryObjectCollectionWithReferencesRequest top(final int value) {
7979
addQueryOption(new com.microsoft.graph.options.QueryOption("$top", value + ""));
80-
return (DirectoryObjectCollectionWithReferencesRequest)this;
80+
return this;
8181
}
8282

8383
public IDirectoryObjectCollectionWithReferencesPage buildFromResponse(final DirectoryObjectCollectionResponse response) {

src/main/java/com/microsoft/graph/requests/extensions/EducationClassCollectionWithReferencesRequest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,27 @@ public IEducationClassCollectionWithReferencesPage get() throws ClientException
5656

5757
public IEducationClassCollectionWithReferencesRequest expand(final String value) {
5858
addQueryOption(new com.microsoft.graph.options.QueryOption("$expand", value));
59-
return (EducationClassCollectionWithReferencesRequest)this;
59+
return this;
6060
}
6161

6262
public IEducationClassCollectionWithReferencesRequest filter(final String value) {
6363
addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value));
64-
return (EducationClassCollectionWithReferencesRequest)this;
64+
return this;
6565
}
6666

6767
public IEducationClassCollectionWithReferencesRequest orderBy(final String value) {
6868
addQueryOption(new com.microsoft.graph.options.QueryOption("$orderby", value));
69-
return (EducationClassCollectionWithReferencesRequest)this;
69+
return this;
7070
}
7171

7272
public IEducationClassCollectionWithReferencesRequest select(final String value) {
7373
addQueryOption(new com.microsoft.graph.options.QueryOption("$select", value));
74-
return (EducationClassCollectionWithReferencesRequest)this;
74+
return this;
7575
}
7676

7777
public IEducationClassCollectionWithReferencesRequest top(final int value) {
7878
addQueryOption(new com.microsoft.graph.options.QueryOption("$top", value + ""));
79-
return (EducationClassCollectionWithReferencesRequest)this;
79+
return this;
8080
}
8181

8282
public IEducationClassCollectionWithReferencesPage buildFromResponse(final EducationClassCollectionResponse response) {

src/main/java/com/microsoft/graph/requests/extensions/EducationSchoolCollectionWithReferencesRequest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,27 @@ public IEducationSchoolCollectionWithReferencesPage get() throws ClientException
5656

5757
public IEducationSchoolCollectionWithReferencesRequest expand(final String value) {
5858
addQueryOption(new com.microsoft.graph.options.QueryOption("$expand", value));
59-
return (EducationSchoolCollectionWithReferencesRequest)this;
59+
return this;
6060
}
6161

6262
public IEducationSchoolCollectionWithReferencesRequest filter(final String value) {
6363
addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value));
64-
return (EducationSchoolCollectionWithReferencesRequest)this;
64+
return this;
6565
}
6666

6767
public IEducationSchoolCollectionWithReferencesRequest orderBy(final String value) {
6868
addQueryOption(new com.microsoft.graph.options.QueryOption("$orderby", value));
69-
return (EducationSchoolCollectionWithReferencesRequest)this;
69+
return this;
7070
}
7171

7272
public IEducationSchoolCollectionWithReferencesRequest select(final String value) {
7373
addQueryOption(new com.microsoft.graph.options.QueryOption("$select", value));
74-
return (EducationSchoolCollectionWithReferencesRequest)this;
74+
return this;
7575
}
7676

7777
public IEducationSchoolCollectionWithReferencesRequest top(final int value) {
7878
addQueryOption(new com.microsoft.graph.options.QueryOption("$top", value + ""));
79-
return (EducationSchoolCollectionWithReferencesRequest)this;
79+
return this;
8080
}
8181

8282
public IEducationSchoolCollectionWithReferencesPage buildFromResponse(final EducationSchoolCollectionResponse response) {

src/main/java/com/microsoft/graph/requests/extensions/EducationUserCollectionWithReferencesRequest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,27 @@ public IEducationUserCollectionWithReferencesPage get() throws ClientException {
5656

5757
public IEducationUserCollectionWithReferencesRequest expand(final String value) {
5858
addQueryOption(new com.microsoft.graph.options.QueryOption("$expand", value));
59-
return (EducationUserCollectionWithReferencesRequest)this;
59+
return this;
6060
}
6161

6262
public IEducationUserCollectionWithReferencesRequest filter(final String value) {
6363
addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value));
64-
return (EducationUserCollectionWithReferencesRequest)this;
64+
return this;
6565
}
6666

6767
public IEducationUserCollectionWithReferencesRequest orderBy(final String value) {
6868
addQueryOption(new com.microsoft.graph.options.QueryOption("$orderby", value));
69-
return (EducationUserCollectionWithReferencesRequest)this;
69+
return this;
7070
}
7171

7272
public IEducationUserCollectionWithReferencesRequest select(final String value) {
7373
addQueryOption(new com.microsoft.graph.options.QueryOption("$select", value));
74-
return (EducationUserCollectionWithReferencesRequest)this;
74+
return this;
7575
}
7676

7777
public IEducationUserCollectionWithReferencesRequest top(final int value) {
7878
addQueryOption(new com.microsoft.graph.options.QueryOption("$top", value + ""));
79-
return (EducationUserCollectionWithReferencesRequest)this;
79+
return this;
8080
}
8181

8282
public IEducationUserCollectionWithReferencesPage buildFromResponse(final EducationUserCollectionResponse response) {
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
package com.microsoft.graph.requests.extensions;
6+
7+
import com.microsoft.graph.http.IRequestBuilder;
8+
import com.microsoft.graph.core.ClientException;
9+
import com.microsoft.graph.concurrency.ICallback;
10+
import com.microsoft.graph.models.extensions.Group;
11+
import com.microsoft.graph.models.extensions.AssignedLicense;
12+
import java.util.Arrays;
13+
import java.util.EnumSet;
14+
15+
import com.microsoft.graph.options.QueryOption;
16+
import com.microsoft.graph.core.IBaseClient;
17+
import com.microsoft.graph.http.BaseCollectionRequest;
18+
import com.microsoft.graph.http.ReferenceRequestBody;
19+
import com.microsoft.graph.models.extensions.Group;
20+
21+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
22+
23+
/**
24+
* The class for the Group Collection Reference Request.
25+
*/
26+
public class GroupCollectionReferenceRequest extends BaseCollectionRequest<GroupCollectionResponse, IGroupCollectionPage> implements IGroupCollectionReferenceRequest {
27+
28+
/**
29+
* The request builder for this collection of Group
30+
*
31+
* @param requestUrl the request URL
32+
* @param client the service client
33+
* @param requestOptions the options for this request
34+
*/
35+
public GroupCollectionReferenceRequest(final String requestUrl, IBaseClient client, final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
36+
super(requestUrl, client, requestOptions, GroupCollectionResponse.class, IGroupCollectionPage.class);
37+
}
38+
39+
public void post(final Group newGroup, final ICallback<? super Group> callback) {
40+
final String requestUrl = getBaseRequest().getRequestUrl().toString();
41+
final ReferenceRequestBody body = new ReferenceRequestBody(getBaseRequest().getClient().getServiceRoot() + "/groups/" + newGroup.id);
42+
new GroupWithReferenceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null)
43+
.buildRequest(getBaseRequest().getHeaders())
44+
.post(newGroup, body, callback);
45+
}
46+
47+
public Group post(final Group newGroup) throws ClientException {
48+
final String requestUrl = getBaseRequest().getRequestUrl().toString();
49+
final ReferenceRequestBody body = new ReferenceRequestBody(getBaseRequest().getClient().getServiceRoot() + "/groups/" + newGroup.id);
50+
return new GroupWithReferenceRequestBuilder(requestUrl,getBaseRequest().getClient(), /* Options */ null)
51+
.buildRequest(getBaseRequest().getHeaders())
52+
.post(newGroup, body);
53+
}
54+
/**
55+
* Sets the expand clause for the request
56+
*
57+
* @param value the expand clause
58+
* @return the updated request
59+
*/
60+
public IGroupCollectionReferenceRequest expand(final String value) {
61+
addQueryOption(new com.microsoft.graph.options.QueryOption("$expand", value));
62+
return (GroupCollectionReferenceRequest)this;
63+
}
64+
65+
/**
66+
* Sets the filter clause for the request
67+
*
68+
* @param value the filter clause
69+
* @return the updated request
70+
*/
71+
public IGroupCollectionReferenceRequest filter(final String value) {
72+
addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value));
73+
return (GroupCollectionReferenceRequest)this;
74+
}
75+
76+
/**
77+
* Sets the order by clause for the request
78+
*
79+
* @param value the sort clause
80+
* @return the updated request
81+
*/
82+
public IGroupCollectionReferenceRequest orderBy(final String value) {
83+
addQueryOption(new com.microsoft.graph.options.QueryOption("$orderby", value));
84+
return (GroupCollectionReferenceRequest)this;
85+
}
86+
87+
/**
88+
* Sets the select clause for the request
89+
*
90+
* @param value the select clause
91+
* @return the updated request
92+
*/
93+
public IGroupCollectionReferenceRequest select(final String value) {
94+
addQueryOption(new com.microsoft.graph.options.QueryOption("$select", value));
95+
return (GroupCollectionReferenceRequest)this;
96+
}
97+
98+
/**
99+
* Sets the top value for the request
100+
*
101+
* @param value the max number of items to return
102+
* @return the updated request
103+
*/
104+
public IGroupCollectionReferenceRequest top(final int value) {
105+
addQueryOption(new com.microsoft.graph.options.QueryOption("$top", value + ""));
106+
return (GroupCollectionReferenceRequest)this;
107+
}
108+
}

0 commit comments

Comments
 (0)