Skip to content

Commit 5b0c253

Browse files
authored
Merge pull request #25651 from microsoftgraph/user/satpatel/docChangesRS
Updating RestoreSession documentation
2 parents 7d87d5f + cbeca3a commit 5b0c253

16 files changed

+221
-17
lines changed

api-reference/beta/api/backuprestoreroot-list-restoresessions.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ Content-Type: application/json
120120
"@odata.type": "#microsoft.graph.sharepointRestoreSession",
121121
"id": "959ba739-70b5-43c4-8c90-b2c22014f18b",
122122
"status": "active",
123+
"restoreJobType": "standard",
124+
"restoreSessionArtifactCount": {
125+
"total": 2,
126+
"completed": 1,
127+
"inProgress": 1,
128+
"failed": 0
129+
},
123130
"createdBy": {
124131
"application": {
125132
"id": "1fec8e78-bce4-4aaf-ab1b-5451cc387264",
@@ -148,6 +155,13 @@ Content-Type: application/json
148155
"@odata.type": "#microsoft.graph.exchangeRestoreSession",
149156
"id": "959ba739-70b5-43c4-8c90-b2c22014f18b",
150157
"status": "active",
158+
"restoreJobType": "standard",
159+
"restoreSessionArtifactCount": {
160+
"total": 2,
161+
"completed": 1,
162+
"inProgress": 1,
163+
"failed": 0
164+
},
151165
"createdBy": {
152166
"application": {
153167
"id": "1fec8e78-bce4-4aaf-ab1b-5451cc387264",
@@ -176,6 +190,13 @@ Content-Type: application/json
176190
"@odata.type": "#microsoft.graph.oneDriveForBusinessRestoreSession",
177191
"id": "959ba739-70b5-43c4-8c90-b2c22014f18b",
178192
"status": "active",
193+
"restoreJobType": "standard",
194+
"restoreSessionArtifactCount": {
195+
"total": 2,
196+
"completed": 1,
197+
"inProgress": 1,
198+
"failed": 0
199+
},
179200
"createdBy": {
180201
"application": {
181202
"id": "1fec8e78-bce4-4aaf-ab1b-5451cc387264",
@@ -204,6 +225,13 @@ Content-Type: application/json
204225
"@odata.type": "#microsoft.graph.sharepointRestoreSession",
205226
"id": "c86a1eaf-1925-46cc-8ab2-567302dd78a9",
206227
"status": "failed", // Newly Added
228+
"restoreJobType": "standard",
229+
"restoreSessionArtifactCount": {
230+
"total": 2,
231+
"completed": 0,
232+
"inProgress": 0,
233+
"failed": 2
234+
},
207235
"createdBy": {
208236
"application": {
209237
"id": "1fec8e78-bce4-4aaf-ab1b-5451cc387264",

api-reference/beta/api/backuprestoreroot-post-exchangerestoresessions.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,13 @@ Content-Type: application/json
145145
"@odata.context": "/solutions/backupRestore/$metadata#exchangeRestoreSessions/$entity",
146146
"id": "959ba739-70b5-43c4-8c90-b2c22014f18b",
147147
"status": "draft",
148+
"restoreJobType": "standard",
149+
"restoreSessionArtifactCount": {
150+
"total": 2,
151+
"completed": 0,
152+
"inProgress": 0,
153+
"failed": 0
154+
},
148155
"createdBy": {
149156
"application": {
150157
"id": "1fec8e78-bce4-4aaf-ab1b-5451cc387264",
@@ -251,6 +258,13 @@ Content-Type: application/json
251258
"@odata.context": "/solutions/backupRestore/$metadata#exchangeRestoreSessions/$entity",
252259
"id": "959ba739-70b5-43c4-8c90-b2c22014f18b",
253260
"status": "draft",
261+
"restoreJobType": "standard",
262+
"restoreSessionArtifactCount": {
263+
"total": 2,
264+
"completed": 0,
265+
"inProgress": 0,
266+
"failed": 0
267+
},
254268
"createdBy": {
255269
"application": {
256270
"id": "1fec8e78-bce4-4aaf-ab1b-5451cc387264",

api-reference/beta/api/backuprestoreroot-post-onedriveforbusinessrestoresessions.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Create oneDriveForBusinessRestoreSession"
3-
description: "Create a new OneDrive for Business restore session."
3+
description: "Create a new OneDrive for Work or School restore session."
44
author: "tushar20"
55
ms.reviewer: "manikantsinghms"
66
ms.localizationpriority: medium
@@ -142,6 +142,13 @@ Content-Type: application/json
142142
"@odata.context": "/solutions/backupRestore/$metadata#oneDriveForBusinessRestoreSession/$entity",
143143
"id": "959ba739-70b5-43c4-8c90-b2c22014f18b",
144144
"status": "draft",
145+
"restoreJobType": "standard",
146+
"restoreSessionArtifactCount": {
147+
"total": 2,
148+
"completed": 0,
149+
"inProgress": 0,
150+
"failed": 0
151+
},
145152
"createdBy": {
146153
"application": {
147154
"id": "1fec8e78-bce4-4aaf-ab1b-5451cc387264",

api-reference/beta/api/backuprestoreroot-post-sharepointrestoresessions.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,13 @@ Content-Type: application/json
142142
"@odata.type": "#microsoft.graph.sharepointRestoreSession",
143143
"id": "61633878-8321-4950-bfaf-ed285bdd1461",
144144
"status": "activating",
145+
"restoreJobType": "standard",
146+
"restoreSessionArtifactCount": {
147+
"total": 2,
148+
"completed": 0,
149+
"inProgress": 2,
150+
"failed": 0
151+
},
145152
"createdBy": {
146153
"application": {
147154
"id": "1fec8e78-bce4-4aaf-ab1b-5451cc387264",

api-reference/beta/api/exchangerestoresession-list-mailboxrestoreartifacts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ Content-Type: application/json
125125
"completionDateTime": "2023-12-04T13:22:12.7209691Z",
126126
"restoredFolderId": "0bdb38aa-5ad4-43ae-b63d-54426c97caa3",
127127
"restoredFolderName": "testmailbox101",
128+
"restoredItemCount": 5,
128129
"restorePoint": {
129130
"id": "ffd2687a-f507-4a82-9dff-2fa78cfdaa41_1801645000_12_2",
130131
"protectionDateTime": "2023-12-04T00:00:00Z",
@@ -139,6 +140,7 @@ Content-Type: application/json
139140
"completionDateTime": "2024-02-10T13:22:12.7209691Z",
140141
"restoredFolderId": "f8bb7c43-dabd-4300-a56a-510f093bc537",
141142
"restoredFolderName": "testmailbox102",
143+
"restoredItemCount": 10,
142144
"restorePoint": {
143145
"id": "86ba0fa7-db56-4c70-bf47-62adafefc0ee_1801645000_12_2",
144146
"protectionDateTime": "2024-02-10T00:00:00Z",

api-reference/beta/api/restoresessionbase-activate.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ Content-Type: application/json
133133
"@odata.type": "#microsoft.graph.sharepointRestoreSession",
134134
"id": "61633878-8321-4950-bfaf-ed285bdd1461",
135135
"status": "activating",
136+
"restoreJobType": "standard",
137+
"restoreSessionArtifactCount": {
138+
"total": 2,
139+
"completed": 0,
140+
"inProgress": 2,
141+
"failed": 0
142+
},
136143
"createdBy": {
137144
"application": {
138145
"id": "1fec8e78-bce4-4aaf-ab1b-5451cc387264",

api-reference/beta/api/restoresessionbase-get.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,13 @@ Content-Type: application/json
118118
"@odata.type": "#microsoft.graph.sharepointRestoreSession",
119119
"id": "959ba739-70b5-43c4-8c90-b2c22014f18b",
120120
"status": "active",
121+
"restoreJobType": "standard",
122+
"restoreSessionArtifactCount": {
123+
"total": 2,
124+
"completed": 1,
125+
"inProgress": 1,
126+
"failed": 0
127+
},
121128
"createdBy": {
122129
"application": {
123130
"id": "1fec8e78-bce4-4aaf-ab1b-5451cc387264",

api-reference/beta/resources/enums.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4957,3 +4957,11 @@ Possible values for user account types (group membership), per Windows definitio
49574957
|false|
49584958
|true|
49594959
|unknownFutureValue|
4960+
4961+
### restoreJobType values
4962+
4963+
|Member|
4964+
|:---|
4965+
|standard|
4966+
|bulk|
4967+
|unknownFutureValue|

api-reference/beta/resources/exchangerestoresession.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ Inherits from [restoreSessionBase](../resources/restoresessionbase.md).
3535
|error|[publicError](../resources/publicerror.md)|Contains error details if the restore session fails or completes with an error.|
3636
|lastModifiedBy|[identitySet](../resources/identityset.md)|Identity of the person who last modified this restore session.|
3737
|lastModifiedDateTime|DateTimeOffset|Timestamp of last modification of this restore session.|
38+
|restoreJobType|[restoreJobType](../resources/enums.md#restorejobtype-values)|Indicates whether the restore session was created normally or by a bulk job.|
39+
|restoreSessionArtifactCount|[restoreSessionArtifactCount](../resources/restoresessionartifactcount.md)|The number of metadata artifacts that belong to this restore session.|
3840
|status|[restoreSessionStatus](../resources/exchangerestoresession.md#restoresessionstatus-values)|Status of the restore session. The value is an aggregated status of the restored artifacts. The possible values are: `draft`, `activating`, `active`, `completedWithError`, `completed`, `unknownFutureValue`, `failed`. Note that you must use the `Prefer: include-unknown-enum-members` request header to get the following value in this [evolvable enum](/graph/best-practices-concept#handling-future-members-in-evolvable-enumerations): `failed`.|
3941

4042
### restoreSessionStatus values
@@ -46,7 +48,7 @@ Inherits from [restoreSessionBase](../resources/restoresessionbase.md).
4648
|completedWithError|Some artifacts failed to restore, and some succeeded.|
4749
|completed| All restore artifacts successfully restored.|
4850
|failed| All restore artifacts failed to restore.|
49-
|unknownFutureValue| Evolvable enumeration sentinel value. Do not use.|
51+
|unknownFutureValue| Evolvable enumeration sentinel value. Don't use.|
5052

5153
## Relationships
5254
|Relationship|Type|Description|
@@ -68,6 +70,10 @@ The following JSON representation shows the resource type.
6870
"@odata.type": "#microsoft.graph.exchangeRestoreSession",
6971
"id": "String (identifier)",
7072
"status": "String",
73+
"restoreJobType": "String",
74+
"restoreSessionArtifactCount": {
75+
"@odata.type": "microsoft.graph.restoreSessionArtifactCount"
76+
},
7177
"createdDateTime": "String (timestamp)",
7278
"createdBy": {
7379
"@odata.type": "microsoft.graph.identitySet"

api-reference/beta/resources/granularmailboxrestoreartifact.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ Inherits from [mailboxRestoreArtifact](../resources/mailboxRestoreArtifact.md).
3333
|error|[publicError](../resources/publicerror.md)|Contains error details if the restoration of the artifact fails. Inherited from [restoreArtifactBase](../resources/restoreartifactbase.md).|
3434
|restoredFolderId|String|The new restored folder identifier for the user.|
3535
|restoredFolderName|String|The new restored folder name.|
36+
|restoredItemCount|Int32|The number of items that are being restored in the folder.|
3637
|searchResponseId|String|.|
3738
|startDateTime|DateTimeOffset|The time when the restoration of the artifact started. Inherited from [restoreArtifactBase](../resources/restoreartifactbase.md).|
38-
|status|[artifactRestoreStatus](../resources/mailboxrestoreartifact.md#artifactrestorestatus-values)|The restoration status of the artifact. Inherited from [restoreArtifactBase](../resources/restoreartifactbase.md).T he possible values are: `added`, `scheduling`, `scheduled`, `inProgress`, `succeeded`, `failed`, `unknownFutureValue`.|
39+
|status|[artifactRestoreStatus](../resources/mailboxrestoreartifact.md#artifactrestorestatus-values)|The restoration status of the artifact. Inherited from [restoreArtifactBase](../resources/restoreartifactbase.md). The possible values are: `added`, `scheduling`, `scheduled`, `inProgress`, `succeeded`, `failed`, `unknownFutureValue`.|
3940

4041
## Relationships
4142
|Relationship|Type|Description|
@@ -66,6 +67,7 @@ The following JSON representation shows the resource type.
6667
},
6768
"restoredFolderId": "String",
6869
"restoredFolderName": "String",
70+
"restoredItemCount": "Int32",
6971
"searchResponseId": "String"
7072
}
7173
```

0 commit comments

Comments
 (0)