Skip to content

Commit

Permalink
Improve Microsoft.Insights schema generation (#2632)
Browse files Browse the repository at this point in the history
* Improve Microsoft.Insights schema generation

- Case of microsoft.insights updated to Microsoft.Insights throughout
- Added schema tag to readme.md to limit the input files

* Properly move folder to update case of name
  • Loading branch information
d3r3kk authored and dsgouda committed Mar 15, 2018
1 parent f35e3a4 commit ecd9048
Show file tree
Hide file tree
Showing 59 changed files with 142 additions and 122 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}
},
"paths": {
"/providers/microsoft.insights/operations": {
"/providers/Microsoft.Insights/operations": {
"get": {
"tags": [
"Operations"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/Annotations": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations": {
"get": {
"description": "Gets the list of annotations for a component for given time range",
"operationId": "Annotations_List",
Expand Down Expand Up @@ -134,7 +134,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/Annotations/{annotationId}": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}": {
"delete": {
"description": "Delete an Annotation of an Application Insights component.",
"operationId": "Annotations_Delete",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/ApiKeys": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ApiKeys": {
"get": {
"description": "Gets a list of API keys of an Application Insights component.",
"operationId": "APIKeys_List",
Expand Down Expand Up @@ -110,7 +110,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/APIKeys/{keyId}": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}": {
"delete": {
"description": "Delete an API Key of an Application Insights component.",
"operationId": "APIKeys_Delete",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/exportconfiguration": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration": {
"get": {
"description": "Gets a list of Continuous Export configuration of an Application Insights component.",
"operationId": "ExportConfigurations_List",
Expand Down Expand Up @@ -107,7 +107,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/exportconfiguration/{exportId}": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}": {
"delete": {
"description": "Delete a Continuous Export configuration of an Application Insights component.",
"operationId": "ExportConfigurations_Delete",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/currentbillingfeatures": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures": {
"get": {
"description": "Returns current billing features for an Application Insights component.",
"operationId": "ComponentCurrentBillingFeatures_Get",
Expand Down Expand Up @@ -107,7 +107,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/quotastatus": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/quotastatus": {
"get": {
"description": "Returns daily data volume cap (quota) status for an Application Insights component.",
"operationId": "ComponentQuotaStatus_Get",
Expand Down Expand Up @@ -140,7 +140,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/featurecapabilities": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/featurecapabilities": {
"get": {
"description": "Returns feature capabilites of the application insights component.",
"operationId": "ComponentFeatureCapabilities_Get",
Expand Down Expand Up @@ -173,7 +173,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/getavailablebillingfeatures": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/getavailablebillingfeatures": {
"get": {
"description": "Returns all available features of the application insights component.",
"operationId": "ComponentAvailableFeatures_Get",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/ProactiveDetectionConfigs": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs": {
"get": {
"description": "Gets a list of ProactiveDetection configurations of an Application Insights component.",
"operationId": "ProactiveDetectionConfigurations_List",
Expand Down Expand Up @@ -67,7 +67,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}": {
"get": {
"description": "Get the ProactiveDetection configuration for this configuration id.",
"operationId": "ProactiveDetectionConfigurations_Get",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/WorkItemConfigs": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs": {
"get": {
"description": "Gets the list work item configurations that exist for the application",
"operationId": "WorkItemConfigurations_List",
Expand Down Expand Up @@ -119,7 +119,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/DefaultWorkItemConfig": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/DefaultWorkItemConfig": {
"get": {
"description": "Gets default work item configurations that exist for the application",
"operationId": "WorkItemConfigurations_GetDefault",
Expand Down Expand Up @@ -155,7 +155,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}": {
"delete": {
"description": "Delete an workitem configuration of an Application Insights component.",
"operationId": "WorkItemConfigurations_Delete",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
},
"paths": {
"/subscriptions/{subscriptionId}/providers/microsoft.insights/components": {
"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/components": {
"get": {
"description": "Gets a list of all Application Insights components within a subscription.",
"operationId": "Components_List",
Expand Down Expand Up @@ -64,7 +64,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components": {
"get": {
"description": "Gets a list of Application Insights components within a resource group.",
"operationId": "Components_ListByResourceGroup",
Expand Down Expand Up @@ -97,7 +97,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}": {
"delete": {
"description": "Deletes an Application Insights component.",
"operationId": "Components_Delete",
Expand Down Expand Up @@ -244,7 +244,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/purge": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge": {
"post": {
"description": "Purges data in an Application Insights component by a set of user-defined filters.",
"operationId": "Components_Purge",
Expand Down Expand Up @@ -280,7 +280,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/operations/{purgeId}": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/operations/{purgeId}": {
"get": {
"description": "Gets the status of a previously submitted purge using the id returned from the original purge request.",
"operationId": "Components_GetPurgeStatus",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@
"APIKeyProperties": {
"name": "test2",
"linkedReadProperties": [
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/api",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/agentconfig"
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/api",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/agentconfig"
],
"linkedWriteProperties": [
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/annotations"
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/annotations"
]
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourcegroups/my-resource-group/providers/microsoft.insights/components/my-component/apikeys/fe2e0138-47c1-46c5-8726-872f54c1ca08",
"id": "/subscriptions/subid/resourcegroups/my-resource-group/providers/Microsoft.Insights/components/my-component/apikeys/fe2e0138-47c1-46c5-8726-872f54c1ca08",
"name": "test",
"linkedReadProperties": [
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/api",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/agentconfig"
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/api",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/agentconfig"
],
"linkedWriteProperties": [
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/annotations"
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/annotations"
],
"apiKey": "eip8wlzuzlf4wzczhnzao54zcswew25azs4kadhb",
"createdDate": "Thu, 28 Sep 2017 16:58:52 GMT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourcegroups/my-resource-group/providers/microsoft.insights/components/my-component/apikeys/bb820f1b-3110-4a8b-ba2c-8c1129d7eb6a",
"id": "/subscriptions/subid/resourcegroups/my-resource-group/providers/Microsoft.Insights/components/my-component/apikeys/bb820f1b-3110-4a8b-ba2c-8c1129d7eb6a",
"name": "test2",
"linkedReadProperties": [
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/api",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/draft",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/extendqueries",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/search",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/aggregate",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/agentconfig"
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/api",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/draft",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/extendqueries",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/search",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/aggregate",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/agentconfig"
],
"linkedWriteProperties": [],
"createdDate": "Thu, 28 Sep 2017 16:59:18 GMT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourcegroups/my-resource-group/providers/microsoft.insights/components/my-component/apikeys/bb820f1b-3110-4a8b-ba2c-8c1129d7eb6a",
"id": "/subscriptions/subid/resourcegroups/my-resource-group/providers/Microsoft.Insights/components/my-component/apikeys/bb820f1b-3110-4a8b-ba2c-8c1129d7eb6a",
"name": "test2",
"linkedReadProperties": [
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/api",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/draft",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/extendqueries",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/search",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/aggregate",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/agentconfig"
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/api",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/draft",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/extendqueries",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/search",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/aggregate",
"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component/agentconfig"
],
"linkedWriteProperties": [],
"createdDate": "Thu, 28 Sep 2017 16:59:18 GMT"
Expand Down
Loading

0 comments on commit ecd9048

Please sign in to comment.