<?xml version="1.0" encoding="utf-8" ?>

<!--
  Composite Type Schema for Scenario: CertificateServices
  -->

<xs:schema
	targetNamespace="http://schemas.microsoft.com/bestpractices/models/ServerManager/CertificateServices/CertificateServicesComposite/2008/04"
    xmlns:tns="http://schemas.microsoft.com/bestpractices/models/ServerManager/CertificateServices/CertificateServicesComposite/2008/04"
    elementFormDefault="qualified"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">

    <xs:element name="NoneApplicable" type="xs:boolean" />

    <xs:element name="PreCheck" type="xs:boolean" />

    <xs:element name="CertificateServicesComposite" type="tns:CertificateServicesCompositeType" />

    <xs:complexType name="CertificateServicesCompositeType">
        <xs:sequence>
            <xs:element ref="tns:PreCheck" minOccurs="0" maxOccurs="1"/>
            <xs:element ref="tns:NoneApplicable" minOccurs="0" maxOccurs="1"/>
            <xs:element name="ADCSCertAuthority" type="tns:ADCSCertAuthorityType" minOccurs="0" maxOccurs="1" />
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="ADCSCertAuthorityType">
        <xs:sequence>
            <xs:element name="UserAEPolicySet" type="xs:boolean" minOccurs="0" maxOccurs="1" />
            <xs:element name="MachineAEPolicySet" type="xs:boolean" minOccurs="0" maxOccurs="1" />
            <xs:element name="CRLPeriodInSeconds" type="xs:long" minOccurs="0" maxOccurs="1" />
            <xs:element name="EditFlagsSANEnabled" type="xs:boolean" minOccurs="0" maxOccurs="1" />
            <xs:element name="RequestDisposition" type="xs:int" minOccurs="0" maxOccurs="1" />
            <xs:element name="CRLURLs" type="xs:boolean" minOccurs="0" maxOccurs="1" />
            <xs:element name="AIAURLs" type="xs:boolean" minOccurs="0" maxOccurs="1" />
            <xs:element name="CRLKeySuffix" type="xs:boolean" minOccurs="0" maxOccurs="1" />
            <xs:element name="AIAKeySuffix" type="xs:boolean" minOccurs="0" maxOccurs="1" />
            <xs:element name="CRLLocalWebURLs" type="xs:boolean" minOccurs="0" maxOccurs="1" />
            <xs:element name="AIALocalWebURLs" type="xs:boolean" minOccurs="0" maxOccurs="1" />
            <xs:element name="DeltaCRLRemoteWebURLs" type="xs:boolean" minOccurs="0" maxOccurs="1" />
            <xs:element name="DBFilesOnSystemDrive" type="xs:boolean" minOccurs="0" maxOccurs="1" />
        </xs:sequence>
    </xs:complexType>

</xs:schema>