Skip to content

Commit

Permalink
[Microsoft.StorageSync] change enumeration protocol changes for 2020-…
Browse files Browse the repository at this point in the history
…09-01 (#12793)

* change eumeration protocol changes

* fix unexpected changes
  • Loading branch information
anpint authored Feb 23, 2021
1 parent e61c491 commit 6caa055
Show file tree
Hide file tree
Showing 3 changed files with 257 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,33 @@
"lastWorkflowId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/a377fdd5-949a-40ab-9629-06cd0e9852f9",
"friendlyName": "SampleAzureFileShareName_1",
"partnershipId": "1|U0VSVkVSQVNTWU5DQ0xJRU5USEZTVjJ8MTkxNjYwQ0QtNkExQS00RjhDLTk3ODctQTZCRUQyMDZBMUREfEdFTkVSSUN8M0EwNDgyODMtMzM4Ri00MDAyLUE5REQtQTUwRkRBRENCMzky",
"lastOperationName": "ICreateCloudEndpointWorkflow"
"lastOperationName": "ICreateCloudEndpointWorkflow",
"changeEnumerationStatus": {
"lastUpdatedTimestamp": "2019-04-17T19:14:59.0961891Z",
"lastEnumerationStatus": {
"startedTimestamp": "2019-04-17T19:14:59.0961891Z",
"completedTimestamp": "2019-04-17T19:14:59.0961891Z",
"namespaceFilesCount": 3489,
"namespaceDirectoriesCount": 28,
"namespaceSizeBytes": 3248804,
"nextRunTimestamp": "2019-04-17T19:14:59.0961891Z"
},
"activity": {
"lastUpdatedTimestamp": "2019-04-17T19:14:59.0961891Z",
"operationState": "EnumerationInProgress",
"statusCode": 0,
"startedTimestamp": "2019-04-17T19:14:59.0961891Z",
"processedFilesCount": 6948,
"processedDirectoriesCount": 364,
"totalFilesCount": 12834,
"totalDirectoriesCount": 694,
"totalSizeBytes": 5782301239408,
"progressPercent": 67,
"minutesRemaining": 589,
"totalCountsState": "Final",
"deletesProgressPercent": 12
}
}
},
"id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/cloudEndpoints/CEP_Restore_08-08_Test112",
"type": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,33 @@
"lastWorkflowId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/a377fdd5-949a-40ab-9629-06cd0e9852f9",
"friendlyName": "SampleAzureFileShareName_1",
"partnershipId": "1|U0VSVkVSQVNTWU5DQ0xJRU5Udfsdfdsfs8MTkxNjYwQ0QtNkExQS00RjhDLTk3ODctQTZCRUQyMDZBMUREfEdFTkVSSUN8M0EwNDgyODMtMzM4Ri00MDAyLUE5REQtQTUwRkRBRENCMzky",
"lastOperationName": "ICreateCloudEndpointWorkflow"
"lastOperationName": "ICreateCloudEndpointWorkflow",
"changeEnumerationStatus": {
"lastUpdatedTimestamp": "2019-04-17T19:14:59.0961891Z",
"lastEnumerationStatus": {
"startedTimestamp": "2019-04-17T19:14:59.0961891Z",
"completedTimestamp": "2019-04-17T19:14:59.0961891Z",
"namespaceFilesCount": 3489,
"namespaceDirectoriesCount": 28,
"namespaceSizeBytes": 3248804,
"nextRunTimestamp": "2019-04-17T19:14:59.0961891Z"
},
"activity": {
"lastUpdatedTimestamp": "2019-04-17T19:14:59.0961891Z",
"operationState": "Delayed",
"statusCode": -1,
"startedTimestamp": "2019-04-17T19:14:59.0961891Z",
"processedFilesCount": 6948,
"processedDirectoriesCount": 364,
"totalFilesCount": 12834,
"totalDirectoriesCount": 694,
"totalSizeBytes": 5782301239408,
"progressPercent": 67,
"minutesRemaining": 589,
"totalCountsState": "Calculating",
"deletesProgressPercent": null
}
}
},
"id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/cloudEndpoints/CEP_Restore_08-08_Test112",
"type": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4314,6 +4314,12 @@
"lastOperationName": {
"type": "string",
"description": "Resource Last Operation Name"
},
"changeEnumerationStatus": {
"type": "object",
"$ref": "#/definitions/CloudEndpointChangeEnumerationStatus",
"description": "Cloud endpoint change enumeration status",
"readOnly": true
}
}
},
Expand Down Expand Up @@ -4629,6 +4635,13 @@
"$ref": "#/definitions/ServerEndpointSyncMode",
"description": "Sync mode",
"readOnly": true
},
"sessionMinutesRemaining": {
"type": "integer",
"format": "int32",
"minimum": 0,
"description": "Session minutes remaining (if available)",
"readOnly": true
}
}
},
Expand Down Expand Up @@ -4668,6 +4681,12 @@
"description": "Timestamp when properties were updated",
"readOnly": true
},
"startedTimestamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the operation started",
"readOnly": true
},
"percentProgress": {
"type": "integer",
"format": "int32",
Expand Down Expand Up @@ -5182,6 +5201,189 @@
"name": "RegisteredServerAgentVersionStatus",
"modelAsString": true
}
},
"CloudEndpointChangeEnumerationStatus": {
"type": "object",
"description": "Cloud endpoint change enumeration status object",
"properties": {
"lastUpdatedTimestamp": {
"type": "string",
"format": "date-time",
"description": "Last updated timestamp",
"readOnly": true
},
"lastEnumerationStatus": {
"$ref": "#/definitions/CloudEndpointLastChangeEnumerationStatus",
"description": "Status of last completed change enumeration",
"readOnly": true
},
"activity": {
"$ref": "#/definitions/CloudEndpointChangeEnumerationActivity",
"description": "Change enumeration activity",
"readOnly": true
}
}
},
"CloudEndpointLastChangeEnumerationStatus": {
"type": "object",
"description": "Cloud endpoint change enumeration status object",
"properties": {
"startedTimestamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp when change enumeration started",
"readOnly": true
},
"completedTimestamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp when change enumeration completed",
"readOnly": true
},
"namespaceFilesCount": {
"type": "integer",
"format": "int64",
"minimum": 0,
"description": "Count of files in the namespace",
"readOnly": true
},
"namespaceDirectoriesCount": {
"type": "integer",
"format": "int64",
"minimum": 0,
"description": "Count of directories in the namespace",
"readOnly": true
},
"namespaceSizeBytes": {
"type": "integer",
"format": "int64",
"minimum": 0,
"description": "Namespace size in bytes",
"readOnly": true
},
"nextRunTimestamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp of when change enumeration is expected to run again",
"readOnly": true
}
}
},
"CloudEndpointChangeEnumerationActivity": {
"type": "object",
"description": "Cloud endpoint change enumeration activity object",
"properties": {
"lastUpdatedTimestamp": {
"type": "string",
"format": "date-time",
"description": "Last updated timestamp",
"readOnly": true
},
"operationState": {
"$ref": "#/definitions/CloudEndpointChangeEnumerationActivityState",
"description": "Change enumeration operation state",
"readOnly": true
},
"statusCode": {
"type": "integer",
"format": "int32",
"description": "When non-zero, indicates an issue that is delaying change enumeration",
"readOnly": true
},
"startedTimestamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp when change enumeration started",
"readOnly": true
},
"processedFilesCount": {
"type": "integer",
"format": "int64",
"minimum": 0,
"description": "Count of files processed",
"readOnly": true
},
"processedDirectoriesCount": {
"type": "integer",
"format": "int64",
"minimum": 0,
"description": "Count of directories processed",
"readOnly": true
},
"totalFilesCount": {
"type": "integer",
"format": "int64",
"minimum": 0,
"description": "Total count of files enumerated",
"readOnly": true
},
"totalDirectoriesCount": {
"type": "integer",
"format": "int64",
"minimum": 0,
"description": "Total count of directories enumerated",
"readOnly": true
},
"totalSizeBytes": {
"type": "integer",
"format": "int64",
"minimum": 0,
"description": "Total enumerated size in bytes",
"readOnly": true
},
"progressPercent": {
"type": "integer",
"format": "int32",
"minimum": 0,
"maximum": 100,
"description": "Progress percentage for change enumeration run, excluding processing of deletes",
"readOnly": true
},
"minutesRemaining": {
"type": "integer",
"format": "int32",
"minimum": 0,
"description": "Estimate of time remaining for the enumeration run",
"readOnly": true
},
"totalCountsState": {
"$ref": "#/definitions/CloudEndpointChangeEnumerationTotalCountsState",
"description": "Change enumeration total counts state",
"readOnly": true
},
"deletesProgressPercent": {
"type": "integer",
"format": "int32",
"minimum": 0,
"maximum": 100,
"description": "Progress percentage for processing deletes. This is done separately from the rest of the enumeration run",
"readOnly": true
}
}
},
"CloudEndpointChangeEnumerationActivityState": {
"type": "string",
"description": "State of change enumeration activity",
"enum": [
"InitialEnumerationInProgress",
"EnumerationInProgress"
],
"x-ms-enum": {
"name": "CloudEndpointChangeEnumerationActivityState",
"modelAsString": true
}
},
"CloudEndpointChangeEnumerationTotalCountsState": {
"type": "string",
"description": "State of the total counts of change enumeration activity",
"enum": [
"Calculating",
"Final"
],
"x-ms-enum": {
"name": "CloudEndpointChangeEnumerationTotalCountsState",
"modelAsString": true
}
}
},
"parameters": {
Expand Down Expand Up @@ -5212,4 +5414,4 @@
]
}
]
}
}

0 comments on commit 6caa055

Please sign in to comment.