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

[AutoPR advisor] typo: suppresion -> suppression #1449

Closed
wants to merge 1 commit into from
Closed
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
187 changes: 187 additions & 0 deletions schemas/2015-07-01/Microsoft.Authorization.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
{
"id": "https://schema.management.azure.com/schemas/2015-07-01/Microsoft.Authorization.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.Authorization",
"description": "Microsoft Authorization Resource Types",
"resourceDefinitions": {},
"unknown_resourceDefinitions": {
"roleAssignments": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2015-07-01"
]
},
"name": {
"type": "string",
"description": "The name of the role assignment to create. It can be any valid GUID."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/RoleAssignmentProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Role assignment properties."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Authorization/roleAssignments"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.Authorization/roleAssignments"
},
"roleDefinitions": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2015-07-01"
]
},
"name": {
"type": "string",
"description": "The ID of the role definition."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/RoleDefinitionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Role definition properties."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Authorization/roleDefinitions"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.Authorization/roleDefinitions"
}
},
"definitions": {
"Permission": {
"type": "object",
"properties": {
"actions": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Allowed actions."
},
"notActions": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Denied actions."
}
},
"description": "Role definition permissions."
},
"RoleAssignmentProperties": {
"type": "object",
"properties": {
"principalId": {
"type": "string",
"description": "The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can point to a user, service principal, or security group."
},
"roleDefinitionId": {
"type": "string",
"description": "The role definition ID used in the role assignment."
}
},
"required": [
"principalId",
"roleDefinitionId"
],
"description": "Role assignment properties."
},
"RoleDefinitionProperties": {
"type": "object",
"properties": {
"assignableScopes": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Role definition assignable scopes."
},
"description": {
"type": "string",
"description": "The role definition description."
},
"permissions": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/Permission"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Role definition permissions."
},
"roleName": {
"type": "string",
"description": "The role name."
},
"type": {
"type": "string",
"description": "The role type."
}
},
"description": "Role definition properties."
}
}
}
9 changes: 5 additions & 4 deletions schemas/2016-07-12-preview/Microsoft.Advisor.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.Advisor",
"description": "Microsoft Advisor Resource Types",
"resourceDefinitions": {
"resourceDefinitions": {},
"unknown_resourceDefinitions": {
"recommendations_suppressions": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -47,7 +48,7 @@
"type": {
"type": "string",
"enum": [
"Microsoft.Advisor/suppressions"
"Microsoft.Advisor/recommendations/suppressions"
]
}
},
Expand All @@ -56,8 +57,8 @@
"name",
"type"
],
"description": "Microsoft.Advisor/suppressions"
"description": "Microsoft.Advisor/recommendations/suppressions"
}
},
"definitions": {}
}
}
9 changes: 5 additions & 4 deletions schemas/2017-03-31/Microsoft.Advisor.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.Advisor",
"description": "Microsoft Advisor Resource Types",
"resourceDefinitions": {
"resourceDefinitions": {},
"unknown_resourceDefinitions": {
"recommendations_suppressions": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -31,7 +32,7 @@
"type": {
"type": "string",
"enum": [
"Microsoft.Advisor/suppressions"
"Microsoft.Advisor/recommendations/suppressions"
]
}
},
Expand All @@ -41,7 +42,7 @@
"properties",
"type"
],
"description": "Microsoft.Advisor/suppressions"
"description": "Microsoft.Advisor/recommendations/suppressions"
}
},
"definitions": {
Expand All @@ -60,4 +61,4 @@
"description": "The properties of the suppression."
}
}
}
}
44 changes: 23 additions & 21 deletions schemas/2017-04-19/Microsoft.Advisor.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@
"type"
],
"description": "Microsoft.Advisor/configurations"
},
"recommendations_suppressions": {
}
},
"subscription_resourceDefinitions": {
"configurations": {
"type": "object",
"properties": {
"apiVersion": {
Expand All @@ -58,25 +60,31 @@
"2017-04-19"
]
},
"id": {
"type": "string",
"description": "The resource Id of the configuration resource."
},
"name": {
"type": "string",
"description": "The name of the suppression."
"enum": [
"configurations"
]
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/SuppressionProperties"
"$ref": "#/definitions/ConfigDataProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The properties of the suppression."
"description": "The list of property name/value pairs."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Advisor/suppressions"
"Microsoft.Advisor/configurations"
]
}
},
Expand All @@ -86,11 +94,11 @@
"properties",
"type"
],
"description": "Microsoft.Advisor/suppressions"
"description": "Microsoft.Advisor/configurations"
}
},
"subscription_resourceDefinitions": {
"configurations": {
"unknown_resourceDefinitions": {
"recommendations_suppressions": {
"type": "object",
"properties": {
"apiVersion": {
Expand All @@ -99,31 +107,25 @@
"2017-04-19"
]
},
"id": {
"type": "string",
"description": "The resource Id of the configuration resource."
},
"name": {
"type": "string",
"enum": [
"configurations"
]
"description": "The name of the suppression."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/ConfigDataProperties"
"$ref": "#/definitions/SuppressionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The list of property name/value pairs."
"description": "The properties of the suppression."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Advisor/configurations"
"Microsoft.Advisor/recommendations/suppressions"
]
}
},
Expand All @@ -133,7 +135,7 @@
"properties",
"type"
],
"description": "Microsoft.Advisor/configurations"
"description": "Microsoft.Advisor/recommendations/suppressions"
}
},
"definitions": {
Expand Down Expand Up @@ -189,4 +191,4 @@
"description": "The properties of the suppression."
}
}
}
}
Loading