Skip to content

Commit 5d447e3

Browse files
author
SDKAuto
committed
CodeGen from PR 11393 in Azure/azure-rest-api-specs
Adding API to support generating access token for ApplicationInsights Profiler (#11393) * Adds base for updating Microsoft.Insights from version preview/2020-10-05-preview to version 2020-10-26-preview * Updates readme * Updates API version in new specs and examples * Update readme to pointing to profilerToken_API.json * Update operations list * Add profiler token getter * Wire up the defintions * Fix error: additonal property of liveToken * Append post action * Update api-version for example * Fix some small issues * Update readme for the resolving autorest check issue * From profilertoken to profilerToken * Ran prettier * Appending back missing readme for 2020-10 tag * Fix some mistakes * Use common error response * Tag secret with x-ms-secret * Remove list operations * Clean up packages * Making 2 post operations for token * Remove unused operations_list.json example * Align with official master * Resolve conflicts * Add x-ms-secret for the token * Update error response schema ref * Update operation ids * Remove unused error response
1 parent a0248fb commit 5d447e3

File tree

8 files changed

+2290
-555
lines changed

8 files changed

+2290
-555
lines changed

schemas/2015-05-01/Microsoft.Insights.json

Lines changed: 1426 additions & 185 deletions
Large diffs are not rendered by default.
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2017-10-01/microsoft.insights.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "microsoft.insights",
5+
"description": "microsoft insights Resource Types",
6+
"resourceDefinitions": {
7+
"components_pricingPlans": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2017-10-01"
14+
]
15+
},
16+
"name": {
17+
"oneOf": [
18+
{
19+
"type": "string",
20+
"pattern": "^.*/current$"
21+
},
22+
{
23+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
24+
}
25+
]
26+
},
27+
"properties": {
28+
"oneOf": [
29+
{
30+
"$ref": "#/definitions/PricingPlanProperties"
31+
},
32+
{
33+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
34+
}
35+
],
36+
"description": "An Application Insights component daily data volume cap"
37+
},
38+
"type": {
39+
"type": "string",
40+
"enum": [
41+
"microsoft.insights/components/pricingPlans"
42+
]
43+
}
44+
},
45+
"required": [
46+
"apiVersion",
47+
"name",
48+
"properties",
49+
"type"
50+
],
51+
"description": "microsoft.insights/components/pricingPlans"
52+
}
53+
},
54+
"definitions": {
55+
"PricingPlanProperties": {
56+
"type": "object",
57+
"properties": {
58+
"cap": {
59+
"oneOf": [
60+
{
61+
"type": "number"
62+
},
63+
{
64+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
65+
}
66+
],
67+
"description": "Daily data volume cap in GB."
68+
},
69+
"planType": {
70+
"type": "string",
71+
"description": "Pricing Plan Type Name."
72+
},
73+
"stopSendNotificationWhenHitCap": {
74+
"oneOf": [
75+
{
76+
"type": "boolean"
77+
},
78+
{
79+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
80+
}
81+
],
82+
"description": "Do not send a notification email when the daily data volume cap is met."
83+
},
84+
"stopSendNotificationWhenHitThreshold": {
85+
"oneOf": [
86+
{
87+
"type": "boolean"
88+
},
89+
{
90+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
91+
}
92+
],
93+
"description": "Reserved, not used for now."
94+
},
95+
"warningThreshold": {
96+
"oneOf": [
97+
{
98+
"type": "integer"
99+
},
100+
{
101+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
102+
}
103+
],
104+
"description": "Reserved, not used for now."
105+
}
106+
},
107+
"description": "An Application Insights component daily data volume cap"
108+
}
109+
}
110+
}

0 commit comments

Comments
 (0)