Skip to content

Commit 34f09c2

Browse files
author
Daniel Stack
authored
[Hub Generated] Review request for Microsoft.Maps for swagger completeness fix (#14456)
* adding missing op based on live validation * fixup * fix linter * fixes based on swagger correctness
1 parent 7f267af commit 34f09c2

File tree

2 files changed

+160
-0
lines changed

2 files changed

+160
-0
lines changed
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-02-01",
4+
"subscriptionId": "21a9967a-e8a9-4656-a70b-96ff1c4d05a0"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"name": "Microsoft.Maps/register/action",
12+
"isDataAction": false,
13+
"display": {
14+
"provider": "Microsoft Maps",
15+
"resource": "Maps Account",
16+
"operation": "Register the provider",
17+
"description": "Register the provider"
18+
}
19+
},
20+
{
21+
"name": "Microsoft.Maps/accounts/write",
22+
"isDataAction": false,
23+
"display": {
24+
"provider": "Microsoft Maps",
25+
"resource": "Maps Account",
26+
"operation": "Create or update a Maps Account.",
27+
"description": "Create or update a Maps Account."
28+
}
29+
},
30+
{
31+
"name": "Microsoft.Maps/accounts/read",
32+
"isDataAction": false,
33+
"display": {
34+
"provider": "Microsoft Maps",
35+
"resource": "Maps Account",
36+
"operation": "Get a Maps Account.",
37+
"description": "Get a Maps Account."
38+
}
39+
},
40+
{
41+
"name": "Microsoft.Maps/accounts/delete",
42+
"isDataAction": false,
43+
"display": {
44+
"provider": "Microsoft Maps",
45+
"resource": "Maps Account",
46+
"operation": "Delete a Maps Account.",
47+
"description": "Delete a Maps Account."
48+
}
49+
},
50+
{
51+
"name": "Microsoft.Maps/accounts/listKeys/action",
52+
"isDataAction": false,
53+
"display": {
54+
"provider": "Microsoft Maps",
55+
"resource": "Maps Account",
56+
"operation": "List keys",
57+
"description": "List Maps Account keys"
58+
}
59+
},
60+
{
61+
"name": "Microsoft.Maps/accounts/regenerateKey/action",
62+
"isDataAction": false,
63+
"display": {
64+
"provider": "Microsoft Maps",
65+
"resource": "Maps Account",
66+
"operation": "Generate new primary or secondary key",
67+
"description": "Generate new Maps Account primary or secondary key"
68+
}
69+
},
70+
{
71+
"name": "Microsoft.Maps/accounts/creators/write",
72+
"isDataAction": false,
73+
"display": {
74+
"provider": "Microsoft Maps",
75+
"resource": "Creator",
76+
"operation": "Create or update a Maps Creator.",
77+
"description": "Create or update a Maps Creator."
78+
}
79+
},
80+
{
81+
"name": "Microsoft.Maps/accounts/creators/read",
82+
"isDataAction": false,
83+
"display": {
84+
"provider": "Microsoft Maps",
85+
"resource": "Creator",
86+
"operation": "Get a Maps Creator.",
87+
"description": "Get a Maps Creator."
88+
}
89+
},
90+
{
91+
"name": "Microsoft.Maps/accounts/creators/delete",
92+
"isDataAction": false,
93+
"display": {
94+
"provider": "Microsoft Maps",
95+
"resource": "Creator",
96+
"operation": "Delete a Maps Creator.",
97+
"description": "Delete a Maps Creator."
98+
}
99+
}
100+
],
101+
"nextLink": null
102+
}
103+
}
104+
}
105+
}

specification/maps/resource-manager/Microsoft.Maps/stable/2021-02-01/maps-management.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,45 @@
439439
}
440440
}
441441
},
442+
"/subscriptions/{subscriptionId}/providers/Microsoft.Maps/operations": {
443+
"get": {
444+
"tags": [
445+
"Operations"
446+
],
447+
"description": "List operations available for the Maps Resource Provider",
448+
"operationId": "Maps_ListSubscriptionOperations",
449+
"x-ms-examples": {
450+
"Get Operations by Subscription": {
451+
"$ref": "./examples/GetOperationsSubscription.json"
452+
}
453+
},
454+
"x-ms-pageable": {
455+
"nextLinkName": "nextLink"
456+
},
457+
"parameters": [
458+
{
459+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
460+
},
461+
{
462+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
463+
}
464+
],
465+
"responses": {
466+
"200": {
467+
"description": "The request was successful.",
468+
"schema": {
469+
"$ref": "#/definitions/MapsOperations"
470+
}
471+
},
472+
"default": {
473+
"description": "An unexpected error occurred.",
474+
"schema": {
475+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
476+
}
477+
}
478+
}
479+
}
480+
},
442481
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators": {
443482
"get": {
444483
"tags": [
@@ -1071,6 +1110,22 @@
10711110
"displayName": {
10721111
"type": "string",
10731112
"description": "Display name of dimension."
1113+
},
1114+
"internalName": {
1115+
"type": "string",
1116+
"description": "Internal name of the dimension."
1117+
},
1118+
"internalMetricName": {
1119+
"type": "string",
1120+
"description": "Internal metric name of the dimension."
1121+
},
1122+
"sourceMdmNamespace": {
1123+
"type": "string",
1124+
"description": "Source Mdm Namespace of the dimension."
1125+
},
1126+
"toBeExportedToShoebox": {
1127+
"type": "boolean",
1128+
"description": "Flag to indicate exporting to Azure Monitor."
10741129
}
10751130
}
10761131
},

0 commit comments

Comments
 (0)