"Fossies" - the Fresh Open Source Software Archive

Member "icinga-web-1.14.1/app/modules/Api/lib/xml/xsd/parts/access-module.xsd" (19 Dec 2017, 5853 Bytes) of package /linux/misc/old/icinga-web-1.14.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) XML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <?xml version="1.0" encoding="UTF-8"?>
    2 <xs:schema
    3     xmlns:xs="http://www.w3.org/2001/XMLSchema"
    4     xmlns:envelope_1_0="http://agavi.org/agavi/config/global/envelope/1.0"
    5     xmlns:types_1_0="http://agavi.org/agavi/config/global/types/1.0"
    6     xmlns="http://icinga.org/api/config/parts/access/module/1.0"
    7     targetNamespace="http://icinga.org/api/config/parts/access/module/1.0"
    8     elementFormDefault="qualified"
    9 >
   10 
   11     <xs:import namespace="http://agavi.org/agavi/config/global/types/1.0"
   12                schemaLocation="../../../../../../../lib/agavi/src/config/xsd/_types.xsd" />
   13     <xs:import namespace="http://agavi.org/agavi/config/global/envelope/1.0"
   14                schemaLocation="../../../../../../../lib/agavi/src/config/xsd/_envelope.xsd" />
   15 
   16     <xs:simpleType name="allowModuleOverwrites">
   17         <xs:restriction base="xs:boolean" />
   18     </xs:simpleType>
   19 
   20     <xs:complexType name="instances">
   21         <xs:sequence>
   22             <xs:element name="instance" type="instance" minOccurs="0" maxOccurs="unbounded" />
   23         </xs:sequence>
   24     </xs:complexType>
   25 
   26     <!-- mapping of a host to an instance -->
   27     <xs:complexType name="instance">
   28         <xs:simpleContent>
   29             <xs:extension base="xs:string">
   30                 <xs:attribute name="name" type="xs:string" use="required"/>
   31             </xs:extension>
   32         </xs:simpleContent>
   33     </xs:complexType>
   34 
   35     <!--
   36         Entities for default section
   37 
   38     -->
   39     <xs:complexType name="defaults">
   40         <xs:sequence>
   41             <!-- most definitions are unbounded because later definitions will overwrite the initial value -->
   42             <xs:element name="defaultHost" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
   43             <xs:element name="access" type="access" minOccurs="0" maxOccurs="unbounded" />
   44         </xs:sequence>
   45     </xs:complexType>
   46 
   47     <xs:complexType name="access">
   48         <xs:sequence>
   49              <xs:element name="readwrite" type="resourcedescriptor" minOccurs="0" maxOccurs="unbounded" />
   50              <xs:element name="read" type="resourcedescriptor" minOccurs="0" maxOccurs="unbounded" />
   51              <xs:element name="write" type="resourcedescriptor" minOccurs="0" maxOccurs="unbounded" />
   52              <xs:element name="execute" type="resourcedescriptor" minOccurs="0" maxOccurs="unbounded" />
   53         </xs:sequence>
   54     </xs:complexType>
   55 
   56     <xs:complexType name="resourcedescriptor">
   57         <xs:sequence>
   58             <xs:element name="folders" type="resourcecontainer" minOccurs="0" maxOccurs="unbounded" />
   59             <xs:element name="files"  type="resourcecontainer" minOccurs="0" maxOccurs="unbounded" />
   60         </xs:sequence>
   61     </xs:complexType>
   62 
   63     <xs:complexType name="resourcecontainer">
   64         <xs:sequence>
   65             <xs:element name="resource" type="resource" minOccurs="0" maxOccurs="unbounded" />
   66         </xs:sequence>
   67     </xs:complexType>
   68 
   69     <xs:complexType name="resource">
   70         <xs:simpleContent>
   71             <xs:extension base="xs:string">
   72                 <xs:attribute name="name" type="xs:string" use="required"/>
   73             </xs:extension>
   74         </xs:simpleContent>
   75     </xs:complexType>
   76 
   77     <!--
   78         Hosts definition entities
   79     -->
   80     <xs:complexType name="hosts">
   81         <xs:sequence>
   82             <xs:element name="host" type="host" minOccurs="0" maxOccurs="unbounded" />
   83         </xs:sequence>
   84     </xs:complexType>
   85 
   86     <xs:complexType name="host">
   87         <xs:all>
   88             <xs:element name="type" type="hosttype" minOccurs="1" maxOccurs="1"/>
   89             <xs:element name="access" type="hostaccess" minOccurs="1" maxOccurs="1" />
   90             <xs:element name="ssh-config" type="ssh-config" minOccurs="0" maxOccurs="1" />
   91         </xs:all>
   92         <xs:attribute name="name" type="xs:string" use="required" />
   93     </xs:complexType>
   94 
   95     <xs:complexType name="ssh-config">
   96         <xs:sequence>
   97             <xs:element name="host" type="xs:string" minOccurs="1" maxOccurs="1" />
   98             <xs:element name="port" type="xs:integer" minOccurs="1" maxOccurs="1" />
   99             <xs:element name="auth" type="ssh-auth" minOccurs="1" maxOccurs="1" />
  100         </xs:sequence>
  101     </xs:complexType>
  102 
  103     <xs:complexType name="ssh-auth">
  104         <xs:all>
  105             <xs:element name="type" type="ssh-authtypes"/>
  106             <xs:element name="user" type="xs:string"/>
  107             <xs:element name="private-key" type="xs:string" minOccurs="0" maxOccurs="1"/>
  108             <xs:element name="password" type="xs:string" minOccurs="0" maxOccurs="1" />
  109         </xs:all>
  110     </xs:complexType>
  111 
  112     <xs:simpleType name="hosttype">
  113         <xs:restriction base="xs:string">
  114             <xs:enumeration value="local" />
  115             <xs:enumeration value="ssh" />
  116         </xs:restriction>
  117     </xs:simpleType>
  118 
  119     <!--
  120         The access attribute in the hosts section must define if it uses the default values
  121     -->
  122     <xs:complexType name="hostaccess">
  123         <xs:complexContent>
  124             <xs:extension base="access">
  125                 <xs:attribute name="useDefaults" type="xs:boolean" use="required"/>
  126             </xs:extension>
  127         </xs:complexContent>
  128     </xs:complexType>
  129 
  130     <xs:simpleType name="ssh-authtypes">
  131         <xs:restriction base="xs:string">
  132             <xs:enumeration value="none" />
  133             <xs:enumeration value="password" />
  134             <xs:enumeration value="key" />
  135         </xs:restriction>
  136     </xs:simpleType>
  137 
  138     <!--
  139         Root node
  140     -->
  141     <xs:group name="configuration">
  142         <xs:all>
  143 
  144             <xs:element name="instances" type="instances" minOccurs="1" maxOccurs="1"></xs:element>
  145             <xs:element name="defaults" type="defaults" minOccurs="1" maxOccurs="1"></xs:element>
  146             <xs:element name="hosts" type="hosts" minOccurs="1" maxOccurs="1"></xs:element>
  147         </xs:all>
  148     </xs:group>
  149 
  150 
  151 </xs:schema>