From 583b97bbdad2cf51d6db505198615a244fa70dd7 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 27 Jan 2021 00:31:20 +0000 Subject: [PATCH] CodeGen from PR 12661 in Azure/azure-rest-api-specs Merge addb2ae988ddf4d0e467ccd554f6a151560512d0 into c5757b0fffebf60a3d86cf58727e72a5997f43a7 --- .../Microsoft.PolicyInsights.json | 2 +- .../2019-07-01/Microsoft.PolicyInsights.json | 2 +- .../2019-10-01/Microsoft.PolicyInsights.json | 205 ++++++++++++++++++ 3 files changed, 207 insertions(+), 2 deletions(-) create mode 100644 schemas/2019-10-01/Microsoft.PolicyInsights.json diff --git a/schemas/2018-07-01-preview/Microsoft.PolicyInsights.json b/schemas/2018-07-01-preview/Microsoft.PolicyInsights.json index 0fce644fea..d576b57822 100644 --- a/schemas/2018-07-01-preview/Microsoft.PolicyInsights.json +++ b/schemas/2018-07-01-preview/Microsoft.PolicyInsights.json @@ -264,4 +264,4 @@ "description": "The remediation properties." } } -} \ No newline at end of file +} diff --git a/schemas/2019-07-01/Microsoft.PolicyInsights.json b/schemas/2019-07-01/Microsoft.PolicyInsights.json index f2ff5351ed..2f10453d59 100644 --- a/schemas/2019-07-01/Microsoft.PolicyInsights.json +++ b/schemas/2019-07-01/Microsoft.PolicyInsights.json @@ -229,4 +229,4 @@ "description": "The remediation properties." } } -} \ No newline at end of file +} diff --git a/schemas/2019-10-01/Microsoft.PolicyInsights.json b/schemas/2019-10-01/Microsoft.PolicyInsights.json new file mode 100644 index 0000000000..f3af4890f4 --- /dev/null +++ b/schemas/2019-10-01/Microsoft.PolicyInsights.json @@ -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." + } + } +}