Skip to content

Commit

Permalink
enable deleteRetentionPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
microzchang committed Sep 27, 2022
1 parent 6dc2a4a commit f3f0a9e
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
/**
* The number of days left before the soft deleted path will be permanently deleted.
*/
int64_t RemainingRetentionDays;
int64_t RemainingRetentionDays = int64_t();
};

// FileClient models:
Expand Down
102 changes: 53 additions & 49 deletions sdk/storage/test-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,56 +205,60 @@
"tier": "Standard"
},
"kind": "StorageV2",
"properties": {
"isHnsEnabled": true,
"cors": {
"corsRules": [
{
"allowedOrigins": [
"*"
],
"allowedMethods": [
"DELETE",
"GET",
"HEAD",
"MERGE",
"POST",
"OPTIONS",
"PUT",
"PATCH"
],
"maxAgeInSeconds": 86400,
"exposedHeaders": [
"*"
],
"allowedHeaders": [
"*"
]
}
]
},
"networkAcls": {
"bypass": "AzureServices",
"virtualNetworkRules": [
],
"ipRules": [
],
"defaultAction": "Allow"
},
"supportsHttpsTrafficOnly": true,
"encryption": {
"services": {
"file": {
"enabled": true
},
"blob": {
"enabled": true
}
},
"keySource": "Microsoft.Storage"
"properties": {
"isHnsEnabled": true,
"deleteRetentionPolicy": {
"enabled": true,
"days": 7
},
"cors": {
"corsRules": [
{
"allowedOrigins": [
"*"
],
"allowedMethods": [
"DELETE",
"GET",
"HEAD",
"MERGE",
"POST",
"OPTIONS",
"PUT",
"PATCH"
],
"maxAgeInSeconds": 86400,
"exposedHeaders": [
"*"
],
"allowedHeaders": [
"*"
]
}
]
},
"networkAcls": {
"bypass": "AzureServices",
"virtualNetworkRules": [
],
"ipRules": [
],
"defaultAction": "Allow"
},
"supportsHttpsTrafficOnly": true,
"encryption": {
"services": {
"file": {
"enabled": true
},
"accessTier": "Hot"
}
"blob": {
"enabled": true
}
},
"keySource": "Microsoft.Storage"
},
"accessTier": "Hot"
}
},
{
"type": "Microsoft.Storage/storageAccounts",
Expand Down

0 comments on commit f3f0a9e

Please sign in to comment.