Skip to content

Commit 4dbf186

Browse files
najianNan Jiang
authored andcommitted
[Hub Generated] Publish private branch 'servicelinker/naji/swaggerEnum' (Azure#18971)
* add or modify files * fix model validation error Co-authored-by: Nan Jiang <[email protected]>
1 parent c69dd9d commit 4dbf186

File tree

2 files changed

+42
-21
lines changed

2 files changed

+42
-21
lines changed

specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/ValidateLinkSuccess.json

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,27 @@
77
"responses": {
88
"200": {
99
"body": {
10-
"linkerName": "linkName",
11-
"isConnectionAvailable": true,
12-
"reportStartTimeUtc": "2020-07-12T22:05:09Z",
13-
"reportEndTimeUtc": "2020-07-12T22:06:09Z",
14-
"sourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db",
15-
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db",
16-
"authType": "secret",
17-
"validationDetail": [
18-
{
19-
"name": "TargetExistence",
20-
"description": "The target existence is validated",
21-
"result": "success"
22-
},
23-
{
24-
"name": "TargetNetworkAccess",
25-
"description": "Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.",
26-
"result": "warning"
27-
}
28-
]
10+
"properties": {
11+
"linkerName": "linkName",
12+
"isConnectionAvailable": true,
13+
"reportStartTimeUtc": "2020-07-12T22:05:09Z",
14+
"reportEndTimeUtc": "2020-07-12T22:06:09Z",
15+
"sourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db",
16+
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db",
17+
"authType": "secret",
18+
"validationDetail": [
19+
{
20+
"name": "TargetExistence",
21+
"description": "The target existence is validated",
22+
"result": "success"
23+
},
24+
{
25+
"name": "TargetNetworkAccess",
26+
"description": "Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.",
27+
"result": "warning"
28+
}
29+
]
30+
}
2931
}
3032
},
3133
"202": {}

specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/servicelinker.json

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@
297297
"200": {
298298
"description": "OK. The request has succeeded.",
299299
"schema": {
300-
"$ref": "#/definitions/ValidateResult"
300+
"$ref": "#/definitions/ValidateOperationResult"
301301
}
302302
},
303303
"202": {
@@ -863,6 +863,25 @@
863863
}
864864
}
865865
},
866+
"ValidateOperationResult": {
867+
"description": "The validation operation result for a linker.",
868+
"type": "object",
869+
"properties": {
870+
"properties": {
871+
"description": "The validation result detail.",
872+
"x-ms-client-flatten": true,
873+
"$ref": "#/definitions/ValidateResult"
874+
},
875+
"resourceId": {
876+
"description": "Validated linker id.",
877+
"type": "string"
878+
},
879+
"status": {
880+
"description": "Validation operation status.",
881+
"type": "string"
882+
}
883+
}
884+
},
866885
"ValidateResult": {
867886
"description": "The validation result for a linker.",
868887
"type": "object",
@@ -926,7 +945,7 @@
926945
"type": "string",
927946
"enum": [
928947
"success",
929-
"failed",
948+
"failure",
930949
"warning"
931950
],
932951
"x-ms-enum": {

0 commit comments

Comments
 (0)