Skip to content

Commit 4496ceb

Browse files
[Hub Generated] Review request for Microsoft.Help to add version preview/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
1 parent f76d810 commit 4496ceb

12 files changed

+950
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-01-01-preview",
4+
"scope": "subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6",
5+
"CheckNameAvailabilityRequest": {
6+
"name": "sampleName",
7+
"type": "Microsoft.Help/diagnostics"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"nameAvailable": true
14+
}
15+
}
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-01-01-preview",
4+
"scope": "subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6",
5+
"CheckNameAvailabilityRequest": {
6+
"name": "sampleName",
7+
"type": "Microsoft.Help/diagnostics"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"nameAvailable": false,
14+
"reason": "Name is already in use",
15+
"message": "Name not available"
16+
}
17+
}
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-01-01-preview",
4+
"scope": "subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read",
5+
"diagnosticsResourceName": "VMNotWorkingInsight",
6+
"diagnosticItemRequest": {
7+
"properties": {
8+
"insights": [
9+
{
10+
"solutionId": "SampleSolutionId",
11+
"additionalParameters": {
12+
"foo": "bar"
13+
}
14+
}
15+
],
16+
"globalParameters": {
17+
"startTime": "2020-07-01"
18+
}
19+
}
20+
}
21+
},
22+
"responses": {
23+
"201": {
24+
"body": {
25+
"id": "subscriptions/mySubscription/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read/providers/Microsoft.Help/diagnostics/VMNotWorkingInsight",
26+
"name": "VMNotWorkingInsight",
27+
"type": "Microsoft.Help/diagnostics",
28+
"properties": {
29+
"provisioningState": "Succeeded",
30+
"acceptedAt": "2023-03-10T03:04:40Z"
31+
}
32+
}
33+
}
34+
}
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-01-01-preview",
4+
"scope": "subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read",
5+
"diagnosticsResourceName": "VMNotWorkingInsight"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "subscriptions/mySubscription/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read/providers/Microsoft.Help/diagnostics/VMNotWorkingInsight",
11+
"type": "VMNotWorkingInsight",
12+
"name": "Microsoft.Help/diagnostics",
13+
"properties": {
14+
"acceptedAt": "2023-03-10T03:04:40Z",
15+
"provisioningState": "Succeeded",
16+
"diagnostics": [
17+
{
18+
"solutionId": "sampleSolutionId",
19+
"status": "Succeeded",
20+
"insights": [
21+
{
22+
"id": "InsightArticleId",
23+
"title": "An example title for an Insight",
24+
"results": "Article Content",
25+
"importanceLevel": "Critical"
26+
}
27+
],
28+
"error": {
29+
"code": "errorCode",
30+
"message": "errorMessage"
31+
}
32+
}
33+
]
34+
}
35+
}
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-01-01-preview",
4+
"scope": "subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"solutionId": "SampleSolutionId1",
12+
"solutionType": "Diagnostics",
13+
"description": "This is a diagnostic",
14+
"requiredParameterSets": [
15+
[
16+
"ResourceUri"
17+
]
18+
]
19+
},
20+
{
21+
"solutionId": "SampleSolutionId2",
22+
"solutionType": "Diagnostics",
23+
"description": "This is another diagnostic",
24+
"requiredParameterSets": [
25+
[
26+
"ResourceUri"
27+
]
28+
]
29+
},
30+
{
31+
"solutionId": "SampleSolutionId3",
32+
"solutionType": "Diagnostics",
33+
"description": "This is another testing diagnostic"
34+
},
35+
{
36+
"solutionId": "SampleSolutionId4",
37+
"solutionType": "Diagnostics",
38+
"description": "This is also another testing diagnostic"
39+
}
40+
],
41+
"nextLink": "nextLinkUrl"
42+
}
43+
}
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-01-01-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"name": "Microsoft.Help/diagnostics/read",
11+
"isDataAction": false,
12+
"display": {
13+
"provider": "Microsoft.Diagnostics",
14+
"resource": "Diagnostics",
15+
"operation": "Create/Read a Diagnostic",
16+
"description": "Created and Reads a diagnostic resource to troubleshoot an issue with a resource."
17+
}
18+
},
19+
{
20+
"name": "Microsoft.Help/discoverySolutions/read",
21+
"isDataAction": false,
22+
"display": {
23+
"provider": "Microsoft.Help",
24+
"resource": "DiscoverySolutions",
25+
"operation": "List of available solutions.",
26+
"description": "Returns list of solutions based on ResourceType or ProblemClassficationId"
27+
}
28+
}
29+
]
30+
}
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)