Skip to content

Commit 4483c52

Browse files
add all apis to 2020 readme (#14870)
* add all apis to 2020 readme * fix * add 2020 to Go Readme * change error definitions in 2020-02-02 * changes to fix issues * fix more errors * change error response to custom to fix errors * add code property to error * fix error response * change errorResponse name * fix * fix * fix * fix * fix * fix * fix * fix * fixes * fixes * fix * fixes * fix remaining issues in readme.go.md Co-authored-by: ArcturusZhang <[email protected]>
1 parent 34342af commit 4483c52

File tree

7 files changed

+70
-44
lines changed

7 files changed

+70
-44
lines changed

specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/examples/CurrentPricingPlanCreateAndUpdate.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@
77
"PricingPlanProperties": {
88
"id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/pricingPlans/current",
99
"name": "current",
10-
"type": "microsoft.insights/components/pricingPlans",
1110
"properties": {
1211
"planType": "Basic",
1312
"cap": 500,
14-
"maxHistoryCap": 500,
15-
"resetHour": 16,
1613
"warningThreshold": 90,
1714
"stopSendNotificationWhenHitThreshold": false,
1815
"stopSendNotificationWhenHitCap": false

specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/examples/CurrentPricingPlanUpdate.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"PricingPlanProperties": {
88
"id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/pricingPlans/current",
99
"name": "current",
10-
"type": "microsoft.insights/components/pricingPlans",
1110
"properties": {
1211
"planType": "Basic",
1312
"cap": 500,

specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"default": {
6060
"description": "Error response describing why the operation failed.",
6161
"schema": {
62-
"$ref": "#/definitions/ErrorResponse"
62+
"$ref": "#/definitions/ErrorResponseLinkedStorage"
6363
}
6464
},
6565
"200": {
@@ -108,7 +108,7 @@
108108
"default": {
109109
"description": "Error response describing why the operation failed.",
110110
"schema": {
111-
"$ref": "#/definitions/ErrorResponse"
111+
"$ref": "#/definitions/ErrorResponseLinkedStorage"
112112
}
113113
},
114114
"200": {
@@ -157,7 +157,7 @@
157157
"default": {
158158
"description": "Error response describing why the operation failed.",
159159
"schema": {
160-
"$ref": "#/definitions/ErrorResponse"
160+
"$ref": "#/definitions/ErrorResponseLinkedStorage"
161161
}
162162
},
163163
"200": {
@@ -197,7 +197,7 @@
197197
"default": {
198198
"description": "Error response describing why the operation failed.",
199199
"schema": {
200-
"$ref": "#/definitions/ErrorResponse"
200+
"$ref": "#/definitions/ErrorResponseLinkedStorage"
201201
}
202202
},
203203
"200": {
@@ -216,17 +216,24 @@
216216
}
217217
},
218218
"definitions": {
219-
"ErrorResponse": {
220-
"description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.",
219+
"ErrorResponseLinkedStorage": {
221220
"type": "object",
222221
"properties": {
223-
"code": {
224-
"description": "Error code.",
225-
"type": "string"
226-
},
227-
"message": {
228-
"description": "Error message indicating why the operation failed.",
229-
"type": "string"
222+
"error": {
223+
"description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.",
224+
"type": "object",
225+
"properties": {
226+
"code": {
227+
"readOnly": true,
228+
"description": "Error code.",
229+
"type": "string"
230+
},
231+
"message": {
232+
"readOnly": true,
233+
"description": "Error message indicating why the operation failed.",
234+
"type": "string"
235+
}
236+
}
230237
}
231238
}
232239
},

specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-06-02-preview/livetoken_API.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"default": {
9494
"description": "Error response describing why the operation failed.",
9595
"schema": {
96-
"$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse"
96+
"$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponseLinkedStorage"
9797
}
9898
},
9999
"200": {

specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"default": {
5757
"description": "Error response describing why the operation failed.",
5858
"schema": {
59-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
59+
"$ref": "#/definitions/ErrorResponseComponents"
6060
}
6161
}
6262
},
@@ -95,7 +95,7 @@
9595
"default": {
9696
"description": "Error response describing why the operation failed.",
9797
"schema": {
98-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
98+
"$ref": "#/definitions/ErrorResponseComponents"
9999
}
100100
}
101101
},
@@ -137,7 +137,7 @@
137137
"default": {
138138
"description": "Error response describing why the operation failed.",
139139
"schema": {
140-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
140+
"$ref": "#/definitions/ErrorResponseComponents"
141141
}
142142
}
143143
},
@@ -174,7 +174,7 @@
174174
"default": {
175175
"description": "Error response describing why the operation failed.",
176176
"schema": {
177-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
177+
"$ref": "#/definitions/ErrorResponseComponents"
178178
}
179179
}
180180
},
@@ -220,7 +220,7 @@
220220
"default": {
221221
"description": "Error response describing why the operation failed.",
222222
"schema": {
223-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
223+
"$ref": "#/definitions/ErrorResponseComponents"
224224
}
225225
}
226226
},
@@ -269,7 +269,7 @@
269269
"default": {
270270
"description": "Error response describing why the operation failed.",
271271
"schema": {
272-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
272+
"$ref": "#/definitions/ErrorResponseComponents"
273273
}
274274
}
275275
},
@@ -311,7 +311,7 @@
311311
"default": {
312312
"description": "Error response describing why the operation failed.",
313313
"schema": {
314-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
314+
"$ref": "#/definitions/ErrorResponseComponents"
315315
}
316316
}
317317
},
@@ -353,7 +353,7 @@
353353
"default": {
354354
"description": "Error response describing why the operation failed.",
355355
"schema": {
356-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
356+
"$ref": "#/definitions/ErrorResponseComponents"
357357
}
358358
}
359359
},
@@ -366,6 +366,27 @@
366366
}
367367
},
368368
"definitions": {
369+
"ErrorResponseComponents": {
370+
"type": "object",
371+
"properties": {
372+
"error": {
373+
"description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.",
374+
"type": "object",
375+
"properties": {
376+
"code": {
377+
"readOnly": true,
378+
"description": "Error code.",
379+
"type": "string"
380+
},
381+
"message": {
382+
"readOnly": true,
383+
"description": "Error message indicating why the operation failed.",
384+
"type": "string"
385+
}
386+
}
387+
}
388+
}
389+
},
369390
"ComponentsResource": {
370391
"properties": {
371392
"id": {

specification/applicationinsights/resource-manager/readme.go.md

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ go:
1414
``` yaml $(go) && $(multiapi)
1515
batch:
1616
- tag: package-2015-05
17+
- tag: package-2020-02-02
1718
```
1819
1920
### Tag: package-2015-05 and go
@@ -25,24 +26,11 @@ Please also specify `--go-sdk-folder=<path to the root directory of your azure-s
2526
output-folder: $(go-sdk-folder)/services/appinsights/mgmt/2015-05-01/$(namespace)
2627
```
2728

28-
### Tag: schema-2015-05-preview
29+
### Tag: package-2020-02-02 and go
2930

30-
These settings apply only when `--tag=schema-2015-05-01` is specified on the
31-
command line.
32-
33-
This section contains the input swagger files that are used when generating
34-
resource manager schemas for version 2015-05-01. Note that many of our
35-
pre-existing APIs are note currently compatible with ARM schemas, upon any
36-
updates applied to our services we will bring them up to compliance.
37-
38-
``` yaml $(tag) == 'schema-2015-05-01'
39-
input-file:
40-
- ./Microsoft.Insights/stable/2015-05-01/aiOperations_API.json
41-
- ./Microsoft.Insights/stable/2015-05-01/components_API.json
42-
- ./Microsoft.Insights/stable/2015-05-01/webTests_API.json
43-
- ./Microsoft.Insights/stable/2015-05-01/workbooks_API.json
44-
- ./Microsoft.Insights/stable/2015-05-01/myworkbooks_API.json
31+
These settings apply only when `--tag=package-2020-02-02 --go` is specified on he command line.
32+
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
4533

46-
override-info:
47-
title: ApplicationInsightsManagementClient
34+
``` yaml $(tag) == 'package-2020-02-02' && $(go)
35+
output-folder: $(go-sdk-folder)/services/preview/appinsights/mgmt/2020-02-02-preview/$(namespace)
4836
```

specification/applicationinsights/resource-manager/readme.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,21 @@ These settings apply only when `--tag=package-2020-02-02` is specified on the co
360360

361361
``` yaml $(tag) == 'package-2020-02-02'
362362
input-file:
363+
- Microsoft.Insights/stable/2015-05-01/aiOperations_API.json
364+
- Microsoft.Insights/stable/2015-05-01/componentAnnotations_API.json
365+
- Microsoft.Insights/stable/2015-05-01/componentApiKeys_API.json
366+
- Microsoft.Insights/stable/2015-05-01/componentContinuousExport_API.json
367+
- Microsoft.Insights/stable/2015-05-01/componentFeaturesAndPricing_API.json
368+
- Microsoft.Insights/stable/2015-05-01/componentProactiveDetection_API.json
369+
- Microsoft.Insights/stable/2015-05-01/componentWorkItemConfigs_API.json
370+
- Microsoft.Insights/stable/2015-05-01/favorites_API.json
371+
- Microsoft.Insights/stable/2015-05-01/webTestLocations_API.json
372+
- Microsoft.Insights/stable/2015-05-01/webTests_API.json
373+
- Microsoft.Insights/stable/2015-05-01/analyticsItems_API.json
374+
- Microsoft.Insights/stable/2015-05-01/workbooks_API.json
375+
- Microsoft.Insights/stable/2015-05-01/myworkbooks_API.json
363376
- Microsoft.Insights/stable/2020-02-02/components_API.json
377+
- Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json
364378
```
365379

366380
### Tag: package-2019-10-17-preview

0 commit comments

Comments
 (0)