Skip to content

Commit

Permalink
CodeGen from PR 12661 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge addb2ae988ddf4d0e467ccd554f6a151560512d0 into c5757b0fffebf60a3d86cf58727e72a5997f43a7
  • Loading branch information
SDKAuto committed Jan 27, 2021
1 parent 97e25b9 commit 583b97b
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 2 deletions.
2 changes: 1 addition & 1 deletion schemas/2018-07-01-preview/Microsoft.PolicyInsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,4 @@
"description": "The remediation properties."
}
}
}
}
2 changes: 1 addition & 1 deletion schemas/2019-07-01/Microsoft.PolicyInsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,4 +229,4 @@
"description": "The remediation properties."
}
}
}
}
205 changes: 205 additions & 0 deletions schemas/2019-10-01/Microsoft.PolicyInsights.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
{
"id": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.PolicyInsights.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.PolicyInsights",
"description": "Microsoft PolicyInsights Resource Types",
"resourceDefinitions": {
"attestations": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2019-10-01"
]
},
"name": {
"type": "string",
"description": "The name of the attestation."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/AttestationProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The properties of an attestation resource."
},
"type": {
"type": "string",
"enum": [
"Microsoft.PolicyInsights/attestations"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.PolicyInsights/attestations"
}
},
"subscription_resourceDefinitions": {
"attestations": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2019-10-01"
]
},
"name": {
"type": "string",
"description": "The name of the attestation."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/AttestationProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The properties of an attestation resource."
},
"type": {
"type": "string",
"enum": [
"Microsoft.PolicyInsights/attestations"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.PolicyInsights/attestations"
}
},
"unknown_resourceDefinitions": {
"attestations": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2019-10-01"
]
},
"name": {
"type": "string",
"description": "The name of the attestation."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/AttestationProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The properties of an attestation resource."
},
"type": {
"type": "string",
"enum": [
"Microsoft.PolicyInsights/attestations"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.PolicyInsights/attestations"
}
},
"definitions": {
"AttestationEvidence": {
"type": "object",
"properties": {
"description": {
"type": "string",
"description": "The description for this piece of evidence."
},
"sourceUri": {
"type": "string",
"description": "The URI location of the evidence."
}
},
"description": "A piece of evidence supporting the compliance state set in the attestation."
},
"AttestationProperties": {
"type": "object",
"properties": {
"comments": {
"type": "string",
"description": "Comments describing why this attestation was created."
},
"complianceState": {
"oneOf": [
{
"type": "string",
"enum": [
"Compliant",
"NonCompliant",
"Unknown"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The compliance state that should be set on the resource."
},
"evidence": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/AttestationEvidence"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The evidence supporting the compliance state set in this attestation."
},
"expiresOn": {
"type": "string",
"format": "date-time",
"description": "The time the compliance state should expire."
},
"owner": {
"type": "string",
"description": "The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID."
},
"policyAssignmentId": {
"type": "string",
"description": "The resource ID of the policy assignment that the attestation is setting the state for."
},
"policyDefinitionReferenceId": {
"type": "string",
"description": "The policy definition reference ID from a policy set definition that the attestation is setting the state for. If the policy assignment assigns a policy set definition the attestation can choose a definition within the set definition with this property or omit this and set the state for the entire set definition."
}
},
"required": [
"policyAssignmentId"
],
"description": "The properties of an attestation resource."
}
}
}

0 comments on commit 583b97b

Please sign in to comment.