Skip to content

Commit 59a8c13

Browse files
authored
Merge pull request #714 from microsoftgraph/upgrade-guide
updates the mention to the ChunkUploadProvider
2 parents 0a60c74 + 256de2e commit 59a8c13

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/upgrade-to-v3.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,6 @@ To provide a standard and modern way of executing requests asynchronuously to SD
116116
});
117117
```
118118

119-
### Non-generated code moved to the core library
120-
121-
The service library (microsoft-graph) was designed to contain only code that has been generated automatically from the API metadata. All code that has been manually handcrafted should live in the core library (microsoft-graph-core). This principle makes reusability of code easier for consumers and it was not respected until this new version of the SDK. All the code living under anything but `com.microsoft.graph.models` or `com.microsoft.graph.requests` have been moved to the same package name in the core asset. This move should be transparent to consumers, except for the following that needs to be updated. To upgrade your application do the following.
122-
123-
- Replace any reference to `ChunkUploadProvider` from `com.microsoft.graph.requests.extensions` to `com.microsoft.graph.concurrency`.
124-
- Replace any reference to `CustomRequestBuilder`, `DateOnly`, `TimeOfDay`, and `Multipart` from `com.microsoft.graph.(models|requests).extensions` to `com.microsoft.graph.core`.
125-
126119
### Removal of connection configuration
127120

128121
As the connection configuration evolved over time, the connection configuration infrastructure had become redundant with the native library configuration capabilities. To upgrade your application do the following.
@@ -152,7 +145,7 @@ To simplify the object model of the SDK, `BaseGraphServiceClient` has been merge
152145

153146
Requests, request builders, and responses have been refactored to take advantage of generic types. This maximizes code reusability improving performances, binary size and more. These changes should be transparent to most SDK consumers but it's possible to impact developers calling the SDK using reflection techniques.
154147
155-
## Batch object model improvements
148+
### Batch object model improvements
156149
157150
The object model for JSON batching has been improved to provide a cleaner API surface to SDK users. To upgrade your application do the following.
158151
@@ -231,7 +224,7 @@ The chunked upload provider has been renamed to large file upload task and moved
231224
- Replace any of the following
232225
233226
```Java
234-
import com.microsoft.graph.concurrency.ChunkedUploadProvider;
227+
import com.microsoft.graph.requests.extensions.ChunkedUploadProvider;
235228
```
236229
237230
By
@@ -254,7 +247,14 @@ The chunked upload provider has been renamed to large file upload task and moved
254247
255248
> Note: The **LargeFileUploadTask** now also provides an **uploadAsync** method to perform uploads in the background.
256249
257-
## Upgrade guide for non-breaking improvments
250+
### Non-generated code moved to the core library
251+
252+
The service library (microsoft-graph) was designed to contain only code that has been generated automatically from the API metadata. All code that has been manually handcrafted should live in the core library (microsoft-graph-core). This principle makes reusability of code easier for consumers and it was not respected until this new version of the SDK. All the code living under anything but `com.microsoft.graph.models` or `com.microsoft.graph.requests` have been moved to the same package name in the core asset. This move should be transparent to consumers, except for the following that needs to be updated. To upgrade your application do the following.
253+
254+
- Replace any reference to `ChunkUploadProvider` as showed above.
255+
- Replace any reference to `CustomRequestBuilder`, `DateOnly`, `TimeOfDay`, and `Multipart` from `com.microsoft.graph.(models|requests).extensions` to `com.microsoft.graph.core`.
256+
257+
## Upgrade guide for non-breaking improvements
258258
259259
This section lists out other improvements which are not considered as breaking changes. SDK users are strongly encouraged to take advantage of those new improvements to simplify their code.
260260
@@ -302,7 +302,7 @@ The SDK now produces methods to include the count of items included in collectio
302302
303303
> Note: support for `filter`, `orderBy`, `top`, `skip`, `skipToken`, and `expand` was also added in the last 2.X versions, if you are upgrading from an older version you might want to consider updating the use of query options by these new methods.
304304
305-
## Support for inherited OData methods
305+
### Support for inherited OData methods
306306
307307
The SDK now produces methods in child request builder types for the parents' OData methods (actions & functions). This change allows you to write more specific requests reducing the permissions required for your application.
308308

0 commit comments

Comments
 (0)