Skip to content

Commit 0a5ed10

Browse files
[Eventhubs] Adding schema for status code 201 for Disaster-recovery (#23474)
* UPdates * UPdates2
1 parent 9bc5a13 commit 0a5ed10

File tree

4 files changed

+32
-4
lines changed

4 files changed

+32
-4
lines changed

specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/disasterRecoveryConfigs.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,10 @@
176176
}
177177
},
178178
"201": {
179-
"description": "Alias(Disaster Recovery configuration) creation request received"
179+
"description": "Alias(Disaster Recovery configuration) creation request received",
180+
"schema": {
181+
"$ref": "#/definitions/ArmDisasterRecovery"
182+
}
180183
},
181184
"default": {
182185
"description": "Eventhub error response describing why the operation failed.",

specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/EHAliasCreate.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@
2424
}
2525
}
2626
},
27-
"201": {}
27+
"201": {
28+
"body": {
29+
"id": "/subscriptions/exampleResourceGroup/resourceGroups/exampleResourceGroup/providers/Microsoft.EventHub/namespaces/sdk-Namespace-8859/disasterRecoveryConfig/sdk-DisasterRecovery-3814",
30+
"name": "sdk-DisasterRecovery-3814",
31+
"type": "Microsoft.EventHub/Namespaces/DisasterRecoveryConfig",
32+
"properties": {
33+
"provisioningState": "Accepted",
34+
"partnerNamespace": "sdk-Namespace-37",
35+
"role": "Primary"
36+
}
37+
}
38+
}
2839
}
2940
}

specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/disasterRecoveryConfigs.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,10 @@
176176
}
177177
},
178178
"201": {
179-
"description": "Alias(Disaster Recovery configuration) creation request received"
179+
"description": "Alias(Disaster Recovery configuration) creation request received",
180+
"schema": {
181+
"$ref": "#/definitions/ArmDisasterRecovery"
182+
}
180183
},
181184
"default": {
182185
"description": "Eventhub error response describing why the operation failed.",

specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/examples/disasterRecoveryConfigs/EHAliasCreate.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@
2424
}
2525
}
2626
},
27-
"201": {}
27+
"201": {
28+
"body": {
29+
"id": "/subscriptions/exampleResourceGroup/resourceGroups/exampleResourceGroup/providers/Microsoft.EventHub/namespaces/sdk-Namespace-8859/disasterRecoveryConfig/sdk-DisasterRecovery-3814",
30+
"name": "sdk-DisasterRecovery-3814",
31+
"type": "Microsoft.EventHub/Namespaces/DisasterRecoveryConfig",
32+
"properties": {
33+
"provisioningState": "Accepted",
34+
"partnerNamespace": "sdk-Namespace-37",
35+
"role": "Primary"
36+
}
37+
}
38+
}
2839
}
2940
}

0 commit comments

Comments
 (0)