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 resources] Fixed S360 issues related to ARM & SDK swagger linting errors for Microsoft.Solutions. #373

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
165 changes: 126 additions & 39 deletions schemas/2015-01-01/Microsoft.Authorization.json
Original file line number Diff line number Diff line change
@@ -1,70 +1,157 @@
{
"id": "https://schema.management.azure.com/schemas/2015-01-01/Microsoft.Authorization.json",
"id": "https://schema.management.azure.com/schemas/2015-01-01/Microsoft.Authorization.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.Authorization",
"description": "Microsoft Microsoft.Authorization Resource Types",
"description": "Microsoft Authorization Resource Types",
"resourceDefinitions": {
"locks": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2015-01-01"
]
},
"name": {
"type": "string",
"description": "The lock name."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/ManagementLockProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The management lock properties."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Authorization/locks"
]
},
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.Authorization/locks"
}
},
"subscription_resourceDefinitions": {
"locks": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2015-01-01"
]
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "Name of the lock"
},
"dependsOn": {
"type": "array",
"items": {
"type": "string"
},
"description": "Collection of resources this resource depends on"
"description": "The name of lock."
},
"properties": {
"type": "object",
"properties": {
"level": {
"oneOf": [
{
"enum": [
"CannotDelete",
"ReadOnly"
]
},
{ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" }
]
,
"description": "Microsoft.Authorization/locks: level - specifies the type of lock to apply to the scope. CanNotDelete allows modification but prevents deletion, ReadOnly prevents modification or deletion."
"oneOf": [
{
"$ref": "#/definitions/ManagementLockProperties"
},
"notes": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"description": "Microsoft.Authorization/locks: notes - user defined notes for the lock"
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
},
"required": [
"level"
],
"description": "The management lock properties."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Authorization/locks"
]
}
},
"required": [
"apiVersion",
"name",
"type",
"properties",
"type"
],
"description": "Microsoft.Authorization/locks"
}
},
"extension_resourceDefinitions": {
"locks": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2015-01-01"
]
},
"name": {
"type": "string",
"description": "The name of lock."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/ManagementLockProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The management lock properties."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Authorization/locks"
]
}
},
"required": [
"apiVersion",
"properties"
"name",
"properties",
"type"
],
"description": "Microsoft.Authorization/locks resource"
"description": "Microsoft.Authorization/locks"
}
},
"definitions": {
"ManagementLockProperties": {
"type": "object",
"properties": {
"level": {
"oneOf": [
{
"type": "string",
"enum": [
"NotSpecified",
"CanNotDelete",
"ReadOnly"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The lock level of the management lock."
},
"notes": {
"type": "string",
"description": "The notes of the management lock."
}
},
"description": "The management lock properties."
}
}
}
}
148 changes: 148 additions & 0 deletions schemas/2015-10-01-preview/Microsoft.Authorization.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
{
"id": "https://schema.management.azure.com/schemas/2015-10-01-preview/Microsoft.Authorization.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.Authorization",
"description": "Microsoft Authorization Resource Types",
"resourceDefinitions": {},
"subscription_resourceDefinitions": {
"policydefinitions": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2015-10-01-preview"
]
},
"name": {
"type": "string",
"description": "The name of the policy definition to create."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/PolicyDefinitionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The policy definition properties."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Authorization/policydefinitions"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.Authorization/policydefinitions"
}
},
"unknown_resourceDefinitions": {
"policyassignments": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2015-10-01-preview"
]
},
"id": {
"type": "string",
"description": "The ID of the policy assignment."
},
"name": {
"type": "string",
"description": "The name of the policy assignment."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/PolicyAssignmentProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The policy assignment properties."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Authorization/policyassignments"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.Authorization/policyassignments"
}
},
"definitions": {
"PolicyAssignmentProperties": {
"type": "object",
"properties": {
"displayName": {
"type": "string",
"description": "The display name of the policy assignment."
},
"policyDefinitionId": {
"type": "string",
"description": "The ID of the policy definition."
},
"scope": {
"type": "string",
"description": "The scope for the policy assignment."
}
},
"description": "The policy assignment properties."
},
"PolicyDefinitionProperties": {
"type": "object",
"properties": {
"description": {
"type": "string",
"description": "The policy definition description."
},
"displayName": {
"type": "string",
"description": "The display name of the policy definition."
},
"policyRule": {
"type": "object",
"properties": {},
"description": "The policy rule."
},
"policyType": {
"oneOf": [
{
"type": "string",
"enum": [
"NotSpecified",
"BuiltIn",
"Custom"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom."
}
},
"description": "The policy definition properties."
}
}
}
Loading