Skip to content

Commit db191e8

Browse files
committed
creating new resource for restoreSessionArtifactCount
1 parent 1231d43 commit db191e8

File tree

5 files changed

+62
-13
lines changed

5 files changed

+62
-13
lines changed

api-reference/beta/resources/exchangerestoresession.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Inherits from [restoreSessionBase](../resources/restoresessionbase.md).
3737
|lastModifiedDateTime|DateTimeOffset|Timestamp of last modification of this restore session.|
3838
|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`.|
3939
|restoreJobType|[restoreJobType](../resources/enums.md#restorejobtype-values)|Indicates whether the restore sesssion was created normally or by a bulk job.|
40-
|restoreSessionArtifactCount|[restoreSessionArtifactCount](../resources/restoresessionbase.md#restoresessionartifactcount)|The number of metadata artifacts that belong to this restore session.|
40+
|restoreSessionArtifactCount|[restoreSessionArtifactCount](../resources/restoresessionartifactcount.md)|The number of metadata artifacts that belong to this restore session.|
4141

4242
### restoreSessionStatus values
4343
|Member | Description |

api-reference/beta/resources/onedriveforbusinessrestoresession.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Inherits from [restoreSessionBase](../resources/restoresessionbase.md).
3838
|lastModifiedDateTime|DateTimeOffset|Timestamp of the last modification of this restore session.|
3939
|status|[restoreSessionStatus](../resources/onedriveforbusinessrestoresession.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`. 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`.|
4040
|restoreJobType|[restoreJobType](../resources/enums.md#restorejobtype-values)|Indicates whether the restore session was created normally or by a bulk job.|
41-
|restoreSessionArtifactCount|[restoreSessionArtifactCount](../resources/restoresessionbase.md#restoresessionartifactcount)|The number of metadata artifacts that belong to this restore session.|
41+
|restoreSessionArtifactCount|[restoreSessionArtifactCount](../resources/restoresessionartifactcount.md)|The number of metadata artifacts that belong to this restore session.|
4242

4343
### restoreSessionStatus values
4444

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
title: "restoreSessionArtifactCount resource type"
3+
description: "Represents artifact count metadata of a particular restoreSession"
4+
author: "satpatel1"
5+
ms.reviewer: "satpatel1"
6+
ms.localizationpriority: medium
7+
ms.subservice: "m365-backup-storage"
8+
doc_type: resourcePageType
9+
toc.title: RestoreSessionArtifactCount
10+
---
11+
12+
# restoreSessionArtifactCount resource type
13+
14+
Namespace: microsoft.graph
15+
16+
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
17+
18+
Represents Represents artifact count metadata of a particular [Restore Session](../resources/restoreSessionBase.md). Restore session APIs are used by SharePoint, OneDrive and Exchange Online Admins to perform restore-related tasks on artifacts that are protected as part of a protection policy.
19+
20+
## Methods
21+
22+
|Method|Return type|Description|
23+
|:---|:---|:---|
24+
|[Create](../api/backuprestoreroot-post-sharepointrestoresessions.md)|[sharePointRestoreSession](../resources/sharepointrestoresession.md)|Create a new [sharePointRestoreSession](../resources/sharepointrestoresession.md).|
25+
|[Create](../api/backuprestoreroot-post-onedriveforbusinessrestoresessions.md)|[oneDriveForBusinessRestoreSession](../resources/onedriveforbusinessrestoresessions.md)|Create a new [oneDriveForBusinessRestoreSession](../resources/onedriveforbusinessrestoresessions.md).|
26+
|[Create](../api/backuprestoreroot-post-exchangerestoresessions.md)|[exchangeRestoreSession](../resources/exchangerestoresessions.md)|Create a new [exchangeRestoreSession](../resources/exchangerestoresessions.md).|
27+
|[List](../api/backuprestoreroot-list-restoresessions.md)|[restoreSessionBase](../resources/restoresessionbase.md) collection|Get a list of [restoreSessionBase](../resources/restoresessionbase.md) objects and their properties.|
28+
|[Get](../api/restoresessionbase-get.md)|[restoreSessionBase](../resources/restoresessionbase.md)|Read the properties and relationships of a [restoreSessionBase](../resources/restoresessionbase.md) object.|
29+
|[Activate](../api/restoresessionbase-activate.md)|[restoreSessionBase](../resources/restoresessionbase.md)|Activate a draft restore session.|
30+
31+
## Properties
32+
33+
|Property|Type|Description|
34+
|:---|:---|:---|
35+
|total|Int32|Count of artifacts present in the restore session.|
36+
|inProgress|Int32|Count of artifacts whose restore is in progress.|
37+
|completed|Int32|Count of artifacts whose restore is completed.|
38+
|failed|Int32|Count of artifacts whose restore is failed.|
39+
40+
## JSON representation
41+
42+
The following JSON representation shows the resource type.
43+
<!-- {
44+
"blockType": "resource",
45+
"@odata.type": "microsoft.graph.restoreSessionArtifactCount",
46+
"baseType": "microsoft.graph.complextType",
47+
"openType": false
48+
}
49+
-->
50+
``` json
51+
{
52+
"@odata.type": "#microsoft.graph.restoreSessionArtifactCount",
53+
"total": "Int32",
54+
"inProgress": "Int32",
55+
"completed": "Int32",
56+
"failed": "Int32"
57+
}
58+
```

api-reference/beta/resources/restoresessionbase.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Restoring to both a new location and the same URL in a single restore session is
4141
|lastModifiedDateTime|DateTimeOffset|Timestamp of the last modification of the restore session.|
4242
|status|[restoreSessionStatus](../resources/restoresessionbase.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`. 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`.|
4343
|restoreJobType|[restoreJobType](../resources/enums.md#restorejobtype-values)|Indicates whether the restore sesssion was created normally or by a bulk job.|
44-
|restoreSessionArtifactCount|[restoreSessionArtifactCount](../resources/restoresessionbase.md#restoresessionartifactcount)|The number of metadata artifacts that belong to this restore session.|
44+
|restoreSessionArtifactCount|[restoreSessionArtifactCount](../resources/restoresessionartifactcount.md)|The number of metadata artifacts that belong to this restore session.|
4545

4646
### restoreSessionStatus values
4747

@@ -55,15 +55,6 @@ Restoring to both a new location and the same URL in a single restore session is
5555
|failed| All restore artifacts failed to restore.|
5656
|unknownFutureValue| Evolvable enumeration sentinel value. Don't use.|
5757

58-
### restoreSessionArtifactCount
59-
60-
|Property |Type |Description |
61-
|:------|:-----|:------------|
62-
|total|Int32|The number of artifacts added in the restore session.|
63-
|completed|Int32|The number of artifacts whose restore is complete.|
64-
|inProgress|Int32|The number of artifacts whose restore is in progress.|
65-
|failed|Int32|The number of artifacts whose restore failed.|
66-
6758
## Relationships
6859

6960
None.

api-reference/beta/resources/sharepointrestoresession.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Inherits from [restoreSessionBase](../resources/restoresessionbase.md).
4040
|lastModifiedDateTime|DateTimeOffset|Timestamp of last modification of this restore session.|
4141
|status|[restoreSessionStatus](../resources/sharepointrestoresession.md#restoresessionstatus-values)|Status of the restore session. The value is an aggregated status of restore artifacts. The possible values are: `draft`, `activating`, `active`, `completedWithError`, `completed`, `unknownFutureValue`, `failed`. 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`.|
4242
|restoreJobType|[restoreJobType](../resources/enums.md#restorejobtype-values)|Indicates whether the restore sesssion was created normally or by a bulk job.|
43-
|restoreSessionArtifactCount|[restoreSessionArtifactCount](../resources/restoresessionbase.md#restoresessionartifactcount)|The number of metadata artifacts that belong to this restore session.|
43+
|restoreSessionArtifactCount|[restoreSessionArtifactCount](../resources/restoresessionartifactcount)|The number of metadata artifacts that belong to this restore session.|
4444

4545
### restoreSessionStatus values
4646

0 commit comments

Comments
 (0)