Skip to content

Commit e61c491

Browse files
Manishd79Manish Duggal
andauthored
DONOT COMMIT: Microsoft.StorageSync : Update Api Version 2020-09-01 (preview) for InitialUploadPolicy feature. (#11392)
* update initialuploadpolicy * Update test for InitialUploadPolicy setting Co-authored-by: Manish Duggal <[email protected]>
1 parent fae84d4 commit e61c491

File tree

5 files changed

+30
-4
lines changed

5 files changed

+30
-4
lines changed

specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2020-09-01/examples/ServerEndpoints_Create.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"offlineDataTransfer": "on",
1616
"offlineDataTransferShareName": "myfileshare",
1717
"initialDownloadPolicy": "NamespaceThenModifiedFiles",
18-
"localCacheMode": "UpdateLocallyCachedFiles"
18+
"localCacheMode": "UpdateLocallyCachedFiles",
19+
"initialUploadPolicy": "ServerAuthoritative"
1920
}
2021
},
2122
"api-version": "2020-09-01"
@@ -47,7 +48,8 @@
4748
"cloudTieringStatus": null,
4849
"recallStatus": null,
4950
"initialDownloadPolicy": "NamespaceThenModifiedFiles",
50-
"localCacheMode": "UpdateLocallyCachedFiles"
51+
"localCacheMode": "UpdateLocallyCachedFiles",
52+
"initialUploadPolicy": "ServerAuthoritative"
5153
},
5254
"id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1",
5355
"type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints"

specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2020-09-01/examples/ServerEndpoints_Get.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"offlineDataTransferShareName": "myfileshare",
7676
"initialDownloadPolicy": "NamespaceThenModifiedFiles",
7777
"localCacheMode": "UpdateLocallyCachedFiles",
78+
"initialUploadPolicy": "Merge",
7879
"cloudTieringStatus": {
7980
"lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z",
8081
"health": "Error",

specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2020-09-01/examples/ServerEndpoints_ListBySyncGroup.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
"offlineDataTransferStorageAccountTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
6262
"offlineDataTransferShareName": "myfileshare",
6363
"initialDownloadPolicy": "NamespaceThenModifiedFiles",
64-
"localCacheMode": "UpdateLocallyCachedFiles"
64+
"localCacheMode": "UpdateLocallyCachedFiles",
65+
"initialUploadPolicy": "Merge"
6566
},
6667
"id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1",
6768
"type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints"
@@ -81,6 +82,7 @@
8182
"tierFilesOlderThanDays": 5,
8283
"initialDownloadPolicy": "NamespaceThenModifiedFiles",
8384
"localCacheMode": "UpdateLocallyCachedFiles",
85+
"initialUploadPolicy": "Merge",
8486
"syncStatus": {
8587
"downloadHealth": "Healthy",
8688
"uploadHealth": "Healthy",

specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2020-09-01/examples/ServerEndpoints_Update.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@
7070
"offlineDataTransferStorageAccountTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
7171
"offlineDataTransferShareName": "myfileshare",
7272
"initialDownloadPolicy": "NamespaceThenModifiedFiles",
73-
"localCacheMode": "UpdateLocallyCachedFiles"
73+
"localCacheMode": "UpdateLocallyCachedFiles",
74+
"initialUploadPolicy": "Merge"
7475
},
7576
"id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1",
7677
"type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints"

specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2020-09-01/storagesync.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3447,6 +3447,10 @@
34473447
"localCacheMode": {
34483448
"$ref": "#/definitions/LocalCacheMode",
34493449
"description": "Policy for enabling follow-the-sun business models: link local cache to cloud behavior to pre-populate before local access."
3450+
},
3451+
"initialUploadPolicy": {
3452+
"$ref": "#/definitions/InitialUploadPolicy",
3453+
"description": "Policy for how the initial upload sync session is performed."
34503454
}
34513455
}
34523456
},
@@ -4438,6 +4442,10 @@
44384442
"$ref": "#/definitions/LocalCacheMode",
44394443
"description": "Policy for enabling follow-the-sun business models: link local cache to cloud behavior to pre-populate before local access."
44404444
},
4445+
"initialUploadPolicy": {
4446+
"$ref": "#/definitions/InitialUploadPolicy",
4447+
"description": "Policy for how the initial upload sync session is performed."
4448+
},
44414449
"serverName": {
44424450
"type": "string",
44434451
"description": "Server name",
@@ -4753,6 +4761,18 @@
47534761
"modelAsString": true
47544762
}
47554763
},
4764+
"InitialUploadPolicy": {
4765+
"type": "string",
4766+
"description": "Policy for how the initial upload sync session is performed.",
4767+
"enum": [
4768+
"ServerAuthoritative",
4769+
"Merge"
4770+
],
4771+
"x-ms-enum": {
4772+
"name": "InitialUploadPolicy",
4773+
"modelAsString": true
4774+
}
4775+
},
47564776
"ServerEndpointHealthState": {
47574777
"type": "string",
47584778
"description": "Type of the server endpoint health state",

0 commit comments

Comments
 (0)