Skip to content

Commit 45d4aa8

Browse files
Merge pull request #263 from microsoftgraph/v1.0/pipelinebuild/1409481
Generated v1.0 models and request builders using Typewriter
2 parents 4e1a9c2 + e5ec428 commit 45d4aa8

File tree

10 files changed

+253
-7
lines changed

10 files changed

+253
-7
lines changed

src/main/java/com/microsoft/graph/models/extensions/EducationUser.java

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

4747
/**
4848
* The Primary Role.
49-
* Default role for a user. The user's role might be different in an individual class. The possible values are: student, teacher, unknownFutureValue. Supports $filter.
49+
* Default role for a user. The user's role might be different in an individual class. The possible values are: student, teacher. Supports $filter.
5050
*/
5151
@SerializedName("primaryRole")
5252
@Expose
@@ -62,7 +62,7 @@ public class EducationUser extends Entity implements IJsonBackedObject {
6262

6363
/**
6464
* The External Source.
65-
* Where this user was created from. The possible values are: sis, manual, unkownFutureValue.
65+
* Where this user was created from. The possible values are: sis, manual.
6666
*/
6767
@SerializedName("externalSource")
6868
@Expose

src/main/java/com/microsoft/graph/models/extensions/Group.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,14 @@ public class Group extends DirectoryObject implements IJsonBackedObject {
183183
@Expose
184184
public Boolean onPremisesSyncEnabled;
185185

186+
/**
187+
* The Preferred Data Location.
188+
* The preferred data location for the group. For more information, see OneDrive Online Multi-Geo. Returned by default.
189+
*/
190+
@SerializedName("preferredDataLocation")
191+
@Expose
192+
public String preferredDataLocation;
193+
186194
/**
187195
* The Proxy Addresses.
188196
* Email addresses for the group that direct to the same group mailbox. For example: ['SMTP: [email protected]', 'smtp: [email protected]']. The any operator is required to filter expressions on multi-valued properties. Returned by default. Read-only. Not nullable. Supports $filter.

src/main/java/com/microsoft/graph/models/extensions/MailSearchFolder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,31 @@ public class MailSearchFolder extends MailFolder implements IJsonBackedObject {
2929

3030
/**
3131
* The Is Supported.
32-
*
32+
* Indicates whether a search folder is editable using REST APIs.
3333
*/
3434
@SerializedName("isSupported")
3535
@Expose
3636
public Boolean isSupported;
3737

3838
/**
3939
* The Include Nested Folders.
40-
*
40+
* Indicates how the mailbox folder hierarchy should be traversed in the search. true means that a deep search should be done to include child folders in the hierarchy of each folder explicitly specified in sourceFolderIds. false means a shallow search of only each of the folders explicitly specified in sourceFolderIds.
4141
*/
4242
@SerializedName("includeNestedFolders")
4343
@Expose
4444
public Boolean includeNestedFolders;
4545

4646
/**
4747
* The Source Folder Ids.
48-
*
48+
* The mailbox folders that should be mined.
4949
*/
5050
@SerializedName("sourceFolderIds")
5151
@Expose
5252
public java.util.List<String> sourceFolderIds;
5353

5454
/**
5555
* The Filter Query.
56-
*
56+
* The OData query to filter the messages.
5757
*/
5858
@SerializedName("filterQuery")
5959
@Expose

src/main/java/com/microsoft/graph/models/extensions/User.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,14 @@ public class User extends DirectoryObject implements IJsonBackedObject {
422422
@Expose
423423
public Boolean showInAddressList;
424424

425+
/**
426+
* The Sign In Sessions Valid From Date Time.
427+
* Any refresh tokens or sessions tokens (session cookies) issued before this time are invalid, and applications will get an error when using an invalid refresh or sessions token to acquire a delegated access token (to access APIs such as Microsoft Graph). If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint. Read-only. Use revokeSignInSessions to reset.
428+
*/
429+
@SerializedName("signInSessionsValidFromDateTime")
430+
@Expose
431+
public java.util.Calendar signInSessionsValidFromDateTime;
432+
425433
/**
426434
* The State.
427435
* The state or province in the user's address. Supports $filter.
@@ -612,7 +620,7 @@ public class User extends DirectoryObject implements IJsonBackedObject {
612620

613621
/**
614622
* The License Details.
615-
* A collection of this user's license details. Nullable.
623+
* A collection of this user's license details. Read-only.
616624
*/
617625
public LicenseDetailsCollectionPage licenseDetails;
618626

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
import com.microsoft.graph.models.extensions.AssignedLicense;
6868
import com.microsoft.graph.requests.extensions.IUserAssignLicenseRequestBuilder;
6969
import com.microsoft.graph.requests.extensions.IUserChangePasswordRequestBuilder;
70+
import com.microsoft.graph.requests.extensions.IUserRevokeSignInSessionsRequestBuilder;
7071
import com.microsoft.graph.models.extensions.Message;
7172
import com.microsoft.graph.requests.extensions.IUserSendMailRequestBuilder;
7273
import com.microsoft.graph.models.generated.MailTipsType;
@@ -279,6 +280,7 @@ public interface IUserRequestBuilder extends IRequestBuilder {
279280
IGroupRequestBuilder joinedTeams(final String id);
280281
IUserAssignLicenseRequestBuilder assignLicense(final java.util.List<AssignedLicense> addLicenses, final java.util.List<java.util.UUID> removeLicenses);
281282
IUserChangePasswordRequestBuilder changePassword(final String currentPassword, final String newPassword);
283+
IUserRevokeSignInSessionsRequestBuilder revokeSignInSessions();
282284
IUserSendMailRequestBuilder sendMail(final Message message, final Boolean saveToSentItems);
283285

284286
IUserGetMailTipsCollectionRequestBuilder getMailTips(final java.util.List<String> emailAddresses, final EnumSet<MailTipsType> mailTipsOptions);
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
import com.microsoft.graph.requests.extensions.IUserRevokeSignInSessionsRequest;
7+
8+
import com.microsoft.graph.concurrency.ICallback;
9+
import com.microsoft.graph.concurrency.IExecutors;
10+
import com.microsoft.graph.core.ClientException;
11+
import com.microsoft.graph.core.IBaseClient;
12+
import com.microsoft.graph.http.BaseRequest;
13+
import com.microsoft.graph.http.HttpMethod;
14+
import com.microsoft.graph.options.Option;
15+
import com.microsoft.graph.options.QueryOption;
16+
17+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
18+
19+
/**
20+
* The interface for the User Revoke Sign In Sessions Request.
21+
*/
22+
public interface IUserRevokeSignInSessionsRequest {
23+
24+
/**
25+
* Creates the UserRevokeSignInSessions
26+
*
27+
* @param callback the callback to be called after success or failure
28+
*/
29+
void post(final ICallback<Boolean> callback);
30+
31+
/**
32+
* Creates the UserRevokeSignInSessions
33+
*
34+
* @return the Boolean
35+
* @throws ClientException an exception occurs if there was an error while the request was sent
36+
*/
37+
Boolean post() throws ClientException;
38+
39+
/**
40+
* Sets the select clause for the request
41+
*
42+
* @param value the select clause
43+
* @return the updated request
44+
*/
45+
IUserRevokeSignInSessionsRequest select(final String value);
46+
47+
/**
48+
* Sets the expand clause for the request
49+
*
50+
* @param value the expand clause
51+
* @return the updated request
52+
*/
53+
IUserRevokeSignInSessionsRequest expand(final String value);
54+
55+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
import com.microsoft.graph.requests.extensions.IUserRevokeSignInSessionsRequest;
7+
8+
import com.microsoft.graph.http.IRequestBuilder;
9+
import com.microsoft.graph.options.Option;
10+
11+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
12+
13+
/**
14+
* The interface for the User Revoke Sign In Sessions Request Builder.
15+
*/
16+
public interface IUserRevokeSignInSessionsRequestBuilder extends IRequestBuilder {
17+
18+
/**
19+
* Creates the IUserRevokeSignInSessionsRequest
20+
*
21+
* @return the IUserRevokeSignInSessionsRequest instance
22+
*/
23+
IUserRevokeSignInSessionsRequest buildRequest();
24+
25+
/**
26+
* Creates the IUserRevokeSignInSessionsRequest with specific options instead of the existing options
27+
*
28+
* @param requestOptions the options for the request
29+
* @return the IUserRevokeSignInSessionsRequest instance
30+
*/
31+
IUserRevokeSignInSessionsRequest buildRequest(final java.util.List<? extends Option> requestOptions);
32+
}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@
130130
import com.microsoft.graph.requests.extensions.UserAssignLicenseRequestBuilder;
131131
import com.microsoft.graph.requests.extensions.IUserChangePasswordRequestBuilder;
132132
import com.microsoft.graph.requests.extensions.UserChangePasswordRequestBuilder;
133+
import com.microsoft.graph.requests.extensions.IUserRevokeSignInSessionsRequestBuilder;
134+
import com.microsoft.graph.requests.extensions.UserRevokeSignInSessionsRequestBuilder;
133135
import com.microsoft.graph.models.extensions.Message;
134136
import com.microsoft.graph.requests.extensions.IUserSendMailRequestBuilder;
135137
import com.microsoft.graph.requests.extensions.UserSendMailRequestBuilder;
@@ -471,6 +473,10 @@ public IUserChangePasswordRequestBuilder changePassword(final String currentPass
471473
return new UserChangePasswordRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.changePassword"), getClient(), null, currentPassword, newPassword);
472474
}
473475

476+
public IUserRevokeSignInSessionsRequestBuilder revokeSignInSessions() {
477+
return new UserRevokeSignInSessionsRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.revokeSignInSessions"), getClient(), null);
478+
}
479+
474480
public IUserSendMailRequestBuilder sendMail(final Message message, final Boolean saveToSentItems) {
475481
return new UserSendMailRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.sendMail"), getClient(), null, message, saveToSentItems);
476482
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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+
import com.microsoft.graph.requests.extensions.IUserRevokeSignInSessionsRequest;
7+
import com.microsoft.graph.requests.extensions.UserRevokeSignInSessionsRequest;
8+
9+
import com.microsoft.graph.concurrency.ICallback;
10+
import com.microsoft.graph.concurrency.IExecutors;
11+
import com.microsoft.graph.core.ClientException;
12+
import com.microsoft.graph.core.IBaseClient;
13+
import com.microsoft.graph.http.BaseRequest;
14+
import com.microsoft.graph.http.HttpMethod;
15+
import com.microsoft.graph.options.Option;
16+
import com.microsoft.graph.options.QueryOption;
17+
18+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
19+
20+
/**
21+
* The class for the User Revoke Sign In Sessions Request.
22+
*/
23+
public class UserRevokeSignInSessionsRequest extends BaseRequest implements IUserRevokeSignInSessionsRequest {
24+
25+
/**
26+
* The request for this UserRevokeSignInSessions
27+
*
28+
* @param requestUrl the request URL
29+
* @param client the service client
30+
* @param requestOptions the options for this request
31+
*/
32+
public UserRevokeSignInSessionsRequest(final String requestUrl, final IBaseClient client, final java.util.List<? extends Option> requestOptions) {
33+
super(requestUrl, client, requestOptions, Boolean.class);
34+
}
35+
36+
/**
37+
* Creates the UserRevokeSignInSessions
38+
*
39+
* @param callback the callback to be called after success or failure
40+
*/
41+
public void post(final ICallback<Boolean> callback) {
42+
send(HttpMethod.POST, callback, null);
43+
}
44+
45+
/**
46+
* Creates the UserRevokeSignInSessions
47+
*
48+
* @return the Boolean
49+
* @throws ClientException an exception occurs if there was an error while the request was sent
50+
*/
51+
public Boolean post() throws ClientException {
52+
return send(HttpMethod.POST, null);
53+
}
54+
55+
/**
56+
* Sets the select clause for the request
57+
*
58+
* @param value the select clause
59+
* @return the updated request
60+
*/
61+
public IUserRevokeSignInSessionsRequest select(final String value) {
62+
getQueryOptions().add(new QueryOption("$select", value));
63+
return (UserRevokeSignInSessionsRequest)this;
64+
}
65+
66+
/**
67+
* Sets the expand clause for the request
68+
*
69+
* @param value the expand clause
70+
* @return the updated request
71+
*/
72+
public IUserRevokeSignInSessionsRequest expand(final String value) {
73+
getQueryOptions().add(new QueryOption("$expand", value));
74+
return (UserRevokeSignInSessionsRequest)this;
75+
}
76+
77+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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+
import com.microsoft.graph.requests.extensions.IUserRevokeSignInSessionsRequest;
7+
import com.microsoft.graph.requests.extensions.UserRevokeSignInSessionsRequest;
8+
9+
import com.microsoft.graph.core.BaseActionRequestBuilder;
10+
import com.microsoft.graph.core.BaseFunctionRequestBuilder;
11+
import com.microsoft.graph.core.IBaseClient;
12+
import com.microsoft.graph.options.Option;
13+
import com.microsoft.graph.options.FunctionOption;
14+
import com.google.gson.JsonElement;
15+
16+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
17+
18+
/**
19+
* The class for the User Revoke Sign In Sessions Request Builder.
20+
*/
21+
public class UserRevokeSignInSessionsRequestBuilder extends BaseActionRequestBuilder implements IUserRevokeSignInSessionsRequestBuilder {
22+
23+
/**
24+
* The request builder for this UserRevokeSignInSessions
25+
*
26+
* @param requestUrl the request URL
27+
* @param client the service client
28+
* @param requestOptions the options for this request
29+
*/
30+
public UserRevokeSignInSessionsRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List<? extends Option> requestOptions) {
31+
super(requestUrl, client, requestOptions);
32+
}
33+
34+
/**
35+
* Creates the IUserRevokeSignInSessionsRequest
36+
*
37+
* @return the IUserRevokeSignInSessionsRequest instance
38+
*/
39+
public IUserRevokeSignInSessionsRequest buildRequest() {
40+
return buildRequest(getOptions());
41+
}
42+
43+
/**
44+
* Creates the IUserRevokeSignInSessionsRequest with specific requestOptions instead of the existing requestOptions
45+
*
46+
* @param requestOptions the options for the request
47+
* @return the IUserRevokeSignInSessionsRequest instance
48+
*/
49+
public IUserRevokeSignInSessionsRequest buildRequest(final java.util.List<? extends Option> requestOptions) {
50+
UserRevokeSignInSessionsRequest request = new UserRevokeSignInSessionsRequest(
51+
getRequestUrl(),
52+
getClient(),
53+
requestOptions
54+
);
55+
56+
return request;
57+
}
58+
}

0 commit comments

Comments
 (0)