<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0">

  <xs:element name="config-template-no-definition" type="configTemplateNoDefinition"/>

  <xs:complexType name="configTemplateNoDefinition">
    <xs:sequence>
      <xs:element minOccurs="0" name="last-update-time" type="xs:long">
        <xs:annotation>
          <xs:appinfo>
            <space-appinfo>
              <read-only/>
            </space-appinfo>
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="domain-id" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <space-appinfo>
              <filterable/>
            </space-appinfo>
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element name="description" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <space-appinfo>
              <filterable/>
              <sortable/>
            </space-appinfo>
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="last-update-time-string"
        type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <space-appinfo>
              <filterable/>
              <read-only/>
              <sortable/>
            </space-appinfo>
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="id" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <space-appinfo>
              <filterable/>
              <read-only/>
              <sortable/>
            </space-appinfo>
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="state" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <space-appinfo>
              <read-only/>
            </space-appinfo>
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element name="name" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <space-appinfo>
              <filterable/>
              <sortable/>
            </space-appinfo>
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="current-version" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <space-appinfo>
              <filterable/>
              <read-only/>
              <sortable/>
            </space-appinfo>
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="last-updated-by" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <space-appinfo>
              <filterable/>
              <read-only/>
              <sortable/>
            </space-appinfo>
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="domain-name" type="xs:string"/>
      <xs:element name="device-family" type="xs:string"/>
      <xs:element minOccurs="0" name="os-version" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <space-appinfo>
              <sortable/>
            </space-appinfo>
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="config-type" type="xmlConfigEnum">
        <xs:annotation>
          <xs:appinfo>
            <space-appinfo>
              <filterable/>
              <read-only/>
              <sortable/>
            </space-appinfo>
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="uri" type="xs:string"/>
    <xs:attribute name="href" type="xs:string">
      <xs:annotation>
        <xs:appinfo>
          <space-appinfo>
            <link>/api/space/config-template-management/config-templates/{id}</link>
          </space-appinfo>
        </xs:appinfo>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>

  <xs:simpleType name="xmlConfigEnum">
    <xs:restriction base="xs:string">
      <xs:enumeration value="CONFIG_TEMPLATE"/>
      <xs:enumeration value="CONFIG_TEMPLATE_DEFINITION"/>
      <xs:enumeration value="APP_SETTINGS"/>
      <xs:enumeration value="SERVICE_TEMPLATE_DEFINITION"/>
      <xs:enumeration value="CONFIG_EDITOR"/>
      <xs:enumeration value="TA_TEMPLATE_DEFINITION"/>
      <xs:enumeration value="SERVICE_TEMPLATE"/>
      <xs:enumeration value="MONITOR_DEVICE"/>
      <xs:enumeration value="API_TEMPLATE_DEFINITION"/>
      <xs:enumeration value="QUICK_TEMPLATE"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>
