forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.Help to add version prev…
…iew/2023-01-01-preview (Azure#23056) * Generate new Service for help * init commit microsoft.help-2023-01-01-preview * Updating swagger documentation #1 * Updating swagger documentation #2 * Adding suppressions for Help 2023-01-01-preview api * Adding suppressions for Help 2023-01-01-preview api #2 * removed unnecessary files * update examples
- Loading branch information
1 parent
f76d810
commit 4496ceb
Showing
12 changed files
with
950 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...ew/2023-01-01-preview/examples/CheckNameAvailabilityForDiagnosticWhenNameIsAvailable.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-01-01-preview", | ||
"scope": "subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6", | ||
"CheckNameAvailabilityRequest": { | ||
"name": "sampleName", | ||
"type": "Microsoft.Help/diagnostics" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": true | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...2023-01-01-preview/examples/CheckNameAvailabilityForDiagnosticWhenNameIsNotAvailable.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-01-01-preview", | ||
"scope": "subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6", | ||
"CheckNameAvailabilityRequest": { | ||
"name": "sampleName", | ||
"type": "Microsoft.Help/diagnostics" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": false, | ||
"reason": "Name is already in use", | ||
"message": "Name not available" | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...crosoft.Help/preview/2023-01-01-preview/examples/CreateDiagnosticForKeyVaultResource.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-01-01-preview", | ||
"scope": "subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read", | ||
"diagnosticsResourceName": "VMNotWorkingInsight", | ||
"diagnosticItemRequest": { | ||
"properties": { | ||
"insights": [ | ||
{ | ||
"solutionId": "SampleSolutionId", | ||
"additionalParameters": { | ||
"foo": "bar" | ||
} | ||
} | ||
], | ||
"globalParameters": { | ||
"startTime": "2020-07-01" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "subscriptions/mySubscription/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read/providers/Microsoft.Help/diagnostics/VMNotWorkingInsight", | ||
"name": "VMNotWorkingInsight", | ||
"type": "Microsoft.Help/diagnostics", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"acceptedAt": "2023-03-10T03:04:40Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
.../Microsoft.Help/preview/2023-01-01-preview/examples/GetDiagnosticForKeyVaultResource.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-01-01-preview", | ||
"scope": "subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read", | ||
"diagnosticsResourceName": "VMNotWorkingInsight" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "subscriptions/mySubscription/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read/providers/Microsoft.Help/diagnostics/VMNotWorkingInsight", | ||
"type": "VMNotWorkingInsight", | ||
"name": "Microsoft.Help/diagnostics", | ||
"properties": { | ||
"acceptedAt": "2023-03-10T03:04:40Z", | ||
"provisioningState": "Succeeded", | ||
"diagnostics": [ | ||
{ | ||
"solutionId": "sampleSolutionId", | ||
"status": "Succeeded", | ||
"insights": [ | ||
{ | ||
"id": "InsightArticleId", | ||
"title": "An example title for an Insight", | ||
"results": "Article Content", | ||
"importanceLevel": "Critical" | ||
} | ||
], | ||
"error": { | ||
"code": "errorCode", | ||
"message": "errorMessage" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...t.Help/preview/2023-01-01-preview/examples/ListDiscoverySolutionsForKeyVaultResource.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-01-01-preview", | ||
"scope": "subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"solutionId": "SampleSolutionId1", | ||
"solutionType": "Diagnostics", | ||
"description": "This is a diagnostic", | ||
"requiredParameterSets": [ | ||
[ | ||
"ResourceUri" | ||
] | ||
] | ||
}, | ||
{ | ||
"solutionId": "SampleSolutionId2", | ||
"solutionType": "Diagnostics", | ||
"description": "This is another diagnostic", | ||
"requiredParameterSets": [ | ||
[ | ||
"ResourceUri" | ||
] | ||
] | ||
}, | ||
{ | ||
"solutionId": "SampleSolutionId3", | ||
"solutionType": "Diagnostics", | ||
"description": "This is another testing diagnostic" | ||
}, | ||
{ | ||
"solutionId": "SampleSolutionId4", | ||
"solutionType": "Diagnostics", | ||
"description": "This is also another testing diagnostic" | ||
} | ||
], | ||
"nextLink": "nextLinkUrl" | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...p/resource-manager/Microsoft.Help/preview/2023-01-01-preview/examples/ListOperations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-01-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.Help/diagnostics/read", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft.Diagnostics", | ||
"resource": "Diagnostics", | ||
"operation": "Create/Read a Diagnostic", | ||
"description": "Created and Reads a diagnostic resource to troubleshoot an issue with a resource." | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.Help/discoverySolutions/read", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft.Help", | ||
"resource": "DiscoverySolutions", | ||
"operation": "List of available solutions.", | ||
"description": "Returns list of solutions based on ResourceType or ProblemClassficationId" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.