Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class EducationUser extends Entity implements IJsonBackedObject {

/**
* The Primary Role.
* 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.
* Default role for a user. The user's role might be different in an individual class. The possible values are: student, teacher. Supports $filter.
*/
@SerializedName("primaryRole")
@Expose
Expand All @@ -62,7 +62,7 @@ public class EducationUser extends Entity implements IJsonBackedObject {

/**
* The External Source.
* Where this user was created from. The possible values are: sis, manual, unkownFutureValue.
* Where this user was created from. The possible values are: sis, manual.
*/
@SerializedName("externalSource")
@Expose
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@ public class Group extends DirectoryObject implements IJsonBackedObject {
@Expose
public Boolean onPremisesSyncEnabled;

/**
* The Preferred Data Location.
* The preferred data location for the group. For more information, see OneDrive Online Multi-Geo. Returned by default.
*/
@SerializedName("preferredDataLocation")
@Expose
public String preferredDataLocation;

/**
* The Proxy Addresses.
* Email addresses for the group that direct to the same group mailbox. For example: ['SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com']. The any operator is required to filter expressions on multi-valued properties. Returned by default. Read-only. Not nullable. Supports $filter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,31 @@ public class MailSearchFolder extends MailFolder implements IJsonBackedObject {

/**
* The Is Supported.
*
* Indicates whether a search folder is editable using REST APIs.
*/
@SerializedName("isSupported")
@Expose
public Boolean isSupported;

/**
* The Include Nested Folders.
*
* 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.
*/
@SerializedName("includeNestedFolders")
@Expose
public Boolean includeNestedFolders;

/**
* The Source Folder Ids.
*
* The mailbox folders that should be mined.
*/
@SerializedName("sourceFolderIds")
@Expose
public java.util.List<String> sourceFolderIds;

/**
* The Filter Query.
*
* The OData query to filter the messages.
*/
@SerializedName("filterQuery")
@Expose
Expand Down
10 changes: 9 additions & 1 deletion src/main/java/com/microsoft/graph/models/extensions/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,14 @@ public class User extends DirectoryObject implements IJsonBackedObject {
@Expose
public Boolean showInAddressList;

/**
* The Sign In Sessions Valid From Date Time.
* 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.
*/
@SerializedName("signInSessionsValidFromDateTime")
@Expose
public java.util.Calendar signInSessionsValidFromDateTime;

/**
* The State.
* The state or province in the user's address. Supports $filter.
Expand Down Expand Up @@ -612,7 +620,7 @@ public class User extends DirectoryObject implements IJsonBackedObject {

/**
* The License Details.
* A collection of this user's license details. Nullable.
* A collection of this user's license details. Read-only.
*/
public LicenseDetailsCollectionPage licenseDetails;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
import com.microsoft.graph.models.extensions.AssignedLicense;
import com.microsoft.graph.requests.extensions.IUserAssignLicenseRequestBuilder;
import com.microsoft.graph.requests.extensions.IUserChangePasswordRequestBuilder;
import com.microsoft.graph.requests.extensions.IUserRevokeSignInSessionsRequestBuilder;
import com.microsoft.graph.models.extensions.Message;
import com.microsoft.graph.requests.extensions.IUserSendMailRequestBuilder;
import com.microsoft.graph.models.generated.MailTipsType;
Expand Down Expand Up @@ -279,6 +280,7 @@ public interface IUserRequestBuilder extends IRequestBuilder {
IGroupRequestBuilder joinedTeams(final String id);
IUserAssignLicenseRequestBuilder assignLicense(final java.util.List<AssignedLicense> addLicenses, final java.util.List<java.util.UUID> removeLicenses);
IUserChangePasswordRequestBuilder changePassword(final String currentPassword, final String newPassword);
IUserRevokeSignInSessionsRequestBuilder revokeSignInSessions();
IUserSendMailRequestBuilder sendMail(final Message message, final Boolean saveToSentItems);

IUserGetMailTipsCollectionRequestBuilder getMailTips(final java.util.List<String> emailAddresses, final EnumSet<MailTipsType> mailTipsOptions);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// ------------------------------------------------------------------------------
// 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.requests.extensions;
import com.microsoft.graph.requests.extensions.IUserRevokeSignInSessionsRequest;

import com.microsoft.graph.concurrency.ICallback;
import com.microsoft.graph.concurrency.IExecutors;
import com.microsoft.graph.core.ClientException;
import com.microsoft.graph.core.IBaseClient;
import com.microsoft.graph.http.BaseRequest;
import com.microsoft.graph.http.HttpMethod;
import com.microsoft.graph.options.Option;
import com.microsoft.graph.options.QueryOption;

// **NOTE** This file was generated by a tool and any changes will be overwritten.

/**
* The interface for the User Revoke Sign In Sessions Request.
*/
public interface IUserRevokeSignInSessionsRequest {

/**
* Creates the UserRevokeSignInSessions
*
* @param callback the callback to be called after success or failure
*/
void post(final ICallback<Boolean> callback);

/**
* Creates the UserRevokeSignInSessions
*
* @return the Boolean
* @throws ClientException an exception occurs if there was an error while the request was sent
*/
Boolean post() throws ClientException;

/**
* Sets the select clause for the request
*
* @param value the select clause
* @return the updated request
*/
IUserRevokeSignInSessionsRequest select(final String value);

/**
* Sets the expand clause for the request
*
* @param value the expand clause
* @return the updated request
*/
IUserRevokeSignInSessionsRequest expand(final String value);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// ------------------------------------------------------------------------------
// 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.requests.extensions;
import com.microsoft.graph.requests.extensions.IUserRevokeSignInSessionsRequest;

import com.microsoft.graph.http.IRequestBuilder;
import com.microsoft.graph.options.Option;

// **NOTE** This file was generated by a tool and any changes will be overwritten.

/**
* The interface for the User Revoke Sign In Sessions Request Builder.
*/
public interface IUserRevokeSignInSessionsRequestBuilder extends IRequestBuilder {

/**
* Creates the IUserRevokeSignInSessionsRequest
*
* @return the IUserRevokeSignInSessionsRequest instance
*/
IUserRevokeSignInSessionsRequest buildRequest();

/**
* Creates the IUserRevokeSignInSessionsRequest with specific options instead of the existing options
*
* @param requestOptions the options for the request
* @return the IUserRevokeSignInSessionsRequest instance
*/
IUserRevokeSignInSessionsRequest buildRequest(final java.util.List<? extends Option> requestOptions);
}
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@
import com.microsoft.graph.requests.extensions.UserAssignLicenseRequestBuilder;
import com.microsoft.graph.requests.extensions.IUserChangePasswordRequestBuilder;
import com.microsoft.graph.requests.extensions.UserChangePasswordRequestBuilder;
import com.microsoft.graph.requests.extensions.IUserRevokeSignInSessionsRequestBuilder;
import com.microsoft.graph.requests.extensions.UserRevokeSignInSessionsRequestBuilder;
import com.microsoft.graph.models.extensions.Message;
import com.microsoft.graph.requests.extensions.IUserSendMailRequestBuilder;
import com.microsoft.graph.requests.extensions.UserSendMailRequestBuilder;
Expand Down Expand Up @@ -471,6 +473,10 @@ public IUserChangePasswordRequestBuilder changePassword(final String currentPass
return new UserChangePasswordRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.changePassword"), getClient(), null, currentPassword, newPassword);
}

public IUserRevokeSignInSessionsRequestBuilder revokeSignInSessions() {
return new UserRevokeSignInSessionsRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.revokeSignInSessions"), getClient(), null);
}

public IUserSendMailRequestBuilder sendMail(final Message message, final Boolean saveToSentItems) {
return new UserSendMailRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.sendMail"), getClient(), null, message, saveToSentItems);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
// ------------------------------------------------------------------------------
// 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.requests.extensions;
import com.microsoft.graph.requests.extensions.IUserRevokeSignInSessionsRequest;
import com.microsoft.graph.requests.extensions.UserRevokeSignInSessionsRequest;

import com.microsoft.graph.concurrency.ICallback;
import com.microsoft.graph.concurrency.IExecutors;
import com.microsoft.graph.core.ClientException;
import com.microsoft.graph.core.IBaseClient;
import com.microsoft.graph.http.BaseRequest;
import com.microsoft.graph.http.HttpMethod;
import com.microsoft.graph.options.Option;
import com.microsoft.graph.options.QueryOption;

// **NOTE** This file was generated by a tool and any changes will be overwritten.

/**
* The class for the User Revoke Sign In Sessions Request.
*/
public class UserRevokeSignInSessionsRequest extends BaseRequest implements IUserRevokeSignInSessionsRequest {

/**
* The request for this UserRevokeSignInSessions
*
* @param requestUrl the request URL
* @param client the service client
* @param requestOptions the options for this request
*/
public UserRevokeSignInSessionsRequest(final String requestUrl, final IBaseClient client, final java.util.List<? extends Option> requestOptions) {
super(requestUrl, client, requestOptions, Boolean.class);
}

/**
* Creates the UserRevokeSignInSessions
*
* @param callback the callback to be called after success or failure
*/
public void post(final ICallback<Boolean> callback) {
send(HttpMethod.POST, callback, null);
}

/**
* Creates the UserRevokeSignInSessions
*
* @return the Boolean
* @throws ClientException an exception occurs if there was an error while the request was sent
*/
public Boolean post() throws ClientException {
return send(HttpMethod.POST, null);
}

/**
* Sets the select clause for the request
*
* @param value the select clause
* @return the updated request
*/
public IUserRevokeSignInSessionsRequest select(final String value) {
getQueryOptions().add(new QueryOption("$select", value));
return (UserRevokeSignInSessionsRequest)this;
}

/**
* Sets the expand clause for the request
*
* @param value the expand clause
* @return the updated request
*/
public IUserRevokeSignInSessionsRequest expand(final String value) {
getQueryOptions().add(new QueryOption("$expand", value));
return (UserRevokeSignInSessionsRequest)this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// ------------------------------------------------------------------------------
// 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.requests.extensions;
import com.microsoft.graph.requests.extensions.IUserRevokeSignInSessionsRequest;
import com.microsoft.graph.requests.extensions.UserRevokeSignInSessionsRequest;

import com.microsoft.graph.core.BaseActionRequestBuilder;
import com.microsoft.graph.core.BaseFunctionRequestBuilder;
import com.microsoft.graph.core.IBaseClient;
import com.microsoft.graph.options.Option;
import com.microsoft.graph.options.FunctionOption;
import com.google.gson.JsonElement;

// **NOTE** This file was generated by a tool and any changes will be overwritten.

/**
* The class for the User Revoke Sign In Sessions Request Builder.
*/
public class UserRevokeSignInSessionsRequestBuilder extends BaseActionRequestBuilder implements IUserRevokeSignInSessionsRequestBuilder {

/**
* The request builder for this UserRevokeSignInSessions
*
* @param requestUrl the request URL
* @param client the service client
* @param requestOptions the options for this request
*/
public UserRevokeSignInSessionsRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List<? extends Option> requestOptions) {
super(requestUrl, client, requestOptions);
}

/**
* Creates the IUserRevokeSignInSessionsRequest
*
* @return the IUserRevokeSignInSessionsRequest instance
*/
public IUserRevokeSignInSessionsRequest buildRequest() {
return buildRequest(getOptions());
}

/**
* Creates the IUserRevokeSignInSessionsRequest with specific requestOptions instead of the existing requestOptions
*
* @param requestOptions the options for the request
* @return the IUserRevokeSignInSessionsRequest instance
*/
public IUserRevokeSignInSessionsRequest buildRequest(final java.util.List<? extends Option> requestOptions) {
UserRevokeSignInSessionsRequest request = new UserRevokeSignInSessionsRequest(
getRequestUrl(),
getClient(),
requestOptions
);

return request;
}
}