forked from Azure/azure-resource-manager-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 12661 in Azure/azure-rest-api-specs
Merge addb2ae988ddf4d0e467ccd554f6a151560512d0 into c5757b0fffebf60a3d86cf58727e72a5997f43a7
- Loading branch information
SDKAuto
committed
Jan 27, 2021
1 parent
97e25b9
commit 583b97b
Showing
3 changed files
with
207 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -264,4 +264,4 @@ | |
"description": "The remediation properties." | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -229,4 +229,4 @@ | |
"description": "The remediation properties." | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | ||
} | ||
} | ||
} |