Fix Issues with Swagger for Microsoft.Help RP (#23690)
* update sdk namespaces for all languages except c# * fix issues with swagger * update examples of solution metadata
This commit is contained in:
Родитель
a67a24b139
Коммит
2e2f8781fa
|
@ -8,34 +8,49 @@
|
|||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"solutionId": "SampleSolutionId1",
|
||||
"solutionType": "Diagnostics",
|
||||
"description": "This is a diagnostic",
|
||||
"requiredParameterSets": [
|
||||
[
|
||||
"ResourceUri"
|
||||
"id": "subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read/providers/Microsoft.Help/discoverySolutions/SampleSolutionId1",
|
||||
"type": "Microsoft.Help/discoverySolutions",
|
||||
"name": "SampleSolutionId1",
|
||||
"properties": {
|
||||
"solutionId": "SampleSolutionId1",
|
||||
"solutionType": "Diagnostics",
|
||||
"description": "This is a diagnostic",
|
||||
"requiredParameterSets": [
|
||||
[
|
||||
"ResourceUri"
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"solutionId": "SampleSolutionId2",
|
||||
"solutionType": "Diagnostics",
|
||||
"description": "This is another diagnostic",
|
||||
"requiredParameterSets": [
|
||||
[
|
||||
"ResourceUri"
|
||||
"id": "subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read/providers/Microsoft.Help/discoverySolutions/SampleSolutionId2",
|
||||
"type": "Microsoft.Help/discoverySolutions",
|
||||
"name": "SampleSolutionId2",
|
||||
"properties": {
|
||||
"solutionId": "SampleSolutionId2",
|
||||
"solutionType": "Diagnostics",
|
||||
"description": "This is a diagnostic",
|
||||
"requiredParameterSets": [
|
||||
[
|
||||
"ResourceUri"
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"solutionId": "SampleSolutionId3",
|
||||
"solutionType": "Diagnostics",
|
||||
"description": "This is another testing diagnostic"
|
||||
},
|
||||
{
|
||||
"solutionId": "SampleSolutionId4",
|
||||
"solutionType": "Diagnostics",
|
||||
"description": "This is also another testing diagnostic"
|
||||
"id": "subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read/providers/Microsoft.Help/discoverySolutions/SampleSolutionId3",
|
||||
"type": "Microsoft.Help/discoverySolutions",
|
||||
"name": "SampleSolutionId3",
|
||||
"properties": {
|
||||
"solutionId": "SampleSolutionId3",
|
||||
"solutionType": "Diagnostics",
|
||||
"description": "This is a diagnostic",
|
||||
"requiredParameterSets": [
|
||||
[
|
||||
"ResourceUri"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"nextLink": "nextLinkUrl"
|
||||
|
|
|
@ -523,11 +523,8 @@
|
|||
"description": "The list of solution metadata.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/SolutionMetadata"
|
||||
},
|
||||
"x-ms-identifiers": [
|
||||
"solutionId"
|
||||
]
|
||||
"$ref": "#/definitions/SolutionMetadataResource"
|
||||
}
|
||||
},
|
||||
"nextLink": {
|
||||
"description": "The link used to get the next page of solution metadata.",
|
||||
|
@ -535,7 +532,24 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"SolutionMetadata": {
|
||||
"SolutionMetadataResource": {
|
||||
"description": "Solution Metadata resource",
|
||||
"type": "object",
|
||||
"x-ms-azure-resource": true,
|
||||
"properties": {
|
||||
"properties": {
|
||||
"x-ms-client-flatten": true,
|
||||
"$ref": "#/definitions/SolutionMetadataProperties",
|
||||
"description": "Solution metadata Resource properties."
|
||||
}
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
|
||||
}
|
||||
]
|
||||
},
|
||||
"SolutionMetadataProperties": {
|
||||
"description": "Diagnostic solution metadata.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
@ -573,7 +587,7 @@
|
|||
"required": true,
|
||||
"type": "string",
|
||||
"description": "This is an extension resource provider and only resource level extension is supported at the moment.",
|
||||
"x-ms-parameter-location": "client",
|
||||
"x-ms-parameter-location": "method",
|
||||
"x-ms-skip-url-encoding": true
|
||||
},
|
||||
"ApiVersionParameter": {
|
||||
|
@ -593,7 +607,7 @@
|
|||
"maxLength": 100,
|
||||
"pattern": "^[A-Za-z0-9-+@()_]+$",
|
||||
"description": "Unique resource name for insight resources",
|
||||
"x-ms-parameter-location": "client"
|
||||
"x-ms-parameter-location": "method"
|
||||
},
|
||||
"FilterParameter": {
|
||||
"name": "$filter",
|
||||
|
@ -601,14 +615,16 @@
|
|||
"in": "query",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"x-ms-skip-url-encoding": true
|
||||
"x-ms-skip-url-encoding": true,
|
||||
"x-ms-parameter-location": "method"
|
||||
},
|
||||
"SkipTokenParameter": {
|
||||
"name": "$skiptoken",
|
||||
"description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"x-ms-parameter-location": "method"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче