Skip to content
Merged
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 @@ -3,6 +3,7 @@
import com.microsoft.graph.core.CoreConstants;
import com.microsoft.graph.core.authentication.AzureIdentityAuthenticationProvider;
import com.microsoft.graph.core.requests.BaseGraphRequestAdapter;
import com.microsoft.graph.core.requests.BaseGraphRequestAdapter.Clouds;
import com.microsoft.graph.core.requests.BatchRequestBuilder;
import com.microsoft.graph.core.requests.options.GraphClientOption;
import com.microsoft.graph.core.requests.IBaseClient;
Expand Down Expand Up @@ -65,6 +66,17 @@ public GraphServiceClient(@Nonnull AuthenticationProvider authenticationProvider
public GraphServiceClient(@Nonnull OkHttpClient client) {
this(new AnonymousAuthenticationProvider(), client);
}
/**
* Instantiate the GraphServiceClient using an AuthenticationProvider, Cloud and OkHttpClient.
* @param authenticationProvider The AuthenticationProvider for this GraphServiceClient.
* @param client The OkHttpClient for the GraphServiceClient.
* @param clouds The Clouds for the GraphServiceClient.
*
*/
@SuppressWarnings("LambdaLast")
public GraphServiceClient(@Nonnull AuthenticationProvider authenticationProvider, @Nonnull OkHttpClient client, @Nonnull Clouds clouds) {
this(new BaseGraphRequestAdapter(authenticationProvider, clouds, "v1.0", client));
}
/**
* Instantiate the GraphServiceClient using a TokenCredential and Scopes.
* @param tokenCredential The TokenCredential for this GraphServiceClient.
Expand Down
Loading