Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.Help to add version prev…
Browse files Browse the repository at this point in the history
…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
BharathaAravind authored Mar 22, 2023
1 parent f76d810 commit 4496ceb
Show file tree
Hide file tree
Showing 12 changed files with 950 additions and 0 deletions.
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
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
}
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"
}
}
]
}
}
}
}
}
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"
}
}
}
}
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"
}
}
]
}
}
}
}
Loading

0 comments on commit 4496ceb

Please sign in to comment.