Skip to content

Commit 5e1b68d

Browse files
authored
Merge pull request #28323 from microsoftgraph/goc/add-backupRetentionPeriodInDays-beta
Add backupRetentionPeriodInDays property to protectionUnitBase and derived types (beta)
2 parents 986da74 + db6f666 commit 5e1b68d

10 files changed

Lines changed: 93 additions & 8 deletions

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ HTTP/1.1 200 OK
123123
"directoryObjectId": "384974e2-72cd-48de-a6e8-6985d7c5db90",
124124
"displayName": "Jefferson Lee", // Newly Added
125125
"email": "lee@contoso.com", // Newly Added
126+
"backupRetentionPeriodInDays": 180,
126127
"status": "unprotected",
127128
"protectionSources": "none",
128129
"createdBy": {
@@ -159,6 +160,7 @@ HTTP/1.1 200 OK
159160
"directoryObjectId": "781d9337-d8f0-456e-92cd-00a3abdd2093",
160161
"displayName": "Mastura Ibrahim", // Newly Added
161162
"email": "ibrahim@contoso.com", // Newly Added
163+
"backupRetentionPeriodInDays": 180,
162164
"status": "protected",
163165
"protectionSources": "manual, dynamicRule",
164166
"createdBy": {
@@ -195,6 +197,7 @@ HTTP/1.1 200 OK
195197
"directoryObjectId": "2d1d9337-d8f0-456e-92cd-00a3abdd2093",
196198
"displayName": "Esmira Musayeva", // Newly Added
197199
"email": "esmira@contoso.com", // Newly Added
200+
"backupRetentionPeriodInDays": 180,
198201
"status": "unprotected",
199202
"protectionSources": "none",
200203
"createdBy": {
@@ -231,6 +234,7 @@ HTTP/1.1 200 OK
231234
"directoryObjectId": "2e1d9337-d8f0-456e-92cd-00a3abdd2093",
232235
"displayName": "Ahmad Hakiki", // Newly Added
233236
"email": "ahmad@contoso.com", // Newly Added
237+
"backupRetentionPeriodInDays": 180,
234238
"status": "protectRequested",
235239
"protectionSources": "manual",
236240
"createdBy": {
@@ -266,6 +270,7 @@ HTTP/1.1 200 OK
266270
"directoryObjectId": "2w1d9337-d8f0-456e-92cd-00a3abdd2093",
267271
"displayName": "Rashmi Mishra ", // Newly Added
268272
"email": "eddyb@contoso.com", // Newly Added
273+
"backupRetentionPeriodInDays": 180,
269274
"status": "unprotected",
270275
"protectionSources": "none",
271276
"createdBy": {
@@ -368,6 +373,7 @@ HTTP/1.1 200 OK
368373
"directoryObjectId": "384974e2-72cd-48de-a6e8-6985d7c5db90",
369374
"displayName": "Jefferson Lee", // Newly Added
370375
"email": "lee@contoso.com", // Newly Added
376+
"backupRetentionPeriodInDays": 180,
371377
"status": "protectRequested",
372378
"protectionSources": "manual",
373379
"createdBy": {
@@ -404,6 +410,7 @@ HTTP/1.1 200 OK
404410
"directoryObjectId": "184d9337-d8f0-456e-92cd-00a3abdd2093",
405411
"displayName": "Mastura Ibrahim", // Newly Added
406412
"email": "ibrahim@contoso.com", // Newly Added
413+
"backupRetentionPeriodInDays": 180,
407414
"status": "protectRequested",
408415
"protectionSources": "dynamicRule",
409416
"createdBy": {
@@ -440,6 +447,7 @@ HTTP/1.1 200 OK
440447
"directoryObjectId": "344d9337-d8f0-456e-92cd-00a3abdd2093",
441448
"displayName": "Esmira Musayeva", // Newly Added
442449
"email": "esmira@contoso.com", // Newly Added
450+
"backupRetentionPeriodInDays": 180,
443451
"status": "protectRequested",
444452
"protectionSources": "dynamicRule",
445453
"createdBy": {
@@ -476,6 +484,7 @@ HTTP/1.1 200 OK
476484
"directoryObjectId": "781d9337-d8f0-456e-92cd-00a3abdd2093",
477485
"displayName": "Ahmad Hakiki", // Newly Added
478486
"email": "ahmad@contoso.com", // Newly Added
487+
"backupRetentionPeriodInDays": 180,
479488
"status": "removeRequested",
480489
"protectionSources": "none",
481490
"createdBy": {
@@ -512,6 +521,7 @@ HTTP/1.1 200 OK
512521
"directoryObjectId": "2d1d9337-d8f0-456e-92cd-00a3abdd2093",
513522
"displayName": "Jeffry Goh ", // Newly Added
514523
"email": "jeffry@contoso.com", // Newly Added
524+
"backupRetentionPeriodInDays": 180,
515525
"status": "protected",
516526
"protectionSources": "manual",
517527
"createdBy": {

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ HTTP/1.1 200 OK
125125
"displayName": "Jefferson Lee", // Newly Added
126126
"email": "lee@contoso.com", // Newly Added
127127
"mailboxType": "user",
128+
"backupRetentionPeriodInDays": 180,
128129
"status": "unprotectRequested",
129130
"protectionSources": "none",
130131
"createdBy": {
@@ -161,6 +162,7 @@ HTTP/1.1 200 OK
161162
"directoryObjectId": "781d9337-d8f0-456e-92cd-00a3abdd2093",
162163
"displayName": "Mastura Ibrahim", // Newly Added
163164
"email": "mastura@contoso.com", // Newly Added
165+
"backupRetentionPeriodInDays": 180,
164166
"status": "unprotected",
165167
"protectionSources": "none",
166168
"mailboxType": "shared",
@@ -199,6 +201,7 @@ HTTP/1.1 200 OK
199201
"displayName": "Ahmad Hakiki", // Newly Added
200202
"email": "ahmad@contoso.com", // Newly Added
201203
"mailboxType": "user",
204+
"backupRetentionPeriodInDays": 180,
202205
"status": "protectRequested",
203206
"protectionSources": "manual",
204207
"createdBy": {
@@ -236,6 +239,7 @@ HTTP/1.1 200 OK
236239
"displayName": "Jeffry Goh", // Newly Added
237240
"email": "jeffry@contoso.com", // Newly Added
238241
"mailboxType": "user",
242+
"backupRetentionPeriodInDays": 180,
239243
"status": "protected",
240244
"protectionSources": "dynamicRule",
241245
"createdBy": {
@@ -271,6 +275,7 @@ HTTP/1.1 200 OK
271275
"directoryObjectId": "2w1d9337-d8f0-456e-92cd-00a3abdd2093",
272276
"displayName": "Suresh Pasupuleti", // Newly Added
273277
"email": "suresh@contoso.com", // Newly Added
278+
"backupRetentionPeriodInDays": 180,
274279
"status": "unprotected",
275280
"protectionSources": "none",
276281
"mailboxType": "shared",
@@ -341,6 +346,7 @@ HTTP/1.1 200 OK
341346
"directoryObjectId": "384974e2-72cd-48de-a6e8-6985d7c5db90",
342347
"displayName": "Jefferson Lee", // Newly Added
343348
"email": "lee@contoso.com", // Newly Added
349+
"backupRetentionPeriodInDays": 180,
344350
"status": "protected",
345351
"protectionSources": "manual, dynamicRule",
346352
"mailboxType": "user",
@@ -379,6 +385,7 @@ HTTP/1.1 200 OK
379385
"displayName": "Mastura Ibrahim", // Newly Added
380386
"email": "mastura@contoso.com", // Newly Added
381387
"mailboxType": "shared",
388+
"backupRetentionPeriodInDays": 180,
382389
"status": "protectRequested",
383390
"protectionSources": "manual",
384391
"createdBy": {
@@ -415,6 +422,7 @@ HTTP/1.1 200 OK
415422
"directoryObjectId": "344d9337-d8f0-456e-92cd-00a3abdd2093",
416423
"displayName": "Esmira Musayeva", // Newly Added
417424
"email": "esmira@contoso.com", // Newly Added
425+
"backupRetentionPeriodInDays": 180,
418426
"status": "protectRequested",
419427
"protectionSources": "manual",
420428
"mailboxType": "user",
@@ -452,6 +460,7 @@ HTTP/1.1 200 OK
452460
"directoryObjectId": "781d9337-d8f0-456e-92cd-00a3abdd2093",
453461
"displayName": "Ahmad Hakiki", // Newly Added
454462
"email": "ahmad@contoso.com", // Newly Added
463+
"backupRetentionPeriodInDays": 180,
455464
"status": "removeRequested",
456465
"protectionSources": "none",
457466
"mailboxType": "user",
@@ -489,6 +498,7 @@ HTTP/1.1 200 OK
489498
"directoryObjectId": "2d1d9337-d8f0-456e-92cd-00a3abdd2093",
490499
"displayName": "Rashmi Mishra ", // Newly Added
491500
"email": "rashmi@contoso.com", // Newly Added
501+
"backupRetentionPeriodInDays": 180,
492502
"status": "protectRequested",
493503
"protectionSources": "dynamicRule",
494504
"mailboxType": "shared",

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ HTTP/1.1 200 OK
125125
"siteName": "Enhanced Restore IDC", // Newly Added
126126
"siteWebUrl": "https://contoso.sharepoint.com/teams/ERIDC", // Newly Added
127127
"policyId": "9fec8e78-bce4-4aaf-ab1b-5451cc387264",
128+
"backupRetentionPeriodInDays": 180,
128129
"status": "unprotected",
129130
"protectionSources": "none",
130131
"createdBy": {
@@ -161,6 +162,7 @@ HTTP/1.1 200 OK
161162
"siteName": "Enhanced Restore IDC - 1", // Newly Added
162163
"siteWebUrl": "https://contoso.sharepoint.com/teams/ERIDCOne", // Newly Added
163164
"policyId": "9fec8e78-bce4-4aaf-ab1b-5451cc387264",
165+
"backupRetentionPeriodInDays": 180,
164166
"status": "unprotectRequested",
165167
"protectionSources": "none",
166168
"createdBy": {
@@ -197,6 +199,7 @@ HTTP/1.1 200 OK
197199
"siteId": "contoso-jpn.sharepoint.com,da60e844-ba1d-49bc-b4d4-d5e36bae9019,0271110f-634f-4300-a841-3a8a2e8517765",
198200
"siteName": "Enhanced Restore IDC - 2", // Newly Added
199201
"siteWebUrl": "https://contoso.sharepoint.com/teams/ERIDCTwo", // Newly Added
202+
"backupRetentionPeriodInDays": 180,
200203
"status": "protected",
201204
"protectionSources": "manual",
202205
"createdBy": {
@@ -232,6 +235,7 @@ HTTP/1.1 200 OK
232235
"siteId": "contoso-jpn.sharepoint.com,da60e844-ba1d-49bc-b4d4-d5e36bae9019,0271110f-634f-4300-a841-3a8a2e850987",
233236
"siteName": "Enhanced Restore IDC - 3", // Newly Added
234237
"siteWebUrl": "https://contoso.sharepoint.com/teams/ERIDCThree", // Newly Added
238+
"backupRetentionPeriodInDays": 180,
235239
"status": "unprotected",
236240
"protectionSources": "none",
237241
"createdBy": {
@@ -268,6 +272,7 @@ HTTP/1.1 200 OK
268272
"siteId": "contoso-jpn.sharepoint.com,da60e844-ba1d-49bc-b4d4-d5e36bae9019,1111110f-634f-4300-a841-3a8a2e851851",
269273
"siteName": "Who+", // Newly Added
270274
"siteWebUrl": "https://contoso.sharepoint.com/teams/Whoplus", // Newly Added
275+
"backupRetentionPeriodInDays": 180,
271276
"status": "protectRequested",
272277
"protectionSources": "manual",
273278
"createdBy": {
@@ -371,6 +376,7 @@ HTTP/1.1 200 OK
371376
"siteName": "Who+", // Newly Added
372377
"siteWebUrl": "https://contoso.sharepoint.com/teams/Whoplus", // Newly Added
373378
"policyId": "9fec8e78-bce4-4aaf-ab1b-5451cc387264",
379+
"backupRetentionPeriodInDays": 180,
374380
"status": "protectRequested",
375381
"protectionSources": "manual",
376382
"createdBy": {
@@ -407,6 +413,7 @@ HTTP/1.1 200 OK
407413
"siteName": "Enhanced Restore IDC", // Newly Added
408414
"siteWebUrl": "https://contoso.sharepoint.com/teams/ERIDC", // Newly Added
409415
"policyId": "9fec8e78-bce4-4aaf-ab1b-5451cc387264",
416+
"backupRetentionPeriodInDays": 180,
410417
"status": "protectRequested",
411418
"protectionSources": "manual",
412419
"createdBy": {
@@ -443,6 +450,7 @@ HTTP/1.1 200 OK
443450
"siteName": "Enhanced Restore IDC - 1", // Newly Added
444451
"siteWebUrl": "https://contoso.sharepoint.com/teams/ERIDCOne", // Newly Added
445452
"policyId": "9fec8e78-bce4-4aaf-ab1b-5451cc387264",
453+
"backupRetentionPeriodInDays": 180,
446454
"status": "protectRequested",
447455
"protectionSources": "manual",
448456
"createdBy": {
@@ -479,6 +487,7 @@ HTTP/1.1 200 OK
479487
"siteId": "contoso.sharepoint.com,fd1a778f-263e-4c43-acdf-d5c2519d80eb,c06016db-dfec-4f79-83a1-09c6dbfd5432",
480488
"siteName": "Enhanced Restore IDC - 2", // Newly Added
481489
"siteWebUrl": "https://contoso.sharepoint.com/teams/ERIDCTwo", // Newly Added
490+
"backupRetentionPeriodInDays": 180,
482491
"status": "protectRequested",
483492
"protectionSources": "manual",
484493
"createdBy": {
@@ -515,6 +524,7 @@ HTTP/1.1 200 OK
515524
"siteId": "contoso.sharepoint.com,fd1a778f-263e-4c43-acdf-d5c2519d80eb,c06016db-dfec-4f79-83a1-09c6dbfd8765",
516525
"siteName": "Enhanced Restore IDC - 3", // Newly Added
517526
"siteWebUrl": "https://contoso.sharepoint.com/teams/ERIDCThree", // Newly Added
527+
"backupRetentionPeriodInDays": 180,
518528
"status": "protected",
519529
"protectionSources": "manual",
520530
"createdBy": {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ HTTP/1.1 200 OK
112112
"id": "89014d8c-71fe-4d00-a01a-31850bc5b32c",
113113
"siteId": "contoso-jpn.sharepoint.com,da60e844-ba1d-49bc-b4d4-d5e36bae9019,0271110f-634f-4300-a841-3a8a2e900900",
114114
"policyId": "845457dc-4bb2-4815-bef3-8628ebd1952e",
115+
"backupRetentionPeriodInDays": 180,
115116
"status": "protectRequested",
116117
"protectionSources": "manual",
117118
"createdBy": {

api-reference/beta/resources/driveprotectionunit.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Inherits from [protectionUnitBase](../resources/protectionunitbase.md).
2727
## Properties
2828
|Property|Type|Description|
2929
|:---|:---|:---|
30+
|backupRetentionPeriodInDays|Int32|The retention period of the backup, in days. Inherited from [protectionUnitBase](../resources/protectionunitbase.md).|
3031
|createdBy|[identitySet](../resources/identityset.md)|The identity of person who created the protection unit. Inherited from [protectionUnitBase](../resources/protectionunitbase.md).|
3132
|createdDateTime|DateTimeOffset|The time of creation of the protection unit. Inherited from [protectionUnitBase](../resources/protectionunitbase.md).|
3233
|directoryObjectId|String|ID of the directory object.|
@@ -57,6 +58,7 @@ The following JSON representation shows the resource type.
5758
``` json
5859
{
5960
"@odata.type": "#microsoft.graph.driveProtectionUnit",
61+
"backupRetentionPeriodInDays": "Int32",
6062
"createdBy": {"@odata.type": "microsoft.graph.identitySet"},
6163
"createdDateTime": "String (timestamp)",
6264
"directoryObjectId": "String",
@@ -66,10 +68,10 @@ The following JSON representation shows the resource type.
6668
"id": "String (identifier)",
6769
"lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
6870
"lastModifiedDateTime": "String (timestamp)",
71+
"offboardRequestedDateTime": "String (timestamp)",
6972
"policyId": "String",
7073
"protectionSources": "String",
71-
"status": "String",
72-
"offboardRequestedDateTime": "String (timestamp)",
74+
"status": "String"
7375
}
7476
```
7577

api-reference/beta/resources/mailboxprotectionunit.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Inherits from [protectionUnitBase](../resources/protectionunitbase.md).
2727
## Properties
2828
|Property|Type|Description|
2929
|:---|:---|:---|
30+
|backupRetentionPeriodInDays|Int32|The retention period of the backup, in days. Inherited from [protectionUnitBase](../resources/protectionunitbase.md).|
3031
|createdBy|[identitySet](../resources/identityset.md)|The identity of person who created the protection unit. Inherited from [protectionUnitBase](../resources/protectionunitbase.md).|
3132
|createdDateTime|DateTimeOffset|The time of creation of the protection unit. Inherited from [protectionUnitBase](../resources/protectionunitbase.md).|
3233
|directoryObjectId|String|The ID of the directory object.|
@@ -58,6 +59,7 @@ The following JSON representation shows the resource type.
5859
``` json
5960
{
6061
"@odata.type": "#microsoft.graph.mailboxProtectionUnit",
62+
"backupRetentionPeriodInDays": "Int32",
6163
"createdBy": {"@odata.type": "microsoft.graph.identitySet"},
6264
"createdDateTime": "String (timestamp)",
6365
"directoryObjectId": "String",
@@ -68,10 +70,10 @@ The following JSON representation shows the resource type.
6870
"lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
6971
"lastModifiedDateTime": "String (timestamp)",
7072
"mailboxType": "String",
73+
"offboardRequestedDateTime": "String (timestamp)",
7174
"policyId": "String",
7275
"protectionSources": "String",
73-
"status": "String",
74-
"offboardRequestedDateTime": "String (timestamp)",
76+
"status": "String"
7577
}
7678
```
7779

api-reference/beta/resources/protectionunitbase.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Inherits from [entity](entity.md).
3232
## Properties
3333
|Property|Type|Description|
3434
|:---|:---|:---|
35+
|backupRetentionPeriodInDays|Int32|The retention period of the backup, in days.|
3536
|createdBy|[identitySet](../resources/identityset.md)|The identity of person who created the protection unit.|
3637
|createdDateTime|DateTimeOffset|The time of creation of the protection unit.|
3738
|error|[publicError](../resources/publicerror.md)|Contains error details if an error occurred while creating a protection unit.|
@@ -72,15 +73,16 @@ The following JSON representation shows the resource type.
7273
``` json
7374
{
7475
"@odata.type": "#microsoft.graph.protectionUnitBase",
76+
"backupRetentionPeriodInDays": "Int32",
7577
"createdBy": {"@odata.type": "microsoft.graph.identitySet"},
7678
"createdDateTime": "String (timestamp)",
7779
"error": {"@odata.type": "microsoft.graph.publicError"},
7880
"id": "String (identifier)",
7981
"lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
8082
"lastModifiedDateTime": "String (timestamp)",
83+
"offboardRequestedDateTime": "String (timestamp)",
8184
"policyId": "String",
8285
"protectionSources": "String",
83-
"status": "String",
84-
"offboardRequestedDateTime": "String (timestamp)",
86+
"status": "String"
8587
}
8688
```

api-reference/beta/resources/siteprotectionunit.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Inherits from [protectionUnitBase](../resources/protectionunitbase.md).
2929

3030
|Property|Type|Description|
3131
|:---|:---|:---|
32+
|backupRetentionPeriodInDays|Int32|The retention period of the backup, in days. Inherited from [protectionUnitBase](../resources/protectionunitbase.md).|
3233
|createdBy|[identitySet](../resources/identityset.md)|The identity of person who created the protection unit. Inherited from [protectionUnitBase](../resources/protectionunitbase.md).|
3334
|createdDateTime|DateTimeOffset|The time of creation of the protection unit. Inherited from [protectionUnitBase](../resources/protectionunitbase.md).|
3435
|error|[publicError](../resources/publicerror.md)|Contains error details if enabling or disabling the protection unit fails. Inherited from [protectionUnitBase](../resources/protectionunitbase.md).|
@@ -61,19 +62,20 @@ The following JSON representation shows the resource type.
6162
``` json
6263
{
6364
"@odata.type": "#microsoft.graph.siteProtectionUnit",
65+
"backupRetentionPeriodInDays": "Int32",
6466
"createdBy": {"@odata.type": "microsoft.graph.identitySet"},
6567
"createdDateTime": "String (timestamp)",
6668
"error": {"@odata.type": "microsoft.graph.publicError"},
6769
"id": "String (identifier)",
6870
"lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
6971
"lastModifiedDateTime": "String (timestamp)",
72+
"offboardRequestedDateTime": "String (timestamp)",
7073
"policyId": "String",
7174
"protectionSources": "String",
7275
"siteId": "String",
7376
"siteName": "String",
7477
"siteWebUrl": "String",
75-
"status": "String",
76-
"offboardRequestedDateTime": "String (timestamp)",
78+
"status": "String"
7779
}
7880
```
7981

0 commit comments

Comments
 (0)