Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Add Archive option to LTR Policy for SQL DB #23120

Merged
merged 1 commit into from
Mar 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -186,41 +186,6 @@
}
},
"definitions": {
"BaseLongTermRetentionPolicyProperties": {
"description": "Properties of a long term retention policy",
"type": "object",
"properties": {
"backupStorageAccessTier": {
"description": "The BackupStorageAccessTier for the LTR backups",
"enum": [
"Hot",
"Archive"
],
"type": "string",
"x-ms-enum": {
"name": "BackupStorageAccessTier",
"modelAsString": true
}
},
"weeklyRetention": {
"description": "The weekly retention policy for an LTR backup in an ISO 8601 format.",
"type": "string"
},
"monthlyRetention": {
"description": "The monthly retention policy for an LTR backup in an ISO 8601 format.",
"type": "string"
},
"yearlyRetention": {
"description": "The yearly retention policy for an LTR backup in an ISO 8601 format.",
"type": "string"
},
"weekOfYear": {
"format": "int32",
"description": "The week of year to take the yearly backup in an ISO 8601 format.",
"type": "integer"
}
}
},
"LongTermRetentionPolicy": {
"description": "A long term retention policy.",
"type": "object",
Expand All @@ -231,7 +196,7 @@
],
"properties": {
"properties": {
"$ref": "#/definitions/BaseLongTermRetentionPolicyProperties",
"$ref": "#/definitions/LongTermRetentionPolicyProperties",
"description": "Resource properties.",
"x-ms-client-flatten": true
}
Expand All @@ -255,6 +220,41 @@
"readOnly": true
}
}
},
"LongTermRetentionPolicyProperties": {
"description": "Properties of a long term retention policy",
"type": "object",
"properties": {
"backupStorageAccessTier": {
"description": "The BackupStorageAccessTier for the LTR backups",
"enum": [
"Hot",
"Archive"
],
"type": "string",
"x-ms-enum": {
"name": "BackupStorageAccessTier",
"modelAsString": true
}
},
"weeklyRetention": {
"description": "The weekly retention policy for an LTR backup in an ISO 8601 format.",
"type": "string"
},
"monthlyRetention": {
"description": "The monthly retention policy for an LTR backup in an ISO 8601 format.",
"type": "string"
},
"yearlyRetention": {
"description": "The yearly retention policy for an LTR backup in an ISO 8601 format.",
"type": "string"
},
"weekOfYear": {
"format": "int32",
"description": "The week of year to take the yearly backup in an ISO 8601 format.",
"type": "integer"
}
}
}
},
"parameters": {
Expand Down
Loading