Skip to content

Commit d4881f6

Browse files
authored
Additional TieringPolicy and ProtectedItemExtendedInfo details for Microsoft.RecoveryServices version 2021-12-01 (#17517)
* Additional TieringPolicy and ProtectedItemExtendedInfo details for version 2021-12-01 * Prettier Fix * Fixing ModelValidation * Fixing LintDiff * Added more details in description as per review comments * Updated description for oldestRecoveryPoint * Fixing Prettier * Test Fix for SDK generation * SemanticValidation Fixes
1 parent 08210cd commit d4881f6

File tree

5 files changed

+120
-6
lines changed

5 files changed

+120
-6
lines changed

specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2021-12-01/bms.json

Lines changed: 91 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5451,7 +5451,22 @@
54515451
"properties": {
54525452
"oldestRecoveryPoint": {
54535453
"format": "date-time",
5454-
"description": "The oldest backup copy available for this backup item.",
5454+
"description": "The oldest backup copy available for this backup item across all tiers.",
5455+
"type": "string"
5456+
},
5457+
"oldestRecoveryPointInVault": {
5458+
"format": "date-time",
5459+
"description": "The oldest backup copy available for this backup item in vault tier",
5460+
"type": "string"
5461+
},
5462+
"oldestRecoveryPointInArchive": {
5463+
"format": "date-time",
5464+
"description": "The oldest backup copy available for this backup item in archive tier",
5465+
"type": "string"
5466+
},
5467+
"newestRecoveryPointInArchive": {
5468+
"format": "date-time",
5469+
"description": "The latest backup copy available for this backup item in archive tier",
54555470
"type": "string"
54565471
},
54575472
"recoveryPointCount": {
@@ -5485,6 +5500,13 @@
54855500
"$ref": "#/definitions/RetentionPolicy",
54865501
"description": "Retention policy with the details on backup copy retention ranges."
54875502
},
5503+
"tieringPolicy": {
5504+
"description": "Tiering policy to automatically move RPs to another tier\r\nKey is Target Tier, defined in RecoveryPointTierType enum.\r\nTiering policy specifies the criteria to move RP to the target tier.",
5505+
"type": "object",
5506+
"additionalProperties": {
5507+
"$ref": "#/definitions/TieringPolicy"
5508+
}
5509+
},
54885510
"instantRpRetentionRangeInDays": {
54895511
"format": "int32",
54905512
"description": "Instant RP retention policy range in days",
@@ -5804,7 +5826,22 @@
58045826
"properties": {
58055827
"oldestRecoveryPoint": {
58065828
"format": "date-time",
5807-
"description": "The oldest backup copy available for this backup item.",
5829+
"description": "The oldest backup copy available for this backup item across all tiers.",
5830+
"type": "string"
5831+
},
5832+
"oldestRecoveryPointInVault": {
5833+
"format": "date-time",
5834+
"description": "The oldest backup copy available for this backup item in vault tier",
5835+
"type": "string"
5836+
},
5837+
"oldestRecoveryPointInArchive": {
5838+
"format": "date-time",
5839+
"description": "The oldest backup copy available for this backup item in archive tier",
5840+
"type": "string"
5841+
},
5842+
"newestRecoveryPointInArchive": {
5843+
"format": "date-time",
5844+
"description": "The latest backup copy available for this backup item in archive tier",
58085845
"type": "string"
58095846
},
58105847
"recoveryPointCount": {
@@ -9001,6 +9038,13 @@
90019038
"retentionPolicy": {
90029039
"$ref": "#/definitions/RetentionPolicy",
90039040
"description": "Retention policy with the details on backup copy retention ranges."
9041+
},
9042+
"tieringPolicy": {
9043+
"description": "Tiering policy to automatically move RPs to another tier.\r\nKey is Target Tier, defined in RecoveryPointTierType enum.\r\nTiering policy specifies the criteria to move RP to the target tier.",
9044+
"type": "object",
9045+
"additionalProperties": {
9046+
"$ref": "#/definitions/TieringPolicy"
9047+
}
90049048
}
90059049
}
90069050
},
@@ -11346,7 +11390,7 @@
1134611390
"type": "string"
1134711391
}
1134811392
},
11349-
"x-ms-discriminator-value": "IaaSVMContainer"
11393+
"x-ms-discriminator-value": "IaasVMContainer"
1135011394
},
1135111395
"IaasVMILRRegistrationRequest": {
1135211396
"description": "Restore files/folders from a backup copy of IaaS VM.",
@@ -11936,7 +11980,10 @@
1193611980
"VMAppContainer",
1193711981
"SQLAGWorkLoadContainer",
1193811982
"StorageContainer",
11939-
"GenericContainer"
11983+
"GenericContainer",
11984+
"AzureWorkloadContainer",
11985+
"Microsoft.ClassicCompute/virtualMachines",
11986+
"Microsoft.Compute/virtualMachines"
1194011987
],
1194111988
"type": "string",
1194211989
"x-ms-enum": {
@@ -12434,6 +12481,46 @@
1243412481
}
1243512482
}
1243612483
}
12484+
},
12485+
"TieringPolicy": {
12486+
"description": "Tiering Policy for a target tier.\r\nIf the policy is not specified for a given target tier, service retains the existing configured tiering policy for that tier",
12487+
"type": "object",
12488+
"properties": {
12489+
"tieringMode": {
12490+
"description": "Tiering Mode to control automatic tiering of recovery points. Supported values are:\r\n1. TierRecommended: Tier all recovery points recommended to be tiered\r\n2. TierAfter: Tier all recovery points after a fixed period, as specified in duration + durationType below.\r\n3. DoNotTier: Do not tier any recovery points",
12491+
"enum": [
12492+
"Invalid",
12493+
"TierRecommended",
12494+
"TierAfter",
12495+
"DoNotTier"
12496+
],
12497+
"type": "string",
12498+
"x-ms-enum": {
12499+
"name": "TieringMode",
12500+
"modelAsString": true
12501+
}
12502+
},
12503+
"duration": {
12504+
"format": "int32",
12505+
"description": "Number of days/weeks/months/years to retain backups in current tier before tiering.\r\nUsed only if TieringMode is set to TierAfter",
12506+
"type": "integer"
12507+
},
12508+
"durationType": {
12509+
"description": "Retention duration type: days/weeks/months/years\r\nUsed only if TieringMode is set to TierAfter",
12510+
"enum": [
12511+
"Invalid",
12512+
"Days",
12513+
"Weeks",
12514+
"Months",
12515+
"Years"
12516+
],
12517+
"type": "string",
12518+
"x-ms-enum": {
12519+
"name": "RetentionDurationType",
12520+
"modelAsString": true
12521+
}
12522+
}
12523+
}
1243712524
}
1243812525
},
1243912526
"parameters": {

specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2021-12-01/examples/AzureIaasVm/BackupPolicies_List.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
}
3737
}
3838
},
39+
"tieringPolicy": {
40+
"ArchivedRP": {
41+
"tieringMode": "TierRecommended"
42+
}
43+
},
3944
"protectedItemsCount": 0
4045
}
4146
},
@@ -65,6 +70,13 @@
6570
}
6671
}
6772
},
73+
"tieringPolicy": {
74+
"ArchivedRP": {
75+
"tieringMode": "TierAfter",
76+
"duration": 12,
77+
"durationType": "Months"
78+
}
79+
},
6880
"timeZone": "Pacific Standard Time",
6981
"protectedItemsCount": 0
7082
}

specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2021-12-01/examples/AzureIaasVm/BackupProtectedItems_List.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,15 @@
2929
"containerName": "iaasvmcontainer;iaasvm-rg;iaasvm-1",
3030
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.ClassicCompute/virtualMachines/iaasvm-1",
3131
"policyId": "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1",
32-
"lastRecoveryPoint": "2017-11-22T12:25:32.048723Z"
32+
"lastRecoveryPoint": "2017-11-22T12:25:32.048723Z",
33+
"extendedInfo": {
34+
"oldestRecoveryPoint": "2021-01-30T00:09:30.8639311Z",
35+
"oldestRecoveryPointInVault": "2021-01-30T00:09:30.8639311Z",
36+
"oldestRecoveryPointInArchive": "2021-01-30T00:09:30.8639311Z",
37+
"newestRecoveryPointInArchive": "2021-01-30T00:09:30.8639311Z",
38+
"recoveryPointCount": 14,
39+
"policyInconsistent": false
40+
}
3341
}
3442
}
3543
]

specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2021-12-01/examples/AzureWorkload/BackupPolicies_List.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@
4343
"durationType": "Days"
4444
}
4545
}
46+
},
47+
"tieringPolicy": {
48+
"ArchivedRP": {
49+
"tieringMode": "TierAfter",
50+
"duration": 60,
51+
"durationType": "Days"
52+
}
4653
}
4754
},
4855
{

specification/recoveryservicesbackup/resource-manager/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ csharp:
315315
payload-flattening-threshold: 1
316316
license-header: MICROSOFT_MIT_NO_VERSION
317317
namespace: Microsoft.Azure.Management.RecoveryServices.Backup
318-
output-folder: $(csharp-sdks-folder)/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated
318+
output-folder: $(csharp-sdks-folder)/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/recoveryservicesbackup/Generated
319319
clear-output-folder: true
320320
```
321321

0 commit comments

Comments
 (0)