Skip to content

Commit 54df425

Browse files
mayankagg9722zakinkh
authored andcommitted
Changes in operation ids (Azure#14665)
* manual changes for swagger * changes for long-running operations * changes for validate for backup and restore * removing 204 from operationResults * changes for a monitoring * adding format * removing date-time from duration * changing to readonly * changes for listRPs * fixes swagger * reverting readonly for scheduleTimes * fixes for checkgates * prettier fixes * cahnges for friendlyname checks * fixing gates * removing tracking-via * model validation fixes * powershell changes * adding stable version * changes for PatchResourceRequestInput * change for req fields * changes for description * changes * Updated swagger json for item level restore target info objects * Fixed spelling errors * Added missing required properties * removed auth credentials property * prettier fixes * Prettier fix * pr comments fixes * fixing readme * changes for go readme * Removed x-ms-flatten property (Azure#2) * removed flatten prop * removing x-ms-flatten * removing friendlyName from req prop Co-authored-by: Mayank Aggarwal <[email protected]> * changes in operation ids (Azure#3) * changes in operation ids * changes * changes Co-authored-by: Mayank Aggarwal <[email protected]> * lint and model vaidations * changes for prettier * changing version in example Co-authored-by: Mayank Aggarwal <[email protected]> Co-authored-by: FAREAST\zakinkh <[email protected]>
1 parent 6c3a4a8 commit 54df425

File tree

6 files changed

+856
-40
lines changed

6 files changed

+856
-40
lines changed

specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-02-01-preview/dataprotection.json

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"BackupVaults"
2525
],
2626
"description": "Returns resource collection belonging to a subscription.",
27-
"operationId": "BackupVaults_GetResourcesInSubscription",
27+
"operationId": "BackupVaults_GetInSubscription",
2828
"produces": [
2929
"application/json"
3030
],
@@ -136,7 +136,7 @@
136136
"OperationStatus"
137137
],
138138
"summary": "Gets the operation status for a resource.",
139-
"operationId": "GetOperationStatus",
139+
"operationId": "OperationStatus_Get",
140140
"produces": [
141141
"application/json"
142142
],
@@ -187,7 +187,7 @@
187187
"BackupVaults"
188188
],
189189
"description": "Returns resource collection belonging to a resource group.",
190-
"operationId": "BackupVaults_GetResourcesInResourceGroup",
190+
"operationId": "BackupVaults_GetInResourceGroup",
191191
"produces": [
192192
"application/json"
193193
],
@@ -389,7 +389,7 @@
389389
"BackupVaults"
390390
],
391391
"description": "Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.",
392-
"operationId": "BackupVaults_Patch",
392+
"operationId": "BackupVaults_Update",
393393
"produces": [
394394
"application/json"
395395
],
@@ -446,7 +446,7 @@
446446
"tags": [
447447
"Resources"
448448
],
449-
"operationId": "GetOperationResultPatch",
449+
"operationId": "BackupVaultOperationResults_Get",
450450
"produces": [
451451
"application/json"
452452
],
@@ -555,7 +555,7 @@
555555
"DppFeatureSupport"
556556
],
557557
"summary": "Validates if a feature is supported",
558-
"operationId": "CheckFeatureSupport",
558+
"operationId": "DataProtection_CheckFeatureSupport",
559559
"produces": [
560560
"application/json"
561561
],
@@ -609,7 +609,7 @@
609609
"Operations"
610610
],
611611
"description": "Returns the list of available operations.",
612-
"operationId": "Operations_List",
612+
"operationId": "DataProtectionOperations_List",
613613
"parameters": [
614614
{
615615
"$ref": "#/parameters/ApiVersion"
@@ -632,6 +632,11 @@
632632
"x-ms-pageable": {
633633
"nextLinkName": "nextLink",
634634
"itemName": "value"
635+
},
636+
"x-ms-examples": {
637+
"Returns the list of supported REST operations.": {
638+
"$ref": "./examples/Operations/List.json"
639+
}
635640
}
636641
}
637642
},
@@ -758,6 +763,7 @@
758763
},
759764
{
760765
"name": "backupPolicyName",
766+
"description": "Name of the policy",
761767
"in": "path",
762768
"required": true,
763769
"type": "string"
@@ -1236,7 +1242,7 @@
12361242
"RecoveryPoint"
12371243
],
12381244
"description": "Returns a list of Recovery Points for a DataSource in a vault.",
1239-
"operationId": "RecoveryPoints_GetList",
1245+
"operationId": "RecoveryPoints_List",
12401246
"produces": [
12411247
"application/json"
12421248
],
@@ -1306,7 +1312,7 @@
13061312
"RecoveryPoint"
13071313
],
13081314
"description": "Gets a Recovery Point using recoveryPointId for a Datasource.",
1309-
"operationId": "RecoveryPoint_Get",
1315+
"operationId": "RecoveryPoints_Get",
13101316
"produces": [
13111317
"application/json"
13121318
],
@@ -1870,7 +1876,7 @@
18701876
"BackupInstances"
18711877
],
18721878
"description": "Validates if Restore can be triggered for a DataSource",
1873-
"operationId": "BackupInstances_ValidateRestore",
1879+
"operationId": "BackupInstances_ValidateForRestore",
18741880
"produces": [
18751881
"application/json"
18761882
],
@@ -1992,12 +1998,12 @@
19921998
}
19931999
}
19942000
},
1995-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstances}/findRestorableTimeRanges": {
2001+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/findRestorableTimeRanges": {
19962002
"post": {
19972003
"tags": [
19982004
"FindRestorableTimeRanges"
19992005
],
2000-
"operationId": "FindRestorableTimeRanges_Post",
2006+
"operationId": "RestorableTimeRanges_Find",
20012007
"produces": [
20022008
"application/json"
20032009
],
@@ -2015,7 +2021,8 @@
20152021
"$ref": "#/parameters/SubscriptionId"
20162022
},
20172023
{
2018-
"name": "backupInstances",
2024+
"name": "backupInstanceName",
2025+
"description": "The name of the backup instance",
20192026
"in": "path",
20202027
"required": true,
20212028
"type": "string"
@@ -2057,7 +2064,7 @@
20572064
"AzureBackupJob"
20582065
],
20592066
"description": "Gets a job with id in a backup vault",
2060-
"operationId": "Job_Get",
2067+
"operationId": "Jobs_Get",
20612068
"produces": [
20622069
"application/json"
20632070
],
@@ -2367,9 +2374,7 @@
23672374
"AzureBackupFindRestorableTimeRangesRequest": {
23682375
"description": "List Restore Ranges Request",
23692376
"required": [
2370-
"sourceDataStoreType",
2371-
"startTime",
2372-
"endTime"
2377+
"sourceDataStoreType"
23732378
],
23742379
"type": "object",
23752380
"properties": {
@@ -2387,11 +2392,11 @@
23872392
}
23882393
},
23892394
"startTime": {
2390-
"description": "Start time for the List Restore Ranges request",
2395+
"description": "Start time for the List Restore Ranges request. ISO 8601 format.",
23912396
"type": "string"
23922397
},
23932398
"endTime": {
2394-
"description": "End time for the List Restore Ranges request",
2399+
"description": "End time for the List Restore Ranges request. ISO 8601 format.",
23952400
"type": "string"
23962401
}
23972402
}

specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-02-01-preview/examples/BackupInstanceOperations/FindRestorableTimeRanges.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b",
44
"resourceGroupName": "Blob-Backup",
55
"vaultName": "ZBlobBackupVaultBVTD3",
6-
"backupInstances": "zblobbackuptestsa58",
6+
"backupInstanceName": "zblobbackuptestsa58",
77
"api-version": "2021-02-01-preview",
88
"parameters": {
99
"sourceDataStoreType": "OperationalStore",

0 commit comments

Comments
 (0)