Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize policyinsights; change modelAsString for x-ms-enum to true #2599

Merged
merged 15 commits into from
Mar 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
}
},
"x-ms-examples": {
"Query at management group scope": { "$ref": "./examples/QueryManagementGroupScope.json" }
"Query at management group scope": { "$ref": "./examples/PolicyEvents_QueryManagementGroupScope.json" }
}
}
},
Expand Down Expand Up @@ -139,12 +139,12 @@
}
},
"x-ms-examples": {
"Query at subscription scope": { "$ref": "./examples/QuerySubscriptionScope.json" },
"Time range; sort, select and limit": { "$ref": "./examples/TimeRangeSortSelectTop.json" },
"Filter and group with aggregate": { "$ref": "./examples/FilterAndGroupByWithAggregate.json" },
"Filter and group without aggregate": { "$ref": "./examples/FilterAndGroupByWithoutAggregate.json" },
"Filter and aggregate only": { "$ref": "./examples/FilterAndAggregateOnly.json" },
"Filter and multiple groups": { "$ref": "./examples/FilterAndMultipleGroups.json" }
"Query at subscription scope": { "$ref": "./examples/PolicyEvents_QuerySubscriptionScope.json" },
"Time range; sort, select and limit": { "$ref": "./examples/PolicyEvents_TimeRangeSortSelectTop.json" },
"Filter and group with aggregate": { "$ref": "./examples/PolicyEvents_FilterAndGroupByWithAggregate.json" },
"Filter and group without aggregate": { "$ref": "./examples/PolicyEvents_FilterAndGroupByWithoutAggregate.json" },
"Filter and aggregate only": { "$ref": "./examples/PolicyEvents_FilterAndAggregateOnly.json" },
"Filter and multiple groups": { "$ref": "./examples/PolicyEvents_FilterAndMultipleGroups.json" }
}
}
},
Expand Down Expand Up @@ -202,7 +202,7 @@
}
},
"x-ms-examples": {
"Query at resource group scope": { "$ref": "./examples/QueryResourceGroupScope.json" }
"Query at resource group scope": { "$ref": "./examples/PolicyEvents_QueryResourceGroupScope.json" }
}
}
},
Expand Down Expand Up @@ -257,10 +257,10 @@
}
},
"x-ms-examples": {
"Query at resource scope": { "$ref": "./examples/QueryResourceScope.json" },
"Query at subscription level resource scope": { "$ref": "./examples/QuerySubscriptionLevelResourceScope.json" },
"Query at nested resource scope": { "$ref": "./examples/QueryNestedResourceScope.json" },
"Query at subscription level nested resource scope": { "$ref": "./examples/QuerySubscriptionLevelNestedResourceScope.json" }
"Query at resource scope": { "$ref": "./examples/PolicyEvents_QueryResourceScope.json" },
"Query at subscription level resource scope": { "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelResourceScope.json" },
"Query at nested resource scope": { "$ref": "./examples/PolicyEvents_QueryNestedResourceScope.json" },
"Query at subscription level nested resource scope": { "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelNestedResourceScope.json" }
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
}
},
"x-ms-examples": {
"Query latest at management group scope": { "$ref": "./examples/QueryManagementGroupScope.json" }
"Query latest at management group scope": { "$ref": "./examples/PolicyStates_QueryManagementGroupScope.json" }
}
}
},
Expand Down Expand Up @@ -139,12 +139,12 @@
}
},
"x-ms-examples": {
"Query latest at subscription scope": { "$ref": "./examples/QuerySubscriptionScope.json" },
"Time range; sort, select and limit": { "$ref": "./examples/TimeRangeSortSelectTop.json" },
"Filter and group with aggregate": { "$ref": "./examples/FilterAndGroupByWithAggregate.json" },
"Filter and group without aggregate": { "$ref": "./examples/FilterAndGroupByWithoutAggregate.json" },
"Filter and aggregate only": { "$ref": "./examples/FilterAndAggregateOnly.json" },
"Filter and multiple groups": { "$ref": "./examples/FilterAndMultipleGroups.json" }
"Query latest at subscription scope": { "$ref": "./examples/PolicyStates_QuerySubscriptionScope.json" },
"Time range; sort, select and limit": { "$ref": "./examples/PolicyStates_TimeRangeSortSelectTop.json" },
"Filter and group with aggregate": { "$ref": "./examples/PolicyStates_FilterAndGroupByWithAggregate.json" },
"Filter and group without aggregate": { "$ref": "./examples/PolicyStates_FilterAndGroupByWithoutAggregate.json" },
"Filter and aggregate only": { "$ref": "./examples/PolicyStates_FilterAndAggregateOnly.json" },
"Filter and multiple groups": { "$ref": "./examples/PolicyStates_FilterAndMultipleGroups.json" }
}
}
},
Expand Down Expand Up @@ -202,7 +202,7 @@
}
},
"x-ms-examples": {
"Query latest at resource group scope": { "$ref": "./examples/QueryResourceGroupScope.json" }
"Query latest at resource group scope": { "$ref": "./examples/PolicyStates_QueryResourceGroupScope.json" }
}
}
},
Expand Down Expand Up @@ -257,10 +257,10 @@
}
},
"x-ms-examples": {
"Query all policy states at resource scope": { "$ref": "./examples/QueryResourceScope.json" },
"Query all policy states at subscription level resource scope": { "$ref": "./examples/QuerySubscriptionLevelResourceScope.json" },
"Query all policy states at nested resource scope": { "$ref": "./examples/QueryNestedResourceScope.json" },
"Query all policy states at subscription level nested resource scope": { "$ref": "./examples/QuerySubscriptionLevelNestedResourceScope.json" }
"Query all policy states at resource scope": { "$ref": "./examples/PolicyStates_QueryResourceScope.json" },
"Query all policy states at subscription level resource scope": { "$ref": "./examples/PolicyStates_QuerySubscriptionLevelResourceScope.json" },
"Query all policy states at nested resource scope": { "$ref": "./examples/PolicyStates_QueryNestedResourceScope.json" },
"Query all policy states at subscription level nested resource scope": { "$ref": "./examples/PolicyStates_QuerySubscriptionLevelNestedResourceScope.json" }
}
}
},
Expand Down Expand Up @@ -288,7 +288,7 @@
}
},
"x-ms-examples": {
"List operations": { "$ref": "./examples/ListOperations.json" }
"List operations": { "$ref": "./examples/PolicyStates_ListOperations.json" }
}
}
}
Expand Down Expand Up @@ -531,7 +531,7 @@
],
"x-ms-enum": {
"name": "PolicyStatesResource",
"modelAsString": false
"modelAsString": true
},
"description": "The virtual resource under PolicyStates resource type. In a given time range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s).",
"x-ms-parameter-location": "method"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
}
},
"x-ms-examples": {
"Query at management group scope": { "$ref": "./examples/QueryManagementGroupScope.json" }
"Query at management group scope": { "$ref": "./examples/PolicyEvents_QueryManagementGroupScope.json" }
}
}
},
Expand Down Expand Up @@ -139,12 +139,12 @@
}
},
"x-ms-examples": {
"Query at subscription scope": { "$ref": "./examples/QuerySubscriptionScope.json" },
"Time range; sort, select and limit": { "$ref": "./examples/TimeRangeSortSelectTop.json" },
"Filter and group with aggregate": { "$ref": "./examples/FilterAndGroupByWithAggregate.json" },
"Filter and group without aggregate": { "$ref": "./examples/FilterAndGroupByWithoutAggregate.json" },
"Filter and aggregate only": { "$ref": "./examples/FilterAndAggregateOnly.json" },
"Filter and multiple groups": { "$ref": "./examples/FilterAndMultipleGroups.json" }
"Query at subscription scope": { "$ref": "./examples/PolicyEvents_QuerySubscriptionScope.json" },
"Time range; sort, select and limit": { "$ref": "./examples/PolicyEvents_TimeRangeSortSelectTop.json" },
"Filter and group with aggregate": { "$ref": "./examples/PolicyEvents_FilterAndGroupByWithAggregate.json" },
"Filter and group without aggregate": { "$ref": "./examples/PolicyEvents_FilterAndGroupByWithoutAggregate.json" },
"Filter and aggregate only": { "$ref": "./examples/PolicyEvents_FilterAndAggregateOnly.json" },
"Filter and multiple groups": { "$ref": "./examples/PolicyEvents_FilterAndMultipleGroups.json" }
}
}
},
Expand Down Expand Up @@ -202,7 +202,7 @@
}
},
"x-ms-examples": {
"Query at resource group scope": { "$ref": "./examples/QueryResourceGroupScope.json" }
"Query at resource group scope": { "$ref": "./examples/PolicyEvents_QueryResourceGroupScope.json" }
}
}
},
Expand Down Expand Up @@ -257,10 +257,10 @@
}
},
"x-ms-examples": {
"Query at resource scope": { "$ref": "./examples/QueryResourceScope.json" },
"Query at subscription level resource scope": { "$ref": "./examples/QuerySubscriptionLevelResourceScope.json" },
"Query at nested resource scope": { "$ref": "./examples/QueryNestedResourceScope.json" },
"Query at subscription level nested resource scope": { "$ref": "./examples/QuerySubscriptionLevelNestedResourceScope.json" }
"Query at resource scope": { "$ref": "./examples/PolicyEvents_QueryResourceScope.json" },
"Query at subscription level resource scope": { "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelResourceScope.json" },
"Query at nested resource scope": { "$ref": "./examples/PolicyEvents_QueryNestedResourceScope.json" },
"Query at subscription level nested resource scope": { "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelNestedResourceScope.json" }
}
}
},
Expand Down Expand Up @@ -294,7 +294,7 @@
}
},
"x-ms-examples": {
"Get metadata": { "$ref": "./examples/GetMetadata.json" }
"Get metadata": { "$ref": "./examples/PolicyEvents_GetMetadata.json" }
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
}
},
"x-ms-examples": {
"Query latest at management group scope": { "$ref": "./examples/QueryManagementGroupScope.json" }
"Query latest at management group scope": { "$ref": "./examples/PolicyStates_QueryManagementGroupScope.json" }
}
}
},
Expand Down Expand Up @@ -139,12 +139,12 @@
}
},
"x-ms-examples": {
"Query latest at subscription scope": { "$ref": "./examples/QuerySubscriptionScope.json" },
"Time range; sort, select and limit": { "$ref": "./examples/TimeRangeSortSelectTop.json" },
"Filter and group with aggregate": { "$ref": "./examples/FilterAndGroupByWithAggregate.json" },
"Filter and group without aggregate": { "$ref": "./examples/FilterAndGroupByWithoutAggregate.json" },
"Filter and aggregate only": { "$ref": "./examples/FilterAndAggregateOnly.json" },
"Filter and multiple groups": { "$ref": "./examples/FilterAndMultipleGroups.json" }
"Query latest at subscription scope": { "$ref": "./examples/PolicyStates_QuerySubscriptionScope.json" },
"Time range; sort, select and limit": { "$ref": "./examples/PolicyStates_TimeRangeSortSelectTop.json" },
"Filter and group with aggregate": { "$ref": "./examples/PolicyStates_FilterAndGroupByWithAggregate.json" },
"Filter and group without aggregate": { "$ref": "./examples/PolicyStates_FilterAndGroupByWithoutAggregate.json" },
"Filter and aggregate only": { "$ref": "./examples/PolicyStates_FilterAndAggregateOnly.json" },
"Filter and multiple groups": { "$ref": "./examples/PolicyStates_FilterAndMultipleGroups.json" }
}
}
},
Expand Down Expand Up @@ -202,7 +202,7 @@
}
},
"x-ms-examples": {
"Query latest at resource group scope": { "$ref": "./examples/QueryResourceGroupScope.json" }
"Query latest at resource group scope": { "$ref": "./examples/PolicyStates_QueryResourceGroupScope.json" }
}
}
},
Expand Down Expand Up @@ -257,10 +257,10 @@
}
},
"x-ms-examples": {
"Query all policy states at resource scope": { "$ref": "./examples/QueryResourceScope.json" },
"Query all policy states at subscription level resource scope": { "$ref": "./examples/QuerySubscriptionLevelResourceScope.json" },
"Query all policy states at nested resource scope": { "$ref": "./examples/QueryNestedResourceScope.json" },
"Query all policy states at subscription level nested resource scope": { "$ref": "./examples/QuerySubscriptionLevelNestedResourceScope.json" }
"Query all policy states at resource scope": { "$ref": "./examples/PolicyStates_QueryResourceScope.json" },
"Query all policy states at subscription level resource scope": { "$ref": "./examples/PolicyStates_QuerySubscriptionLevelResourceScope.json" },
"Query all policy states at nested resource scope": { "$ref": "./examples/PolicyStates_QueryNestedResourceScope.json" },
"Query all policy states at subscription level nested resource scope": { "$ref": "./examples/PolicyStates_QuerySubscriptionLevelNestedResourceScope.json" }
}
}
},
Expand Down Expand Up @@ -288,7 +288,7 @@
}
},
"x-ms-examples": {
"List operations": { "$ref": "./examples/ListOperations.json" }
"List operations": { "$ref": "./examples/PolicyStates_ListOperations.json" }
}
}
},
Expand Down Expand Up @@ -322,7 +322,7 @@
}
},
"x-ms-examples": {
"Get metadata": { "$ref": "./examples/GetMetadata.json" }
"Get metadata": { "$ref": "./examples/PolicyStates_GetMetadata.json" }
}
}
}
Expand Down Expand Up @@ -551,7 +551,7 @@
],
"x-ms-enum": {
"name": "PolicyStatesResource",
"modelAsString": false
"modelAsString": true
},
"description": "The virtual resource under PolicyStates resource type. In a given time range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s).",
"x-ms-parameter-location": "method"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
}
},
"x-ms-examples": {
"Query at management group scope": { "$ref": "./examples/QueryManagementGroupScope.json" }
"Query at management group scope": { "$ref": "./examples/PolicyEvents_QueryManagementGroupScope.json" }
}
}
},
Expand Down Expand Up @@ -139,12 +139,12 @@
}
},
"x-ms-examples": {
"Query at subscription scope": { "$ref": "./examples/QuerySubscriptionScope.json" },
"Time range; sort, select and limit": { "$ref": "./examples/TimeRangeSortSelectTop.json" },
"Filter and group with aggregate": { "$ref": "./examples/FilterAndGroupByWithAggregate.json" },
"Filter and group without aggregate": { "$ref": "./examples/FilterAndGroupByWithoutAggregate.json" },
"Filter and aggregate only": { "$ref": "./examples/FilterAndAggregateOnly.json" },
"Filter and multiple groups": { "$ref": "./examples/FilterAndMultipleGroups.json" }
"Query at subscription scope": { "$ref": "./examples/PolicyEvents_QuerySubscriptionScope.json" },
"Time range; sort, select and limit": { "$ref": "./examples/PolicyEvents_TimeRangeSortSelectTop.json" },
"Filter and group with aggregate": { "$ref": "./examples/PolicyEvents_FilterAndGroupByWithAggregate.json" },
"Filter and group without aggregate": { "$ref": "./examples/PolicyEvents_FilterAndGroupByWithoutAggregate.json" },
"Filter and aggregate only": { "$ref": "./examples/PolicyEvents_FilterAndAggregateOnly.json" },
"Filter and multiple groups": { "$ref": "./examples/PolicyEvents_FilterAndMultipleGroups.json" }
}
}
},
Expand Down Expand Up @@ -202,7 +202,7 @@
}
},
"x-ms-examples": {
"Query at resource group scope": { "$ref": "./examples/QueryResourceGroupScope.json" }
"Query at resource group scope": { "$ref": "./examples/PolicyEvents_QueryResourceGroupScope.json" }
}
}
},
Expand Down Expand Up @@ -257,10 +257,10 @@
}
},
"x-ms-examples": {
"Query at resource scope": { "$ref": "./examples/QueryResourceScope.json" },
"Query at subscription level resource scope": { "$ref": "./examples/QuerySubscriptionLevelResourceScope.json" },
"Query at nested resource scope": { "$ref": "./examples/QueryNestedResourceScope.json" },
"Query at subscription level nested resource scope": { "$ref": "./examples/QuerySubscriptionLevelNestedResourceScope.json" }
"Query at resource scope": { "$ref": "./examples/PolicyEvents_QueryResourceScope.json" },
"Query at subscription level resource scope": { "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelResourceScope.json" },
"Query at nested resource scope": { "$ref": "./examples/PolicyEvents_QueryNestedResourceScope.json" },
"Query at subscription level nested resource scope": { "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelNestedResourceScope.json" }
}
}
},
Expand Down Expand Up @@ -321,7 +321,7 @@
}
},
"x-ms-examples": {
"Query at subscription level policy set definition scope": { "$ref": "./examples/QuerySubscriptionLevelPolicySetDefinitionScope.json" }
"Query at subscription level policy set definition scope": { "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScope.json" }
}
}
},
Expand Down Expand Up @@ -382,7 +382,7 @@
}
},
"x-ms-examples": {
"Query at subscription level policy definition scope": { "$ref": "./examples/QuerySubscriptionLevelPolicyDefinitionScope.json" }
"Query at subscription level policy definition scope": { "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScope.json" }
}
}
},
Expand Down Expand Up @@ -443,7 +443,7 @@
}
},
"x-ms-examples": {
"Query at subscription level policy assignment scope": { "$ref": "./examples/QuerySubscriptionLevelPolicyAssignmentScope.json" }
"Query at subscription level policy assignment scope": { "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScope.json" }
}
}
},
Expand Down Expand Up @@ -507,7 +507,7 @@
}
},
"x-ms-examples": {
"Query at resource group level policy assignment scope": { "$ref": "./examples/QueryResourceGroupLevelPolicyAssignmentScope.json" }
"Query at resource group level policy assignment scope": { "$ref": "./examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScope.json" }
}
}
},
Expand Down Expand Up @@ -541,7 +541,7 @@
}
},
"x-ms-examples": {
"Get metadata": { "$ref": "./examples/GetMetadata.json" }
"Get metadata": { "$ref": "./examples/PolicyEvents_GetMetadata.json" }
}
}
}
Expand Down
Loading